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 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 utils/Makefile"
1647 ac_config_commands="$ac_config_commands projects/Makefile"
1651 # Find a good install program. We prefer a C program (faster),
1652 # so one script is as good as another. But avoid the broken or
1653 # incompatible versions:
1654 # SysV /etc/install, /usr/sbin/install
1655 # SunOS /usr/etc/install
1656 # IRIX /sbin/install
1658 # AmigaOS /C/install, which installs bootblocks on floppy discs
1659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1662 # OS/2's system install, which has a completely different semantic
1663 # ./install, which can be erroneously created by make from ./install.sh.
1664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1666 if test -z "$INSTALL"; then
1667 if test "${ac_cv_path_install+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir=.
1675 # Account for people who put trailing slashes in PATH elements.
1677 ./ | .// | /cC/* | \
1678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1682 # OSF1 and SCO ODT 3.0 have their own names for install.
1683 # Don't use installbsd from OSF since it installs stuff as root
1685 for ac_prog in ginstall scoinst install; do
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1688 if test $ac_prog = install &&
1689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690 # AIX install. It has an incompatible calling convention.
1692 elif test $ac_prog = install &&
1693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1694 # program-specific install script used by HP pwplus--don't use.
1697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1709 if test "${ac_cv_path_install+set}" = set; then
1710 INSTALL=$ac_cv_path_install
1712 # As a last resort, use the slow shell script. We don't cache a
1713 # path for INSTALL within a source directory, because that will
1714 # break other packages using the cache if that directory is
1715 # removed, or if the path is relative.
1716 INSTALL=$ac_install_sh
1719 echo "$as_me:$LINENO: result: $INSTALL" >&5
1720 echo "${ECHO_T}$INSTALL" >&6
1722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1723 # It thinks the first close brace ends the variable substitution.
1724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1731 # Make sure we can run config.sub.
1732 $ac_config_sub sun4 >/dev/null 2>&1 ||
1733 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1734 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1735 { (exit 1); exit 1; }; }
1737 echo "$as_me:$LINENO: checking build system type" >&5
1738 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1739 if test "${ac_cv_build+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 ac_cv_build_alias=$build_alias
1743 test -z "$ac_cv_build_alias" &&
1744 ac_cv_build_alias=`$ac_config_guess`
1745 test -z "$ac_cv_build_alias" &&
1746 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1747 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1748 { (exit 1); exit 1; }; }
1749 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1750 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1751 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1752 { (exit 1); exit 1; }; }
1755 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1756 echo "${ECHO_T}$ac_cv_build" >&6
1758 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1763 echo "$as_me:$LINENO: checking host system type" >&5
1764 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1765 if test "${ac_cv_host+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 ac_cv_host_alias=$host_alias
1769 test -z "$ac_cv_host_alias" &&
1770 ac_cv_host_alias=$ac_cv_build_alias
1771 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1772 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1773 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1774 { (exit 1); exit 1; }; }
1777 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1778 echo "${ECHO_T}$ac_cv_host" >&6
1780 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1781 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1782 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1785 echo "$as_me:$LINENO: checking target system type" >&5
1786 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1787 if test "${ac_cv_target+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 ac_cv_target_alias=$target_alias
1791 test "x$ac_cv_target_alias" = "x" &&
1792 ac_cv_target_alias=$ac_cv_host_alias
1793 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1794 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1795 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1796 { (exit 1); exit 1; }; }
1799 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1800 echo "${ECHO_T}$ac_cv_target" >&6
1801 target=$ac_cv_target
1802 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1803 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1804 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1807 # The aliases save the names the user supplied, while $host etc.
1808 # will get canonicalized.
1809 test -n "$target_alias" &&
1810 test "$program_prefix$program_suffix$program_transform_name" = \
1812 program_prefix=${target_alias}-
1815 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1816 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1826 platform_type="Cygwin"
1831 platform_type="Darwin"
1836 platform_type="FreeBSD"
1841 platform_type="Interix"
1846 platform_type="Linux"
1847 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1849 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1856 platform_type="SunOS"
1857 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1859 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1866 platform_type="Win32"
1871 platform_type="Win32"
1876 platform_type="Unknown"
1880 if test "$platform_type" = "Unknown" ; then
1881 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1882 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1883 { (exit 1); exit 1; }; }
1886 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1890 echo "$as_me:$LINENO: checking target architecture" >&5
1891 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1893 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1921 echo "$as_me:$LINENO: result: $ARCH" >&5
1922 echo "${ECHO_T}$ARCH" >&6
1925 ac_cpp='$CXXCPP $CPPFLAGS'
1926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1929 if test -n "$ac_tool_prefix"; then
1930 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_CXX+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$CXX"; then
1940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 if test -n "$CXX"; then
1960 echo "$as_me:$LINENO: result: $CXX" >&5
1961 echo "${ECHO_T}$CXX" >&6
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1967 test -n "$CXX" && break
1970 if test -z "$CXX"; then
1972 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1974 # Extract the first word of "$ac_prog", so it can be a program name with args.
1975 set dummy $ac_prog; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 if test -n "$ac_ct_CXX"; then
1982 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 ac_cv_prog_ac_ct_CXX="$ac_prog"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2001 if test -n "$ac_ct_CXX"; then
2002 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2003 echo "${ECHO_T}$ac_ct_CXX" >&6
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2009 test -n "$ac_ct_CXX" && break
2011 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2017 # Provide some information about the compiler.
2018 echo "$as_me:$LINENO:" \
2019 "checking for C++ compiler version" >&5
2020 ac_compiler=`set X $ac_compile; echo $2`
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022 (eval $ac_compiler --version </dev/null >&5) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027 (eval $ac_compiler -v </dev/null >&5) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032 (eval $ac_compiler -V </dev/null >&5) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }
2037 cat >conftest.$ac_ext <<_ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2052 ac_clean_files_save=$ac_clean_files
2053 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2054 # Try to create an executable without -o first, disregard a.out.
2055 # It will help us diagnose broken compilers, and finding out an intuition
2057 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2058 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2059 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2061 (eval $ac_link_default) 2>&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # Find the output, starting from the most likely. This scheme is
2066 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2069 # Be careful to initialize this variable, since it used to be cached.
2070 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2072 # b.out is created by i960 compilers.
2073 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2075 test -f "$ac_file" || continue
2077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2080 # This is the source file.
2083 # We found the default executable, but exeext='' is most
2087 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088 # FIXME: I believe we export ac_cv_exeext for Libtool,
2089 # but it would be cool to find out if it's true. Does anybody
2090 # maintain Libtool? --akim.
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2101 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: C++ compiler cannot create executables
2104 See \`config.log' for more details." >&2;}
2105 { (exit 77); exit 77; }; }
2108 ac_exeext=$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_file" >&5
2110 echo "${ECHO_T}$ac_file" >&6
2112 # Check the compiler produces executables we can run. If not, either
2113 # the compiler is broken, or we cross compile.
2114 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2115 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2116 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117 # If not cross compiling, check that we can run a simple program.
2118 if test "$cross_compiling" != yes; then
2119 if { ac_try='./$ac_file'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2127 if test "$cross_compiling" = maybe; then
2130 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2131 If you meant to cross compile, use \`--host'.
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot run C++ compiled programs.
2134 If you meant to cross compile, use \`--host'.
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2140 echo "$as_me:$LINENO: result: yes" >&5
2141 echo "${ECHO_T}yes" >&6
2143 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2144 ac_clean_files=$ac_clean_files_save
2145 # Check the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2148 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2149 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2150 echo "${ECHO_T}$cross_compiling" >&6
2152 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2153 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2155 (eval $ac_link) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2160 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2161 # work properly (i.e., refer to `conftest.exe'), while it won't with
2163 for ac_file in conftest.exe conftest conftest.*; do
2164 test -f "$ac_file" || continue
2166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2175 See \`config.log' for more details." >&5
2176 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2177 See \`config.log' for more details." >&2;}
2178 { (exit 1); exit 1; }; }
2181 rm -f conftest$ac_cv_exeext
2182 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2183 echo "${ECHO_T}$ac_cv_exeext" >&6
2185 rm -f conftest.$ac_ext
2186 EXEEXT=$ac_cv_exeext
2188 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2189 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2190 if test "${ac_cv_objext+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 cat >conftest.$ac_ext <<_ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2208 rm -f conftest.o conftest.obj
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; then
2214 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2234 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2235 echo "${ECHO_T}$ac_cv_objext" >&6
2236 OBJEXT=$ac_cv_objext
2238 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2239 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 cat >conftest.$ac_ext <<_ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2265 grep -v '^ *+' conftest.er1 >conftest.err
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_cxx_werror_flag"
2271 || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2294 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2295 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2296 GXX=`test $ac_compiler_gnu = yes && echo yes`
2297 ac_test_CXXFLAGS=${CXXFLAGS+set}
2298 ac_save_CXXFLAGS=$CXXFLAGS
2300 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2301 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cxx_g+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.$ac_ext <<_ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>conftest.er1
2324 grep -v '^ *+' conftest.er1 >conftest.err
2326 cat conftest.err >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try='test -z "$ac_cxx_werror_flag"
2330 || test ! -s conftest.err'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2342 ac_cv_prog_cxx_g=yes
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2352 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2353 if test "$ac_test_CXXFLAGS" = set; then
2354 CXXFLAGS=$ac_save_CXXFLAGS
2355 elif test $ac_cv_prog_cxx_g = yes; then
2356 if test "$GXX" = yes; then
2362 if test "$GXX" = yes; then
2368 for ac_declaration in \
2370 'extern "C" void std::exit (int) throw (); using std::exit;' \
2371 'extern "C" void std::exit (int); using std::exit;' \
2372 'extern "C" void exit (int) throw ();' \
2373 'extern "C" void exit (int);' \
2376 cat >conftest.$ac_ext <<_ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h. */
2392 rm -f conftest.$ac_objext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394 (eval $ac_compile) 2>conftest.er1
2396 grep -v '^ *+' conftest.er1 >conftest.err
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -z "$ac_cxx_werror_flag"
2402 || test ! -s conftest.err'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest.$ac_objext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2422 cat >conftest.$ac_ext <<_ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2437 rm -f conftest.$ac_objext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439 (eval $ac_compile) 2>conftest.er1
2441 grep -v '^ *+' conftest.er1 >conftest.err
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -z "$ac_cxx_werror_flag"
2447 || test ! -s conftest.err'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; } &&
2453 { ac_try='test -s conftest.$ac_objext'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 if test -n "$ac_declaration"; then
2469 echo '#ifdef __cplusplus' >>confdefs.h
2470 echo $ac_declaration >>confdefs.h
2471 echo '#endif' >>confdefs.h
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2490 echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 if test -n "$CC"; then
2516 echo "$as_me:$LINENO: result: $CC" >&5
2517 echo "${ECHO_T}$CC" >&6
2519 echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2523 test -n "$CC" && break
2526 if test -z "$CC"; then
2530 # Extract the first word of "$ac_prog", so it can be a program name with args.
2531 set dummy $ac_prog; ac_word=$2
2532 echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 if test -n "$ac_ct_CC"; then
2538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_ac_ct_CC="$ac_prog"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2557 if test -n "$ac_ct_CC"; then
2558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2559 echo "${ECHO_T}$ac_ct_CC" >&6
2561 echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6
2565 test -n "$ac_ct_CC" && break
2572 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: no acceptable C compiler found in \$PATH
2575 See \`config.log' for more details." >&2;}
2576 { (exit 1); exit 1; }; }
2578 # Provide some information about the compiler.
2579 echo "$as_me:$LINENO:" \
2580 "checking for C compiler version" >&5
2581 ac_compiler=`set X $ac_compile; echo $2`
2582 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2583 (eval $ac_compiler --version </dev/null >&5) 2>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }
2587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2588 (eval $ac_compiler -v </dev/null >&5) 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }
2592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2593 (eval $ac_compiler -V </dev/null >&5) 2>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }
2598 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2599 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2600 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 cat >conftest.$ac_ext <<_ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2621 rm -f conftest.$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623 (eval $ac_compile) 2>conftest.er1
2625 grep -v '^ *+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2654 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2655 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2656 GCC=`test $ac_compiler_gnu = yes && echo yes`
2657 ac_test_CFLAGS=${CFLAGS+set}
2658 ac_save_CFLAGS=$CFLAGS
2660 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2661 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_g+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 cat >conftest.$ac_ext <<_ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>conftest.er1
2684 grep -v '^ *+' conftest.er1 >conftest.err
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2711 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2712 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2713 if test "$ac_test_CFLAGS" = set; then
2714 CFLAGS=$ac_save_CFLAGS
2715 elif test $ac_cv_prog_cc_g = yes; then
2716 if test "$GCC" = yes; then
2722 if test "$GCC" = yes; then
2728 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2729 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2730 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 ac_cv_prog_cc_stdc=no
2735 cat >conftest.$ac_ext <<_ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2743 #include <sys/types.h>
2744 #include <sys/stat.h>
2745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2746 struct buf { int x; };
2747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2748 static char *e (p, i)
2754 static char *f (char * (*g) (char **, int), char **p, ...)
2759 s = g (p, va_arg (v,int));
2764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2765 function prototypes and stuff, but not '\xHH' hex character constants.
2766 These don't provoke an error unfortunately, instead are silently treated
2767 as 'x'. The following induces an error, until -std1 is added to get
2768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2769 array size at least. It's necessary to write '\x00'==0 to get something
2770 that's true only with -std1. */
2771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2773 int test (int i, double x);
2774 struct s1 {int (*f) (int a);};
2775 struct s2 {int (*f) (double a);};
2776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2787 # Don't try gcc -ansi; that turns off useful extensions and
2788 # breaks some systems' header files.
2789 # AIX -qlanglvl=ansi
2790 # Ultrix and OSF/1 -std1
2791 # HP-UX 10.20 and later -Ae
2792 # HP-UX older versions -Aa -D_HPUX_SOURCE
2793 # SVR4 -Xc -D__EXTENSIONS__
2794 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2796 CC="$ac_save_CC $ac_arg"
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>conftest.er1
2801 grep -v '^ *+' conftest.er1 >conftest.err
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 { ac_try='test -z "$ac_c_werror_flag"
2807 || test ! -s conftest.err'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 ac_cv_prog_cc_stdc=$ac_arg
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2826 rm -f conftest.err conftest.$ac_objext
2828 rm -f conftest.$ac_ext conftest.$ac_objext
2833 case "x$ac_cv_prog_cc_stdc" in
2835 echo "$as_me:$LINENO: result: none needed" >&5
2836 echo "${ECHO_T}none needed" >&6 ;;
2838 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2839 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2840 CC="$CC $ac_cv_prog_cc_stdc" ;;
2843 # Some people use a C++ compiler to compile C. Since we use `exit',
2844 # in C++ we need to declare it. In case someone uses the same compiler
2845 # for both compiling C and C++ we need to have the C++ compiler decide
2846 # the declaration of exit, since it's the most demanding environment.
2847 cat >conftest.$ac_ext <<_ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2856 grep -v '^ *+' conftest.er1 >conftest.err
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 for ac_declaration in \
2876 'extern "C" void std::exit (int) throw (); using std::exit;' \
2877 'extern "C" void std::exit (int); using std::exit;' \
2878 'extern "C" void exit (int) throw ();' \
2879 'extern "C" void exit (int);' \
2882 cat >conftest.$ac_ext <<_ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -z "$ac_c_werror_flag"
2908 || test ! -s conftest.err'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_c_werror_flag"
2953 || test ! -s conftest.err'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2974 if test -n "$ac_declaration"; then
2975 echo '#ifdef __cplusplus' >>confdefs.h
2976 echo $ac_declaration >>confdefs.h
2977 echo '#endif' >>confdefs.h
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 if test "$GCC" != "yes"
2994 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2995 echo "$as_me: error: gcc required but not found" >&2;}
2996 { (exit 1); exit 1; }; }
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3004 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3005 # On Suns, sometimes $CPP names a directory.
3006 if test -n "$CPP" && test -d "$CPP"; then
3009 if test -z "$CPP"; then
3010 if test "${ac_cv_prog_CPP+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 # Double quotes because CPP needs to be expanded
3014 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3017 for ac_c_preproc_warn_flag in '' yes
3019 # Use a header file that comes with gcc, so configuring glibc
3020 # with a fresh cross-compiler works.
3021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3022 # <limits.h> exists even on freestanding compilers.
3023 # On the NeXT, cc -E runs the code through the compiler's parser,
3024 # not just through cpp. "Syntax error" is here to catch this case.
3025 cat >conftest.$ac_ext <<_ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3032 # include <limits.h>
3034 # include <assert.h>
3038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3041 grep -v '^ *+' conftest.er1 >conftest.err
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } >/dev/null; then
3046 if test -s conftest.err; then
3047 ac_cpp_err=$ac_c_preproc_warn_flag
3048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3055 if test -z "$ac_cpp_err"; then
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 # Broken: fails on valid input.
3064 rm -f conftest.err conftest.$ac_ext
3066 # OK, works on sane cases. Now check whether non-existent headers
3067 # can be detected and how.
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 #include <ac_nonexistent.h>
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } >/dev/null; then
3084 if test -s conftest.err; then
3085 ac_cpp_err=$ac_c_preproc_warn_flag
3086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093 if test -z "$ac_cpp_err"; then
3094 # Broken: success on invalid input.
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 # Passes both tests.
3104 rm -f conftest.err conftest.$ac_ext
3107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3108 rm -f conftest.err conftest.$ac_ext
3109 if $ac_preproc_ok; then
3121 echo "$as_me:$LINENO: result: $CPP" >&5
3122 echo "${ECHO_T}$CPP" >&6
3124 for ac_c_preproc_warn_flag in '' yes
3126 # Use a header file that comes with gcc, so configuring glibc
3127 # with a fresh cross-compiler works.
3128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3129 # <limits.h> exists even on freestanding compilers.
3130 # On the NeXT, cc -E runs the code through the compiler's parser,
3131 # not just through cpp. "Syntax error" is here to catch this case.
3132 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3139 # include <limits.h>
3141 # include <assert.h>
3145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3148 grep -v '^ *+' conftest.er1 >conftest.err
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev/null; then
3153 if test -s conftest.err; then
3154 ac_cpp_err=$ac_c_preproc_warn_flag
3155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3162 if test -z "$ac_cpp_err"; then
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 # Broken: fails on valid input.
3171 rm -f conftest.err conftest.$ac_ext
3173 # OK, works on sane cases. Now check whether non-existent headers
3174 # can be detected and how.
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181 #include <ac_nonexistent.h>
3183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } >/dev/null; then
3191 if test -s conftest.err; then
3192 ac_cpp_err=$ac_c_preproc_warn_flag
3193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3200 if test -z "$ac_cpp_err"; then
3201 # Broken: success on invalid input.
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 # Passes both tests.
3211 rm -f conftest.err conftest.$ac_ext
3214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3215 rm -f conftest.err conftest.$ac_ext
3216 if $ac_preproc_ok; then
3219 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 if test "$GXX" != "yes"
3234 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3235 echo "$as_me: error: g++ required but not found" >&2;}
3236 { (exit 1); exit 1; }; }
3239 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3240 if test "$gccmajor" -lt "3"
3242 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3243 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3244 { (exit 1); exit 1; }; }
3247 echo "$as_me:$LINENO: checking for GNU make" >&5
3248 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3249 if test "${_cv_gnu_make_command+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 _cv_gnu_make_command='' ;
3253 for a in "$MAKE" make gmake gnumake ; do
3254 if test -z "$a" ; then continue ; fi ;
3255 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3256 _cv_gnu_make_command=$a ;
3262 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3263 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3264 if test "x$_cv_gnu_make_command" != "x" ; then
3268 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3269 echo "${ECHO_T}\"Not found\"" >&6;
3273 if test -z "$_cv_gnu_make_command"
3275 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3276 echo "$as_me: error: GNU Make required but not found" >&2;}
3277 { (exit 1); exit 1; }; }
3281 echo "$as_me:$LINENO: checking " >&5
3282 echo $ECHO_N "checking ... $ECHO_C" >&6
3283 if test "${ac_cv_has_flex+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 for ac_prog in flex lex
3288 # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy $ac_prog; ac_word=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_LEX+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 if test -n "$LEX"; then
3296 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_LEX="$ac_prog"
3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 if test -n "$LEX"; then
3316 echo "$as_me:$LINENO: result: $LEX" >&5
3317 echo "${ECHO_T}$LEX" >&6
3319 echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3323 test -n "$LEX" && break
3325 test -n "$LEX" || LEX=":"
3327 if test -z "$LEXLIB"
3329 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3330 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3331 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 ac_check_lib_save_LIBS=$LIBS
3336 cat >conftest.$ac_ext <<_ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3343 /* Override any gcc2 internal prototype to avoid an error. */
3347 /* We use char because int might match the return type of a gcc2
3348 builtin and then its argument prototype would still apply. */
3358 rm -f conftest.$ac_objext conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360 (eval $ac_link) 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -z "$ac_c_werror_flag"
3368 || test ! -s conftest.err'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try='test -s conftest$ac_exeext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_lib_fl_yywrap=yes
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 ac_cv_lib_fl_yywrap=no
3387 rm -f conftest.err conftest.$ac_objext \
3388 conftest$ac_exeext conftest.$ac_ext
3389 LIBS=$ac_check_lib_save_LIBS
3391 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3392 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3393 if test $ac_cv_lib_fl_yywrap = yes; then
3396 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3397 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3398 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 ac_check_lib_save_LIBS=$LIBS
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3410 /* Override any gcc2 internal prototype to avoid an error. */
3414 /* We use char because int might match the return type of a gcc2
3415 builtin and then its argument prototype would still apply. */
3425 rm -f conftest.$ac_objext conftest$ac_exeext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3427 (eval $ac_link) 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag"
3435 || test ! -s conftest.err'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest$ac_exeext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_cv_lib_l_yywrap=yes
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 ac_cv_lib_l_yywrap=no
3454 rm -f conftest.err conftest.$ac_objext \
3455 conftest$ac_exeext conftest.$ac_ext
3456 LIBS=$ac_check_lib_save_LIBS
3458 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3459 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3460 if test $ac_cv_lib_l_yywrap = yes; then
3468 if test "x$LEX" != "x:"; then
3469 echo "$as_me:$LINENO: checking lex output file root" >&5
3470 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3471 if test "${ac_cv_prog_lex_root+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 # The minimal lex program is just a single line: %%. But some broken lexes
3475 # (Solaris, I think it was) want two %% lines, so accommodate them.
3476 cat >conftest.l <<_ACEOF
3480 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3481 (eval $LEX conftest.l) 2>&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }
3485 if test -f lex.yy.c; then
3486 ac_cv_prog_lex_root=lex.yy
3487 elif test -f lexyy.c; then
3488 ac_cv_prog_lex_root=lexyy
3490 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3491 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3492 { (exit 1); exit 1; }; }
3495 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3496 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3498 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3500 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3501 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3502 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 # POSIX says lex can declare yytext either as a pointer or an array; the
3506 # default is implementation-dependent. Figure out which it is, since
3507 # not all implementations provide the %pointer and %array declarations.
3508 ac_cv_prog_lex_yytext_pointer=no
3509 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3511 LIBS="$LIBS $LEXLIB"
3512 cat >conftest.$ac_ext <<_ACEOF
3513 `cat $LEX_OUTPUT_ROOT.c`
3515 rm -f conftest.$ac_objext conftest$ac_exeext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3517 (eval $ac_link) 2>conftest.er1
3519 grep -v '^ *+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_c_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest$ac_exeext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_cv_prog_lex_yytext_pointer=yes
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3543 rm -f conftest.err conftest.$ac_objext \
3544 conftest$ac_exeext conftest.$ac_ext
3546 rm -f "${LEX_OUTPUT_ROOT}.c"
3549 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3550 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3551 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3553 cat >>confdefs.h <<\_ACEOF
3554 #define YYTEXT_POINTER 1
3562 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3563 echo "${ECHO_T}$ac_cv_has_flex" >&6
3564 if test "$LEX" != "flex"; then
3565 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3566 echo "$as_me: error: flex not found but required" >&2;}
3567 { (exit 1); exit 1; }; }
3573 echo "$as_me:$LINENO: checking " >&5
3574 echo $ECHO_N "checking ... $ECHO_C" >&6
3575 if test "${ac_cv_has_bison+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 for ac_prog in 'bison -y' byacc
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_YACC+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test -n "$YACC"; then
3588 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_YACC="$ac_prog"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 YACC=$ac_cv_prog_YACC
3607 if test -n "$YACC"; then
3608 echo "$as_me:$LINENO: result: $YACC" >&5
3609 echo "${ECHO_T}$YACC" >&6
3611 echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3615 test -n "$YACC" && break
3617 test -n "$YACC" || YACC="yacc"
3621 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3622 echo "${ECHO_T}$ac_cv_has_bison" >&6
3623 if test "$YACC" != "bison -y"; then
3624 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3625 echo "$as_me: error: bison not found but required" >&2;}
3626 { (exit 1); exit 1; }; }
3632 # Check whether --enable-shared or --disable-shared was given.
3633 if test "${enable_shared+set}" = set; then
3634 enableval="$enable_shared"
3635 p=${PACKAGE-default}
3637 yes) enable_shared=yes ;;
3638 no) enable_shared=no ;;
3641 # Look at the argument we got. We use all the common list separators.
3642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3643 for pkg in $enableval; do
3645 if test "X$pkg" = "X$p"; then
3656 # Check whether --enable-static or --disable-static was given.
3657 if test "${enable_static+set}" = set; then
3658 enableval="$enable_static"
3659 p=${PACKAGE-default}
3661 yes) enable_static=yes ;;
3662 no) enable_static=no ;;
3665 # Look at the argument we got. We use all the common list separators.
3666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3667 for pkg in $enableval; do
3669 if test "X$pkg" = "X$p"; then
3680 # Check whether --enable-fast-install or --disable-fast-install was given.
3681 if test "${enable_fast_install+set}" = set; then
3682 enableval="$enable_fast_install"
3683 p=${PACKAGE-default}
3685 yes) enable_fast_install=yes ;;
3686 no) enable_fast_install=no ;;
3688 enable_fast_install=no
3689 # Look at the argument we got. We use all the common list separators.
3690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3691 for pkg in $enableval; do
3693 if test "X$pkg" = "X$p"; then
3694 enable_fast_install=yes
3701 enable_fast_install=yes
3704 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3705 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3706 if test "${lt_cv_path_SED+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 # Loop through the user's path and test for sed and gsed.
3710 # Then use that list of sed's as ones to test for truncation.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir=.
3716 for lt_ac_prog in sed gsed; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3719 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3726 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3727 # along with /bin/sed that truncates output.
3728 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3729 test ! -f $lt_ac_sed && break
3730 cat /dev/null > conftest.in
3732 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3733 # Check for GNU sed and select it if it is found.
3734 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3735 lt_cv_path_SED=$lt_ac_sed
3739 cat conftest.in conftest.in >conftest.tmp
3740 mv conftest.tmp conftest.in
3741 cp conftest.in conftest.nl
3743 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3744 cmp -s conftest.out conftest.nl || break
3745 # 10000 chars as input seems more than enough
3746 test $lt_ac_count -gt 10 && break
3747 lt_ac_count=`expr $lt_ac_count + 1`
3748 if test $lt_ac_count -gt $lt_ac_max; then
3749 lt_ac_max=$lt_ac_count
3750 lt_cv_path_SED=$lt_ac_sed
3758 echo "$as_me:$LINENO: result: $SED" >&5
3759 echo "${ECHO_T}$SED" >&6
3761 echo "$as_me:$LINENO: checking for egrep" >&5
3762 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3763 if test "${ac_cv_prog_egrep+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3767 then ac_cv_prog_egrep='grep -E'
3768 else ac_cv_prog_egrep='egrep'
3771 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3772 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3773 EGREP=$ac_cv_prog_egrep
3777 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3778 if test "${with_gnu_ld+set}" = set; then
3779 withval="$with_gnu_ld"
3780 test "$withval" = no || with_gnu_ld=yes
3785 if test "$GCC" = yes; then
3786 # Check if gcc -print-prog-name=ld gives a path.
3787 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3788 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3791 # gcc leaves a trailing carriage return which upsets mingw
3792 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3794 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3797 # Accept absolute paths.
3799 re_direlt='/[^/][^/]*/\.\./'
3800 # Canonicalize the pathname of ld
3801 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3802 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3803 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3805 test -z "$LD" && LD="$ac_prog"
3808 # If it fails, then pretend we aren't using GCC.
3812 # If it is relative, then search for the first ld in PATH.
3816 elif test "$with_gnu_ld" = yes; then
3817 echo "$as_me:$LINENO: checking for GNU ld" >&5
3818 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3820 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3821 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3823 if test "${lt_cv_path_LD+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 if test -z "$LD"; then
3827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3828 for ac_dir in $PATH; do
3830 test -z "$ac_dir" && ac_dir=.
3831 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3832 lt_cv_path_LD="$ac_dir/$ac_prog"
3833 # Check to see if the program is GNU ld. I'd rather use --version,
3834 # but apparently some GNU ld's only accept -v.
3835 # Break only if it was the GNU/non-GNU ld that we prefer.
3836 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3837 *GNU* | *'with BFD'*)
3838 test "$with_gnu_ld" != no && break
3841 test "$with_gnu_ld" != yes && break
3848 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3853 if test -n "$LD"; then
3854 echo "$as_me:$LINENO: result: $LD" >&5
3855 echo "${ECHO_T}$LD" >&6
3857 echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3860 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3861 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3862 { (exit 1); exit 1; }; }
3863 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3864 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3865 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3869 case `$LD -v 2>&1 </dev/null` in
3870 *GNU* | *'with BFD'*)
3871 lt_cv_prog_gnu_ld=yes
3874 lt_cv_prog_gnu_ld=no
3878 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3879 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3880 with_gnu_ld=$lt_cv_prog_gnu_ld
3883 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3884 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3885 if test "${lt_cv_ld_reload_flag+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 lt_cv_ld_reload_flag='-r'
3890 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3891 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3892 reload_flag=$lt_cv_ld_reload_flag
3893 case $reload_flag in
3895 *) reload_flag=" $reload_flag" ;;
3897 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3900 if test "$GCC" = yes; then
3901 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3903 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3908 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3909 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3910 if test "${lt_cv_path_NM+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 if test -n "$NM"; then
3914 # Let the user override the test.
3917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3918 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3920 test -z "$ac_dir" && ac_dir=.
3921 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3922 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3923 # Check to see if the nm accepts a BSD-compat flag.
3924 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3925 # nm: unknown option "B" ignored
3926 # Tru64's nm complains that /dev/null is an invalid object file
3927 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3928 */dev/null* | *'Invalid file or object type'*)
3929 lt_cv_path_NM="$tmp_nm -B"
3933 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3935 lt_cv_path_NM="$tmp_nm -p"
3939 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3940 continue # so that we can try to find one that supports BSD flags
3947 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3950 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3951 echo "${ECHO_T}$lt_cv_path_NM" >&6
3954 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3955 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3957 if test "$LN_S" = "ln -s"; then
3958 echo "$as_me:$LINENO: result: yes" >&5
3959 echo "${ECHO_T}yes" >&6
3961 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3962 echo "${ECHO_T}no, using $LN_S" >&6
3965 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3966 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3967 if test "${lt_cv_deplibs_check_method+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 lt_cv_file_magic_cmd='$MAGIC_CMD'
3971 lt_cv_file_magic_test_file=
3972 lt_cv_deplibs_check_method='unknown'
3973 # Need to set the preceding variable on all platforms that support
3974 # interlibrary dependencies.
3975 # 'none' -- dependencies not supported.
3976 # `unknown' -- same as none, but documents that we really don't know.
3977 # 'pass_all' -- all dependencies passed with no checks.
3978 # 'test_compile' -- check by making test program.
3979 # 'file_magic [[regex]]' -- check by looking for files in library path
3980 # which responds to the $file_magic_cmd with a given extended regex.
3981 # If you have `file' or equivalent on your system and you're not sure
3982 # whether `pass_all' will *always* work, you probably want this one.
3986 lt_cv_deplibs_check_method=pass_all
3990 lt_cv_deplibs_check_method=pass_all
3994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3995 lt_cv_file_magic_cmd='/usr/bin/file -L'
3996 lt_cv_file_magic_test_file=/shlib/libc.so
4000 # func_win32_libid is a shell function defined in ltmain.sh
4001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4002 lt_cv_file_magic_cmd='func_win32_libid'
4006 # Base MSYS/MinGW do not provide the 'file' command needed by
4007 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4008 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4009 lt_cv_file_magic_cmd='$OBJDUMP -f'
4012 darwin* | rhapsody*)
4013 lt_cv_deplibs_check_method=pass_all
4016 freebsd* | kfreebsd*-gnu)
4017 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4020 # Not sure whether the presence of OpenBSD here was a mistake.
4021 # Let's accept both of them until this is cleared up.
4022 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4023 lt_cv_file_magic_cmd=/usr/bin/file
4024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4028 lt_cv_deplibs_check_method=pass_all
4033 lt_cv_deplibs_check_method=pass_all
4036 hpux10.20* | hpux11*)
4037 lt_cv_file_magic_cmd=/usr/bin/file
4040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4041 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4044 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]'
4045 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4049 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4054 irix5* | irix6* | nonstopux*)
4056 *-32|*"-32 ") libmagic=32-bit;;
4057 *-n32|*"-n32 ") libmagic=N32;;
4058 *-64|*"-64 ") libmagic=64-bit;;
4059 *) libmagic=never-match;;
4061 lt_cv_deplibs_check_method=pass_all
4064 # This must be Linux ELF.
4066 lt_cv_deplibs_check_method=pass_all
4070 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4079 lt_cv_file_magic_cmd=/usr/bin/file
4080 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4084 lt_cv_deplibs_check_method=unknown
4088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4095 osf3* | osf4* | osf5*)
4096 lt_cv_deplibs_check_method=pass_all
4100 lt_cv_deplibs_check_method=pass_all
4104 lt_cv_deplibs_check_method=pass_all
4107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4108 case $host_vendor in
4110 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]'
4111 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4114 lt_cv_deplibs_check_method=pass_all
4117 lt_cv_file_magic_cmd='/bin/file'
4118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4121 lt_cv_file_magic_cmd='/bin/file'
4122 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4123 lt_cv_file_magic_test_file=/lib/libc.so
4126 lt_cv_deplibs_check_method=pass_all
4131 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4132 lt_cv_deplibs_check_method=pass_all
4137 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4138 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4139 file_magic_cmd=$lt_cv_file_magic_cmd
4140 deplibs_check_method=$lt_cv_deplibs_check_method
4141 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4146 # If no C compiler was specified, use CC.
4149 # Allow CC to be a program name with arguments.
4152 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4153 if test "${enable_libtool_lock+set}" = set; then
4154 enableval="$enable_libtool_lock"
4157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4159 # Some flags need to be propagated to the compiler or linker for good
4163 # Find out which ABI we are using.
4164 echo 'int i;' > conftest.$ac_ext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166 (eval $ac_compile) 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; then
4170 case `/usr/bin/file conftest.$ac_objext` in
4182 # Find out which ABI we are using.
4183 echo '#line 4183 "configure"' > conftest.$ac_ext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; then
4189 if test "$lt_cv_prog_gnu_ld" = yes; then
4190 case `/usr/bin/file conftest.$ac_objext` in
4192 LD="${LD-ld} -melf32bsmip"
4195 LD="${LD-ld} -melf32bmipn32"
4198 LD="${LD-ld} -melf64bmip"
4202 case `/usr/bin/file conftest.$ac_objext` in
4218 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4219 # Find out which ABI we are using.
4220 echo 'int i;' > conftest.$ac_ext
4221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; then
4226 case "`/usr/bin/file conftest.o`" in
4230 LD="${LD-ld} -m elf_i386"
4232 ppc64-*linux*|powerpc64-*linux*)
4233 LD="${LD-ld} -m elf32ppclinux"
4236 LD="${LD-ld} -m elf_s390"
4239 LD="${LD-ld} -m elf32_sparc"
4246 LD="${LD-ld} -m elf_x86_64"
4248 ppc*-*linux*|powerpc*-*linux*)
4249 LD="${LD-ld} -m elf64ppc"
4252 LD="${LD-ld} -m elf64_s390"
4255 LD="${LD-ld} -m elf64_sparc"
4265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4266 SAVE_CFLAGS="$CFLAGS"
4267 CFLAGS="$CFLAGS -belf"
4268 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4269 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4270 if test "${lt_cv_cc_needs_belf+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279 cat >conftest.$ac_ext <<_ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4296 (eval $ac_link) 2>conftest.er1
4298 grep -v '^ *+' conftest.er1 >conftest.err
4300 cat conftest.err >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } &&
4303 { ac_try='test -z "$ac_c_werror_flag"
4304 || test ! -s conftest.err'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; } &&
4310 { ac_try='test -s conftest$ac_exeext'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 lt_cv_cc_needs_belf=yes
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 lt_cv_cc_needs_belf=no
4323 rm -f conftest.err conftest.$ac_objext \
4324 conftest$ac_exeext conftest.$ac_ext
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4333 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4334 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4335 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4336 CFLAGS="$SAVE_CFLAGS"
4342 need_locks="$enable_libtool_lock"
4346 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4348 if test "${ac_cv_header_stdc+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 cat >conftest.$ac_ext <<_ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4370 rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>conftest.er1
4374 grep -v '^ *+' conftest.er1 >conftest.err
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try='test -z "$ac_c_werror_flag"
4380 || test ! -s conftest.err'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; } &&
4386 { ac_try='test -s conftest.$ac_objext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_cv_header_stdc=yes
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4397 ac_cv_header_stdc=no
4399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 if test $ac_cv_header_stdc = yes; then
4402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 $EGREP "memchr" >/dev/null 2>&1; then
4416 ac_cv_header_stdc=no
4422 if test $ac_cv_header_stdc = yes; then
4423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424 cat >conftest.$ac_ext <<_ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4434 $EGREP "free" >/dev/null 2>&1; then
4437 ac_cv_header_stdc=no
4443 if test $ac_cv_header_stdc = yes; then
4444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4445 if test "$cross_compiling" = yes; then
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4455 #if ((' ' & 0x0FF) == 0x020)
4456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4459 # define ISLOWER(c) \
4460 (('a' <= (c) && (c) <= 'i') \
4461 || ('j' <= (c) && (c) <= 'r') \
4462 || ('s' <= (c) && (c) <= 'z'))
4463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4471 for (i = 0; i < 256; i++)
4472 if (XOR (islower (i), ISLOWER (i))
4473 || toupper (i) != TOUPPER (i))
4478 rm -f conftest$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4491 echo "$as_me: program exited with status $ac_status" >&5
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4496 ac_cv_header_stdc=no
4498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4503 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4504 if test $ac_cv_header_stdc = yes; then
4506 cat >>confdefs.h <<\_ACEOF
4507 #define STDC_HEADERS 1
4512 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4522 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4523 inttypes.h stdint.h unistd.h
4525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4526 echo "$as_me:$LINENO: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 cat >conftest.$ac_ext <<_ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4539 #include <$ac_header>
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>conftest.er1
4545 grep -v '^ *+' conftest.er1 >conftest.err
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try='test -z "$ac_c_werror_flag"
4551 || test ! -s conftest.err'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 eval "$as_ac_Header=yes"
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 eval "$as_ac_Header=no"
4570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4575 cat >>confdefs.h <<_ACEOF
4576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585 for ac_header in dlfcn.h
4587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4589 echo "$as_me:$LINENO: checking for $ac_header" >&5
4590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4597 # Is the header compilable?
4598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4600 cat >conftest.$ac_ext <<_ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 $ac_includes_default
4607 #include <$ac_header>
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_header_compiler=yes
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_header_compiler=no
4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4640 echo "${ECHO_T}$ac_header_compiler" >&6
4642 # Is the header present?
4643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4645 cat >conftest.$ac_ext <<_ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 #include <$ac_header>
4653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4656 grep -v '^ *+' conftest.er1 >conftest.err
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } >/dev/null; then
4661 if test -s conftest.err; then
4662 ac_cpp_err=$ac_c_preproc_warn_flag
4663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4670 if test -z "$ac_cpp_err"; then
4671 ac_header_preproc=yes
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ac_header_preproc=no
4678 rm -f conftest.err conftest.$ac_ext
4679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4680 echo "${ECHO_T}$ac_header_preproc" >&6
4682 # So? What about this header?
4683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4689 ac_header_preproc=yes
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4706 ## ----------------------------------- ##
4707 ## Report this to llvmbugs@cs.uiuc.edu ##
4708 ## ----------------------------------- ##
4711 sed "s/^/$as_me: WARNING: /" >&2
4714 echo "$as_me:$LINENO: checking for $ac_header" >&5
4715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 eval "$as_ac_Header=\$ac_header_preproc"
4721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4726 cat >>confdefs.h <<_ACEOF
4727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4736 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4737 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4738 (test "X$CXX" != "Xg++"))) ; then
4740 ac_cpp='$CXXCPP $CPPFLAGS'
4741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4744 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4745 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4746 if test -z "$CXXCPP"; then
4747 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 # Double quotes because CXXCPP needs to be expanded
4751 for CXXCPP in "$CXX -E" "/lib/cpp"
4754 for ac_cxx_preproc_warn_flag in '' yes
4756 # Use a header file that comes with gcc, so configuring glibc
4757 # with a fresh cross-compiler works.
4758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4759 # <limits.h> exists even on freestanding compilers.
4760 # On the NeXT, cc -E runs the code through the compiler's parser,
4761 # not just through cpp. "Syntax error" is here to catch this case.
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4769 # include <limits.h>
4771 # include <assert.h>
4775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4778 grep -v '^ *+' conftest.er1 >conftest.err
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } >/dev/null; then
4783 if test -s conftest.err; then
4784 ac_cpp_err=$ac_cxx_preproc_warn_flag
4785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4792 if test -z "$ac_cpp_err"; then
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4798 # Broken: fails on valid input.
4801 rm -f conftest.err conftest.$ac_ext
4803 # OK, works on sane cases. Now check whether non-existent headers
4804 # can be detected and how.
4805 cat >conftest.$ac_ext <<_ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #include <ac_nonexistent.h>
4813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } >/dev/null; then
4821 if test -s conftest.err; then
4822 ac_cpp_err=$ac_cxx_preproc_warn_flag
4823 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4830 if test -z "$ac_cpp_err"; then
4831 # Broken: success on invalid input.
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 # Passes both tests.
4841 rm -f conftest.err conftest.$ac_ext
4844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845 rm -f conftest.err conftest.$ac_ext
4846 if $ac_preproc_ok; then
4851 ac_cv_prog_CXXCPP=$CXXCPP
4854 CXXCPP=$ac_cv_prog_CXXCPP
4856 ac_cv_prog_CXXCPP=$CXXCPP
4858 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4859 echo "${ECHO_T}$CXXCPP" >&6
4861 for ac_cxx_preproc_warn_flag in '' yes
4863 # Use a header file that comes with gcc, so configuring glibc
4864 # with a fresh cross-compiler works.
4865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866 # <limits.h> exists even on freestanding compilers.
4867 # On the NeXT, cc -E runs the code through the compiler's parser,
4868 # not just through cpp. "Syntax error" is here to catch this case.
4869 cat >conftest.$ac_ext <<_ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4876 # include <limits.h>
4878 # include <assert.h>
4882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4885 grep -v '^ *+' conftest.er1 >conftest.err
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null; then
4890 if test -s conftest.err; then
4891 ac_cpp_err=$ac_cxx_preproc_warn_flag
4892 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4899 if test -z "$ac_cpp_err"; then
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905 # Broken: fails on valid input.
4908 rm -f conftest.err conftest.$ac_ext
4910 # OK, works on sane cases. Now check whether non-existent headers
4911 # can be detected and how.
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 #include <ac_nonexistent.h>
4920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4923 grep -v '^ *+' conftest.er1 >conftest.err
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } >/dev/null; then
4928 if test -s conftest.err; then
4929 ac_cpp_err=$ac_cxx_preproc_warn_flag
4930 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4937 if test -z "$ac_cpp_err"; then
4938 # Broken: success on invalid input.
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 # Passes both tests.
4948 rm -f conftest.err conftest.$ac_ext
4951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4952 rm -f conftest.err conftest.$ac_ext
4953 if $ac_preproc_ok; then
4956 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4957 See \`config.log' for more details." >&5
4958 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4959 See \`config.log' for more details." >&2;}
4960 { (exit 1); exit 1; }; }
4964 ac_cpp='$CXXCPP $CPPFLAGS'
4965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4973 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4974 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4976 if test -n "$ac_tool_prefix"; then
4977 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981 echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983 if test "${ac_cv_prog_F77+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 if test -n "$F77"; then
4987 ac_cv_prog_F77="$F77" # Let the user override the test.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 if test -n "$F77"; then
5007 echo "$as_me:$LINENO: result: $F77" >&5
5008 echo "${ECHO_T}$F77" >&6
5010 echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5014 test -n "$F77" && break
5017 if test -z "$F77"; then
5019 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy $ac_prog; ac_word=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 if test -n "$ac_ct_F77"; then
5029 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_ac_ct_F77="$ac_prog"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5048 if test -n "$ac_ct_F77"; then
5049 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5050 echo "${ECHO_T}$ac_ct_F77" >&6
5052 echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5056 test -n "$ac_ct_F77" && break
5063 # Provide some information about the compiler.
5064 echo "$as_me:5064:" \
5065 "checking for Fortran 77 compiler version" >&5
5066 ac_compiler=`set X $ac_compile; echo $2`
5067 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5068 (eval $ac_compiler --version </dev/null >&5) 2>&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }
5072 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5073 (eval $ac_compiler -v </dev/null >&5) 2>&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }
5077 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5078 (eval $ac_compiler -V </dev/null >&5) 2>&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }
5084 # If we don't use `.F' as extension, the preprocessor is not run on the
5085 # input file. (Note that this only needs to work for GNU compilers.)
5088 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5089 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5090 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 cat >conftest.$ac_ext <<_ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>conftest.er1
5105 grep -v '^ *+' conftest.er1 >conftest.err
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -z "$ac_f77_werror_flag"
5111 || test ! -s conftest.err'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; } &&
5117 { ac_try='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5131 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5134 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5135 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5137 ac_test_FFLAGS=${FFLAGS+set}
5138 ac_save_FFLAGS=$FFLAGS
5140 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5141 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5142 if test "${ac_cv_prog_f77_g+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153 (eval $ac_compile) 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -z "$ac_f77_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try='test -s conftest.$ac_objext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_prog_f77_g=yes
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5183 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5184 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5185 if test "$ac_test_FFLAGS" = set; then
5186 FFLAGS=$ac_save_FFLAGS
5187 elif test $ac_cv_prog_f77_g = yes; then
5188 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5194 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5201 G77=`test $ac_compiler_gnu = yes && echo yes`
5203 ac_cpp='$CPP $CPPFLAGS'
5204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5212 # find the maximum length of command line arguments
5213 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5214 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5215 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 # On DJGPP, this test can blow up pretty badly due to problems in libc
5224 # (any single argument exceeding 2000 bytes causes a buffer overrun
5225 # during glob expansion). Even if it were fixed, the result of this
5226 # check would be larger than it should be.
5227 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5231 # Under GNU Hurd, this test is not required because there is
5232 # no limit to the length of command line arguments.
5233 # Libtool will interpret -1 as no limit whatsoever
5234 lt_cv_sys_max_cmd_len=-1;
5238 # On Win9x/ME, this test blows up -- it succeeds, but takes
5239 # about 5 minutes as the teststring grows exponentially.
5240 # Worse, since 9x/ME are not pre-emptively multitasking,
5241 # you end up with a "frozen" computer, even though with patience
5242 # the test eventually succeeds (with a max line length of 256k).
5243 # Instead, let's just punt: use the minimum linelength reported by
5244 # all of the supported platforms: 8192 (on NT/2K/XP).
5245 lt_cv_sys_max_cmd_len=8192;
5249 # On AmigaOS with pdksh, this test takes hours, literally.
5250 # So we just punt and use a minimum line length of 8192.
5251 lt_cv_sys_max_cmd_len=8192;
5254 netbsd* | freebsd* | openbsd* | darwin* )
5255 # This has been around since 386BSD, at least. Likely further.
5256 if test -x /sbin/sysctl; then
5257 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5258 elif test -x /usr/sbin/sysctl; then
5259 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5261 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5263 # And add a safety zone
5264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5268 # If test is not a shell built-in, we'll probably end up computing a
5269 # maximum length that is only half of the actual maximum length, but
5271 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5272 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5273 = "XX$teststring") >/dev/null 2>&1 &&
5274 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5275 lt_cv_sys_max_cmd_len=$new_result &&
5276 test $i != 17 # 1/2 MB should be enough
5279 teststring=$teststring$teststring
5282 # Add a significant safety factor because C++ compilers can tack on massive
5283 # amounts of additional arguments before passing them to the linker.
5284 # It appears as though 1/2 is a usable value.
5285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5291 if test -n $lt_cv_sys_max_cmd_len ; then
5292 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5293 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5295 echo "$as_me:$LINENO: result: none" >&5
5296 echo "${ECHO_T}none" >&6
5302 # Check for command to grab the raw symbol name followed by C symbol from nm.
5303 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5304 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5305 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 # These are sane defaults that work on at least a few old systems.
5310 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5312 # Character class describing NM global symbol codes.
5313 symcode='[BCDEGRST]'
5315 # Regexp to match symbols that can be accessed directly from C.
5316 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5318 # Transform the above into a raw symbol and a C symbol.
5319 symxfrm='\1 \2\3 \3'
5321 # Transform an extracted symbol line into a proper C declaration
5322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5324 # Transform an extracted symbol line into symbol name and symbol address
5325 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'"
5327 # Define system-specific variables.
5332 cygwin* | mingw* | pw32*)
5333 symcode='[ABCDGISTW]'
5335 hpux*) # Its linker distinguishes data from code symbols
5336 if test "$host_cpu" = ia64; then
5337 symcode='[ABCDEGRST]'
5339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5340 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'"
5343 if test "$host_cpu" = ia64; then
5344 symcode='[ABCDGIRSTW]'
5345 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5346 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'"
5350 symcode='[BCDEGRST]'
5353 symcode='[BCDEGQRST]'
5363 # Handle CRLF in mingw tool chain
5367 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5371 # If we're using GNU nm, then use its standard symbol codes.
5372 case `$NM -V 2>&1` in
5373 *GNU* | *'with BFD'*)
5374 symcode='[ABCDGIRSTW]' ;;
5377 # Try without a prefix undercore, then with it.
5378 for ac_symprfx in "" "_"; do
5380 # Write the raw and C identifiers.
5381 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5383 # Check to see that the pipe works correctly.
5387 cat > conftest.$ac_ext <<EOF
5392 void nm_test_func(){}
5396 int main(){nm_test_var='a';nm_test_func();return(0);}
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; then
5404 # Now try to grab the symbols.
5406 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5407 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && test -s "$nlist"; then
5411 # Try sorting and uniquifying the output.
5412 if sort "$nlist" | uniq > "$nlist"T; then
5413 mv -f "$nlist"T "$nlist"
5418 # Make sure that we snagged all the symbols we need.
5419 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5420 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5421 cat <<EOF > conftest.$ac_ext
5427 # Now generate the symbol file.
5428 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5430 cat <<EOF >> conftest.$ac_ext
5431 #if defined (__STDC__) && __STDC__
5432 # define lt_ptr_t void *
5434 # define lt_ptr_t char *
5438 /* The mapping between symbol names and symbols. */
5443 lt_preloaded_symbols[] =
5446 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5447 cat <<\EOF >> conftest.$ac_ext
5455 # Now try linking the two files.
5456 mv conftest.$ac_objext conftstm.$ac_objext
5457 lt_save_LIBS="$LIBS"
5458 lt_save_CFLAGS="$CFLAGS"
5459 LIBS="conftstm.$ac_objext"
5460 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5462 (eval $ac_link) 2>&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5468 LIBS="$lt_save_LIBS"
5469 CFLAGS="$lt_save_CFLAGS"
5471 echo "cannot find nm_test_func in $nlist" >&5
5474 echo "cannot find nm_test_var in $nlist" >&5
5477 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5480 echo "$progname: failed program was:" >&5
5481 cat conftest.$ac_ext >&5
5483 rm -f conftest* conftst*
5485 # Do not use the global_symbol_pipe unless it works.
5486 if test "$pipe_works" = yes; then
5489 lt_cv_sys_global_symbol_pipe=
5495 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5496 lt_cv_sys_global_symbol_to_cdecl=
5498 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5499 echo "$as_me:$LINENO: result: failed" >&5
5500 echo "${ECHO_T}failed" >&6
5502 echo "$as_me:$LINENO: result: ok" >&5
5503 echo "${ECHO_T}ok" >&6
5506 echo "$as_me:$LINENO: checking for objdir" >&5
5507 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5508 if test "${lt_cv_objdir+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 rm -f .libs 2>/dev/null
5512 mkdir .libs 2>/dev/null
5513 if test -d .libs; then
5516 # MS-DOS does not allow filenames that begin with a dot.
5519 rmdir .libs 2>/dev/null
5521 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5522 echo "${ECHO_T}$lt_cv_objdir" >&6
5523 objdir=$lt_cv_objdir
5531 # AIX sometimes has problems with the GCC collect2 program. For some
5532 # reason, if we set the COLLECT_NAMES environment variable, the problems
5533 # vanish in a puff of smoke.
5534 if test "X${COLLECT_NAMES+set}" != Xset; then
5536 export COLLECT_NAMES
5541 # Sed substitution that helps us do robust quoting. It backslashifies
5542 # metacharacters that are still active within double-quoted strings.
5543 Xsed='sed -e s/^X//'
5544 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5546 # Same as above, but do not quote variable references.
5547 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5549 # Sed substitution to delay expansion of an escaped shell variable in a
5550 # double_quote_subst'ed string.
5551 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5553 # Sed substitution to avoid accidental globbing in evaled expressions
5554 no_glob_subst='s/\*/\\\*/g'
5561 can_build_shared=yes
5563 # All known linkers require a `.a' archive for static linking (except M$VC,
5564 # which needs '.lib').
5566 ltmain="$ac_aux_dir/ltmain.sh"
5567 ofile="$default_ofile"
5568 with_gnu_ld="$lt_cv_prog_gnu_ld"
5570 if test -n "$ac_tool_prefix"; then
5571 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5572 set dummy ${ac_tool_prefix}ar; ac_word=$2
5573 echo "$as_me:$LINENO: checking for $ac_word" >&5
5574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5575 if test "${ac_cv_prog_AR+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 if test -n "$AR"; then
5579 ac_cv_prog_AR="$AR" # Let the user override the test.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_AR="${ac_tool_prefix}ar"
5589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 if test -n "$AR"; then
5599 echo "$as_me:$LINENO: result: $AR" >&5
5600 echo "${ECHO_T}$AR" >&6
5602 echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6
5607 if test -z "$ac_cv_prog_AR"; then
5609 # Extract the first word of "ar", so it can be a program name with args.
5610 set dummy ar; ac_word=$2
5611 echo "$as_me:$LINENO: checking for $ac_word" >&5
5612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 if test -n "$ac_ct_AR"; then
5617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_ac_ct_AR="ar"
5627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5636 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5637 if test -n "$ac_ct_AR"; then
5638 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5639 echo "${ECHO_T}$ac_ct_AR" >&6
5641 echo "$as_me:$LINENO: result: no" >&5
5642 echo "${ECHO_T}no" >&6
5650 if test -n "$ac_tool_prefix"; then
5651 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5653 echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5655 if test "${ac_cv_prog_RANLIB+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 if test -n "$RANLIB"; then
5659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 RANLIB=$ac_cv_prog_RANLIB
5678 if test -n "$RANLIB"; then
5679 echo "$as_me:$LINENO: result: $RANLIB" >&5
5680 echo "${ECHO_T}$RANLIB" >&6
5682 echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6
5687 if test -z "$ac_cv_prog_RANLIB"; then
5688 ac_ct_RANLIB=$RANLIB
5689 # Extract the first word of "ranlib", so it can be a program name with args.
5690 set dummy ranlib; ac_word=$2
5691 echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5693 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 if test -n "$ac_ct_RANLIB"; then
5697 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706 ac_cv_prog_ac_ct_RANLIB="ranlib"
5707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5716 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5717 if test -n "$ac_ct_RANLIB"; then
5718 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5719 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5721 echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6
5725 RANLIB=$ac_ct_RANLIB
5727 RANLIB="$ac_cv_prog_RANLIB"
5730 if test -n "$ac_tool_prefix"; then
5731 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5732 set dummy ${ac_tool_prefix}strip; ac_word=$2
5733 echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735 if test "${ac_cv_prog_STRIP+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 if test -n "$STRIP"; then
5739 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 STRIP=$ac_cv_prog_STRIP
5758 if test -n "$STRIP"; then
5759 echo "$as_me:$LINENO: result: $STRIP" >&5
5760 echo "${ECHO_T}$STRIP" >&6
5762 echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6
5767 if test -z "$ac_cv_prog_STRIP"; then
5769 # Extract the first word of "strip", so it can be a program name with args.
5770 set dummy strip; ac_word=$2
5771 echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5773 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 if test -n "$ac_ct_STRIP"; then
5777 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_ac_ct_STRIP="strip"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5796 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5797 if test -n "$ac_ct_STRIP"; then
5798 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5799 echo "${ECHO_T}$ac_ct_STRIP" >&6
5801 echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6
5807 STRIP="$ac_cv_prog_STRIP"
5812 old_CFLAGS="$CFLAGS"
5814 # Set sane defaults for various variables
5815 test -z "$AR" && AR=ar
5816 test -z "$AR_FLAGS" && AR_FLAGS=cru
5817 test -z "$AS" && AS=as
5818 test -z "$CC" && CC=cc
5819 test -z "$LTCC" && LTCC=$CC
5820 test -z "$DLLTOOL" && DLLTOOL=dlltool
5821 test -z "$LD" && LD=ld
5822 test -z "$LN_S" && LN_S="ln -s"
5823 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5824 test -z "$NM" && NM=nm
5825 test -z "$SED" && SED=sed
5826 test -z "$OBJDUMP" && OBJDUMP=objdump
5827 test -z "$RANLIB" && RANLIB=:
5828 test -z "$STRIP" && STRIP=:
5829 test -z "$ac_objext" && ac_objext=o
5831 # Determine commands to create old-style static archives.
5832 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5833 old_postinstall_cmds='chmod 644 $oldlib'
5834 old_postuninstall_cmds=
5836 if test -n "$RANLIB"; then
5839 old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
5842 old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
5845 old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
5848 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5850 # Only perform the check for file, if the check method requires it
5851 case $deplibs_check_method in
5853 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5854 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5855 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5856 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5864 lt_save_MAGIC_CMD="$MAGIC_CMD"
5865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5866 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5867 for ac_dir in $ac_dummy; do
5869 test -z "$ac_dir" && ac_dir=.
5870 if test -f $ac_dir/${ac_tool_prefix}file; then
5871 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5872 if test -n "$file_magic_test_file"; then
5873 case $deplibs_check_method in
5875 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5877 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5878 $EGREP "$file_magic_regex" > /dev/null; then
5883 *** Warning: the command libtool uses to detect shared libraries,
5884 *** $file_magic_cmd, produces output that libtool cannot recognize.
5885 *** The result is that libtool may fail to recognize shared libraries
5886 *** as such. This will affect the creation of libtool libraries that
5887 *** depend on shared libraries, but programs linked with such libtool
5888 *** libraries will work regardless of this problem. Nevertheless, you
5889 *** may want to report the problem to your system manager and/or to
5890 *** bug-libtool@gnu.org
5900 MAGIC_CMD="$lt_save_MAGIC_CMD"
5905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5906 if test -n "$MAGIC_CMD"; then
5907 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5908 echo "${ECHO_T}$MAGIC_CMD" >&6
5910 echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6
5914 if test -z "$lt_cv_path_MAGIC_CMD"; then
5915 if test -n "$ac_tool_prefix"; then
5916 echo "$as_me:$LINENO: checking for file" >&5
5917 echo $ECHO_N "checking for file... $ECHO_C" >&6
5918 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5926 lt_save_MAGIC_CMD="$MAGIC_CMD"
5927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5928 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5929 for ac_dir in $ac_dummy; do
5931 test -z "$ac_dir" && ac_dir=.
5932 if test -f $ac_dir/file; then
5933 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5934 if test -n "$file_magic_test_file"; then
5935 case $deplibs_check_method in
5937 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5939 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5940 $EGREP "$file_magic_regex" > /dev/null; then
5945 *** Warning: the command libtool uses to detect shared libraries,
5946 *** $file_magic_cmd, produces output that libtool cannot recognize.
5947 *** The result is that libtool may fail to recognize shared libraries
5948 *** as such. This will affect the creation of libtool libraries that
5949 *** depend on shared libraries, but programs linked with such libtool
5950 *** libraries will work regardless of this problem. Nevertheless, you
5951 *** may want to report the problem to your system manager and/or to
5952 *** bug-libtool@gnu.org
5962 MAGIC_CMD="$lt_save_MAGIC_CMD"
5967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5968 if test -n "$MAGIC_CMD"; then
5969 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5970 echo "${ECHO_T}$MAGIC_CMD" >&6
5972 echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5988 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5989 if test "${enable_libtool_lock+set}" = set; then
5990 enableval="$enable_libtool_lock"
5993 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5996 # Check whether --with-pic or --without-pic was given.
5997 if test "${with_pic+set}" = set; then
6003 test -z "$pic_mode" && pic_mode=default
6005 # Use C for the default configuration in the libtool script
6009 ac_cpp='$CPP $CPPFLAGS'
6010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6015 # Source file extension for C test sources.
6018 # Object file extension for compiled C test sources.
6022 # Code to be used in simple compile tests
6023 lt_simple_compile_test_code="int some_variable = 0;\n"
6025 # Code to be used in simple link tests
6026 lt_simple_link_test_code='int main(){return(0);}\n'
6029 # If no C compiler was specified, use CC.
6032 # Allow CC to be a program name with arguments.
6037 # Check for any special shared library compilation flags.
6040 if test "$GCC" = no; then
6043 lt_prog_cc_shlib='-belf'
6047 if test -n "$lt_prog_cc_shlib"; then
6048 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6049 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6050 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6052 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6053 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6054 lt_cv_prog_cc_can_build_shared=no
6060 # Check to make sure the static flag actually works.
6062 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6063 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6064 if test "${lt_prog_compiler_static_works+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 lt_prog_compiler_static_works=no
6068 save_LDFLAGS="$LDFLAGS"
6069 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6070 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6072 # The compiler can only warn and ignore the option if not recognized
6073 # So say no if there are warnings
6074 if test -s conftest.err; then
6075 # Append any errors to the config.log.
6076 cat conftest.err 1>&5
6078 lt_prog_compiler_static_works=yes
6082 LDFLAGS="$save_LDFLAGS"
6085 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6086 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6088 if test x"$lt_prog_compiler_static_works" = xyes; then
6091 lt_prog_compiler_static=
6097 lt_prog_compiler_no_builtin_flag=
6099 if test "$GCC" = yes; then
6100 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6103 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6104 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6105 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 lt_cv_prog_compiler_rtti_exceptions=no
6109 ac_outfile=conftest.$ac_objext
6110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6111 lt_compiler_flag="-fno-rtti -fno-exceptions"
6112 # Insert the option either (1) after the last *FLAGS variable, or
6113 # (2) before a word containing "conftest.", or (3) at the end.
6114 # Note that $ac_compile itself does not contain backslashes and begins
6115 # with a dollar sign (not a hyphen), so the echo should work correctly.
6116 # The option is referenced via a variable to avoid confusing sed.
6117 lt_compile=`echo "$ac_compile" | $SED \
6118 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6120 -e 's:$: $lt_compiler_flag:'`
6121 (eval echo "\"\$as_me:6121: $lt_compile\"" >&5)
6122 (eval "$lt_compile" 2>conftest.err)
6124 cat conftest.err >&5
6125 echo "$as_me:6125: \$? = $ac_status" >&5
6126 if (exit $ac_status) && test -s "$ac_outfile"; then
6127 # The compiler can only warn and ignore the option if not recognized
6128 # So say no if there are warnings
6129 if test ! -s conftest.err; then
6130 lt_cv_prog_compiler_rtti_exceptions=yes
6136 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6137 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6139 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6140 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6147 lt_prog_compiler_wl=
6148 lt_prog_compiler_pic=
6149 lt_prog_compiler_static=
6151 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6152 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6154 if test "$GCC" = yes; then
6155 lt_prog_compiler_wl='-Wl,'
6156 lt_prog_compiler_static='-static'
6160 # All AIX code is PIC.
6161 if test "$host_cpu" = ia64; then
6162 # AIX 5 now supports IA64 processor
6163 lt_prog_compiler_static='-Bstatic'
6168 # FIXME: we need at least 68020 code to build shared libraries, but
6169 # adding the `-m68020' flag to GCC prevents building anything better,
6171 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6174 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6175 # PIC is the default for these OSes.
6178 mingw* | pw32* | os2*)
6179 # This hack is so that the source file can tell whether it is being
6180 # built for inclusion in a dll (and should export symbols for example).
6181 lt_prog_compiler_pic='-DDLL_EXPORT'
6184 darwin* | rhapsody*)
6185 # PIC is the default on this platform
6186 # Common symbols not allowed in MH_DYLIB files
6187 lt_prog_compiler_pic='-fno-common'
6191 # Just because we use GCC doesn't mean we suddenly get shared libraries
6192 # on systems that don't support them.
6193 lt_prog_compiler_can_build_shared=no
6198 if test -d /usr/nec; then
6199 lt_prog_compiler_pic=-Kconform_pic
6204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6211 lt_prog_compiler_pic='-fPIC'
6217 lt_prog_compiler_pic='-fPIC'
6221 # PORTME Check for flag to pass linker flags through the system compiler.
6224 lt_prog_compiler_wl='-Wl,'
6225 if test "$host_cpu" = ia64; then
6226 # AIX 5 now supports IA64 processor
6227 lt_prog_compiler_static='-Bstatic'
6229 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6233 # PIC is the default on this platform
6234 # Common symbols not allowed in MH_DYLIB files
6235 case "$cc_basename" in
6237 lt_prog_compiler_pic='-qnocommon'
6238 lt_prog_compiler_wl='-Wl,'
6243 mingw* | pw32* | os2*)
6244 # This hack is so that the source file can tell whether it is being
6245 # built for inclusion in a dll (and should export symbols for example).
6246 lt_prog_compiler_pic='-DDLL_EXPORT'
6249 hpux9* | hpux10* | hpux11*)
6250 lt_prog_compiler_wl='-Wl,'
6251 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6258 lt_prog_compiler_pic='+Z'
6261 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6262 lt_prog_compiler_static='${wl}-a ${wl}archive'
6265 irix5* | irix6* | nonstopux*)
6266 lt_prog_compiler_wl='-Wl,'
6267 # PIC (with -KPIC) is the default.
6268 lt_prog_compiler_static='-non_shared'
6272 lt_prog_compiler_pic='-KPIC'
6273 lt_prog_compiler_static='-Bstatic'
6279 lt_prog_compiler_wl='-Wl,'
6280 lt_prog_compiler_pic='-KPIC'
6281 lt_prog_compiler_static='-static'
6284 lt_prog_compiler_wl='-Wl,'
6285 # All Alpha code is PIC.
6286 lt_prog_compiler_static='-non_shared'
6291 osf3* | osf4* | osf5*)
6292 lt_prog_compiler_wl='-Wl,'
6293 # All OSF/1 code is PIC.
6294 lt_prog_compiler_static='-non_shared'
6298 lt_prog_compiler_pic='-Kpic'
6299 lt_prog_compiler_static='-dn'
6303 lt_prog_compiler_wl='-Wl,'
6304 lt_prog_compiler_pic='-KPIC'
6305 lt_prog_compiler_static='-Bstatic'
6309 lt_prog_compiler_wl='-Qoption ld '
6310 lt_prog_compiler_pic='-PIC'
6311 lt_prog_compiler_static='-Bstatic'
6314 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6315 lt_prog_compiler_wl='-Wl,'
6316 lt_prog_compiler_pic='-KPIC'
6317 lt_prog_compiler_static='-Bstatic'
6321 if test -d /usr/nec ;then
6322 lt_prog_compiler_pic='-Kconform_pic'
6323 lt_prog_compiler_static='-Bstatic'
6328 lt_prog_compiler_pic='-pic'
6329 lt_prog_compiler_static='-Bstatic'
6333 lt_prog_compiler_can_build_shared=no
6338 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6339 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6342 # Check to make sure the PIC flag actually works.
6344 if test -n "$lt_prog_compiler_pic"; then
6346 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6347 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6348 if test "${lt_prog_compiler_pic_works+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 lt_prog_compiler_pic_works=no
6352 ac_outfile=conftest.$ac_objext
6353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6354 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6355 # Insert the option either (1) after the last *FLAGS variable, or
6356 # (2) before a word containing "conftest.", or (3) at the end.
6357 # Note that $ac_compile itself does not contain backslashes and begins
6358 # with a dollar sign (not a hyphen), so the echo should work correctly.
6359 # The option is referenced via a variable to avoid confusing sed.
6360 lt_compile=`echo "$ac_compile" | $SED \
6361 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6363 -e 's:$: $lt_compiler_flag:'`
6364 (eval echo "\"\$as_me:6364: $lt_compile\"" >&5)
6365 (eval "$lt_compile" 2>conftest.err)
6367 cat conftest.err >&5
6368 echo "$as_me:6368: \$? = $ac_status" >&5
6369 if (exit $ac_status) && test -s "$ac_outfile"; then
6370 # The compiler can only warn and ignore the option if not recognized
6371 # So say no if there are warnings
6372 if test ! -s conftest.err; then
6373 lt_prog_compiler_pic_works=yes
6379 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6380 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6382 if test x"$lt_prog_compiler_pic_works" = xyes; then
6383 case $lt_prog_compiler_pic in
6385 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6388 lt_prog_compiler_pic=
6389 lt_prog_compiler_can_build_shared=no
6394 # For platforms which do not support PIC, -DPIC is meaningless:
6396 lt_prog_compiler_pic=
6399 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6403 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6404 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6405 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 lt_cv_prog_compiler_c_o=no
6409 $rm -r conftest 2>/dev/null
6413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6415 lt_compiler_flag="-o out/conftest2.$ac_objext"
6416 # Insert the option either (1) after the last *FLAGS variable, or
6417 # (2) before a word containing "conftest.", or (3) at the end.
6418 # Note that $ac_compile itself does not contain backslashes and begins
6419 # with a dollar sign (not a hyphen), so the echo should work correctly.
6420 lt_compile=`echo "$ac_compile" | $SED \
6421 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6423 -e 's:$: $lt_compiler_flag:'`
6424 (eval echo "\"\$as_me:6424: $lt_compile\"" >&5)
6425 (eval "$lt_compile" 2>out/conftest.err)
6427 cat out/conftest.err >&5
6428 echo "$as_me:6428: \$? = $ac_status" >&5
6429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6431 # The compiler can only warn and ignore the option if not recognized
6432 # So say no if there are warnings
6433 if test ! -s out/conftest.err; then
6434 lt_cv_prog_compiler_c_o=yes
6439 # SGI C++ compiler will create directory out/ii_files/ for
6440 # template instantiation
6441 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6442 $rm out/* && rmdir out
6448 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6449 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6452 hard_links="nottested"
6453 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6454 # do not overwrite the value of need_locks provided by the user
6455 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6456 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6459 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6461 ln conftest.a conftest.b 2>&5 || hard_links=no
6462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6463 echo "$as_me:$LINENO: result: $hard_links" >&5
6464 echo "${ECHO_T}$hard_links" >&6
6465 if test "$hard_links" = no; then
6466 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6467 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6474 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6475 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6478 allow_undefined_flag=
6479 enable_shared_with_static_runtimes=no
6481 archive_expsym_cmds=
6482 old_archive_From_new_cmds=
6483 old_archive_from_expsyms_cmds=
6484 export_dynamic_flag_spec=
6485 whole_archive_flag_spec=
6486 thread_safe_flag_spec=
6487 hardcode_libdir_flag_spec=
6488 hardcode_libdir_flag_spec_ld=
6489 hardcode_libdir_separator=
6492 hardcode_shlibpath_var=unsupported
6493 link_all_deplibs=unknown
6494 hardcode_automatic=no
6497 always_export_symbols=no
6498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6499 # include_expsyms should be a list of space-separated symbols to be *always*
6500 # included in the symbol list
6502 # exclude_expsyms can be an extended regexp of symbols to exclude
6503 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6504 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6505 # as well as any symbol that contains `d'.
6506 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6507 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6508 # platforms (ab)use it in PIC code, but their linkers get confused if
6509 # the symbol is explicitly referenced. Since portable code cannot
6510 # rely on this symbol name, it's probably fine to never include it in
6511 # preloaded symbol tables.
6512 extract_expsyms_cmds=
6515 cygwin* | mingw* | pw32*)
6516 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6517 # When not using gcc, we currently assume that we are using
6518 # Microsoft Visual C++.
6519 if test "$GCC" != yes; then
6529 if test "$with_gnu_ld" = yes; then
6530 # If archive_cmds runs LD, not CC, wlarc should be empty
6533 # See if GNU ld supports shared libraries.
6535 aix3* | aix4* | aix5*)
6536 # On AIX/PPC, the GNU linker is very broken
6537 if test "$host_cpu" != ia64; then
6541 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6542 *** to be unable to reliably create shared libraries on AIX.
6543 *** Therefore, libtool is disabling shared libraries support. If you
6544 *** really care for shared libraries, you may want to modify your PATH
6545 *** so that a non-GNU linker is found, and then restart.
6552 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)'
6553 hardcode_libdir_flag_spec='-L$libdir'
6554 hardcode_minus_L=yes
6556 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6557 # that the semantics of dynamic libraries on AmigaOS, at least up
6558 # to version 4, is to share data among multiple programs linked
6559 # with the same dynamic library. Since this doesn't match the
6560 # behavior of shared libraries on other platforms, we can't use
6566 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6567 allow_undefined_flag=unsupported
6568 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6569 # support --undefined. This deserves some investigation. FIXME
6570 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6576 cygwin* | mingw* | pw32*)
6577 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6578 # as there is no search path for DLLs.
6579 hardcode_libdir_flag_spec='-L$libdir'
6580 allow_undefined_flag=unsupported
6581 always_export_symbols=no
6582 enable_shared_with_static_runtimes=yes
6583 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6585 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6587 # If the export-symbols file already is a .def file (1st line
6588 # is EXPORTS), use it as is; otherwise, prepend...
6589 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6590 cp $export_symbols $output_objdir/$soname.def;
6592 echo EXPORTS > $output_objdir/$soname.def;
6593 cat $export_symbols >> $output_objdir/$soname.def;
6594 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6602 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6606 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6611 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6615 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6616 *** create shared libraries on Solaris systems. Therefore, libtool
6617 *** is disabling shared libraries support. We urge you to upgrade GNU
6618 *** binutils to release 2.9.1 or newer. Another option is to modify
6619 *** your PATH or compiler configuration so that the native linker is
6620 *** used, and then restart.
6623 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6632 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6635 hardcode_shlibpath_var=no
6639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6640 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6641 archive_cmds="$tmp_archive_cmds"
6642 supports_anon_versioning=no
6643 case `$LD -v 2>/dev/null` in
6644 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6647 *\ 2.11.*) ;; # other 2.11 versions
6648 *) supports_anon_versioning=yes ;;
6650 if test $supports_anon_versioning = yes; then
6651 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
6652 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6654 archive_expsym_cmds="$tmp_archive_cmds"
6662 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6671 if test "$ld_shlibs" = yes; then
6672 runpath_var=LD_RUN_PATH
6673 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6674 export_dynamic_flag_spec='${wl}--export-dynamic'
6675 # ancient GNU ld didn't support --whole-archive et. al.
6676 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6677 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6679 whole_archive_flag_spec=
6683 # PORTME fill in a description of your system's linker (not GNU ld)
6686 allow_undefined_flag=unsupported
6687 always_export_symbols=yes
6688 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'
6689 # Note: this linker hardcodes the directories in LIBPATH if there
6690 # are no directories specified by -L.
6691 hardcode_minus_L=yes
6692 if test "$GCC" = yes && test -z "$link_static_flag"; then
6693 # Neither direct hardcoding nor static linking is supported with a
6695 hardcode_direct=unsupported
6700 if test "$host_cpu" = ia64; then
6701 # On IA64, the linker does run time linking by default, so we don't
6702 # have to do anything special.
6703 aix_use_runtimelinking=no
6704 exp_sym_flag='-Bexport'
6707 # If we're using GNU nm, then we don't want the "-C" option.
6708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6709 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6710 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'
6712 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'
6714 aix_use_runtimelinking=no
6716 # Test if we are trying to use run time linking or normal
6717 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6718 # need to do runtime linking.
6719 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6720 for ld_flag in $LDFLAGS; do
6721 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6722 aix_use_runtimelinking=yes
6728 exp_sym_flag='-bexport'
6729 no_entry_flag='-bnoentry'
6732 # When large executables or shared objects are built, AIX ld can
6733 # have problems creating the table of contents. If linking a library
6734 # or program results in "error TOC overflow" add -mminimal-toc to
6735 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6736 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6740 hardcode_libdir_separator=':'
6741 link_all_deplibs=yes
6743 if test "$GCC" = yes; then
6744 case $host_os in aix4.012|aix4.012.*)
6745 # We only want to do this on AIX 4.2 and lower, the check
6746 # below for broken collect2 doesn't work under 4.3+
6747 collect2name=`${CC} -print-prog-name=collect2`
6748 if test -f "$collect2name" && \
6749 strings "$collect2name" | grep resolve_lib_name >/dev/null
6751 # We have reworked collect2
6754 # We have old collect2
6755 hardcode_direct=unsupported
6756 # It fails to find uninstalled libraries when the uninstalled
6757 # path is not listed in the libpath. Setting hardcode_minus_L
6758 # to unsupported forces relinking
6759 hardcode_minus_L=yes
6760 hardcode_libdir_flag_spec='-L$libdir'
6761 hardcode_libdir_separator=
6764 shared_flag='-shared'
6767 if test "$host_cpu" = ia64; then
6768 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6769 # chokes on -Wl,-G. The following line is correct:
6772 if test "$aix_use_runtimelinking" = yes; then
6773 shared_flag='${wl}-G'
6775 shared_flag='${wl}-bM:SRE'
6780 # It seems that -bexpall does not export symbols beginning with
6781 # underscore (_), so it is better to generate a list of symbols to export.
6782 always_export_symbols=yes
6783 if test "$aix_use_runtimelinking" = yes; then
6784 # Warning - without using the other runtime loading flags (-brtl),
6785 # -berok will link without error, but may produce a broken library.
6786 allow_undefined_flag='-berok'
6787 # Determine the default libpath from the value encoded in an empty executable.
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6803 rm -f conftest.$ac_objext conftest$ac_exeext
6804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6805 (eval $ac_link) 2>conftest.er1
6807 grep -v '^ *+' conftest.er1 >conftest.err
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } &&
6812 { ac_try='test -z "$ac_c_werror_flag"
6813 || test ! -s conftest.err'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; } &&
6819 { ac_try='test -s conftest$ac_exeext'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6828 # Check for a 64-bit object if we didn't find anything.
6829 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; }
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6836 rm -f conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
6838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6840 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6841 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"
6843 if test "$host_cpu" = ia64; then
6844 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6845 allow_undefined_flag="-z nodefs"
6846 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"
6848 # Determine the default libpath from the value encoded in an empty executable.
6849 cat >conftest.$ac_ext <<_ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6864 rm -f conftest.$ac_objext conftest$ac_exeext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6866 (eval $ac_link) 2>conftest.er1
6868 grep -v '^ *+' conftest.er1 >conftest.err
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } &&
6873 { ac_try='test -z "$ac_c_werror_flag"
6874 || test ! -s conftest.err'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; } &&
6880 { ac_try='test -s conftest$ac_exeext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6889 # Check for a 64-bit object if we didn't find anything.
6890 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; }
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6897 rm -f conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6901 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6902 # Warning - without using the other run time loading flags,
6903 # -berok will link without error, but may produce a broken library.
6904 no_undefined_flag=' ${wl}-bernotok'
6905 allow_undefined_flag=' ${wl}-berok'
6906 # -bexpall does not export symbols beginning with underscore (_)
6907 always_export_symbols=yes
6908 # Exported symbols can be pulled into shared objects from archives
6909 whole_archive_flag_spec=' '
6910 archive_cmds_need_lc=yes
6911 # This is similar to how AIX traditionally builds it's shared libraries.
6912 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'
6918 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)'
6919 hardcode_libdir_flag_spec='-L$libdir'
6920 hardcode_minus_L=yes
6921 # see comment about different semantics on the GNU ld section
6926 export_dynamic_flag_spec=-rdynamic
6929 cygwin* | mingw* | pw32*)
6930 # When not using gcc, we currently assume that we are using
6931 # Microsoft Visual C++.
6932 # hardcode_libdir_flag_spec is actually meaningless, as there is
6933 # no search path for DLLs.
6934 hardcode_libdir_flag_spec=' '
6935 allow_undefined_flag=unsupported
6936 # Tell ltmain to make .lib files, not .a files.
6938 # Tell ltmain to make .dll files, not .so files.
6940 # FIXME: Setting linknames here is a bad hack.
6941 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
6942 # The linker will automatically build a .lib file if we build a DLL.
6943 old_archive_From_new_cmds='true'
6944 # FIXME: Should let the user specify the lib program.
6945 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6946 fix_srcfile_path='`cygpath -w "$srcfile"`'
6947 enable_shared_with_static_runtimes=yes
6950 darwin* | rhapsody*)
6952 rhapsody* | darwin1.[012])
6953 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6956 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6957 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6959 case ${MACOSX_DEPLOYMENT_TARGET} in
6961 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6964 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6970 archive_cmds_need_lc=no
6972 hardcode_automatic=yes
6973 hardcode_shlibpath_var=unsupported
6974 whole_archive_flag_spec=''
6975 link_all_deplibs=yes
6976 if test "$GCC" = yes ; then
6977 output_verbose_link_cmd='echo'
6978 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6979 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6980 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6981 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}'
6982 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}'
6984 case "$cc_basename" in
6986 output_verbose_link_cmd='echo'
6987 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6988 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6989 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6990 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}'
6991 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}'
7001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7002 hardcode_libdir_flag_spec='-L$libdir'
7003 hardcode_shlibpath_var=no
7010 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7011 # support. Future versions do this automatically, but an explicit c++rt0.o
7012 # does not break anything, and helps significantly (at the cost of a little
7015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7016 hardcode_libdir_flag_spec='-R$libdir'
7018 hardcode_shlibpath_var=no
7021 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7025 hardcode_minus_L=yes
7026 hardcode_shlibpath_var=no
7029 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7030 freebsd* | kfreebsd*-gnu)
7031 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7032 hardcode_libdir_flag_spec='-R$libdir'
7034 hardcode_shlibpath_var=no
7038 if test "$GCC" = yes; then
7039 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'
7041 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'
7043 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7044 hardcode_libdir_separator=:
7047 # hardcode_minus_L: Not really in the search PATH,
7048 # but as the default location of the library.
7049 hardcode_minus_L=yes
7050 export_dynamic_flag_spec='${wl}-E'
7054 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7057 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7060 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7066 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7069 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7073 if test "$with_gnu_ld" = no; then
7076 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7077 hardcode_libdir_flag_spec_ld='+b $libdir'
7078 hardcode_libdir_separator=:
7080 hardcode_shlibpath_var=no
7083 hardcode_libdir_flag_spec='-L$libdir'
7085 hardcode_shlibpath_var=no
7087 # hardcode_minus_L: Not really in the search PATH,
7088 # but as the default location of the library.
7089 hardcode_minus_L=yes
7092 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7093 hardcode_libdir_separator=:
7095 export_dynamic_flag_spec='${wl}-E'
7097 # hardcode_minus_L: Not really in the search PATH,
7098 # but as the default location of the library.
7099 hardcode_minus_L=yes
7105 irix5* | irix6* | nonstopux*)
7106 if test "$GCC" = yes; then
7107 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'
7109 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'
7110 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7113 hardcode_libdir_separator=:
7114 link_all_deplibs=yes
7118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7121 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7123 hardcode_libdir_flag_spec='-R$libdir'
7125 hardcode_shlibpath_var=no
7129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7132 hardcode_libdir_separator=:
7133 hardcode_shlibpath_var=no
7138 hardcode_shlibpath_var=no
7139 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7141 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7142 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7143 export_dynamic_flag_spec='${wl}-E'
7146 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7148 hardcode_libdir_flag_spec='-R$libdir'
7151 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7159 hardcode_libdir_flag_spec='-L$libdir'
7160 hardcode_minus_L=yes
7161 allow_undefined_flag=unsupported
7162 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'
7163 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7167 if test "$GCC" = yes; then
7168 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7169 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'
7171 allow_undefined_flag=' -expect_unresolved \*'
7172 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'
7174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7175 hardcode_libdir_separator=:
7178 osf4* | osf5*) # as osf3* with the addition of -msym flag
7179 if test "$GCC" = yes; then
7180 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7181 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'
7182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7184 allow_undefined_flag=' -expect_unresolved \*'
7185 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'
7186 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp'
7187 # Both c and cxx compiler support -rpath directly
7188 hardcode_libdir_flag_spec='-rpath $libdir'
7190 hardcode_libdir_separator=:
7194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7195 hardcode_shlibpath_var=no
7196 export_dynamic_flag_spec='${wl}-Bexport'
7197 runpath_var=LD_RUN_PATH
7198 hardcode_runpath_var=yes
7202 no_undefined_flag=' -z text'
7203 if test "$GCC" = yes; then
7204 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7205 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
7207 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7208 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
7210 hardcode_libdir_flag_spec='-R$libdir'
7211 hardcode_shlibpath_var=no
7213 solaris2.[0-5] | solaris2.[0-5].*) ;;
7214 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7215 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7217 link_all_deplibs=yes
7221 if test "x$host_vendor" = xsequent; then
7222 # Use $CC to link under sequent, because it throws in some extra .o
7223 # files that make .init and .fini sections work.
7224 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7226 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7228 hardcode_libdir_flag_spec='-L$libdir'
7230 hardcode_minus_L=yes
7231 hardcode_shlibpath_var=no
7235 case $host_vendor in
7237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7238 hardcode_direct=yes # is this really true???
7241 ## LD is ld it makes a PLAMLIB
7242 ## CC just makes a GrossModule.
7243 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7244 reload_cmds='$CC -r -o $output$reload_objs'
7248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7249 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7252 runpath_var='LD_RUN_PATH'
7253 hardcode_shlibpath_var=no
7257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7258 hardcode_shlibpath_var=no
7259 export_dynamic_flag_spec='-Bexport'
7263 if test -d /usr/nec; then
7264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7265 hardcode_shlibpath_var=no
7266 runpath_var=LD_RUN_PATH
7267 hardcode_runpath_var=yes
7273 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7276 hardcode_shlibpath_var=no
7277 hardcode_runpath_var=yes
7278 runpath_var=LD_RUN_PATH
7281 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7282 no_undefined_flag='${wl}-z ${wl}text'
7283 if test "$GCC" = yes; then
7284 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7286 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7288 runpath_var='LD_RUN_PATH'
7289 hardcode_shlibpath_var=no
7293 no_undefined_flag=' -z text'
7294 # $CC -shared without GNU ld will not create a library from C++
7295 # object files and a static libstdc++, better avoid it by now
7296 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7297 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
7298 hardcode_libdir_flag_spec=
7299 hardcode_shlibpath_var=no
7300 runpath_var='LD_RUN_PATH'
7304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7305 hardcode_libdir_flag_spec='-L$libdir'
7306 hardcode_shlibpath_var=no
7315 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7316 echo "${ECHO_T}$ld_shlibs" >&6
7317 test "$ld_shlibs" = no && can_build_shared=no
7319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7320 if test "$GCC" = yes; then
7321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7325 # Do we need to explicitly link libc?
7327 case "x$archive_cmds_need_lc" in
7329 # Assume -lc should be added
7330 archive_cmds_need_lc=yes
7332 if test "$enable_shared" = yes && test "$GCC" = yes; then
7333 case $archive_cmds in
7335 # FIXME: we may have to deal with multi-command sequences.
7338 # Test whether the compiler implicitly links with -lc since on some
7339 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7340 # to ld, don't add -lc before -lgcc.
7341 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7342 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7347 (eval $ac_compile) 2>&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } 2>conftest.err; then
7353 libobjs=conftest.$ac_objext
7355 wl=$lt_prog_compiler_wl
7361 lt_save_allow_undefined_flag=$allow_undefined_flag
7362 allow_undefined_flag=
7363 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7364 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }
7369 archive_cmds_need_lc=no
7371 archive_cmds_need_lc=yes
7373 allow_undefined_flag=$lt_save_allow_undefined_flag
7375 cat conftest.err 1>&5
7378 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7379 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7386 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7387 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7389 libname_spec='lib$name'
7397 shlibpath_overrides_runpath=unknown
7399 dynamic_linker="$host_os ld.so"
7400 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7401 if test "$GCC" = yes; then
7402 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7403 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7404 # if the path contains ";" then we assume it to be the separator
7405 # otherwise default to the standard path separator (i.e. ":") - it is
7406 # assumed that no part of a normal pathname contains ";" but that should
7407 # okay in the real world where ";" in dirpaths is itself problematic.
7408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7413 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7415 need_lib_prefix=unknown
7416 hardcode_into_libs=no
7418 # when you set need_version to no, make sure it does not cause -set_version
7419 # flags to be left without arguments
7420 need_version=unknown
7425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7426 shlibpath_var=LIBPATH
7428 # AIX 3 has no versioning support, so we append a major version to the name.
7429 soname_spec='${libname}${release}${shared_ext}$major'
7436 hardcode_into_libs=yes
7437 if test "$host_cpu" = ia64; then
7438 # AIX 5 supports IA64
7439 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7440 shlibpath_var=LD_LIBRARY_PATH
7442 # With GCC up to 2.95.x, collect2 would create an import file
7443 # for dependence libraries. The import file would start with
7444 # the line `#! .'. This would cause the generated library to
7445 # depend on `.', always an invalid library. This was fixed in
7446 # development snapshots of GCC prior to 3.0.
7448 aix4 | aix4.[01] | aix4.[01].*)
7449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7451 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7458 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7459 # soname into executable. Probably we can add versioning support to
7460 # collect2, so additional links can be useful in future.
7461 if test "$aix_use_runtimelinking" = yes; then
7462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7463 # instead of lib<name>.a to let people know that these are not
7464 # typical AIX shared libraries.
7465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7467 # We preserve .a as extension for shared libraries through AIX4.2
7468 # and later when we are not doing run time linking.
7469 library_names_spec='${libname}${release}.a $libname.a'
7470 soname_spec='${libname}${release}${shared_ext}$major'
7472 shlibpath_var=LIBPATH
7477 library_names_spec='$libname.ixlibrary $libname.a'
7478 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7479 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'
7483 library_names_spec='${libname}${shared_ext}'
7484 dynamic_linker="$host_os ld.so"
7485 shlibpath_var=LIBRARY_PATH
7491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7492 soname_spec='${libname}${release}${shared_ext}$major'
7493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7494 shlibpath_var=LD_LIBRARY_PATH
7495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7497 # the default ld.so.conf also contains /usr/contrib/lib and
7498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7499 # libtool to hard-code these into programs
7502 cygwin* | mingw* | pw32*)
7503 version_type=windows
7508 case $GCC,$host_os in
7509 yes,cygwin* | yes,mingw* | yes,pw32*)
7510 library_names_spec='$libname.dll.a'
7511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7512 postinstall_cmds='base_file=`basename \${file}`;
7513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
7514 dldir=$destdir/`dirname \$dlpath`;
7515 test -d \$dldir || mkdir -p \$dldir;
7516 $install_prog $dir/$dlname \$dldir/$dlname'
7517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
7518 dlpath=$dir/\$dldll;
7520 shlibpath_overrides_runpath=yes
7524 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7525 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7526 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7529 # MinGW DLLs use traditional 'lib' prefix
7530 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7531 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7532 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7533 # It is most probably a Windows format PATH printed by
7534 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7535 # path with ; separators, and with drive letters. We can handle the
7536 # drive letters (cygwin fileutils understands them), so leave them,
7537 # especially as we might pass files found there to a mingw objdump,
7538 # which wouldn't understand a cygwinified path. Ahh.
7539 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7545 # pw32 DLLs use 'pw' prefix rather than 'lib'
7546 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7552 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7555 dynamic_linker='Win32 ld.exe'
7556 # FIXME: first we should search . and the directory the executable is in
7560 darwin* | rhapsody*)
7561 dynamic_linker="$host_os dyld"
7565 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7566 soname_spec='${libname}${release}${major}$shared_ext'
7567 shlibpath_overrides_runpath=yes
7568 shlibpath_var=DYLD_LIBRARY_PATH
7569 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7570 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7571 if test "$GCC" = yes; then
7572 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"`
7574 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7576 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7584 soname_spec='${libname}${release}${shared_ext}$major'
7585 shlibpath_var=LD_LIBRARY_PATH
7596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7597 soname_spec='${libname}${release}${shared_ext}$major'
7598 shlibpath_var=LD_LIBRARY_PATH
7599 shlibpath_overrides_runpath=no
7600 hardcode_into_libs=yes
7601 dynamic_linker='GNU ld.so'
7605 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7606 version_type=freebsd-$objformat
7607 case $version_type in
7609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7614 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7618 shlibpath_var=LD_LIBRARY_PATH
7621 shlibpath_overrides_runpath=yes
7623 freebsd3.01* | freebsdelf3.01*)
7624 shlibpath_overrides_runpath=yes
7625 hardcode_into_libs=yes
7628 shlibpath_overrides_runpath=no
7629 hardcode_into_libs=yes
7638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7639 soname_spec='${libname}${release}${shared_ext}$major'
7640 shlibpath_var=LD_LIBRARY_PATH
7641 hardcode_into_libs=yes
7644 hpux9* | hpux10* | hpux11*)
7645 # Give a soname corresponding to the major version so that dld.sl refuses to
7646 # link against other versions.
7653 hardcode_into_libs=yes
7654 dynamic_linker="$host_os dld.so"
7655 shlibpath_var=LD_LIBRARY_PATH
7656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7658 soname_spec='${libname}${release}${shared_ext}$major'
7659 if test "X$HPUX_IA64_MODE" = X32; then
7660 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7662 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7668 hardcode_into_libs=yes
7669 dynamic_linker="$host_os dld.sl"
7670 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7673 soname_spec='${libname}${release}${shared_ext}$major'
7674 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7679 dynamic_linker="$host_os dld.sl"
7680 shlibpath_var=SHLIB_PATH
7681 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7683 soname_spec='${libname}${release}${shared_ext}$major'
7686 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7687 postinstall_cmds='chmod 555 $lib'
7690 irix5* | irix6* | nonstopux*)
7692 nonstopux*) version_type=nonstopux ;;
7694 if test "$lt_cv_prog_gnu_ld" = yes; then
7702 soname_spec='${libname}${release}${shared_ext}$major'
7703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7705 irix5* | nonstopux*)
7709 case $LD in # libtool.m4 will add one of these switches to LD
7710 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7711 libsuff= shlibsuff= libmagic=32-bit;;
7712 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7713 libsuff=32 shlibsuff=N32 libmagic=N32;;
7714 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7715 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7716 *) libsuff= shlibsuff= libmagic=never-match;;
7720 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7721 shlibpath_overrides_runpath=no
7722 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7723 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7724 hardcode_into_libs=yes
7727 # No shared lib support for Linux oldld, aout, or coff.
7728 linux*oldld* | linux*aout* | linux*coff*)
7732 # This must be Linux ELF.
7737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7738 soname_spec='${libname}${release}${shared_ext}$major'
7739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7740 shlibpath_var=LD_LIBRARY_PATH
7741 shlibpath_overrides_runpath=no
7742 # This implies no fast_install, which is unacceptable.
7743 # Some rework will be needed to allow for fast_install
7744 # before this can be enabled.
7745 hardcode_into_libs=yes
7747 # Append ld.so.conf contents to the search path
7748 if test -f /etc/ld.so.conf; then
7749 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7750 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7753 # We used to test for /lib/ld.so.1 and disable shared libraries on
7754 # powerpc, because MkLinux only supported shared libraries with the
7755 # GNU dynamic linker. Since this was broken with cross compilers,
7756 # most powerpc-linux boxes support dynamic linking these days and
7757 # people can always --disable-shared, the test was removed, and we
7758 # assume the GNU/Linux dynamic linker is in use.
7759 dynamic_linker='GNU/Linux ld.so'
7766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7767 soname_spec='${libname}${release}${shared_ext}$major'
7768 shlibpath_var=LD_LIBRARY_PATH
7769 shlibpath_overrides_runpath=no
7770 hardcode_into_libs=yes
7771 dynamic_linker='GNU ld.so'
7778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7781 dynamic_linker='NetBSD (a.out) ld.so'
7783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7784 soname_spec='${libname}${release}${shared_ext}$major'
7785 dynamic_linker='NetBSD ld.elf_so'
7787 shlibpath_var=LD_LIBRARY_PATH
7788 shlibpath_overrides_runpath=yes
7789 hardcode_into_libs=yes
7794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7795 shlibpath_var=LD_LIBRARY_PATH
7796 shlibpath_overrides_runpath=yes
7803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7804 soname_spec='${libname}${release}${shared_ext}$major'
7805 shlibpath_var=LD_LIBRARY_PATH
7806 shlibpath_overrides_runpath=yes
7813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7815 shlibpath_var=LD_LIBRARY_PATH
7816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7818 openbsd2.[89] | openbsd2.[89].*)
7819 shlibpath_overrides_runpath=no
7822 shlibpath_overrides_runpath=yes
7826 shlibpath_overrides_runpath=yes
7831 libname_spec='$name'
7834 library_names_spec='$libname${shared_ext} $libname.a'
7835 dynamic_linker='OS/2 ld.exe'
7836 shlibpath_var=LIBPATH
7839 osf3* | osf4* | osf5*)
7843 soname_spec='${libname}${release}${shared_ext}$major'
7844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7845 shlibpath_var=LD_LIBRARY_PATH
7846 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7847 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7852 soname_spec='${libname}${release}${shared_ext}$major'
7853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854 shlibpath_var=LD_LIBRARY_PATH
7861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862 soname_spec='${libname}${release}${shared_ext}$major'
7863 shlibpath_var=LD_LIBRARY_PATH
7864 shlibpath_overrides_runpath=yes
7865 hardcode_into_libs=yes
7866 # ldd complains unless libraries are executable
7867 postinstall_cmds='chmod +x $lib'
7872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7873 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7874 shlibpath_var=LD_LIBRARY_PATH
7875 shlibpath_overrides_runpath=yes
7876 if test "$with_gnu_ld" = yes; then
7882 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7885 soname_spec='${libname}${release}${shared_ext}$major'
7886 shlibpath_var=LD_LIBRARY_PATH
7887 case $host_vendor in
7889 shlibpath_overrides_runpath=no
7891 export_dynamic_flag_spec='${wl}-Blargedynsym'
7892 runpath_var=LD_RUN_PATH
7900 shlibpath_overrides_runpath=no
7901 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7907 if test -d /usr/nec ;then
7909 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7910 soname_spec='$libname${shared_ext}.$major'
7911 shlibpath_var=LD_LIBRARY_PATH
7917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7918 soname_spec='${libname}${release}${shared_ext}$major'
7919 shlibpath_var=LD_LIBRARY_PATH
7926 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7927 echo "${ECHO_T}$dynamic_linker" >&6
7928 test "$dynamic_linker" = no && can_build_shared=no
7930 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7931 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7933 if test -n "$hardcode_libdir_flag_spec" || \
7934 test -n "$runpath_var" || \
7935 test "X$hardcode_automatic" = "Xyes" ; then
7937 # We can hardcode non-existant directories.
7938 if test "$hardcode_direct" != no &&
7939 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7940 # have to relink, otherwise we might link with an installed library
7941 # when we should be linking with a yet-to-be-installed one
7942 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7943 test "$hardcode_minus_L" != no; then
7944 # Linking always hardcodes the temporary library directory.
7945 hardcode_action=relink
7947 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7948 hardcode_action=immediate
7951 # We cannot hardcode anything, or else we can only hardcode existing
7953 hardcode_action=unsupported
7955 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7956 echo "${ECHO_T}$hardcode_action" >&6
7958 if test "$hardcode_action" = relink; then
7959 # Fast installation is not supported
7960 enable_fast_install=no
7961 elif test "$shlibpath_overrides_runpath" = yes ||
7962 test "$enable_shared" = no; then
7963 # Fast installation is not necessary
7964 enable_fast_install=needless
7969 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7970 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7971 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7972 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7973 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7974 echo "$as_me:$LINENO: result: yes" >&5
7975 echo "${ECHO_T}yes" >&6
7977 # FIXME - insert some real tests, host_os isn't really good enough
7980 if test -n "$STRIP" ; then
7981 striplib="$STRIP -x"
7982 echo "$as_me:$LINENO: result: yes" >&5
7983 echo "${ECHO_T}yes" >&6
7985 echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6
7990 echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6
7996 if test "x$enable_dlopen" != xyes; then
7997 enable_dlopen=unknown
7998 enable_dlopen_self=unknown
7999 enable_dlopen_self_static=unknown
8006 lt_cv_dlopen="load_add_on"
8008 lt_cv_dlopen_self=yes
8012 lt_cv_dlopen="LoadLibrary"
8017 lt_cv_dlopen="dlopen"
8022 # if libdl is installed we need to link against it
8023 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8024 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8025 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 ac_check_lib_save_LIBS=$LIBS
8030 cat >conftest.$ac_ext <<_ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8037 /* Override any gcc2 internal prototype to avoid an error. */
8041 /* We use char because int might match the return type of a gcc2
8042 builtin and then its argument prototype would still apply. */
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054 (eval $ac_link) 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag"
8062 || test ! -s conftest.err'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest$ac_exeext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 ac_cv_lib_dl_dlopen=yes
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 ac_cv_lib_dl_dlopen=no
8081 rm -f conftest.err conftest.$ac_objext \
8082 conftest$ac_exeext conftest.$ac_ext
8083 LIBS=$ac_check_lib_save_LIBS
8085 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8086 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8087 if test $ac_cv_lib_dl_dlopen = yes; then
8088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8093 lt_cv_dlopen_self=yes
8100 echo "$as_me:$LINENO: checking for shl_load" >&5
8101 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8102 if test "${ac_cv_func_shl_load+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 cat >conftest.$ac_ext <<_ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8113 #define shl_load innocuous_shl_load
8115 /* System header to define __stub macros and hopefully few prototypes,
8116 which can conflict with char shl_load (); below.
8117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8118 <limits.h> exists even on freestanding compilers. */
8121 # include <limits.h>
8123 # include <assert.h>
8128 /* Override any gcc2 internal prototype to avoid an error. */
8133 /* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8136 /* The GNU C library defines this for functions which it implements
8137 to always fail with ENOSYS. Some functions are actually named
8138 something starting with __ and the normal name is an alias. */
8139 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8142 char (*f) () = shl_load;
8151 return f != shl_load;
8156 rm -f conftest.$ac_objext conftest$ac_exeext
8157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8158 (eval $ac_link) 2>conftest.er1
8160 grep -v '^ *+' conftest.er1 >conftest.err
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } &&
8165 { ac_try='test -z "$ac_c_werror_flag"
8166 || test ! -s conftest.err'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; } &&
8172 { ac_try='test -s conftest$ac_exeext'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; }; then
8178 ac_cv_func_shl_load=yes
8180 echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8183 ac_cv_func_shl_load=no
8185 rm -f conftest.err conftest.$ac_objext \
8186 conftest$ac_exeext conftest.$ac_ext
8188 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8189 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8190 if test $ac_cv_func_shl_load = yes; then
8191 lt_cv_dlopen="shl_load"
8193 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8194 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8195 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 ac_check_lib_save_LIBS=$LIBS
8200 cat >conftest.$ac_ext <<_ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8207 /* Override any gcc2 internal prototype to avoid an error. */
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224 (eval $ac_link) 2>conftest.er1
8226 grep -v '^ *+' conftest.er1 >conftest.err
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -z "$ac_c_werror_flag"
8232 || test ! -s conftest.err'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; } &&
8238 { ac_try='test -s conftest$ac_exeext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_cv_lib_dld_shl_load=yes
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8249 ac_cv_lib_dld_shl_load=no
8251 rm -f conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8253 LIBS=$ac_check_lib_save_LIBS
8255 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8256 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8257 if test $ac_cv_lib_dld_shl_load = yes; then
8258 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8260 echo "$as_me:$LINENO: checking for dlopen" >&5
8261 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8262 if test "${ac_cv_func_dlopen+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8273 #define dlopen innocuous_dlopen
8275 /* System header to define __stub macros and hopefully few prototypes,
8276 which can conflict with char dlopen (); below.
8277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8278 <limits.h> exists even on freestanding compilers. */
8281 # include <limits.h>
8283 # include <assert.h>
8288 /* Override any gcc2 internal prototype to avoid an error. */
8293 /* We use char because int might match the return type of a gcc2
8294 builtin and then its argument prototype would still apply. */
8296 /* The GNU C library defines this for functions which it implements
8297 to always fail with ENOSYS. Some functions are actually named
8298 something starting with __ and the normal name is an alias. */
8299 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8302 char (*f) () = dlopen;
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318 (eval $ac_link) 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -z "$ac_c_werror_flag"
8326 || test ! -s conftest.err'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; } &&
8332 { ac_try='test -s conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_cv_func_dlopen=yes
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 ac_cv_func_dlopen=no
8345 rm -f conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8349 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8350 if test $ac_cv_func_dlopen = yes; then
8351 lt_cv_dlopen="dlopen"
8353 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8354 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8355 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 ac_check_lib_save_LIBS=$LIBS
8360 cat >conftest.$ac_ext <<_ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8367 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag"
8392 || test ! -s conftest.err'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_lib_dl_dlopen=yes
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ac_cv_lib_dl_dlopen=no
8411 rm -f conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8413 LIBS=$ac_check_lib_save_LIBS
8415 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8416 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8417 if test $ac_cv_lib_dl_dlopen = yes; then
8418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8420 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8421 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8422 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 ac_check_lib_save_LIBS=$LIBS
8427 cat >conftest.$ac_ext <<_ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8434 /* Override any gcc2 internal prototype to avoid an error. */
8438 /* We use char because int might match the return type of a gcc2
8439 builtin and then its argument prototype would still apply. */
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451 (eval $ac_link) 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag"
8459 || test ! -s conftest.err'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest$ac_exeext'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 ac_cv_lib_svld_dlopen=yes
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8476 ac_cv_lib_svld_dlopen=no
8478 rm -f conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext conftest.$ac_ext
8480 LIBS=$ac_check_lib_save_LIBS
8482 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8483 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8484 if test $ac_cv_lib_svld_dlopen = yes; then
8485 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8487 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8488 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8489 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 ac_check_lib_save_LIBS=$LIBS
8494 cat >conftest.$ac_ext <<_ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8501 /* Override any gcc2 internal prototype to avoid an error. */
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest$ac_exeext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 ac_cv_lib_dld_dld_link=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_lib_dld_dld_link=no
8545 rm -f conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 LIBS=$ac_check_lib_save_LIBS
8549 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8550 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8551 if test $ac_cv_lib_dld_dld_link = yes; then
8552 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8573 if test "x$lt_cv_dlopen" != xno; then
8579 case $lt_cv_dlopen in
8581 save_CPPFLAGS="$CPPFLAGS"
8582 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8584 save_LDFLAGS="$LDFLAGS"
8585 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8588 LIBS="$lt_cv_dlopen_libs $LIBS"
8590 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8591 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8592 if test "${lt_cv_dlopen_self+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 if test "$cross_compiling" = yes; then :
8596 lt_cv_dlopen_self=cross
8598 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8599 lt_status=$lt_dlunknown
8600 cat > conftest.$ac_ext <<EOF
8601 #line 8601 "configure"
8602 #include "confdefs.h"
8611 # define LT_DLGLOBAL RTLD_GLOBAL
8614 # define LT_DLGLOBAL DL_GLOBAL
8616 # define LT_DLGLOBAL 0
8620 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8621 find out it does not work in some platform. */
8622 #ifndef LT_DLLAZY_OR_NOW
8624 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8627 # define LT_DLLAZY_OR_NOW DL_LAZY
8630 # define LT_DLLAZY_OR_NOW RTLD_NOW
8633 # define LT_DLLAZY_OR_NOW DL_NOW
8635 # define LT_DLLAZY_OR_NOW 0
8643 extern "C" void exit (int);
8646 void fnord() { int i=42;}
8649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8650 int status = $lt_dlunknown;
8654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8655 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8656 /* dlclose (self); */
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8667 (./conftest; exit; ) 2>/dev/null
8670 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8671 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8672 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8675 # compilation failed
8676 lt_cv_dlopen_self=no
8683 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8684 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8686 if test "x$lt_cv_dlopen_self" = xyes; then
8687 LDFLAGS="$LDFLAGS $link_static_flag"
8688 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8689 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8690 if test "${lt_cv_dlopen_self_static+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 if test "$cross_compiling" = yes; then :
8694 lt_cv_dlopen_self_static=cross
8696 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8697 lt_status=$lt_dlunknown
8698 cat > conftest.$ac_ext <<EOF
8699 #line 8699 "configure"
8700 #include "confdefs.h"
8709 # define LT_DLGLOBAL RTLD_GLOBAL
8712 # define LT_DLGLOBAL DL_GLOBAL
8714 # define LT_DLGLOBAL 0
8718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8719 find out it does not work in some platform. */
8720 #ifndef LT_DLLAZY_OR_NOW
8722 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8725 # define LT_DLLAZY_OR_NOW DL_LAZY
8728 # define LT_DLLAZY_OR_NOW RTLD_NOW
8731 # define LT_DLLAZY_OR_NOW DL_NOW
8733 # define LT_DLLAZY_OR_NOW 0
8741 extern "C" void exit (int);
8744 void fnord() { int i=42;}
8747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8748 int status = $lt_dlunknown;
8752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8753 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8754 /* dlclose (self); */
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8765 (./conftest; exit; ) 2>/dev/null
8768 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8769 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8770 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8773 # compilation failed
8774 lt_cv_dlopen_self_static=no
8781 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8782 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8785 CPPFLAGS="$save_CPPFLAGS"
8786 LDFLAGS="$save_LDFLAGS"
8791 case $lt_cv_dlopen_self in
8792 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8793 *) enable_dlopen_self=unknown ;;
8796 case $lt_cv_dlopen_self_static in
8797 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8798 *) enable_dlopen_self_static=unknown ;;
8803 # Report which librarie types wil actually be built
8804 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8805 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8806 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8807 echo "${ECHO_T}$can_build_shared" >&6
8809 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8810 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8811 test "$can_build_shared" = "no" && enable_shared=no
8813 # On AIX, shared libraries and static libraries use the same namespace, and
8814 # are all built from PIC.
8817 test "$enable_shared" = yes && enable_static=no
8818 if test -n "$RANLIB"; then
8819 archive_cmds="$archive_cmds;\$RANLIB \$lib"
8820 postinstall_cmds='$RANLIB $lib'
8825 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8826 test "$enable_shared" = yes && enable_static=no
8830 echo "$as_me:$LINENO: result: $enable_shared" >&5
8831 echo "${ECHO_T}$enable_shared" >&6
8833 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8834 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8835 # Make sure either enable_shared or enable_static is yes.
8836 test "$enable_shared" = yes || enable_static=yes
8837 echo "$as_me:$LINENO: result: $enable_static" >&5
8838 echo "${ECHO_T}$enable_static" >&6
8840 # The else clause should only fire when bootstrapping the
8841 # libtool distribution, otherwise you forgot to ship ltmain.sh
8842 # with your package, and you will get complaints that there are
8843 # no rules to generate ltmain.sh.
8844 if test -f "$ltmain"; then
8845 # See if we are running on zsh, and set the options which allow our commands through
8846 # without removal of \ escapes.
8847 if test -n "${ZSH_VERSION+set}" ; then
8848 setopt NO_GLOB_SUBST
8850 # Now quote all the things that may contain metacharacters while being
8851 # careful not to overquote the AC_SUBSTed values. We take copies of the
8852 # variables and quote the copies for generation of the libtool script.
8853 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8855 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8856 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8857 deplibs_check_method reload_flag reload_cmds need_locks \
8858 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8859 lt_cv_sys_global_symbol_to_c_name_address \
8860 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8861 old_postinstall_cmds old_postuninstall_cmds \
8865 lt_prog_compiler_wl \
8866 lt_prog_compiler_pic \
8867 lt_prog_compiler_static \
8868 lt_prog_compiler_no_builtin_flag \
8869 export_dynamic_flag_spec \
8870 thread_safe_flag_spec \
8871 whole_archive_flag_spec \
8872 enable_shared_with_static_runtimes \
8874 old_archive_from_new_cmds \
8879 compiler_lib_search_path \
8881 archive_expsym_cmds \
8883 postuninstall_cmds \
8884 old_archive_from_expsyms_cmds \
8885 allow_undefined_flag \
8887 export_symbols_cmds \
8888 hardcode_libdir_flag_spec \
8889 hardcode_libdir_flag_spec_ld \
8890 hardcode_libdir_separator \
8891 hardcode_automatic \
8893 module_expsym_cmds \
8894 lt_cv_prog_compiler_c_o \
8899 old_archive_cmds | \
8900 old_archive_from_new_cmds | \
8902 archive_expsym_cmds | \
8904 module_expsym_cmds | \
8905 old_archive_from_expsyms_cmds | \
8906 export_symbols_cmds | \
8907 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8908 postinstall_cmds | postuninstall_cmds | \
8909 old_postinstall_cmds | old_postuninstall_cmds | \
8910 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8911 # Double-quote double-evaled strings.
8912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8921 *'\$0 --fallback-echo"')
8922 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8927 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8929 { echo "$as_me:$LINENO: creating $ofile" >&5
8930 echo "$as_me: creating $ofile" >&6;}
8932 cat <<__EOF__ >> "$cfgfile"
8935 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8936 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8937 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8939 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8940 # Free Software Foundation, Inc.
8942 # This file is part of GNU Libtool:
8943 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8945 # This program is free software; you can redistribute it and/or modify
8946 # it under the terms of the GNU General Public License as published by
8947 # the Free Software Foundation; either version 2 of the License, or
8948 # (at your option) any later version.
8950 # This program is distributed in the hope that it will be useful, but
8951 # WITHOUT ANY WARRANTY; without even the implied warranty of
8952 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8953 # General Public License for more details.
8955 # You should have received a copy of the GNU General Public License
8956 # along with this program; if not, write to the Free Software
8957 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8959 # As a special exception to the GNU General Public License, if you
8960 # distribute this file as part of a program that contains a
8961 # configuration script generated by Autoconf, you may include it under
8962 # the same distribution terms that you use for the rest of that program.
8964 # A sed program that does not truncate output.
8967 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8968 Xsed="$SED -e s/^X//"
8970 # The HP-UX ksh and POSIX shell print the target directory to stdout
8972 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8974 # The names of the tagged configurations supported by this script.
8977 # ### BEGIN LIBTOOL CONFIG
8979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8981 # Shell to use when invoking shell scripts.
8984 # Whether or not to build shared libraries.
8985 build_libtool_libs=$enable_shared
8987 # Whether or not to build static libraries.
8988 build_old_libs=$enable_static
8990 # Whether or not to add -lc for building shared libraries.
8991 build_libtool_need_lc=$archive_cmds_need_lc
8993 # Whether or not to disallow shared libs when runtime libs are static
8994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8996 # Whether or not to optimize for fast installation.
8997 fast_install=$enable_fast_install
9000 host_alias=$host_alias
9003 # An echo program that does not interpret backslashes.
9008 AR_FLAGS=$lt_AR_FLAGS
9013 # A language-specific compiler.
9016 # Is the compiler the GNU C compiler?
9022 # The linker used to build libraries.
9025 # Whether we need hard or soft links.
9028 # A BSD-compatible nm program.
9031 # A symbol stripping program
9034 # Used to examine libraries when file_magic_cmd begins "file"
9035 MAGIC_CMD=$MAGIC_CMD
9037 # Used on cygwin: DLL creation program.
9040 # Used on cygwin: object dumper.
9043 # Used on cygwin: assembler.
9046 # The name of the directory that contains temporary libtool files.
9049 # How to create reloadable object files.
9050 reload_flag=$lt_reload_flag
9051 reload_cmds=$lt_reload_cmds
9053 # How to pass a linker flag through the compiler.
9054 wl=$lt_lt_prog_compiler_wl
9056 # Object file suffix (normally "o").
9059 # Old archive suffix (normally "a").
9062 # Shared library suffix (normally ".so").
9063 shrext_cmds='$shrext_cmds'
9065 # Executable file suffix (normally "").
9068 # Additional compiler flags for building library objects.
9069 pic_flag=$lt_lt_prog_compiler_pic
9072 # What is the maximum length of a command?
9073 max_cmd_len=$lt_cv_sys_max_cmd_len
9075 # Does compiler simultaneously support -c and -o options?
9076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9078 # Must we lock files when doing compilation ?
9079 need_locks=$lt_need_locks
9081 # Do we need the lib prefix for modules?
9082 need_lib_prefix=$need_lib_prefix
9084 # Do we need a version for libraries?
9085 need_version=$need_version
9087 # Whether dlopen is supported.
9088 dlopen_support=$enable_dlopen
9090 # Whether dlopen of programs is supported.
9091 dlopen_self=$enable_dlopen_self
9093 # Whether dlopen of statically linked programs is supported.
9094 dlopen_self_static=$enable_dlopen_self_static
9096 # Compiler flag to prevent dynamic linking.
9097 link_static_flag=$lt_lt_prog_compiler_static
9099 # Compiler flag to turn off builtin functions.
9100 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9102 # Compiler flag to allow reflexive dlopens.
9103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9105 # Compiler flag to generate shared objects directly from archives.
9106 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9108 # Compiler flag to generate thread-safe objects.
9109 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9111 # Library versioning type.
9112 version_type=$version_type
9114 # Format of library name prefix.
9115 libname_spec=$lt_libname_spec
9117 # List of archive names. First name is the real one, the rest are links.
9118 # The last name is the one that the linker finds with -lNAME.
9119 library_names_spec=$lt_library_names_spec
9121 # The coded name of the library, if different from the real name.
9122 soname_spec=$lt_soname_spec
9124 # Commands used to build and install an old-style archive.
9126 old_archive_cmds=$lt_old_archive_cmds
9127 old_postinstall_cmds=$lt_old_postinstall_cmds
9128 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9130 # Create an old-style archive from a shared archive.
9131 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9133 # Create a temporary old-style archive to link instead of a shared archive.
9134 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9136 # Commands used to build and install a shared archive.
9137 archive_cmds=$lt_archive_cmds
9138 archive_expsym_cmds=$lt_archive_expsym_cmds
9139 postinstall_cmds=$lt_postinstall_cmds
9140 postuninstall_cmds=$lt_postuninstall_cmds
9142 # Commands used to build a loadable module (assumed same as above if empty)
9143 module_cmds=$lt_module_cmds
9144 module_expsym_cmds=$lt_module_expsym_cmds
9146 # Commands to strip libraries.
9147 old_striplib=$lt_old_striplib
9148 striplib=$lt_striplib
9150 # Dependencies to place before the objects being linked to create a
9152 predep_objects=$lt_predep_objects
9154 # Dependencies to place after the objects being linked to create a
9156 postdep_objects=$lt_postdep_objects
9158 # Dependencies to place before the objects being linked to create a
9162 # Dependencies to place after the objects being linked to create a
9164 postdeps=$lt_postdeps
9166 # The library search path used internally by the compiler when linking
9168 compiler_lib_search_path=$lt_compiler_lib_search_path
9170 # Method to check whether dependent libraries are shared objects.
9171 deplibs_check_method=$lt_deplibs_check_method
9173 # Command to use when deplibs_check_method == file_magic.
9174 file_magic_cmd=$lt_file_magic_cmd
9176 # Flag that allows shared libraries with undefined symbols to be built.
9177 allow_undefined_flag=$lt_allow_undefined_flag
9179 # Flag that forces no undefined symbols.
9180 no_undefined_flag=$lt_no_undefined_flag
9182 # Commands used to finish a libtool library installation in a directory.
9183 finish_cmds=$lt_finish_cmds
9185 # Same as above, but a single script fragment to be evaled but not shown.
9186 finish_eval=$lt_finish_eval
9188 # Take the output of nm and produce a listing of raw symbols and C names.
9189 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9191 # Transform the output of nm in a proper C declaration
9192 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9194 # Transform the output of nm in a C name address pair
9195 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9197 # This is the shared library runtime path variable.
9198 runpath_var=$runpath_var
9200 # This is the shared library path variable.
9201 shlibpath_var=$shlibpath_var
9203 # Is shlibpath searched before the hard-coded library search path?
9204 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9206 # How to hardcode a shared library path into an executable.
9207 hardcode_action=$hardcode_action
9209 # Whether we should hardcode library paths into libraries.
9210 hardcode_into_libs=$hardcode_into_libs
9212 # Flag to hardcode \$libdir into a binary during linking.
9213 # This must work even if \$libdir does not exist.
9214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9216 # If ld is used when linking, flag to hardcode \$libdir into
9217 # a binary during linking. This must work even if \$libdir does
9219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9221 # Whether we need a single -rpath flag with a separated argument.
9222 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9224 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9226 hardcode_direct=$hardcode_direct
9228 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9230 hardcode_minus_L=$hardcode_minus_L
9232 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9233 # the resulting binary.
9234 hardcode_shlibpath_var=$hardcode_shlibpath_var
9236 # Set to yes if building a shared library automatically hardcodes DIR into the library
9237 # and all subsequent libraries and executables linked against it.
9238 hardcode_automatic=$hardcode_automatic
9240 # Variables whose values should be saved in libtool wrapper scripts and
9241 # restored at relink time.
9242 variables_saved_for_relink="$variables_saved_for_relink"
9244 # Whether libtool must link a program against all its dependency libraries.
9245 link_all_deplibs=$link_all_deplibs
9247 # Compile-time system search path for libraries
9248 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9250 # Run-time system search path for libraries
9251 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9253 # Fix the shell variable \$srcfile for the compiler.
9254 fix_srcfile_path="$fix_srcfile_path"
9256 # Set to yes if exported symbols are required.
9257 always_export_symbols=$always_export_symbols
9259 # The commands to list exported symbols.
9260 export_symbols_cmds=$lt_export_symbols_cmds
9262 # The commands to extract the exported symbol list from a shared archive.
9263 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9265 # Symbols that should not be listed in the preloaded symbols.
9266 exclude_expsyms=$lt_exclude_expsyms
9268 # Symbols that must always be exported.
9269 include_expsyms=$lt_include_expsyms
9271 # ### END LIBTOOL CONFIG
9278 cat <<\EOF >> "$cfgfile"
9280 # AIX sometimes has problems with the GCC collect2 program. For some
9281 # reason, if we set the COLLECT_NAMES environment variable, the problems
9282 # vanish in a puff of smoke.
9283 if test "X${COLLECT_NAMES+set}" != Xset; then
9285 export COLLECT_NAMES
9291 # We use sed instead of cat because bash on DJGPP gets confused if
9292 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9293 # text mode, it properly converts lines to CR/LF. This bash problem
9294 # is reportedly fixed, but why not run on old versions too?
9295 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9297 mv -f "$cfgfile" "$ofile" || \
9298 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9302 # If there is no Makefile yet, we rely on a make rule to execute
9303 # `config.status --recheck' to rerun these tests and create the
9304 # libtool script then.
9305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9306 if test -f "$ltmain_in"; then
9307 test -f Makefile && make "$ltmain"
9313 ac_cpp='$CPP $CPPFLAGS'
9314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9321 # Check whether --with-tags or --without-tags was given.
9322 if test "${with_tags+set}" = set; then
9323 withval="$with_tags"
9327 if test -f "$ltmain" && test -n "$tagnames"; then
9328 if test ! -f "${ofile}"; then
9329 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9330 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9333 if test -z "$LTCC"; then
9334 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9335 if test -z "$LTCC"; then
9336 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9337 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9340 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9344 # Extract list of available tagged configurations in $ofile.
9345 # Note that this assumes the entire list is on one line.
9346 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9349 for tagname in $tagnames; do
9351 # Check whether tagname contains only valid characters
9352 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9354 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9355 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9356 { (exit 1); exit 1; }; }
9360 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9362 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9363 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9364 { (exit 1); exit 1; }; }
9367 # Update the list of available tags.
9368 if test -n "$tagname"; then
9369 echo appending configuration tag \"$tagname\" to $ofile
9373 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9374 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9375 (test "X$CXX" != "Xg++"))) ; then
9377 ac_cpp='$CXXCPP $CPPFLAGS'
9378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9385 archive_cmds_need_lc_CXX=no
9386 allow_undefined_flag_CXX=
9387 always_export_symbols_CXX=no
9388 archive_expsym_cmds_CXX=
9389 export_dynamic_flag_spec_CXX=
9390 hardcode_direct_CXX=no
9391 hardcode_libdir_flag_spec_CXX=
9392 hardcode_libdir_flag_spec_ld_CXX=
9393 hardcode_libdir_separator_CXX=
9394 hardcode_minus_L_CXX=no
9395 hardcode_automatic_CXX=no
9397 module_expsym_cmds_CXX=
9398 link_all_deplibs_CXX=unknown
9399 old_archive_cmds_CXX=$old_archive_cmds
9400 no_undefined_flag_CXX=
9401 whole_archive_flag_spec_CXX=
9402 enable_shared_with_static_runtimes_CXX=no
9404 # Dependencies to place before and after the object being linked:
9406 postdep_objects_CXX=
9409 compiler_lib_search_path_CXX=
9411 # Source file extension for C++ test sources.
9414 # Object file extension for compiled C++ test sources.
9418 # Code to be used in simple compile tests
9419 lt_simple_compile_test_code="int some_variable = 0;\n"
9421 # Code to be used in simple link tests
9422 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9424 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9426 # If no C compiler was specified, use CC.
9429 # Allow CC to be a program name with arguments.
9433 # Allow CC to be a program name with arguments.
9438 lt_save_with_gnu_ld=$with_gnu_ld
9439 lt_save_path_LD=$lt_cv_path_LD
9440 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9441 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9443 unset lt_cv_prog_gnu_ld
9445 if test -n "${lt_cv_path_LDCXX+set}"; then
9446 lt_cv_path_LD=$lt_cv_path_LDCXX
9450 test -z "${LDCXX+set}" || LD=$LDCXX
9454 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9456 # We don't want -fno-exception wen compiling C++ code, so set the
9457 # no_builtin_flag separately
9458 if test "$GXX" = yes; then
9459 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9461 lt_prog_compiler_no_builtin_flag_CXX=
9464 if test "$GXX" = yes; then
9465 # Set up default GNU C++ configuration
9468 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9469 if test "${with_gnu_ld+set}" = set; then
9470 withval="$with_gnu_ld"
9471 test "$withval" = no || with_gnu_ld=yes
9476 if test "$GCC" = yes; then
9477 # Check if gcc -print-prog-name=ld gives a path.
9478 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9479 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9482 # gcc leaves a trailing carriage return which upsets mingw
9483 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9485 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9488 # Accept absolute paths.
9490 re_direlt='/[^/][^/]*/\.\./'
9491 # Canonicalize the pathname of ld
9492 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9493 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9494 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9496 test -z "$LD" && LD="$ac_prog"
9499 # If it fails, then pretend we aren't using GCC.
9503 # If it is relative, then search for the first ld in PATH.
9507 elif test "$with_gnu_ld" = yes; then
9508 echo "$as_me:$LINENO: checking for GNU ld" >&5
9509 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9511 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9512 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9514 if test "${lt_cv_path_LD+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 if test -z "$LD"; then
9518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9519 for ac_dir in $PATH; do
9521 test -z "$ac_dir" && ac_dir=.
9522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9523 lt_cv_path_LD="$ac_dir/$ac_prog"
9524 # Check to see if the program is GNU ld. I'd rather use --version,
9525 # but apparently some GNU ld's only accept -v.
9526 # Break only if it was the GNU/non-GNU ld that we prefer.
9527 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9528 *GNU* | *'with BFD'*)
9529 test "$with_gnu_ld" != no && break
9532 test "$with_gnu_ld" != yes && break
9539 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9544 if test -n "$LD"; then
9545 echo "$as_me:$LINENO: result: $LD" >&5
9546 echo "${ECHO_T}$LD" >&6
9548 echo "$as_me:$LINENO: result: no" >&5
9549 echo "${ECHO_T}no" >&6
9551 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9552 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9553 { (exit 1); exit 1; }; }
9554 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9555 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9556 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9560 case `$LD -v 2>&1 </dev/null` in
9561 *GNU* | *'with BFD'*)
9562 lt_cv_prog_gnu_ld=yes
9565 lt_cv_prog_gnu_ld=no
9569 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9570 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9571 with_gnu_ld=$lt_cv_prog_gnu_ld
9575 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9576 # archiving commands below assume that GNU ld is being used.
9577 if test "$with_gnu_ld" = yes; then
9578 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9579 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'
9581 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9584 # If archive_cmds runs LD, not CC, wlarc should be empty
9585 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9586 # investigate it a little bit more. (MM)
9589 # ancient GNU ld didn't support --whole-archive et. al.
9590 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9591 grep 'no-whole-archive' > /dev/null; then
9592 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9594 whole_archive_flag_spec_CXX=
9600 # A generic and very simple default shared library creation
9601 # command for GNU C++ for the case where it uses the native
9602 # linker, instead of GNU ld. If possible, this setting should
9603 # overridden to take advantage of the native linker features on
9604 # the platform it is being used on.
9605 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9608 # Commands to make compiler produce verbose output that lists
9609 # what "hidden" libraries, object files and flags are used when
9610 # linking a shared library.
9611 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9619 # PORTME: fill in a description of your system's C++ link characteristics
9620 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9621 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9625 # FIXME: insert proper C++ library support
9629 if test "$host_cpu" = ia64; then
9630 # On IA64, the linker does run time linking by default, so we don't
9631 # have to do anything special.
9632 aix_use_runtimelinking=no
9633 exp_sym_flag='-Bexport'
9636 aix_use_runtimelinking=no
9638 # Test if we are trying to use run time linking or normal
9639 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9640 # need to do runtime linking.
9641 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9642 for ld_flag in $LDFLAGS; do
9645 aix_use_runtimelinking=yes
9652 exp_sym_flag='-bexport'
9653 no_entry_flag='-bnoentry'
9656 # When large executables or shared objects are built, AIX ld can
9657 # have problems creating the table of contents. If linking a library
9658 # or program results in "error TOC overflow" add -mminimal-toc to
9659 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9660 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9663 hardcode_direct_CXX=yes
9664 hardcode_libdir_separator_CXX=':'
9665 link_all_deplibs_CXX=yes
9667 if test "$GXX" = yes; then
9668 case $host_os in aix4.012|aix4.012.*)
9669 # We only want to do this on AIX 4.2 and lower, the check
9670 # below for broken collect2 doesn't work under 4.3+
9671 collect2name=`${CC} -print-prog-name=collect2`
9672 if test -f "$collect2name" && \
9673 strings "$collect2name" | grep resolve_lib_name >/dev/null
9675 # We have reworked collect2
9676 hardcode_direct_CXX=yes
9678 # We have old collect2
9679 hardcode_direct_CXX=unsupported
9680 # It fails to find uninstalled libraries when the uninstalled
9681 # path is not listed in the libpath. Setting hardcode_minus_L
9682 # to unsupported forces relinking
9683 hardcode_minus_L_CXX=yes
9684 hardcode_libdir_flag_spec_CXX='-L$libdir'
9685 hardcode_libdir_separator_CXX=
9688 shared_flag='-shared'
9691 if test "$host_cpu" = ia64; then
9692 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9693 # chokes on -Wl,-G. The following line is correct:
9696 if test "$aix_use_runtimelinking" = yes; then
9697 shared_flag='${wl}-G'
9699 shared_flag='${wl}-bM:SRE'
9704 # It seems that -bexpall does not export symbols beginning with
9705 # underscore (_), so it is better to generate a list of symbols to export.
9706 always_export_symbols_CXX=yes
9707 if test "$aix_use_runtimelinking" = yes; then
9708 # Warning - without using the other runtime loading flags (-brtl),
9709 # -berok will link without error, but may produce a broken library.
9710 allow_undefined_flag_CXX='-berok'
9711 # Determine the default libpath from the value encoded in an empty executable.
9712 cat >conftest.$ac_ext <<_ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729 (eval $ac_link) 2>conftest.er1
9731 grep -v '^ *+' conftest.er1 >conftest.err
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } &&
9736 { ac_try='test -z "$ac_cxx_werror_flag"
9737 || test ! -s conftest.err'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; } &&
9743 { ac_try='test -s conftest$ac_exeext'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; }; then
9750 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9752 # Check for a 64-bit object if we didn't find anything.
9753 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; }
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9760 rm -f conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9764 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9766 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"
9768 if test "$host_cpu" = ia64; then
9769 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9770 allow_undefined_flag_CXX="-z nodefs"
9771 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"
9773 # Determine the default libpath from the value encoded in an empty executable.
9774 cat >conftest.$ac_ext <<_ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9791 (eval $ac_link) 2>conftest.er1
9793 grep -v '^ *+' conftest.er1 >conftest.err
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -z "$ac_cxx_werror_flag"
9799 || test ! -s conftest.err'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest$ac_exeext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9814 # Check for a 64-bit object if we didn't find anything.
9815 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; }
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9822 rm -f conftest.err conftest.$ac_objext \
9823 conftest$ac_exeext conftest.$ac_ext
9824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9826 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9827 # Warning - without using the other run time loading flags,
9828 # -berok will link without error, but may produce a broken library.
9829 no_undefined_flag_CXX=' ${wl}-bernotok'
9830 allow_undefined_flag_CXX=' ${wl}-berok'
9831 # -bexpall does not export symbols beginning with underscore (_)
9832 always_export_symbols_CXX=yes
9833 # Exported symbols can be pulled into shared objects from archives
9834 whole_archive_flag_spec_CXX=' '
9835 archive_cmds_need_lc_CXX=yes
9836 # This is similar to how AIX traditionally builds it's shared libraries.
9837 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'
9842 case $cc_basename in
9844 # FIXME: insert proper C++ library support
9851 cygwin* | mingw* | pw32*)
9852 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9853 # as there is no search path for DLLs.
9854 hardcode_libdir_flag_spec_CXX='-L$libdir'
9855 allow_undefined_flag_CXX=unsupported
9856 always_export_symbols_CXX=no
9857 enable_shared_with_static_runtimes_CXX=yes
9859 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9860 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'
9861 # If the export-symbols file already is a .def file (1st line
9862 # is EXPORTS), use it as is; otherwise, prepend...
9863 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9864 cp $export_symbols $output_objdir/$soname.def;
9866 echo EXPORTS > $output_objdir/$soname.def;
9867 cat $export_symbols >> $output_objdir/$soname.def;
9868 fi;$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9873 darwin* | rhapsody*)
9875 rhapsody* | darwin1.[012])
9876 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9879 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9880 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9882 case ${MACOSX_DEPLOYMENT_TARGET} in
9884 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9887 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9893 archive_cmds_need_lc_CXX=no
9894 hardcode_direct_CXX=no
9895 hardcode_automatic_CXX=yes
9896 hardcode_shlibpath_var_CXX=unsupported
9897 whole_archive_flag_spec_CXX=''
9898 link_all_deplibs_CXX=yes
9900 if test "$GXX" = yes ; then
9901 lt_int_apple_cc_single_mod=no
9902 output_verbose_link_cmd='echo'
9903 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9904 lt_int_apple_cc_single_mod=yes
9906 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9907 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9909 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'
9911 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9912 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9913 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9914 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}'
9916 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}'
9918 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}'
9920 case "$cc_basename" in
9922 output_verbose_link_cmd='echo'
9923 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'
9924 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9925 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9926 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}'
9927 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}'
9937 case $cc_basename in
9939 # FIXME: insert proper C++ library support
9943 # Green Hills C++ Compiler
9944 # FIXME: insert proper C++ library support
9948 # FIXME: insert proper C++ library support
9954 # C++ shared libraries reported to be fairly broken before switch to ELF
9958 archive_cmds_need_lc_CXX=no
9960 freebsd* | kfreebsd*-gnu)
9961 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9968 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9969 hardcode_libdir_separator_CXX=:
9970 export_dynamic_flag_spec_CXX='${wl}-E'
9971 hardcode_direct_CXX=yes
9972 hardcode_minus_L_CXX=yes # Not in the search PATH,
9973 # but as the default
9974 # location of the library.
9976 case $cc_basename in
9978 # FIXME: insert proper C++ library support
9982 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'
9983 # Commands to make compiler produce verbose output that lists
9984 # what "hidden" libraries, object files and flags are used when
9985 # linking a shared library.
9987 # There doesn't appear to be a way to prevent this compiler from
9988 # explicitly linking system object files so we need to strip them
9989 # from the output so that they don't get included in the library
9991 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'
9994 if test "$GXX" = yes; then
9995 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'
9997 # FIXME: insert proper C++ library support
10004 if test $with_gnu_ld = no; then
10005 case "$host_cpu" in
10007 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10008 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10009 hardcode_libdir_separator_CXX=:
10012 hardcode_libdir_flag_spec_CXX='-L$libdir'
10015 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10016 hardcode_libdir_separator_CXX=:
10017 export_dynamic_flag_spec_CXX='${wl}-E'
10021 case "$host_cpu" in
10023 hardcode_direct_CXX=no
10024 hardcode_shlibpath_var_CXX=no
10027 hardcode_direct_CXX=no
10028 hardcode_shlibpath_var_CXX=no
10029 hardcode_minus_L_CXX=yes # Not in the search PATH,
10030 # but as the default
10031 # location of the library.
10034 hardcode_direct_CXX=yes
10035 hardcode_minus_L_CXX=yes # Not in the search PATH,
10036 # but as the default
10037 # location of the library.
10041 case $cc_basename in
10043 # FIXME: insert proper C++ library support
10047 case "$host_cpu" in
10049 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10052 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10055 # Commands to make compiler produce verbose output that lists
10056 # what "hidden" libraries, object files and flags are used when
10057 # linking a shared library.
10059 # There doesn't appear to be a way to prevent this compiler from
10060 # explicitly linking system object files so we need to strip them
10061 # from the output so that they don't get included in the library
10063 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'
10066 if test "$GXX" = yes; then
10067 if test $with_gnu_ld = no; then
10068 case "$host_cpu" in
10070 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10073 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'
10078 # FIXME: insert proper C++ library support
10085 case $cc_basename in
10088 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'
10090 # Archives containing C++ object files must be created using
10091 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10092 # necessary to make sure instantiated templates are included
10094 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10097 if test "$GXX" = yes; then
10098 if test "$with_gnu_ld" = no; then
10099 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'
10101 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'
10104 link_all_deplibs_CXX=yes
10107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10108 hardcode_libdir_separator_CXX=:
10111 case $cc_basename in
10113 # Kuck and Associates, Inc. (KAI) C++ Compiler
10115 # KCC will only create a shared library if the output file
10116 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10117 # to its proper name (with version) after linking.
10118 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'
10119 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'
10120 # Commands to make compiler produce verbose output that lists
10121 # what "hidden" libraries, object files and flags are used when
10122 # linking a shared library.
10124 # There doesn't appear to be a way to prevent this compiler from
10125 # explicitly linking system object files so we need to strip them
10126 # from the output so that they don't get included in the library
10128 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'
10130 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10131 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10133 # Archives containing C++ object files must be created using
10134 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10135 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10140 # version 8.0 and above of icpc choke on multiply defined symbols
10141 # if we add $predep_objects and $postdep_objects, however 7.1 and
10142 # earlier do not add the objects themselves.
10143 case `$CC -V 2>&1` in
10145 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10146 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'
10148 *) # Version 8.0 or newer
10149 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10150 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10153 archive_cmds_need_lc_CXX=no
10154 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10155 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10156 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10160 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10161 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'
10163 runpath_var=LD_RUN_PATH
10164 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10165 hardcode_libdir_separator_CXX=:
10167 # Commands to make compiler produce verbose output that lists
10168 # what "hidden" libraries, object files and flags are used when
10169 # linking a shared library.
10171 # There doesn't appear to be a way to prevent this compiler from
10172 # explicitly linking system object files so we need to strip them
10173 # from the output so that they don't get included in the library
10175 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'
10180 # FIXME: insert proper C++ library support
10184 # FIXME: insert proper C++ library support
10188 case $cc_basename in
10190 # FIXME: insert proper C++ library support
10194 # FIXME: insert proper C++ library support
10200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10201 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10203 hardcode_libdir_flag_spec_CXX='-R$libdir'
10204 hardcode_direct_CXX=yes
10205 hardcode_shlibpath_var_CXX=no
10207 # Workaround some broken pre-1.5 toolchains
10208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10211 # C++ shared libraries are fairly broken
10215 hardcode_direct_CXX=yes
10216 hardcode_shlibpath_var_CXX=no
10217 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10218 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10219 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10220 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10221 export_dynamic_flag_spec_CXX='${wl}-E'
10222 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10224 output_verbose_link_cmd='echo'
10227 case $cc_basename in
10229 # Kuck and Associates, Inc. (KAI) C++ Compiler
10231 # KCC will only create a shared library if the output file
10232 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10233 # to its proper name (with version) after linking.
10234 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'
10236 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10237 hardcode_libdir_separator_CXX=:
10239 # Archives containing C++ object files must be created using
10240 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10241 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10245 # Rational C++ 2.4.1
10246 # FIXME: insert proper C++ library support
10250 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10251 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'
10253 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10254 hardcode_libdir_separator_CXX=:
10256 # Commands to make compiler produce verbose output that lists
10257 # what "hidden" libraries, object files and flags are used when
10258 # linking a shared library.
10260 # There doesn't appear to be a way to prevent this compiler from
10261 # explicitly linking system object files so we need to strip them
10262 # from the output so that they don't get included in the library
10264 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'
10267 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10268 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10269 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'
10271 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10272 hardcode_libdir_separator_CXX=:
10274 # Commands to make compiler produce verbose output that lists
10275 # what "hidden" libraries, object files and flags are used when
10276 # linking a shared library.
10277 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10280 # FIXME: insert proper C++ library support
10287 case $cc_basename in
10289 # Kuck and Associates, Inc. (KAI) C++ Compiler
10291 # KCC will only create a shared library if the output file
10292 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10293 # to its proper name (with version) after linking.
10294 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'
10296 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10297 hardcode_libdir_separator_CXX=:
10299 # Archives containing C++ object files must be created using
10300 # the KAI C++ compiler.
10301 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10304 # Rational C++ 2.4.1
10305 # FIXME: insert proper C++ library support
10309 allow_undefined_flag_CXX=' -expect_unresolved \*'
10310 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'
10311 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib;$rm $lib.exp'
10313 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10314 hardcode_libdir_separator_CXX=:
10316 # Commands to make compiler produce verbose output that lists
10317 # what "hidden" libraries, object files and flags are used when
10318 # linking a shared library.
10320 # There doesn't appear to be a way to prevent this compiler from
10321 # explicitly linking system object files so we need to strip them
10322 # from the output so that they don't get included in the library
10324 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'
10327 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10328 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10329 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'
10331 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10332 hardcode_libdir_separator_CXX=:
10334 # Commands to make compiler produce verbose output that lists
10335 # what "hidden" libraries, object files and flags are used when
10336 # linking a shared library.
10337 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10340 # FIXME: insert proper C++ library support
10347 # FIXME: insert proper C++ library support
10351 archive_cmds_need_lc_CXX=no
10352 case $cc_basename in
10354 # FIXME: insert proper C++ library support
10358 # FIXME: insert proper C++ library support
10364 case $cc_basename in
10367 # FIXME: insert proper C++ library support
10372 # FIXME: insert proper C++ library support
10376 # FIXME: insert proper C++ library support
10382 case $cc_basename in
10384 # Sun C++ 4.2, 5.x and Centerline C++
10385 no_undefined_flag_CXX=' -zdefs'
10386 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10387 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10389 hardcode_libdir_flag_spec_CXX='-R$libdir'
10390 hardcode_shlibpath_var_CXX=no
10392 solaris2.0-5 | solaris2.0-5.*) ;;
10394 # The C++ compiler is used as linker so we must use $wl
10395 # flag to pass the commands to the underlying system
10397 # Supported since Solaris 2.6 (maybe 2.5.1?)
10398 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10401 link_all_deplibs_CXX=yes
10403 # Commands to make compiler produce verbose output that lists
10404 # what "hidden" libraries, object files and flags are used when
10405 # linking a shared library.
10407 # There doesn't appear to be a way to prevent this compiler from
10408 # explicitly linking system object files so we need to strip them
10409 # from the output so that they don't get included in the library
10411 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'
10413 # Archives containing C++ object files must be created using
10414 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10415 # necessary to make sure instantiated templates are included
10417 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10420 # Green Hills C++ Compiler
10421 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10423 # The C++ compiler must be used to create the archive.
10424 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10427 # GNU C++ compiler with Solaris linker
10428 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10429 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10430 if $CC --version | grep -v '^2\.7' > /dev/null; then
10431 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10432 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10433 # Commands to make compiler produce verbose output that lists
10434 # what "hidden" libraries, object files and flags are used when
10435 # linking a shared library.
10436 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10438 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10440 archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10450 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10455 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10456 archive_cmds_need_lc_CXX=no
10459 case $cc_basename in
10461 # NonStop-UX NCC 3.20
10462 # FIXME: insert proper C++ library support
10466 # FIXME: insert proper C++ library support
10472 # FIXME: insert proper C++ library support
10476 # FIXME: insert proper C++ library support
10480 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10481 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10482 test "$ld_shlibs_CXX" = no && can_build_shared=no
10488 cat > conftest.$ac_ext <<EOF
10492 Foo (void) { a = 0; }
10498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10499 (eval $ac_compile) 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; then
10503 # Parse the compiler output and extract the necessary
10504 # objects, libraries and library flags.
10506 # Sentinel used to keep track of whether or not we are before
10507 # the conftest object file.
10508 pre_test_object_deps_done=no
10510 # The `*' in the case matches for architectures that use `case' in
10511 # $output_verbose_cmd can trigger glob expansion during the loop
10512 # eval without this substitution.
10513 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10515 for p in `eval $output_verbose_link_cmd`; do
10519 # Some compilers place space between "-{L,R}" and the path.
10520 # Remove the space.
10521 if test $p = "-L" \
10522 || test $p = "-R"; then
10529 if test "$pre_test_object_deps_done" = no; then
10532 # Internal compiler library paths should come after those
10533 # provided the user. The postdeps already come after the
10534 # user supplied libs so there is no need to process them.
10535 if test -z "$compiler_lib_search_path_CXX"; then
10536 compiler_lib_search_path_CXX="${prev}${p}"
10538 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10541 # The "-l" case would never come before the object being
10542 # linked, so don't bother handling this case.
10545 if test -z "$postdeps_CXX"; then
10546 postdeps_CXX="${prev}${p}"
10548 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10554 # This assumes that the test object file only shows up
10555 # once in the compiler output.
10556 if test "$p" = "conftest.$objext"; then
10557 pre_test_object_deps_done=yes
10561 if test "$pre_test_object_deps_done" = no; then
10562 if test -z "$predep_objects_CXX"; then
10563 predep_objects_CXX="$p"
10565 predep_objects_CXX="$predep_objects_CXX $p"
10568 if test -z "$postdep_objects_CXX"; then
10569 postdep_objects_CXX="$p"
10571 postdep_objects_CXX="$postdep_objects_CXX $p"
10576 *) ;; # Ignore the rest.
10584 echo "libtool.m4: error: problem compiling CXX test program"
10587 $rm -f confest.$objext
10589 case " $postdeps_CXX " in
10590 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10593 lt_prog_compiler_wl_CXX=
10594 lt_prog_compiler_pic_CXX=
10595 lt_prog_compiler_static_CXX=
10597 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10598 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10600 # C++ specific cases for pic, static, wl, etc.
10601 if test "$GXX" = yes; then
10602 lt_prog_compiler_wl_CXX='-Wl,'
10603 lt_prog_compiler_static_CXX='-static'
10607 # All AIX code is PIC.
10608 if test "$host_cpu" = ia64; then
10609 # AIX 5 now supports IA64 processor
10610 lt_prog_compiler_static_CXX='-Bstatic'
10614 # FIXME: we need at least 68020 code to build shared libraries, but
10615 # adding the `-m68020' flag to GCC prevents building anything better,
10617 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10619 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10620 # PIC is the default for these OSes.
10622 mingw* | os2* | pw32*)
10623 # This hack is so that the source file can tell whether it is being
10624 # built for inclusion in a dll (and should export symbols for example).
10625 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10627 darwin* | rhapsody*)
10628 # PIC is the default on this platform
10629 # Common symbols not allowed in MH_DYLIB files
10630 lt_prog_compiler_pic_CXX='-fno-common'
10633 # DJGPP does not support shared libraries at all
10634 lt_prog_compiler_pic_CXX=
10637 if test -d /usr/nec; then
10638 lt_prog_compiler_pic_CXX=-Kconform_pic
10642 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10643 # not for PA HP-UX.
10644 case "$host_cpu" in
10648 lt_prog_compiler_pic_CXX='-fPIC'
10653 lt_prog_compiler_pic_CXX='-fPIC'
10659 # All AIX code is PIC.
10660 if test "$host_cpu" = ia64; then
10661 # AIX 5 now supports IA64 processor
10662 lt_prog_compiler_static_CXX='-Bstatic'
10664 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10668 case $cc_basename in
10670 # Green Hills C++ Compiler
10671 # _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"
10676 # PIC is the default on this platform
10677 # Common symbols not allowed in MH_DYLIB files
10678 case "$cc_basename" in
10680 lt_prog_compiler_pic_CXX='-qnocommon'
10681 lt_prog_compiler_wl_CXX='-Wl,'
10686 case $cc_basename in
10688 lt_prog_compiler_pic_CXX='-KPIC'
10691 # Green Hills C++ Compiler
10692 lt_prog_compiler_pic_CXX='-pic'
10698 freebsd* | kfreebsd*-gnu)
10699 # FreeBSD uses GNU C++
10701 hpux9* | hpux10* | hpux11*)
10702 case $cc_basename in
10704 lt_prog_compiler_wl_CXX='-Wl,'
10705 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10706 if test "$host_cpu" != ia64; then
10707 lt_prog_compiler_pic_CXX='+Z'
10711 lt_prog_compiler_wl_CXX='-Wl,'
10712 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10713 case "$host_cpu" in
10718 lt_prog_compiler_pic_CXX='+Z'
10726 irix5* | irix6* | nonstopux*)
10727 case $cc_basename in
10729 lt_prog_compiler_wl_CXX='-Wl,'
10730 lt_prog_compiler_static_CXX='-non_shared'
10731 # CC pic flag -KPIC is the default.
10738 case $cc_basename in
10741 lt_prog_compiler_wl_CXX='--backend -Wl,'
10742 lt_prog_compiler_pic_CXX='-fPIC'
10746 lt_prog_compiler_wl_CXX='-Wl,'
10747 lt_prog_compiler_pic_CXX='-KPIC'
10748 lt_prog_compiler_static_CXX='-static'
10752 # Make sure the PIC flag is empty. It appears that all Alpha
10753 # Linux and Compaq Tru64 Unix objects are PIC.
10754 lt_prog_compiler_pic_CXX=
10755 lt_prog_compiler_static_CXX='-non_shared'
10766 case $cc_basename in
10768 lt_prog_compiler_pic_CXX='-W c,exportall'
10776 osf3* | osf4* | osf5*)
10777 case $cc_basename in
10779 lt_prog_compiler_wl_CXX='--backend -Wl,'
10782 # Rational C++ 2.4.1
10783 lt_prog_compiler_pic_CXX='-pic'
10786 # Digital/Compaq C++
10787 lt_prog_compiler_wl_CXX='-Wl,'
10788 # Make sure the PIC flag is empty. It appears that all Alpha
10789 # Linux and Compaq Tru64 Unix objects are PIC.
10790 lt_prog_compiler_pic_CXX=
10791 lt_prog_compiler_static_CXX='-non_shared'
10800 case $cc_basename in
10802 lt_prog_compiler_pic_CXX='-fPIC'
10809 case $cc_basename in
10811 # Sun C++ 4.2, 5.x and Centerline C++
10812 lt_prog_compiler_pic_CXX='-KPIC'
10813 lt_prog_compiler_static_CXX='-Bstatic'
10814 lt_prog_compiler_wl_CXX='-Qoption ld '
10817 # Green Hills C++ Compiler
10818 lt_prog_compiler_pic_CXX='-PIC'
10825 case $cc_basename in
10828 lt_prog_compiler_pic_CXX='-pic'
10829 lt_prog_compiler_static_CXX='-Bstatic'
10833 lt_prog_compiler_pic_CXX='-pic'
10840 case $cc_basename in
10842 # NonStop-UX NCC 3.20
10843 lt_prog_compiler_pic_CXX='-KPIC'
10854 lt_prog_compiler_can_build_shared_CXX=no
10859 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10860 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10863 # Check to make sure the PIC flag actually works.
10865 if test -n "$lt_prog_compiler_pic_CXX"; then
10867 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10868 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10869 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 lt_prog_compiler_pic_works_CXX=no
10873 ac_outfile=conftest.$ac_objext
10874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10875 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10876 # Insert the option either (1) after the last *FLAGS variable, or
10877 # (2) before a word containing "conftest.", or (3) at the end.
10878 # Note that $ac_compile itself does not contain backslashes and begins
10879 # with a dollar sign (not a hyphen), so the echo should work correctly.
10880 # The option is referenced via a variable to avoid confusing sed.
10881 lt_compile=`echo "$ac_compile" | $SED \
10882 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10884 -e 's:$: $lt_compiler_flag:'`
10885 (eval echo "\"\$as_me:10885: $lt_compile\"" >&5)
10886 (eval "$lt_compile" 2>conftest.err)
10888 cat conftest.err >&5
10889 echo "$as_me:10889: \$? = $ac_status" >&5
10890 if (exit $ac_status) && test -s "$ac_outfile"; then
10891 # The compiler can only warn and ignore the option if not recognized
10892 # So say no if there are warnings
10893 if test ! -s conftest.err; then
10894 lt_prog_compiler_pic_works_CXX=yes
10900 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10901 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10903 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10904 case $lt_prog_compiler_pic_CXX in
10906 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10909 lt_prog_compiler_pic_CXX=
10910 lt_prog_compiler_can_build_shared_CXX=no
10915 # For platforms which do not support PIC, -DPIC is meaningless:
10917 lt_prog_compiler_pic_CXX=
10920 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10924 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10925 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10926 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 lt_cv_prog_compiler_c_o_CXX=no
10930 $rm -r conftest 2>/dev/null
10934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10936 lt_compiler_flag="-o out/conftest2.$ac_objext"
10937 # Insert the option either (1) after the last *FLAGS variable, or
10938 # (2) before a word containing "conftest.", or (3) at the end.
10939 # Note that $ac_compile itself does not contain backslashes and begins
10940 # with a dollar sign (not a hyphen), so the echo should work correctly.
10941 lt_compile=`echo "$ac_compile" | $SED \
10942 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10944 -e 's:$: $lt_compiler_flag:'`
10945 (eval echo "\"\$as_me:10945: $lt_compile\"" >&5)
10946 (eval "$lt_compile" 2>out/conftest.err)
10948 cat out/conftest.err >&5
10949 echo "$as_me:10949: \$? = $ac_status" >&5
10950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10952 # The compiler can only warn and ignore the option if not recognized
10953 # So say no if there are warnings
10954 if test ! -s out/conftest.err; then
10955 lt_cv_prog_compiler_c_o_CXX=yes
10960 # SGI C++ compiler will create directory out/ii_files/ for
10961 # template instantiation
10962 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10963 $rm out/* && rmdir out
10969 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10970 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10973 hard_links="nottested"
10974 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10975 # do not overwrite the value of need_locks provided by the user
10976 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10977 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10982 ln conftest.a conftest.b 2>&5 || hard_links=no
10983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10984 echo "$as_me:$LINENO: result: $hard_links" >&5
10985 echo "${ECHO_T}$hard_links" >&6
10986 if test "$hard_links" = no; then
10987 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10988 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10995 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10998 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11001 # If we're using GNU nm, then we don't want the "-C" option.
11002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11003 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11004 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'
11006 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'
11010 export_symbols_cmds_CXX="$ltdll_cmds"
11013 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11016 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11020 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11021 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11022 test "$ld_shlibs_CXX" = no && can_build_shared=no
11024 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11025 if test "$GCC" = yes; then
11026 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11030 # Do we need to explicitly link libc?
11032 case "x$archive_cmds_need_lc_CXX" in
11034 # Assume -lc should be added
11035 archive_cmds_need_lc_CXX=yes
11037 if test "$enable_shared" = yes && test "$GCC" = yes; then
11038 case $archive_cmds_CXX in
11040 # FIXME: we may have to deal with multi-command sequences.
11043 # Test whether the compiler implicitly links with -lc since on some
11044 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11045 # to ld, don't add -lc before -lgcc.
11046 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11047 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11049 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11052 (eval $ac_compile) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } 2>conftest.err; then
11058 libobjs=conftest.$ac_objext
11060 wl=$lt_prog_compiler_wl_CXX
11066 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11067 allow_undefined_flag_CXX=
11068 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11069 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }
11074 archive_cmds_need_lc_CXX=no
11076 archive_cmds_need_lc_CXX=yes
11078 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11080 cat conftest.err 1>&5
11083 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11084 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11091 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11092 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11093 library_names_spec=
11094 libname_spec='lib$name'
11098 postuninstall_cmds=
11102 shlibpath_overrides_runpath=unknown
11104 dynamic_linker="$host_os ld.so"
11105 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11106 if test "$GCC" = yes; then
11107 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11108 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11109 # if the path contains ";" then we assume it to be the separator
11110 # otherwise default to the standard path separator (i.e. ":") - it is
11111 # assumed that no part of a normal pathname contains ";" but that should
11112 # okay in the real world where ";" in dirpaths is itself problematic.
11113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11118 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11120 need_lib_prefix=unknown
11121 hardcode_into_libs=no
11123 # when you set need_version to no, make sure it does not cause -set_version
11124 # flags to be left without arguments
11125 need_version=unknown
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11131 shlibpath_var=LIBPATH
11133 # AIX 3 has no versioning support, so we append a major version to the name.
11134 soname_spec='${libname}${release}${shared_ext}$major'
11141 hardcode_into_libs=yes
11142 if test "$host_cpu" = ia64; then
11143 # AIX 5 supports IA64
11144 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11145 shlibpath_var=LD_LIBRARY_PATH
11147 # With GCC up to 2.95.x, collect2 would create an import file
11148 # for dependence libraries. The import file would start with
11149 # the line `#! .'. This would cause the generated library to
11150 # depend on `.', always an invalid library. This was fixed in
11151 # development snapshots of GCC prior to 3.0.
11153 aix4 | aix4.[01] | aix4.[01].*)
11154 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11156 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11159 can_build_shared=no
11163 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11164 # soname into executable. Probably we can add versioning support to
11165 # collect2, so additional links can be useful in future.
11166 if test "$aix_use_runtimelinking" = yes; then
11167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11168 # instead of lib<name>.a to let people know that these are not
11169 # typical AIX shared libraries.
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 # We preserve .a as extension for shared libraries through AIX4.2
11173 # and later when we are not doing run time linking.
11174 library_names_spec='${libname}${release}.a $libname.a'
11175 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LIBPATH
11182 library_names_spec='$libname.ixlibrary $libname.a'
11183 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11184 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'
11188 library_names_spec='${libname}${shared_ext}'
11189 dynamic_linker="$host_os ld.so"
11190 shlibpath_var=LIBRARY_PATH
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 soname_spec='${libname}${release}${shared_ext}$major'
11198 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11201 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11202 # the default ld.so.conf also contains /usr/contrib/lib and
11203 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11204 # libtool to hard-code these into programs
11207 cygwin* | mingw* | pw32*)
11208 version_type=windows
11213 case $GCC,$host_os in
11214 yes,cygwin* | yes,mingw* | yes,pw32*)
11215 library_names_spec='$libname.dll.a'
11216 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11217 postinstall_cmds='base_file=`basename \${file}`;
11218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
11219 dldir=$destdir/`dirname \$dlpath`;
11220 test -d \$dldir || mkdir -p \$dldir;
11221 $install_prog $dir/$dlname \$dldir/$dlname'
11222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
11223 dlpath=$dir/\$dldll;
11225 shlibpath_overrides_runpath=yes
11229 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11230 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11231 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11234 # MinGW DLLs use traditional 'lib' prefix
11235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11236 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11237 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11238 # It is most probably a Windows format PATH printed by
11239 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11240 # path with ; separators, and with drive letters. We can handle the
11241 # drive letters (cygwin fileutils understands them), so leave them,
11242 # especially as we might pass files found there to a mingw objdump,
11243 # which wouldn't understand a cygwinified path. Ahh.
11244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11250 # pw32 DLLs use 'pw' prefix rather than 'lib'
11251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11260 dynamic_linker='Win32 ld.exe'
11261 # FIXME: first we should search . and the directory the executable is in
11265 darwin* | rhapsody*)
11266 dynamic_linker="$host_os dyld"
11267 version_type=darwin
11270 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11271 soname_spec='${libname}${release}${major}$shared_ext'
11272 shlibpath_overrides_runpath=yes
11273 shlibpath_var=DYLD_LIBRARY_PATH
11274 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11275 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11276 if test "$GCC" = yes; then
11277 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"`
11279 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11281 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 shlibpath_var=LD_LIBRARY_PATH
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 shlibpath_overrides_runpath=no
11305 hardcode_into_libs=yes
11306 dynamic_linker='GNU ld.so'
11310 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11311 version_type=freebsd-$objformat
11312 case $version_type in
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11323 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=yes
11328 freebsd3.01* | freebsdelf3.01*)
11329 shlibpath_overrides_runpath=yes
11330 hardcode_into_libs=yes
11333 shlibpath_overrides_runpath=no
11334 hardcode_into_libs=yes
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11345 shlibpath_var=LD_LIBRARY_PATH
11346 hardcode_into_libs=yes
11349 hpux9* | hpux10* | hpux11*)
11350 # Give a soname corresponding to the major version so that dld.sl refuses to
11351 # link against other versions.
11355 case "$host_cpu" in
11358 hardcode_into_libs=yes
11359 dynamic_linker="$host_os dld.so"
11360 shlibpath_var=LD_LIBRARY_PATH
11361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 if test "X$HPUX_IA64_MODE" = X32; then
11365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11373 hardcode_into_libs=yes
11374 dynamic_linker="$host_os dld.sl"
11375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11384 dynamic_linker="$host_os dld.sl"
11385 shlibpath_var=SHLIB_PATH
11386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11391 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11392 postinstall_cmds='chmod 555 $lib'
11395 irix5* | irix6* | nonstopux*)
11397 nonstopux*) version_type=nonstopux ;;
11399 if test "$lt_cv_prog_gnu_ld" = yes; then
11407 soname_spec='${libname}${release}${shared_ext}$major'
11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11410 irix5* | nonstopux*)
11411 libsuff= shlibsuff=
11414 case $LD in # libtool.m4 will add one of these switches to LD
11415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11416 libsuff= shlibsuff= libmagic=32-bit;;
11417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11418 libsuff=32 shlibsuff=N32 libmagic=N32;;
11419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11421 *) libsuff= shlibsuff= libmagic=never-match;;
11425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11426 shlibpath_overrides_runpath=no
11427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11429 hardcode_into_libs=yes
11432 # No shared lib support for Linux oldld, aout, or coff.
11433 linux*oldld* | linux*aout* | linux*coff*)
11437 # This must be Linux ELF.
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=no
11447 # This implies no fast_install, which is unacceptable.
11448 # Some rework will be needed to allow for fast_install
11449 # before this can be enabled.
11450 hardcode_into_libs=yes
11452 # Append ld.so.conf contents to the search path
11453 if test -f /etc/ld.so.conf; then
11454 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11455 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11458 # We used to test for /lib/ld.so.1 and disable shared libraries on
11459 # powerpc, because MkLinux only supported shared libraries with the
11460 # GNU dynamic linker. Since this was broken with cross compilers,
11461 # most powerpc-linux boxes support dynamic linking these days and
11462 # people can always --disable-shared, the test was removed, and we
11463 # assume the GNU/Linux dynamic linker is in use.
11464 dynamic_linker='GNU/Linux ld.so'
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 shlibpath_overrides_runpath=no
11475 hardcode_into_libs=yes
11476 dynamic_linker='GNU ld.so'
11483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11486 dynamic_linker='NetBSD (a.out) ld.so'
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11489 soname_spec='${libname}${release}${shared_ext}$major'
11490 dynamic_linker='NetBSD ld.elf_so'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 shlibpath_overrides_runpath=yes
11494 hardcode_into_libs=yes
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=yes
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11523 openbsd2.[89] | openbsd2.[89].*)
11524 shlibpath_overrides_runpath=no
11527 shlibpath_overrides_runpath=yes
11531 shlibpath_overrides_runpath=yes
11536 libname_spec='$name'
11539 library_names_spec='$libname${shared_ext} $libname.a'
11540 dynamic_linker='OS/2 ld.exe'
11541 shlibpath_var=LIBPATH
11544 osf3* | osf4* | osf5*)
11548 soname_spec='${libname}${release}${shared_ext}$major'
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11552 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 shlibpath_var=LD_LIBRARY_PATH
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567 soname_spec='${libname}${release}${shared_ext}$major'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 shlibpath_overrides_runpath=yes
11570 hardcode_into_libs=yes
11571 # ldd complains unless libraries are executable
11572 postinstall_cmds='chmod +x $lib'
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11579 shlibpath_var=LD_LIBRARY_PATH
11580 shlibpath_overrides_runpath=yes
11581 if test "$with_gnu_ld" = yes; then
11587 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 case $host_vendor in
11594 shlibpath_overrides_runpath=no
11596 export_dynamic_flag_spec='${wl}-Blargedynsym'
11597 runpath_var=LD_RUN_PATH
11605 shlibpath_overrides_runpath=no
11606 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11612 if test -d /usr/nec ;then
11614 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11615 soname_spec='$libname${shared_ext}.$major'
11616 shlibpath_var=LD_LIBRARY_PATH
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 shlibpath_var=LD_LIBRARY_PATH
11631 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11632 echo "${ECHO_T}$dynamic_linker" >&6
11633 test "$dynamic_linker" = no && can_build_shared=no
11635 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11636 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11637 hardcode_action_CXX=
11638 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11639 test -n "$runpath_var_CXX" || \
11640 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11642 # We can hardcode non-existant directories.
11643 if test "$hardcode_direct_CXX" != no &&
11644 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11645 # have to relink, otherwise we might link with an installed library
11646 # when we should be linking with a yet-to-be-installed one
11647 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11648 test "$hardcode_minus_L_CXX" != no; then
11649 # Linking always hardcodes the temporary library directory.
11650 hardcode_action_CXX=relink
11652 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11653 hardcode_action_CXX=immediate
11656 # We cannot hardcode anything, or else we can only hardcode existing
11658 hardcode_action_CXX=unsupported
11660 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11661 echo "${ECHO_T}$hardcode_action_CXX" >&6
11663 if test "$hardcode_action_CXX" = relink; then
11664 # Fast installation is not supported
11665 enable_fast_install=no
11666 elif test "$shlibpath_overrides_runpath" = yes ||
11667 test "$enable_shared" = no; then
11668 # Fast installation is not necessary
11669 enable_fast_install=needless
11674 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11675 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11676 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11677 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11678 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11679 echo "$as_me:$LINENO: result: yes" >&5
11680 echo "${ECHO_T}yes" >&6
11682 # FIXME - insert some real tests, host_os isn't really good enough
11685 if test -n "$STRIP" ; then
11686 striplib="$STRIP -x"
11687 echo "$as_me:$LINENO: result: yes" >&5
11688 echo "${ECHO_T}yes" >&6
11690 echo "$as_me:$LINENO: result: no" >&5
11691 echo "${ECHO_T}no" >&6
11695 echo "$as_me:$LINENO: result: no" >&5
11696 echo "${ECHO_T}no" >&6
11701 if test "x$enable_dlopen" != xyes; then
11702 enable_dlopen=unknown
11703 enable_dlopen_self=unknown
11704 enable_dlopen_self_static=unknown
11711 lt_cv_dlopen="load_add_on"
11713 lt_cv_dlopen_self=yes
11717 lt_cv_dlopen="LoadLibrary"
11722 lt_cv_dlopen="dlopen"
11727 # if libdl is installed we need to link against it
11728 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11729 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11730 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 ac_check_lib_save_LIBS=$LIBS
11735 cat >conftest.$ac_ext <<_ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11742 /* Override any gcc2 internal prototype to avoid an error. */
11746 /* We use char because int might match the return type of a gcc2
11747 builtin and then its argument prototype would still apply. */
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>conftest.er1
11761 grep -v '^ *+' conftest.er1 >conftest.err
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_cxx_werror_flag"
11767 || test ! -s conftest.err'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; } &&
11773 { ac_try='test -s conftest$ac_exeext'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_cv_lib_dl_dlopen=yes
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 ac_cv_lib_dl_dlopen=no
11786 rm -f conftest.err conftest.$ac_objext \
11787 conftest$ac_exeext conftest.$ac_ext
11788 LIBS=$ac_check_lib_save_LIBS
11790 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11791 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11792 if test $ac_cv_lib_dl_dlopen = yes; then
11793 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11796 lt_cv_dlopen="dyld"
11798 lt_cv_dlopen_self=yes
11805 echo "$as_me:$LINENO: checking for shl_load" >&5
11806 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11807 if test "${ac_cv_func_shl_load+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11818 #define shl_load innocuous_shl_load
11820 /* System header to define __stub macros and hopefully few prototypes,
11821 which can conflict with char shl_load (); below.
11822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823 <limits.h> exists even on freestanding compilers. */
11826 # include <limits.h>
11828 # include <assert.h>
11833 /* Override any gcc2 internal prototype to avoid an error. */
11838 /* We use char because int might match the return type of a gcc2
11839 builtin and then its argument prototype would still apply. */
11841 /* The GNU C library defines this for functions which it implements
11842 to always fail with ENOSYS. Some functions are actually named
11843 something starting with __ and the normal name is an alias. */
11844 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11847 char (*f) () = shl_load;
11856 return f != shl_load;
11861 rm -f conftest.$ac_objext conftest$ac_exeext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11863 (eval $ac_link) 2>conftest.er1
11865 grep -v '^ *+' conftest.er1 >conftest.err
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try='test -z "$ac_cxx_werror_flag"
11871 || test ! -s conftest.err'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest$ac_exeext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_func_shl_load=yes
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 ac_cv_func_shl_load=no
11890 rm -f conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11893 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11894 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11895 if test $ac_cv_func_shl_load = yes; then
11896 lt_cv_dlopen="shl_load"
11898 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11899 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11900 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 ac_check_lib_save_LIBS=$LIBS
11905 cat >conftest.$ac_ext <<_ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11912 /* Override any gcc2 internal prototype to avoid an error. */
11916 /* We use char because int might match the return type of a gcc2
11917 builtin and then its argument prototype would still apply. */
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929 (eval $ac_link) 2>conftest.er1
11931 grep -v '^ *+' conftest.er1 >conftest.err
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_cxx_werror_flag"
11937 || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest$ac_exeext'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 ac_cv_lib_dld_shl_load=yes
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11954 ac_cv_lib_dld_shl_load=no
11956 rm -f conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11958 LIBS=$ac_check_lib_save_LIBS
11960 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11961 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11962 if test $ac_cv_lib_dld_shl_load = yes; then
11963 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11965 echo "$as_me:$LINENO: checking for dlopen" >&5
11966 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11967 if test "${ac_cv_func_dlopen+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11978 #define dlopen innocuous_dlopen
11980 /* System header to define __stub macros and hopefully few prototypes,
11981 which can conflict with char dlopen (); below.
11982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983 <limits.h> exists even on freestanding compilers. */
11986 # include <limits.h>
11988 # include <assert.h>
11993 /* Override any gcc2 internal prototype to avoid an error. */
11998 /* We use char because int might match the return type of a gcc2
11999 builtin and then its argument prototype would still apply. */
12001 /* The GNU C library defines this for functions which it implements
12002 to always fail with ENOSYS. Some functions are actually named
12003 something starting with __ and the normal name is an alias. */
12004 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12007 char (*f) () = dlopen;
12016 return f != dlopen;
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12025 grep -v '^ *+' conftest.er1 >conftest.err
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_cxx_werror_flag"
12031 || test ! -s conftest.err'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest$ac_exeext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_func_dlopen=yes
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 ac_cv_func_dlopen=no
12050 rm -f conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
12053 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12054 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12055 if test $ac_cv_func_dlopen = yes; then
12056 lt_cv_dlopen="dlopen"
12058 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12059 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12060 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12061 echo $ECHO_N "(cached) $ECHO_C" >&6
12063 ac_check_lib_save_LIBS=$LIBS
12065 cat >conftest.$ac_ext <<_ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12072 /* Override any gcc2 internal prototype to avoid an error. */
12076 /* We use char because int might match the return type of a gcc2
12077 builtin and then its argument prototype would still apply. */
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12089 (eval $ac_link) 2>conftest.er1
12091 grep -v '^ *+' conftest.er1 >conftest.err
12093 cat conftest.err >&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } &&
12096 { ac_try='test -z "$ac_cxx_werror_flag"
12097 || test ! -s conftest.err'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; } &&
12103 { ac_try='test -s conftest$ac_exeext'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_cv_lib_dl_dlopen=yes
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ac_cv_lib_dl_dlopen=no
12116 rm -f conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12118 LIBS=$ac_check_lib_save_LIBS
12120 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12121 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12122 if test $ac_cv_lib_dl_dlopen = yes; then
12123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12125 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12126 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12127 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 ac_check_lib_save_LIBS=$LIBS
12131 LIBS="-lsvld $LIBS"
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12139 /* Override any gcc2 internal prototype to avoid an error. */
12143 /* We use char because int might match the return type of a gcc2
12144 builtin and then its argument prototype would still apply. */
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156 (eval $ac_link) 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_cxx_werror_flag"
12164 || test ! -s conftest.err'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try='test -s conftest$ac_exeext'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 ac_cv_lib_svld_dlopen=yes
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_cv_lib_svld_dlopen=no
12183 rm -f conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12187 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12188 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12189 if test $ac_cv_lib_svld_dlopen = yes; then
12190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12192 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12193 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12194 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 ac_check_lib_save_LIBS=$LIBS
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12206 /* Override any gcc2 internal prototype to avoid an error. */
12210 /* We use char because int might match the return type of a gcc2
12211 builtin and then its argument prototype would still apply. */
12221 rm -f conftest.$ac_objext conftest$ac_exeext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223 (eval $ac_link) 2>conftest.er1
12225 grep -v '^ *+' conftest.er1 >conftest.err
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_cxx_werror_flag"
12231 || test ! -s conftest.err'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; } &&
12237 { ac_try='test -s conftest$ac_exeext'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 ac_cv_lib_dld_dld_link=yes
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 ac_cv_lib_dld_dld_link=no
12250 rm -f conftest.err conftest.$ac_objext \
12251 conftest$ac_exeext conftest.$ac_ext
12252 LIBS=$ac_check_lib_save_LIBS
12254 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12255 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12256 if test $ac_cv_lib_dld_dld_link = yes; then
12257 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12278 if test "x$lt_cv_dlopen" != xno; then
12284 case $lt_cv_dlopen in
12286 save_CPPFLAGS="$CPPFLAGS"
12287 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12289 save_LDFLAGS="$LDFLAGS"
12290 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12293 LIBS="$lt_cv_dlopen_libs $LIBS"
12295 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12296 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12297 if test "${lt_cv_dlopen_self+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 if test "$cross_compiling" = yes; then :
12301 lt_cv_dlopen_self=cross
12303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12304 lt_status=$lt_dlunknown
12305 cat > conftest.$ac_ext <<EOF
12306 #line 12306 "configure"
12307 #include "confdefs.h"
12316 # define LT_DLGLOBAL RTLD_GLOBAL
12319 # define LT_DLGLOBAL DL_GLOBAL
12321 # define LT_DLGLOBAL 0
12325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12326 find out it does not work in some platform. */
12327 #ifndef LT_DLLAZY_OR_NOW
12329 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12332 # define LT_DLLAZY_OR_NOW DL_LAZY
12335 # define LT_DLLAZY_OR_NOW RTLD_NOW
12338 # define LT_DLLAZY_OR_NOW DL_NOW
12340 # define LT_DLLAZY_OR_NOW 0
12348 extern "C" void exit (int);
12351 void fnord() { int i=42;}
12354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12355 int status = $lt_dlunknown;
12359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12361 /* dlclose (self); */
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12372 (./conftest; exit; ) 2>/dev/null
12374 case x$lt_status in
12375 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12376 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12377 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12380 # compilation failed
12381 lt_cv_dlopen_self=no
12388 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12389 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12391 if test "x$lt_cv_dlopen_self" = xyes; then
12392 LDFLAGS="$LDFLAGS $link_static_flag"
12393 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12394 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12395 if test "${lt_cv_dlopen_self_static+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 if test "$cross_compiling" = yes; then :
12399 lt_cv_dlopen_self_static=cross
12401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12402 lt_status=$lt_dlunknown
12403 cat > conftest.$ac_ext <<EOF
12404 #line 12404 "configure"
12405 #include "confdefs.h"
12414 # define LT_DLGLOBAL RTLD_GLOBAL
12417 # define LT_DLGLOBAL DL_GLOBAL
12419 # define LT_DLGLOBAL 0
12423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12424 find out it does not work in some platform. */
12425 #ifndef LT_DLLAZY_OR_NOW
12427 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12430 # define LT_DLLAZY_OR_NOW DL_LAZY
12433 # define LT_DLLAZY_OR_NOW RTLD_NOW
12436 # define LT_DLLAZY_OR_NOW DL_NOW
12438 # define LT_DLLAZY_OR_NOW 0
12446 extern "C" void exit (int);
12449 void fnord() { int i=42;}
12452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12453 int status = $lt_dlunknown;
12457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12459 /* dlclose (self); */
12465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466 (eval $ac_link) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12470 (./conftest; exit; ) 2>/dev/null
12472 case x$lt_status in
12473 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12474 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12475 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12478 # compilation failed
12479 lt_cv_dlopen_self_static=no
12486 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12487 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12490 CPPFLAGS="$save_CPPFLAGS"
12491 LDFLAGS="$save_LDFLAGS"
12496 case $lt_cv_dlopen_self in
12497 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12498 *) enable_dlopen_self=unknown ;;
12501 case $lt_cv_dlopen_self_static in
12502 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12503 *) enable_dlopen_self_static=unknown ;;
12508 # The else clause should only fire when bootstrapping the
12509 # libtool distribution, otherwise you forgot to ship ltmain.sh
12510 # with your package, and you will get complaints that there are
12511 # no rules to generate ltmain.sh.
12512 if test -f "$ltmain"; then
12513 # See if we are running on zsh, and set the options which allow our commands through
12514 # without removal of \ escapes.
12515 if test -n "${ZSH_VERSION+set}" ; then
12516 setopt NO_GLOB_SUBST
12518 # Now quote all the things that may contain metacharacters while being
12519 # careful not to overquote the AC_SUBSTed values. We take copies of the
12520 # variables and quote the copies for generation of the libtool script.
12521 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12523 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12524 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12525 deplibs_check_method reload_flag reload_cmds need_locks \
12526 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12527 lt_cv_sys_global_symbol_to_c_name_address \
12528 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12529 old_postinstall_cmds old_postuninstall_cmds \
12533 lt_prog_compiler_wl_CXX \
12534 lt_prog_compiler_pic_CXX \
12535 lt_prog_compiler_static_CXX \
12536 lt_prog_compiler_no_builtin_flag_CXX \
12537 export_dynamic_flag_spec_CXX \
12538 thread_safe_flag_spec_CXX \
12539 whole_archive_flag_spec_CXX \
12540 enable_shared_with_static_runtimes_CXX \
12541 old_archive_cmds_CXX \
12542 old_archive_from_new_cmds_CXX \
12543 predep_objects_CXX \
12544 postdep_objects_CXX \
12547 compiler_lib_search_path_CXX \
12549 archive_expsym_cmds_CXX \
12550 postinstall_cmds_CXX \
12551 postuninstall_cmds_CXX \
12552 old_archive_from_expsyms_cmds_CXX \
12553 allow_undefined_flag_CXX \
12554 no_undefined_flag_CXX \
12555 export_symbols_cmds_CXX \
12556 hardcode_libdir_flag_spec_CXX \
12557 hardcode_libdir_flag_spec_ld_CXX \
12558 hardcode_libdir_separator_CXX \
12559 hardcode_automatic_CXX \
12561 module_expsym_cmds_CXX \
12562 lt_cv_prog_compiler_c_o_CXX \
12563 exclude_expsyms_CXX \
12564 include_expsyms_CXX; do
12567 old_archive_cmds_CXX | \
12568 old_archive_from_new_cmds_CXX | \
12569 archive_cmds_CXX | \
12570 archive_expsym_cmds_CXX | \
12571 module_cmds_CXX | \
12572 module_expsym_cmds_CXX | \
12573 old_archive_from_expsyms_cmds_CXX | \
12574 export_symbols_cmds_CXX | \
12575 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12576 postinstall_cmds | postuninstall_cmds | \
12577 old_postinstall_cmds | old_postuninstall_cmds | \
12578 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12579 # Double-quote double-evaled strings.
12580 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12583 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12589 *'\$0 --fallback-echo"')
12590 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12596 cat <<__EOF__ >> "$cfgfile"
12597 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12599 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12601 # Shell to use when invoking shell scripts.
12604 # Whether or not to build shared libraries.
12605 build_libtool_libs=$enable_shared
12607 # Whether or not to build static libraries.
12608 build_old_libs=$enable_static
12610 # Whether or not to add -lc for building shared libraries.
12611 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12613 # Whether or not to disallow shared libs when runtime libs are static
12614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12616 # Whether or not to optimize for fast installation.
12617 fast_install=$enable_fast_install
12620 host_alias=$host_alias
12623 # An echo program that does not interpret backslashes.
12628 AR_FLAGS=$lt_AR_FLAGS
12633 # A language-specific compiler.
12634 CC=$lt_compiler_CXX
12636 # Is the compiler the GNU C compiler?
12642 # The linker used to build libraries.
12645 # Whether we need hard or soft links.
12648 # A BSD-compatible nm program.
12651 # A symbol stripping program
12654 # Used to examine libraries when file_magic_cmd begins "file"
12655 MAGIC_CMD=$MAGIC_CMD
12657 # Used on cygwin: DLL creation program.
12660 # Used on cygwin: object dumper.
12663 # Used on cygwin: assembler.
12666 # The name of the directory that contains temporary libtool files.
12669 # How to create reloadable object files.
12670 reload_flag=$lt_reload_flag
12671 reload_cmds=$lt_reload_cmds
12673 # How to pass a linker flag through the compiler.
12674 wl=$lt_lt_prog_compiler_wl_CXX
12676 # Object file suffix (normally "o").
12677 objext="$ac_objext"
12679 # Old archive suffix (normally "a").
12682 # Shared library suffix (normally ".so").
12683 shrext_cmds='$shrext_cmds'
12685 # Executable file suffix (normally "").
12688 # Additional compiler flags for building library objects.
12689 pic_flag=$lt_lt_prog_compiler_pic_CXX
12692 # What is the maximum length of a command?
12693 max_cmd_len=$lt_cv_sys_max_cmd_len
12695 # Does compiler simultaneously support -c and -o options?
12696 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12698 # Must we lock files when doing compilation ?
12699 need_locks=$lt_need_locks
12701 # Do we need the lib prefix for modules?
12702 need_lib_prefix=$need_lib_prefix
12704 # Do we need a version for libraries?
12705 need_version=$need_version
12707 # Whether dlopen is supported.
12708 dlopen_support=$enable_dlopen
12710 # Whether dlopen of programs is supported.
12711 dlopen_self=$enable_dlopen_self
12713 # Whether dlopen of statically linked programs is supported.
12714 dlopen_self_static=$enable_dlopen_self_static
12716 # Compiler flag to prevent dynamic linking.
12717 link_static_flag=$lt_lt_prog_compiler_static_CXX
12719 # Compiler flag to turn off builtin functions.
12720 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12722 # Compiler flag to allow reflexive dlopens.
12723 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12725 # Compiler flag to generate shared objects directly from archives.
12726 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12728 # Compiler flag to generate thread-safe objects.
12729 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12731 # Library versioning type.
12732 version_type=$version_type
12734 # Format of library name prefix.
12735 libname_spec=$lt_libname_spec
12737 # List of archive names. First name is the real one, the rest are links.
12738 # The last name is the one that the linker finds with -lNAME.
12739 library_names_spec=$lt_library_names_spec
12741 # The coded name of the library, if different from the real name.
12742 soname_spec=$lt_soname_spec
12744 # Commands used to build and install an old-style archive.
12746 old_archive_cmds=$lt_old_archive_cmds_CXX
12747 old_postinstall_cmds=$lt_old_postinstall_cmds
12748 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12750 # Create an old-style archive from a shared archive.
12751 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12753 # Create a temporary old-style archive to link instead of a shared archive.
12754 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12756 # Commands used to build and install a shared archive.
12757 archive_cmds=$lt_archive_cmds_CXX
12758 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12759 postinstall_cmds=$lt_postinstall_cmds
12760 postuninstall_cmds=$lt_postuninstall_cmds
12762 # Commands used to build a loadable module (assumed same as above if empty)
12763 module_cmds=$lt_module_cmds_CXX
12764 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12766 # Commands to strip libraries.
12767 old_striplib=$lt_old_striplib
12768 striplib=$lt_striplib
12770 # Dependencies to place before the objects being linked to create a
12772 predep_objects=$lt_predep_objects_CXX
12774 # Dependencies to place after the objects being linked to create a
12776 postdep_objects=$lt_postdep_objects_CXX
12778 # Dependencies to place before the objects being linked to create a
12780 predeps=$lt_predeps_CXX
12782 # Dependencies to place after the objects being linked to create a
12784 postdeps=$lt_postdeps_CXX
12786 # The library search path used internally by the compiler when linking
12787 # a shared library.
12788 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12790 # Method to check whether dependent libraries are shared objects.
12791 deplibs_check_method=$lt_deplibs_check_method
12793 # Command to use when deplibs_check_method == file_magic.
12794 file_magic_cmd=$lt_file_magic_cmd
12796 # Flag that allows shared libraries with undefined symbols to be built.
12797 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12799 # Flag that forces no undefined symbols.
12800 no_undefined_flag=$lt_no_undefined_flag_CXX
12802 # Commands used to finish a libtool library installation in a directory.
12803 finish_cmds=$lt_finish_cmds
12805 # Same as above, but a single script fragment to be evaled but not shown.
12806 finish_eval=$lt_finish_eval
12808 # Take the output of nm and produce a listing of raw symbols and C names.
12809 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12811 # Transform the output of nm in a proper C declaration
12812 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12814 # Transform the output of nm in a C name address pair
12815 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12817 # This is the shared library runtime path variable.
12818 runpath_var=$runpath_var
12820 # This is the shared library path variable.
12821 shlibpath_var=$shlibpath_var
12823 # Is shlibpath searched before the hard-coded library search path?
12824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12826 # How to hardcode a shared library path into an executable.
12827 hardcode_action=$hardcode_action_CXX
12829 # Whether we should hardcode library paths into libraries.
12830 hardcode_into_libs=$hardcode_into_libs
12832 # Flag to hardcode \$libdir into a binary during linking.
12833 # This must work even if \$libdir does not exist.
12834 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12836 # If ld is used when linking, flag to hardcode \$libdir into
12837 # a binary during linking. This must work even if \$libdir does
12839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12841 # Whether we need a single -rpath flag with a separated argument.
12842 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12844 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12845 # resulting binary.
12846 hardcode_direct=$hardcode_direct_CXX
12848 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12849 # resulting binary.
12850 hardcode_minus_L=$hardcode_minus_L_CXX
12852 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12853 # the resulting binary.
12854 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12856 # Set to yes if building a shared library automatically hardcodes DIR into the library
12857 # and all subsequent libraries and executables linked against it.
12858 hardcode_automatic=$hardcode_automatic_CXX
12860 # Variables whose values should be saved in libtool wrapper scripts and
12861 # restored at relink time.
12862 variables_saved_for_relink="$variables_saved_for_relink"
12864 # Whether libtool must link a program against all its dependency libraries.
12865 link_all_deplibs=$link_all_deplibs_CXX
12867 # Compile-time system search path for libraries
12868 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12870 # Run-time system search path for libraries
12871 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12873 # Fix the shell variable \$srcfile for the compiler.
12874 fix_srcfile_path="$fix_srcfile_path_CXX"
12876 # Set to yes if exported symbols are required.
12877 always_export_symbols=$always_export_symbols_CXX
12879 # The commands to list exported symbols.
12880 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12882 # The commands to extract the exported symbol list from a shared archive.
12883 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12885 # Symbols that should not be listed in the preloaded symbols.
12886 exclude_expsyms=$lt_exclude_expsyms_CXX
12888 # Symbols that must always be exported.
12889 include_expsyms=$lt_include_expsyms_CXX
12891 # ### END LIBTOOL TAG CONFIG: $tagname
12897 # If there is no Makefile yet, we rely on a make rule to execute
12898 # `config.status --recheck' to rerun these tests and create the
12899 # libtool script then.
12900 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12901 if test -f "$ltmain_in"; then
12902 test -f Makefile && make "$ltmain"
12908 ac_cpp='$CPP $CPPFLAGS'
12909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12917 with_gnu_ldcxx=$with_gnu_ld
12918 with_gnu_ld=$lt_save_with_gnu_ld
12919 lt_cv_path_LDCXX=$lt_cv_path_LD
12920 lt_cv_path_LD=$lt_save_path_LD
12921 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12922 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12930 if test -n "$F77" && test "X$F77" != "Xno"; then
12933 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12934 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12938 archive_cmds_need_lc_F77=no
12939 allow_undefined_flag_F77=
12940 always_export_symbols_F77=no
12941 archive_expsym_cmds_F77=
12942 export_dynamic_flag_spec_F77=
12943 hardcode_direct_F77=no
12944 hardcode_libdir_flag_spec_F77=
12945 hardcode_libdir_flag_spec_ld_F77=
12946 hardcode_libdir_separator_F77=
12947 hardcode_minus_L_F77=no
12948 hardcode_automatic_F77=no
12950 module_expsym_cmds_F77=
12951 link_all_deplibs_F77=unknown
12952 old_archive_cmds_F77=$old_archive_cmds
12953 no_undefined_flag_F77=
12954 whole_archive_flag_spec_F77=
12955 enable_shared_with_static_runtimes_F77=no
12957 # Source file extension for f77 test sources.
12960 # Object file extension for compiled f77 test sources.
12964 # Code to be used in simple compile tests
12965 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12967 # Code to be used in simple link tests
12968 lt_simple_link_test_code=" program t\n end\n"
12970 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12972 # If no C compiler was specified, use CC.
12975 # Allow CC to be a program name with arguments.
12979 # Allow CC to be a program name with arguments.
12984 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12986 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12987 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12988 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12989 echo "${ECHO_T}$can_build_shared" >&6
12991 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12992 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12993 test "$can_build_shared" = "no" && enable_shared=no
12995 # On AIX, shared libraries and static libraries use the same namespace, and
12996 # are all built from PIC.
12999 test "$enable_shared" = yes && enable_static=no
13000 if test -n "$RANLIB"; then
13001 archive_cmds="$archive_cmds;\$RANLIB \$lib"
13002 postinstall_cmds='$RANLIB $lib'
13006 test "$enable_shared" = yes && enable_static=no
13009 echo "$as_me:$LINENO: result: $enable_shared" >&5
13010 echo "${ECHO_T}$enable_shared" >&6
13012 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13013 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13014 # Make sure either enable_shared or enable_static is yes.
13015 test "$enable_shared" = yes || enable_static=yes
13016 echo "$as_me:$LINENO: result: $enable_static" >&5
13017 echo "${ECHO_T}$enable_static" >&6
13019 test "$ld_shlibs_F77" = no && can_build_shared=no
13024 lt_prog_compiler_wl_F77=
13025 lt_prog_compiler_pic_F77=
13026 lt_prog_compiler_static_F77=
13028 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13029 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13031 if test "$GCC" = yes; then
13032 lt_prog_compiler_wl_F77='-Wl,'
13033 lt_prog_compiler_static_F77='-static'
13037 # All AIX code is PIC.
13038 if test "$host_cpu" = ia64; then
13039 # AIX 5 now supports IA64 processor
13040 lt_prog_compiler_static_F77='-Bstatic'
13045 # FIXME: we need at least 68020 code to build shared libraries, but
13046 # adding the `-m68020' flag to GCC prevents building anything better,
13048 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13051 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13052 # PIC is the default for these OSes.
13055 mingw* | pw32* | os2*)
13056 # This hack is so that the source file can tell whether it is being
13057 # built for inclusion in a dll (and should export symbols for example).
13058 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13061 darwin* | rhapsody*)
13062 # PIC is the default on this platform
13063 # Common symbols not allowed in MH_DYLIB files
13064 lt_prog_compiler_pic_F77='-fno-common'
13068 # Just because we use GCC doesn't mean we suddenly get shared libraries
13069 # on systems that don't support them.
13070 lt_prog_compiler_can_build_shared_F77=no
13075 if test -d /usr/nec; then
13076 lt_prog_compiler_pic_F77=-Kconform_pic
13081 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13082 # not for PA HP-UX.
13083 case "$host_cpu" in
13088 lt_prog_compiler_pic_F77='-fPIC'
13094 lt_prog_compiler_pic_F77='-fPIC'
13098 # PORTME Check for flag to pass linker flags through the system compiler.
13101 lt_prog_compiler_wl_F77='-Wl,'
13102 if test "$host_cpu" = ia64; then
13103 # AIX 5 now supports IA64 processor
13104 lt_prog_compiler_static_F77='-Bstatic'
13106 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13110 # PIC is the default on this platform
13111 # Common symbols not allowed in MH_DYLIB files
13112 case "$cc_basename" in
13114 lt_prog_compiler_pic_F77='-qnocommon'
13115 lt_prog_compiler_wl_F77='-Wl,'
13120 mingw* | pw32* | os2*)
13121 # This hack is so that the source file can tell whether it is being
13122 # built for inclusion in a dll (and should export symbols for example).
13123 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13126 hpux9* | hpux10* | hpux11*)
13127 lt_prog_compiler_wl_F77='-Wl,'
13128 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13129 # not for PA HP-UX.
13130 case "$host_cpu" in
13135 lt_prog_compiler_pic_F77='+Z'
13138 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13139 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13142 irix5* | irix6* | nonstopux*)
13143 lt_prog_compiler_wl_F77='-Wl,'
13144 # PIC (with -KPIC) is the default.
13145 lt_prog_compiler_static_F77='-non_shared'
13149 lt_prog_compiler_pic_F77='-KPIC'
13150 lt_prog_compiler_static_F77='-Bstatic'
13156 lt_prog_compiler_wl_F77='-Wl,'
13157 lt_prog_compiler_pic_F77='-KPIC'
13158 lt_prog_compiler_static_F77='-static'
13161 lt_prog_compiler_wl_F77='-Wl,'
13162 # All Alpha code is PIC.
13163 lt_prog_compiler_static_F77='-non_shared'
13168 osf3* | osf4* | osf5*)
13169 lt_prog_compiler_wl_F77='-Wl,'
13170 # All OSF/1 code is PIC.
13171 lt_prog_compiler_static_F77='-non_shared'
13175 lt_prog_compiler_pic_F77='-Kpic'
13176 lt_prog_compiler_static_F77='-dn'
13180 lt_prog_compiler_wl_F77='-Wl,'
13181 lt_prog_compiler_pic_F77='-KPIC'
13182 lt_prog_compiler_static_F77='-Bstatic'
13186 lt_prog_compiler_wl_F77='-Qoption ld '
13187 lt_prog_compiler_pic_F77='-PIC'
13188 lt_prog_compiler_static_F77='-Bstatic'
13191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13192 lt_prog_compiler_wl_F77='-Wl,'
13193 lt_prog_compiler_pic_F77='-KPIC'
13194 lt_prog_compiler_static_F77='-Bstatic'
13198 if test -d /usr/nec ;then
13199 lt_prog_compiler_pic_F77='-Kconform_pic'
13200 lt_prog_compiler_static_F77='-Bstatic'
13205 lt_prog_compiler_pic_F77='-pic'
13206 lt_prog_compiler_static_F77='-Bstatic'
13210 lt_prog_compiler_can_build_shared_F77=no
13215 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13216 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13219 # Check to make sure the PIC flag actually works.
13221 if test -n "$lt_prog_compiler_pic_F77"; then
13223 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13224 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13225 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 lt_prog_compiler_pic_works_F77=no
13229 ac_outfile=conftest.$ac_objext
13230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13231 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13232 # Insert the option either (1) after the last *FLAGS variable, or
13233 # (2) before a word containing "conftest.", or (3) at the end.
13234 # Note that $ac_compile itself does not contain backslashes and begins
13235 # with a dollar sign (not a hyphen), so the echo should work correctly.
13236 # The option is referenced via a variable to avoid confusing sed.
13237 lt_compile=`echo "$ac_compile" | $SED \
13238 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13240 -e 's:$: $lt_compiler_flag:'`
13241 (eval echo "\"\$as_me:13241: $lt_compile\"" >&5)
13242 (eval "$lt_compile" 2>conftest.err)
13244 cat conftest.err >&5
13245 echo "$as_me:13245: \$? = $ac_status" >&5
13246 if (exit $ac_status) && test -s "$ac_outfile"; then
13247 # The compiler can only warn and ignore the option if not recognized
13248 # So say no if there are warnings
13249 if test ! -s conftest.err; then
13250 lt_prog_compiler_pic_works_F77=yes
13256 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13257 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13259 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13260 case $lt_prog_compiler_pic_F77 in
13262 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13265 lt_prog_compiler_pic_F77=
13266 lt_prog_compiler_can_build_shared_F77=no
13271 # For platforms which do not support PIC, -DPIC is meaningless:
13273 lt_prog_compiler_pic_F77=
13276 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13280 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13281 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13282 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 lt_cv_prog_compiler_c_o_F77=no
13286 $rm -r conftest 2>/dev/null
13290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13292 lt_compiler_flag="-o out/conftest2.$ac_objext"
13293 # Insert the option either (1) after the last *FLAGS variable, or
13294 # (2) before a word containing "conftest.", or (3) at the end.
13295 # Note that $ac_compile itself does not contain backslashes and begins
13296 # with a dollar sign (not a hyphen), so the echo should work correctly.
13297 lt_compile=`echo "$ac_compile" | $SED \
13298 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13300 -e 's:$: $lt_compiler_flag:'`
13301 (eval echo "\"\$as_me:13301: $lt_compile\"" >&5)
13302 (eval "$lt_compile" 2>out/conftest.err)
13304 cat out/conftest.err >&5
13305 echo "$as_me:13305: \$? = $ac_status" >&5
13306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13308 # The compiler can only warn and ignore the option if not recognized
13309 # So say no if there are warnings
13310 if test ! -s out/conftest.err; then
13311 lt_cv_prog_compiler_c_o_F77=yes
13316 # SGI C++ compiler will create directory out/ii_files/ for
13317 # template instantiation
13318 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13319 $rm out/* && rmdir out
13325 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13326 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13329 hard_links="nottested"
13330 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13331 # do not overwrite the value of need_locks provided by the user
13332 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13333 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13338 ln conftest.a conftest.b 2>&5 || hard_links=no
13339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13340 echo "$as_me:$LINENO: result: $hard_links" >&5
13341 echo "${ECHO_T}$hard_links" >&6
13342 if test "$hard_links" = no; then
13343 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13344 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13351 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13352 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13355 allow_undefined_flag_F77=
13356 enable_shared_with_static_runtimes_F77=no
13358 archive_expsym_cmds_F77=
13359 old_archive_From_new_cmds_F77=
13360 old_archive_from_expsyms_cmds_F77=
13361 export_dynamic_flag_spec_F77=
13362 whole_archive_flag_spec_F77=
13363 thread_safe_flag_spec_F77=
13364 hardcode_libdir_flag_spec_F77=
13365 hardcode_libdir_flag_spec_ld_F77=
13366 hardcode_libdir_separator_F77=
13367 hardcode_direct_F77=no
13368 hardcode_minus_L_F77=no
13369 hardcode_shlibpath_var_F77=unsupported
13370 link_all_deplibs_F77=unknown
13371 hardcode_automatic_F77=no
13373 module_expsym_cmds_F77=
13374 always_export_symbols_F77=no
13375 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13376 # include_expsyms should be a list of space-separated symbols to be *always*
13377 # included in the symbol list
13378 include_expsyms_F77=
13379 # exclude_expsyms can be an extended regexp of symbols to exclude
13380 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13381 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13382 # as well as any symbol that contains `d'.
13383 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13384 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13385 # platforms (ab)use it in PIC code, but their linkers get confused if
13386 # the symbol is explicitly referenced. Since portable code cannot
13387 # rely on this symbol name, it's probably fine to never include it in
13388 # preloaded symbol tables.
13389 extract_expsyms_cmds=
13392 cygwin* | mingw* | pw32*)
13393 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13394 # When not using gcc, we currently assume that we are using
13395 # Microsoft Visual C++.
13396 if test "$GCC" != yes; then
13406 if test "$with_gnu_ld" = yes; then
13407 # If archive_cmds runs LD, not CC, wlarc should be empty
13410 # See if GNU ld supports shared libraries.
13412 aix3* | aix4* | aix5*)
13413 # On AIX/PPC, the GNU linker is very broken
13414 if test "$host_cpu" != ia64; then
13418 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13419 *** to be unable to reliably create shared libraries on AIX.
13420 *** Therefore, libtool is disabling shared libraries support. If you
13421 *** really care for shared libraries, you may want to modify your PATH
13422 *** so that a non-GNU linker is found, and then restart.
13429 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)'
13430 hardcode_libdir_flag_spec_F77='-L$libdir'
13431 hardcode_minus_L_F77=yes
13433 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13434 # that the semantics of dynamic libraries on AmigaOS, at least up
13435 # to version 4, is to share data among multiple programs linked
13436 # with the same dynamic library. Since this doesn't match the
13437 # behavior of shared libraries on other platforms, we can't use
13443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13444 allow_undefined_flag_F77=unsupported
13445 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13446 # support --undefined. This deserves some investigation. FIXME
13447 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13453 cygwin* | mingw* | pw32*)
13454 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13455 # as there is no search path for DLLs.
13456 hardcode_libdir_flag_spec_F77='-L$libdir'
13457 allow_undefined_flag_F77=unsupported
13458 always_export_symbols_F77=no
13459 enable_shared_with_static_runtimes_F77=yes
13460 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13462 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13463 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13464 # If the export-symbols file already is a .def file (1st line
13465 # is EXPORTS), use it as is; otherwise, prepend...
13466 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13467 cp $export_symbols $output_objdir/$soname.def;
13469 echo EXPORTS > $output_objdir/$soname.def;
13470 cat $export_symbols >> $output_objdir/$soname.def;
13471 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13478 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13479 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13482 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13483 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13488 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13492 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13493 *** create shared libraries on Solaris systems. Therefore, libtool
13494 *** is disabling shared libraries support. We urge you to upgrade GNU
13495 *** binutils to release 2.9.1 or newer. Another option is to modify
13496 *** your PATH or compiler configuration so that the native linker is
13497 *** used, and then restart.
13500 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13501 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13502 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13509 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13511 hardcode_direct_F77=yes
13512 hardcode_shlibpath_var_F77=no
13516 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13517 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13518 archive_cmds_F77="$tmp_archive_cmds"
13519 supports_anon_versioning=no
13520 case `$LD -v 2>/dev/null` in
13521 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13522 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13523 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13524 *\ 2.11.*) ;; # other 2.11 versions
13525 *) supports_anon_versioning=yes ;;
13527 if test $supports_anon_versioning = yes; then
13528 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
13529 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13531 archive_expsym_cmds_F77="$tmp_archive_cmds"
13539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13540 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13541 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13548 if test "$ld_shlibs_F77" = yes; then
13549 runpath_var=LD_RUN_PATH
13550 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13551 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13552 # ancient GNU ld didn't support --whole-archive et. al.
13553 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13554 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13556 whole_archive_flag_spec_F77=
13560 # PORTME fill in a description of your system's linker (not GNU ld)
13563 allow_undefined_flag_F77=unsupported
13564 always_export_symbols_F77=yes
13565 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'
13566 # Note: this linker hardcodes the directories in LIBPATH if there
13567 # are no directories specified by -L.
13568 hardcode_minus_L_F77=yes
13569 if test "$GCC" = yes && test -z "$link_static_flag"; then
13570 # Neither direct hardcoding nor static linking is supported with a
13572 hardcode_direct_F77=unsupported
13577 if test "$host_cpu" = ia64; then
13578 # On IA64, the linker does run time linking by default, so we don't
13579 # have to do anything special.
13580 aix_use_runtimelinking=no
13581 exp_sym_flag='-Bexport'
13584 # If we're using GNU nm, then we don't want the "-C" option.
13585 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13586 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13587 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'
13589 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'
13591 aix_use_runtimelinking=no
13593 # Test if we are trying to use run time linking or normal
13594 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13595 # need to do runtime linking.
13596 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13597 for ld_flag in $LDFLAGS; do
13598 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13599 aix_use_runtimelinking=yes
13605 exp_sym_flag='-bexport'
13606 no_entry_flag='-bnoentry'
13609 # When large executables or shared objects are built, AIX ld can
13610 # have problems creating the table of contents. If linking a library
13611 # or program results in "error TOC overflow" add -mminimal-toc to
13612 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13613 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13615 archive_cmds_F77=''
13616 hardcode_direct_F77=yes
13617 hardcode_libdir_separator_F77=':'
13618 link_all_deplibs_F77=yes
13620 if test "$GCC" = yes; then
13621 case $host_os in aix4.012|aix4.012.*)
13622 # We only want to do this on AIX 4.2 and lower, the check
13623 # below for broken collect2 doesn't work under 4.3+
13624 collect2name=`${CC} -print-prog-name=collect2`
13625 if test -f "$collect2name" && \
13626 strings "$collect2name" | grep resolve_lib_name >/dev/null
13628 # We have reworked collect2
13629 hardcode_direct_F77=yes
13631 # We have old collect2
13632 hardcode_direct_F77=unsupported
13633 # It fails to find uninstalled libraries when the uninstalled
13634 # path is not listed in the libpath. Setting hardcode_minus_L
13635 # to unsupported forces relinking
13636 hardcode_minus_L_F77=yes
13637 hardcode_libdir_flag_spec_F77='-L$libdir'
13638 hardcode_libdir_separator_F77=
13641 shared_flag='-shared'
13644 if test "$host_cpu" = ia64; then
13645 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13646 # chokes on -Wl,-G. The following line is correct:
13649 if test "$aix_use_runtimelinking" = yes; then
13650 shared_flag='${wl}-G'
13652 shared_flag='${wl}-bM:SRE'
13657 # It seems that -bexpall does not export symbols beginning with
13658 # underscore (_), so it is better to generate a list of symbols to export.
13659 always_export_symbols_F77=yes
13660 if test "$aix_use_runtimelinking" = yes; then
13661 # Warning - without using the other runtime loading flags (-brtl),
13662 # -berok will link without error, but may produce a broken library.
13663 allow_undefined_flag_F77='-berok'
13664 # Determine the default libpath from the value encoded in an empty executable.
13665 cat >conftest.$ac_ext <<_ACEOF
13670 rm -f conftest.$ac_objext conftest$ac_exeext
13671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13672 (eval $ac_link) 2>conftest.er1
13674 grep -v '^ *+' conftest.er1 >conftest.err
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } &&
13679 { ac_try='test -z "$ac_f77_werror_flag"
13680 || test ! -s conftest.err'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; } &&
13686 { ac_try='test -s conftest$ac_exeext'
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; }; then
13693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13695 # Check for a 64-bit object if we didn't find anything.
13696 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; }
13699 echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13703 rm -f conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext conftest.$ac_ext
13705 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13707 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13708 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"
13710 if test "$host_cpu" = ia64; then
13711 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13712 allow_undefined_flag_F77="-z nodefs"
13713 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"
13715 # Determine the default libpath from the value encoded in an empty executable.
13716 cat >conftest.$ac_ext <<_ACEOF
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>conftest.er1
13725 grep -v '^ *+' conftest.er1 >conftest.err
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_f77_werror_flag"
13731 || test ! -s conftest.err'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; } &&
13737 { ac_try='test -s conftest$ac_exeext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13746 # Check for a 64-bit object if we didn't find anything.
13747 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; }
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13754 rm -f conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
13756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13758 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13759 # Warning - without using the other run time loading flags,
13760 # -berok will link without error, but may produce a broken library.
13761 no_undefined_flag_F77=' ${wl}-bernotok'
13762 allow_undefined_flag_F77=' ${wl}-berok'
13763 # -bexpall does not export symbols beginning with underscore (_)
13764 always_export_symbols_F77=yes
13765 # Exported symbols can be pulled into shared objects from archives
13766 whole_archive_flag_spec_F77=' '
13767 archive_cmds_need_lc_F77=yes
13768 # This is similar to how AIX traditionally builds it's shared libraries.
13769 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'
13775 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)'
13776 hardcode_libdir_flag_spec_F77='-L$libdir'
13777 hardcode_minus_L_F77=yes
13778 # see comment about different semantics on the GNU ld section
13783 export_dynamic_flag_spec_F77=-rdynamic
13786 cygwin* | mingw* | pw32*)
13787 # When not using gcc, we currently assume that we are using
13788 # Microsoft Visual C++.
13789 # hardcode_libdir_flag_spec is actually meaningless, as there is
13790 # no search path for DLLs.
13791 hardcode_libdir_flag_spec_F77=' '
13792 allow_undefined_flag_F77=unsupported
13793 # Tell ltmain to make .lib files, not .a files.
13795 # Tell ltmain to make .dll files, not .so files.
13797 # FIXME: Setting linknames here is a bad hack.
13798 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
13799 # The linker will automatically build a .lib file if we build a DLL.
13800 old_archive_From_new_cmds_F77='true'
13801 # FIXME: Should let the user specify the lib program.
13802 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13803 fix_srcfile_path='`cygpath -w "$srcfile"`'
13804 enable_shared_with_static_runtimes_F77=yes
13807 darwin* | rhapsody*)
13809 rhapsody* | darwin1.[012])
13810 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13813 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13814 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13816 case ${MACOSX_DEPLOYMENT_TARGET} in
13818 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13821 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13827 archive_cmds_need_lc_F77=no
13828 hardcode_direct_F77=no
13829 hardcode_automatic_F77=yes
13830 hardcode_shlibpath_var_F77=unsupported
13831 whole_archive_flag_spec_F77=''
13832 link_all_deplibs_F77=yes
13833 if test "$GCC" = yes ; then
13834 output_verbose_link_cmd='echo'
13835 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13836 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13837 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13838 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}'
13839 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}'
13841 case "$cc_basename" in
13843 output_verbose_link_cmd='echo'
13844 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13845 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13846 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13847 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}'
13848 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}'
13858 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13859 hardcode_libdir_flag_spec_F77='-L$libdir'
13860 hardcode_shlibpath_var_F77=no
13867 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13868 # support. Future versions do this automatically, but an explicit c++rt0.o
13869 # does not break anything, and helps significantly (at the cost of a little
13872 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13873 hardcode_libdir_flag_spec_F77='-R$libdir'
13874 hardcode_direct_F77=yes
13875 hardcode_shlibpath_var_F77=no
13878 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13880 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13881 hardcode_direct_F77=yes
13882 hardcode_minus_L_F77=yes
13883 hardcode_shlibpath_var_F77=no
13886 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13887 freebsd* | kfreebsd*-gnu)
13888 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13889 hardcode_libdir_flag_spec_F77='-R$libdir'
13890 hardcode_direct_F77=yes
13891 hardcode_shlibpath_var_F77=no
13895 if test "$GCC" = yes; then
13896 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'
13898 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'
13900 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13901 hardcode_libdir_separator_F77=:
13902 hardcode_direct_F77=yes
13904 # hardcode_minus_L: Not really in the search PATH,
13905 # but as the default location of the library.
13906 hardcode_minus_L_F77=yes
13907 export_dynamic_flag_spec_F77='${wl}-E'
13911 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13912 case "$host_cpu" in
13914 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13917 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13921 case "$host_cpu" in
13923 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13926 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13930 if test "$with_gnu_ld" = no; then
13931 case "$host_cpu" in
13933 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13934 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13935 hardcode_libdir_separator_F77=:
13936 hardcode_direct_F77=no
13937 hardcode_shlibpath_var_F77=no
13940 hardcode_libdir_flag_spec_F77='-L$libdir'
13941 hardcode_direct_F77=no
13942 hardcode_shlibpath_var_F77=no
13944 # hardcode_minus_L: Not really in the search PATH,
13945 # but as the default location of the library.
13946 hardcode_minus_L_F77=yes
13949 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13950 hardcode_libdir_separator_F77=:
13951 hardcode_direct_F77=yes
13952 export_dynamic_flag_spec_F77='${wl}-E'
13954 # hardcode_minus_L: Not really in the search PATH,
13955 # but as the default location of the library.
13956 hardcode_minus_L_F77=yes
13962 irix5* | irix6* | nonstopux*)
13963 if test "$GCC" = yes; then
13964 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'
13966 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'
13967 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13969 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13970 hardcode_libdir_separator_F77=:
13971 link_all_deplibs_F77=yes
13975 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13976 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13978 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13980 hardcode_libdir_flag_spec_F77='-R$libdir'
13981 hardcode_direct_F77=yes
13982 hardcode_shlibpath_var_F77=no
13986 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13987 hardcode_direct_F77=yes
13988 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13989 hardcode_libdir_separator_F77=:
13990 hardcode_shlibpath_var_F77=no
13994 hardcode_direct_F77=yes
13995 hardcode_shlibpath_var_F77=no
13996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13997 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13998 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13999 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14000 export_dynamic_flag_spec_F77='${wl}-E'
14003 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14004 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14005 hardcode_libdir_flag_spec_F77='-R$libdir'
14008 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14009 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14016 hardcode_libdir_flag_spec_F77='-L$libdir'
14017 hardcode_minus_L_F77=yes
14018 allow_undefined_flag_F77=unsupported
14019 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'
14020 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14024 if test "$GCC" = yes; then
14025 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14026 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'
14028 allow_undefined_flag_F77=' -expect_unresolved \*'
14029 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'
14031 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14032 hardcode_libdir_separator_F77=:
14035 osf4* | osf5*) # as osf3* with the addition of -msym flag
14036 if test "$GCC" = yes; then
14037 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14038 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'
14039 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14041 allow_undefined_flag_F77=' -expect_unresolved \*'
14042 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'
14043 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp'
14044 # Both c and cxx compiler support -rpath directly
14045 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14047 hardcode_libdir_separator_F77=:
14051 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14052 hardcode_shlibpath_var_F77=no
14053 export_dynamic_flag_spec_F77='${wl}-Bexport'
14054 runpath_var=LD_RUN_PATH
14055 hardcode_runpath_var=yes
14059 no_undefined_flag_F77=' -z text'
14060 if test "$GCC" = yes; then
14061 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
14064 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14065 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14067 hardcode_libdir_flag_spec_F77='-R$libdir'
14068 hardcode_shlibpath_var_F77=no
14070 solaris2.[0-5] | solaris2.[0-5].*) ;;
14071 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14072 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14074 link_all_deplibs_F77=yes
14078 if test "x$host_vendor" = xsequent; then
14079 # Use $CC to link under sequent, because it throws in some extra .o
14080 # files that make .init and .fini sections work.
14081 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14083 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14085 hardcode_libdir_flag_spec_F77='-L$libdir'
14086 hardcode_direct_F77=yes
14087 hardcode_minus_L_F77=yes
14088 hardcode_shlibpath_var_F77=no
14092 case $host_vendor in
14094 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14095 hardcode_direct_F77=yes # is this really true???
14098 ## LD is ld it makes a PLAMLIB
14099 ## CC just makes a GrossModule.
14100 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14101 reload_cmds_F77='$CC -r -o $output$reload_objs'
14102 hardcode_direct_F77=no
14105 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14106 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14109 runpath_var='LD_RUN_PATH'
14110 hardcode_shlibpath_var_F77=no
14114 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14115 hardcode_shlibpath_var_F77=no
14116 export_dynamic_flag_spec_F77='-Bexport'
14120 if test -d /usr/nec; then
14121 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14122 hardcode_shlibpath_var_F77=no
14123 runpath_var=LD_RUN_PATH
14124 hardcode_runpath_var=yes
14130 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14131 hardcode_direct_F77=yes
14132 hardcode_minus_L_F77=no
14133 hardcode_shlibpath_var_F77=no
14134 hardcode_runpath_var=yes
14135 runpath_var=LD_RUN_PATH
14138 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14139 no_undefined_flag_F77='${wl}-z ${wl}text'
14140 if test "$GCC" = yes; then
14141 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14143 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14145 runpath_var='LD_RUN_PATH'
14146 hardcode_shlibpath_var_F77=no
14150 no_undefined_flag_F77=' -z text'
14151 # $CC -shared without GNU ld will not create a library from C++
14152 # object files and a static libstdc++, better avoid it by now
14153 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14154 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14155 hardcode_libdir_flag_spec_F77=
14156 hardcode_shlibpath_var_F77=no
14157 runpath_var='LD_RUN_PATH'
14161 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14162 hardcode_libdir_flag_spec_F77='-L$libdir'
14163 hardcode_shlibpath_var_F77=no
14172 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14173 echo "${ECHO_T}$ld_shlibs_F77" >&6
14174 test "$ld_shlibs_F77" = no && can_build_shared=no
14176 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14177 if test "$GCC" = yes; then
14178 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14182 # Do we need to explicitly link libc?
14184 case "x$archive_cmds_need_lc_F77" in
14186 # Assume -lc should be added
14187 archive_cmds_need_lc_F77=yes
14189 if test "$enable_shared" = yes && test "$GCC" = yes; then
14190 case $archive_cmds_F77 in
14192 # FIXME: we may have to deal with multi-command sequences.
14195 # Test whether the compiler implicitly links with -lc since on some
14196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14197 # to ld, don't add -lc before -lgcc.
14198 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14199 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14204 (eval $ac_compile) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } 2>conftest.err; then
14210 libobjs=conftest.$ac_objext
14212 wl=$lt_prog_compiler_wl_F77
14218 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14219 allow_undefined_flag_F77=
14220 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14221 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }
14226 archive_cmds_need_lc_F77=no
14228 archive_cmds_need_lc_F77=yes
14230 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14232 cat conftest.err 1>&5
14235 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14236 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14243 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14244 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14245 library_names_spec=
14246 libname_spec='lib$name'
14250 postuninstall_cmds=
14254 shlibpath_overrides_runpath=unknown
14256 dynamic_linker="$host_os ld.so"
14257 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14258 if test "$GCC" = yes; then
14259 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14260 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14261 # if the path contains ";" then we assume it to be the separator
14262 # otherwise default to the standard path separator (i.e. ":") - it is
14263 # assumed that no part of a normal pathname contains ";" but that should
14264 # okay in the real world where ";" in dirpaths is itself problematic.
14265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14270 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14272 need_lib_prefix=unknown
14273 hardcode_into_libs=no
14275 # when you set need_version to no, make sure it does not cause -set_version
14276 # flags to be left without arguments
14277 need_version=unknown
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14283 shlibpath_var=LIBPATH
14285 # AIX 3 has no versioning support, so we append a major version to the name.
14286 soname_spec='${libname}${release}${shared_ext}$major'
14293 hardcode_into_libs=yes
14294 if test "$host_cpu" = ia64; then
14295 # AIX 5 supports IA64
14296 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14297 shlibpath_var=LD_LIBRARY_PATH
14299 # With GCC up to 2.95.x, collect2 would create an import file
14300 # for dependence libraries. The import file would start with
14301 # the line `#! .'. This would cause the generated library to
14302 # depend on `.', always an invalid library. This was fixed in
14303 # development snapshots of GCC prior to 3.0.
14305 aix4 | aix4.[01] | aix4.[01].*)
14306 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14308 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14311 can_build_shared=no
14315 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14316 # soname into executable. Probably we can add versioning support to
14317 # collect2, so additional links can be useful in future.
14318 if test "$aix_use_runtimelinking" = yes; then
14319 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14320 # instead of lib<name>.a to let people know that these are not
14321 # typical AIX shared libraries.
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324 # We preserve .a as extension for shared libraries through AIX4.2
14325 # and later when we are not doing run time linking.
14326 library_names_spec='${libname}${release}.a $libname.a'
14327 soname_spec='${libname}${release}${shared_ext}$major'
14329 shlibpath_var=LIBPATH
14334 library_names_spec='$libname.ixlibrary $libname.a'
14335 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14336 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'
14340 library_names_spec='${libname}${shared_ext}'
14341 dynamic_linker="$host_os ld.so"
14342 shlibpath_var=LIBRARY_PATH
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14351 shlibpath_var=LD_LIBRARY_PATH
14352 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14353 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14354 # the default ld.so.conf also contains /usr/contrib/lib and
14355 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14356 # libtool to hard-code these into programs
14359 cygwin* | mingw* | pw32*)
14360 version_type=windows
14365 case $GCC,$host_os in
14366 yes,cygwin* | yes,mingw* | yes,pw32*)
14367 library_names_spec='$libname.dll.a'
14368 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14369 postinstall_cmds='base_file=`basename \${file}`;
14370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
14371 dldir=$destdir/`dirname \$dlpath`;
14372 test -d \$dldir || mkdir -p \$dldir;
14373 $install_prog $dir/$dlname \$dldir/$dlname'
14374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
14375 dlpath=$dir/\$dldll;
14377 shlibpath_overrides_runpath=yes
14381 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14382 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14383 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14386 # MinGW DLLs use traditional 'lib' prefix
14387 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14389 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14390 # It is most probably a Windows format PATH printed by
14391 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14392 # path with ; separators, and with drive letters. We can handle the
14393 # drive letters (cygwin fileutils understands them), so leave them,
14394 # especially as we might pass files found there to a mingw objdump,
14395 # which wouldn't understand a cygwinified path. Ahh.
14396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14402 # pw32 DLLs use 'pw' prefix rather than 'lib'
14403 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14409 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14412 dynamic_linker='Win32 ld.exe'
14413 # FIXME: first we should search . and the directory the executable is in
14417 darwin* | rhapsody*)
14418 dynamic_linker="$host_os dyld"
14419 version_type=darwin
14422 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14423 soname_spec='${libname}${release}${major}$shared_ext'
14424 shlibpath_overrides_runpath=yes
14425 shlibpath_var=DYLD_LIBRARY_PATH
14426 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14427 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14428 if test "$GCC" = yes; then
14429 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"`
14431 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14441 soname_spec='${libname}${release}${shared_ext}$major'
14442 shlibpath_var=LD_LIBRARY_PATH
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14454 soname_spec='${libname}${release}${shared_ext}$major'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 shlibpath_overrides_runpath=no
14457 hardcode_into_libs=yes
14458 dynamic_linker='GNU ld.so'
14462 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14463 version_type=freebsd-$objformat
14464 case $version_type in
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14475 shlibpath_var=LD_LIBRARY_PATH
14478 shlibpath_overrides_runpath=yes
14480 freebsd3.01* | freebsdelf3.01*)
14481 shlibpath_overrides_runpath=yes
14482 hardcode_into_libs=yes
14485 shlibpath_overrides_runpath=no
14486 hardcode_into_libs=yes
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14496 soname_spec='${libname}${release}${shared_ext}$major'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 hardcode_into_libs=yes
14501 hpux9* | hpux10* | hpux11*)
14502 # Give a soname corresponding to the major version so that dld.sl refuses to
14503 # link against other versions.
14507 case "$host_cpu" in
14510 hardcode_into_libs=yes
14511 dynamic_linker="$host_os dld.so"
14512 shlibpath_var=LD_LIBRARY_PATH
14513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
14517 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14519 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14525 hardcode_into_libs=yes
14526 dynamic_linker="$host_os dld.sl"
14527 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530 soname_spec='${libname}${release}${shared_ext}$major'
14531 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14536 dynamic_linker="$host_os dld.sl"
14537 shlibpath_var=SHLIB_PATH
14538 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540 soname_spec='${libname}${release}${shared_ext}$major'
14543 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14544 postinstall_cmds='chmod 555 $lib'
14547 irix5* | irix6* | nonstopux*)
14549 nonstopux*) version_type=nonstopux ;;
14551 if test "$lt_cv_prog_gnu_ld" = yes; then
14559 soname_spec='${libname}${release}${shared_ext}$major'
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14562 irix5* | nonstopux*)
14563 libsuff= shlibsuff=
14566 case $LD in # libtool.m4 will add one of these switches to LD
14567 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14568 libsuff= shlibsuff= libmagic=32-bit;;
14569 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14570 libsuff=32 shlibsuff=N32 libmagic=N32;;
14571 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14572 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14573 *) libsuff= shlibsuff= libmagic=never-match;;
14577 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14578 shlibpath_overrides_runpath=no
14579 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14580 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14581 hardcode_into_libs=yes
14584 # No shared lib support for Linux oldld, aout, or coff.
14585 linux*oldld* | linux*aout* | linux*coff*)
14589 # This must be Linux ELF.
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14595 soname_spec='${libname}${release}${shared_ext}$major'
14596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14597 shlibpath_var=LD_LIBRARY_PATH
14598 shlibpath_overrides_runpath=no
14599 # This implies no fast_install, which is unacceptable.
14600 # Some rework will be needed to allow for fast_install
14601 # before this can be enabled.
14602 hardcode_into_libs=yes
14604 # Append ld.so.conf contents to the search path
14605 if test -f /etc/ld.so.conf; then
14606 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14607 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14610 # We used to test for /lib/ld.so.1 and disable shared libraries on
14611 # powerpc, because MkLinux only supported shared libraries with the
14612 # GNU dynamic linker. Since this was broken with cross compilers,
14613 # most powerpc-linux boxes support dynamic linking these days and
14614 # people can always --disable-shared, the test was removed, and we
14615 # assume the GNU/Linux dynamic linker is in use.
14616 dynamic_linker='GNU/Linux ld.so'
14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14624 soname_spec='${libname}${release}${shared_ext}$major'
14625 shlibpath_var=LD_LIBRARY_PATH
14626 shlibpath_overrides_runpath=no
14627 hardcode_into_libs=yes
14628 dynamic_linker='GNU ld.so'
14635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14638 dynamic_linker='NetBSD (a.out) ld.so'
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 dynamic_linker='NetBSD ld.elf_so'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=yes
14646 hardcode_into_libs=yes
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 shlibpath_overrides_runpath=yes
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 shlibpath_overrides_runpath=yes
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14672 shlibpath_var=LD_LIBRARY_PATH
14673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14675 openbsd2.[89] | openbsd2.[89].*)
14676 shlibpath_overrides_runpath=no
14679 shlibpath_overrides_runpath=yes
14683 shlibpath_overrides_runpath=yes
14688 libname_spec='$name'
14691 library_names_spec='$libname${shared_ext} $libname.a'
14692 dynamic_linker='OS/2 ld.exe'
14693 shlibpath_var=LIBPATH
14696 osf3* | osf4* | osf5*)
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702 shlibpath_var=LD_LIBRARY_PATH
14703 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14704 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14709 soname_spec='${libname}${release}${shared_ext}$major'
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 shlibpath_var=LD_LIBRARY_PATH
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 shlibpath_var=LD_LIBRARY_PATH
14721 shlibpath_overrides_runpath=yes
14722 hardcode_into_libs=yes
14723 # ldd complains unless libraries are executable
14724 postinstall_cmds='chmod +x $lib'
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14730 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 shlibpath_overrides_runpath=yes
14733 if test "$with_gnu_ld" = yes; then
14739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14742 soname_spec='${libname}${release}${shared_ext}$major'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 case $host_vendor in
14746 shlibpath_overrides_runpath=no
14748 export_dynamic_flag_spec='${wl}-Blargedynsym'
14749 runpath_var=LD_RUN_PATH
14757 shlibpath_overrides_runpath=no
14758 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14764 if test -d /usr/nec ;then
14766 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14767 soname_spec='$libname${shared_ext}.$major'
14768 shlibpath_var=LD_LIBRARY_PATH
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14775 soname_spec='${libname}${release}${shared_ext}$major'
14776 shlibpath_var=LD_LIBRARY_PATH
14783 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14784 echo "${ECHO_T}$dynamic_linker" >&6
14785 test "$dynamic_linker" = no && can_build_shared=no
14787 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14788 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14789 hardcode_action_F77=
14790 if test -n "$hardcode_libdir_flag_spec_F77" || \
14791 test -n "$runpath_var_F77" || \
14792 test "X$hardcode_automatic_F77" = "Xyes" ; then
14794 # We can hardcode non-existant directories.
14795 if test "$hardcode_direct_F77" != no &&
14796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14797 # have to relink, otherwise we might link with an installed library
14798 # when we should be linking with a yet-to-be-installed one
14799 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14800 test "$hardcode_minus_L_F77" != no; then
14801 # Linking always hardcodes the temporary library directory.
14802 hardcode_action_F77=relink
14804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14805 hardcode_action_F77=immediate
14808 # We cannot hardcode anything, or else we can only hardcode existing
14810 hardcode_action_F77=unsupported
14812 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14813 echo "${ECHO_T}$hardcode_action_F77" >&6
14815 if test "$hardcode_action_F77" = relink; then
14816 # Fast installation is not supported
14817 enable_fast_install=no
14818 elif test "$shlibpath_overrides_runpath" = yes ||
14819 test "$enable_shared" = no; then
14820 # Fast installation is not necessary
14821 enable_fast_install=needless
14826 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14827 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14828 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14829 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14830 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14831 echo "$as_me:$LINENO: result: yes" >&5
14832 echo "${ECHO_T}yes" >&6
14834 # FIXME - insert some real tests, host_os isn't really good enough
14837 if test -n "$STRIP" ; then
14838 striplib="$STRIP -x"
14839 echo "$as_me:$LINENO: result: yes" >&5
14840 echo "${ECHO_T}yes" >&6
14842 echo "$as_me:$LINENO: result: no" >&5
14843 echo "${ECHO_T}no" >&6
14847 echo "$as_me:$LINENO: result: no" >&5
14848 echo "${ECHO_T}no" >&6
14855 # The else clause should only fire when bootstrapping the
14856 # libtool distribution, otherwise you forgot to ship ltmain.sh
14857 # with your package, and you will get complaints that there are
14858 # no rules to generate ltmain.sh.
14859 if test -f "$ltmain"; then
14860 # See if we are running on zsh, and set the options which allow our commands through
14861 # without removal of \ escapes.
14862 if test -n "${ZSH_VERSION+set}" ; then
14863 setopt NO_GLOB_SUBST
14865 # Now quote all the things that may contain metacharacters while being
14866 # careful not to overquote the AC_SUBSTed values. We take copies of the
14867 # variables and quote the copies for generation of the libtool script.
14868 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14870 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14871 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14872 deplibs_check_method reload_flag reload_cmds need_locks \
14873 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14874 lt_cv_sys_global_symbol_to_c_name_address \
14875 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14876 old_postinstall_cmds old_postuninstall_cmds \
14880 lt_prog_compiler_wl_F77 \
14881 lt_prog_compiler_pic_F77 \
14882 lt_prog_compiler_static_F77 \
14883 lt_prog_compiler_no_builtin_flag_F77 \
14884 export_dynamic_flag_spec_F77 \
14885 thread_safe_flag_spec_F77 \
14886 whole_archive_flag_spec_F77 \
14887 enable_shared_with_static_runtimes_F77 \
14888 old_archive_cmds_F77 \
14889 old_archive_from_new_cmds_F77 \
14890 predep_objects_F77 \
14891 postdep_objects_F77 \
14894 compiler_lib_search_path_F77 \
14896 archive_expsym_cmds_F77 \
14897 postinstall_cmds_F77 \
14898 postuninstall_cmds_F77 \
14899 old_archive_from_expsyms_cmds_F77 \
14900 allow_undefined_flag_F77 \
14901 no_undefined_flag_F77 \
14902 export_symbols_cmds_F77 \
14903 hardcode_libdir_flag_spec_F77 \
14904 hardcode_libdir_flag_spec_ld_F77 \
14905 hardcode_libdir_separator_F77 \
14906 hardcode_automatic_F77 \
14908 module_expsym_cmds_F77 \
14909 lt_cv_prog_compiler_c_o_F77 \
14910 exclude_expsyms_F77 \
14911 include_expsyms_F77; do
14914 old_archive_cmds_F77 | \
14915 old_archive_from_new_cmds_F77 | \
14916 archive_cmds_F77 | \
14917 archive_expsym_cmds_F77 | \
14918 module_cmds_F77 | \
14919 module_expsym_cmds_F77 | \
14920 old_archive_from_expsyms_cmds_F77 | \
14921 export_symbols_cmds_F77 | \
14922 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14923 postinstall_cmds | postuninstall_cmds | \
14924 old_postinstall_cmds | old_postuninstall_cmds | \
14925 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14926 # Double-quote double-evaled strings.
14927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14930 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14936 *'\$0 --fallback-echo"')
14937 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14943 cat <<__EOF__ >> "$cfgfile"
14944 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14946 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14948 # Shell to use when invoking shell scripts.
14951 # Whether or not to build shared libraries.
14952 build_libtool_libs=$enable_shared
14954 # Whether or not to build static libraries.
14955 build_old_libs=$enable_static
14957 # Whether or not to add -lc for building shared libraries.
14958 build_libtool_need_lc=$archive_cmds_need_lc_F77
14960 # Whether or not to disallow shared libs when runtime libs are static
14961 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14963 # Whether or not to optimize for fast installation.
14964 fast_install=$enable_fast_install
14967 host_alias=$host_alias
14970 # An echo program that does not interpret backslashes.
14975 AR_FLAGS=$lt_AR_FLAGS
14980 # A language-specific compiler.
14981 CC=$lt_compiler_F77
14983 # Is the compiler the GNU C compiler?
14989 # The linker used to build libraries.
14992 # Whether we need hard or soft links.
14995 # A BSD-compatible nm program.
14998 # A symbol stripping program
15001 # Used to examine libraries when file_magic_cmd begins "file"
15002 MAGIC_CMD=$MAGIC_CMD
15004 # Used on cygwin: DLL creation program.
15007 # Used on cygwin: object dumper.
15010 # Used on cygwin: assembler.
15013 # The name of the directory that contains temporary libtool files.
15016 # How to create reloadable object files.
15017 reload_flag=$lt_reload_flag
15018 reload_cmds=$lt_reload_cmds
15020 # How to pass a linker flag through the compiler.
15021 wl=$lt_lt_prog_compiler_wl_F77
15023 # Object file suffix (normally "o").
15024 objext="$ac_objext"
15026 # Old archive suffix (normally "a").
15029 # Shared library suffix (normally ".so").
15030 shrext_cmds='$shrext_cmds'
15032 # Executable file suffix (normally "").
15035 # Additional compiler flags for building library objects.
15036 pic_flag=$lt_lt_prog_compiler_pic_F77
15039 # What is the maximum length of a command?
15040 max_cmd_len=$lt_cv_sys_max_cmd_len
15042 # Does compiler simultaneously support -c and -o options?
15043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15045 # Must we lock files when doing compilation ?
15046 need_locks=$lt_need_locks
15048 # Do we need the lib prefix for modules?
15049 need_lib_prefix=$need_lib_prefix
15051 # Do we need a version for libraries?
15052 need_version=$need_version
15054 # Whether dlopen is supported.
15055 dlopen_support=$enable_dlopen
15057 # Whether dlopen of programs is supported.
15058 dlopen_self=$enable_dlopen_self
15060 # Whether dlopen of statically linked programs is supported.
15061 dlopen_self_static=$enable_dlopen_self_static
15063 # Compiler flag to prevent dynamic linking.
15064 link_static_flag=$lt_lt_prog_compiler_static_F77
15066 # Compiler flag to turn off builtin functions.
15067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15069 # Compiler flag to allow reflexive dlopens.
15070 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15072 # Compiler flag to generate shared objects directly from archives.
15073 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15075 # Compiler flag to generate thread-safe objects.
15076 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15078 # Library versioning type.
15079 version_type=$version_type
15081 # Format of library name prefix.
15082 libname_spec=$lt_libname_spec
15084 # List of archive names. First name is the real one, the rest are links.
15085 # The last name is the one that the linker finds with -lNAME.
15086 library_names_spec=$lt_library_names_spec
15088 # The coded name of the library, if different from the real name.
15089 soname_spec=$lt_soname_spec
15091 # Commands used to build and install an old-style archive.
15093 old_archive_cmds=$lt_old_archive_cmds_F77
15094 old_postinstall_cmds=$lt_old_postinstall_cmds
15095 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15097 # Create an old-style archive from a shared archive.
15098 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15100 # Create a temporary old-style archive to link instead of a shared archive.
15101 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15103 # Commands used to build and install a shared archive.
15104 archive_cmds=$lt_archive_cmds_F77
15105 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15106 postinstall_cmds=$lt_postinstall_cmds
15107 postuninstall_cmds=$lt_postuninstall_cmds
15109 # Commands used to build a loadable module (assumed same as above if empty)
15110 module_cmds=$lt_module_cmds_F77
15111 module_expsym_cmds=$lt_module_expsym_cmds_F77
15113 # Commands to strip libraries.
15114 old_striplib=$lt_old_striplib
15115 striplib=$lt_striplib
15117 # Dependencies to place before the objects being linked to create a
15119 predep_objects=$lt_predep_objects_F77
15121 # Dependencies to place after the objects being linked to create a
15123 postdep_objects=$lt_postdep_objects_F77
15125 # Dependencies to place before the objects being linked to create a
15127 predeps=$lt_predeps_F77
15129 # Dependencies to place after the objects being linked to create a
15131 postdeps=$lt_postdeps_F77
15133 # The library search path used internally by the compiler when linking
15134 # a shared library.
15135 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15137 # Method to check whether dependent libraries are shared objects.
15138 deplibs_check_method=$lt_deplibs_check_method
15140 # Command to use when deplibs_check_method == file_magic.
15141 file_magic_cmd=$lt_file_magic_cmd
15143 # Flag that allows shared libraries with undefined symbols to be built.
15144 allow_undefined_flag=$lt_allow_undefined_flag_F77
15146 # Flag that forces no undefined symbols.
15147 no_undefined_flag=$lt_no_undefined_flag_F77
15149 # Commands used to finish a libtool library installation in a directory.
15150 finish_cmds=$lt_finish_cmds
15152 # Same as above, but a single script fragment to be evaled but not shown.
15153 finish_eval=$lt_finish_eval
15155 # Take the output of nm and produce a listing of raw symbols and C names.
15156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15158 # Transform the output of nm in a proper C declaration
15159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15161 # Transform the output of nm in a C name address pair
15162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15164 # This is the shared library runtime path variable.
15165 runpath_var=$runpath_var
15167 # This is the shared library path variable.
15168 shlibpath_var=$shlibpath_var
15170 # Is shlibpath searched before the hard-coded library search path?
15171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15173 # How to hardcode a shared library path into an executable.
15174 hardcode_action=$hardcode_action_F77
15176 # Whether we should hardcode library paths into libraries.
15177 hardcode_into_libs=$hardcode_into_libs
15179 # Flag to hardcode \$libdir into a binary during linking.
15180 # This must work even if \$libdir does not exist.
15181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15183 # If ld is used when linking, flag to hardcode \$libdir into
15184 # a binary during linking. This must work even if \$libdir does
15186 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15188 # Whether we need a single -rpath flag with a separated argument.
15189 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15191 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15192 # resulting binary.
15193 hardcode_direct=$hardcode_direct_F77
15195 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15196 # resulting binary.
15197 hardcode_minus_L=$hardcode_minus_L_F77
15199 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15200 # the resulting binary.
15201 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15203 # Set to yes if building a shared library automatically hardcodes DIR into the library
15204 # and all subsequent libraries and executables linked against it.
15205 hardcode_automatic=$hardcode_automatic_F77
15207 # Variables whose values should be saved in libtool wrapper scripts and
15208 # restored at relink time.
15209 variables_saved_for_relink="$variables_saved_for_relink"
15211 # Whether libtool must link a program against all its dependency libraries.
15212 link_all_deplibs=$link_all_deplibs_F77
15214 # Compile-time system search path for libraries
15215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15217 # Run-time system search path for libraries
15218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15220 # Fix the shell variable \$srcfile for the compiler.
15221 fix_srcfile_path="$fix_srcfile_path_F77"
15223 # Set to yes if exported symbols are required.
15224 always_export_symbols=$always_export_symbols_F77
15226 # The commands to list exported symbols.
15227 export_symbols_cmds=$lt_export_symbols_cmds_F77
15229 # The commands to extract the exported symbol list from a shared archive.
15230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15232 # Symbols that should not be listed in the preloaded symbols.
15233 exclude_expsyms=$lt_exclude_expsyms_F77
15235 # Symbols that must always be exported.
15236 include_expsyms=$lt_include_expsyms_F77
15238 # ### END LIBTOOL TAG CONFIG: $tagname
15244 # If there is no Makefile yet, we rely on a make rule to execute
15245 # `config.status --recheck' to rerun these tests and create the
15246 # libtool script then.
15247 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15248 if test -f "$ltmain_in"; then
15249 test -f Makefile && make "$ltmain"
15255 ac_cpp='$CPP $CPPFLAGS'
15256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15268 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15270 ac_cpp='$CPP $CPPFLAGS'
15271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15276 # Source file extension for Java test sources.
15279 # Object file extension for compiled Java test sources.
15283 # Code to be used in simple compile tests
15284 lt_simple_compile_test_code="class foo {}\n"
15286 # Code to be used in simple link tests
15287 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15289 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15291 # If no C compiler was specified, use CC.
15294 # Allow CC to be a program name with arguments.
15298 # Allow CC to be a program name with arguments.
15304 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15305 archive_cmds_need_lc_GCJ=no
15308 lt_prog_compiler_no_builtin_flag_GCJ=
15310 if test "$GCC" = yes; then
15311 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15314 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15315 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15316 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 lt_cv_prog_compiler_rtti_exceptions=no
15320 ac_outfile=conftest.$ac_objext
15321 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15322 lt_compiler_flag="-fno-rtti -fno-exceptions"
15323 # Insert the option either (1) after the last *FLAGS variable, or
15324 # (2) before a word containing "conftest.", or (3) at the end.
15325 # Note that $ac_compile itself does not contain backslashes and begins
15326 # with a dollar sign (not a hyphen), so the echo should work correctly.
15327 # The option is referenced via a variable to avoid confusing sed.
15328 lt_compile=`echo "$ac_compile" | $SED \
15329 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15331 -e 's:$: $lt_compiler_flag:'`
15332 (eval echo "\"\$as_me:15332: $lt_compile\"" >&5)
15333 (eval "$lt_compile" 2>conftest.err)
15335 cat conftest.err >&5
15336 echo "$as_me:15336: \$? = $ac_status" >&5
15337 if (exit $ac_status) && test -s "$ac_outfile"; then
15338 # The compiler can only warn and ignore the option if not recognized
15339 # So say no if there are warnings
15340 if test ! -s conftest.err; then
15341 lt_cv_prog_compiler_rtti_exceptions=yes
15347 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15348 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15350 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15351 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15358 lt_prog_compiler_wl_GCJ=
15359 lt_prog_compiler_pic_GCJ=
15360 lt_prog_compiler_static_GCJ=
15362 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15363 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15365 if test "$GCC" = yes; then
15366 lt_prog_compiler_wl_GCJ='-Wl,'
15367 lt_prog_compiler_static_GCJ='-static'
15371 # All AIX code is PIC.
15372 if test "$host_cpu" = ia64; then
15373 # AIX 5 now supports IA64 processor
15374 lt_prog_compiler_static_GCJ='-Bstatic'
15379 # FIXME: we need at least 68020 code to build shared libraries, but
15380 # adding the `-m68020' flag to GCC prevents building anything better,
15382 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15385 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15386 # PIC is the default for these OSes.
15389 mingw* | pw32* | os2*)
15390 # This hack is so that the source file can tell whether it is being
15391 # built for inclusion in a dll (and should export symbols for example).
15392 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15395 darwin* | rhapsody*)
15396 # PIC is the default on this platform
15397 # Common symbols not allowed in MH_DYLIB files
15398 lt_prog_compiler_pic_GCJ='-fno-common'
15402 # Just because we use GCC doesn't mean we suddenly get shared libraries
15403 # on systems that don't support them.
15404 lt_prog_compiler_can_build_shared_GCJ=no
15409 if test -d /usr/nec; then
15410 lt_prog_compiler_pic_GCJ=-Kconform_pic
15415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15416 # not for PA HP-UX.
15417 case "$host_cpu" in
15422 lt_prog_compiler_pic_GCJ='-fPIC'
15428 lt_prog_compiler_pic_GCJ='-fPIC'
15432 # PORTME Check for flag to pass linker flags through the system compiler.
15435 lt_prog_compiler_wl_GCJ='-Wl,'
15436 if test "$host_cpu" = ia64; then
15437 # AIX 5 now supports IA64 processor
15438 lt_prog_compiler_static_GCJ='-Bstatic'
15440 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15444 # PIC is the default on this platform
15445 # Common symbols not allowed in MH_DYLIB files
15446 case "$cc_basename" in
15448 lt_prog_compiler_pic_GCJ='-qnocommon'
15449 lt_prog_compiler_wl_GCJ='-Wl,'
15454 mingw* | pw32* | os2*)
15455 # This hack is so that the source file can tell whether it is being
15456 # built for inclusion in a dll (and should export symbols for example).
15457 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15460 hpux9* | hpux10* | hpux11*)
15461 lt_prog_compiler_wl_GCJ='-Wl,'
15462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15463 # not for PA HP-UX.
15464 case "$host_cpu" in
15469 lt_prog_compiler_pic_GCJ='+Z'
15472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15473 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15476 irix5* | irix6* | nonstopux*)
15477 lt_prog_compiler_wl_GCJ='-Wl,'
15478 # PIC (with -KPIC) is the default.
15479 lt_prog_compiler_static_GCJ='-non_shared'
15483 lt_prog_compiler_pic_GCJ='-KPIC'
15484 lt_prog_compiler_static_GCJ='-Bstatic'
15490 lt_prog_compiler_wl_GCJ='-Wl,'
15491 lt_prog_compiler_pic_GCJ='-KPIC'
15492 lt_prog_compiler_static_GCJ='-static'
15495 lt_prog_compiler_wl_GCJ='-Wl,'
15496 # All Alpha code is PIC.
15497 lt_prog_compiler_static_GCJ='-non_shared'
15502 osf3* | osf4* | osf5*)
15503 lt_prog_compiler_wl_GCJ='-Wl,'
15504 # All OSF/1 code is PIC.
15505 lt_prog_compiler_static_GCJ='-non_shared'
15509 lt_prog_compiler_pic_GCJ='-Kpic'
15510 lt_prog_compiler_static_GCJ='-dn'
15514 lt_prog_compiler_wl_GCJ='-Wl,'
15515 lt_prog_compiler_pic_GCJ='-KPIC'
15516 lt_prog_compiler_static_GCJ='-Bstatic'
15520 lt_prog_compiler_wl_GCJ='-Qoption ld '
15521 lt_prog_compiler_pic_GCJ='-PIC'
15522 lt_prog_compiler_static_GCJ='-Bstatic'
15525 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15526 lt_prog_compiler_wl_GCJ='-Wl,'
15527 lt_prog_compiler_pic_GCJ='-KPIC'
15528 lt_prog_compiler_static_GCJ='-Bstatic'
15532 if test -d /usr/nec ;then
15533 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15534 lt_prog_compiler_static_GCJ='-Bstatic'
15539 lt_prog_compiler_pic_GCJ='-pic'
15540 lt_prog_compiler_static_GCJ='-Bstatic'
15544 lt_prog_compiler_can_build_shared_GCJ=no
15549 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15550 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15553 # Check to make sure the PIC flag actually works.
15555 if test -n "$lt_prog_compiler_pic_GCJ"; then
15557 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15559 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 lt_prog_compiler_pic_works_GCJ=no
15563 ac_outfile=conftest.$ac_objext
15564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15565 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15566 # Insert the option either (1) after the last *FLAGS variable, or
15567 # (2) before a word containing "conftest.", or (3) at the end.
15568 # Note that $ac_compile itself does not contain backslashes and begins
15569 # with a dollar sign (not a hyphen), so the echo should work correctly.
15570 # The option is referenced via a variable to avoid confusing sed.
15571 lt_compile=`echo "$ac_compile" | $SED \
15572 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15574 -e 's:$: $lt_compiler_flag:'`
15575 (eval echo "\"\$as_me:15575: $lt_compile\"" >&5)
15576 (eval "$lt_compile" 2>conftest.err)
15578 cat conftest.err >&5
15579 echo "$as_me:15579: \$? = $ac_status" >&5
15580 if (exit $ac_status) && test -s "$ac_outfile"; then
15581 # The compiler can only warn and ignore the option if not recognized
15582 # So say no if there are warnings
15583 if test ! -s conftest.err; then
15584 lt_prog_compiler_pic_works_GCJ=yes
15590 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15591 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15593 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15594 case $lt_prog_compiler_pic_GCJ in
15596 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15599 lt_prog_compiler_pic_GCJ=
15600 lt_prog_compiler_can_build_shared_GCJ=no
15605 # For platforms which do not support PIC, -DPIC is meaningless:
15607 lt_prog_compiler_pic_GCJ=
15610 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15614 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15616 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 lt_cv_prog_compiler_c_o_GCJ=no
15620 $rm -r conftest 2>/dev/null
15624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15626 lt_compiler_flag="-o out/conftest2.$ac_objext"
15627 # Insert the option either (1) after the last *FLAGS variable, or
15628 # (2) before a word containing "conftest.", or (3) at the end.
15629 # Note that $ac_compile itself does not contain backslashes and begins
15630 # with a dollar sign (not a hyphen), so the echo should work correctly.
15631 lt_compile=`echo "$ac_compile" | $SED \
15632 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15634 -e 's:$: $lt_compiler_flag:'`
15635 (eval echo "\"\$as_me:15635: $lt_compile\"" >&5)
15636 (eval "$lt_compile" 2>out/conftest.err)
15638 cat out/conftest.err >&5
15639 echo "$as_me:15639: \$? = $ac_status" >&5
15640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15642 # The compiler can only warn and ignore the option if not recognized
15643 # So say no if there are warnings
15644 if test ! -s out/conftest.err; then
15645 lt_cv_prog_compiler_c_o_GCJ=yes
15650 # SGI C++ compiler will create directory out/ii_files/ for
15651 # template instantiation
15652 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15653 $rm out/* && rmdir out
15659 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15660 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15663 hard_links="nottested"
15664 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15665 # do not overwrite the value of need_locks provided by the user
15666 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15667 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15672 ln conftest.a conftest.b 2>&5 || hard_links=no
15673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15674 echo "$as_me:$LINENO: result: $hard_links" >&5
15675 echo "${ECHO_T}$hard_links" >&6
15676 if test "$hard_links" = no; then
15677 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15678 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15685 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15686 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15689 allow_undefined_flag_GCJ=
15690 enable_shared_with_static_runtimes_GCJ=no
15692 archive_expsym_cmds_GCJ=
15693 old_archive_From_new_cmds_GCJ=
15694 old_archive_from_expsyms_cmds_GCJ=
15695 export_dynamic_flag_spec_GCJ=
15696 whole_archive_flag_spec_GCJ=
15697 thread_safe_flag_spec_GCJ=
15698 hardcode_libdir_flag_spec_GCJ=
15699 hardcode_libdir_flag_spec_ld_GCJ=
15700 hardcode_libdir_separator_GCJ=
15701 hardcode_direct_GCJ=no
15702 hardcode_minus_L_GCJ=no
15703 hardcode_shlibpath_var_GCJ=unsupported
15704 link_all_deplibs_GCJ=unknown
15705 hardcode_automatic_GCJ=no
15707 module_expsym_cmds_GCJ=
15708 always_export_symbols_GCJ=no
15709 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15710 # include_expsyms should be a list of space-separated symbols to be *always*
15711 # included in the symbol list
15712 include_expsyms_GCJ=
15713 # exclude_expsyms can be an extended regexp of symbols to exclude
15714 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15715 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15716 # as well as any symbol that contains `d'.
15717 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15718 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15719 # platforms (ab)use it in PIC code, but their linkers get confused if
15720 # the symbol is explicitly referenced. Since portable code cannot
15721 # rely on this symbol name, it's probably fine to never include it in
15722 # preloaded symbol tables.
15723 extract_expsyms_cmds=
15726 cygwin* | mingw* | pw32*)
15727 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15728 # When not using gcc, we currently assume that we are using
15729 # Microsoft Visual C++.
15730 if test "$GCC" != yes; then
15740 if test "$with_gnu_ld" = yes; then
15741 # If archive_cmds runs LD, not CC, wlarc should be empty
15744 # See if GNU ld supports shared libraries.
15746 aix3* | aix4* | aix5*)
15747 # On AIX/PPC, the GNU linker is very broken
15748 if test "$host_cpu" != ia64; then
15752 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15753 *** to be unable to reliably create shared libraries on AIX.
15754 *** Therefore, libtool is disabling shared libraries support. If you
15755 *** really care for shared libraries, you may want to modify your PATH
15756 *** so that a non-GNU linker is found, and then restart.
15763 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)'
15764 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15765 hardcode_minus_L_GCJ=yes
15767 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15768 # that the semantics of dynamic libraries on AmigaOS, at least up
15769 # to version 4, is to share data among multiple programs linked
15770 # with the same dynamic library. Since this doesn't match the
15771 # behavior of shared libraries on other platforms, we can't use
15777 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15778 allow_undefined_flag_GCJ=unsupported
15779 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15780 # support --undefined. This deserves some investigation. FIXME
15781 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15787 cygwin* | mingw* | pw32*)
15788 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15789 # as there is no search path for DLLs.
15790 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15791 allow_undefined_flag_GCJ=unsupported
15792 always_export_symbols_GCJ=no
15793 enable_shared_with_static_runtimes_GCJ=yes
15794 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15796 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15797 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15798 # If the export-symbols file already is a .def file (1st line
15799 # is EXPORTS), use it as is; otherwise, prepend...
15800 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15801 cp $export_symbols $output_objdir/$soname.def;
15803 echo EXPORTS > $output_objdir/$soname.def;
15804 cat $export_symbols >> $output_objdir/$soname.def;
15805 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15813 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15816 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15817 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15822 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15826 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15827 *** create shared libraries on Solaris systems. Therefore, libtool
15828 *** is disabling shared libraries support. We urge you to upgrade GNU
15829 *** binutils to release 2.9.1 or newer. Another option is to modify
15830 *** your PATH or compiler configuration so that the native linker is
15831 *** used, and then restart.
15834 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15835 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15836 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15843 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15845 hardcode_direct_GCJ=yes
15846 hardcode_shlibpath_var_GCJ=no
15850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15851 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15852 archive_cmds_GCJ="$tmp_archive_cmds"
15853 supports_anon_versioning=no
15854 case `$LD -v 2>/dev/null` in
15855 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15856 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15857 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15858 *\ 2.11.*) ;; # other 2.11 versions
15859 *) supports_anon_versioning=yes ;;
15861 if test $supports_anon_versioning = yes; then
15862 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
15863 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15865 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15874 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15875 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15882 if test "$ld_shlibs_GCJ" = yes; then
15883 runpath_var=LD_RUN_PATH
15884 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15885 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15886 # ancient GNU ld didn't support --whole-archive et. al.
15887 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15888 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15890 whole_archive_flag_spec_GCJ=
15894 # PORTME fill in a description of your system's linker (not GNU ld)
15897 allow_undefined_flag_GCJ=unsupported
15898 always_export_symbols_GCJ=yes
15899 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'
15900 # Note: this linker hardcodes the directories in LIBPATH if there
15901 # are no directories specified by -L.
15902 hardcode_minus_L_GCJ=yes
15903 if test "$GCC" = yes && test -z "$link_static_flag"; then
15904 # Neither direct hardcoding nor static linking is supported with a
15906 hardcode_direct_GCJ=unsupported
15911 if test "$host_cpu" = ia64; then
15912 # On IA64, the linker does run time linking by default, so we don't
15913 # have to do anything special.
15914 aix_use_runtimelinking=no
15915 exp_sym_flag='-Bexport'
15918 # If we're using GNU nm, then we don't want the "-C" option.
15919 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15920 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15921 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'
15923 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'
15925 aix_use_runtimelinking=no
15927 # Test if we are trying to use run time linking or normal
15928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15929 # need to do runtime linking.
15930 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15931 for ld_flag in $LDFLAGS; do
15932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15933 aix_use_runtimelinking=yes
15939 exp_sym_flag='-bexport'
15940 no_entry_flag='-bnoentry'
15943 # When large executables or shared objects are built, AIX ld can
15944 # have problems creating the table of contents. If linking a library
15945 # or program results in "error TOC overflow" add -mminimal-toc to
15946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15949 archive_cmds_GCJ=''
15950 hardcode_direct_GCJ=yes
15951 hardcode_libdir_separator_GCJ=':'
15952 link_all_deplibs_GCJ=yes
15954 if test "$GCC" = yes; then
15955 case $host_os in aix4.012|aix4.012.*)
15956 # We only want to do this on AIX 4.2 and lower, the check
15957 # below for broken collect2 doesn't work under 4.3+
15958 collect2name=`${CC} -print-prog-name=collect2`
15959 if test -f "$collect2name" && \
15960 strings "$collect2name" | grep resolve_lib_name >/dev/null
15962 # We have reworked collect2
15963 hardcode_direct_GCJ=yes
15965 # We have old collect2
15966 hardcode_direct_GCJ=unsupported
15967 # It fails to find uninstalled libraries when the uninstalled
15968 # path is not listed in the libpath. Setting hardcode_minus_L
15969 # to unsupported forces relinking
15970 hardcode_minus_L_GCJ=yes
15971 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15972 hardcode_libdir_separator_GCJ=
15975 shared_flag='-shared'
15978 if test "$host_cpu" = ia64; then
15979 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15980 # chokes on -Wl,-G. The following line is correct:
15983 if test "$aix_use_runtimelinking" = yes; then
15984 shared_flag='${wl}-G'
15986 shared_flag='${wl}-bM:SRE'
15991 # It seems that -bexpall does not export symbols beginning with
15992 # underscore (_), so it is better to generate a list of symbols to export.
15993 always_export_symbols_GCJ=yes
15994 if test "$aix_use_runtimelinking" = yes; then
15995 # Warning - without using the other runtime loading flags (-brtl),
15996 # -berok will link without error, but may produce a broken library.
15997 allow_undefined_flag_GCJ='-berok'
15998 # Determine the default libpath from the value encoded in an empty executable.
15999 cat >conftest.$ac_ext <<_ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16014 rm -f conftest.$ac_objext conftest$ac_exeext
16015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>conftest.er1
16018 grep -v '^ *+' conftest.er1 >conftest.err
16020 cat conftest.err >&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } &&
16023 { ac_try='test -z "$ac_c_werror_flag"
16024 || test ! -s conftest.err'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; } &&
16030 { ac_try='test -s conftest$ac_exeext'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; }; then
16037 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16039 # Check for a 64-bit object if we didn't find anything.
16040 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; }
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16047 rm -f conftest.err conftest.$ac_objext \
16048 conftest$ac_exeext conftest.$ac_ext
16049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16051 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16052 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"
16054 if test "$host_cpu" = ia64; then
16055 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16056 allow_undefined_flag_GCJ="-z nodefs"
16057 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"
16059 # Determine the default libpath from the value encoded in an empty executable.
16060 cat >conftest.$ac_ext <<_ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16075 rm -f conftest.$ac_objext conftest$ac_exeext
16076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16077 (eval $ac_link) 2>conftest.er1
16079 grep -v '^ *+' conftest.er1 >conftest.err
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
16084 { ac_try='test -z "$ac_c_werror_flag"
16085 || test ! -s conftest.err'
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest$ac_exeext'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16100 # Check for a 64-bit object if we didn't find anything.
16101 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; }
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16108 rm -f conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
16110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16112 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16113 # Warning - without using the other run time loading flags,
16114 # -berok will link without error, but may produce a broken library.
16115 no_undefined_flag_GCJ=' ${wl}-bernotok'
16116 allow_undefined_flag_GCJ=' ${wl}-berok'
16117 # -bexpall does not export symbols beginning with underscore (_)
16118 always_export_symbols_GCJ=yes
16119 # Exported symbols can be pulled into shared objects from archives
16120 whole_archive_flag_spec_GCJ=' '
16121 archive_cmds_need_lc_GCJ=yes
16122 # This is similar to how AIX traditionally builds it's shared libraries.
16123 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'
16129 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)'
16130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16131 hardcode_minus_L_GCJ=yes
16132 # see comment about different semantics on the GNU ld section
16137 export_dynamic_flag_spec_GCJ=-rdynamic
16140 cygwin* | mingw* | pw32*)
16141 # When not using gcc, we currently assume that we are using
16142 # Microsoft Visual C++.
16143 # hardcode_libdir_flag_spec is actually meaningless, as there is
16144 # no search path for DLLs.
16145 hardcode_libdir_flag_spec_GCJ=' '
16146 allow_undefined_flag_GCJ=unsupported
16147 # Tell ltmain to make .lib files, not .a files.
16149 # Tell ltmain to make .dll files, not .so files.
16151 # FIXME: Setting linknames here is a bad hack.
16152 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
16153 # The linker will automatically build a .lib file if we build a DLL.
16154 old_archive_From_new_cmds_GCJ='true'
16155 # FIXME: Should let the user specify the lib program.
16156 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16157 fix_srcfile_path='`cygpath -w "$srcfile"`'
16158 enable_shared_with_static_runtimes_GCJ=yes
16161 darwin* | rhapsody*)
16163 rhapsody* | darwin1.[012])
16164 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16167 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16168 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16170 case ${MACOSX_DEPLOYMENT_TARGET} in
16172 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16175 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16181 archive_cmds_need_lc_GCJ=no
16182 hardcode_direct_GCJ=no
16183 hardcode_automatic_GCJ=yes
16184 hardcode_shlibpath_var_GCJ=unsupported
16185 whole_archive_flag_spec_GCJ=''
16186 link_all_deplibs_GCJ=yes
16187 if test "$GCC" = yes ; then
16188 output_verbose_link_cmd='echo'
16189 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16190 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16192 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}'
16193 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}'
16195 case "$cc_basename" in
16197 output_verbose_link_cmd='echo'
16198 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16199 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16200 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16201 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}'
16202 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}'
16212 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16213 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16214 hardcode_shlibpath_var_GCJ=no
16221 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16222 # support. Future versions do this automatically, but an explicit c++rt0.o
16223 # does not break anything, and helps significantly (at the cost of a little
16226 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16227 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16228 hardcode_direct_GCJ=yes
16229 hardcode_shlibpath_var_GCJ=no
16232 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16234 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16235 hardcode_direct_GCJ=yes
16236 hardcode_minus_L_GCJ=yes
16237 hardcode_shlibpath_var_GCJ=no
16240 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16241 freebsd* | kfreebsd*-gnu)
16242 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16243 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16244 hardcode_direct_GCJ=yes
16245 hardcode_shlibpath_var_GCJ=no
16249 if test "$GCC" = yes; then
16250 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'
16252 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'
16254 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16255 hardcode_libdir_separator_GCJ=:
16256 hardcode_direct_GCJ=yes
16258 # hardcode_minus_L: Not really in the search PATH,
16259 # but as the default location of the library.
16260 hardcode_minus_L_GCJ=yes
16261 export_dynamic_flag_spec_GCJ='${wl}-E'
16265 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16266 case "$host_cpu" in
16268 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16271 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16275 case "$host_cpu" in
16277 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16280 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16284 if test "$with_gnu_ld" = no; then
16285 case "$host_cpu" in
16287 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16288 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16289 hardcode_libdir_separator_GCJ=:
16290 hardcode_direct_GCJ=no
16291 hardcode_shlibpath_var_GCJ=no
16294 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16295 hardcode_direct_GCJ=no
16296 hardcode_shlibpath_var_GCJ=no
16298 # hardcode_minus_L: Not really in the search PATH,
16299 # but as the default location of the library.
16300 hardcode_minus_L_GCJ=yes
16303 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16304 hardcode_libdir_separator_GCJ=:
16305 hardcode_direct_GCJ=yes
16306 export_dynamic_flag_spec_GCJ='${wl}-E'
16308 # hardcode_minus_L: Not really in the search PATH,
16309 # but as the default location of the library.
16310 hardcode_minus_L_GCJ=yes
16316 irix5* | irix6* | nonstopux*)
16317 if test "$GCC" = yes; then
16318 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'
16320 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'
16321 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16323 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16324 hardcode_libdir_separator_GCJ=:
16325 link_all_deplibs_GCJ=yes
16329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16330 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16332 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16334 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16335 hardcode_direct_GCJ=yes
16336 hardcode_shlibpath_var_GCJ=no
16340 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16341 hardcode_direct_GCJ=yes
16342 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16343 hardcode_libdir_separator_GCJ=:
16344 hardcode_shlibpath_var_GCJ=no
16348 hardcode_direct_GCJ=yes
16349 hardcode_shlibpath_var_GCJ=no
16350 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16351 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16352 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16354 export_dynamic_flag_spec_GCJ='${wl}-E'
16357 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16358 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16359 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16362 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16363 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16370 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16371 hardcode_minus_L_GCJ=yes
16372 allow_undefined_flag_GCJ=unsupported
16373 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'
16374 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16378 if test "$GCC" = yes; then
16379 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16380 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'
16382 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16383 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'
16385 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16386 hardcode_libdir_separator_GCJ=:
16389 osf4* | osf5*) # as osf3* with the addition of -msym flag
16390 if test "$GCC" = yes; then
16391 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16392 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'
16393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16395 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16396 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'
16397 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp'
16398 # Both c and cxx compiler support -rpath directly
16399 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16401 hardcode_libdir_separator_GCJ=:
16405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16406 hardcode_shlibpath_var_GCJ=no
16407 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16408 runpath_var=LD_RUN_PATH
16409 hardcode_runpath_var=yes
16413 no_undefined_flag_GCJ=' -z text'
16414 if test "$GCC" = yes; then
16415 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16416 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
16418 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16419 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16421 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16422 hardcode_shlibpath_var_GCJ=no
16424 solaris2.[0-5] | solaris2.[0-5].*) ;;
16425 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16426 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16428 link_all_deplibs_GCJ=yes
16432 if test "x$host_vendor" = xsequent; then
16433 # Use $CC to link under sequent, because it throws in some extra .o
16434 # files that make .init and .fini sections work.
16435 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16437 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16439 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16440 hardcode_direct_GCJ=yes
16441 hardcode_minus_L_GCJ=yes
16442 hardcode_shlibpath_var_GCJ=no
16446 case $host_vendor in
16448 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16449 hardcode_direct_GCJ=yes # is this really true???
16452 ## LD is ld it makes a PLAMLIB
16453 ## CC just makes a GrossModule.
16454 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16455 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16456 hardcode_direct_GCJ=no
16459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16460 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16463 runpath_var='LD_RUN_PATH'
16464 hardcode_shlibpath_var_GCJ=no
16468 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16469 hardcode_shlibpath_var_GCJ=no
16470 export_dynamic_flag_spec_GCJ='-Bexport'
16474 if test -d /usr/nec; then
16475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 hardcode_shlibpath_var_GCJ=no
16477 runpath_var=LD_RUN_PATH
16478 hardcode_runpath_var=yes
16484 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16485 hardcode_direct_GCJ=yes
16486 hardcode_minus_L_GCJ=no
16487 hardcode_shlibpath_var_GCJ=no
16488 hardcode_runpath_var=yes
16489 runpath_var=LD_RUN_PATH
16492 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16493 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16494 if test "$GCC" = yes; then
16495 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16497 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16499 runpath_var='LD_RUN_PATH'
16500 hardcode_shlibpath_var_GCJ=no
16504 no_undefined_flag_GCJ=' -z text'
16505 # $CC -shared without GNU ld will not create a library from C++
16506 # object files and a static libstdc++, better avoid it by now
16507 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16509 hardcode_libdir_flag_spec_GCJ=
16510 hardcode_shlibpath_var_GCJ=no
16511 runpath_var='LD_RUN_PATH'
16515 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16516 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16517 hardcode_shlibpath_var_GCJ=no
16526 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16527 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16528 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16530 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16531 if test "$GCC" = yes; then
16532 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16536 # Do we need to explicitly link libc?
16538 case "x$archive_cmds_need_lc_GCJ" in
16540 # Assume -lc should be added
16541 archive_cmds_need_lc_GCJ=yes
16543 if test "$enable_shared" = yes && test "$GCC" = yes; then
16544 case $archive_cmds_GCJ in
16546 # FIXME: we may have to deal with multi-command sequences.
16549 # Test whether the compiler implicitly links with -lc since on some
16550 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16551 # to ld, don't add -lc before -lgcc.
16552 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16553 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16558 (eval $ac_compile) 2>&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } 2>conftest.err; then
16564 libobjs=conftest.$ac_objext
16566 wl=$lt_prog_compiler_wl_GCJ
16572 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16573 allow_undefined_flag_GCJ=
16574 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16575 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }
16580 archive_cmds_need_lc_GCJ=no
16582 archive_cmds_need_lc_GCJ=yes
16584 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16586 cat conftest.err 1>&5
16589 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16590 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16597 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16598 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16599 library_names_spec=
16600 libname_spec='lib$name'
16604 postuninstall_cmds=
16608 shlibpath_overrides_runpath=unknown
16610 dynamic_linker="$host_os ld.so"
16611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16612 if test "$GCC" = yes; then
16613 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16614 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16615 # if the path contains ";" then we assume it to be the separator
16616 # otherwise default to the standard path separator (i.e. ":") - it is
16617 # assumed that no part of a normal pathname contains ";" but that should
16618 # okay in the real world where ";" in dirpaths is itself problematic.
16619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16626 need_lib_prefix=unknown
16627 hardcode_into_libs=no
16629 # when you set need_version to no, make sure it does not cause -set_version
16630 # flags to be left without arguments
16631 need_version=unknown
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16637 shlibpath_var=LIBPATH
16639 # AIX 3 has no versioning support, so we append a major version to the name.
16640 soname_spec='${libname}${release}${shared_ext}$major'
16647 hardcode_into_libs=yes
16648 if test "$host_cpu" = ia64; then
16649 # AIX 5 supports IA64
16650 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16651 shlibpath_var=LD_LIBRARY_PATH
16653 # With GCC up to 2.95.x, collect2 would create an import file
16654 # for dependence libraries. The import file would start with
16655 # the line `#! .'. This would cause the generated library to
16656 # depend on `.', always an invalid library. This was fixed in
16657 # development snapshots of GCC prior to 3.0.
16659 aix4 | aix4.[01] | aix4.[01].*)
16660 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16662 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16665 can_build_shared=no
16669 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16670 # soname into executable. Probably we can add versioning support to
16671 # collect2, so additional links can be useful in future.
16672 if test "$aix_use_runtimelinking" = yes; then
16673 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16674 # instead of lib<name>.a to let people know that these are not
16675 # typical AIX shared libraries.
16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 # We preserve .a as extension for shared libraries through AIX4.2
16679 # and later when we are not doing run time linking.
16680 library_names_spec='${libname}${release}.a $libname.a'
16681 soname_spec='${libname}${release}${shared_ext}$major'
16683 shlibpath_var=LIBPATH
16688 library_names_spec='$libname.ixlibrary $libname.a'
16689 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16690 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'
16694 library_names_spec='${libname}${shared_ext}'
16695 dynamic_linker="$host_os ld.so"
16696 shlibpath_var=LIBRARY_PATH
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703 soname_spec='${libname}${release}${shared_ext}$major'
16704 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16705 shlibpath_var=LD_LIBRARY_PATH
16706 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16707 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16708 # the default ld.so.conf also contains /usr/contrib/lib and
16709 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16710 # libtool to hard-code these into programs
16713 cygwin* | mingw* | pw32*)
16714 version_type=windows
16719 case $GCC,$host_os in
16720 yes,cygwin* | yes,mingw* | yes,pw32*)
16721 library_names_spec='$libname.dll.a'
16722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16723 postinstall_cmds='base_file=`basename \${file}`;
16724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16725 dldir=$destdir/`dirname \$dlpath`;
16726 test -d \$dldir || mkdir -p \$dldir;
16727 $install_prog $dir/$dlname \$dldir/$dlname'
16728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16729 dlpath=$dir/\$dldll;
16731 shlibpath_overrides_runpath=yes
16735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16737 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16740 # MinGW DLLs use traditional 'lib' prefix
16741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16742 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16743 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16744 # It is most probably a Windows format PATH printed by
16745 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16746 # path with ; separators, and with drive letters. We can handle the
16747 # drive letters (cygwin fileutils understands them), so leave them,
16748 # especially as we might pass files found there to a mingw objdump,
16749 # which wouldn't understand a cygwinified path. Ahh.
16750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16756 # pw32 DLLs use 'pw' prefix rather than 'lib'
16757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16766 dynamic_linker='Win32 ld.exe'
16767 # FIXME: first we should search . and the directory the executable is in
16771 darwin* | rhapsody*)
16772 dynamic_linker="$host_os dyld"
16773 version_type=darwin
16776 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16777 soname_spec='${libname}${release}${major}$shared_ext'
16778 shlibpath_overrides_runpath=yes
16779 shlibpath_var=DYLD_LIBRARY_PATH
16780 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16781 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16782 if test "$GCC" = yes; then
16783 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"`
16785 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16787 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16795 soname_spec='${libname}${release}${shared_ext}$major'
16796 shlibpath_var=LD_LIBRARY_PATH
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 shlibpath_overrides_runpath=no
16811 hardcode_into_libs=yes
16812 dynamic_linker='GNU ld.so'
16816 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16817 version_type=freebsd-$objformat
16818 case $version_type in
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16829 shlibpath_var=LD_LIBRARY_PATH
16832 shlibpath_overrides_runpath=yes
16834 freebsd3.01* | freebsdelf3.01*)
16835 shlibpath_overrides_runpath=yes
16836 hardcode_into_libs=yes
16839 shlibpath_overrides_runpath=no
16840 hardcode_into_libs=yes
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 hardcode_into_libs=yes
16855 hpux9* | hpux10* | hpux11*)
16856 # Give a soname corresponding to the major version so that dld.sl refuses to
16857 # link against other versions.
16861 case "$host_cpu" in
16864 hardcode_into_libs=yes
16865 dynamic_linker="$host_os dld.so"
16866 shlibpath_var=LD_LIBRARY_PATH
16867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869 soname_spec='${libname}${release}${shared_ext}$major'
16870 if test "X$HPUX_IA64_MODE" = X32; then
16871 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16873 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16879 hardcode_into_libs=yes
16880 dynamic_linker="$host_os dld.sl"
16881 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16890 dynamic_linker="$host_os dld.sl"
16891 shlibpath_var=SHLIB_PATH
16892 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16897 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16898 postinstall_cmds='chmod 555 $lib'
16901 irix5* | irix6* | nonstopux*)
16903 nonstopux*) version_type=nonstopux ;;
16905 if test "$lt_cv_prog_gnu_ld" = yes; then
16913 soname_spec='${libname}${release}${shared_ext}$major'
16914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16916 irix5* | nonstopux*)
16917 libsuff= shlibsuff=
16920 case $LD in # libtool.m4 will add one of these switches to LD
16921 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16922 libsuff= shlibsuff= libmagic=32-bit;;
16923 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16924 libsuff=32 shlibsuff=N32 libmagic=N32;;
16925 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16926 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16927 *) libsuff= shlibsuff= libmagic=never-match;;
16931 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16932 shlibpath_overrides_runpath=no
16933 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16934 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16935 hardcode_into_libs=yes
16938 # No shared lib support for Linux oldld, aout, or coff.
16939 linux*oldld* | linux*aout* | linux*coff*)
16943 # This must be Linux ELF.
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16951 shlibpath_var=LD_LIBRARY_PATH
16952 shlibpath_overrides_runpath=no
16953 # This implies no fast_install, which is unacceptable.
16954 # Some rework will be needed to allow for fast_install
16955 # before this can be enabled.
16956 hardcode_into_libs=yes
16958 # Append ld.so.conf contents to the search path
16959 if test -f /etc/ld.so.conf; then
16960 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16961 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16964 # We used to test for /lib/ld.so.1 and disable shared libraries on
16965 # powerpc, because MkLinux only supported shared libraries with the
16966 # GNU dynamic linker. Since this was broken with cross compilers,
16967 # most powerpc-linux boxes support dynamic linking these days and
16968 # people can always --disable-shared, the test was removed, and we
16969 # assume the GNU/Linux dynamic linker is in use.
16970 dynamic_linker='GNU/Linux ld.so'
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16978 soname_spec='${libname}${release}${shared_ext}$major'
16979 shlibpath_var=LD_LIBRARY_PATH
16980 shlibpath_overrides_runpath=no
16981 hardcode_into_libs=yes
16982 dynamic_linker='GNU ld.so'
16989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16992 dynamic_linker='NetBSD (a.out) ld.so'
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 dynamic_linker='NetBSD ld.elf_so'
16998 shlibpath_var=LD_LIBRARY_PATH
16999 shlibpath_overrides_runpath=yes
17000 hardcode_into_libs=yes
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 shlibpath_overrides_runpath=yes
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 shlibpath_var=LD_LIBRARY_PATH
17017 shlibpath_overrides_runpath=yes
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17026 shlibpath_var=LD_LIBRARY_PATH
17027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17029 openbsd2.[89] | openbsd2.[89].*)
17030 shlibpath_overrides_runpath=no
17033 shlibpath_overrides_runpath=yes
17037 shlibpath_overrides_runpath=yes
17042 libname_spec='$name'
17045 library_names_spec='$libname${shared_ext} $libname.a'
17046 dynamic_linker='OS/2 ld.exe'
17047 shlibpath_var=LIBPATH
17050 osf3* | osf4* | osf5*)
17054 soname_spec='${libname}${release}${shared_ext}$major'
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056 shlibpath_var=LD_LIBRARY_PATH
17057 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17058 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065 shlibpath_var=LD_LIBRARY_PATH
17072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17073 soname_spec='${libname}${release}${shared_ext}$major'
17074 shlibpath_var=LD_LIBRARY_PATH
17075 shlibpath_overrides_runpath=yes
17076 hardcode_into_libs=yes
17077 # ldd complains unless libraries are executable
17078 postinstall_cmds='chmod +x $lib'
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17084 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath=yes
17087 if test "$with_gnu_ld" = yes; then
17093 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 shlibpath_var=LD_LIBRARY_PATH
17098 case $host_vendor in
17100 shlibpath_overrides_runpath=no
17102 export_dynamic_flag_spec='${wl}-Blargedynsym'
17103 runpath_var=LD_RUN_PATH
17111 shlibpath_overrides_runpath=no
17112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17118 if test -d /usr/nec ;then
17120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17121 soname_spec='$libname${shared_ext}.$major'
17122 shlibpath_var=LD_LIBRARY_PATH
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129 soname_spec='${libname}${release}${shared_ext}$major'
17130 shlibpath_var=LD_LIBRARY_PATH
17137 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17138 echo "${ECHO_T}$dynamic_linker" >&6
17139 test "$dynamic_linker" = no && can_build_shared=no
17141 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17142 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17143 hardcode_action_GCJ=
17144 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17145 test -n "$runpath_var_GCJ" || \
17146 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17148 # We can hardcode non-existant directories.
17149 if test "$hardcode_direct_GCJ" != no &&
17150 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17151 # have to relink, otherwise we might link with an installed library
17152 # when we should be linking with a yet-to-be-installed one
17153 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17154 test "$hardcode_minus_L_GCJ" != no; then
17155 # Linking always hardcodes the temporary library directory.
17156 hardcode_action_GCJ=relink
17158 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17159 hardcode_action_GCJ=immediate
17162 # We cannot hardcode anything, or else we can only hardcode existing
17164 hardcode_action_GCJ=unsupported
17166 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17167 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17169 if test "$hardcode_action_GCJ" = relink; then
17170 # Fast installation is not supported
17171 enable_fast_install=no
17172 elif test "$shlibpath_overrides_runpath" = yes ||
17173 test "$enable_shared" = no; then
17174 # Fast installation is not necessary
17175 enable_fast_install=needless
17180 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17181 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17182 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17183 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17184 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17185 echo "$as_me:$LINENO: result: yes" >&5
17186 echo "${ECHO_T}yes" >&6
17188 # FIXME - insert some real tests, host_os isn't really good enough
17191 if test -n "$STRIP" ; then
17192 striplib="$STRIP -x"
17193 echo "$as_me:$LINENO: result: yes" >&5
17194 echo "${ECHO_T}yes" >&6
17196 echo "$as_me:$LINENO: result: no" >&5
17197 echo "${ECHO_T}no" >&6
17201 echo "$as_me:$LINENO: result: no" >&5
17202 echo "${ECHO_T}no" >&6
17207 if test "x$enable_dlopen" != xyes; then
17208 enable_dlopen=unknown
17209 enable_dlopen_self=unknown
17210 enable_dlopen_self_static=unknown
17217 lt_cv_dlopen="load_add_on"
17219 lt_cv_dlopen_self=yes
17223 lt_cv_dlopen="LoadLibrary"
17228 lt_cv_dlopen="dlopen"
17233 # if libdl is installed we need to link against it
17234 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17235 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17236 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 ac_check_lib_save_LIBS=$LIBS
17241 cat >conftest.$ac_ext <<_ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17248 /* Override any gcc2 internal prototype to avoid an error. */
17252 /* We use char because int might match the return type of a gcc2
17253 builtin and then its argument prototype would still apply. */
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17265 (eval $ac_link) 2>conftest.er1
17267 grep -v '^ *+' conftest.er1 >conftest.err
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try='test -z "$ac_c_werror_flag"
17273 || test ! -s conftest.err'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try='test -s conftest$ac_exeext'
17280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281 (eval $ac_try) 2>&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; }; then
17285 ac_cv_lib_dl_dlopen=yes
17287 echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17290 ac_cv_lib_dl_dlopen=no
17292 rm -f conftest.err conftest.$ac_objext \
17293 conftest$ac_exeext conftest.$ac_ext
17294 LIBS=$ac_check_lib_save_LIBS
17296 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17297 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17298 if test $ac_cv_lib_dl_dlopen = yes; then
17299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17302 lt_cv_dlopen="dyld"
17304 lt_cv_dlopen_self=yes
17311 echo "$as_me:$LINENO: checking for shl_load" >&5
17312 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17313 if test "${ac_cv_func_shl_load+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17316 cat >conftest.$ac_ext <<_ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17322 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17324 #define shl_load innocuous_shl_load
17326 /* System header to define __stub macros and hopefully few prototypes,
17327 which can conflict with char shl_load (); below.
17328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17329 <limits.h> exists even on freestanding compilers. */
17332 # include <limits.h>
17334 # include <assert.h>
17339 /* Override any gcc2 internal prototype to avoid an error. */
17344 /* We use char because int might match the return type of a gcc2
17345 builtin and then its argument prototype would still apply. */
17347 /* The GNU C library defines this for functions which it implements
17348 to always fail with ENOSYS. Some functions are actually named
17349 something starting with __ and the normal name is an alias. */
17350 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17353 char (*f) () = shl_load;
17362 return f != shl_load;
17367 rm -f conftest.$ac_objext conftest$ac_exeext
17368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17369 (eval $ac_link) 2>conftest.er1
17371 grep -v '^ *+' conftest.er1 >conftest.err
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -z "$ac_c_werror_flag"
17377 || test ! -s conftest.err'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; } &&
17383 { ac_try='test -s conftest$ac_exeext'
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; }; then
17389 ac_cv_func_shl_load=yes
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ac_cv_func_shl_load=no
17396 rm -f conftest.err conftest.$ac_objext \
17397 conftest$ac_exeext conftest.$ac_ext
17399 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17400 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17401 if test $ac_cv_func_shl_load = yes; then
17402 lt_cv_dlopen="shl_load"
17404 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17405 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17406 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 ac_check_lib_save_LIBS=$LIBS
17411 cat >conftest.$ac_ext <<_ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17418 /* Override any gcc2 internal prototype to avoid an error. */
17422 /* We use char because int might match the return type of a gcc2
17423 builtin and then its argument prototype would still apply. */
17433 rm -f conftest.$ac_objext conftest$ac_exeext
17434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17435 (eval $ac_link) 2>conftest.er1
17437 grep -v '^ *+' conftest.er1 >conftest.err
17439 cat conftest.err >&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } &&
17442 { ac_try='test -z "$ac_c_werror_flag"
17443 || test ! -s conftest.err'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try='test -s conftest$ac_exeext'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; }; then
17455 ac_cv_lib_dld_shl_load=yes
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 ac_cv_lib_dld_shl_load=no
17462 rm -f conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17464 LIBS=$ac_check_lib_save_LIBS
17466 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17467 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17468 if test $ac_cv_lib_dld_shl_load = yes; then
17469 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17471 echo "$as_me:$LINENO: checking for dlopen" >&5
17472 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17473 if test "${ac_cv_func_dlopen+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 cat >conftest.$ac_ext <<_ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17484 #define dlopen innocuous_dlopen
17486 /* System header to define __stub macros and hopefully few prototypes,
17487 which can conflict with char dlopen (); below.
17488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17489 <limits.h> exists even on freestanding compilers. */
17492 # include <limits.h>
17494 # include <assert.h>
17499 /* Override any gcc2 internal prototype to avoid an error. */
17504 /* We use char because int might match the return type of a gcc2
17505 builtin and then its argument prototype would still apply. */
17507 /* The GNU C library defines this for functions which it implements
17508 to always fail with ENOSYS. Some functions are actually named
17509 something starting with __ and the normal name is an alias. */
17510 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17513 char (*f) () = dlopen;
17522 return f != dlopen;
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529 (eval $ac_link) 2>conftest.er1
17531 grep -v '^ *+' conftest.er1 >conftest.err
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag"
17537 || test ! -s conftest.err'
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest$ac_exeext'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 ac_cv_func_dlopen=yes
17551 echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 ac_cv_func_dlopen=no
17556 rm -f conftest.err conftest.$ac_objext \
17557 conftest$ac_exeext conftest.$ac_ext
17559 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17560 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17561 if test $ac_cv_func_dlopen = yes; then
17562 lt_cv_dlopen="dlopen"
17564 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17565 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17566 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 ac_check_lib_save_LIBS=$LIBS
17571 cat >conftest.$ac_ext <<_ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17578 /* Override any gcc2 internal prototype to avoid an error. */
17582 /* We use char because int might match the return type of a gcc2
17583 builtin and then its argument prototype would still apply. */
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595 (eval $ac_link) 2>conftest.er1
17597 grep -v '^ *+' conftest.er1 >conftest.err
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest$ac_exeext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_cv_lib_dl_dlopen=yes
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 ac_cv_lib_dl_dlopen=no
17622 rm -f conftest.err conftest.$ac_objext \
17623 conftest$ac_exeext conftest.$ac_ext
17624 LIBS=$ac_check_lib_save_LIBS
17626 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17627 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17628 if test $ac_cv_lib_dl_dlopen = yes; then
17629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17631 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17632 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17633 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 ac_check_lib_save_LIBS=$LIBS
17637 LIBS="-lsvld $LIBS"
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17645 /* Override any gcc2 internal prototype to avoid an error. */
17649 /* We use char because int might match the return type of a gcc2
17650 builtin and then its argument prototype would still apply. */
17660 rm -f conftest.$ac_objext conftest$ac_exeext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17662 (eval $ac_link) 2>conftest.er1
17664 grep -v '^ *+' conftest.er1 >conftest.err
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
17669 { ac_try='test -z "$ac_c_werror_flag"
17670 || test ! -s conftest.err'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest$ac_exeext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_lib_svld_dlopen=yes
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17687 ac_cv_lib_svld_dlopen=no
17689 rm -f conftest.err conftest.$ac_objext \
17690 conftest$ac_exeext conftest.$ac_ext
17691 LIBS=$ac_check_lib_save_LIBS
17693 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17694 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17695 if test $ac_cv_lib_svld_dlopen = yes; then
17696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17698 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17699 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17700 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 ac_check_lib_save_LIBS=$LIBS
17705 cat >conftest.$ac_ext <<_ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17712 /* Override any gcc2 internal prototype to avoid an error. */
17716 /* We use char because int might match the return type of a gcc2
17717 builtin and then its argument prototype would still apply. */
17727 rm -f conftest.$ac_objext conftest$ac_exeext
17728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17729 (eval $ac_link) 2>conftest.er1
17731 grep -v '^ *+' conftest.er1 >conftest.err
17733 cat conftest.err >&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } &&
17736 { ac_try='test -z "$ac_c_werror_flag"
17737 || test ! -s conftest.err'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; } &&
17743 { ac_try='test -s conftest$ac_exeext'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 ac_cv_lib_dld_dld_link=yes
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17754 ac_cv_lib_dld_dld_link=no
17756 rm -f conftest.err conftest.$ac_objext \
17757 conftest$ac_exeext conftest.$ac_ext
17758 LIBS=$ac_check_lib_save_LIBS
17760 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17761 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17762 if test $ac_cv_lib_dld_dld_link = yes; then
17763 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17784 if test "x$lt_cv_dlopen" != xno; then
17790 case $lt_cv_dlopen in
17792 save_CPPFLAGS="$CPPFLAGS"
17793 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17795 save_LDFLAGS="$LDFLAGS"
17796 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17799 LIBS="$lt_cv_dlopen_libs $LIBS"
17801 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17802 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17803 if test "${lt_cv_dlopen_self+set}" = set; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 if test "$cross_compiling" = yes; then :
17807 lt_cv_dlopen_self=cross
17809 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17810 lt_status=$lt_dlunknown
17811 cat > conftest.$ac_ext <<EOF
17812 #line 17812 "configure"
17813 #include "confdefs.h"
17822 # define LT_DLGLOBAL RTLD_GLOBAL
17825 # define LT_DLGLOBAL DL_GLOBAL
17827 # define LT_DLGLOBAL 0
17831 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17832 find out it does not work in some platform. */
17833 #ifndef LT_DLLAZY_OR_NOW
17835 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17838 # define LT_DLLAZY_OR_NOW DL_LAZY
17841 # define LT_DLLAZY_OR_NOW RTLD_NOW
17844 # define LT_DLLAZY_OR_NOW DL_NOW
17846 # define LT_DLLAZY_OR_NOW 0
17854 extern "C" void exit (int);
17857 void fnord() { int i=42;}
17860 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17861 int status = $lt_dlunknown;
17865 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17866 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17867 /* dlclose (self); */
17873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17874 (eval $ac_link) 2>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17878 (./conftest; exit; ) 2>/dev/null
17880 case x$lt_status in
17881 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17882 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17883 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17886 # compilation failed
17887 lt_cv_dlopen_self=no
17894 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17895 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17897 if test "x$lt_cv_dlopen_self" = xyes; then
17898 LDFLAGS="$LDFLAGS $link_static_flag"
17899 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17900 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17901 if test "${lt_cv_dlopen_self_static+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17904 if test "$cross_compiling" = yes; then :
17905 lt_cv_dlopen_self_static=cross
17907 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17908 lt_status=$lt_dlunknown
17909 cat > conftest.$ac_ext <<EOF
17910 #line 17910 "configure"
17911 #include "confdefs.h"
17920 # define LT_DLGLOBAL RTLD_GLOBAL
17923 # define LT_DLGLOBAL DL_GLOBAL
17925 # define LT_DLGLOBAL 0
17929 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17930 find out it does not work in some platform. */
17931 #ifndef LT_DLLAZY_OR_NOW
17933 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17936 # define LT_DLLAZY_OR_NOW DL_LAZY
17939 # define LT_DLLAZY_OR_NOW RTLD_NOW
17942 # define LT_DLLAZY_OR_NOW DL_NOW
17944 # define LT_DLLAZY_OR_NOW 0
17952 extern "C" void exit (int);
17955 void fnord() { int i=42;}
17958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17959 int status = $lt_dlunknown;
17963 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17964 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17965 /* dlclose (self); */
17971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17972 (eval $ac_link) 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17976 (./conftest; exit; ) 2>/dev/null
17978 case x$lt_status in
17979 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17980 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17981 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17984 # compilation failed
17985 lt_cv_dlopen_self_static=no
17992 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17993 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17996 CPPFLAGS="$save_CPPFLAGS"
17997 LDFLAGS="$save_LDFLAGS"
18002 case $lt_cv_dlopen_self in
18003 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18004 *) enable_dlopen_self=unknown ;;
18007 case $lt_cv_dlopen_self_static in
18008 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18009 *) enable_dlopen_self_static=unknown ;;
18014 # The else clause should only fire when bootstrapping the
18015 # libtool distribution, otherwise you forgot to ship ltmain.sh
18016 # with your package, and you will get complaints that there are
18017 # no rules to generate ltmain.sh.
18018 if test -f "$ltmain"; then
18019 # See if we are running on zsh, and set the options which allow our commands through
18020 # without removal of \ escapes.
18021 if test -n "${ZSH_VERSION+set}" ; then
18022 setopt NO_GLOB_SUBST
18024 # Now quote all the things that may contain metacharacters while being
18025 # careful not to overquote the AC_SUBSTed values. We take copies of the
18026 # variables and quote the copies for generation of the libtool script.
18027 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18029 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18030 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18031 deplibs_check_method reload_flag reload_cmds need_locks \
18032 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18033 lt_cv_sys_global_symbol_to_c_name_address \
18034 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18035 old_postinstall_cmds old_postuninstall_cmds \
18039 lt_prog_compiler_wl_GCJ \
18040 lt_prog_compiler_pic_GCJ \
18041 lt_prog_compiler_static_GCJ \
18042 lt_prog_compiler_no_builtin_flag_GCJ \
18043 export_dynamic_flag_spec_GCJ \
18044 thread_safe_flag_spec_GCJ \
18045 whole_archive_flag_spec_GCJ \
18046 enable_shared_with_static_runtimes_GCJ \
18047 old_archive_cmds_GCJ \
18048 old_archive_from_new_cmds_GCJ \
18049 predep_objects_GCJ \
18050 postdep_objects_GCJ \
18053 compiler_lib_search_path_GCJ \
18055 archive_expsym_cmds_GCJ \
18056 postinstall_cmds_GCJ \
18057 postuninstall_cmds_GCJ \
18058 old_archive_from_expsyms_cmds_GCJ \
18059 allow_undefined_flag_GCJ \
18060 no_undefined_flag_GCJ \
18061 export_symbols_cmds_GCJ \
18062 hardcode_libdir_flag_spec_GCJ \
18063 hardcode_libdir_flag_spec_ld_GCJ \
18064 hardcode_libdir_separator_GCJ \
18065 hardcode_automatic_GCJ \
18067 module_expsym_cmds_GCJ \
18068 lt_cv_prog_compiler_c_o_GCJ \
18069 exclude_expsyms_GCJ \
18070 include_expsyms_GCJ; do
18073 old_archive_cmds_GCJ | \
18074 old_archive_from_new_cmds_GCJ | \
18075 archive_cmds_GCJ | \
18076 archive_expsym_cmds_GCJ | \
18077 module_cmds_GCJ | \
18078 module_expsym_cmds_GCJ | \
18079 old_archive_from_expsyms_cmds_GCJ | \
18080 export_symbols_cmds_GCJ | \
18081 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18082 postinstall_cmds | postuninstall_cmds | \
18083 old_postinstall_cmds | old_postuninstall_cmds | \
18084 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18085 # Double-quote double-evaled strings.
18086 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18089 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18095 *'\$0 --fallback-echo"')
18096 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18102 cat <<__EOF__ >> "$cfgfile"
18103 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18105 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18107 # Shell to use when invoking shell scripts.
18110 # Whether or not to build shared libraries.
18111 build_libtool_libs=$enable_shared
18113 # Whether or not to build static libraries.
18114 build_old_libs=$enable_static
18116 # Whether or not to add -lc for building shared libraries.
18117 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18119 # Whether or not to disallow shared libs when runtime libs are static
18120 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18122 # Whether or not to optimize for fast installation.
18123 fast_install=$enable_fast_install
18126 host_alias=$host_alias
18129 # An echo program that does not interpret backslashes.
18134 AR_FLAGS=$lt_AR_FLAGS
18139 # A language-specific compiler.
18140 CC=$lt_compiler_GCJ
18142 # Is the compiler the GNU C compiler?
18148 # The linker used to build libraries.
18151 # Whether we need hard or soft links.
18154 # A BSD-compatible nm program.
18157 # A symbol stripping program
18160 # Used to examine libraries when file_magic_cmd begins "file"
18161 MAGIC_CMD=$MAGIC_CMD
18163 # Used on cygwin: DLL creation program.
18166 # Used on cygwin: object dumper.
18169 # Used on cygwin: assembler.
18172 # The name of the directory that contains temporary libtool files.
18175 # How to create reloadable object files.
18176 reload_flag=$lt_reload_flag
18177 reload_cmds=$lt_reload_cmds
18179 # How to pass a linker flag through the compiler.
18180 wl=$lt_lt_prog_compiler_wl_GCJ
18182 # Object file suffix (normally "o").
18183 objext="$ac_objext"
18185 # Old archive suffix (normally "a").
18188 # Shared library suffix (normally ".so").
18189 shrext_cmds='$shrext_cmds'
18191 # Executable file suffix (normally "").
18194 # Additional compiler flags for building library objects.
18195 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18198 # What is the maximum length of a command?
18199 max_cmd_len=$lt_cv_sys_max_cmd_len
18201 # Does compiler simultaneously support -c and -o options?
18202 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18204 # Must we lock files when doing compilation ?
18205 need_locks=$lt_need_locks
18207 # Do we need the lib prefix for modules?
18208 need_lib_prefix=$need_lib_prefix
18210 # Do we need a version for libraries?
18211 need_version=$need_version
18213 # Whether dlopen is supported.
18214 dlopen_support=$enable_dlopen
18216 # Whether dlopen of programs is supported.
18217 dlopen_self=$enable_dlopen_self
18219 # Whether dlopen of statically linked programs is supported.
18220 dlopen_self_static=$enable_dlopen_self_static
18222 # Compiler flag to prevent dynamic linking.
18223 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18225 # Compiler flag to turn off builtin functions.
18226 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18228 # Compiler flag to allow reflexive dlopens.
18229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18231 # Compiler flag to generate shared objects directly from archives.
18232 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18234 # Compiler flag to generate thread-safe objects.
18235 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18237 # Library versioning type.
18238 version_type=$version_type
18240 # Format of library name prefix.
18241 libname_spec=$lt_libname_spec
18243 # List of archive names. First name is the real one, the rest are links.
18244 # The last name is the one that the linker finds with -lNAME.
18245 library_names_spec=$lt_library_names_spec
18247 # The coded name of the library, if different from the real name.
18248 soname_spec=$lt_soname_spec
18250 # Commands used to build and install an old-style archive.
18252 old_archive_cmds=$lt_old_archive_cmds_GCJ
18253 old_postinstall_cmds=$lt_old_postinstall_cmds
18254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18256 # Create an old-style archive from a shared archive.
18257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18259 # Create a temporary old-style archive to link instead of a shared archive.
18260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18262 # Commands used to build and install a shared archive.
18263 archive_cmds=$lt_archive_cmds_GCJ
18264 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18265 postinstall_cmds=$lt_postinstall_cmds
18266 postuninstall_cmds=$lt_postuninstall_cmds
18268 # Commands used to build a loadable module (assumed same as above if empty)
18269 module_cmds=$lt_module_cmds_GCJ
18270 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18272 # Commands to strip libraries.
18273 old_striplib=$lt_old_striplib
18274 striplib=$lt_striplib
18276 # Dependencies to place before the objects being linked to create a
18278 predep_objects=$lt_predep_objects_GCJ
18280 # Dependencies to place after the objects being linked to create a
18282 postdep_objects=$lt_postdep_objects_GCJ
18284 # Dependencies to place before the objects being linked to create a
18286 predeps=$lt_predeps_GCJ
18288 # Dependencies to place after the objects being linked to create a
18290 postdeps=$lt_postdeps_GCJ
18292 # The library search path used internally by the compiler when linking
18293 # a shared library.
18294 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18296 # Method to check whether dependent libraries are shared objects.
18297 deplibs_check_method=$lt_deplibs_check_method
18299 # Command to use when deplibs_check_method == file_magic.
18300 file_magic_cmd=$lt_file_magic_cmd
18302 # Flag that allows shared libraries with undefined symbols to be built.
18303 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18305 # Flag that forces no undefined symbols.
18306 no_undefined_flag=$lt_no_undefined_flag_GCJ
18308 # Commands used to finish a libtool library installation in a directory.
18309 finish_cmds=$lt_finish_cmds
18311 # Same as above, but a single script fragment to be evaled but not shown.
18312 finish_eval=$lt_finish_eval
18314 # Take the output of nm and produce a listing of raw symbols and C names.
18315 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18317 # Transform the output of nm in a proper C declaration
18318 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18320 # Transform the output of nm in a C name address pair
18321 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18323 # This is the shared library runtime path variable.
18324 runpath_var=$runpath_var
18326 # This is the shared library path variable.
18327 shlibpath_var=$shlibpath_var
18329 # Is shlibpath searched before the hard-coded library search path?
18330 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18332 # How to hardcode a shared library path into an executable.
18333 hardcode_action=$hardcode_action_GCJ
18335 # Whether we should hardcode library paths into libraries.
18336 hardcode_into_libs=$hardcode_into_libs
18338 # Flag to hardcode \$libdir into a binary during linking.
18339 # This must work even if \$libdir does not exist.
18340 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18342 # If ld is used when linking, flag to hardcode \$libdir into
18343 # a binary during linking. This must work even if \$libdir does
18345 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18347 # Whether we need a single -rpath flag with a separated argument.
18348 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18350 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18351 # resulting binary.
18352 hardcode_direct=$hardcode_direct_GCJ
18354 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18355 # resulting binary.
18356 hardcode_minus_L=$hardcode_minus_L_GCJ
18358 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18359 # the resulting binary.
18360 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18362 # Set to yes if building a shared library automatically hardcodes DIR into the library
18363 # and all subsequent libraries and executables linked against it.
18364 hardcode_automatic=$hardcode_automatic_GCJ
18366 # Variables whose values should be saved in libtool wrapper scripts and
18367 # restored at relink time.
18368 variables_saved_for_relink="$variables_saved_for_relink"
18370 # Whether libtool must link a program against all its dependency libraries.
18371 link_all_deplibs=$link_all_deplibs_GCJ
18373 # Compile-time system search path for libraries
18374 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18376 # Run-time system search path for libraries
18377 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18379 # Fix the shell variable \$srcfile for the compiler.
18380 fix_srcfile_path="$fix_srcfile_path_GCJ"
18382 # Set to yes if exported symbols are required.
18383 always_export_symbols=$always_export_symbols_GCJ
18385 # The commands to list exported symbols.
18386 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18388 # The commands to extract the exported symbol list from a shared archive.
18389 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18391 # Symbols that should not be listed in the preloaded symbols.
18392 exclude_expsyms=$lt_exclude_expsyms_GCJ
18394 # Symbols that must always be exported.
18395 include_expsyms=$lt_include_expsyms_GCJ
18397 # ### END LIBTOOL TAG CONFIG: $tagname
18403 # If there is no Makefile yet, we rely on a make rule to execute
18404 # `config.status --recheck' to rerun these tests and create the
18405 # libtool script then.
18406 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18407 if test -f "$ltmain_in"; then
18408 test -f Makefile && make "$ltmain"
18414 ac_cpp='$CPP $CPPFLAGS'
18415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18428 ac_cpp='$CPP $CPPFLAGS'
18429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18434 # Source file extension for RC test sources.
18437 # Object file extension for compiled RC test sources.
18441 # Code to be used in simple compile tests
18442 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18444 # Code to be used in simple link tests
18445 lt_simple_link_test_code="$lt_simple_compile_test_code"
18447 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18449 # If no C compiler was specified, use CC.
18452 # Allow CC to be a program name with arguments.
18456 # Allow CC to be a program name with arguments.
18461 lt_cv_prog_compiler_c_o_RC=yes
18463 # The else clause should only fire when bootstrapping the
18464 # libtool distribution, otherwise you forgot to ship ltmain.sh
18465 # with your package, and you will get complaints that there are
18466 # no rules to generate ltmain.sh.
18467 if test -f "$ltmain"; then
18468 # See if we are running on zsh, and set the options which allow our commands through
18469 # without removal of \ escapes.
18470 if test -n "${ZSH_VERSION+set}" ; then
18471 setopt NO_GLOB_SUBST
18473 # Now quote all the things that may contain metacharacters while being
18474 # careful not to overquote the AC_SUBSTed values. We take copies of the
18475 # variables and quote the copies for generation of the libtool script.
18476 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18478 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18479 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18480 deplibs_check_method reload_flag reload_cmds need_locks \
18481 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18482 lt_cv_sys_global_symbol_to_c_name_address \
18483 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18484 old_postinstall_cmds old_postuninstall_cmds \
18488 lt_prog_compiler_wl_RC \
18489 lt_prog_compiler_pic_RC \
18490 lt_prog_compiler_static_RC \
18491 lt_prog_compiler_no_builtin_flag_RC \
18492 export_dynamic_flag_spec_RC \
18493 thread_safe_flag_spec_RC \
18494 whole_archive_flag_spec_RC \
18495 enable_shared_with_static_runtimes_RC \
18496 old_archive_cmds_RC \
18497 old_archive_from_new_cmds_RC \
18498 predep_objects_RC \
18499 postdep_objects_RC \
18502 compiler_lib_search_path_RC \
18504 archive_expsym_cmds_RC \
18505 postinstall_cmds_RC \
18506 postuninstall_cmds_RC \
18507 old_archive_from_expsyms_cmds_RC \
18508 allow_undefined_flag_RC \
18509 no_undefined_flag_RC \
18510 export_symbols_cmds_RC \
18511 hardcode_libdir_flag_spec_RC \
18512 hardcode_libdir_flag_spec_ld_RC \
18513 hardcode_libdir_separator_RC \
18514 hardcode_automatic_RC \
18516 module_expsym_cmds_RC \
18517 lt_cv_prog_compiler_c_o_RC \
18518 exclude_expsyms_RC \
18519 include_expsyms_RC; do
18522 old_archive_cmds_RC | \
18523 old_archive_from_new_cmds_RC | \
18524 archive_cmds_RC | \
18525 archive_expsym_cmds_RC | \
18527 module_expsym_cmds_RC | \
18528 old_archive_from_expsyms_cmds_RC | \
18529 export_symbols_cmds_RC | \
18530 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18531 postinstall_cmds | postuninstall_cmds | \
18532 old_postinstall_cmds | old_postuninstall_cmds | \
18533 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18534 # Double-quote double-evaled strings.
18535 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18538 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18544 *'\$0 --fallback-echo"')
18545 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18551 cat <<__EOF__ >> "$cfgfile"
18552 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18554 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18556 # Shell to use when invoking shell scripts.
18559 # Whether or not to build shared libraries.
18560 build_libtool_libs=$enable_shared
18562 # Whether or not to build static libraries.
18563 build_old_libs=$enable_static
18565 # Whether or not to add -lc for building shared libraries.
18566 build_libtool_need_lc=$archive_cmds_need_lc_RC
18568 # Whether or not to disallow shared libs when runtime libs are static
18569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18571 # Whether or not to optimize for fast installation.
18572 fast_install=$enable_fast_install
18575 host_alias=$host_alias
18578 # An echo program that does not interpret backslashes.
18583 AR_FLAGS=$lt_AR_FLAGS
18588 # A language-specific compiler.
18591 # Is the compiler the GNU C compiler?
18597 # The linker used to build libraries.
18600 # Whether we need hard or soft links.
18603 # A BSD-compatible nm program.
18606 # A symbol stripping program
18609 # Used to examine libraries when file_magic_cmd begins "file"
18610 MAGIC_CMD=$MAGIC_CMD
18612 # Used on cygwin: DLL creation program.
18615 # Used on cygwin: object dumper.
18618 # Used on cygwin: assembler.
18621 # The name of the directory that contains temporary libtool files.
18624 # How to create reloadable object files.
18625 reload_flag=$lt_reload_flag
18626 reload_cmds=$lt_reload_cmds
18628 # How to pass a linker flag through the compiler.
18629 wl=$lt_lt_prog_compiler_wl_RC
18631 # Object file suffix (normally "o").
18632 objext="$ac_objext"
18634 # Old archive suffix (normally "a").
18637 # Shared library suffix (normally ".so").
18638 shrext_cmds='$shrext_cmds'
18640 # Executable file suffix (normally "").
18643 # Additional compiler flags for building library objects.
18644 pic_flag=$lt_lt_prog_compiler_pic_RC
18647 # What is the maximum length of a command?
18648 max_cmd_len=$lt_cv_sys_max_cmd_len
18650 # Does compiler simultaneously support -c and -o options?
18651 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18653 # Must we lock files when doing compilation ?
18654 need_locks=$lt_need_locks
18656 # Do we need the lib prefix for modules?
18657 need_lib_prefix=$need_lib_prefix
18659 # Do we need a version for libraries?
18660 need_version=$need_version
18662 # Whether dlopen is supported.
18663 dlopen_support=$enable_dlopen
18665 # Whether dlopen of programs is supported.
18666 dlopen_self=$enable_dlopen_self
18668 # Whether dlopen of statically linked programs is supported.
18669 dlopen_self_static=$enable_dlopen_self_static
18671 # Compiler flag to prevent dynamic linking.
18672 link_static_flag=$lt_lt_prog_compiler_static_RC
18674 # Compiler flag to turn off builtin functions.
18675 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18677 # Compiler flag to allow reflexive dlopens.
18678 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18680 # Compiler flag to generate shared objects directly from archives.
18681 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18683 # Compiler flag to generate thread-safe objects.
18684 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18686 # Library versioning type.
18687 version_type=$version_type
18689 # Format of library name prefix.
18690 libname_spec=$lt_libname_spec
18692 # List of archive names. First name is the real one, the rest are links.
18693 # The last name is the one that the linker finds with -lNAME.
18694 library_names_spec=$lt_library_names_spec
18696 # The coded name of the library, if different from the real name.
18697 soname_spec=$lt_soname_spec
18699 # Commands used to build and install an old-style archive.
18701 old_archive_cmds=$lt_old_archive_cmds_RC
18702 old_postinstall_cmds=$lt_old_postinstall_cmds
18703 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18705 # Create an old-style archive from a shared archive.
18706 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18708 # Create a temporary old-style archive to link instead of a shared archive.
18709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18711 # Commands used to build and install a shared archive.
18712 archive_cmds=$lt_archive_cmds_RC
18713 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18714 postinstall_cmds=$lt_postinstall_cmds
18715 postuninstall_cmds=$lt_postuninstall_cmds
18717 # Commands used to build a loadable module (assumed same as above if empty)
18718 module_cmds=$lt_module_cmds_RC
18719 module_expsym_cmds=$lt_module_expsym_cmds_RC
18721 # Commands to strip libraries.
18722 old_striplib=$lt_old_striplib
18723 striplib=$lt_striplib
18725 # Dependencies to place before the objects being linked to create a
18727 predep_objects=$lt_predep_objects_RC
18729 # Dependencies to place after the objects being linked to create a
18731 postdep_objects=$lt_postdep_objects_RC
18733 # Dependencies to place before the objects being linked to create a
18735 predeps=$lt_predeps_RC
18737 # Dependencies to place after the objects being linked to create a
18739 postdeps=$lt_postdeps_RC
18741 # The library search path used internally by the compiler when linking
18742 # a shared library.
18743 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18745 # Method to check whether dependent libraries are shared objects.
18746 deplibs_check_method=$lt_deplibs_check_method
18748 # Command to use when deplibs_check_method == file_magic.
18749 file_magic_cmd=$lt_file_magic_cmd
18751 # Flag that allows shared libraries with undefined symbols to be built.
18752 allow_undefined_flag=$lt_allow_undefined_flag_RC
18754 # Flag that forces no undefined symbols.
18755 no_undefined_flag=$lt_no_undefined_flag_RC
18757 # Commands used to finish a libtool library installation in a directory.
18758 finish_cmds=$lt_finish_cmds
18760 # Same as above, but a single script fragment to be evaled but not shown.
18761 finish_eval=$lt_finish_eval
18763 # Take the output of nm and produce a listing of raw symbols and C names.
18764 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18766 # Transform the output of nm in a proper C declaration
18767 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18769 # Transform the output of nm in a C name address pair
18770 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18772 # This is the shared library runtime path variable.
18773 runpath_var=$runpath_var
18775 # This is the shared library path variable.
18776 shlibpath_var=$shlibpath_var
18778 # Is shlibpath searched before the hard-coded library search path?
18779 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18781 # How to hardcode a shared library path into an executable.
18782 hardcode_action=$hardcode_action_RC
18784 # Whether we should hardcode library paths into libraries.
18785 hardcode_into_libs=$hardcode_into_libs
18787 # Flag to hardcode \$libdir into a binary during linking.
18788 # This must work even if \$libdir does not exist.
18789 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18791 # If ld is used when linking, flag to hardcode \$libdir into
18792 # a binary during linking. This must work even if \$libdir does
18794 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18796 # Whether we need a single -rpath flag with a separated argument.
18797 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18799 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18800 # resulting binary.
18801 hardcode_direct=$hardcode_direct_RC
18803 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18804 # resulting binary.
18805 hardcode_minus_L=$hardcode_minus_L_RC
18807 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18808 # the resulting binary.
18809 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18811 # Set to yes if building a shared library automatically hardcodes DIR into the library
18812 # and all subsequent libraries and executables linked against it.
18813 hardcode_automatic=$hardcode_automatic_RC
18815 # Variables whose values should be saved in libtool wrapper scripts and
18816 # restored at relink time.
18817 variables_saved_for_relink="$variables_saved_for_relink"
18819 # Whether libtool must link a program against all its dependency libraries.
18820 link_all_deplibs=$link_all_deplibs_RC
18822 # Compile-time system search path for libraries
18823 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18825 # Run-time system search path for libraries
18826 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18828 # Fix the shell variable \$srcfile for the compiler.
18829 fix_srcfile_path="$fix_srcfile_path_RC"
18831 # Set to yes if exported symbols are required.
18832 always_export_symbols=$always_export_symbols_RC
18834 # The commands to list exported symbols.
18835 export_symbols_cmds=$lt_export_symbols_cmds_RC
18837 # The commands to extract the exported symbol list from a shared archive.
18838 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18840 # Symbols that should not be listed in the preloaded symbols.
18841 exclude_expsyms=$lt_exclude_expsyms_RC
18843 # Symbols that must always be exported.
18844 include_expsyms=$lt_include_expsyms_RC
18846 # ### END LIBTOOL TAG CONFIG: $tagname
18852 # If there is no Makefile yet, we rely on a make rule to execute
18853 # `config.status --recheck' to rerun these tests and create the
18854 # libtool script then.
18855 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18856 if test -f "$ltmain_in"; then
18857 test -f Makefile && make "$ltmain"
18863 ac_cpp='$CPP $CPPFLAGS'
18864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18873 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18874 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18875 { (exit 1); exit 1; }; }
18879 # Append the new tag name to the list of available tags.
18880 if test -n "$tagname" ; then
18881 available_tags="$available_tags $tagname"
18887 # Now substitute the updated list of available tags.
18888 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18889 mv "${ofile}T" "$ofile"
18893 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18894 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18895 { (exit 1); exit 1; }; }
18901 # This can be used to rebuild libtool when needed
18902 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18904 # Always use our own libtool.
18905 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18907 # Prevent multiple expansion
18929 # Extract the first word of "dot", so it can be a program name with args.
18930 set dummy dot; ac_word=$2
18931 echo "$as_me:$LINENO: checking for $ac_word" >&5
18932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18933 if test "${ac_cv_path_DOT+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18938 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18942 for as_dir in $PATH
18945 test -z "$as_dir" && as_dir=.
18946 for ac_exec_ext in '' $ac_executable_extensions; do
18947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18948 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18955 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18959 DOT=$ac_cv_path_DOT
18961 if test -n "$DOT"; then
18962 echo "$as_me:$LINENO: result: $DOT" >&5
18963 echo "${ECHO_T}$DOT" >&6
18965 echo "$as_me:$LINENO: result: no" >&5
18966 echo "${ECHO_T}no" >&6
18969 # Extract the first word of "etags", so it can be a program name with args.
18970 set dummy etags; ac_word=$2
18971 echo "$as_me:$LINENO: checking for $ac_word" >&5
18972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18973 if test "${ac_cv_path_ETAGS+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18982 for as_dir in $PATH
18985 test -z "$as_dir" && as_dir=.
18986 for ac_exec_ext in '' $ac_executable_extensions; do
18987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18988 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18995 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18999 ETAGS=$ac_cv_path_ETAGS
19001 if test -n "$ETAGS"; then
19002 echo "$as_me:$LINENO: result: $ETAGS" >&5
19003 echo "${ECHO_T}$ETAGS" >&6
19005 echo "$as_me:$LINENO: result: no" >&5
19006 echo "${ECHO_T}no" >&6
19009 etags_version=`$ETAGS --version 2>&1`
19010 case "$etags_version" in
19011 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19012 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19013 *) ETAGSFLAGS="" ;;
19015 ETAGSFLAGS=$ETAGSFLAGS
19017 # Extract the first word of "python", so it can be a program name with args.
19018 set dummy python; ac_word=$2
19019 echo "$as_me:$LINENO: checking for $ac_word" >&5
19020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19021 if test "${ac_cv_path_PYTHON+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19026 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19030 for as_dir in $PATH
19033 test -z "$as_dir" && as_dir=.
19034 for ac_exec_ext in '' $ac_executable_extensions; do
19035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19036 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19043 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19047 PYTHON=$ac_cv_path_PYTHON
19049 if test -n "$PYTHON"; then
19050 echo "$as_me:$LINENO: result: $PYTHON" >&5
19051 echo "${ECHO_T}$PYTHON" >&6
19053 echo "$as_me:$LINENO: result: no" >&5
19054 echo "${ECHO_T}no" >&6
19057 if test "$PYTHON" = "false"
19059 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19060 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19062 # Extract the first word of "qmtest", so it can be a program name with args.
19063 set dummy qmtest; ac_word=$2
19064 echo "$as_me:$LINENO: checking for $ac_word" >&5
19065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19066 if test "${ac_cv_path_QMTEST+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19075 for as_dir in $PATH
19078 test -z "$as_dir" && as_dir=.
19079 for ac_exec_ext in '' $ac_executable_extensions; do
19080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19081 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19088 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19092 QMTEST=$ac_cv_path_QMTEST
19094 if test -n "$QMTEST"; then
19095 echo "$as_me:$LINENO: result: $QMTEST" >&5
19096 echo "${ECHO_T}$QMTEST" >&6
19098 echo "$as_me:$LINENO: result: no" >&5
19099 echo "${ECHO_T}no" >&6
19102 if test "$QMTEST" = "false"
19104 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19105 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19108 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19109 pymajor=`echo $pyversion | cut -d. -f1`
19110 pyminor=`echo $pyversion | cut -d. -f2`
19112 if test "$pymajor" -ge "2"
19114 if test "$pymajor" -eq "2"
19116 if test "$pyminor" -lt "2"
19118 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19119 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19123 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19124 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19128 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19129 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19130 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19133 ac_check_lib_save_LIBS=$LIBS
19135 cat >conftest.$ac_ext <<_ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19142 /* Override any gcc2 internal prototype to avoid an error. */
19146 /* We use char because int might match the return type of a gcc2
19147 builtin and then its argument prototype would still apply. */
19157 rm -f conftest.$ac_objext conftest$ac_exeext
19158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19159 (eval $ac_link) 2>conftest.er1
19161 grep -v '^ *+' conftest.er1 >conftest.err
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -z "$ac_c_werror_flag"
19167 || test ! -s conftest.err'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest$ac_exeext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 ac_cv_lib_elf_elf_begin=yes
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 ac_cv_lib_elf_elf_begin=no
19186 rm -f conftest.err conftest.$ac_objext \
19187 conftest$ac_exeext conftest.$ac_ext
19188 LIBS=$ac_check_lib_save_LIBS
19190 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19191 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19192 if test $ac_cv_lib_elf_elf_begin = yes; then
19193 cat >>confdefs.h <<_ACEOF
19194 #define HAVE_LIBELF 1
19202 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19203 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19204 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19205 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 ac_check_lib_save_LIBS=$LIBS
19209 cat >conftest.$ac_ext <<_ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19216 /* Override any gcc2 internal prototype to avoid an error. */
19220 /* We use char because int might match the return type of a gcc2
19221 builtin and then its argument prototype would still apply. */
19222 char BZ2_bzCompressInit ();
19226 BZ2_bzCompressInit ();
19231 rm -f conftest.$ac_objext conftest$ac_exeext
19232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19233 (eval $ac_link) 2>conftest.er1
19235 grep -v '^ *+' conftest.er1 >conftest.err
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -z "$ac_c_werror_flag"
19241 || test ! -s conftest.err'
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest$ac_exeext'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19253 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19255 echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19258 ac_cv_lib_bz2_BZ2_bzCompressInit=no
19260 rm -f conftest.err conftest.$ac_objext \
19261 conftest$ac_exeext conftest.$ac_ext
19262 LIBS=$ac_check_lib_save_LIBS
19264 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19265 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19266 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19272 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19273 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19274 if test "${ac_cv_lib_z_gzopen+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 ac_check_lib_save_LIBS=$LIBS
19279 cat >conftest.$ac_ext <<_ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19286 /* Override any gcc2 internal prototype to avoid an error. */
19290 /* We use char because int might match the return type of a gcc2
19291 builtin and then its argument prototype would still apply. */
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303 (eval $ac_link) 2>conftest.er1
19305 grep -v '^ *+' conftest.er1 >conftest.err
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -z "$ac_c_werror_flag"
19311 || test ! -s conftest.err'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest$ac_exeext'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323 ac_cv_lib_z_gzopen=yes
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 ac_cv_lib_z_gzopen=no
19330 rm -f conftest.err conftest.$ac_objext \
19331 conftest$ac_exeext conftest.$ac_ext
19332 LIBS=$ac_check_lib_save_LIBS
19334 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19335 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19336 if test $ac_cv_lib_z_gzopen = yes; then
19342 if test $zlib_found -eq 1 ; then
19344 cat >>confdefs.h <<\_ACEOF
19345 #define HAVE_ZLIB 1
19349 if test $bzip2_found -eq 1 ; then
19351 cat >>confdefs.h <<\_ACEOF
19352 #define HAVE_BZIP2 1
19356 if test $zlib_found -ne 1 ; then
19357 { echo "$as_me:$LINENO: WARNING: **** Neither zlib nor bzip2 compression libraries were found -
19358 archives will not support compression! Install bzip2 or zlib
19359 and then reconfigure to ensure compatibility" >&5
19360 echo "$as_me: WARNING: **** Neither zlib nor bzip2 compression libraries were found -
19361 archives will not support compression! Install bzip2 or zlib
19362 and then reconfigure to ensure compatibility" >&2;}
19366 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19367 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19368 if test "${ac_cv_search_dlopen+set}" = set; then
19369 echo $ECHO_N "(cached) $ECHO_C" >&6
19371 ac_func_search_save_LIBS=$LIBS
19372 ac_cv_search_dlopen=no
19373 cat >conftest.$ac_ext <<_ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19380 /* Override any gcc2 internal prototype to avoid an error. */
19384 /* We use char because int might match the return type of a gcc2
19385 builtin and then its argument prototype would still apply. */
19395 rm -f conftest.$ac_objext conftest$ac_exeext
19396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19397 (eval $ac_link) 2>conftest.er1
19399 grep -v '^ *+' conftest.er1 >conftest.err
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try='test -z "$ac_c_werror_flag"
19405 || test ! -s conftest.err'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; } &&
19411 { ac_try='test -s conftest$ac_exeext'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; }; then
19417 ac_cv_search_dlopen="none required"
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19423 rm -f conftest.err conftest.$ac_objext \
19424 conftest$ac_exeext conftest.$ac_ext
19425 if test "$ac_cv_search_dlopen" = no; then
19426 for ac_lib in dl; do
19427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19428 cat >conftest.$ac_ext <<_ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19435 /* Override any gcc2 internal prototype to avoid an error. */
19439 /* We use char because int might match the return type of a gcc2
19440 builtin and then its argument prototype would still apply. */
19450 rm -f conftest.$ac_objext conftest$ac_exeext
19451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19452 (eval $ac_link) 2>conftest.er1
19454 grep -v '^ *+' conftest.er1 >conftest.err
19456 cat conftest.err >&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
19459 { ac_try='test -z "$ac_c_werror_flag"
19460 || test ! -s conftest.err'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; } &&
19466 { ac_try='test -s conftest$ac_exeext'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_cv_search_dlopen="-l$ac_lib"
19475 echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19479 rm -f conftest.err conftest.$ac_objext \
19480 conftest$ac_exeext conftest.$ac_ext
19483 LIBS=$ac_func_search_save_LIBS
19485 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19486 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19487 if test "$ac_cv_search_dlopen" != no; then
19488 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19490 cat >>confdefs.h <<\_ACEOF
19491 #define HAVE_DLOPEN 1
19495 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19496 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19500 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19501 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19502 if test "${ac_cv_search_mallinfo+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 ac_func_search_save_LIBS=$LIBS
19506 ac_cv_search_mallinfo=no
19507 cat >conftest.$ac_ext <<_ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19514 /* Override any gcc2 internal prototype to avoid an error. */
19518 /* We use char because int might match the return type of a gcc2
19519 builtin and then its argument prototype would still apply. */
19529 rm -f conftest.$ac_objext conftest$ac_exeext
19530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19531 (eval $ac_link) 2>conftest.er1
19533 grep -v '^ *+' conftest.er1 >conftest.err
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } &&
19538 { ac_try='test -z "$ac_c_werror_flag"
19539 || test ! -s conftest.err'
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; } &&
19545 { ac_try='test -s conftest$ac_exeext'
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
19551 ac_cv_search_mallinfo="none required"
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19557 rm -f conftest.err conftest.$ac_objext \
19558 conftest$ac_exeext conftest.$ac_ext
19559 if test "$ac_cv_search_mallinfo" = no; then
19560 for ac_lib in malloc; do
19561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19562 cat >conftest.$ac_ext <<_ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19569 /* Override any gcc2 internal prototype to avoid an error. */
19573 /* We use char because int might match the return type of a gcc2
19574 builtin and then its argument prototype would still apply. */
19584 rm -f conftest.$ac_objext conftest$ac_exeext
19585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19586 (eval $ac_link) 2>conftest.er1
19588 grep -v '^ *+' conftest.er1 >conftest.err
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } &&
19593 { ac_try='test -z "$ac_c_werror_flag"
19594 || test ! -s conftest.err'
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; } &&
19600 { ac_try='test -s conftest$ac_exeext'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; }; then
19606 ac_cv_search_mallinfo="-l$ac_lib"
19609 echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19613 rm -f conftest.err conftest.$ac_objext \
19614 conftest$ac_exeext conftest.$ac_ext
19617 LIBS=$ac_func_search_save_LIBS
19619 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19620 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19621 if test "$ac_cv_search_mallinfo" != no; then
19622 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19624 cat >>confdefs.h <<\_ACEOF
19625 #define HAVE_MALLINFO 1
19631 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19632 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19633 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19634 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 ac_func_search_save_LIBS=$LIBS
19637 ac_cv_search_pthread_mutex_lock=no
19638 cat >conftest.$ac_ext <<_ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19645 /* Override any gcc2 internal prototype to avoid an error. */
19649 /* We use char because int might match the return type of a gcc2
19650 builtin and then its argument prototype would still apply. */
19651 char pthread_mutex_lock ();
19655 pthread_mutex_lock ();
19660 rm -f conftest.$ac_objext conftest$ac_exeext
19661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19662 (eval $ac_link) 2>conftest.er1
19664 grep -v '^ *+' conftest.er1 >conftest.err
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } &&
19669 { ac_try='test -z "$ac_c_werror_flag"
19670 || test ! -s conftest.err'
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; } &&
19676 { ac_try='test -s conftest$ac_exeext'
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; }; then
19682 ac_cv_search_pthread_mutex_lock="none required"
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19688 rm -f conftest.err conftest.$ac_objext \
19689 conftest$ac_exeext conftest.$ac_ext
19690 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19691 for ac_lib in pthread; do
19692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19693 cat >conftest.$ac_ext <<_ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19700 /* Override any gcc2 internal prototype to avoid an error. */
19704 /* We use char because int might match the return type of a gcc2
19705 builtin and then its argument prototype would still apply. */
19706 char pthread_mutex_lock ();
19710 pthread_mutex_lock ();
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19717 (eval $ac_link) 2>conftest.er1
19719 grep -v '^ *+' conftest.er1 >conftest.err
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag"
19725 || test ! -s conftest.err'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest$ac_exeext'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19744 rm -f conftest.err conftest.$ac_objext \
19745 conftest$ac_exeext conftest.$ac_ext
19748 LIBS=$ac_func_search_save_LIBS
19750 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19751 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19752 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19753 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19755 cat >>confdefs.h <<\_ACEOF
19756 #define HAVE_PTHREAD_MUTEX_LOCK 1
19762 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19764 if test "${ac_cv_header_stdc+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19773 #include <stdlib.h>
19774 #include <stdarg.h>
19775 #include <string.h>
19786 rm -f conftest.$ac_objext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788 (eval $ac_compile) 2>conftest.er1
19790 grep -v '^ *+' conftest.er1 >conftest.err
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } &&
19795 { ac_try='test -z "$ac_c_werror_flag"
19796 || test ! -s conftest.err'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; } &&
19802 { ac_try='test -s conftest.$ac_objext'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
19808 ac_cv_header_stdc=yes
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19813 ac_cv_header_stdc=no
19815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19817 if test $ac_cv_header_stdc = yes; then
19818 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19819 cat >conftest.$ac_ext <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825 #include <string.h>
19828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19829 $EGREP "memchr" >/dev/null 2>&1; then
19832 ac_cv_header_stdc=no
19838 if test $ac_cv_header_stdc = yes; then
19839 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 #include <stdlib.h>
19849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19850 $EGREP "free" >/dev/null 2>&1; then
19853 ac_cv_header_stdc=no
19859 if test $ac_cv_header_stdc = yes; then
19860 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19861 if test "$cross_compiling" = yes; then
19864 cat >conftest.$ac_ext <<_ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19871 #if ((' ' & 0x0FF) == 0x020)
19872 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19873 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19875 # define ISLOWER(c) \
19876 (('a' <= (c) && (c) <= 'i') \
19877 || ('j' <= (c) && (c) <= 'r') \
19878 || ('s' <= (c) && (c) <= 'z'))
19879 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19882 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19887 for (i = 0; i < 256; i++)
19888 if (XOR (islower (i), ISLOWER (i))
19889 || toupper (i) != TOUPPER (i))
19894 rm -f conftest$ac_exeext
19895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19896 (eval $ac_link) 2>&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; }; then
19907 echo "$as_me: program exited with status $ac_status" >&5
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 ( exit $ac_status )
19912 ac_cv_header_stdc=no
19914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19918 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19919 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19920 if test $ac_cv_header_stdc = yes; then
19922 cat >>confdefs.h <<\_ACEOF
19923 #define STDC_HEADERS 1
19928 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19929 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19930 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19933 cat >conftest.$ac_ext <<_ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 #include <sys/types.h>
19940 #include <sys/wait.h>
19941 #ifndef WEXITSTATUS
19942 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19945 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19953 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19958 rm -f conftest.$ac_objext
19959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19960 (eval $ac_compile) 2>conftest.er1
19962 grep -v '^ *+' conftest.er1 >conftest.err
19964 cat conftest.err >&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } &&
19967 { ac_try='test -z "$ac_c_werror_flag"
19968 || test ! -s conftest.err'
19969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970 (eval $ac_try) 2>&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; } &&
19974 { ac_try='test -s conftest.$ac_objext'
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19980 ac_cv_header_sys_wait_h=yes
19982 echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19985 ac_cv_header_sys_wait_h=no
19987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19989 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19990 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19991 if test $ac_cv_header_sys_wait_h = yes; then
19993 cat >>confdefs.h <<\_ACEOF
19994 #define HAVE_SYS_WAIT_H 1
20011 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
20013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20015 echo "$as_me:$LINENO: checking for $ac_header" >&5
20016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20023 # Is the header compilable?
20024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 $ac_includes_default
20033 #include <$ac_header>
20035 rm -f conftest.$ac_objext
20036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20037 (eval $ac_compile) 2>conftest.er1
20039 grep -v '^ *+' conftest.er1 >conftest.err
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } &&
20044 { ac_try='test -z "$ac_c_werror_flag"
20045 || test ! -s conftest.err'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try='test -s conftest.$ac_objext'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_header_compiler=yes
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_header_compiler=no
20064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20066 echo "${ECHO_T}$ac_header_compiler" >&6
20068 # Is the header present?
20069 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20071 cat >conftest.$ac_ext <<_ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077 #include <$ac_header>
20079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20082 grep -v '^ *+' conftest.er1 >conftest.err
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } >/dev/null; then
20087 if test -s conftest.err; then
20088 ac_cpp_err=$ac_c_preproc_warn_flag
20089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20096 if test -z "$ac_cpp_err"; then
20097 ac_header_preproc=yes
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20102 ac_header_preproc=no
20104 rm -f conftest.err conftest.$ac_ext
20105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20106 echo "${ECHO_T}$ac_header_preproc" >&6
20108 # So? What about this header?
20109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20115 ac_header_preproc=yes
20118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20125 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20132 ## ----------------------------------- ##
20133 ## Report this to llvmbugs@cs.uiuc.edu ##
20134 ## ----------------------------------- ##
20137 sed "s/^/$as_me: WARNING: /" >&2
20140 echo "$as_me:$LINENO: checking for $ac_header" >&5
20141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 eval "$as_ac_Header=\$ac_header_preproc"
20147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20152 cat >>confdefs.h <<_ACEOF
20153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20161 if test "${ac_cv_header_sys_types_h+set}" = set; then
20162 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20163 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20164 if test "${ac_cv_header_sys_types_h+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20168 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20170 # Is the header compilable?
20171 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20172 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20173 cat >conftest.$ac_ext <<_ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 $ac_includes_default
20180 #include <sys/types.h>
20182 rm -f conftest.$ac_objext
20183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20184 (eval $ac_compile) 2>conftest.er1
20186 grep -v '^ *+' conftest.er1 >conftest.err
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } &&
20191 { ac_try='test -z "$ac_c_werror_flag"
20192 || test ! -s conftest.err'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; } &&
20198 { ac_try='test -s conftest.$ac_objext'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204 ac_header_compiler=yes
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20209 ac_header_compiler=no
20211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20213 echo "${ECHO_T}$ac_header_compiler" >&6
20215 # Is the header present?
20216 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20217 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 #include <sys/types.h>
20226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20229 grep -v '^ *+' conftest.er1 >conftest.err
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } >/dev/null; then
20234 if test -s conftest.err; then
20235 ac_cpp_err=$ac_c_preproc_warn_flag
20236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20243 if test -z "$ac_cpp_err"; then
20244 ac_header_preproc=yes
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 ac_header_preproc=no
20251 rm -f conftest.err conftest.$ac_ext
20252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20253 echo "${ECHO_T}$ac_header_preproc" >&6
20255 # So? What about this header?
20256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20258 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20259 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20260 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20261 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20262 ac_header_preproc=yes
20265 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20266 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20268 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20270 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20271 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20272 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20274 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20275 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20276 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20279 ## ----------------------------------- ##
20280 ## Report this to llvmbugs@cs.uiuc.edu ##
20281 ## ----------------------------------- ##
20284 sed "s/^/$as_me: WARNING: /" >&2
20287 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20288 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20289 if test "${ac_cv_header_sys_types_h+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 ac_cv_header_sys_types_h=$ac_header_preproc
20294 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20295 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20300 if test "${ac_cv_header_inttypes_h+set}" = set; then
20301 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20302 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20303 if test "${ac_cv_header_inttypes_h+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20307 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20309 # Is the header compilable?
20310 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20311 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 $ac_includes_default
20319 #include <inttypes.h>
20321 rm -f conftest.$ac_objext
20322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20323 (eval $ac_compile) 2>conftest.er1
20325 grep -v '^ *+' conftest.er1 >conftest.err
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } &&
20330 { ac_try='test -z "$ac_c_werror_flag"
20331 || test ! -s conftest.err'
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; } &&
20337 { ac_try='test -s conftest.$ac_objext'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
20343 ac_header_compiler=yes
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_header_compiler=no
20350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20352 echo "${ECHO_T}$ac_header_compiler" >&6
20354 # Is the header present?
20355 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20356 echo $ECHO_N "checking inttypes.h presence... $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 #include <inttypes.h>
20365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20368 grep -v '^ *+' conftest.er1 >conftest.err
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } >/dev/null; then
20373 if test -s conftest.err; then
20374 ac_cpp_err=$ac_c_preproc_warn_flag
20375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20382 if test -z "$ac_cpp_err"; then
20383 ac_header_preproc=yes
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 ac_header_preproc=no
20390 rm -f conftest.err conftest.$ac_ext
20391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20392 echo "${ECHO_T}$ac_header_preproc" >&6
20394 # So? What about this header?
20395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20397 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20398 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20400 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20401 ac_header_preproc=yes
20404 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20405 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20407 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20409 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20410 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20411 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20413 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20414 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20415 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20418 ## ----------------------------------- ##
20419 ## Report this to llvmbugs@cs.uiuc.edu ##
20420 ## ----------------------------------- ##
20423 sed "s/^/$as_me: WARNING: /" >&2
20426 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20427 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20428 if test "${ac_cv_header_inttypes_h+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 ac_cv_header_inttypes_h=$ac_header_preproc
20433 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20434 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20439 if test "${ac_cv_header_stdint_h+set}" = set; then
20440 echo "$as_me:$LINENO: checking for stdint.h" >&5
20441 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20442 if test "${ac_cv_header_stdint_h+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20446 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20448 # Is the header compilable?
20449 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20450 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 $ac_includes_default
20458 #include <stdint.h>
20460 rm -f conftest.$ac_objext
20461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20462 (eval $ac_compile) 2>conftest.er1
20464 grep -v '^ *+' conftest.er1 >conftest.err
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try='test -z "$ac_c_werror_flag"
20470 || test ! -s conftest.err'
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; } &&
20476 { ac_try='test -s conftest.$ac_objext'
20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478 (eval $ac_try) 2>&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; }; then
20482 ac_header_compiler=yes
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20487 ac_header_compiler=no
20489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20491 echo "${ECHO_T}$ac_header_compiler" >&6
20493 # Is the header present?
20494 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20495 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20496 cat >conftest.$ac_ext <<_ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20502 #include <stdint.h>
20504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20507 grep -v '^ *+' conftest.er1 >conftest.err
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } >/dev/null; then
20512 if test -s conftest.err; then
20513 ac_cpp_err=$ac_c_preproc_warn_flag
20514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20521 if test -z "$ac_cpp_err"; then
20522 ac_header_preproc=yes
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 ac_header_preproc=no
20529 rm -f conftest.err conftest.$ac_ext
20530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20531 echo "${ECHO_T}$ac_header_preproc" >&6
20533 # So? What about this header?
20534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20536 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20537 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20538 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20539 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20540 ac_header_preproc=yes
20543 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20544 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20545 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20546 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20548 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20549 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20550 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20551 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20552 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20553 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20554 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20557 ## ----------------------------------- ##
20558 ## Report this to llvmbugs@cs.uiuc.edu ##
20559 ## ----------------------------------- ##
20562 sed "s/^/$as_me: WARNING: /" >&2
20565 echo "$as_me:$LINENO: checking for stdint.h" >&5
20566 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20567 if test "${ac_cv_header_stdint_h+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 ac_cv_header_stdint_h=$ac_header_preproc
20572 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20573 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20579 echo "$as_me:$LINENO: checking for pid_t" >&5
20580 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20581 if test "${ac_cv_type_pid_t+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 cat >conftest.$ac_ext <<_ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 $ac_includes_default
20596 if (sizeof (pid_t))
20602 rm -f conftest.$ac_objext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20604 (eval $ac_compile) 2>conftest.er1
20606 grep -v '^ *+' conftest.er1 >conftest.err
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
20611 { ac_try='test -z "$ac_c_werror_flag"
20612 || test ! -s conftest.err'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest.$ac_objext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_type_pid_t=yes
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 ac_cv_type_pid_t=no
20631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20633 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20634 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20635 if test $ac_cv_type_pid_t = yes; then
20639 cat >>confdefs.h <<_ACEOF
20645 echo "$as_me:$LINENO: checking for size_t" >&5
20646 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20647 if test "${ac_cv_type_size_t+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 cat >conftest.$ac_ext <<_ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20656 $ac_includes_default
20662 if (sizeof (size_t))
20668 rm -f conftest.$ac_objext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20670 (eval $ac_compile) 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -z "$ac_c_werror_flag"
20678 || test ! -s conftest.err'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; } &&
20684 { ac_try='test -s conftest.$ac_objext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_cv_type_size_t=yes
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ac_cv_type_size_t=no
20697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20699 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20700 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20701 if test $ac_cv_type_size_t = yes; then
20705 cat >>confdefs.h <<_ACEOF
20706 #define size_t unsigned
20711 echo "$as_me:$LINENO: checking for int64_t" >&5
20712 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20713 if test "${ac_cv_type_int64_t+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20716 cat >conftest.$ac_ext <<_ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722 $ac_includes_default
20728 if (sizeof (int64_t))
20734 rm -f conftest.$ac_objext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20736 (eval $ac_compile) 2>conftest.er1
20738 grep -v '^ *+' conftest.er1 >conftest.err
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } &&
20743 { ac_try='test -z "$ac_c_werror_flag"
20744 || test ! -s conftest.err'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; } &&
20750 { ac_try='test -s conftest.$ac_objext'
20751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_cv_type_int64_t=yes
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 ac_cv_type_int64_t=no
20763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20765 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20766 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20767 if test $ac_cv_type_int64_t = yes; then
20769 cat >>confdefs.h <<_ACEOF
20770 #define HAVE_INT64_T 1
20775 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20776 echo "$as_me: error: Type int64_t required but not found" >&2;}
20777 { (exit 1); exit 1; }; }
20780 echo "$as_me:$LINENO: checking for uint64_t" >&5
20781 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20782 if test "${ac_cv_type_uint64_t+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 cat >conftest.$ac_ext <<_ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h. */
20791 $ac_includes_default
20795 if ((uint64_t *) 0)
20797 if (sizeof (uint64_t))
20803 rm -f conftest.$ac_objext
20804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20805 (eval $ac_compile) 2>conftest.er1
20807 grep -v '^ *+' conftest.er1 >conftest.err
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
20812 { ac_try='test -z "$ac_c_werror_flag"
20813 || test ! -s conftest.err'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; } &&
20819 { ac_try='test -s conftest.$ac_objext'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825 ac_cv_type_uint64_t=yes
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20830 ac_cv_type_uint64_t=no
20832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20834 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20835 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20836 if test $ac_cv_type_uint64_t = yes; then
20838 cat >>confdefs.h <<_ACEOF
20839 #define HAVE_UINT64_T 1
20844 echo "$as_me:$LINENO: checking for u_int64_t" >&5
20845 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20846 if test "${ac_cv_type_u_int64_t+set}" = set; then
20847 echo $ECHO_N "(cached) $ECHO_C" >&6
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 $ac_includes_default
20859 if ((u_int64_t *) 0)
20861 if (sizeof (u_int64_t))
20867 rm -f conftest.$ac_objext
20868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20869 (eval $ac_compile) 2>conftest.er1
20871 grep -v '^ *+' conftest.er1 >conftest.err
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } &&
20876 { ac_try='test -z "$ac_c_werror_flag"
20877 || test ! -s conftest.err'
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; } &&
20883 { ac_try='test -s conftest.$ac_objext'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 ac_cv_type_u_int64_t=yes
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 ac_cv_type_u_int64_t=no
20896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20898 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20899 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20900 if test $ac_cv_type_u_int64_t = yes; then
20902 cat >>confdefs.h <<_ACEOF
20903 #define HAVE_U_INT64_T 1
20908 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20909 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20910 { (exit 1); exit 1; }; }
20915 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20916 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20917 if test "${ac_cv_header_time+set}" = set; then
20918 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 cat >conftest.$ac_ext <<_ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926 #include <sys/types.h>
20927 #include <sys/time.h>
20933 if ((struct tm *) 0)
20939 rm -f conftest.$ac_objext
20940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20941 (eval $ac_compile) 2>conftest.er1
20943 grep -v '^ *+' conftest.er1 >conftest.err
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } &&
20948 { ac_try='test -z "$ac_c_werror_flag"
20949 || test ! -s conftest.err'
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); }; } &&
20955 { ac_try='test -s conftest.$ac_objext'
20956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20957 (eval $ac_try) 2>&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); }; }; then
20961 ac_cv_header_time=yes
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.$ac_ext >&5
20966 ac_cv_header_time=no
20968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20970 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20971 echo "${ECHO_T}$ac_cv_header_time" >&6
20972 if test $ac_cv_header_time = yes; then
20974 cat >>confdefs.h <<\_ACEOF
20975 #define TIME_WITH_SYS_TIME 1
20980 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20981 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20982 if test "${ac_cv_struct_tm+set}" = set; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20985 cat >conftest.$ac_ext <<_ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20991 #include <sys/types.h>
20997 struct tm *tp; tp->tm_sec;
21002 rm -f conftest.$ac_objext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21004 (eval $ac_compile) 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try='test -z "$ac_c_werror_flag"
21012 || test ! -s conftest.err'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try='test -s conftest.$ac_objext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_struct_tm=time.h
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ac_cv_struct_tm=sys/time.h
21031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21033 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21034 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21035 if test $ac_cv_struct_tm = sys/time.h; then
21037 cat >>confdefs.h <<\_ACEOF
21038 #define TM_IN_SYS_TIME 1
21045 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
21046 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
21048 ac_cpp='$CPP $CPPFLAGS'
21049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21053 if test "$cross_compiling" = yes; then
21056 cat >conftest.$ac_ext <<_ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21065 #include <stdlib.h>
21071 volatile double A, B;
21075 sprintf(Buffer, "%a", A);
21079 if (A != 0x1.999999999999ap-4)
21086 rm -f conftest$ac_exeext
21087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21088 (eval $ac_link) 2>&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
21099 echo "$as_me: program exited with status $ac_status" >&5
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21103 ( exit $ac_status )
21106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21109 ac_cpp='$CPP $CPPFLAGS'
21110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21114 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
21115 echo "${ECHO_T}$ac_c_printf_a" >&6
21116 if test "$ac_c_printf_a" = "yes"; then
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_PRINTF_A 1
21125 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21126 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21127 if test "${ac_cv_c_bigendian+set}" = set; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 # See if sys/param.h defines the BYTE_ORDER macro.
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <sys/types.h>
21138 #include <sys/param.h>
21143 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21144 bogus endian macros
21151 rm -f conftest.$ac_objext
21152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21153 (eval $ac_compile) 2>conftest.er1
21155 grep -v '^ *+' conftest.er1 >conftest.err
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } &&
21160 { ac_try='test -z "$ac_c_werror_flag"
21161 || test ! -s conftest.err'
21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163 (eval $ac_try) 2>&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; } &&
21167 { ac_try='test -s conftest.$ac_objext'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; }; then
21173 # It does; now see whether it defined to BIG_ENDIAN or not.
21174 cat >conftest.$ac_ext <<_ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180 #include <sys/types.h>
21181 #include <sys/param.h>
21186 #if BYTE_ORDER != BIG_ENDIAN
21194 rm -f conftest.$ac_objext
21195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21196 (eval $ac_compile) 2>conftest.er1
21198 grep -v '^ *+' conftest.er1 >conftest.err
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } &&
21203 { ac_try='test -z "$ac_c_werror_flag"
21204 || test ! -s conftest.err'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; } &&
21210 { ac_try='test -s conftest.$ac_objext'
21211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212 (eval $ac_try) 2>&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; }; then
21216 ac_cv_c_bigendian=yes
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21221 ac_cv_c_bigendian=no
21223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 # It does not; compile a test program.
21229 if test "$cross_compiling" = yes; then
21230 # try to guess the endianness by grepping values into an object file
21231 ac_cv_c_bigendian=unknown
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21239 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21240 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21241 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21242 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21243 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21247 _ascii (); _ebcdic ();
21252 rm -f conftest.$ac_objext
21253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21254 (eval $ac_compile) 2>conftest.er1
21256 grep -v '^ *+' conftest.er1 >conftest.err
21258 cat conftest.err >&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } &&
21261 { ac_try='test -z "$ac_c_werror_flag"
21262 || test ! -s conftest.err'
21263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264 (eval $ac_try) 2>&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); }; } &&
21268 { ac_try='test -s conftest.$ac_objext'
21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; }; then
21274 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21275 ac_cv_c_bigendian=yes
21277 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21278 if test "$ac_cv_c_bigendian" = unknown; then
21279 ac_cv_c_bigendian=no
21281 # finding both strings is unlikely to happen, but who knows?
21282 ac_cv_c_bigendian=unknown
21286 echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21292 cat >conftest.$ac_ext <<_ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21301 /* Are we little or big endian? From Harbison&Steele. */
21305 char c[sizeof (long)];
21308 exit (u.c[sizeof (long) - 1] == 1);
21311 rm -f conftest$ac_exeext
21312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21313 (eval $ac_link) 2>&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; }; then
21322 ac_cv_c_bigendian=no
21324 echo "$as_me: program exited with status $ac_status" >&5
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328 ( exit $ac_status )
21329 ac_cv_c_bigendian=yes
21331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21336 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21337 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21338 case $ac_cv_c_bigendian in
21346 { { echo "$as_me:$LINENO: error: unknown endianness
21347 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21348 echo "$as_me: error: unknown endianness
21349 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21350 { (exit 1); exit 1; }; } ;;
21354 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21355 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21356 if test "${ac_cv_cxx_namespaces+set}" = set; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 ac_cpp='$CXXCPP $CPPFLAGS'
21361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21365 cat >conftest.$ac_ext <<_ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21371 namespace Outer { namespace Inner { int i = 0; }}
21375 using namespace Outer::Inner; return i;
21380 rm -f conftest.$ac_objext
21381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21382 (eval $ac_compile) 2>conftest.er1
21384 grep -v '^ *+' conftest.er1 >conftest.err
21386 cat conftest.err >&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } &&
21389 { ac_try='test -z "$ac_cxx_werror_flag"
21390 || test ! -s conftest.err'
21391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392 (eval $ac_try) 2>&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; } &&
21396 { ac_try='test -s conftest.$ac_objext'
21397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398 (eval $ac_try) 2>&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; }; then
21402 ac_cv_cxx_namespaces=yes
21404 echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21407 ac_cv_cxx_namespaces=no
21409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21411 ac_cpp='$CPP $CPPFLAGS'
21412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21418 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21419 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21420 if test "$ac_cv_cxx_namespaces" = yes; then
21422 cat >>confdefs.h <<\_ACEOF
21423 #define HAVE_NAMESPACES
21428 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21429 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21430 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21431 echo $ECHO_N "(cached) $ECHO_C" >&6
21435 ac_cpp='$CXXCPP $CPPFLAGS'
21436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21440 cat >conftest.$ac_ext <<_ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 #include <ext/hash_map>
21447 #ifdef HAVE_NAMESPACES
21448 using namespace std;
21453 hash_map<int, int> t;
21458 rm -f conftest.$ac_objext
21459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21460 (eval $ac_compile) 2>conftest.er1
21462 grep -v '^ *+' conftest.er1 >conftest.err
21464 cat conftest.err >&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } &&
21467 { ac_try='test -z "$ac_cxx_werror_flag"
21468 || test ! -s conftest.err'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; } &&
21474 { ac_try='test -s conftest.$ac_objext'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; }; then
21480 ac_cv_cxx_have_std_ext_hash_map=yes
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 ac_cv_cxx_have_std_ext_hash_map=no
21487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21489 ac_cpp='$CPP $CPPFLAGS'
21490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21495 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21496 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21497 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21500 cat >>confdefs.h <<\_ACEOF
21501 #define HAVE_STD_EXT_HASH_MAP 1
21506 cat >>confdefs.h <<\_ACEOF
21507 #define HAVE_STD_EXT_HASH_MAP 0
21512 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21513 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21514 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21519 ac_cpp='$CXXCPP $CPPFLAGS'
21520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21524 cat >conftest.$ac_ext <<_ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21530 #include <ext/hash_map>
21531 #ifdef HAVE_NAMESPACES
21532 using namespace __gnu_cxx;
21537 hash_map<int,int> t;
21542 rm -f conftest.$ac_objext
21543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21544 (eval $ac_compile) 2>conftest.er1
21546 grep -v '^ *+' conftest.er1 >conftest.err
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } &&
21551 { ac_try='test -z "$ac_cxx_werror_flag"
21552 || test ! -s conftest.err'
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; } &&
21558 { ac_try='test -s conftest.$ac_objext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ac_cv_cxx_have_gnu_ext_hash_map=yes
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ac_cv_cxx_have_gnu_ext_hash_map=no
21571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21573 ac_cpp='$CPP $CPPFLAGS'
21574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21579 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21580 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21581 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21584 cat >>confdefs.h <<\_ACEOF
21585 #define HAVE_GNU_EXT_HASH_MAP 1
21590 cat >>confdefs.h <<\_ACEOF
21591 #define HAVE_GNU_EXT_HASH_MAP 0
21596 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21597 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21598 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21599 echo $ECHO_N "(cached) $ECHO_C" >&6
21603 ac_cpp='$CXXCPP $CPPFLAGS'
21604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21608 cat >conftest.$ac_ext <<_ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h. */
21614 #include <hash_map>
21618 hash_map<int,int> t;
21623 rm -f conftest.$ac_objext
21624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21625 (eval $ac_compile) 2>conftest.er1
21627 grep -v '^ *+' conftest.er1 >conftest.err
21629 cat conftest.err >&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } &&
21632 { ac_try='test -z "$ac_cxx_werror_flag"
21633 || test ! -s conftest.err'
21634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); }; } &&
21639 { ac_try='test -s conftest.$ac_objext'
21640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641 (eval $ac_try) 2>&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; }; then
21645 ac_cv_cxx_have_global_hash_map=yes
21647 echo "$as_me: failed program was:" >&5
21648 sed 's/^/| /' conftest.$ac_ext >&5
21650 ac_cv_cxx_have_global_hash_map=no
21652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21654 ac_cpp='$CPP $CPPFLAGS'
21655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21660 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21661 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21662 if test "$ac_cv_cxx_have_global_hash_map" = yes
21665 cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_GLOBAL_HASH_MAP 1
21671 cat >>confdefs.h <<\_ACEOF
21672 #define HAVE_GLOBAL_HASH_MAP 0
21677 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21678 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21679 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21684 ac_cpp='$CXXCPP $CPPFLAGS'
21685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21689 cat >conftest.$ac_ext <<_ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21695 #include <ext/hash_set>
21696 #ifdef HAVE_NAMESPACES
21697 using namespace std;
21707 rm -f conftest.$ac_objext
21708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21709 (eval $ac_compile) 2>conftest.er1
21711 grep -v '^ *+' conftest.er1 >conftest.err
21713 cat conftest.err >&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } &&
21716 { ac_try='test -z "$ac_cxx_werror_flag"
21717 || test ! -s conftest.err'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; } &&
21723 { ac_try='test -s conftest.$ac_objext'
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21729 ac_cv_cxx_have_std_ext_hash_set=yes
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21734 ac_cv_cxx_have_std_ext_hash_set=no
21736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21738 ac_cpp='$CPP $CPPFLAGS'
21739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21744 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21745 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21746 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21749 cat >>confdefs.h <<\_ACEOF
21750 #define HAVE_STD_EXT_HASH_SET 1
21755 cat >>confdefs.h <<\_ACEOF
21756 #define HAVE_STD_EXT_HASH_SET 0
21761 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21762 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21763 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21764 echo $ECHO_N "(cached) $ECHO_C" >&6
21768 ac_cpp='$CXXCPP $CPPFLAGS'
21769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21773 cat >conftest.$ac_ext <<_ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21779 #include <ext/hash_set>
21780 #ifdef HAVE_NAMESPACES
21781 using namespace __gnu_cxx;
21791 rm -f conftest.$ac_objext
21792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21793 (eval $ac_compile) 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } &&
21800 { ac_try='test -z "$ac_cxx_werror_flag"
21801 || test ! -s conftest.err'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; } &&
21807 { ac_try='test -s conftest.$ac_objext'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813 ac_cv_cxx_have_gnu_ext_hash_set=yes
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21818 ac_cv_cxx_have_gnu_ext_hash_set=no
21820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21822 ac_cpp='$CPP $CPPFLAGS'
21823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21828 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21829 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21830 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21833 cat >>confdefs.h <<\_ACEOF
21834 #define HAVE_GNU_EXT_HASH_SET 1
21839 cat >>confdefs.h <<\_ACEOF
21840 #define HAVE_GNU_EXT_HASH_SET 0
21845 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21846 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21847 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21852 ac_cpp='$CXXCPP $CPPFLAGS'
21853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21857 cat >conftest.$ac_ext <<_ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 #include <hash_set>
21867 hash_set<int> t; return 0;
21872 rm -f conftest.$ac_objext
21873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21874 (eval $ac_compile) 2>conftest.er1
21876 grep -v '^ *+' conftest.er1 >conftest.err
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } &&
21881 { ac_try='test -z "$ac_cxx_werror_flag"
21882 || test ! -s conftest.err'
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; } &&
21888 { ac_try='test -s conftest.$ac_objext'
21889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890 (eval $ac_try) 2>&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; }; then
21894 ac_cv_cxx_have_global_hash_set=yes
21896 echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21899 ac_cv_cxx_have_global_hash_set=no
21901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21903 ac_cpp='$CPP $CPPFLAGS'
21904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21909 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21910 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21911 if test "$ac_cv_cxx_have_global_hash_set" = yes
21914 cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_GLOBAL_HASH_SET 1
21920 cat >>confdefs.h <<\_ACEOF
21921 #define HAVE_GLOBAL_HASH_SET 0
21926 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21927 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21928 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21929 echo $ECHO_N "(cached) $ECHO_C" >&6
21933 ac_cpp='$CXXCPP $CPPFLAGS'
21934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21938 cat >conftest.$ac_ext <<_ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21944 #include <iterator>
21945 #ifdef HAVE_NAMESPACES
21946 using namespace std;
21951 iterator<int,int,int> t; return 0;
21956 rm -f conftest.$ac_objext
21957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21958 (eval $ac_compile) 2>conftest.er1
21960 grep -v '^ *+' conftest.er1 >conftest.err
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } &&
21965 { ac_try='test -z "$ac_cxx_werror_flag"
21966 || test ! -s conftest.err'
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); }; } &&
21972 { ac_try='test -s conftest.$ac_objext'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; }; then
21978 ac_cv_cxx_have_std_iterator=yes
21980 echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21983 ac_cv_cxx_have_std_iterator=no
21985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21987 ac_cpp='$CPP $CPPFLAGS'
21988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21994 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21995 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21996 if test "$ac_cv_cxx_have_std_iterator" = yes
21999 cat >>confdefs.h <<\_ACEOF
22000 #define HAVE_STD_ITERATOR 1
22005 cat >>confdefs.h <<\_ACEOF
22006 #define HAVE_STD_ITERATOR 0
22011 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22012 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22013 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22014 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 ac_cpp='$CXXCPP $CPPFLAGS'
22019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 #include <iterator>
22030 #ifdef HAVE_NAMESPACES
22031 using namespace std;
22036 bidirectional_iterator<int,int> t; return 0;
22041 rm -f conftest.$ac_objext
22042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22043 (eval $ac_compile) 2>conftest.er1
22045 grep -v '^ *+' conftest.er1 >conftest.err
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } &&
22050 { ac_try='test -z "$ac_cxx_werror_flag"
22051 || test ! -s conftest.err'
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; } &&
22057 { ac_try='test -s conftest.$ac_objext'
22058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059 (eval $ac_try) 2>&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; }; then
22063 ac_cv_cxx_have_bi_iterator=yes
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22068 ac_cv_cxx_have_bi_iterator=no
22070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22072 ac_cpp='$CPP $CPPFLAGS'
22073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22079 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22080 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
22081 if test "$ac_cv_cxx_have_bi_iterator" = yes
22084 cat >>confdefs.h <<\_ACEOF
22085 #define HAVE_BI_ITERATOR 1
22090 cat >>confdefs.h <<\_ACEOF
22091 #define HAVE_BI_ITERATOR 0
22096 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22097 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22098 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22099 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 ac_cpp='$CXXCPP $CPPFLAGS'
22104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22108 cat >conftest.$ac_ext <<_ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h. */
22114 #include <iterator>
22115 #ifdef HAVE_NAMESPACES
22116 using namespace std;
22121 forward_iterator<int,int> t; return 0;
22126 rm -f conftest.$ac_objext
22127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22128 (eval $ac_compile) 2>conftest.er1
22130 grep -v '^ *+' conftest.er1 >conftest.err
22132 cat conftest.err >&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } &&
22135 { ac_try='test -z "$ac_cxx_werror_flag"
22136 || test ! -s conftest.err'
22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138 (eval $ac_try) 2>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; } &&
22142 { ac_try='test -s conftest.$ac_objext'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; }; then
22148 ac_cv_cxx_have_fwd_iterator=yes
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 ac_cv_cxx_have_fwd_iterator=no
22155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22157 ac_cpp='$CPP $CPPFLAGS'
22158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22164 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22165 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
22166 if test "$ac_cv_cxx_have_fwd_iterator" = yes
22169 cat >>confdefs.h <<\_ACEOF
22170 #define HAVE_FWD_ITERATOR 1
22175 cat >>confdefs.h <<\_ACEOF
22176 #define HAVE_FWD_ITERATOR 0
22183 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22184 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22185 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22189 ac_cpp='$CXXCPP $CPPFLAGS'
22190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22194 cat >conftest.$ac_ext <<_ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22201 int foo(float f) {return isnan(f);}
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_func_isnan_in_math_h=yes
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22230 ac_cv_func_isnan_in_math_h=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_func_isnan_in_math_h" >&5
22241 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22242 if test "$ac_cv_func_isnan_in_math_h" = "yes"
22245 cat >>confdefs.h <<\_ACEOF
22246 #define HAVE_ISNAN_IN_MATH_H 1
22250 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22251 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22252 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22256 ac_cpp='$CXXCPP $CPPFLAGS'
22257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22261 cat >conftest.$ac_ext <<_ACEOF
22264 cat confdefs.h >>conftest.$ac_ext
22265 cat >>conftest.$ac_ext <<_ACEOF
22266 /* end confdefs.h. */
22268 int foo(float f) {return isnan(f);}
22270 rm -f conftest.$ac_objext
22271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22272 (eval $ac_compile) 2>conftest.er1
22274 grep -v '^ *+' conftest.er1 >conftest.err
22276 cat conftest.err >&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } &&
22279 { ac_try='test -z "$ac_cxx_werror_flag"
22280 || test ! -s conftest.err'
22281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22282 (eval $ac_try) 2>&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); }; } &&
22286 { ac_try='test -s conftest.$ac_objext'
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; }; then
22292 ac_cv_func_isnan_in_cmath=yes
22294 echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22297 ac_cv_func_isnan_in_cmath=no
22299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22301 ac_cpp='$CPP $CPPFLAGS'
22302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22307 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22308 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22309 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22312 cat >>confdefs.h <<\_ACEOF
22313 #define HAVE_ISNAN_IN_CMATH 1
22317 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22318 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22319 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22323 ac_cpp='$CXXCPP $CPPFLAGS'
22324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22328 cat >conftest.$ac_ext <<_ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h. */
22335 using std::isnan; int foo(float f) {return isnan(f);}
22337 rm -f conftest.$ac_objext
22338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22339 (eval $ac_compile) 2>conftest.er1
22341 grep -v '^ *+' conftest.er1 >conftest.err
22343 cat conftest.err >&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); } &&
22346 { ac_try='test -z "$ac_cxx_werror_flag"
22347 || test ! -s conftest.err'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; } &&
22353 { ac_try='test -s conftest.$ac_objext'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 ac_cv_func_std_isnan_in_cmath=yes
22361 echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22364 ac_cv_func_std_isnan_in_cmath=no
22366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22368 ac_cpp='$CPP $CPPFLAGS'
22369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22374 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22375 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22376 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22379 cat >>confdefs.h <<\_ACEOF
22380 #define HAVE_STD_ISNAN_IN_CMATH 1
22386 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22387 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22388 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 ac_cpp='$CXXCPP $CPPFLAGS'
22393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22397 cat >conftest.$ac_ext <<_ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h. */
22404 int foo(float f) {return isinf(f);}
22406 rm -f conftest.$ac_objext
22407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22408 (eval $ac_compile) 2>conftest.er1
22410 grep -v '^ *+' conftest.er1 >conftest.err
22412 cat conftest.err >&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } &&
22415 { ac_try='test -z "$ac_cxx_werror_flag"
22416 || test ! -s conftest.err'
22417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22418 (eval $ac_try) 2>&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); }; } &&
22422 { ac_try='test -s conftest.$ac_objext'
22423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424 (eval $ac_try) 2>&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; }; then
22428 ac_cv_func_isinf_in_math_h=yes
22430 echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22433 ac_cv_func_isinf_in_math_h=no
22435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22437 ac_cpp='$CPP $CPPFLAGS'
22438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22443 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22444 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22445 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22448 cat >>confdefs.h <<\_ACEOF
22449 #define HAVE_ISINF_IN_MATH_H 1
22453 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22454 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22455 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22456 echo $ECHO_N "(cached) $ECHO_C" >&6
22459 ac_cpp='$CXXCPP $CPPFLAGS'
22460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22464 cat >conftest.$ac_ext <<_ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22471 int foo(float f) {return isinf(f);}
22473 rm -f conftest.$ac_objext
22474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22475 (eval $ac_compile) 2>conftest.er1
22477 grep -v '^ *+' conftest.er1 >conftest.err
22479 cat conftest.err >&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } &&
22482 { ac_try='test -z "$ac_cxx_werror_flag"
22483 || test ! -s conftest.err'
22484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22485 (eval $ac_try) 2>&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; } &&
22489 { ac_try='test -s conftest.$ac_objext'
22490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22491 (eval $ac_try) 2>&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); }; }; then
22495 ac_cv_func_isinf_in_cmath=yes
22497 echo "$as_me: failed program was:" >&5
22498 sed 's/^/| /' conftest.$ac_ext >&5
22500 ac_cv_func_isinf_in_cmath=no
22502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22504 ac_cpp='$CPP $CPPFLAGS'
22505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22510 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22511 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22512 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22515 cat >>confdefs.h <<\_ACEOF
22516 #define HAVE_ISINF_IN_CMATH 1
22520 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22521 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22522 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22526 ac_cpp='$CXXCPP $CPPFLAGS'
22527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22531 cat >conftest.$ac_ext <<_ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h. */
22538 using std::isinf; int foo(float f) {return isinf(f);}
22540 rm -f conftest.$ac_objext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22542 (eval $ac_compile) 2>conftest.er1
22544 grep -v '^ *+' conftest.er1 >conftest.err
22546 cat conftest.err >&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } &&
22549 { ac_try='test -z "$ac_cxx_werror_flag"
22550 || test ! -s conftest.err'
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); }; } &&
22556 { ac_try='test -s conftest.$ac_objext'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; }; then
22562 ac_cv_func_std_isinf_in_cmath=yes
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 ac_cv_func_std_isinf_in_cmath=no
22569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22571 ac_cpp='$CPP $CPPFLAGS'
22572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22577 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22578 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22579 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22582 cat >>confdefs.h <<\_ACEOF
22583 #define HAVE_STD_ISINF_IN_CMATH 1
22587 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22588 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22589 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22593 ac_cpp='$CXXCPP $CPPFLAGS'
22594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22598 cat >conftest.$ac_ext <<_ACEOF
22601 cat confdefs.h >>conftest.$ac_ext
22602 cat >>conftest.$ac_ext <<_ACEOF
22603 /* end confdefs.h. */
22604 #include <ieeefp.h>
22605 int foo(float f) {return finite(f);}
22607 rm -f conftest.$ac_objext
22608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22609 (eval $ac_compile) 2>conftest.er1
22611 grep -v '^ *+' conftest.er1 >conftest.err
22613 cat conftest.err >&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } &&
22616 { ac_try='test -z "$ac_cxx_werror_flag"
22617 || test ! -s conftest.err'
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); }; } &&
22623 { ac_try='test -s conftest.$ac_objext'
22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625 (eval $ac_try) 2>&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; }; then
22629 ac_cv_func_finite_in_ieeefp_h=yes
22631 echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22634 ac_cv_func_finite_in_ieeefp_h=no
22636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22638 ac_cpp='$CPP $CPPFLAGS'
22639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22644 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22645 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22646 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22649 cat >>confdefs.h <<\_ACEOF
22650 #define HAVE_FINITE_IN_IEEEFP_H 1
22656 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22657 # for constant arguments. Useless!
22658 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22659 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22660 if test "${ac_cv_working_alloca_h+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 cat >conftest.$ac_ext <<_ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 #include <alloca.h>
22673 char *p = (char *) alloca (2 * sizeof (int));
22678 rm -f conftest.$ac_objext conftest$ac_exeext
22679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22680 (eval $ac_link) 2>conftest.er1
22682 grep -v '^ *+' conftest.er1 >conftest.err
22684 cat conftest.err >&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } &&
22687 { ac_try='test -z "$ac_c_werror_flag"
22688 || test ! -s conftest.err'
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; } &&
22694 { ac_try='test -s conftest$ac_exeext'
22695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22696 (eval $ac_try) 2>&5
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); }; }; then
22700 ac_cv_working_alloca_h=yes
22702 echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 ac_cv_working_alloca_h=no
22707 rm -f conftest.err conftest.$ac_objext \
22708 conftest$ac_exeext conftest.$ac_ext
22710 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22711 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22712 if test $ac_cv_working_alloca_h = yes; then
22714 cat >>confdefs.h <<\_ACEOF
22715 #define HAVE_ALLOCA_H 1
22720 echo "$as_me:$LINENO: checking for alloca" >&5
22721 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22722 if test "${ac_cv_func_alloca_works+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22725 cat >conftest.$ac_ext <<_ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22732 # define alloca __builtin_alloca
22735 # include <malloc.h>
22736 # define alloca _alloca
22739 # include <alloca.h>
22744 # ifndef alloca /* predefined by HP cc +Olibcalls */
22755 char *p = (char *) alloca (1);
22760 rm -f conftest.$ac_objext conftest$ac_exeext
22761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22762 (eval $ac_link) 2>conftest.er1
22764 grep -v '^ *+' conftest.er1 >conftest.err
22766 cat conftest.err >&5
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); } &&
22769 { ac_try='test -z "$ac_c_werror_flag"
22770 || test ! -s conftest.err'
22771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772 (eval $ac_try) 2>&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }; } &&
22776 { ac_try='test -s conftest$ac_exeext'
22777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778 (eval $ac_try) 2>&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); }; }; then
22782 ac_cv_func_alloca_works=yes
22784 echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22787 ac_cv_func_alloca_works=no
22789 rm -f conftest.err conftest.$ac_objext \
22790 conftest$ac_exeext conftest.$ac_ext
22792 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22793 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22795 if test $ac_cv_func_alloca_works = yes; then
22797 cat >>confdefs.h <<\_ACEOF
22798 #define HAVE_ALLOCA 1
22802 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22803 # that cause trouble. Some versions do not even contain alloca or
22804 # contain a buggy version. If you still want to use their alloca,
22805 # use ar to extract alloca.o from them instead of compiling alloca.c.
22807 ALLOCA=alloca.$ac_objext
22809 cat >>confdefs.h <<\_ACEOF
22814 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22815 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22816 if test "${ac_cv_os_cray+set}" = set; then
22817 echo $ECHO_N "(cached) $ECHO_C" >&6
22819 cat >conftest.$ac_ext <<_ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22825 #if defined(CRAY) && ! defined(CRAY2)
22832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22833 $EGREP "webecray" >/dev/null 2>&1; then
22841 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22842 echo "${ECHO_T}$ac_cv_os_cray" >&6
22843 if test $ac_cv_os_cray = yes; then
22844 for ac_func in _getb67 GETB67 getb67; do
22845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22846 echo "$as_me:$LINENO: checking for $ac_func" >&5
22847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22848 if eval "test \"\${$as_ac_var+set}\" = set"; then
22849 echo $ECHO_N "(cached) $ECHO_C" >&6
22851 cat >conftest.$ac_ext <<_ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22859 #define $ac_func innocuous_$ac_func
22861 /* System header to define __stub macros and hopefully few prototypes,
22862 which can conflict with char $ac_func (); below.
22863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22864 <limits.h> exists even on freestanding compilers. */
22867 # include <limits.h>
22869 # include <assert.h>
22874 /* Override any gcc2 internal prototype to avoid an error. */
22879 /* We use char because int might match the return type of a gcc2
22880 builtin and then its argument prototype would still apply. */
22882 /* The GNU C library defines this for functions which it implements
22883 to always fail with ENOSYS. Some functions are actually named
22884 something starting with __ and the normal name is an alias. */
22885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22888 char (*f) () = $ac_func;
22897 return f != $ac_func;
22902 rm -f conftest.$ac_objext conftest$ac_exeext
22903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22904 (eval $ac_link) 2>conftest.er1
22906 grep -v '^ *+' conftest.er1 >conftest.err
22908 cat conftest.err >&5
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); } &&
22911 { ac_try='test -z "$ac_c_werror_flag"
22912 || test ! -s conftest.err'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; } &&
22918 { ac_try='test -s conftest$ac_exeext'
22919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920 (eval $ac_try) 2>&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); }; }; then
22924 eval "$as_ac_var=yes"
22926 echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22929 eval "$as_ac_var=no"
22931 rm -f conftest.err conftest.$ac_objext \
22932 conftest$ac_exeext conftest.$ac_ext
22934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22936 if test `eval echo '${'$as_ac_var'}'` = yes; then
22938 cat >>confdefs.h <<_ACEOF
22939 #define CRAY_STACKSEG_END $ac_func
22948 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22949 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22950 if test "${ac_cv_c_stack_direction+set}" = set; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22953 if test "$cross_compiling" = yes; then
22954 ac_cv_c_stack_direction=0
22956 cat >conftest.$ac_ext <<_ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22963 find_stack_direction ()
22965 static char *addr = 0;
22970 return find_stack_direction ();
22973 return (&dummy > addr) ? 1 : -1;
22979 exit (find_stack_direction () < 0);
22982 rm -f conftest$ac_exeext
22983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22984 (eval $ac_link) 2>&5
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; }; then
22993 ac_cv_c_stack_direction=1
22995 echo "$as_me: program exited with status $ac_status" >&5
22996 echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22999 ( exit $ac_status )
23000 ac_cv_c_stack_direction=-1
23002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23005 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23006 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23008 cat >>confdefs.h <<_ACEOF
23009 #define STACK_DIRECTION $ac_cv_c_stack_direction
23017 for ac_header in stdlib.h unistd.h
23019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23021 echo "$as_me:$LINENO: checking for $ac_header" >&5
23022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23024 echo $ECHO_N "(cached) $ECHO_C" >&6
23026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23029 # Is the header compilable?
23030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23032 cat >conftest.$ac_ext <<_ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h. */
23038 $ac_includes_default
23039 #include <$ac_header>
23041 rm -f conftest.$ac_objext
23042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23043 (eval $ac_compile) 2>conftest.er1
23045 grep -v '^ *+' conftest.er1 >conftest.err
23047 cat conftest.err >&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); } &&
23050 { ac_try='test -z "$ac_c_werror_flag"
23051 || test ! -s conftest.err'
23052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053 (eval $ac_try) 2>&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); }; } &&
23057 { ac_try='test -s conftest.$ac_objext'
23058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059 (eval $ac_try) 2>&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; }; then
23063 ac_header_compiler=yes
23065 echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23068 ac_header_compiler=no
23070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23072 echo "${ECHO_T}$ac_header_compiler" >&6
23074 # Is the header present?
23075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23077 cat >conftest.$ac_ext <<_ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23083 #include <$ac_header>
23085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23088 grep -v '^ *+' conftest.er1 >conftest.err
23090 cat conftest.err >&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } >/dev/null; then
23093 if test -s conftest.err; then
23094 ac_cpp_err=$ac_c_preproc_warn_flag
23095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23102 if test -z "$ac_cpp_err"; then
23103 ac_header_preproc=yes
23105 echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23108 ac_header_preproc=no
23110 rm -f conftest.err conftest.$ac_ext
23111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23112 echo "${ECHO_T}$ac_header_preproc" >&6
23114 # So? What about this header?
23115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23121 ac_header_preproc=yes
23124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23138 ## ----------------------------------- ##
23139 ## Report this to llvmbugs@cs.uiuc.edu ##
23140 ## ----------------------------------- ##
23143 sed "s/^/$as_me: WARNING: /" >&2
23146 echo "$as_me:$LINENO: checking for $ac_header" >&5
23147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23149 echo $ECHO_N "(cached) $ECHO_C" >&6
23151 eval "$as_ac_Header=\$ac_header_preproc"
23153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23158 cat >>confdefs.h <<_ACEOF
23159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23167 for ac_func in getpagesize
23169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23170 echo "$as_me:$LINENO: checking for $ac_func" >&5
23171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23172 if eval "test \"\${$as_ac_var+set}\" = set"; then
23173 echo $ECHO_N "(cached) $ECHO_C" >&6
23175 cat >conftest.$ac_ext <<_ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h. */
23181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23183 #define $ac_func innocuous_$ac_func
23185 /* System header to define __stub macros and hopefully few prototypes,
23186 which can conflict with char $ac_func (); below.
23187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23188 <limits.h> exists even on freestanding compilers. */
23191 # include <limits.h>
23193 # include <assert.h>
23198 /* Override any gcc2 internal prototype to avoid an error. */
23203 /* We use char because int might match the return type of a gcc2
23204 builtin and then its argument prototype would still apply. */
23206 /* The GNU C library defines this for functions which it implements
23207 to always fail with ENOSYS. Some functions are actually named
23208 something starting with __ and the normal name is an alias. */
23209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23212 char (*f) () = $ac_func;
23221 return f != $ac_func;
23226 rm -f conftest.$ac_objext conftest$ac_exeext
23227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23228 (eval $ac_link) 2>conftest.er1
23230 grep -v '^ *+' conftest.er1 >conftest.err
23232 cat conftest.err >&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } &&
23235 { ac_try='test -z "$ac_c_werror_flag"
23236 || test ! -s conftest.err'
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest$ac_exeext'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 eval "$as_ac_var=yes"
23250 echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23253 eval "$as_ac_var=no"
23255 rm -f conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
23258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23260 if test `eval echo '${'$as_ac_var'}'` = yes; then
23261 cat >>confdefs.h <<_ACEOF
23262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23268 echo "$as_me:$LINENO: checking for working mmap" >&5
23269 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23270 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23271 echo $ECHO_N "(cached) $ECHO_C" >&6
23273 if test "$cross_compiling" = yes; then
23274 ac_cv_func_mmap_fixed_mapped=no
23276 cat >conftest.$ac_ext <<_ACEOF
23279 cat confdefs.h >>conftest.$ac_ext
23280 cat >>conftest.$ac_ext <<_ACEOF
23281 /* end confdefs.h. */
23282 $ac_includes_default
23283 /* malloc might have been renamed as rpl_malloc. */
23286 /* Thanks to Mike Haertel and Jim Avera for this test.
23287 Here is a matrix of mmap possibilities:
23288 mmap private not fixed
23289 mmap private fixed at somewhere currently unmapped
23290 mmap private fixed at somewhere already mapped
23291 mmap shared not fixed
23292 mmap shared fixed at somewhere currently unmapped
23293 mmap shared fixed at somewhere already mapped
23294 For private mappings, we should verify that changes cannot be read()
23295 back from the file, nor mmap's back from the file at a different
23296 address. (There have been systems where private was not correctly
23297 implemented like the infamous i386 svr4.0, and systems where the
23298 VM page cache was not coherent with the file system buffer cache
23299 like early versions of FreeBSD and possibly contemporary NetBSD.)
23300 For shared mappings, we should conversely verify that changes get
23301 propagated back to all the places they're supposed to be.
23303 Grep wants private fixed already mapped.
23304 The main things grep needs to know about mmap are:
23305 * does it exist and is it safe to write into the mmap'd area
23306 * how to use it (BSD variants) */
23309 #include <sys/mman.h>
23311 #if !STDC_HEADERS && !HAVE_STDLIB_H
23315 /* This mess was copied from the GNU getpagesize.h. */
23316 #if !HAVE_GETPAGESIZE
23317 /* Assume that all systems that can run configure have sys/param.h. */
23318 # if !HAVE_SYS_PARAM_H
23319 # define HAVE_SYS_PARAM_H 1
23322 # ifdef _SC_PAGESIZE
23323 # define getpagesize() sysconf(_SC_PAGESIZE)
23324 # else /* no _SC_PAGESIZE */
23325 # if HAVE_SYS_PARAM_H
23326 # include <sys/param.h>
23327 # ifdef EXEC_PAGESIZE
23328 # define getpagesize() EXEC_PAGESIZE
23329 # else /* no EXEC_PAGESIZE */
23331 # define getpagesize() NBPG * CLSIZE
23334 # endif /* no CLSIZE */
23335 # else /* no NBPG */
23337 # define getpagesize() NBPC
23338 # else /* no NBPC */
23340 # define getpagesize() PAGESIZE
23341 # endif /* PAGESIZE */
23342 # endif /* no NBPC */
23343 # endif /* no NBPG */
23344 # endif /* no EXEC_PAGESIZE */
23345 # else /* no HAVE_SYS_PARAM_H */
23346 # define getpagesize() 8192 /* punt totally */
23347 # endif /* no HAVE_SYS_PARAM_H */
23348 # endif /* no _SC_PAGESIZE */
23350 #endif /* no HAVE_GETPAGESIZE */
23355 char *data, *data2, *data3;
23359 pagesize = getpagesize ();
23361 /* First, make a file with some known garbage in it. */
23362 data = (char *) malloc (pagesize);
23365 for (i = 0; i < pagesize; ++i)
23366 *(data + i) = rand ();
23368 fd = creat ("conftest.mmap", 0600);
23371 if (write (fd, data, pagesize) != pagesize)
23375 /* Next, try to mmap the file at a fixed address which already has
23376 something else allocated at it. If we can, also make sure that
23377 we see the same garbage. */
23378 fd = open ("conftest.mmap", O_RDWR);
23381 data2 = (char *) malloc (2 * pagesize);
23384 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23385 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23386 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23388 for (i = 0; i < pagesize; ++i)
23389 if (*(data + i) != *(data2 + i))
23392 /* Finally, make sure that changes to the mapped area do not
23393 percolate back to the file as seen by read(). (This is a bug on
23394 some variants of i386 svr4.0.) */
23395 for (i = 0; i < pagesize; ++i)
23396 *(data2 + i) = *(data2 + i) + 1;
23397 data3 = (char *) malloc (pagesize);
23400 if (read (fd, data3, pagesize) != pagesize)
23402 for (i = 0; i < pagesize; ++i)
23403 if (*(data + i) != *(data3 + i))
23409 rm -f conftest$ac_exeext
23410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23411 (eval $ac_link) 2>&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416 (eval $ac_try) 2>&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; }; then
23420 ac_cv_func_mmap_fixed_mapped=yes
23422 echo "$as_me: program exited with status $ac_status" >&5
23423 echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23426 ( exit $ac_status )
23427 ac_cv_func_mmap_fixed_mapped=no
23429 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23432 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23433 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23434 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23436 cat >>confdefs.h <<\_ACEOF
23437 #define HAVE_MMAP 1
23441 rm -f conftest.mmap
23443 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23445 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23446 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23448 echo "$as_me:$LINENO: checking for mmap of files" >&5
23449 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23450 if test "${ac_cv_func_mmap_file+set}" = set; then
23451 echo $ECHO_N "(cached) $ECHO_C" >&6
23454 ac_cpp='$CPP $CPPFLAGS'
23455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23459 if test "$cross_compiling" = yes; then
23460 ac_cv_func_mmap_file=no
23462 cat >conftest.$ac_ext <<_ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23470 #include <sys/types.h>
23471 #include <sys/mman.h>
23479 fd = creat ("foo",0777);
23480 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23482 return (fd != (int) MAP_FAILED);
23487 rm -f conftest$ac_exeext
23488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23489 (eval $ac_link) 2>&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; }; then
23498 ac_cv_func_mmap_file=yes
23500 echo "$as_me: program exited with status $ac_status" >&5
23501 echo "$as_me: failed program was:" >&5
23502 sed 's/^/| /' conftest.$ac_ext >&5
23504 ( exit $ac_status )
23505 ac_cv_func_mmap_file=no
23507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23510 ac_cpp='$CPP $CPPFLAGS'
23511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23517 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23518 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23519 if test "$ac_cv_func_mmap_file" = yes; then
23521 cat >>confdefs.h <<\_ACEOF
23522 #define HAVE_MMAP_FILE
23529 if test "$ac_cv_func_mmap_file" = "no"
23531 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23532 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23534 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23535 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23536 if test "${ac_cv_header_mmap_anon+set}" = set; then
23537 echo $ECHO_N "(cached) $ECHO_C" >&6
23540 ac_cpp='$CPP $CPPFLAGS'
23541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23545 cat >conftest.$ac_ext <<_ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h. */
23551 #include <sys/mman.h>
23552 #include <unistd.h>
23557 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23562 rm -f conftest.$ac_objext
23563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23564 (eval $ac_compile) 2>conftest.er1
23566 grep -v '^ *+' conftest.er1 >conftest.err
23568 cat conftest.err >&5
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } &&
23571 { ac_try='test -z "$ac_c_werror_flag"
23572 || test ! -s conftest.err'
23573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574 (eval $ac_try) 2>&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); }; } &&
23578 { ac_try='test -s conftest.$ac_objext'
23579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580 (eval $ac_try) 2>&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); }; }; then
23584 ac_cv_header_mmap_anon=yes
23586 echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23589 ac_cv_header_mmap_anon=no
23591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23593 ac_cpp='$CPP $CPPFLAGS'
23594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23600 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23601 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23602 if test "$ac_cv_header_mmap_anon" = yes; then
23604 cat >>confdefs.h <<\_ACEOF
23605 #define HAVE_MMAP_ANONYMOUS
23610 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23611 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23612 if test "${ac_cv_type_signal+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23615 cat >conftest.$ac_ext <<_ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 #include <sys/types.h>
23622 #include <signal.h>
23627 extern "C" void (*signal (int, void (*)(int)))(int);
23629 void (*signal ()) ();
23640 rm -f conftest.$ac_objext
23641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23642 (eval $ac_compile) 2>conftest.er1
23644 grep -v '^ *+' conftest.er1 >conftest.err
23646 cat conftest.err >&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } &&
23649 { ac_try='test -z "$ac_c_werror_flag"
23650 || test ! -s conftest.err'
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; } &&
23656 { ac_try='test -s conftest.$ac_objext'
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 ac_cv_type_signal=void
23664 echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23667 ac_cv_type_signal=int
23669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23671 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23672 echo "${ECHO_T}$ac_cv_type_signal" >&6
23674 cat >>confdefs.h <<_ACEOF
23675 #define RETSIGTYPE $ac_cv_type_signal
23688 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23691 echo "$as_me:$LINENO: checking for $ac_func" >&5
23692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23693 if eval "test \"\${$as_ac_var+set}\" = set"; then
23694 echo $ECHO_N "(cached) $ECHO_C" >&6
23696 cat >conftest.$ac_ext <<_ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h. */
23702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23704 #define $ac_func innocuous_$ac_func
23706 /* System header to define __stub macros and hopefully few prototypes,
23707 which can conflict with char $ac_func (); below.
23708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23709 <limits.h> exists even on freestanding compilers. */
23712 # include <limits.h>
23714 # include <assert.h>
23719 /* Override any gcc2 internal prototype to avoid an error. */
23724 /* We use char because int might match the return type of a gcc2
23725 builtin and then its argument prototype would still apply. */
23727 /* The GNU C library defines this for functions which it implements
23728 to always fail with ENOSYS. Some functions are actually named
23729 something starting with __ and the normal name is an alias. */
23730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23733 char (*f) () = $ac_func;
23742 return f != $ac_func;
23747 rm -f conftest.$ac_objext conftest$ac_exeext
23748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23749 (eval $ac_link) 2>conftest.er1
23751 grep -v '^ *+' conftest.er1 >conftest.err
23753 cat conftest.err >&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } &&
23756 { ac_try='test -z "$ac_c_werror_flag"
23757 || test ! -s conftest.err'
23758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23759 (eval $ac_try) 2>&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); }; } &&
23763 { ac_try='test -s conftest$ac_exeext'
23764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23765 (eval $ac_try) 2>&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; }; then
23769 eval "$as_ac_var=yes"
23771 echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23774 eval "$as_ac_var=no"
23776 rm -f conftest.err conftest.$ac_objext \
23777 conftest$ac_exeext conftest.$ac_ext
23779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23781 if test `eval echo '${'$as_ac_var'}'` = yes; then
23782 cat >>confdefs.h <<_ACEOF
23783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23789 echo "$as_me:$LINENO: checking for mprotect" >&5
23790 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23791 if test "${ac_cv_func_mprotect+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23794 cat >conftest.$ac_ext <<_ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h. */
23800 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23802 #define mprotect innocuous_mprotect
23804 /* System header to define __stub macros and hopefully few prototypes,
23805 which can conflict with char mprotect (); below.
23806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23807 <limits.h> exists even on freestanding compilers. */
23810 # include <limits.h>
23812 # include <assert.h>
23817 /* Override any gcc2 internal prototype to avoid an error. */
23822 /* We use char because int might match the return type of a gcc2
23823 builtin and then its argument prototype would still apply. */
23825 /* The GNU C library defines this for functions which it implements
23826 to always fail with ENOSYS. Some functions are actually named
23827 something starting with __ and the normal name is an alias. */
23828 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23831 char (*f) () = mprotect;
23840 return f != mprotect;
23845 rm -f conftest.$ac_objext conftest$ac_exeext
23846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23847 (eval $ac_link) 2>conftest.er1
23849 grep -v '^ *+' conftest.er1 >conftest.err
23851 cat conftest.err >&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } &&
23854 { ac_try='test -z "$ac_c_werror_flag"
23855 || test ! -s conftest.err'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; } &&
23861 { ac_try='test -s conftest$ac_exeext'
23862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863 (eval $ac_try) 2>&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); }; }; then
23867 ac_cv_func_mprotect=yes
23869 echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23872 ac_cv_func_mprotect=no
23874 rm -f conftest.err conftest.$ac_objext \
23875 conftest$ac_exeext conftest.$ac_ext
23877 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23878 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23879 if test $ac_cv_func_mprotect = yes; then
23882 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23883 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23884 { (exit 1); exit 1; }; }
23889 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23890 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23892 ac_cpp='$CPP $CPPFLAGS'
23893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23897 oldcflags="$CFLAGS"
23898 CFLAGS="$CFLAGS -Wl,-R."
23899 cat >conftest.$ac_ext <<_ACEOF
23902 cat confdefs.h >>conftest.$ac_ext
23903 cat >>conftest.$ac_ext <<_ACEOF
23904 /* end confdefs.h. */
23909 int main() { return 0; }
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23916 (eval $ac_link) 2>conftest.er1
23918 grep -v '^ *+' conftest.er1 >conftest.err
23920 cat conftest.err >&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); } &&
23923 { ac_try='test -z "$ac_c_werror_flag"
23924 || test ! -s conftest.err'
23925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23926 (eval $ac_try) 2>&5
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); }; } &&
23930 { ac_try='test -s conftest$ac_exeext'
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; }; then
23936 ac_cv_link_use_r=yes
23938 echo "$as_me: failed program was:" >&5
23939 sed 's/^/| /' conftest.$ac_ext >&5
23941 ac_cv_link_use_r=no
23943 rm -f conftest.err conftest.$ac_objext \
23944 conftest$ac_exeext conftest.$ac_ext
23945 CFLAGS="$oldcflags"
23947 ac_cpp='$CPP $CPPFLAGS'
23948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23952 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23953 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23954 if test "$ac_cv_link_use_r" = yes
23957 cat >>confdefs.h <<\_ACEOF
23958 #define HAVE_LINK_R 1
23964 # Check whether --enable-optimized or --disable-optimized was given.
23965 if test "${enable_optimized+set}" = set; then
23966 enableval="$enable_optimized"
23971 if test ${enableval} = "no"
23976 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23980 # Check whether --enable-jit or --disable-jit was given.
23981 if test "${enable_jit+set}" = set; then
23982 enableval="$enable_jit"
23987 if test ${enableval} = "no"
23994 JIT=TARGET_HAS_JIT=1
23998 JIT=TARGET_HAS_JIT=1
24009 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24010 if test "${with_llvmgccdir+set}" = set; then
24011 withval="$with_llvmgccdir"
24012 LLVMGCCDIR=$withval
24015 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24016 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24018 if test -d "$LLVMGCCDIR"
24020 if test -x "$LLVMGCCDIR/bin/gcc"
24022 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24026 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24027 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24028 if test "$LLVM_GCC_CHECK" = "no"
24032 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24033 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24035 if test -x "$LLVM_GCC_CHECK"
24037 cp /dev/null conftest.c
24038 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24044 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
24045 LLVMCC1=$llvmcc1path
24047 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
24048 LLVMCC1PLUS=$llvmcc1pluspath
24051 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24052 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24053 if test "$LLVM_GCC_SANE" = "no"
24058 echo "$as_me:$LINENO: checking for shared library suffix" >&5
24059 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
24060 eval "SHLIBEXT=$shrext_cmds"
24061 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24062 echo "${ECHO_T}$SHLIBEXT" >&6
24066 cat >>confdefs.h <<_ACEOF
24067 #define SHLIBEXT "$SHLIBEXT"
24071 # Translate the various configuration directories and other basic
24072 # information into substitutions that will end up in config.h.in so
24073 # that these configured values can be hard-wired into a program.
24074 eval LLVM_PREFIX="${prefix}";
24075 eval LLVM_BINDIR="${prefix}/bin";
24076 eval LLVM_LIBDIR="${prefix}/lib";
24077 eval LLVM_DATADIR="${prefix}/data";
24078 eval LLVM_DOCSDIR="${prefix}/docs";
24079 eval LLVM_ETCDIR="${prefix}/etc";
24080 eval LLVM_INCLUDEDIR="${prefix}/include";
24081 eval LLVM_INFODIR="${prefix}/info";
24082 eval LLVM_MANDIR="${prefix}/man";
24083 LLVM_CONFIGTIME=`date`
24095 cat >>confdefs.h <<_ACEOF
24096 #define LLVM_PREFIX "$LLVM_PREFIX"
24100 cat >>confdefs.h <<_ACEOF
24101 #define LLVM_BINDIR "$LLVM_BINDIR"
24105 cat >>confdefs.h <<_ACEOF
24106 #define LLVM_LIBDIR "$LLVM_LIBDIR"
24110 cat >>confdefs.h <<_ACEOF
24111 #define LLVM_DATADIR "$LLVM_DATADIR"
24115 cat >>confdefs.h <<_ACEOF
24116 #define LLVM_DATADIR "$LLVM_DOCSDIR"
24120 cat >>confdefs.h <<_ACEOF
24121 #define LLVM_ETCDIR "$LLVM_ETCDIR"
24125 cat >>confdefs.h <<_ACEOF
24126 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24130 cat >>confdefs.h <<_ACEOF
24131 #define LLVM_INFODIR "$LLVM_INFODIR"
24135 cat >>confdefs.h <<_ACEOF
24136 #define LLVM_MANDIR "$LLVM_MANDIR"
24140 cat >>confdefs.h <<_ACEOF
24141 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24145 cat >confcache <<\_ACEOF
24146 # This file is a shell script that caches the results of configure
24147 # tests run on this system so they can be shared between configure
24148 # scripts and configure runs, see configure's option --config-cache.
24149 # It is not useful on other systems. If it contains results you don't
24150 # want to keep, you may remove or edit it.
24152 # config.status only pays attention to the cache file if you give it
24153 # the --recheck option to rerun configure.
24155 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24156 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24157 # following values.
24161 # The following way of writing the cache mishandles newlines in values,
24162 # but we know of no workaround that is simple, portable, and efficient.
24163 # So, don't put newlines in cache variables' values.
24164 # Ultrix sh set writes to stderr and can't be redirected directly,
24165 # and sets the high bit in the cache file unless we assign to the vars.
24168 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24170 # `set' does not quote correctly, so add quotes (double-quote
24171 # substitution turns \\\\ into \\, and sed turns \\ into \).
24174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24177 # `set' quotes correctly as required by POSIX, so do not add quotes.
24179 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24186 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24188 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24190 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24191 if test -w $cache_file; then
24192 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24193 cat confcache >$cache_file
24195 echo "not updating unwritable cache $cache_file"
24200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24201 # Let make expand exec_prefix.
24202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24206 # trailing colons and then remove the whole line if VPATH becomes empty
24207 # (actually we leave an empty line to preserve line numbers).
24208 if test "x$srcdir" = x.; then
24209 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24210 s/:*\$(srcdir):*/:/;
24211 s/:*\${srcdir}:*/:/;
24213 s/^\([^=]*=[ ]*\):*/\1/;
24219 DEFS=-DHAVE_CONFIG_H
24223 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24224 # 1. Remove the extension, and $U if already installed.
24225 ac_i=`echo "$ac_i" |
24226 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24228 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24229 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24231 LIBOBJS=$ac_libobjs
24233 LTLIBOBJS=$ac_ltlibobjs
24237 : ${CONFIG_STATUS=./config.status}
24238 ac_clean_files_save=$ac_clean_files
24239 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24240 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24241 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24242 cat >$CONFIG_STATUS <<_ACEOF
24244 # Generated by $as_me.
24245 # Run this file to recreate the current configuration.
24246 # Compiler output produced by configure, useful for debugging
24247 # configure, is in config.log if it exists.
24250 ac_cs_recheck=false
24252 SHELL=\${CONFIG_SHELL-$SHELL}
24255 cat >>$CONFIG_STATUS <<\_ACEOF
24256 ## --------------------- ##
24257 ## M4sh Initialization. ##
24258 ## --------------------- ##
24260 # Be Bourne compatible
24261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24265 # is contrary to our usage. Disable this feature.
24266 alias -g '${1+"$@"}'='"$@"'
24267 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24270 DUALCASE=1; export DUALCASE # for MKS sh
24272 # Support unset when possible.
24273 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24280 # Work around bugs in pre-3.0 UWIN ksh.
24281 $as_unset ENV MAIL MAILPATH
24288 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24289 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24290 LC_TELEPHONE LC_TIME
24292 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24293 eval $as_var=C; export $as_var
24299 # Required to use basename.
24300 if expr a : '\(a\)' >/dev/null 2>&1; then
24306 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24307 as_basename=basename
24313 # Name of the executable.
24314 as_me=`$as_basename "$0" ||
24315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24316 X"$0" : 'X\(//\)$' \| \
24317 X"$0" : 'X\(/\)$' \| \
24318 . : '\(.\)' 2>/dev/null ||
24320 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24321 /^X\/\(\/\/\)$/{ s//\1/; q; }
24322 /^X\/\(\/\).*/{ s//\1/; q; }
24326 # PATH needs CR, and LINENO needs CR and PATH.
24327 # Avoid depending upon Character Ranges.
24328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24331 as_cr_digits='0123456789'
24332 as_cr_alnum=$as_cr_Letters$as_cr_digits
24334 # The user is always right.
24335 if test "${PATH_SEPARATOR+set}" != set; then
24336 echo "#! /bin/sh" >conf$$.sh
24337 echo "exit 0" >>conf$$.sh
24339 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24348 as_lineno_1=$LINENO
24349 as_lineno_2=$LINENO
24350 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24351 test "x$as_lineno_1" != "x$as_lineno_2" &&
24352 test "x$as_lineno_3" = "x$as_lineno_2" || {
24353 # Find who we are. Look in the path if we contain no path at all
24356 *[\\/]* ) as_myself=$0 ;;
24357 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24358 for as_dir in $PATH
24361 test -z "$as_dir" && as_dir=.
24362 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24367 # We did not find ourselves, most probably we were run as `sh COMMAND'
24368 # in which case we are not to be found in the path.
24369 if test "x$as_myself" = x; then
24372 if test ! -f "$as_myself"; then
24373 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24374 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24375 { (exit 1); exit 1; }; }
24377 case $CONFIG_SHELL in
24379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24380 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24383 test -z "$as_dir" && as_dir=.
24384 for as_base in sh bash ksh sh5; do
24387 if ("$as_dir/$as_base" -c '
24388 as_lineno_1=$LINENO
24389 as_lineno_2=$LINENO
24390 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24391 test "x$as_lineno_1" != "x$as_lineno_2" &&
24392 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24393 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24394 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24395 CONFIG_SHELL=$as_dir/$as_base
24396 export CONFIG_SHELL
24397 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24405 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24406 # uniformly replaced by the line number. The first 'sed' inserts a
24407 # line-number line before each line; the second 'sed' does the real
24408 # work. The second script uses 'N' to pair each line-number line
24409 # with the numbered line, and appends trailing '-' during
24410 # substitution so that $LINENO is not a special case at line end.
24411 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24412 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24413 sed '=' <$as_myself |
24418 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24421 s,^['$as_cr_digits']*\n,,
24422 ' >$as_me.lineno &&
24423 chmod +x $as_me.lineno ||
24424 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24425 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24426 { (exit 1); exit 1; }; }
24428 # Don't try to exec as it changes $[0], causing all sort of problems
24429 # (the dirname of $[0] is not the place where we might find the
24430 # original and so on. Autoconf is especially sensible to this).
24432 # Exit status is that of the last command.
24437 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24438 *c*,-n*) ECHO_N= ECHO_C='
24440 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24441 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24444 if expr a : '\(a\)' >/dev/null 2>&1; then
24450 rm -f conf$$ conf$$.exe conf$$.file
24452 if ln -s conf$$.file conf$$ 2>/dev/null; then
24453 # We could just check for DJGPP; but this test a) works b) is more generic
24454 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24455 if test -f conf$$.exe; then
24456 # Don't use ln at all; we don't have any links
24461 elif ln conf$$.file conf$$ 2>/dev/null; then
24466 rm -f conf$$ conf$$.exe conf$$.file
24468 if mkdir -p . 2>/dev/null; then
24471 test -d ./-p && rmdir ./-p
24475 as_executable_p="test -f"
24477 # Sed expression to map a string onto a valid CPP name.
24478 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24480 # Sed expression to map a string onto a valid variable name.
24481 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24485 # We need space, tab and new line, in precisely that order.
24495 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24496 # report actual input values of CONFIG_FILES etc. instead of their
24497 # values after options handling. Logging --version etc. is OK.
24501 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24502 ## Running $as_me. ##
24507 This file was extended by LLVM $as_me 1.4, which was
24508 generated by GNU Autoconf 2.59. Invocation command line was
24510 CONFIG_FILES = $CONFIG_FILES
24511 CONFIG_HEADERS = $CONFIG_HEADERS
24512 CONFIG_LINKS = $CONFIG_LINKS
24513 CONFIG_COMMANDS = $CONFIG_COMMANDS
24517 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24521 # Files that config.status was made for.
24522 if test -n "$ac_config_files"; then
24523 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24526 if test -n "$ac_config_headers"; then
24527 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24530 if test -n "$ac_config_links"; then
24531 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24534 if test -n "$ac_config_commands"; then
24535 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24538 cat >>$CONFIG_STATUS <<\_ACEOF
24541 \`$as_me' instantiates files from templates according to the
24542 current configuration.
24544 Usage: $0 [OPTIONS] [FILE]...
24546 -h, --help print this help, then exit
24547 -V, --version print version number, then exit
24548 -q, --quiet do not print progress messages
24549 -d, --debug don't remove temporary files
24550 --recheck update $as_me by reconfiguring in the same conditions
24551 --file=FILE[:TEMPLATE]
24552 instantiate the configuration file FILE
24553 --header=FILE[:TEMPLATE]
24554 instantiate the configuration header FILE
24556 Configuration files:
24559 Configuration headers:
24562 Configuration links:
24565 Configuration commands:
24568 Report bugs to <bug-autoconf@gnu.org>."
24571 cat >>$CONFIG_STATUS <<_ACEOF
24573 LLVM config.status 1.4
24574 configured by $0, generated by GNU Autoconf 2.59,
24575 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24577 Copyright (C) 2003 Free Software Foundation, Inc.
24578 This config.status script is free software; the Free Software Foundation
24579 gives unlimited permission to copy, distribute and modify it."
24584 cat >>$CONFIG_STATUS <<\_ACEOF
24585 # If no file are specified by the user, then we need to provide default
24586 # value. By we need to know if files were specified by the user.
24592 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24593 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24601 *) # This is not an option, so the user has probably given explicit
24604 ac_need_defaults=false;;
24608 # Handling of the options.
24610 cat >>$CONFIG_STATUS <<\_ACEOF
24611 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24613 --version | --vers* | -V )
24614 echo "$ac_cs_version"; exit 0 ;;
24616 # Conflict between --help and --header
24617 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24618 Try \`$0 --help' for more information." >&5
24619 echo "$as_me: error: ambiguous option: $1
24620 Try \`$0 --help' for more information." >&2;}
24621 { (exit 1); exit 1; }; };;
24622 --help | --hel | -h )
24623 echo "$ac_cs_usage"; exit 0 ;;
24624 --debug | --d* | -d )
24626 --file | --fil | --fi | --f )
24628 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24629 ac_need_defaults=false;;
24630 --header | --heade | --head | --hea )
24632 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24633 ac_need_defaults=false;;
24634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24635 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24638 # This is an error.
24639 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24640 Try \`$0 --help' for more information." >&5
24641 echo "$as_me: error: unrecognized option: $1
24642 Try \`$0 --help' for more information." >&2;}
24643 { (exit 1); exit 1; }; } ;;
24645 *) ac_config_targets="$ac_config_targets $1" ;;
24651 ac_configure_extra_args=
24653 if $ac_cs_silent; then
24655 ac_configure_extra_args="$ac_configure_extra_args --silent"
24659 cat >>$CONFIG_STATUS <<_ACEOF
24660 if \$ac_cs_recheck; then
24661 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24662 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24667 cat >>$CONFIG_STATUS <<_ACEOF
24669 # INIT-COMMANDS section.
24672 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24673 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24674 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24675 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24676 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24677 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24678 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24679 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24680 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24681 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24682 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24683 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24689 cat >>$CONFIG_STATUS <<\_ACEOF
24690 for ac_config_target in $ac_config_targets
24692 case "$ac_config_target" in
24693 # Handling of arguments.
24694 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24695 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24696 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24697 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24698 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24699 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24700 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24701 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24702 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24703 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24704 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24705 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24706 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24707 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24708 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
24709 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
24710 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
24711 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
24712 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
24713 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
24714 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24715 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24716 { (exit 1); exit 1; }; };;
24720 # If the user did not use the arguments to specify the items to instantiate,
24721 # then the envvar interface is used. Set only those that are not.
24722 # We use the long form for the default assignment because of an extremely
24723 # bizarre bug on SunOS 4.1.3.
24724 if $ac_need_defaults; then
24725 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24726 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24727 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24731 # Have a temporary directory for convenience. Make it in the build tree
24732 # simply because there is no reason to put it here, and in addition,
24733 # creating and moving files from /tmp can sometimes cause problems.
24734 # Create a temporary directory, and hook for its removal unless debugging.
24737 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24738 trap '{ (exit 1); exit 1; }' 1 2 13 15
24741 # Create a (secure) tmp directory for tmp files.
24744 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24745 test -n "$tmp" && test -d "$tmp"
24748 tmp=./confstat$$-$RANDOM
24749 (umask 077 && mkdir $tmp)
24752 echo "$me: cannot create a temporary directory in ." >&2
24753 { (exit 1); exit 1; }
24758 cat >>$CONFIG_STATUS <<_ACEOF
24761 # CONFIG_FILES section.
24764 # No need to generate the scripts if there are no CONFIG_FILES.
24765 # This happens for instance when ./config.status config.h
24766 if test -n "\$CONFIG_FILES"; then
24767 # Protect against being on the right side of a sed subst in config.status.
24768 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24769 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24770 s,@SHELL@,$SHELL,;t t
24771 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24772 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24773 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24774 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24775 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24776 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24777 s,@exec_prefix@,$exec_prefix,;t t
24778 s,@prefix@,$prefix,;t t
24779 s,@program_transform_name@,$program_transform_name,;t t
24780 s,@bindir@,$bindir,;t t
24781 s,@sbindir@,$sbindir,;t t
24782 s,@libexecdir@,$libexecdir,;t t
24783 s,@datadir@,$datadir,;t t
24784 s,@sysconfdir@,$sysconfdir,;t t
24785 s,@sharedstatedir@,$sharedstatedir,;t t
24786 s,@localstatedir@,$localstatedir,;t t
24787 s,@libdir@,$libdir,;t t
24788 s,@includedir@,$includedir,;t t
24789 s,@oldincludedir@,$oldincludedir,;t t
24790 s,@infodir@,$infodir,;t t
24791 s,@mandir@,$mandir,;t t
24792 s,@build_alias@,$build_alias,;t t
24793 s,@host_alias@,$host_alias,;t t
24794 s,@target_alias@,$target_alias,;t t
24795 s,@DEFS@,$DEFS,;t t
24796 s,@ECHO_C@,$ECHO_C,;t t
24797 s,@ECHO_N@,$ECHO_N,;t t
24798 s,@ECHO_T@,$ECHO_T,;t t
24799 s,@LIBS@,$LIBS,;t t
24800 s,@subdirs@,$subdirs,;t t
24801 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24802 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24803 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24804 s,@build@,$build,;t t
24805 s,@build_cpu@,$build_cpu,;t t
24806 s,@build_vendor@,$build_vendor,;t t
24807 s,@build_os@,$build_os,;t t
24808 s,@host@,$host,;t t
24809 s,@host_cpu@,$host_cpu,;t t
24810 s,@host_vendor@,$host_vendor,;t t
24811 s,@host_os@,$host_os,;t t
24812 s,@target@,$target,;t t
24813 s,@target_cpu@,$target_cpu,;t t
24814 s,@target_vendor@,$target_vendor,;t t
24815 s,@target_os@,$target_os,;t t
24817 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24818 s,@ARCH@,$ARCH,;t t
24820 s,@CXXFLAGS@,$CXXFLAGS,;t t
24821 s,@LDFLAGS@,$LDFLAGS,;t t
24822 s,@CPPFLAGS@,$CPPFLAGS,;t t
24823 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24824 s,@EXEEXT@,$EXEEXT,;t t
24825 s,@OBJEXT@,$OBJEXT,;t t
24827 s,@CFLAGS@,$CFLAGS,;t t
24828 s,@ac_ct_CC@,$ac_ct_CC,;t t
24830 s,@ifGNUmake@,$ifGNUmake,;t t
24832 s,@LEXLIB@,$LEXLIB,;t t
24833 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24834 s,@FLEX@,$FLEX,;t t
24835 s,@YACC@,$YACC,;t t
24836 s,@BISON@,$BISON,;t t
24837 s,@EGREP@,$EGREP,;t t
24838 s,@LN_S@,$LN_S,;t t
24839 s,@ECHO@,$ECHO,;t t
24841 s,@ac_ct_AR@,$ac_ct_AR,;t t
24842 s,@RANLIB@,$RANLIB,;t t
24843 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24844 s,@STRIP@,$STRIP,;t t
24845 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24846 s,@CXXCPP@,$CXXCPP,;t t
24848 s,@FFLAGS@,$FFLAGS,;t t
24849 s,@ac_ct_F77@,$ac_ct_F77,;t t
24850 s,@LIBTOOL@,$LIBTOOL,;t t
24852 s,@ETAGS@,$ETAGS,;t t
24853 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24854 s,@PYTHON@,$PYTHON,;t t
24855 s,@QMTEST@,$QMTEST,;t t
24856 s,@ENDIAN@,$ENDIAN,;t t
24857 s,@ALLOCA@,$ALLOCA,;t t
24858 s,@MMAP_FILE@,$MMAP_FILE,;t t
24859 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24861 s,@LLVMCC1@,$LLVMCC1,;t t
24862 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24863 s,@SHLIBEXT@,$SHLIBEXT,;t t
24864 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24865 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24866 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24867 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24868 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24869 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24870 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24871 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24872 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24873 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24874 s,@LIBOBJS@,$LIBOBJS,;t t
24875 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24880 cat >>$CONFIG_STATUS <<\_ACEOF
24881 # Split the substitutions into bite-sized pieces for seds with
24882 # small command number limits, like on Digital OSF/1 and HP-UX.
24883 ac_max_sed_lines=48
24884 ac_sed_frag=1 # Number of current file.
24885 ac_beg=1 # First line for current file.
24886 ac_end=$ac_max_sed_lines # Line after last line for current file.
24889 while $ac_more_lines; do
24890 if test $ac_beg -gt 1; then
24891 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24893 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24895 if test ! -s $tmp/subs.frag; then
24896 ac_more_lines=false
24898 # The purpose of the label and of the branching condition is to
24899 # speed up the sed processing (if there are no `@' at all, there
24900 # is no need to browse any of the substitutions).
24901 # These are the two extra sed commands mentioned above.
24903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24904 if test -z "$ac_sed_cmds"; then
24905 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24907 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24909 ac_sed_frag=`expr $ac_sed_frag + 1`
24911 ac_end=`expr $ac_end + $ac_max_sed_lines`
24914 if test -z "$ac_sed_cmds"; then
24917 fi # test -n "$CONFIG_FILES"
24920 cat >>$CONFIG_STATUS <<\_ACEOF
24921 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24922 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24924 - | *:- | *:-:* ) # input from stdin
24926 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24927 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24928 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24929 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24930 * ) ac_file_in=$ac_file.in ;;
24933 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24934 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24935 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24936 X"$ac_file" : 'X\(//\)[^/]' \| \
24937 X"$ac_file" : 'X\(//\)$' \| \
24938 X"$ac_file" : 'X\(/\)' \| \
24939 . : '\(.\)' 2>/dev/null ||
24941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24943 /^X\(\/\/\)$/{ s//\1/; q; }
24944 /^X\(\/\).*/{ s//\1/; q; }
24946 { if $as_mkdir_p; then
24951 while test ! -d "$as_dir"; do
24952 as_dirs="$as_dir $as_dirs"
24953 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24955 X"$as_dir" : 'X\(//\)[^/]' \| \
24956 X"$as_dir" : 'X\(//\)$' \| \
24957 X"$as_dir" : 'X\(/\)' \| \
24958 . : '\(.\)' 2>/dev/null ||
24960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24962 /^X\(\/\/\)$/{ s//\1/; q; }
24963 /^X\(\/\).*/{ s//\1/; q; }
24966 test ! -n "$as_dirs" || mkdir $as_dirs
24967 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24968 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24969 { (exit 1); exit 1; }; }; }
24973 if test "$ac_dir" != .; then
24974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24975 # A "../" for each directory in $ac_dir_suffix.
24976 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24978 ac_dir_suffix= ac_top_builddir=
24982 .) # No --srcdir option. We are building in place.
24984 if test -z "$ac_top_builddir"; then
24987 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24989 [\\/]* | ?:[\\/]* ) # Absolute path.
24990 ac_srcdir=$srcdir$ac_dir_suffix;
24991 ac_top_srcdir=$srcdir ;;
24992 *) # Relative path.
24993 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24994 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24997 # Do not use `cd foo && pwd` to compute absolute paths, because
24998 # the directories may not exist.
25000 .) ac_abs_builddir="$ac_dir";;
25003 .) ac_abs_builddir=`pwd`;;
25004 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25005 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25008 case $ac_abs_builddir in
25009 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25011 case ${ac_top_builddir}. in
25012 .) ac_abs_top_builddir=$ac_abs_builddir;;
25013 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25014 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25017 case $ac_abs_builddir in
25018 .) ac_abs_srcdir=$ac_srcdir;;
25021 .) ac_abs_srcdir=$ac_abs_builddir;;
25022 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25023 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25026 case $ac_abs_builddir in
25027 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25029 case $ac_top_srcdir in
25030 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25031 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25032 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25038 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25039 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25042 if test x"$ac_file" != x-; then
25043 { echo "$as_me:$LINENO: creating $ac_file" >&5
25044 echo "$as_me: creating $ac_file" >&6;}
25047 # Let's still pretend it is `configure' which instantiates (i.e., don't
25048 # use $as_me), people would be surprised to read:
25049 # /* config.h. Generated by config.status. */
25050 if test x"$ac_file" = x-; then
25053 configure_input="$ac_file. "
25055 configure_input=$configure_input"Generated from `echo $ac_file_in |
25056 sed 's,.*/,,'` by configure."
25058 # First look for the input files in the build tree, otherwise in the
25060 ac_file_inputs=`IFS=:
25061 for f in $ac_file_in; do
25063 -) echo $tmp/stdin ;;
25065 # Absolute (can't be DOS-style, as IFS=:)
25066 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25067 echo "$as_me: error: cannot find input file: $f" >&2;}
25068 { (exit 1); exit 1; }; }
25071 if test -f "$f"; then
25074 elif test -f "$srcdir/$f"; then
25079 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25080 echo "$as_me: error: cannot find input file: $f" >&2;}
25081 { (exit 1); exit 1; }; }
25084 done` || { (exit 1); exit 1; }
25086 cat >>$CONFIG_STATUS <<_ACEOF
25090 cat >>$CONFIG_STATUS <<\_ACEOF
25092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25093 s,@configure_input@,$configure_input,;t t
25094 s,@srcdir@,$ac_srcdir,;t t
25095 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25096 s,@top_srcdir@,$ac_top_srcdir,;t t
25097 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25098 s,@builddir@,$ac_builddir,;t t
25099 s,@abs_builddir@,$ac_abs_builddir,;t t
25100 s,@top_builddir@,$ac_top_builddir,;t t
25101 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25102 s,@INSTALL@,$ac_INSTALL,;t t
25103 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25105 if test x"$ac_file" != x-; then
25106 mv $tmp/out $ac_file
25114 cat >>$CONFIG_STATUS <<\_ACEOF
25117 # CONFIG_HEADER section.
25120 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25121 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25123 # ac_d sets the value in "#define NAME VALUE" lines.
25124 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25125 ac_dB='[ ].*$,\1#\2'
25128 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25129 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25130 ac_uB='$,\1#\2define\3'
25134 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25135 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25137 - | *:- | *:-:* ) # input from stdin
25139 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25140 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25141 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25142 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25143 * ) ac_file_in=$ac_file.in ;;
25146 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25147 echo "$as_me: creating $ac_file" >&6;}
25149 # First look for the input files in the build tree, otherwise in the
25151 ac_file_inputs=`IFS=:
25152 for f in $ac_file_in; do
25154 -) echo $tmp/stdin ;;
25156 # Absolute (can't be DOS-style, as IFS=:)
25157 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25158 echo "$as_me: error: cannot find input file: $f" >&2;}
25159 { (exit 1); exit 1; }; }
25160 # Do quote $f, to prevent DOS paths from being IFS'd.
25163 if test -f "$f"; then
25166 elif test -f "$srcdir/$f"; then
25171 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25172 echo "$as_me: error: cannot find input file: $f" >&2;}
25173 { (exit 1); exit 1; }; }
25176 done` || { (exit 1); exit 1; }
25177 # Remove the trailing spaces.
25178 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25182 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25183 # `conftest.undefs', that substitutes the proper values into
25184 # config.h.in to produce config.h. The first handles `#define'
25185 # templates, and the second `#undef' templates.
25186 # And first: Protect against being on the right side of a sed subst in
25187 # config.status. Protect against being in an unquoted here document
25188 # in config.status.
25189 rm -f conftest.defines conftest.undefs
25190 # Using a here document instead of a string reduces the quoting nightmare.
25191 # Putting comments in sed scripts is not portable.
25193 # `end' is used to avoid that the second main sed command (meant for
25194 # 0-ary CPP macros) applies to n-ary macro definitions.
25195 # See the Autoconf documentation for `clear'.
25196 cat >confdef2sed.sed <<\_ACEOF
25201 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25203 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25206 # If some macros were called several times there might be several times
25207 # the same #defines, which is useless. Nevertheless, we may not want to
25208 # sort them, since we want the *last* AC-DEFINE to be honored.
25209 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25210 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25211 rm -f confdef2sed.sed
25213 # This sed command replaces #undef with comments. This is necessary, for
25214 # example, in the case of _POSIX_SOURCE, which is predefined and required
25215 # on some systems where configure will not decide to define it.
25216 cat >>conftest.undefs <<\_ACEOF
25217 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25220 # Break up conftest.defines because some shells have a limit on the size
25221 # of here documents, and old seds have small limits too (100 cmds).
25222 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25223 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25224 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25225 echo ' :' >>$CONFIG_STATUS
25226 rm -f conftest.tail
25227 while grep . conftest.defines >/dev/null
25229 # Write a limited-size here document to $tmp/defines.sed.
25230 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25231 # Speed up: don't consider the non `#define' lines.
25232 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25233 # Work around the forget-to-reset-the-flag bug.
25234 echo 't clr' >>$CONFIG_STATUS
25235 echo ': clr' >>$CONFIG_STATUS
25236 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25238 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25240 mv $tmp/out $tmp/in
25242 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25243 rm -f conftest.defines
25244 mv conftest.tail conftest.defines
25246 rm -f conftest.defines
25247 echo ' fi # grep' >>$CONFIG_STATUS
25248 echo >>$CONFIG_STATUS
25250 # Break up conftest.undefs because some shells have a limit on the size
25251 # of here documents, and old seds have small limits too (100 cmds).
25252 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25253 rm -f conftest.tail
25254 while grep . conftest.undefs >/dev/null
25256 # Write a limited-size here document to $tmp/undefs.sed.
25257 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25258 # Speed up: don't consider the non `#undef'
25259 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25260 # Work around the forget-to-reset-the-flag bug.
25261 echo 't clr' >>$CONFIG_STATUS
25262 echo ': clr' >>$CONFIG_STATUS
25263 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25265 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25267 mv $tmp/out $tmp/in
25269 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25270 rm -f conftest.undefs
25271 mv conftest.tail conftest.undefs
25273 rm -f conftest.undefs
25275 cat >>$CONFIG_STATUS <<\_ACEOF
25276 # Let's still pretend it is `configure' which instantiates (i.e., don't
25277 # use $as_me), people would be surprised to read:
25278 # /* config.h. Generated by config.status. */
25279 if test x"$ac_file" = x-; then
25280 echo "/* Generated by configure. */" >$tmp/config.h
25282 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25284 cat $tmp/in >>$tmp/config.h
25286 if test x"$ac_file" != x-; then
25287 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25288 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25289 echo "$as_me: $ac_file is unchanged" >&6;}
25291 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25292 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25293 X"$ac_file" : 'X\(//\)[^/]' \| \
25294 X"$ac_file" : 'X\(//\)$' \| \
25295 X"$ac_file" : 'X\(/\)' \| \
25296 . : '\(.\)' 2>/dev/null ||
25298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25300 /^X\(\/\/\)$/{ s//\1/; q; }
25301 /^X\(\/\).*/{ s//\1/; q; }
25303 { if $as_mkdir_p; then
25308 while test ! -d "$as_dir"; do
25309 as_dirs="$as_dir $as_dirs"
25310 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25312 X"$as_dir" : 'X\(//\)[^/]' \| \
25313 X"$as_dir" : 'X\(//\)$' \| \
25314 X"$as_dir" : 'X\(/\)' \| \
25315 . : '\(.\)' 2>/dev/null ||
25317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25319 /^X\(\/\/\)$/{ s//\1/; q; }
25320 /^X\(\/\).*/{ s//\1/; q; }
25323 test ! -n "$as_dirs" || mkdir $as_dirs
25324 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25325 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25326 { (exit 1); exit 1; }; }; }
25329 mv $tmp/config.h $ac_file
25333 rm -f $tmp/config.h
25337 cat >>$CONFIG_STATUS <<\_ACEOF
25340 # CONFIG_LINKS section.
25343 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25344 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25345 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25347 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25348 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25350 if test ! -r $srcdir/$ac_source; then
25351 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25352 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25353 { (exit 1); exit 1; }; }
25357 # Make relative symlinks.
25358 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25359 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25360 X"$ac_dest" : 'X\(//\)[^/]' \| \
25361 X"$ac_dest" : 'X\(//\)$' \| \
25362 X"$ac_dest" : 'X\(/\)' \| \
25363 . : '\(.\)' 2>/dev/null ||
25365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25367 /^X\(\/\/\)$/{ s//\1/; q; }
25368 /^X\(\/\).*/{ s//\1/; q; }
25370 { if $as_mkdir_p; then
25371 mkdir -p "$ac_dest_dir"
25373 as_dir="$ac_dest_dir"
25375 while test ! -d "$as_dir"; do
25376 as_dirs="$as_dir $as_dirs"
25377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25379 X"$as_dir" : 'X\(//\)[^/]' \| \
25380 X"$as_dir" : 'X\(//\)$' \| \
25381 X"$as_dir" : 'X\(/\)' \| \
25382 . : '\(.\)' 2>/dev/null ||
25384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25386 /^X\(\/\/\)$/{ s//\1/; q; }
25387 /^X\(\/\).*/{ s//\1/; q; }
25390 test ! -n "$as_dirs" || mkdir $as_dirs
25391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25392 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25393 { (exit 1); exit 1; }; }; }
25397 if test "$ac_dest_dir" != .; then
25398 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25399 # A "../" for each directory in $ac_dir_suffix.
25400 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25402 ac_dir_suffix= ac_top_builddir=
25406 .) # No --srcdir option. We are building in place.
25408 if test -z "$ac_top_builddir"; then
25411 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25413 [\\/]* | ?:[\\/]* ) # Absolute path.
25414 ac_srcdir=$srcdir$ac_dir_suffix;
25415 ac_top_srcdir=$srcdir ;;
25416 *) # Relative path.
25417 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25418 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25421 # Do not use `cd foo && pwd` to compute absolute paths, because
25422 # the directories may not exist.
25424 .) ac_abs_builddir="$ac_dest_dir";;
25426 case "$ac_dest_dir" in
25427 .) ac_abs_builddir=`pwd`;;
25428 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25429 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25432 case $ac_abs_builddir in
25433 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25435 case ${ac_top_builddir}. in
25436 .) ac_abs_top_builddir=$ac_abs_builddir;;
25437 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25438 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25441 case $ac_abs_builddir in
25442 .) ac_abs_srcdir=$ac_srcdir;;
25445 .) ac_abs_srcdir=$ac_abs_builddir;;
25446 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25447 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25450 case $ac_abs_builddir in
25451 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25453 case $ac_top_srcdir in
25454 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25455 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25456 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25462 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25463 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25466 # Try a symlink, then a hard link, then a copy.
25467 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25468 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25469 cp -p $srcdir/$ac_source $ac_dest ||
25470 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25471 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25472 { (exit 1); exit 1; }; }
25475 cat >>$CONFIG_STATUS <<\_ACEOF
25478 # CONFIG_COMMANDS section.
25480 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25481 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25482 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25483 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25484 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25485 X"$ac_dest" : 'X\(//\)[^/]' \| \
25486 X"$ac_dest" : 'X\(//\)$' \| \
25487 X"$ac_dest" : 'X\(/\)' \| \
25488 . : '\(.\)' 2>/dev/null ||
25490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25492 /^X\(\/\/\)$/{ s//\1/; q; }
25493 /^X\(\/\).*/{ s//\1/; q; }
25495 { if $as_mkdir_p; then
25500 while test ! -d "$as_dir"; do
25501 as_dirs="$as_dir $as_dirs"
25502 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25504 X"$as_dir" : 'X\(//\)[^/]' \| \
25505 X"$as_dir" : 'X\(//\)$' \| \
25506 X"$as_dir" : 'X\(/\)' \| \
25507 . : '\(.\)' 2>/dev/null ||
25509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25511 /^X\(\/\/\)$/{ s//\1/; q; }
25512 /^X\(\/\).*/{ s//\1/; q; }
25515 test ! -n "$as_dirs" || mkdir $as_dirs
25516 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25517 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25518 { (exit 1); exit 1; }; }; }
25522 if test "$ac_dir" != .; then
25523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25524 # A "../" for each directory in $ac_dir_suffix.
25525 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25527 ac_dir_suffix= ac_top_builddir=
25531 .) # No --srcdir option. We are building in place.
25533 if test -z "$ac_top_builddir"; then
25536 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25538 [\\/]* | ?:[\\/]* ) # Absolute path.
25539 ac_srcdir=$srcdir$ac_dir_suffix;
25540 ac_top_srcdir=$srcdir ;;
25541 *) # Relative path.
25542 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25543 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25546 # Do not use `cd foo && pwd` to compute absolute paths, because
25547 # the directories may not exist.
25549 .) ac_abs_builddir="$ac_dir";;
25552 .) ac_abs_builddir=`pwd`;;
25553 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25554 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25557 case $ac_abs_builddir in
25558 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25560 case ${ac_top_builddir}. in
25561 .) ac_abs_top_builddir=$ac_abs_builddir;;
25562 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25563 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25566 case $ac_abs_builddir in
25567 .) ac_abs_srcdir=$ac_srcdir;;
25570 .) ac_abs_srcdir=$ac_abs_builddir;;
25571 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25572 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25575 case $ac_abs_builddir in
25576 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25578 case $ac_top_srcdir in
25579 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25580 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25581 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25586 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25587 echo "$as_me: executing $ac_dest commands" >&6;}
25589 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25590 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25591 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25592 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25593 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25594 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25595 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25596 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25597 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25598 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25599 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25600 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25605 cat >>$CONFIG_STATUS <<\_ACEOF
25607 { (exit 0); exit 0; }
25609 chmod +x $CONFIG_STATUS
25610 ac_clean_files=$ac_clean_files_save
25613 # configure is writing to config.log, and then calls config.status.
25614 # config.status does its own redirection, appending to config.log.
25615 # Unfortunately, on DOS this fails, as config.log is still kept open
25616 # by configure, so config.status won't be able to write to it; its
25617 # output is simply discarded. So we exec the FD to /dev/null,
25618 # effectively closing config.log, so it can be properly (re)opened and
25619 # appended to by config.status. When coming back to configure, we
25620 # need to make the FD available again.
25621 if test "$no_create" != yes; then
25623 ac_config_status_args=
25624 test "$silent" = yes &&
25625 ac_config_status_args="$ac_config_status_args --quiet"
25627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25630 # would make configure fail if this is the last instruction.
25631 $ac_cs_success || { (exit 1); exit 1; }
25635 # CONFIG_SUBDIRS section.
25637 if test "$no_recursion" != yes; then
25639 # Remove --cache-file and --srcdir arguments so they do not pile up.
25640 ac_sub_configure_args=
25642 for ac_arg in $ac_configure_args; do
25643 if test -n "$ac_prev"; then
25648 -cache-file | --cache-file | --cache-fil | --cache-fi \
25649 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25650 ac_prev=cache_file ;;
25651 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25652 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25655 --config-cache | -C)
25657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25665 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25669 # Always prepend --prefix to ensure using the same prefix
25670 # in subdir configurations.
25671 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25674 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25676 # Do not complain, so a configure script can configure whichever
25677 # parts of a large source tree are present.
25678 test -d $srcdir/$ac_dir || continue
25680 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25681 echo "$as_me: configuring in $ac_dir" >&6;}
25682 { if $as_mkdir_p; then
25687 while test ! -d "$as_dir"; do
25688 as_dirs="$as_dir $as_dirs"
25689 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25691 X"$as_dir" : 'X\(//\)[^/]' \| \
25692 X"$as_dir" : 'X\(//\)$' \| \
25693 X"$as_dir" : 'X\(/\)' \| \
25694 . : '\(.\)' 2>/dev/null ||
25696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25698 /^X\(\/\/\)$/{ s//\1/; q; }
25699 /^X\(\/\).*/{ s//\1/; q; }
25702 test ! -n "$as_dirs" || mkdir $as_dirs
25703 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25704 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25705 { (exit 1); exit 1; }; }; }
25709 if test "$ac_dir" != .; then
25710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25711 # A "../" for each directory in $ac_dir_suffix.
25712 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25714 ac_dir_suffix= ac_top_builddir=
25718 .) # No --srcdir option. We are building in place.
25720 if test -z "$ac_top_builddir"; then
25723 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25725 [\\/]* | ?:[\\/]* ) # Absolute path.
25726 ac_srcdir=$srcdir$ac_dir_suffix;
25727 ac_top_srcdir=$srcdir ;;
25728 *) # Relative path.
25729 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25730 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25733 # Do not use `cd foo && pwd` to compute absolute paths, because
25734 # the directories may not exist.
25736 .) ac_abs_builddir="$ac_dir";;
25739 .) ac_abs_builddir=`pwd`;;
25740 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25741 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25744 case $ac_abs_builddir in
25745 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25747 case ${ac_top_builddir}. in
25748 .) ac_abs_top_builddir=$ac_abs_builddir;;
25749 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25750 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25753 case $ac_abs_builddir in
25754 .) ac_abs_srcdir=$ac_srcdir;;
25757 .) ac_abs_srcdir=$ac_abs_builddir;;
25758 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25759 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25762 case $ac_abs_builddir in
25763 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25765 case $ac_top_srcdir in
25766 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25767 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25768 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25775 # Check for guested configure; otherwise get Cygnus style configure.
25776 if test -f $ac_srcdir/configure.gnu; then
25777 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25778 elif test -f $ac_srcdir/configure; then
25779 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25780 elif test -f $ac_srcdir/configure.in; then
25781 ac_sub_configure=$ac_configure
25783 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25784 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25788 # The recursion is here.
25789 if test -n "$ac_sub_configure"; then
25790 # Make the cache file name correct relative to the subdirectory.
25791 case $cache_file in
25792 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25793 *) # Relative path.
25794 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25797 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25798 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25799 # The eval makes quoting arguments work.
25800 eval $ac_sub_configure $ac_sub_configure_args \
25801 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25802 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25803 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25804 { (exit 1); exit 1; }; }
25812 if test $llvmgccwarn = yes
25814 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25815 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25816 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25817 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25818 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25819 echo "$as_me: WARNING: ***** " >&2;}
25820 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25821 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25822 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25823 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25824 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25825 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}