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.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.4'
429 PACKAGE_STRING='llvm 1.4'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/Java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
446 # include <sys/types.h>
449 # include <sys/stat.h>
460 # if !STDC_HEADERS && HAVE_MEMORY_H
466 # include <strings.h>
469 # include <inttypes.h>
479 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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
482 # Initialize some variables set by options.
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
494 program_transform_name=s,x,x,
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532 # Accept the important Cygnus configure options, so we can diagnose typos.
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
554 cache_file=config.cache ;;
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 datadir=$ac_optarg ;;
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "enable_$ac_feature='$ac_optarg'" ;;
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
597 -help | --help | --hel | --he | -h)
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
621 -libdir | --libdir | --libdi | --libd)
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 # Obsolete; use --without-fp.
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 sbindir=$ac_optarg ;;
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 sharedstatedir=$ac_optarg ;;
725 -site | --site | --sit)
727 -site=* | --site=* | --sit=*)
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
750 -version | --version | --versio | --versi | --vers | -V)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
764 eval "with_$ac_package='$ac_optarg'" ;;
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
776 # Obsolete; use --with-x.
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838 localstatedir libdir includedir oldincludedir infodir mandir
840 eval ac_val=$`echo $ac_var`
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869 test "$silent" = yes && exec 6>/dev/null
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
962 # Report the --help message.
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
970 Usage: $0 [OPTION]... [VAR=VALUE]...
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
975 Defaults for the options are specified in brackets.
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1002 For better control, use the options below.
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1028 if test -n "$ac_init_help"; then
1029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.4:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038 --enable-jit Enable Just In Time Compiling (default is YES)
1039 --enable-doxygen Build doxygen documentation (default is NO)
1040 --enable-ltdl-install install libltdl
1041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
1047 --disable-libtool-lock avoid locking (might break parallel builds)
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1054 --with-tclinclude directory where tcl headers are
1055 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 --with-pic try to use only PIC/non-PIC objects [default=use
1059 include additional configurations [automatic]
1061 Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1078 Report bugs to <llvmbugs@cs.uiuc.edu>.
1082 if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1089 if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 ac_dir_suffix= ac_top_builddir=
1098 .) # No --srcdir option. We are building in place.
1100 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1116 .) ac_abs_builddir="$ac_dir";;
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
1161 test -f $ac_srcdir/configure.in; then
1163 $ac_configure --help
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1175 generated by GNU Autoconf 2.59
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1190 It was created by llvm $as_me 1.4, which was
1191 generated by GNU Autoconf 2.59. Invocation command line was
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_must_keep_next=false
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
1268 ac_must_keep_next=false # Got value, back to normal.
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279 -* ) ac_must_keep_next=true ;;
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log. We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1308 # The following way of writing the cache mishandles newlines in values,
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1331 for ac_var in $ac_subst_vars
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1338 if test -n "$ac_subst_files"; then
1345 for ac_var in $ac_subst_files
1347 eval ac_val=$`echo $ac_var`
1348 echo "$ac_var='"'"'$ac_val'"'"'"
1353 if test -s confdefs.h; then
1360 sed "/^$/d" confdefs.h | sort
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1367 rm -f core *.core &&
1368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371 for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 # Predefined preprocessor variables.
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417 for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1426 if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1443 # Check that the precious variables saved in the cache have kept the same
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
1464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1467 echo "$as_me: former value: $ac_old_val" >&2;}
1468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1469 echo "$as_me: current value: $ac_new_val" >&2;}
1470 ac_cache_corrupted=:
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486 if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1536 for ac_dir in autoconf $srcdir/autoconf; do
1537 if test -f $ac_dir/install-sh; then
1539 ac_install_sh="$ac_aux_dir/install-sh -c"
1541 elif test -f $ac_dir/install.sh; then
1543 ac_install_sh="$ac_aux_dir/install.sh -c"
1545 elif test -f $ac_dir/shtool; then
1547 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 if test -z "$ac_aux_dir"; then
1552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1554 { (exit 1); exit 1; }; }
1556 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561 if test ${srcdir} != "." ; then
1562 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1564 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565 { (exit 1); exit 1; }; }
1569 for i in `ls ${srcdir}/projects`
1571 if test -d ${srcdir}/projects/${i} ; then
1576 subdirs="$subdirs projects/sample"
1580 subdirs="$subdirs projects/Stacker"
1584 subdirs="$subdirs projects/llvm-test"
1588 subdirs="$subdirs projects/llvm-reopt"
1592 subdirs="$subdirs projects/llvm-gcc"
1596 subdirs="$subdirs projects/Java"
1600 subdirs="$subdirs projects/llvm-tv"
1604 subdirs="$subdirs projects/llvm-fefw"
1608 subdirs="$subdirs projects/poolalloc"
1611 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1619 # Make sure we can run config.sub.
1620 $ac_config_sub sun4 >/dev/null 2>&1 ||
1621 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623 { (exit 1); exit 1; }; }
1625 echo "$as_me:$LINENO: checking build system type" >&5
1626 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627 if test "${ac_cv_build+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 ac_cv_build_alias=$build_alias
1631 test -z "$ac_cv_build_alias" &&
1632 ac_cv_build_alias=`$ac_config_guess`
1633 test -z "$ac_cv_build_alias" &&
1634 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636 { (exit 1); exit 1; }; }
1637 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1643 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644 echo "${ECHO_T}$ac_cv_build" >&6
1646 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651 echo "$as_me:$LINENO: checking host system type" >&5
1652 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653 if test "${ac_cv_host+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 ac_cv_host_alias=$host_alias
1657 test -z "$ac_cv_host_alias" &&
1658 ac_cv_host_alias=$ac_cv_build_alias
1659 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662 { (exit 1); exit 1; }; }
1665 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666 echo "${ECHO_T}$ac_cv_host" >&6
1668 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673 echo "$as_me:$LINENO: checking target system type" >&5
1674 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675 if test "${ac_cv_target+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 ac_cv_target_alias=$target_alias
1679 test "x$ac_cv_target_alias" = "x" &&
1680 ac_cv_target_alias=$ac_cv_host_alias
1681 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684 { (exit 1); exit 1; }; }
1687 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688 echo "${ECHO_T}$ac_cv_target" >&6
1689 target=$ac_cv_target
1690 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1695 # The aliases save the names the user supplied, while $host etc.
1696 # will get canonicalized.
1697 test -n "$target_alias" &&
1698 test "$program_prefix$program_suffix$program_transform_name" = \
1700 program_prefix=${target_alias}-
1702 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704 if test "${llvm_cv_os_type+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 llvm_cv_os_type="AIX"
1710 llvm_cv_platform_type="Unix" ;;
1712 llvm_cv_os_type="Cygwin"
1713 llvm_cv_platform_type="Unix" ;;
1715 llvm_cv_os_type="Darwin"
1716 llvm_cv_platform_type="Unix" ;;
1718 llvm_cv_os_type="FreeBSD"
1719 llvm_cv_platform_type="Unix" ;;
1721 llvm_cv_os_type="Interix"
1722 llvm_cv_platform_type="Unix" ;;
1724 llvm_cv_os_type="Linux"
1725 llvm_cv_platform_type="Unix" ;;
1727 llvm_cv_os_type="SunOS"
1728 llvm_cv_platform_type="Unix" ;;
1730 llvm_cv_os_type="Win32"
1731 llvm_cv_platform_type="Win32" ;;
1733 llvm_cv_os_type="MingW"
1734 llvm_cv_platform_type="Win32" ;;
1736 llvm_cv_os_type="Unknown"
1737 llvm_cv_platform_type="Unknown" ;;
1740 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741 echo "${ECHO_T}$llvm_cv_os_type" >&6
1743 if test "$llvm_cv_os_type" = "Unknown" ; then
1744 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746 { (exit 1); exit 1; }; }
1752 case $llvm_cv_platform_type in
1755 cat >>confdefs.h <<\_ACEOF
1756 #define LLVM_ON_UNIX 1
1762 cat >>confdefs.h <<\_ACEOF
1763 #define LLVM_ON_WIN32 1
1769 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_os_type"
1773 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1778 echo "$as_me:$LINENO: checking target architecture" >&5
1779 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1780 if test "${llvm_cv_target_arch+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 i?86-*) llvm_cv_target_arch="x86" ;;
1785 amd64-* | x86_64-*) llvm_cv_target_arch="AMD64" ;;
1786 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1787 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1788 *) llvm_cv_target_arch="Unknown" ;;
1791 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1792 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1794 if test "$llvm_cv_target_arch" = "Unknown" ; then
1795 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1796 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1799 ARCH=$llvm_cv_target_arch
1803 ac_cpp='$CPP $CPPFLAGS'
1804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807 if test -n "$ac_tool_prefix"; then
1808 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1809 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 if test -n "$CC"; then
1816 ac_cv_prog_CC="$CC" # Let the user override the test.
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 if test -n "$CC"; then
1836 echo "$as_me:$LINENO: result: $CC" >&5
1837 echo "${ECHO_T}$CC" >&6
1839 echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1844 if test -z "$ac_cv_prog_CC"; then
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 if test -n "$ac_ct_CC"; then
1854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_ac_ct_CC="gcc"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1873 if test -n "$ac_ct_CC"; then
1874 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1875 echo "${ECHO_T}$ac_ct_CC" >&6
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1886 if test -z "$CC"; then
1887 if test -n "$ac_tool_prefix"; then
1888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1889 set dummy ${ac_tool_prefix}cc; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$CC"; then
1896 ac_cv_prog_CC="$CC" # Let the user override the test.
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_CC="${ac_tool_prefix}cc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 if test -n "$CC"; then
1916 echo "$as_me:$LINENO: result: $CC" >&5
1917 echo "${ECHO_T}$CC" >&6
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1924 if test -z "$ac_cv_prog_CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927 set dummy cc; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 if test -n "$ac_ct_CC"; then
1934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 test -z "$as_dir" && as_dir=.
1941 for ac_exec_ext in '' $ac_executable_extensions; do
1942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943 ac_cv_prog_ac_ct_CC="cc"
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1953 if test -n "$ac_ct_CC"; then
1954 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1955 echo "${ECHO_T}$ac_ct_CC" >&6
1957 echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6
1967 if test -z "$CC"; then
1968 # Extract the first word of "cc", so it can be a program name with args.
1969 set dummy cc; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1987 ac_prog_rejected=yes
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 if test $ac_prog_rejected = yes; then
1998 # We found a bogon in the path, so make sure we never use it.
1999 set dummy $ac_cv_prog_CC
2001 if test $# != 0; then
2002 # We chose a different compiler from the bogus one.
2003 # However, it has the same basename, so the bogon will be chosen
2004 # first if we set CC to just the basename; use the full file name.
2006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2012 if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2021 if test -z "$CC"; then
2022 if test -n "$ac_tool_prefix"; then
2025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 if test -n "$CC"; then
2033 ac_cv_prog_CC="$CC" # Let the user override the test.
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 if test -n "$CC"; then
2053 echo "$as_me:$LINENO: result: $CC" >&5
2054 echo "${ECHO_T}$CC" >&6
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2060 test -n "$CC" && break
2063 if test -z "$CC"; then
2067 # Extract the first word of "$ac_prog", so it can be a program name with args.
2068 set dummy $ac_prog; ac_word=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_ac_ct_CC="$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2094 if test -n "$ac_ct_CC"; then
2095 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2096 echo "${ECHO_T}$ac_ct_CC" >&6
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2102 test -n "$ac_ct_CC" && break
2111 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&2;}
2115 { (exit 1); exit 1; }; }
2117 # Provide some information about the compiler.
2118 echo "$as_me:$LINENO:" \
2119 "checking for C compiler version" >&5
2120 ac_compiler=`set X $ac_compile; echo $2`
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2122 (eval $ac_compiler --version </dev/null >&5) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2127 (eval $ac_compiler -v </dev/null >&5) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2132 (eval $ac_compiler -V </dev/null >&5) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2137 cat >conftest.$ac_ext <<_ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2152 ac_clean_files_save=$ac_clean_files
2153 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2154 # Try to create an executable without -o first, disregard a.out.
2155 # It will help us diagnose broken compilers, and finding out an intuition
2157 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2158 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2159 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2161 (eval $ac_link_default) 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; then
2165 # Find the output, starting from the most likely. This scheme is
2166 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2169 # Be careful to initialize this variable, since it used to be cached.
2170 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2172 # b.out is created by i960 compilers.
2173 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2175 test -f "$ac_file" || continue
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2180 # This is the source file.
2183 # We found the default executable, but exeext='' is most
2187 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 # FIXME: I believe we export ac_cv_exeext for Libtool,
2189 # but it would be cool to find out if it's true. Does anybody
2190 # maintain Libtool? --akim.
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2201 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&2;}
2205 { (exit 77); exit 77; }; }
2208 ac_exeext=$ac_cv_exeext
2209 echo "$as_me:$LINENO: result: $ac_file" >&5
2210 echo "${ECHO_T}$ac_file" >&6
2212 # Check the compiler produces executables we can run. If not, either
2213 # the compiler is broken, or we cross compile.
2214 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2216 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217 # If not cross compiling, check that we can run a simple program.
2218 if test "$cross_compiling" != yes; then
2219 if { ac_try='./$ac_file'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2227 if test "$cross_compiling" = maybe; then
2230 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231 If you meant to cross compile, use \`--host'.
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2240 echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6
2243 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244 ac_clean_files=$ac_clean_files_save
2245 # Check the compiler produces executables we can run. If not, either
2246 # the compiler is broken, or we cross compile.
2247 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2249 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250 echo "${ECHO_T}$cross_compiling" >&6
2252 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2255 (eval $ac_link) 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2261 # work properly (i.e., refer to `conftest.exe'), while it won't with
2263 for ac_file in conftest.exe conftest conftest.*; do
2264 test -f "$ac_file" || continue
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2274 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2277 See \`config.log' for more details." >&2;}
2278 { (exit 1); exit 1; }; }
2281 rm -f conftest$ac_cv_exeext
2282 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2283 echo "${ECHO_T}$ac_cv_exeext" >&6
2285 rm -f conftest.$ac_ext
2286 EXEEXT=$ac_cv_exeext
2288 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2289 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2290 if test "${ac_cv_objext+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 cat >conftest.$ac_ext <<_ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2308 rm -f conftest.o conftest.obj
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
2314 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2325 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2326 See \`config.log' for more details." >&5
2327 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&2;}
2329 { (exit 1); exit 1; }; }
2332 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2335 echo "${ECHO_T}$ac_cv_objext" >&6
2336 OBJEXT=$ac_cv_objext
2338 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2339 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2340 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 cat >conftest.$ac_ext <<_ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2361 rm -f conftest.$ac_objext
2362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363 (eval $ac_compile) 2>conftest.er1
2365 grep -v '^ *+' conftest.er1 >conftest.err
2367 cat conftest.err >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
2370 { ac_try='test -z "$ac_c_werror_flag"
2371 || test ! -s conftest.err'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; } &&
2377 { ac_try='test -s conftest.$ac_objext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2394 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2395 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2396 GCC=`test $ac_compiler_gnu = yes && echo yes`
2397 ac_test_CFLAGS=${CFLAGS+set}
2398 ac_save_CFLAGS=$CFLAGS
2400 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2401 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2402 if test "${ac_cv_prog_cc_g+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 cat >conftest.$ac_ext <<_ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>conftest.er1
2424 grep -v '^ *+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag"
2430 || test ! -s conftest.err'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; } &&
2436 { ac_try='test -s conftest.$ac_objext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2444 echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2452 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2453 if test "$ac_test_CFLAGS" = set; then
2454 CFLAGS=$ac_save_CFLAGS
2455 elif test $ac_cv_prog_cc_g = yes; then
2456 if test "$GCC" = yes; then
2462 if test "$GCC" = yes; then
2468 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2469 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2470 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 ac_cv_prog_cc_stdc=no
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2483 #include <sys/types.h>
2484 #include <sys/stat.h>
2485 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2486 struct buf { int x; };
2487 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2488 static char *e (p, i)
2494 static char *f (char * (*g) (char **, int), char **p, ...)
2499 s = g (p, va_arg (v,int));
2504 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2505 function prototypes and stuff, but not '\xHH' hex character constants.
2506 These don't provoke an error unfortunately, instead are silently treated
2507 as 'x'. The following induces an error, until -std1 is added to get
2508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2509 array size at least. It's necessary to write '\x00'==0 to get something
2510 that's true only with -std1. */
2511 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2513 int test (int i, double x);
2514 struct s1 {int (*f) (int a);};
2515 struct s2 {int (*f) (double a);};
2516 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2522 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2527 # Don't try gcc -ansi; that turns off useful extensions and
2528 # breaks some systems' header files.
2529 # AIX -qlanglvl=ansi
2530 # Ultrix and OSF/1 -std1
2531 # HP-UX 10.20 and later -Ae
2532 # HP-UX older versions -Aa -D_HPUX_SOURCE
2533 # SVR4 -Xc -D__EXTENSIONS__
2534 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2536 CC="$ac_save_CC $ac_arg"
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>conftest.er1
2541 grep -v '^ *+' conftest.er1 >conftest.err
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -z "$ac_c_werror_flag"
2547 || test ! -s conftest.err'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 ac_cv_prog_cc_stdc=$ac_arg
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2566 rm -f conftest.err conftest.$ac_objext
2568 rm -f conftest.$ac_ext conftest.$ac_objext
2573 case "x$ac_cv_prog_cc_stdc" in
2575 echo "$as_me:$LINENO: result: none needed" >&5
2576 echo "${ECHO_T}none needed" >&6 ;;
2578 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2579 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2580 CC="$CC $ac_cv_prog_cc_stdc" ;;
2583 # Some people use a C++ compiler to compile C. Since we use `exit',
2584 # in C++ we need to declare it. In case someone uses the same compiler
2585 # for both compiling C and C++ we need to have the C++ compiler decide
2586 # the declaration of exit, since it's the most demanding environment.
2587 cat >conftest.$ac_ext <<_ACEOF
2592 rm -f conftest.$ac_objext
2593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594 (eval $ac_compile) 2>conftest.er1
2596 grep -v '^ *+' conftest.er1 >conftest.err
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try='test -z "$ac_c_werror_flag"
2602 || test ! -s conftest.err'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 for ac_declaration in \
2616 'extern "C" void std::exit (int) throw (); using std::exit;' \
2617 'extern "C" void std::exit (int); using std::exit;' \
2618 'extern "C" void exit (int) throw ();' \
2619 'extern "C" void exit (int);' \
2622 cat >conftest.$ac_ext <<_ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640 (eval $ac_compile) 2>conftest.er1
2642 grep -v '^ *+' conftest.er1 >conftest.err
2644 cat conftest.err >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
2647 { ac_try='test -z "$ac_c_werror_flag"
2648 || test ! -s conftest.err'
2649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; } &&
2654 { ac_try='test -s conftest.$ac_objext'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2662 echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668 cat >conftest.$ac_ext <<_ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2683 rm -f conftest.$ac_objext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685 (eval $ac_compile) 2>conftest.er1
2687 grep -v '^ *+' conftest.er1 >conftest.err
2689 cat conftest.err >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
2692 { ac_try='test -z "$ac_c_werror_flag"
2693 || test ! -s conftest.err'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; } &&
2699 { ac_try='test -s conftest.$ac_objext'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714 if test -n "$ac_declaration"; then
2715 echo '#ifdef __cplusplus' >>confdefs.h
2716 echo $ac_declaration >>confdefs.h
2717 echo '#endif' >>confdefs.h
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2734 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2735 if test "${ac_cv_c_bigendian+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 # See if sys/param.h defines the BYTE_ORDER macro.
2739 cat >conftest.$ac_ext <<_ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2745 #include <sys/types.h>
2746 #include <sys/param.h>
2751 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>conftest.er1
2763 grep -v '^ *+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_c_werror_flag"
2769 || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 # It does; now see whether it defined to BIG_ENDIAN or not.
2782 cat >conftest.$ac_ext <<_ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2788 #include <sys/types.h>
2789 #include <sys/param.h>
2794 #if BYTE_ORDER != BIG_ENDIAN
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2806 grep -v '^ *+' conftest.er1 >conftest.err
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_c_werror_flag"
2812 || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2824 ac_cv_c_bigendian=yes
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2829 ac_cv_c_bigendian=no
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 # It does not; compile a test program.
2837 if test "$cross_compiling" = yes; then
2838 # try to guess the endianness by grepping values into an object file
2839 ac_cv_c_bigendian=unknown
2840 cat >conftest.$ac_ext <<_ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2846 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2847 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2848 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2849 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2850 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2851 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2855 _ascii (); _ebcdic ();
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2864 grep -v '^ *+' conftest.er1 >conftest.err
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_c_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2883 ac_cv_c_bigendian=yes
2885 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2886 if test "$ac_cv_c_bigendian" = unknown; then
2887 ac_cv_c_bigendian=no
2889 # finding both strings is unlikely to happen, but who knows?
2890 ac_cv_c_bigendian=unknown
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 cat >conftest.$ac_ext <<_ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2909 /* Are we little or big endian? From Harbison&Steele. */
2913 char c[sizeof (long)];
2916 exit (u.c[sizeof (long) - 1] == 1);
2919 rm -f conftest$ac_exeext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921 (eval $ac_link) 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2930 ac_cv_c_bigendian=no
2932 echo "$as_me: program exited with status $ac_status" >&5
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2937 ac_cv_c_bigendian=yes
2939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2944 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2945 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2946 case $ac_cv_c_bigendian in
2954 { { echo "$as_me:$LINENO: error: unknown endianness
2955 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2956 echo "$as_me: error: unknown endianness
2957 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2958 { (exit 1); exit 1; }; } ;;
2963 # Check whether --enable-optimized or --disable-optimized was given.
2964 if test "${enable_optimized+set}" = set; then
2965 enableval="$enable_optimized"
2970 if test ${enableval} = "no" ; then
2974 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2978 # Check whether --enable-jit or --disable-jit was given.
2979 if test "${enable_jit+set}" = set; then
2980 enableval="$enable_jit"
2985 if test ${enableval} = "no"
2990 case "$llvm_cv_target_arch" in
2991 x86) JIT=TARGET_HAS_JIT=1
2993 Sparc) JIT=TARGET_HAS_JIT=1
2995 PowerPC) JIT=TARGET_HAS_JIT=1
3004 # Check whether --enable-doxygen or --disable-doxygen was given.
3005 if test "${enable_doxygen+set}" = set; then
3006 enableval="$enable_doxygen"
3011 case "$enableval" in
3012 yes) ENABLE_DOXYGEN=1
3014 no) ENABLE_DOXYGEN=0
3016 default) ENABLE_DOXYGEN=0
3018 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3019 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3020 { (exit 1); exit 1; }; } ;;
3024 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3025 if test "${with_llvmgccdir+set}" = set; then
3026 withval="$with_llvmgccdir"
3032 default) WITH_LLVMGCCDIR=default ;;
3033 /*) WITH_LLVMGCCDIR=$withval ;;
3034 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3035 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3036 { (exit 1); exit 1; }; } ;;
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3046 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3047 # On Suns, sometimes $CPP names a directory.
3048 if test -n "$CPP" && test -d "$CPP"; then
3051 if test -z "$CPP"; then
3052 if test "${ac_cv_prog_CPP+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 # Double quotes because CPP needs to be expanded
3056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3059 for ac_c_preproc_warn_flag in '' yes
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064 # <limits.h> exists even on freestanding compilers.
3065 # On the NeXT, cc -E runs the code through the compiler's parser,
3066 # not just through cpp. "Syntax error" is here to catch this case.
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3074 # include <limits.h>
3076 # include <assert.h>
3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } >/dev/null; then
3088 if test -s conftest.err; then
3089 ac_cpp_err=$ac_c_preproc_warn_flag
3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097 if test -z "$ac_cpp_err"; then
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Broken: fails on valid input.
3106 rm -f conftest.err conftest.$ac_ext
3108 # OK, works on sane cases. Now check whether non-existent headers
3109 # can be detected and how.
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <ac_nonexistent.h>
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3121 grep -v '^ *+' conftest.er1 >conftest.err
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } >/dev/null; then
3126 if test -s conftest.err; then
3127 ac_cpp_err=$ac_c_preproc_warn_flag
3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135 if test -z "$ac_cpp_err"; then
3136 # Broken: success on invalid input.
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 # Passes both tests.
3146 rm -f conftest.err conftest.$ac_ext
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3163 echo "$as_me:$LINENO: result: $CPP" >&5
3164 echo "${ECHO_T}$CPP" >&6
3166 for ac_c_preproc_warn_flag in '' yes
3168 # Use a header file that comes with gcc, so configuring glibc
3169 # with a fresh cross-compiler works.
3170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3171 # <limits.h> exists even on freestanding compilers.
3172 # On the NeXT, cc -E runs the code through the compiler's parser,
3173 # not just through cpp. "Syntax error" is here to catch this case.
3174 cat >conftest.$ac_ext <<_ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3181 # include <limits.h>
3183 # include <assert.h>
3187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3190 grep -v '^ *+' conftest.er1 >conftest.err
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } >/dev/null; then
3195 if test -s conftest.err; then
3196 ac_cpp_err=$ac_c_preproc_warn_flag
3197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204 if test -z "$ac_cpp_err"; then
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3210 # Broken: fails on valid input.
3213 rm -f conftest.err conftest.$ac_ext
3215 # OK, works on sane cases. Now check whether non-existent headers
3216 # can be detected and how.
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223 #include <ac_nonexistent.h>
3225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3228 grep -v '^ *+' conftest.er1 >conftest.err
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } >/dev/null; then
3233 if test -s conftest.err; then
3234 ac_cpp_err=$ac_c_preproc_warn_flag
3235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242 if test -z "$ac_cpp_err"; then
3243 # Broken: success on invalid input.
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3249 # Passes both tests.
3253 rm -f conftest.err conftest.$ac_ext
3256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3257 rm -f conftest.err conftest.$ac_ext
3258 if $ac_preproc_ok; then
3261 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3262 See \`config.log' for more details." >&5
3263 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3264 See \`config.log' for more details." >&2;}
3265 { (exit 1); exit 1; }; }
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279 if test -n "$ac_tool_prefix"; then
3282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_CC+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 if test -n "$CC"; then
3310 echo "$as_me:$LINENO: result: $CC" >&5
3311 echo "${ECHO_T}$CC" >&6
3313 echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3317 test -n "$CC" && break
3320 if test -z "$CC"; then
3324 # Extract the first word of "$ac_prog", so it can be a program name with args.
3325 set dummy $ac_prog; ac_word=$2
3326 echo "$as_me:$LINENO: checking for $ac_word" >&5
3327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 if test -n "$ac_ct_CC"; then
3332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341 ac_cv_prog_ac_ct_CC="$ac_prog"
3342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3351 if test -n "$ac_ct_CC"; then
3352 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3353 echo "${ECHO_T}$ac_ct_CC" >&6
3355 echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6
3359 test -n "$ac_ct_CC" && break
3366 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3367 See \`config.log' for more details." >&5
3368 echo "$as_me: error: no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details." >&2;}
3370 { (exit 1); exit 1; }; }
3372 # Provide some information about the compiler.
3373 echo "$as_me:$LINENO:" \
3374 "checking for C compiler version" >&5
3375 ac_compiler=`set X $ac_compile; echo $2`
3376 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3377 (eval $ac_compiler --version </dev/null >&5) 2>&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }
3381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3382 (eval $ac_compiler -v </dev/null >&5) 2>&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }
3386 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3387 (eval $ac_compiler -V </dev/null >&5) 2>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }
3392 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3415 rm -f conftest.$ac_objext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417 (eval $ac_compile) 2>conftest.er1
3419 grep -v '^ *+' conftest.er1 >conftest.err
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } &&
3424 { ac_try='test -z "$ac_c_werror_flag"
3425 || test ! -s conftest.err'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; } &&
3431 { ac_try='test -s conftest.$ac_objext'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3448 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3450 GCC=`test $ac_compiler_gnu = yes && echo yes`
3451 ac_test_CFLAGS=${CFLAGS+set}
3452 ac_save_CFLAGS=$CFLAGS
3454 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3456 if test "${ac_cv_prog_cc_g+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3474 rm -f conftest.$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -z "$ac_c_werror_flag"
3484 || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3506 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3507 if test "$ac_test_CFLAGS" = set; then
3508 CFLAGS=$ac_save_CFLAGS
3509 elif test $ac_cv_prog_cc_g = yes; then
3510 if test "$GCC" = yes; then
3516 if test "$GCC" = yes; then
3522 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3523 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3524 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 ac_cv_prog_cc_stdc=no
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3537 #include <sys/types.h>
3538 #include <sys/stat.h>
3539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3540 struct buf { int x; };
3541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542 static char *e (p, i)
3548 static char *f (char * (*g) (char **, int), char **p, ...)
3553 s = g (p, va_arg (v,int));
3558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3559 function prototypes and stuff, but not '\xHH' hex character constants.
3560 These don't provoke an error unfortunately, instead are silently treated
3561 as 'x'. The following induces an error, until -std1 is added to get
3562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3563 array size at least. It's necessary to write '\x00'==0 to get something
3564 that's true only with -std1. */
3565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3581 # Don't try gcc -ansi; that turns off useful extensions and
3582 # breaks some systems' header files.
3583 # AIX -qlanglvl=ansi
3584 # Ultrix and OSF/1 -std1
3585 # HP-UX 10.20 and later -Ae
3586 # HP-UX older versions -Aa -D_HPUX_SOURCE
3587 # SVR4 -Xc -D__EXTENSIONS__
3588 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3590 CC="$ac_save_CC $ac_arg"
3591 rm -f conftest.$ac_objext
3592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3593 (eval $ac_compile) 2>conftest.er1
3595 grep -v '^ *+' conftest.er1 >conftest.err
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -z "$ac_c_werror_flag"
3601 || test ! -s conftest.err'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; } &&
3607 { ac_try='test -s conftest.$ac_objext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_cv_prog_cc_stdc=$ac_arg
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3620 rm -f conftest.err conftest.$ac_objext
3622 rm -f conftest.$ac_ext conftest.$ac_objext
3627 case "x$ac_cv_prog_cc_stdc" in
3629 echo "$as_me:$LINENO: result: none needed" >&5
3630 echo "${ECHO_T}none needed" >&6 ;;
3632 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3633 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3634 CC="$CC $ac_cv_prog_cc_stdc" ;;
3637 # Some people use a C++ compiler to compile C. Since we use `exit',
3638 # in C++ we need to declare it. In case someone uses the same compiler
3639 # for both compiling C and C++ we need to have the C++ compiler decide
3640 # the declaration of exit, since it's the most demanding environment.
3641 cat >conftest.$ac_ext <<_ACEOF
3646 rm -f conftest.$ac_objext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -z "$ac_c_werror_flag"
3656 || test ! -s conftest.err'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; } &&
3662 { ac_try='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 for ac_declaration in \
3670 'extern "C" void std::exit (int) throw (); using std::exit;' \
3671 'extern "C" void std::exit (int); using std::exit;' \
3672 'extern "C" void exit (int) throw ();' \
3673 'extern "C" void exit (int);' \
3676 cat >conftest.$ac_ext <<_ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>conftest.er1
3696 grep -v '^ *+' conftest.er1 >conftest.err
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try='test -z "$ac_c_werror_flag"
3702 || test ! -s conftest.err'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; } &&
3708 { ac_try='test -s conftest.$ac_objext'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3722 cat >conftest.$ac_ext <<_ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3737 rm -f conftest.$ac_objext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>conftest.er1
3741 grep -v '^ *+' conftest.er1 >conftest.err
3743 cat conftest.err >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -z "$ac_c_werror_flag"
3747 || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try='test -s conftest.$ac_objext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3768 if test -n "$ac_declaration"; then
3769 echo '#ifdef __cplusplus' >>confdefs.h
3770 echo $ac_declaration >>confdefs.h
3771 echo '#endif' >>confdefs.h
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787 ac_cpp='$CXXCPP $CPPFLAGS'
3788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3791 if test -n "$ac_tool_prefix"; then
3792 for ac_prog in $CCC g++
3794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_CXX+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 if test -n "$CXX"; then
3802 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 if test -n "$CXX"; then
3822 echo "$as_me:$LINENO: result: $CXX" >&5
3823 echo "${ECHO_T}$CXX" >&6
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3829 test -n "$CXX" && break
3832 if test -z "$CXX"; then
3834 for ac_prog in $CCC g++
3836 # Extract the first word of "$ac_prog", so it can be a program name with args.
3837 set dummy $ac_prog; ac_word=$2
3838 echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 if test -n "$ac_ct_CXX"; then
3844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_ac_ct_CXX="$ac_prog"
3854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3863 if test -n "$ac_ct_CXX"; then
3864 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3865 echo "${ECHO_T}$ac_ct_CXX" >&6
3867 echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3871 test -n "$ac_ct_CXX" && break
3873 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3879 # Provide some information about the compiler.
3880 echo "$as_me:$LINENO:" \
3881 "checking for C++ compiler version" >&5
3882 ac_compiler=`set X $ac_compile; echo $2`
3883 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3884 (eval $ac_compiler --version </dev/null >&5) 2>&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }
3888 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3889 (eval $ac_compiler -v </dev/null >&5) 2>&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }
3893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3894 (eval $ac_compiler -V </dev/null >&5) 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }
3899 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3900 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3901 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924 (eval $ac_compile) 2>conftest.er1
3926 grep -v '^ *+' conftest.er1 >conftest.err
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -z "$ac_cxx_werror_flag"
3932 || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3955 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3956 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3957 GXX=`test $ac_compiler_gnu = yes && echo yes`
3958 ac_test_CXXFLAGS=${CXXFLAGS+set}
3959 ac_save_CXXFLAGS=$CXXFLAGS
3961 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3962 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3963 if test "${ac_cv_prog_cxx_g+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 cat >conftest.$ac_ext <<_ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3981 rm -f conftest.$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>conftest.er1
3985 grep -v '^ *+' conftest.er1 >conftest.err
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_cxx_werror_flag"
3991 || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4003 ac_cv_prog_cxx_g=yes
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4012 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4013 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4014 if test "$ac_test_CXXFLAGS" = set; then
4015 CXXFLAGS=$ac_save_CXXFLAGS
4016 elif test $ac_cv_prog_cxx_g = yes; then
4017 if test "$GXX" = yes; then
4023 if test "$GXX" = yes; then
4029 for ac_declaration in \
4031 'extern "C" void std::exit (int) throw (); using std::exit;' \
4032 'extern "C" void std::exit (int); using std::exit;' \
4033 'extern "C" void exit (int) throw ();' \
4034 'extern "C" void exit (int);' \
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4053 rm -f conftest.$ac_objext
4054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4055 (eval $ac_compile) 2>conftest.er1
4057 grep -v '^ *+' conftest.er1 >conftest.err
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try='test -z "$ac_cxx_werror_flag"
4063 || test ! -s conftest.err'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
4077 echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4083 cat >conftest.$ac_ext <<_ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4098 rm -f conftest.$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100 (eval $ac_compile) 2>conftest.er1
4102 grep -v '^ *+' conftest.er1 >conftest.err
4104 cat conftest.err >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try='test -z "$ac_cxx_werror_flag"
4108 || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try='test -s conftest.$ac_objext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129 if test -n "$ac_declaration"; then
4130 echo '#ifdef __cplusplus' >>confdefs.h
4131 echo $ac_declaration >>confdefs.h
4132 echo '#endif' >>confdefs.h
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141 echo "$as_me:$LINENO: checking " >&5
4142 echo $ECHO_N "checking ... $ECHO_C" >&6
4143 if test "${ac_cv_has_flex+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 for ac_prog in flex lex
4148 # Extract the first word of "$ac_prog", so it can be a program name with args.
4149 set dummy $ac_prog; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_prog_LEX+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 if test -n "$LEX"; then
4156 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4165 ac_cv_prog_LEX="$ac_prog"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 if test -n "$LEX"; then
4176 echo "$as_me:$LINENO: result: $LEX" >&5
4177 echo "${ECHO_T}$LEX" >&6
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4183 test -n "$LEX" && break
4185 test -n "$LEX" || LEX=":"
4187 if test -z "$LEXLIB"
4189 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4190 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4191 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 ac_check_lib_save_LIBS=$LIBS
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4203 /* Override any gcc2 internal prototype to avoid an error. */
4207 /* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */
4218 rm -f conftest.$ac_objext conftest$ac_exeext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220 (eval $ac_link) 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest$ac_exeext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_cv_lib_fl_yywrap=yes
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 ac_cv_lib_fl_yywrap=no
4247 rm -f conftest.err conftest.$ac_objext \
4248 conftest$ac_exeext conftest.$ac_ext
4249 LIBS=$ac_check_lib_save_LIBS
4251 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4252 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4253 if test $ac_cv_lib_fl_yywrap = yes; then
4256 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4257 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4258 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 ac_check_lib_save_LIBS=$LIBS
4263 cat >conftest.$ac_ext <<_ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4270 /* Override any gcc2 internal prototype to avoid an error. */
4274 /* We use char because int might match the return type of a gcc2
4275 builtin and then its argument prototype would still apply. */
4285 rm -f conftest.$ac_objext conftest$ac_exeext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4287 (eval $ac_link) 2>conftest.er1
4289 grep -v '^ *+' conftest.er1 >conftest.err
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag"
4295 || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest$ac_exeext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_cv_lib_l_yywrap=yes
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 ac_cv_lib_l_yywrap=no
4314 rm -f conftest.err conftest.$ac_objext \
4315 conftest$ac_exeext conftest.$ac_ext
4316 LIBS=$ac_check_lib_save_LIBS
4318 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4319 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4320 if test $ac_cv_lib_l_yywrap = yes; then
4328 if test "x$LEX" != "x:"; then
4329 echo "$as_me:$LINENO: checking lex output file root" >&5
4330 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4331 if test "${ac_cv_prog_lex_root+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 # The minimal lex program is just a single line: %%. But some broken lexes
4335 # (Solaris, I think it was) want two %% lines, so accommodate them.
4336 cat >conftest.l <<_ACEOF
4340 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4341 (eval $LEX conftest.l) 2>&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }
4345 if test -f lex.yy.c; then
4346 ac_cv_prog_lex_root=lex.yy
4347 elif test -f lexyy.c; then
4348 ac_cv_prog_lex_root=lexyy
4350 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4351 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4352 { (exit 1); exit 1; }; }
4355 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4356 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4358 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4360 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4361 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4362 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 # POSIX says lex can declare yytext either as a pointer or an array; the
4366 # default is implementation-dependent. Figure out which it is, since
4367 # not all implementations provide the %pointer and %array declarations.
4368 ac_cv_prog_lex_yytext_pointer=no
4369 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4371 LIBS="$LIBS $LEXLIB"
4372 cat >conftest.$ac_ext <<_ACEOF
4373 `cat $LEX_OUTPUT_ROOT.c`
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4377 (eval $ac_link) 2>conftest.er1
4379 grep -v '^ *+' conftest.er1 >conftest.err
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try='test -z "$ac_c_werror_flag"
4385 || test ! -s conftest.err'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; } &&
4391 { ac_try='test -s conftest$ac_exeext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_cv_prog_lex_yytext_pointer=yes
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4403 rm -f conftest.err conftest.$ac_objext \
4404 conftest$ac_exeext conftest.$ac_ext
4406 rm -f "${LEX_OUTPUT_ROOT}.c"
4409 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4410 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4411 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4413 cat >>confdefs.h <<\_ACEOF
4414 #define YYTEXT_POINTER 1
4422 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4423 echo "${ECHO_T}$ac_cv_has_flex" >&6
4424 if test "$LEX" != "flex"; then
4425 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4426 echo "$as_me: error: flex not found but required" >&2;}
4427 { (exit 1); exit 1; }; }
4433 echo "$as_me:$LINENO: checking " >&5
4434 echo $ECHO_N "checking ... $ECHO_C" >&6
4435 if test "${llvm_cv_has_bison+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 for ac_prog in 'bison -y' byacc
4440 # Extract the first word of "$ac_prog", so it can be a program name with args.
4441 set dummy $ac_prog; ac_word=$2
4442 echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444 if test "${ac_cv_prog_YACC+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 if test -n "$YACC"; then
4448 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457 ac_cv_prog_YACC="$ac_prog"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 YACC=$ac_cv_prog_YACC
4467 if test -n "$YACC"; then
4468 echo "$as_me:$LINENO: result: $YACC" >&5
4469 echo "${ECHO_T}$YACC" >&6
4471 echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6
4475 test -n "$YACC" && break
4477 test -n "$YACC" || YACC="yacc"
4480 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4481 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4482 if test "$YACC" != "bison -y"; then
4483 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4484 echo "$as_me: error: bison not found but required" >&2;}
4485 { (exit 1); exit 1; }; }
4491 echo "$as_me:$LINENO: checking for GNU make" >&5
4492 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4493 if test "${llvm_cv_gnu_make_command+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 llvm_cv_gnu_make_command=''
4497 for a in "$MAKE" make gmake gnumake ; do
4498 if test -z "$a" ; then continue ; fi ;
4499 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4501 llvm_cv_gnu_make_command=$a ;
4506 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4507 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4508 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4512 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4513 echo "${ECHO_T}\"Not found\"" >&6;
4517 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4518 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4520 if test "$LN_S" = "ln -s"; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522 echo "${ECHO_T}yes" >&6
4524 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4525 echo "${ECHO_T}no, using $LN_S" >&6
4528 # Extract the first word of "cmp", so it can be a program name with args.
4529 set dummy cmp; ac_word=$2
4530 echo "$as_me:$LINENO: checking for $ac_word" >&5
4531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4532 if test "${ac_cv_path_CMP+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4560 if test -n "$CMP"; then
4561 echo "$as_me:$LINENO: result: $CMP" >&5
4562 echo "${ECHO_T}$CMP" >&6
4564 echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6
4568 # Extract the first word of "cp", so it can be a program name with args.
4569 set dummy cp; ac_word=$2
4570 echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4572 if test "${ac_cv_path_CP+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4600 if test -n "$CP"; then
4601 echo "$as_me:$LINENO: result: $CP" >&5
4602 echo "${ECHO_T}$CP" >&6
4604 echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6
4608 # Extract the first word of "date", so it can be a program name with args.
4609 set dummy date; ac_word=$2
4610 echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4612 if test "${ac_cv_path_DATE+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4638 DATE=$ac_cv_path_DATE
4640 if test -n "$DATE"; then
4641 echo "$as_me:$LINENO: result: $DATE" >&5
4642 echo "${ECHO_T}$DATE" >&6
4644 echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6
4648 # Extract the first word of "find", so it can be a program name with args.
4649 set dummy find; ac_word=$2
4650 echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4652 if test "${ac_cv_path_FIND+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4678 FIND=$ac_cv_path_FIND
4680 if test -n "$FIND"; then
4681 echo "$as_me:$LINENO: result: $FIND" >&5
4682 echo "${ECHO_T}$FIND" >&6
4684 echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6
4688 # Extract the first word of "grep", so it can be a program name with args.
4689 set dummy grep; ac_word=$2
4690 echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692 if test "${ac_cv_path_GREP+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4718 GREP=$ac_cv_path_GREP
4720 if test -n "$GREP"; then
4721 echo "$as_me:$LINENO: result: $GREP" >&5
4722 echo "${ECHO_T}$GREP" >&6
4724 echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6
4728 # Extract the first word of "mkdir", so it can be a program name with args.
4729 set dummy mkdir; ac_word=$2
4730 echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732 if test "${ac_cv_path_MKDIR+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4758 MKDIR=$ac_cv_path_MKDIR
4760 if test -n "$MKDIR"; then
4761 echo "$as_me:$LINENO: result: $MKDIR" >&5
4762 echo "${ECHO_T}$MKDIR" >&6
4764 echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6
4768 # Extract the first word of "mv", so it can be a program name with args.
4769 set dummy mv; ac_word=$2
4770 echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772 if test "${ac_cv_path_MV+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4800 if test -n "$MV"; then
4801 echo "$as_me:$LINENO: result: $MV" >&5
4802 echo "${ECHO_T}$MV" >&6
4804 echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6
4808 # Extract the first word of "pax", so it can be a program name with args.
4809 set dummy pax; ac_word=$2
4810 echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812 if test "${ac_cv_path_PAX+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4840 if test -n "$PAX"; then
4841 echo "$as_me:$LINENO: result: $PAX" >&5
4842 echo "${ECHO_T}$PAX" >&6
4844 echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6
4848 if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_RANLIB+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 if test -n "$RANLIB"; then
4857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 RANLIB=$ac_cv_prog_RANLIB
4876 if test -n "$RANLIB"; then
4877 echo "$as_me:$LINENO: result: $RANLIB" >&5
4878 echo "${ECHO_T}$RANLIB" >&6
4880 echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6
4885 if test -z "$ac_cv_prog_RANLIB"; then
4886 ac_ct_RANLIB=$RANLIB
4887 # Extract the first word of "ranlib", so it can be a program name with args.
4888 set dummy ranlib; ac_word=$2
4889 echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 if test -n "$ac_ct_RANLIB"; then
4895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904 ac_cv_prog_ac_ct_RANLIB="ranlib"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4915 if test -n "$ac_ct_RANLIB"; then
4916 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4917 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4919 echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6
4923 RANLIB=$ac_ct_RANLIB
4925 RANLIB="$ac_cv_prog_RANLIB"
4928 # Extract the first word of "rm", so it can be a program name with args.
4929 set dummy rm; ac_word=$2
4930 echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4932 if test "${ac_cv_path_RM+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4960 if test -n "$RM"; then
4961 echo "$as_me:$LINENO: result: $RM" >&5
4962 echo "${ECHO_T}$RM" >&6
4964 echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6
4968 # Extract the first word of "sed", so it can be a program name with args.
4969 set dummy sed; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_path_SED+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5000 if test -n "$SED"; then
5001 echo "$as_me:$LINENO: result: $SED" >&5
5002 echo "${ECHO_T}$SED" >&6
5004 echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6
5008 # Extract the first word of "tar", so it can be a program name with args.
5009 set dummy tar; ac_word=$2
5010 echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012 if test "${ac_cv_path_TAR+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5040 if test -n "$TAR"; then
5041 echo "$as_me:$LINENO: result: $TAR" >&5
5042 echo "${ECHO_T}$TAR" >&6
5044 echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5049 # Find a good install program. We prefer a C program (faster),
5050 # so one script is as good as another. But avoid the broken or
5051 # incompatible versions:
5052 # SysV /etc/install, /usr/sbin/install
5053 # SunOS /usr/etc/install
5054 # IRIX /sbin/install
5056 # AmigaOS /C/install, which installs bootblocks on floppy discs
5057 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5058 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5059 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5060 # OS/2's system install, which has a completely different semantic
5061 # ./install, which can be erroneously created by make from ./install.sh.
5062 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5063 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5064 if test -z "$INSTALL"; then
5065 if test "${ac_cv_path_install+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 # Account for people who put trailing slashes in PATH elements.
5075 ./ | .// | /cC/* | \
5076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5077 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5080 # OSF1 and SCO ODT 3.0 have their own names for install.
5081 # Don't use installbsd from OSF since it installs stuff as root
5083 for ac_prog in ginstall scoinst install; do
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5086 if test $ac_prog = install &&
5087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5088 # AIX install. It has an incompatible calling convention.
5090 elif test $ac_prog = install &&
5091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5092 # program-specific install script used by HP pwplus--don't use.
5095 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5107 if test "${ac_cv_path_install+set}" = set; then
5108 INSTALL=$ac_cv_path_install
5110 # As a last resort, use the slow shell script. We don't cache a
5111 # path for INSTALL within a source directory, because that will
5112 # break other packages using the cache if that directory is
5113 # removed, or if the path is relative.
5114 INSTALL=$ac_install_sh
5117 echo "$as_me:$LINENO: result: $INSTALL" >&5
5118 echo "${ECHO_T}$INSTALL" >&6
5120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5121 # It thinks the first close brace ends the variable substitution.
5122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5129 # Extract the first word of "bzip2", so it can be a program name with args.
5130 set dummy bzip2; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_path_BZIP2+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5159 BZIP2=$ac_cv_path_BZIP2
5161 if test -n "$BZIP2"; then
5162 echo "$as_me:$LINENO: result: $BZIP2" >&5
5163 echo "${ECHO_T}$BZIP2" >&6
5165 echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6
5169 # Extract the first word of "dot", so it can be a program name with args.
5170 set dummy dot; ac_word=$2
5171 echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173 if test "${ac_cv_path_DOT+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5201 if test -n "$DOT"; then
5202 echo "$as_me:$LINENO: result: $DOT" >&5
5203 echo "${ECHO_T}$DOT" >&6
5205 echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6
5209 # Extract the first word of "doxygen", so it can be a program name with args.
5210 set dummy doxygen; ac_word=$2
5211 echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5213 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5239 DOXYGEN=$ac_cv_path_DOXYGEN
5241 if test -n "$DOXYGEN"; then
5242 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5243 echo "${ECHO_T}$DOXYGEN" >&6
5245 echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5249 # Extract the first word of "etags", so it can be a program name with args.
5250 set dummy etags; ac_word=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_path_ETAGS+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5279 ETAGS=$ac_cv_path_ETAGS
5281 if test -n "$ETAGS"; then
5282 echo "$as_me:$LINENO: result: $ETAGS" >&5
5283 echo "${ECHO_T}$ETAGS" >&6
5285 echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5289 # Extract the first word of "groff", so it can be a program name with args.
5290 set dummy groff; ac_word=$2
5291 echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293 if test "${ac_cv_path_GROFF+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5319 GROFF=$ac_cv_path_GROFF
5321 if test -n "$GROFF"; then
5322 echo "$as_me:$LINENO: result: $GROFF" >&5
5323 echo "${ECHO_T}$GROFF" >&6
5325 echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6
5329 # Extract the first word of "gzip", so it can be a program name with args.
5330 set dummy gzip; ac_word=$2
5331 echo "$as_me:$LINENO: checking for $ac_word" >&5
5332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333 if test "${ac_cv_path_GZIP+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5359 GZIP=$ac_cv_path_GZIP
5361 if test -n "$GZIP"; then
5362 echo "$as_me:$LINENO: result: $GZIP" >&5
5363 echo "${ECHO_T}$GZIP" >&6
5365 echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6
5369 # Extract the first word of "pod2html", so it can be a program name with args.
5370 set dummy pod2html; ac_word=$2
5371 echo "$as_me:$LINENO: checking for $ac_word" >&5
5372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5373 if test "${ac_cv_path_POD2HTML+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5399 POD2HTML=$ac_cv_path_POD2HTML
5401 if test -n "$POD2HTML"; then
5402 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5403 echo "${ECHO_T}$POD2HTML" >&6
5405 echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6
5409 # Extract the first word of "pod2man", so it can be a program name with args.
5410 set dummy pod2man; ac_word=$2
5411 echo "$as_me:$LINENO: checking for $ac_word" >&5
5412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5413 if test "${ac_cv_path_POD2MAN+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5439 POD2MAN=$ac_cv_path_POD2MAN
5441 if test -n "$POD2MAN"; then
5442 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5443 echo "${ECHO_T}$POD2MAN" >&6
5445 echo "$as_me:$LINENO: result: no" >&5
5446 echo "${ECHO_T}no" >&6
5449 # Extract the first word of "runtest", so it can be a program name with args.
5450 set dummy runtest; ac_word=$2
5451 echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5453 if test "${ac_cv_path_RUNTEST+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5479 RUNTEST=$ac_cv_path_RUNTEST
5481 if test -n "$RUNTEST"; then
5482 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5483 echo "${ECHO_T}$RUNTEST" >&6
5485 echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6
5491 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5492 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5494 # Check whether --with-tclinclude or --without-tclinclude was given.
5495 if test "${with_tclinclude+set}" = set; then
5496 withval="$with_tclinclude"
5497 with_tclinclude=${withval}
5501 if test "${ac_cv_path_tclsh+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 if test x"${with_tclinclude}" != x ; then
5506 if test -f ${with_tclinclude}/tclsh ; then
5507 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5508 elif test -f ${with_tclinclude}/src/tclsh ; then
5509 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5511 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5512 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5513 { (exit 1); exit 1; }; }
5517 if test x"${ac_cv_path_tclsh}" = x ; then
5518 echo "$as_me:$LINENO: result: none" >&5
5519 echo "${ECHO_T}none" >&6
5520 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 .tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
5522 # Extract the first word of "$ac_prog", so it can be a program name with args.
5523 set dummy $ac_prog; ac_word=$2
5524 echo "$as_me:$LINENO: checking for $ac_word" >&5
5525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5526 if test "${ac_cv_path_TCLSH+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 TCLSH=$ac_cv_path_TCLSH
5553 if test -n "$TCLSH"; then
5554 echo "$as_me:$LINENO: result: $TCLSH" >&5
5555 echo "${ECHO_T}$TCLSH" >&6
5557 echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6
5561 test -n "$TCLSH" && break
5564 if test x"${TCLSH}" = x ; then
5565 ac_cv_path_tclsh='';
5567 ac_cv_path_tclsh="${TCLSH}";
5570 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5571 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5572 TCLSH="${ac_cv_path_tclsh}"
5578 # Extract the first word of "zip", so it can be a program name with args.
5579 set dummy zip; ac_word=$2
5580 echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5582 if test "${ac_cv_path_ZIP+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5610 if test -n "$ZIP"; then
5611 echo "$as_me:$LINENO: result: $ZIP" >&5
5612 echo "${ECHO_T}$ZIP" >&6
5614 echo "$as_me:$LINENO: result: no" >&5
5615 echo "${ECHO_T}no" >&6
5619 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5620 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5621 if test "${llvm_cv_link_use_r+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 ac_cpp='$CPP $CPPFLAGS'
5626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5631 CFLAGS="$CFLAGS -Wl,-R."
5632 cat >conftest.$ac_ext <<_ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5642 int main() { return 0; }
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649 (eval $ac_link) 2>conftest.er1
5651 grep -v '^ *+' conftest.er1 >conftest.err
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -z "$ac_c_werror_flag"
5657 || test ! -s conftest.err'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try='test -s conftest$ac_exeext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 llvm_cv_link_use_r=yes
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 llvm_cv_link_use_r=no
5676 rm -f conftest.err conftest.$ac_objext \
5677 conftest$ac_exeext conftest.$ac_ext
5680 ac_cpp='$CPP $CPPFLAGS'
5681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5688 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5689 if test "$llvm_cv_link_use_r" = yes ; then
5691 cat >>confdefs.h <<\_ACEOF
5692 #define HAVE_LINK_R 1
5700 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5701 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5702 if test "${ac_cv_c_const+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 cat >conftest.$ac_ext <<_ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5715 /* FIXME: Include the comments suggested by Paul. */
5717 /* Ultrix mips cc rejects this. */
5718 typedef int charset[2];
5720 /* SunOS 4.1.1 cc rejects this. */
5721 char const *const *ccp;
5723 /* NEC SVR4.0.2 mips cc rejects this. */
5724 struct point {int x, y;};
5725 static struct point const zero = {0,0};
5726 /* AIX XL C 1.02.0.0 rejects this.
5727 It does not let you subtract one const X* pointer from another in
5728 an arm of an if-expression whose if-part is not a constant
5730 const char *g = "string";
5731 ccp = &g + (g ? g-g : 0);
5732 /* HPUX 7.0 cc rejects these. */
5735 ccp = (char const *const *) p;
5736 { /* SCO 3.2v4 cc rejects this. */
5738 char const *s = 0 ? (char *) 0 : (char const *) 0;
5742 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5744 const int *foo = &x[0];
5747 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5748 typedef const int *iptr;
5752 { /* AIX XL C 1.02.0.0 rejects this saying
5753 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5754 struct s { int j; const int *ap[3]; };
5755 struct s *b; b->j = 5;
5757 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5766 rm -f conftest.$ac_objext
5767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768 (eval $ac_compile) 2>conftest.er1
5770 grep -v '^ *+' conftest.er1 >conftest.err
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -z "$ac_c_werror_flag"
5776 || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5797 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5798 echo "${ECHO_T}$ac_cv_c_const" >&6
5799 if test $ac_cv_c_const = no; then
5801 cat >>confdefs.h <<\_ACEOF
5808 echo "$as_me:$LINENO: checking for egrep" >&5
5809 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5810 if test "${ac_cv_prog_egrep+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5814 then ac_cv_prog_egrep='grep -E'
5815 else ac_cv_prog_egrep='egrep'
5818 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5819 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5820 EGREP=$ac_cv_prog_egrep
5823 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5824 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5825 if test "${ac_cv_header_stdc+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 cat >conftest.$ac_ext <<_ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849 (eval $ac_compile) 2>conftest.er1
5851 grep -v '^ *+' conftest.er1 >conftest.err
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_c_werror_flag"
5857 || test ! -s conftest.err'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; } &&
5863 { ac_try='test -s conftest.$ac_objext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_cv_header_stdc=yes
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 ac_cv_header_stdc=no
5876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5878 if test $ac_cv_header_stdc = yes; then
5879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5890 $EGREP "memchr" >/dev/null 2>&1; then
5893 ac_cv_header_stdc=no
5899 if test $ac_cv_header_stdc = yes; then
5900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5901 cat >conftest.$ac_ext <<_ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5911 $EGREP "free" >/dev/null 2>&1; then
5914 ac_cv_header_stdc=no
5920 if test $ac_cv_header_stdc = yes; then
5921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5922 if test "$cross_compiling" = yes; then
5925 cat >conftest.$ac_ext <<_ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5932 #if ((' ' & 0x0FF) == 0x020)
5933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5936 # define ISLOWER(c) \
5937 (('a' <= (c) && (c) <= 'i') \
5938 || ('j' <= (c) && (c) <= 'r') \
5939 || ('s' <= (c) && (c) <= 'z'))
5940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5948 for (i = 0; i < 256; i++)
5949 if (XOR (islower (i), ISLOWER (i))
5950 || toupper (i) != TOUPPER (i))
5955 rm -f conftest$ac_exeext
5956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5957 (eval $ac_link) 2>&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5968 echo "$as_me: program exited with status $ac_status" >&5
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_cv_header_stdc=no
5975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5979 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5980 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5981 if test $ac_cv_header_stdc = yes; then
5983 cat >>confdefs.h <<\_ACEOF
5984 #define STDC_HEADERS 1
5995 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5996 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5997 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5998 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <sys/types.h>
6020 rm -f conftest.$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag"
6030 || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 eval "$as_ac_Header=yes"
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6047 eval "$as_ac_Header=no"
6049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6054 cat >>confdefs.h <<_ACEOF
6055 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6058 ac_header_dirent=$ac_hdr; break
6062 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6063 if test $ac_header_dirent = dirent.h; then
6064 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6065 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6066 if test "${ac_cv_search_opendir+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 ac_func_search_save_LIBS=$LIBS
6070 ac_cv_search_opendir=no
6071 cat >conftest.$ac_ext <<_ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6078 /* Override any gcc2 internal prototype to avoid an error. */
6082 /* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6093 rm -f conftest.$ac_objext conftest$ac_exeext
6094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6095 (eval $ac_link) 2>conftest.er1
6097 grep -v '^ *+' conftest.er1 >conftest.err
6099 cat conftest.err >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } &&
6102 { ac_try='test -z "$ac_c_werror_flag"
6103 || test ! -s conftest.err'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; } &&
6109 { ac_try='test -s conftest$ac_exeext'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; }; then
6115 ac_cv_search_opendir="none required"
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6121 rm -f conftest.err conftest.$ac_objext \
6122 conftest$ac_exeext conftest.$ac_ext
6123 if test "$ac_cv_search_opendir" = no; then
6124 for ac_lib in dir; do
6125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6126 cat >conftest.$ac_ext <<_ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6133 /* Override any gcc2 internal prototype to avoid an error. */
6137 /* We use char because int might match the return type of a gcc2
6138 builtin and then its argument prototype would still apply. */
6148 rm -f conftest.$ac_objext conftest$ac_exeext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150 (eval $ac_link) 2>conftest.er1
6152 grep -v '^ *+' conftest.er1 >conftest.err
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try='test -z "$ac_c_werror_flag"
6158 || test ! -s conftest.err'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest$ac_exeext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_search_opendir="-l$ac_lib"
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6177 rm -f conftest.err conftest.$ac_objext \
6178 conftest$ac_exeext conftest.$ac_ext
6181 LIBS=$ac_func_search_save_LIBS
6183 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6184 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6185 if test "$ac_cv_search_opendir" != no; then
6186 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6191 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6192 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6193 if test "${ac_cv_search_opendir+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 ac_func_search_save_LIBS=$LIBS
6197 ac_cv_search_opendir=no
6198 cat >conftest.$ac_ext <<_ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6205 /* Override any gcc2 internal prototype to avoid an error. */
6209 /* We use char because int might match the return type of a gcc2
6210 builtin and then its argument prototype would still apply. */
6220 rm -f conftest.$ac_objext conftest$ac_exeext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6222 (eval $ac_link) 2>conftest.er1
6224 grep -v '^ *+' conftest.er1 >conftest.err
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -z "$ac_c_werror_flag"
6230 || test ! -s conftest.err'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; } &&
6236 { ac_try='test -s conftest$ac_exeext'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_search_opendir="none required"
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6248 rm -f conftest.err conftest.$ac_objext \
6249 conftest$ac_exeext conftest.$ac_ext
6250 if test "$ac_cv_search_opendir" = no; then
6252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6253 cat >conftest.$ac_ext <<_ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6260 /* Override any gcc2 internal prototype to avoid an error. */
6264 /* We use char because int might match the return type of a gcc2
6265 builtin and then its argument prototype would still apply. */
6275 rm -f conftest.$ac_objext conftest$ac_exeext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6277 (eval $ac_link) 2>conftest.er1
6279 grep -v '^ *+' conftest.er1 >conftest.err
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -z "$ac_c_werror_flag"
6285 || test ! -s conftest.err'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest$ac_exeext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_search_opendir="-l$ac_lib"
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6304 rm -f conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6308 LIBS=$ac_func_search_save_LIBS
6310 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6311 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6312 if test "$ac_cv_search_opendir" != no; then
6313 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6319 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6329 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6330 inttypes.h stdint.h unistd.h
6332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6333 echo "$as_me:$LINENO: checking for $ac_header" >&5
6334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 cat >conftest.$ac_ext <<_ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 $ac_includes_default
6346 #include <$ac_header>
6348 rm -f conftest.$ac_objext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>conftest.er1
6352 grep -v '^ *+' conftest.er1 >conftest.err
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_c_werror_flag"
6358 || test ! -s conftest.err'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest.$ac_objext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 eval "$as_ac_Header=yes"
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 eval "$as_ac_Header=no"
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6382 cat >>confdefs.h <<_ACEOF
6383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6392 for ac_header in dlfcn.h
6394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396 echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6404 # Is the header compilable?
6405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 $ac_includes_default
6414 #include <$ac_header>
6416 rm -f conftest.$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>conftest.er1
6420 grep -v '^ *+' conftest.er1 >conftest.err
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; } &&
6432 { ac_try='test -s conftest.$ac_objext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_header_compiler=yes
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6443 ac_header_compiler=no
6445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6447 echo "${ECHO_T}$ac_header_compiler" >&6
6449 # Is the header present?
6450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 #include <$ac_header>
6460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6463 grep -v '^ *+' conftest.er1 >conftest.err
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } >/dev/null; then
6468 if test -s conftest.err; then
6469 ac_cpp_err=$ac_c_preproc_warn_flag
6470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6477 if test -z "$ac_cpp_err"; then
6478 ac_header_preproc=yes
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 ac_header_preproc=no
6485 rm -f conftest.err conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6487 echo "${ECHO_T}$ac_header_preproc" >&6
6489 # So? What about this header?
6490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6496 ac_header_preproc=yes
6499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6513 ## ----------------------------------- ##
6514 ## Report this to llvmbugs@cs.uiuc.edu ##
6515 ## ----------------------------------- ##
6518 sed "s/^/$as_me: WARNING: /" >&2
6521 echo "$as_me:$LINENO: checking for $ac_header" >&5
6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 eval "$as_ac_Header=\$ac_header_preproc"
6528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533 cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6542 if test "${enable_ltdl_install+set}" = set; then
6543 enableval="$enable_ltdl_install"
6549 if test x"${enable_ltdl_install-no}" != xno; then
6551 INSTALL_LTDL_FALSE='#'
6553 INSTALL_LTDL_TRUE='#'
6559 if test x"${enable_ltdl_convenience-no}" != xno; then
6560 CONVENIENCE_LTDL_TRUE=
6561 CONVENIENCE_LTDL_FALSE='#'
6563 CONVENIENCE_LTDL_TRUE='#'
6564 CONVENIENCE_LTDL_FALSE=
6568 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6569 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6571 libname_spec='lib$name'
6579 shlibpath_overrides_runpath=unknown
6581 dynamic_linker="$host_os ld.so"
6582 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6583 if test "$GCC" = yes; then
6584 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6585 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6586 # if the path contains ";" then we assume it to be the separator
6587 # otherwise default to the standard path separator (i.e. ":") - it is
6588 # assumed that no part of a normal pathname contains ";" but that should
6589 # okay in the real world where ";" in dirpaths is itself problematic.
6590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6595 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6597 need_lib_prefix=unknown
6598 hardcode_into_libs=no
6600 # when you set need_version to no, make sure it does not cause -set_version
6601 # flags to be left without arguments
6602 need_version=unknown
6607 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6608 shlibpath_var=LIBPATH
6610 # AIX 3 has no versioning support, so we append a major version to the name.
6611 soname_spec='${libname}${release}${shared_ext}$major'
6618 hardcode_into_libs=yes
6619 if test "$host_cpu" = ia64; then
6620 # AIX 5 supports IA64
6621 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6622 shlibpath_var=LD_LIBRARY_PATH
6624 # With GCC up to 2.95.x, collect2 would create an import file
6625 # for dependence libraries. The import file would start with
6626 # the line `#! .'. This would cause the generated library to
6627 # depend on `.', always an invalid library. This was fixed in
6628 # development snapshots of GCC prior to 3.0.
6630 aix4 | aix4.[01] | aix4.[01].*)
6631 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6633 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6640 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6641 # soname into executable. Probably we can add versioning support to
6642 # collect2, so additional links can be useful in future.
6643 if test "$aix_use_runtimelinking" = yes; then
6644 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6645 # instead of lib<name>.a to let people know that these are not
6646 # typical AIX shared libraries.
6647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6649 # We preserve .a as extension for shared libraries through AIX4.2
6650 # and later when we are not doing run time linking.
6651 library_names_spec='${libname}${release}.a $libname.a'
6652 soname_spec='${libname}${release}${shared_ext}$major'
6654 shlibpath_var=LIBPATH
6659 library_names_spec='$libname.ixlibrary $libname.a'
6660 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6661 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'
6665 library_names_spec='${libname}${shared_ext}'
6666 dynamic_linker="$host_os ld.so"
6667 shlibpath_var=LIBRARY_PATH
6673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6674 soname_spec='${libname}${release}${shared_ext}$major'
6675 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6676 shlibpath_var=LD_LIBRARY_PATH
6677 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6678 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6679 # the default ld.so.conf also contains /usr/contrib/lib and
6680 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6681 # libtool to hard-code these into programs
6684 cygwin* | mingw* | pw32*)
6685 version_type=windows
6690 case $GCC,$host_os in
6691 yes,cygwin* | yes,mingw* | yes,pw32*)
6692 library_names_spec='$libname.dll.a'
6693 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6694 postinstall_cmds='base_file=`basename \${file}`~
6695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6696 dldir=$destdir/`dirname \$dlpath`~
6697 test -d \$dldir || mkdir -p \$dldir~
6698 $install_prog $dir/$dlname \$dldir/$dlname'
6699 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6700 dlpath=$dir/\$dldll~
6702 shlibpath_overrides_runpath=yes
6706 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6707 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6708 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6711 # MinGW DLLs use traditional 'lib' prefix
6712 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6713 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6714 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6715 # It is most probably a Windows format PATH printed by
6716 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6717 # path with ; separators, and with drive letters. We can handle the
6718 # drive letters (cygwin fileutils understands them), so leave them,
6719 # especially as we might pass files found there to a mingw objdump,
6720 # which wouldn't understand a cygwinified path. Ahh.
6721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6727 # pw32 DLLs use 'pw' prefix rather than 'lib'
6728 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6734 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6737 dynamic_linker='Win32 ld.exe'
6738 # FIXME: first we should search . and the directory the executable is in
6742 darwin* | rhapsody*)
6743 dynamic_linker="$host_os dyld"
6747 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6748 soname_spec='${libname}${release}${major}$shared_ext'
6749 shlibpath_overrides_runpath=yes
6750 shlibpath_var=DYLD_LIBRARY_PATH
6751 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6752 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6753 if test "$GCC" = yes; then
6754 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"`
6756 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6758 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6766 soname_spec='${libname}${release}${shared_ext}$major'
6767 shlibpath_var=LD_LIBRARY_PATH
6778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6779 soname_spec='${libname}${release}${shared_ext}$major'
6780 shlibpath_var=LD_LIBRARY_PATH
6781 shlibpath_overrides_runpath=no
6782 hardcode_into_libs=yes
6783 dynamic_linker='GNU ld.so'
6787 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6788 version_type=freebsd-$objformat
6789 case $version_type in
6791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6800 shlibpath_var=LD_LIBRARY_PATH
6803 shlibpath_overrides_runpath=yes
6805 freebsd3.01* | freebsdelf3.01*)
6806 shlibpath_overrides_runpath=yes
6807 hardcode_into_libs=yes
6810 shlibpath_overrides_runpath=no
6811 hardcode_into_libs=yes
6820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6821 soname_spec='${libname}${release}${shared_ext}$major'
6822 shlibpath_var=LD_LIBRARY_PATH
6823 hardcode_into_libs=yes
6826 hpux9* | hpux10* | hpux11*)
6827 # Give a soname corresponding to the major version so that dld.sl refuses to
6828 # link against other versions.
6835 hardcode_into_libs=yes
6836 dynamic_linker="$host_os dld.so"
6837 shlibpath_var=LD_LIBRARY_PATH
6838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6840 soname_spec='${libname}${release}${shared_ext}$major'
6841 if test "X$HPUX_IA64_MODE" = X32; then
6842 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6844 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6850 hardcode_into_libs=yes
6851 dynamic_linker="$host_os dld.sl"
6852 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6855 soname_spec='${libname}${release}${shared_ext}$major'
6856 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6861 dynamic_linker="$host_os dld.sl"
6862 shlibpath_var=SHLIB_PATH
6863 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6865 soname_spec='${libname}${release}${shared_ext}$major'
6868 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6869 postinstall_cmds='chmod 555 $lib'
6872 irix5* | irix6* | nonstopux*)
6874 nonstopux*) version_type=nonstopux ;;
6876 if test "$lt_cv_prog_gnu_ld" = yes; then
6884 soname_spec='${libname}${release}${shared_ext}$major'
6885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6887 irix5* | nonstopux*)
6891 case $LD in # libtool.m4 will add one of these switches to LD
6892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6893 libsuff= shlibsuff= libmagic=32-bit;;
6894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6895 libsuff=32 shlibsuff=N32 libmagic=N32;;
6896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6897 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6898 *) libsuff= shlibsuff= libmagic=never-match;;
6902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6903 shlibpath_overrides_runpath=no
6904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6906 hardcode_into_libs=yes
6909 # No shared lib support for Linux oldld, aout, or coff.
6910 linux*oldld* | linux*aout* | linux*coff*)
6914 # This must be Linux ELF.
6919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6920 soname_spec='${libname}${release}${shared_ext}$major'
6921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6922 shlibpath_var=LD_LIBRARY_PATH
6923 shlibpath_overrides_runpath=no
6924 # This implies no fast_install, which is unacceptable.
6925 # Some rework will be needed to allow for fast_install
6926 # before this can be enabled.
6927 hardcode_into_libs=yes
6929 # Append ld.so.conf contents to the search path
6930 if test -f /etc/ld.so.conf; then
6931 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6935 # We used to test for /lib/ld.so.1 and disable shared libraries on
6936 # powerpc, because MkLinux only supported shared libraries with the
6937 # GNU dynamic linker. Since this was broken with cross compilers,
6938 # most powerpc-linux boxes support dynamic linking these days and
6939 # people can always --disable-shared, the test was removed, and we
6940 # assume the GNU/Linux dynamic linker is in use.
6941 dynamic_linker='GNU/Linux ld.so'
6948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6949 soname_spec='${libname}${release}${shared_ext}$major'
6950 shlibpath_var=LD_LIBRARY_PATH
6951 shlibpath_overrides_runpath=no
6952 hardcode_into_libs=yes
6953 dynamic_linker='GNU ld.so'
6960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6963 dynamic_linker='NetBSD (a.out) ld.so'
6965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6966 soname_spec='${libname}${release}${shared_ext}$major'
6967 dynamic_linker='NetBSD ld.elf_so'
6969 shlibpath_var=LD_LIBRARY_PATH
6970 shlibpath_overrides_runpath=yes
6971 hardcode_into_libs=yes
6976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6977 shlibpath_var=LD_LIBRARY_PATH
6978 shlibpath_overrides_runpath=yes
6985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6986 soname_spec='${libname}${release}${shared_ext}$major'
6987 shlibpath_var=LD_LIBRARY_PATH
6988 shlibpath_overrides_runpath=yes
6995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6997 shlibpath_var=LD_LIBRARY_PATH
6998 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7000 openbsd2.[89] | openbsd2.[89].*)
7001 shlibpath_overrides_runpath=no
7004 shlibpath_overrides_runpath=yes
7008 shlibpath_overrides_runpath=yes
7013 libname_spec='$name'
7016 library_names_spec='$libname${shared_ext} $libname.a'
7017 dynamic_linker='OS/2 ld.exe'
7018 shlibpath_var=LIBPATH
7021 osf3* | osf4* | osf5*)
7025 soname_spec='${libname}${release}${shared_ext}$major'
7026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7027 shlibpath_var=LD_LIBRARY_PATH
7028 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7029 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7034 soname_spec='${libname}${release}${shared_ext}$major'
7035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7036 shlibpath_var=LD_LIBRARY_PATH
7043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7044 soname_spec='${libname}${release}${shared_ext}$major'
7045 shlibpath_var=LD_LIBRARY_PATH
7046 shlibpath_overrides_runpath=yes
7047 hardcode_into_libs=yes
7048 # ldd complains unless libraries are executable
7049 postinstall_cmds='chmod +x $lib'
7054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7056 shlibpath_var=LD_LIBRARY_PATH
7057 shlibpath_overrides_runpath=yes
7058 if test "$with_gnu_ld" = yes; then
7064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7067 soname_spec='${libname}${release}${shared_ext}$major'
7068 shlibpath_var=LD_LIBRARY_PATH
7069 case $host_vendor in
7071 shlibpath_overrides_runpath=no
7073 export_dynamic_flag_spec='${wl}-Blargedynsym'
7074 runpath_var=LD_RUN_PATH
7082 shlibpath_overrides_runpath=no
7083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7089 if test -d /usr/nec ;then
7091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7092 soname_spec='$libname${shared_ext}.$major'
7093 shlibpath_var=LD_LIBRARY_PATH
7099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7100 soname_spec='${libname}${release}${shared_ext}$major'
7101 shlibpath_var=LD_LIBRARY_PATH
7108 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7109 echo "${ECHO_T}$dynamic_linker" >&6
7110 test "$dynamic_linker" = no && can_build_shared=no
7113 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7114 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7115 if test "${libltdl_cv_shlibext+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 eval libltdl_cv_shlibext=$shrext_cmds
7123 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7124 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7125 if test -n "$libltdl_cv_shlibext"; then
7127 cat >>confdefs.h <<_ACEOF
7128 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7134 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7135 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7136 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 libltdl_cv_shlibpath_var="$shlibpath_var"
7141 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7142 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7143 if test -n "$libltdl_cv_shlibpath_var"; then
7145 cat >>confdefs.h <<_ACEOF
7146 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7152 echo "$as_me:$LINENO: checking for the default library search path" >&5
7153 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7154 if test "${libltdl_cv_sys_search_path+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7159 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7160 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7161 if test -n "$libltdl_cv_sys_search_path"; then
7163 for dir in $libltdl_cv_sys_search_path; do
7164 if test -z "$sys_search_path"; then
7165 sys_search_path="$dir"
7167 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7171 cat >>confdefs.h <<_ACEOF
7172 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7177 echo "$as_me:$LINENO: checking for objdir" >&5
7178 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7179 if test "${libltdl_cv_objdir+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 libltdl_cv_objdir="$objdir"
7183 if test -n "$objdir"; then
7186 rm -f .libs 2>/dev/null
7187 mkdir .libs 2>/dev/null
7188 if test -d .libs; then
7189 libltdl_cv_objdir=.libs
7191 # MS-DOS does not allow filenames that begin with a dot.
7192 libltdl_cv_objdir=_libs
7194 rmdir .libs 2>/dev/null
7198 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7199 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7201 cat >>confdefs.h <<_ACEOF
7202 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7206 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7207 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7208 if test "${lt_cv_path_NM+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 if test -n "$NM"; then
7212 # Let the user override the test.
7215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7216 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7218 test -z "$ac_dir" && ac_dir=.
7219 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7220 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7221 # Check to see if the nm accepts a BSD-compat flag.
7222 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7223 # nm: unknown option "B" ignored
7224 # Tru64's nm complains that /dev/null is an invalid object file
7225 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7226 */dev/null* | *'Invalid file or object type'*)
7227 lt_cv_path_NM="$tmp_nm -B"
7231 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7233 lt_cv_path_NM="$tmp_nm -p"
7237 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7238 continue # so that we can try to find one that supports BSD flags
7245 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7248 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7249 echo "${ECHO_T}$lt_cv_path_NM" >&6
7256 # Check for command to grab the raw symbol name followed by C symbol from nm.
7257 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7258 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7259 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 # These are sane defaults that work on at least a few old systems.
7264 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7266 # Character class describing NM global symbol codes.
7267 symcode='[BCDEGRST]'
7269 # Regexp to match symbols that can be accessed directly from C.
7270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7272 # Transform the above into a raw symbol and a C symbol.
7273 symxfrm='\1 \2\3 \3'
7275 # Transform an extracted symbol line into a proper C declaration
7276 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7278 # Transform an extracted symbol line into symbol name and symbol address
7279 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'"
7281 # Define system-specific variables.
7286 cygwin* | mingw* | pw32*)
7287 symcode='[ABCDGISTW]'
7289 hpux*) # Its linker distinguishes data from code symbols
7290 if test "$host_cpu" = ia64; then
7291 symcode='[ABCDEGRST]'
7293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7294 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'"
7297 if test "$host_cpu" = ia64; then
7298 symcode='[ABCDGIRSTW]'
7299 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7300 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'"
7304 symcode='[BCDEGRST]'
7307 symcode='[BCDEGQRST]'
7317 # Handle CRLF in mingw tool chain
7321 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7325 # If we're using GNU nm, then use its standard symbol codes.
7326 case `$NM -V 2>&1` in
7327 *GNU* | *'with BFD'*)
7328 symcode='[ABCDGIRSTW]' ;;
7331 # Try without a prefix undercore, then with it.
7332 for ac_symprfx in "" "_"; do
7334 # Write the raw and C identifiers.
7335 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7337 # Check to see that the pipe works correctly.
7341 cat > conftest.$ac_ext <<EOF
7346 void nm_test_func(){}
7350 int main(){nm_test_var='a';nm_test_func();return(0);}
7353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7354 (eval $ac_compile) 2>&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; then
7358 # Now try to grab the symbols.
7360 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7361 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && test -s "$nlist"; then
7365 # Try sorting and uniquifying the output.
7366 if sort "$nlist" | uniq > "$nlist"T; then
7367 mv -f "$nlist"T "$nlist"
7372 # Make sure that we snagged all the symbols we need.
7373 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7374 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7375 cat <<EOF > conftest.$ac_ext
7381 # Now generate the symbol file.
7382 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7384 cat <<EOF >> conftest.$ac_ext
7385 #if defined (__STDC__) && __STDC__
7386 # define lt_ptr_t void *
7388 # define lt_ptr_t char *
7392 /* The mapping between symbol names and symbols. */
7397 lt_preloaded_symbols[] =
7400 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7401 cat <<\EOF >> conftest.$ac_ext
7409 # Now try linking the two files.
7410 mv conftest.$ac_objext conftstm.$ac_objext
7411 lt_save_LIBS="$LIBS"
7412 lt_save_CFLAGS="$CFLAGS"
7413 LIBS="conftstm.$ac_objext"
7414 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416 (eval $ac_link) 2>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7422 LIBS="$lt_save_LIBS"
7423 CFLAGS="$lt_save_CFLAGS"
7425 echo "cannot find nm_test_func in $nlist" >&5
7428 echo "cannot find nm_test_var in $nlist" >&5
7431 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7434 echo "$progname: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7437 rm -f conftest* conftst*
7439 # Do not use the global_symbol_pipe unless it works.
7440 if test "$pipe_works" = yes; then
7443 lt_cv_sys_global_symbol_pipe=
7449 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7450 lt_cv_sys_global_symbol_to_cdecl=
7452 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7453 echo "$as_me:$LINENO: result: failed" >&5
7454 echo "${ECHO_T}failed" >&6
7456 echo "$as_me:$LINENO: result: ok" >&5
7457 echo "${ECHO_T}ok" >&6
7461 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7462 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7463 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7467 libltdl_cv_preloaded_symbols=yes
7469 libltdl_cv_preloaded_symbols=no
7473 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7474 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7475 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7477 cat >>confdefs.h <<\_ACEOF
7478 #define HAVE_PRELOADED_SYMBOLS 1
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7492 echo "$as_me:$LINENO: checking for shl_load" >&5
7493 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7494 if test "${ac_cv_func_shl_load+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 cat >conftest.$ac_ext <<_ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7503 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7505 #define shl_load innocuous_shl_load
7507 /* System header to define __stub macros and hopefully few prototypes,
7508 which can conflict with char shl_load (); below.
7509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7510 <limits.h> exists even on freestanding compilers. */
7513 # include <limits.h>
7515 # include <assert.h>
7520 /* Override any gcc2 internal prototype to avoid an error. */
7525 /* We use char because int might match the return type of a gcc2
7526 builtin and then its argument prototype would still apply. */
7528 /* The GNU C library defines this for functions which it implements
7529 to always fail with ENOSYS. Some functions are actually named
7530 something starting with __ and the normal name is an alias. */
7531 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7534 char (*f) () = shl_load;
7543 return f != shl_load;
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7550 (eval $ac_link) 2>conftest.er1
7552 grep -v '^ *+' conftest.er1 >conftest.err
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } &&
7557 { ac_try='test -z "$ac_c_werror_flag"
7558 || test ! -s conftest.err'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; } &&
7564 { ac_try='test -s conftest$ac_exeext'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; }; then
7570 ac_cv_func_shl_load=yes
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_cv_func_shl_load=no
7577 rm -f conftest.err conftest.$ac_objext \
7578 conftest$ac_exeext conftest.$ac_ext
7580 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7581 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7582 if test $ac_cv_func_shl_load = yes; then
7584 cat >>confdefs.h <<\_ACEOF
7585 #define HAVE_SHL_LOAD 1
7589 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7590 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7591 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_check_lib_save_LIBS=$LIBS
7596 cat >conftest.$ac_ext <<_ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7603 /* Override any gcc2 internal prototype to avoid an error. */
7607 /* We use char because int might match the return type of a gcc2
7608 builtin and then its argument prototype would still apply. */
7618 rm -f conftest.$ac_objext conftest$ac_exeext
7619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7620 (eval $ac_link) 2>conftest.er1
7622 grep -v '^ *+' conftest.er1 >conftest.err
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -z "$ac_c_werror_flag"
7628 || test ! -s conftest.err'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; } &&
7634 { ac_try='test -s conftest$ac_exeext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 ac_cv_lib_dld_shl_load=yes
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 ac_cv_lib_dld_shl_load=no
7647 rm -f conftest.err conftest.$ac_objext \
7648 conftest$ac_exeext conftest.$ac_ext
7649 LIBS=$ac_check_lib_save_LIBS
7651 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7652 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7653 if test $ac_cv_lib_dld_shl_load = yes; then
7655 cat >>confdefs.h <<\_ACEOF
7656 #define HAVE_SHL_LOAD 1
7659 LIBADD_DL="$LIBADD_DL -ldld"
7661 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7662 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7663 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 ac_check_lib_save_LIBS=$LIBS
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7675 /* Override any gcc2 internal prototype to avoid an error. */
7679 /* We use char because int might match the return type of a gcc2
7680 builtin and then its argument prototype would still apply. */
7690 rm -f conftest.$ac_objext conftest$ac_exeext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692 (eval $ac_link) 2>conftest.er1
7694 grep -v '^ *+' conftest.er1 >conftest.err
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -z "$ac_c_werror_flag"
7700 || test ! -s conftest.err'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; } &&
7706 { ac_try='test -s conftest$ac_exeext'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
7712 ac_cv_lib_dl_dlopen=yes
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7717 ac_cv_lib_dl_dlopen=no
7719 rm -f conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721 LIBS=$ac_check_lib_save_LIBS
7723 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7724 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7725 if test $ac_cv_lib_dl_dlopen = yes; then
7727 cat >>confdefs.h <<\_ACEOF
7728 #define HAVE_LIBDL 1
7731 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7733 cat >conftest.$ac_ext <<_ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753 (eval $ac_link) 2>conftest.er1
7755 grep -v '^ *+' conftest.er1 >conftest.err
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -z "$ac_c_werror_flag"
7761 || test ! -s conftest.err'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; } &&
7767 { ac_try='test -s conftest$ac_exeext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7774 cat >>confdefs.h <<\_ACEOF
7775 #define HAVE_LIBDL 1
7777 libltdl_cv_func_dlopen="yes"
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7783 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7784 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 ac_check_lib_save_LIBS=$LIBS
7789 cat >conftest.$ac_ext <<_ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7796 /* Override any gcc2 internal prototype to avoid an error. */
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7811 rm -f conftest.$ac_objext conftest$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813 (eval $ac_link) 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest$ac_exeext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_cv_lib_svld_dlopen=yes
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_cv_lib_svld_dlopen=no
7840 rm -f conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7842 LIBS=$ac_check_lib_save_LIBS
7844 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7845 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7846 if test $ac_cv_lib_svld_dlopen = yes; then
7848 cat >>confdefs.h <<\_ACEOF
7849 #define HAVE_LIBDL 1
7852 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7854 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7855 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7856 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 ac_check_lib_save_LIBS=$LIBS
7861 cat >conftest.$ac_ext <<_ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7868 /* Override any gcc2 internal prototype to avoid an error. */
7872 /* We use char because int might match the return type of a gcc2
7873 builtin and then its argument prototype would still apply. */
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885 (eval $ac_link) 2>conftest.er1
7887 grep -v '^ *+' conftest.er1 >conftest.err
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -z "$ac_c_werror_flag"
7893 || test ! -s conftest.err'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_lib_dld_dld_link=yes
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 ac_cv_lib_dld_dld_link=no
7912 rm -f conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 LIBS=$ac_check_lib_save_LIBS
7916 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7917 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7918 if test $ac_cv_lib_dld_dld_link = yes; then
7920 cat >>confdefs.h <<\_ACEOF
7924 LIBADD_DL="$LIBADD_DL -ldld"
7926 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7927 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7928 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7939 #define _dyld_func_lookup innocuous__dyld_func_lookup
7941 /* System header to define __stub macros and hopefully few prototypes,
7942 which can conflict with char _dyld_func_lookup (); below.
7943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7944 <limits.h> exists even on freestanding compilers. */
7947 # include <limits.h>
7949 # include <assert.h>
7952 #undef _dyld_func_lookup
7954 /* Override any gcc2 internal prototype to avoid an error. */
7959 /* We use char because int might match the return type of a gcc2
7960 builtin and then its argument prototype would still apply. */
7961 char _dyld_func_lookup ();
7962 /* The GNU C library defines this for functions which it implements
7963 to always fail with ENOSYS. Some functions are actually named
7964 something starting with __ and the normal name is an alias. */
7965 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7968 char (*f) () = _dyld_func_lookup;
7977 return f != _dyld_func_lookup;
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984 (eval $ac_link) 2>conftest.er1
7986 grep -v '^ *+' conftest.er1 >conftest.err
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -z "$ac_c_werror_flag"
7992 || test ! -s conftest.err'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try='test -s conftest$ac_exeext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 ac_cv_func__dyld_func_lookup=yes
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_cv_func__dyld_func_lookup=no
8011 rm -f conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8014 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8015 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8016 if test $ac_cv_func__dyld_func_lookup = yes; then
8018 cat >>confdefs.h <<\_ACEOF
8032 rm -f conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8044 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8046 lt_save_LIBS="$LIBS"
8047 LIBS="$LIBS $LIBADD_DL"
8049 for ac_func in dlerror
8051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8052 echo "$as_me:$LINENO: checking for $ac_func" >&5
8053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8054 if eval "test \"\${$as_ac_var+set}\" = set"; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 cat >conftest.$ac_ext <<_ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8065 #define $ac_func innocuous_$ac_func
8067 /* System header to define __stub macros and hopefully few prototypes,
8068 which can conflict with char $ac_func (); below.
8069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8070 <limits.h> exists even on freestanding compilers. */
8073 # include <limits.h>
8075 # include <assert.h>
8080 /* Override any gcc2 internal prototype to avoid an error. */
8085 /* We use char because int might match the return type of a gcc2
8086 builtin and then its argument prototype would still apply. */
8088 /* The GNU C library defines this for functions which it implements
8089 to always fail with ENOSYS. Some functions are actually named
8090 something starting with __ and the normal name is an alias. */
8091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8094 char (*f) () = $ac_func;
8103 return f != $ac_func;
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110 (eval $ac_link) 2>conftest.er1
8112 grep -v '^ *+' conftest.er1 >conftest.err
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -z "$ac_c_werror_flag"
8118 || test ! -s conftest.err'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest$ac_exeext'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 eval "$as_ac_var=yes"
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 eval "$as_ac_var=no"
8137 rm -f conftest.err conftest.$ac_objext \
8138 conftest$ac_exeext conftest.$ac_ext
8140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8142 if test `eval echo '${'$as_ac_var'}'` = yes; then
8143 cat >>confdefs.h <<_ACEOF
8144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8150 LIBS="$lt_save_LIBS"
8153 ac_cpp='$CPP $CPPFLAGS'
8154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8160 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8161 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8162 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 ac_cv_sys_symbol_underscore=no
8166 cat > conftest.$ac_ext <<EOF
8167 void nm_test_func(){}
8168 int main(){nm_test_func;return 0;}
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; then
8175 # Now try to grab the symbols.
8176 ac_nlist=conftest.nm
8177 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8178 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && test -s "$ac_nlist"; then
8182 # See whether the symbols have a leading underscore.
8183 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8184 ac_cv_sys_symbol_underscore=yes
8186 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8189 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8193 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8196 echo "configure: failed program was:" >&5
8202 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8203 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8206 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8207 if test x"$libltdl_cv_func_dlopen" = xyes ||
8208 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8209 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8210 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8211 if test "${libltdl_cv_need_uscore+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 libltdl_cv_need_uscore=unknown
8216 LIBS="$LIBS $LIBADD_DL"
8217 if test "$cross_compiling" = yes; then :
8218 libltdl_cv_need_uscore=cross
8220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8221 lt_status=$lt_dlunknown
8222 cat > conftest.$ac_ext <<EOF
8223 #line 8223 "configure"
8224 #include "confdefs.h"
8233 # define LT_DLGLOBAL RTLD_GLOBAL
8236 # define LT_DLGLOBAL DL_GLOBAL
8238 # define LT_DLGLOBAL 0
8242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8243 find out it does not work in some platform. */
8244 #ifndef LT_DLLAZY_OR_NOW
8246 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8249 # define LT_DLLAZY_OR_NOW DL_LAZY
8252 # define LT_DLLAZY_OR_NOW RTLD_NOW
8255 # define LT_DLLAZY_OR_NOW DL_NOW
8257 # define LT_DLLAZY_OR_NOW 0
8265 extern "C" void exit (int);
8268 void fnord() { int i=42;}
8271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8272 int status = $lt_dlunknown;
8276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8278 /* dlclose (self); */
8284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285 (eval $ac_link) 2>&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8289 (./conftest; exit; ) 2>/dev/null
8292 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8293 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8297 # compilation failed
8306 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8307 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8311 if test x"$libltdl_cv_need_uscore" = xyes; then
8313 cat >>confdefs.h <<\_ACEOF
8314 #define NEED_USCORE 1
8320 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8321 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8322 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 # PORTME does your system automatically load deplibs for dlopen?
8326 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8327 # For now, we just catch OSes we know something about -- in the
8328 # future, we'll try test this programmatically.
8329 libltdl_cv_sys_dlopen_deplibs=unknown
8331 aix3*|aix4.1.*|aix4.2.*)
8332 # Unknown whether this is true for these versions of AIX, but
8333 # we want this `case' here to explicitly catch those versions.
8334 libltdl_cv_sys_dlopen_deplibs=unknown
8337 libltdl_cv_sys_dlopen_deplibs=yes
8340 # Assuming the user has installed a libdl from somewhere, this is true
8341 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8342 libltdl_cv_sys_dlopen_deplibs=yes
8344 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8345 # GNU and its variants, using gnu ld.so (Glibc)
8346 libltdl_cv_sys_dlopen_deplibs=yes
8349 libltdl_cv_sys_dlopen_deplibs=yes
8351 irix[12345]*|irix6.[01]*)
8352 # Catch all versions of IRIX before 6.2, and indicate that we don't
8353 # know how it worked for any of those versions.
8354 libltdl_cv_sys_dlopen_deplibs=unknown
8357 # The case above catches anything before 6.2, and it's known that
8358 # at 6.2 and later dlopen does load deplibs.
8359 libltdl_cv_sys_dlopen_deplibs=yes
8362 libltdl_cv_sys_dlopen_deplibs=yes
8365 libltdl_cv_sys_dlopen_deplibs=yes
8368 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8369 # it did *not* use an RPATH in a shared library to find objects the
8370 # library depends on, so we explictly say `no'.
8371 libltdl_cv_sys_dlopen_deplibs=no
8373 osf5.0|osf5.0a|osf5.1)
8374 # dlopen *does* load deplibs and with the right loader patch applied
8375 # it even uses RPATH in a shared library to search for shared objects
8376 # that the library depends on, but there's no easy way to know if that
8377 # patch is installed. Since this is the case, all we can really
8378 # say is unknown -- it depends on the patch being installed. If
8379 # it is, this changes to `yes'. Without it, it would be `no'.
8380 libltdl_cv_sys_dlopen_deplibs=unknown
8383 # the two cases above should catch all versions of osf <= 5.1. Read
8384 # the comments above for what we know about them.
8385 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8386 # is used to find them so we can finally say `yes'.
8387 libltdl_cv_sys_dlopen_deplibs=yes
8390 libltdl_cv_sys_dlopen_deplibs=yes
8395 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8396 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8397 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8399 cat >>confdefs.h <<\_ACEOF
8400 #define LTDL_DLOPEN_DEPLIBS 1
8406 for ac_header in argz.h
8408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8410 echo "$as_me:$LINENO: checking for $ac_header" >&5
8411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8418 # Is the header compilable?
8419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 #include <$ac_header>
8430 rm -f conftest.$ac_objext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432 (eval $ac_compile) 2>conftest.er1
8434 grep -v '^ *+' conftest.er1 >conftest.err
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -z "$ac_c_werror_flag"
8440 || test ! -s conftest.err'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; } &&
8446 { ac_try='test -s conftest.$ac_objext'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 ac_header_compiler=yes
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_header_compiler=no
8459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8461 echo "${ECHO_T}$ac_header_compiler" >&6
8463 # Is the header present?
8464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 #include <$ac_header>
8474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } >/dev/null; then
8482 if test -s conftest.err; then
8483 ac_cpp_err=$ac_c_preproc_warn_flag
8484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8491 if test -z "$ac_cpp_err"; then
8492 ac_header_preproc=yes
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 ac_header_preproc=no
8499 rm -f conftest.err conftest.$ac_ext
8500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8501 echo "${ECHO_T}$ac_header_preproc" >&6
8503 # So? What about this header?
8504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8510 ac_header_preproc=yes
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8527 ## ----------------------------------- ##
8528 ## Report this to llvmbugs@cs.uiuc.edu ##
8529 ## ----------------------------------- ##
8532 sed "s/^/$as_me: WARNING: /" >&2
8535 echo "$as_me:$LINENO: checking for $ac_header" >&5
8536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 eval "$as_ac_Header=\$ac_header_preproc"
8542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8547 cat >>confdefs.h <<_ACEOF
8548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8556 echo "$as_me:$LINENO: checking for error_t" >&5
8557 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8558 if test "${ac_cv_type_error_t+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 cat >conftest.$ac_ext <<_ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8576 if (sizeof (error_t))
8582 rm -f conftest.$ac_objext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8584 (eval $ac_compile) 2>conftest.er1
8586 grep -v '^ *+' conftest.er1 >conftest.err
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -z "$ac_c_werror_flag"
8592 || test ! -s conftest.err'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } &&
8598 { ac_try='test -s conftest.$ac_objext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 ac_cv_type_error_t=yes
8606 echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8609 ac_cv_type_error_t=no
8611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8613 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8614 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8615 if test $ac_cv_type_error_t = yes; then
8617 cat >>confdefs.h <<_ACEOF
8618 #define HAVE_ERROR_T 1
8624 cat >>confdefs.h <<\_ACEOF
8636 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8639 echo "$as_me:$LINENO: checking for $ac_func" >&5
8640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8641 if eval "test \"\${$as_ac_var+set}\" = set"; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 cat >conftest.$ac_ext <<_ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8652 #define $ac_func innocuous_$ac_func
8654 /* System header to define __stub macros and hopefully few prototypes,
8655 which can conflict with char $ac_func (); below.
8656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8657 <limits.h> exists even on freestanding compilers. */
8660 # include <limits.h>
8662 # include <assert.h>
8667 /* Override any gcc2 internal prototype to avoid an error. */
8672 /* We use char because int might match the return type of a gcc2
8673 builtin and then its argument prototype would still apply. */
8675 /* The GNU C library defines this for functions which it implements
8676 to always fail with ENOSYS. Some functions are actually named
8677 something starting with __ and the normal name is an alias. */
8678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8681 char (*f) () = $ac_func;
8690 return f != $ac_func;
8695 rm -f conftest.$ac_objext conftest$ac_exeext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697 (eval $ac_link) 2>conftest.er1
8699 grep -v '^ *+' conftest.er1 >conftest.err
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 eval "$as_ac_var=yes"
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 eval "$as_ac_var=no"
8724 rm -f conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
8727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8729 if test `eval echo '${'$as_ac_var'}'` = yes; then
8730 cat >>confdefs.h <<_ACEOF
8731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8764 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8769 echo "$as_me:$LINENO: checking for $ac_header" >&5
8770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8777 # Is the header compilable?
8778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 $ac_includes_default
8787 #include <$ac_header>
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791 (eval $ac_compile) 2>conftest.er1
8793 grep -v '^ *+' conftest.er1 >conftest.err
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag"
8799 || test ! -s conftest.err'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try='test -s conftest.$ac_objext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 ac_header_compiler=yes
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8816 ac_header_compiler=no
8818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8820 echo "${ECHO_T}$ac_header_compiler" >&6
8822 # Is the header present?
8823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8825 cat >conftest.$ac_ext <<_ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8831 #include <$ac_header>
8833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8836 grep -v '^ *+' conftest.er1 >conftest.err
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } >/dev/null; then
8841 if test -s conftest.err; then
8842 ac_cpp_err=$ac_c_preproc_warn_flag
8843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8850 if test -z "$ac_cpp_err"; then
8851 ac_header_preproc=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_header_preproc=no
8858 rm -f conftest.err conftest.$ac_ext
8859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8860 echo "${ECHO_T}$ac_header_preproc" >&6
8862 # So? What about this header?
8863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8869 ac_header_preproc=yes
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8886 ## ----------------------------------- ##
8887 ## Report this to llvmbugs@cs.uiuc.edu ##
8888 ## ----------------------------------- ##
8891 sed "s/^/$as_me: WARNING: /" >&2
8894 echo "$as_me:$LINENO: checking for $ac_header" >&5
8895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 eval "$as_ac_Header=\$ac_header_preproc"
8901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8906 cat >>confdefs.h <<_ACEOF
8907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8918 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8922 echo "$as_me:$LINENO: checking for $ac_header" >&5
8923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8930 # Is the header compilable?
8931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8933 cat >conftest.$ac_ext <<_ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h. */
8939 $ac_includes_default
8940 #include <$ac_header>
8942 rm -f conftest.$ac_objext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8944 (eval $ac_compile) 2>conftest.er1
8946 grep -v '^ *+' conftest.er1 >conftest.err
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest.$ac_objext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 ac_header_compiler=yes
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8969 ac_header_compiler=no
8971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8973 echo "${ECHO_T}$ac_header_compiler" >&6
8975 # Is the header present?
8976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8978 cat >conftest.$ac_ext <<_ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984 #include <$ac_header>
8986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8989 grep -v '^ *+' conftest.er1 >conftest.err
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } >/dev/null; then
8994 if test -s conftest.err; then
8995 ac_cpp_err=$ac_c_preproc_warn_flag
8996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9003 if test -z "$ac_cpp_err"; then
9004 ac_header_preproc=yes
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_header_preproc=no
9011 rm -f conftest.err conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9013 echo "${ECHO_T}$ac_header_preproc" >&6
9015 # So? What about this header?
9016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9022 ac_header_preproc=yes
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9039 ## ----------------------------------- ##
9040 ## Report this to llvmbugs@cs.uiuc.edu ##
9041 ## ----------------------------------- ##
9044 sed "s/^/$as_me: WARNING: /" >&2
9047 echo "$as_me:$LINENO: checking for $ac_header" >&5
9048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 eval "$as_ac_Header=\$ac_header_preproc"
9054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9059 cat >>confdefs.h <<_ACEOF
9060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9069 for ac_header in string.h strings.h
9071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073 echo "$as_me:$LINENO: checking for $ac_header" >&5
9074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9081 # Is the header compilable?
9082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9084 cat >conftest.$ac_ext <<_ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h. */
9090 $ac_includes_default
9091 #include <$ac_header>
9093 rm -f conftest.$ac_objext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9095 (eval $ac_compile) 2>conftest.er1
9097 grep -v '^ *+' conftest.er1 >conftest.err
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -z "$ac_c_werror_flag"
9103 || test ! -s conftest.err'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; } &&
9109 { ac_try='test -s conftest.$ac_objext'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; }; then
9115 ac_header_compiler=yes
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9120 ac_header_compiler=no
9122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9124 echo "${ECHO_T}$ac_header_compiler" >&6
9126 # Is the header present?
9127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9129 cat >conftest.$ac_ext <<_ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 #include <$ac_header>
9137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9140 grep -v '^ *+' conftest.er1 >conftest.err
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } >/dev/null; then
9145 if test -s conftest.err; then
9146 ac_cpp_err=$ac_c_preproc_warn_flag
9147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9154 if test -z "$ac_cpp_err"; then
9155 ac_header_preproc=yes
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 ac_header_preproc=no
9162 rm -f conftest.err conftest.$ac_ext
9163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9164 echo "${ECHO_T}$ac_header_preproc" >&6
9166 # So? What about this header?
9167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9173 ac_header_preproc=yes
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9190 ## ----------------------------------- ##
9191 ## Report this to llvmbugs@cs.uiuc.edu ##
9192 ## ----------------------------------- ##
9195 sed "s/^/$as_me: WARNING: /" >&2
9198 echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 eval "$as_ac_Header=\$ac_header_preproc"
9205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9210 cat >>confdefs.h <<_ACEOF
9211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9221 for ac_func in strchr index
9223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9224 echo "$as_me:$LINENO: checking for $ac_func" >&5
9225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9226 if eval "test \"\${$as_ac_var+set}\" = set"; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 cat >conftest.$ac_ext <<_ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9237 #define $ac_func innocuous_$ac_func
9239 /* System header to define __stub macros and hopefully few prototypes,
9240 which can conflict with char $ac_func (); below.
9241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9242 <limits.h> exists even on freestanding compilers. */
9245 # include <limits.h>
9247 # include <assert.h>
9252 /* Override any gcc2 internal prototype to avoid an error. */
9257 /* We use char because int might match the return type of a gcc2
9258 builtin and then its argument prototype would still apply. */
9260 /* The GNU C library defines this for functions which it implements
9261 to always fail with ENOSYS. Some functions are actually named
9262 something starting with __ and the normal name is an alias. */
9263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9266 char (*f) () = $ac_func;
9275 return f != $ac_func;
9280 rm -f conftest.$ac_objext conftest$ac_exeext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9282 (eval $ac_link) 2>conftest.er1
9284 grep -v '^ *+' conftest.er1 >conftest.err
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest$ac_exeext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 eval "$as_ac_var=yes"
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9307 eval "$as_ac_var=no"
9309 rm -f conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9314 if test `eval echo '${'$as_ac_var'}'` = yes; then
9315 cat >>confdefs.h <<_ACEOF
9316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9324 for ac_func in strrchr rindex
9326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9327 echo "$as_me:$LINENO: checking for $ac_func" >&5
9328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9329 if eval "test \"\${$as_ac_var+set}\" = set"; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 cat >conftest.$ac_ext <<_ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9340 #define $ac_func innocuous_$ac_func
9342 /* System header to define __stub macros and hopefully few prototypes,
9343 which can conflict with char $ac_func (); below.
9344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9345 <limits.h> exists even on freestanding compilers. */
9348 # include <limits.h>
9350 # include <assert.h>
9355 /* Override any gcc2 internal prototype to avoid an error. */
9360 /* We use char because int might match the return type of a gcc2
9361 builtin and then its argument prototype would still apply. */
9363 /* The GNU C library defines this for functions which it implements
9364 to always fail with ENOSYS. Some functions are actually named
9365 something starting with __ and the normal name is an alias. */
9366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9369 char (*f) () = $ac_func;
9378 return f != $ac_func;
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>conftest.er1
9387 grep -v '^ *+' conftest.er1 >conftest.err
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag"
9393 || test ! -s conftest.err'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; } &&
9399 { ac_try='test -s conftest$ac_exeext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 eval "$as_ac_var=yes"
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9410 eval "$as_ac_var=no"
9412 rm -f conftest.err conftest.$ac_objext \
9413 conftest$ac_exeext conftest.$ac_ext
9415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9417 if test `eval echo '${'$as_ac_var'}'` = yes; then
9418 cat >>confdefs.h <<_ACEOF
9419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9427 for ac_func in memcpy bcopy
9429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9430 echo "$as_me:$LINENO: checking for $ac_func" >&5
9431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9432 if eval "test \"\${$as_ac_var+set}\" = set"; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 cat >conftest.$ac_ext <<_ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9443 #define $ac_func innocuous_$ac_func
9445 /* System header to define __stub macros and hopefully few prototypes,
9446 which can conflict with char $ac_func (); below.
9447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9448 <limits.h> exists even on freestanding compilers. */
9451 # include <limits.h>
9453 # include <assert.h>
9458 /* Override any gcc2 internal prototype to avoid an error. */
9463 /* We use char because int might match the return type of a gcc2
9464 builtin and then its argument prototype would still apply. */
9466 /* The GNU C library defines this for functions which it implements
9467 to always fail with ENOSYS. Some functions are actually named
9468 something starting with __ and the normal name is an alias. */
9469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9472 char (*f) () = $ac_func;
9481 return f != $ac_func;
9486 rm -f conftest.$ac_objext conftest$ac_exeext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9488 (eval $ac_link) 2>conftest.er1
9490 grep -v '^ *+' conftest.er1 >conftest.err
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 eval "$as_ac_var=yes"
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 eval "$as_ac_var=no"
9515 rm -f conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9520 if test `eval echo '${'$as_ac_var'}'` = yes; then
9521 cat >>confdefs.h <<_ACEOF
9522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9530 for ac_func in memmove strcmp
9532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9533 echo "$as_me:$LINENO: checking for $ac_func" >&5
9534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9535 if eval "test \"\${$as_ac_var+set}\" = set"; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9546 #define $ac_func innocuous_$ac_func
9548 /* System header to define __stub macros and hopefully few prototypes,
9549 which can conflict with char $ac_func (); below.
9550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551 <limits.h> exists even on freestanding compilers. */
9554 # include <limits.h>
9556 # include <assert.h>
9561 /* Override any gcc2 internal prototype to avoid an error. */
9566 /* We use char because int might match the return type of a gcc2
9567 builtin and then its argument prototype would still apply. */
9569 /* The GNU C library defines this for functions which it implements
9570 to always fail with ENOSYS. Some functions are actually named
9571 something starting with __ and the normal name is an alias. */
9572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9575 char (*f) () = $ac_func;
9584 return f != $ac_func;
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591 (eval $ac_link) 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try='test -s conftest$ac_exeext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 eval "$as_ac_var=yes"
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 eval "$as_ac_var=no"
9618 rm -f conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9623 if test `eval echo '${'$as_ac_var'}'` = yes; then
9624 cat >>confdefs.h <<_ACEOF
9625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9634 for ac_func in closedir opendir readdir
9636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9637 echo "$as_me:$LINENO: checking for $ac_func" >&5
9638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9639 if eval "test \"\${$as_ac_var+set}\" = set"; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9650 #define $ac_func innocuous_$ac_func
9652 /* System header to define __stub macros and hopefully few prototypes,
9653 which can conflict with char $ac_func (); below.
9654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9655 <limits.h> exists even on freestanding compilers. */
9658 # include <limits.h>
9660 # include <assert.h>
9665 /* Override any gcc2 internal prototype to avoid an error. */
9670 /* We use char because int might match the return type of a gcc2
9671 builtin and then its argument prototype would still apply. */
9673 /* The GNU C library defines this for functions which it implements
9674 to always fail with ENOSYS. Some functions are actually named
9675 something starting with __ and the normal name is an alias. */
9676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9679 char (*f) () = $ac_func;
9688 return f != $ac_func;
9693 rm -f conftest.$ac_objext conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695 (eval $ac_link) 2>conftest.er1
9697 grep -v '^ *+' conftest.er1 >conftest.err
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag"
9703 || test ! -s conftest.err'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest$ac_exeext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 eval "$as_ac_var=yes"
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 eval "$as_ac_var=no"
9722 rm -f conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9727 if test `eval echo '${'$as_ac_var'}'` = yes; then
9728 cat >>confdefs.h <<_ACEOF
9729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9736 # Check whether --enable-shared or --disable-shared was given.
9737 if test "${enable_shared+set}" = set; then
9738 enableval="$enable_shared"
9739 p=${PACKAGE-default}
9741 yes) enable_shared=yes ;;
9742 no) enable_shared=no ;;
9745 # Look at the argument we got. We use all the common list separators.
9746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9747 for pkg in $enableval; do
9749 if test "X$pkg" = "X$p"; then
9760 # Check whether --enable-static or --disable-static was given.
9761 if test "${enable_static+set}" = set; then
9762 enableval="$enable_static"
9763 p=${PACKAGE-default}
9765 yes) enable_static=yes ;;
9766 no) enable_static=no ;;
9769 # Look at the argument we got. We use all the common list separators.
9770 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9771 for pkg in $enableval; do
9773 if test "X$pkg" = "X$p"; then
9784 # Check whether --enable-fast-install or --disable-fast-install was given.
9785 if test "${enable_fast_install+set}" = set; then
9786 enableval="$enable_fast_install"
9787 p=${PACKAGE-default}
9789 yes) enable_fast_install=yes ;;
9790 no) enable_fast_install=no ;;
9792 enable_fast_install=no
9793 # Look at the argument we got. We use all the common list separators.
9794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9795 for pkg in $enableval; do
9797 if test "X$pkg" = "X$p"; then
9798 enable_fast_install=yes
9805 enable_fast_install=yes
9808 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9809 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9810 if test "${lt_cv_path_SED+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 # Loop through the user's path and test for sed and gsed.
9814 # Then use that list of sed's as ones to test for truncation.
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819 test -z "$as_dir" && as_dir=.
9820 for lt_ac_prog in sed gsed; do
9821 for ac_exec_ext in '' $ac_executable_extensions; do
9822 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9823 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9830 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9831 # along with /bin/sed that truncates output.
9832 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9833 test ! -f $lt_ac_sed && break
9834 cat /dev/null > conftest.in
9836 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9837 # Check for GNU sed and select it if it is found.
9838 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9839 lt_cv_path_SED=$lt_ac_sed
9843 cat conftest.in conftest.in >conftest.tmp
9844 mv conftest.tmp conftest.in
9845 cp conftest.in conftest.nl
9847 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9848 cmp -s conftest.out conftest.nl || break
9849 # 10000 chars as input seems more than enough
9850 test $lt_ac_count -gt 10 && break
9851 lt_ac_count=`expr $lt_ac_count + 1`
9852 if test $lt_ac_count -gt $lt_ac_max; then
9853 lt_ac_max=$lt_ac_count
9854 lt_cv_path_SED=$lt_ac_sed
9862 echo "$as_me:$LINENO: result: $SED" >&5
9863 echo "${ECHO_T}$SED" >&6
9866 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9867 if test "${with_gnu_ld+set}" = set; then
9868 withval="$with_gnu_ld"
9869 test "$withval" = no || with_gnu_ld=yes
9874 if test "$GCC" = yes; then
9875 # Check if gcc -print-prog-name=ld gives a path.
9876 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9877 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9880 # gcc leaves a trailing carriage return which upsets mingw
9881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9886 # Accept absolute paths.
9888 re_direlt='/[^/][^/]*/\.\./'
9889 # Canonicalize the pathname of ld
9890 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9891 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9892 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9894 test -z "$LD" && LD="$ac_prog"
9897 # If it fails, then pretend we aren't using GCC.
9901 # If it is relative, then search for the first ld in PATH.
9905 elif test "$with_gnu_ld" = yes; then
9906 echo "$as_me:$LINENO: checking for GNU ld" >&5
9907 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9909 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9910 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9912 if test "${lt_cv_path_LD+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 if test -z "$LD"; then
9916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9917 for ac_dir in $PATH; do
9919 test -z "$ac_dir" && ac_dir=.
9920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9921 lt_cv_path_LD="$ac_dir/$ac_prog"
9922 # Check to see if the program is GNU ld. I'd rather use --version,
9923 # but apparently some GNU ld's only accept -v.
9924 # Break only if it was the GNU/non-GNU ld that we prefer.
9925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9926 *GNU* | *'with BFD'*)
9927 test "$with_gnu_ld" != no && break
9930 test "$with_gnu_ld" != yes && break
9937 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9942 if test -n "$LD"; then
9943 echo "$as_me:$LINENO: result: $LD" >&5
9944 echo "${ECHO_T}$LD" >&6
9946 echo "$as_me:$LINENO: result: no" >&5
9947 echo "${ECHO_T}no" >&6
9949 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9950 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9951 { (exit 1); exit 1; }; }
9952 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9953 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9954 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9958 case `$LD -v 2>&1 </dev/null` in
9959 *GNU* | *'with BFD'*)
9960 lt_cv_prog_gnu_ld=yes
9963 lt_cv_prog_gnu_ld=no
9967 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9968 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9969 with_gnu_ld=$lt_cv_prog_gnu_ld
9972 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9973 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9974 if test "${lt_cv_ld_reload_flag+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 lt_cv_ld_reload_flag='-r'
9979 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9980 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9981 reload_flag=$lt_cv_ld_reload_flag
9982 case $reload_flag in
9984 *) reload_flag=" $reload_flag" ;;
9986 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9989 if test "$GCC" = yes; then
9990 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9992 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9997 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9998 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9999 if test "${lt_cv_deplibs_check_method+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 lt_cv_file_magic_cmd='$MAGIC_CMD'
10003 lt_cv_file_magic_test_file=
10004 lt_cv_deplibs_check_method='unknown'
10005 # Need to set the preceding variable on all platforms that support
10006 # interlibrary dependencies.
10007 # 'none' -- dependencies not supported.
10008 # `unknown' -- same as none, but documents that we really don't know.
10009 # 'pass_all' -- all dependencies passed with no checks.
10010 # 'test_compile' -- check by making test program.
10011 # 'file_magic [[regex]]' -- check by looking for files in library path
10012 # which responds to the $file_magic_cmd with a given extended regex.
10013 # If you have `file' or equivalent on your system and you're not sure
10014 # whether `pass_all' will *always* work, you probably want this one.
10018 lt_cv_deplibs_check_method=pass_all
10022 lt_cv_deplibs_check_method=pass_all
10026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10027 lt_cv_file_magic_cmd='/usr/bin/file -L'
10028 lt_cv_file_magic_test_file=/shlib/libc.so
10032 # func_win32_libid is a shell function defined in ltmain.sh
10033 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10034 lt_cv_file_magic_cmd='func_win32_libid'
10038 # Base MSYS/MinGW do not provide the 'file' command needed by
10039 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10040 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10041 lt_cv_file_magic_cmd='$OBJDUMP -f'
10044 darwin* | rhapsody*)
10045 lt_cv_deplibs_check_method=pass_all
10048 freebsd* | kfreebsd*-gnu)
10049 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10052 # Not sure whether the presence of OpenBSD here was a mistake.
10053 # Let's accept both of them until this is cleared up.
10054 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10055 lt_cv_file_magic_cmd=/usr/bin/file
10056 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10060 lt_cv_deplibs_check_method=pass_all
10065 lt_cv_deplibs_check_method=pass_all
10068 hpux10.20* | hpux11*)
10069 lt_cv_file_magic_cmd=/usr/bin/file
10070 case "$host_cpu" in
10072 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10073 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10076 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]'
10077 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10080 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10081 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10086 irix5* | irix6* | nonstopux*)
10088 *-32|*"-32 ") libmagic=32-bit;;
10089 *-n32|*"-n32 ") libmagic=N32;;
10090 *-64|*"-64 ") libmagic=64-bit;;
10091 *) libmagic=never-match;;
10093 lt_cv_deplibs_check_method=pass_all
10096 # This must be Linux ELF.
10098 lt_cv_deplibs_check_method=pass_all
10102 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10111 lt_cv_file_magic_cmd=/usr/bin/file
10112 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10116 lt_cv_deplibs_check_method=unknown
10120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10127 osf3* | osf4* | osf5*)
10128 lt_cv_deplibs_check_method=pass_all
10132 lt_cv_deplibs_check_method=pass_all
10136 lt_cv_deplibs_check_method=pass_all
10139 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10140 case $host_vendor in
10142 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]'
10143 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10146 lt_cv_deplibs_check_method=pass_all
10149 lt_cv_file_magic_cmd='/bin/file'
10150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10153 lt_cv_file_magic_cmd='/bin/file'
10154 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10155 lt_cv_file_magic_test_file=/lib/libc.so
10158 lt_cv_deplibs_check_method=pass_all
10163 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10164 lt_cv_deplibs_check_method=pass_all
10169 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10170 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10171 file_magic_cmd=$lt_cv_file_magic_cmd
10172 deplibs_check_method=$lt_cv_deplibs_check_method
10173 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10177 # If no C compiler was specified, use CC.
10180 # Allow CC to be a program name with arguments.
10183 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10184 if test "${enable_libtool_lock+set}" = set; then
10185 enableval="$enable_libtool_lock"
10188 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10190 # Some flags need to be propagated to the compiler or linker for good
10194 # Find out which ABI we are using.
10195 echo 'int i;' > conftest.$ac_ext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; then
10201 case `/usr/bin/file conftest.$ac_objext` in
10203 HPUX_IA64_MODE="32"
10206 HPUX_IA64_MODE="64"
10213 # Find out which ABI we are using.
10214 echo '#line 10214 "configure"' > conftest.$ac_ext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10216 (eval $ac_compile) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; then
10220 if test "$lt_cv_prog_gnu_ld" = yes; then
10221 case `/usr/bin/file conftest.$ac_objext` in
10223 LD="${LD-ld} -melf32bsmip"
10226 LD="${LD-ld} -melf32bmipn32"
10229 LD="${LD-ld} -melf64bmip"
10233 case `/usr/bin/file conftest.$ac_objext` in
10249 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10250 # Find out which ABI we are using.
10251 echo 'int i;' > conftest.$ac_ext
10252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; then
10257 case "`/usr/bin/file conftest.o`" in
10261 LD="${LD-ld} -m elf_i386"
10263 ppc64-*linux*|powerpc64-*linux*)
10264 LD="${LD-ld} -m elf32ppclinux"
10267 LD="${LD-ld} -m elf_s390"
10270 LD="${LD-ld} -m elf32_sparc"
10277 LD="${LD-ld} -m elf_x86_64"
10279 ppc*-*linux*|powerpc*-*linux*)
10280 LD="${LD-ld} -m elf64ppc"
10283 LD="${LD-ld} -m elf64_s390"
10286 LD="${LD-ld} -m elf64_sparc"
10296 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10297 SAVE_CFLAGS="$CFLAGS"
10298 CFLAGS="$CFLAGS -belf"
10299 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10300 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10301 if test "${lt_cv_cc_needs_belf+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 ac_cpp='$CPP $CPPFLAGS'
10306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10310 cat >conftest.$ac_ext <<_ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>conftest.er1
10322 grep -v '^ *+' conftest.er1 >conftest.err
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 lt_cv_cc_needs_belf=yes
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 lt_cv_cc_needs_belf=no
10347 rm -f conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10350 ac_cpp='$CPP $CPPFLAGS'
10351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10356 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10357 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10358 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10359 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10360 CFLAGS="$SAVE_CFLAGS"
10366 need_locks="$enable_libtool_lock"
10371 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10372 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10373 (test "X$CXX" != "Xg++"))) ; then
10375 ac_cpp='$CXXCPP $CPPFLAGS'
10376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10379 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10380 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10381 if test -z "$CXXCPP"; then
10382 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 # Double quotes because CXXCPP needs to be expanded
10386 for CXXCPP in "$CXX -E" "/lib/cpp"
10388 ac_preproc_ok=false
10389 for ac_cxx_preproc_warn_flag in '' yes
10391 # Use a header file that comes with gcc, so configuring glibc
10392 # with a fresh cross-compiler works.
10393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10394 # <limits.h> exists even on freestanding compilers.
10395 # On the NeXT, cc -E runs the code through the compiler's parser,
10396 # not just through cpp. "Syntax error" is here to catch this case.
10397 cat >conftest.$ac_ext <<_ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10404 # include <limits.h>
10406 # include <assert.h>
10410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10413 grep -v '^ *+' conftest.er1 >conftest.err
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } >/dev/null; then
10418 if test -s conftest.err; then
10419 ac_cpp_err=$ac_cxx_preproc_warn_flag
10420 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10427 if test -z "$ac_cpp_err"; then
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 # Broken: fails on valid input.
10436 rm -f conftest.err conftest.$ac_ext
10438 # OK, works on sane cases. Now check whether non-existent headers
10439 # can be detected and how.
10440 cat >conftest.$ac_ext <<_ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10446 #include <ac_nonexistent.h>
10448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10451 grep -v '^ *+' conftest.er1 >conftest.err
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } >/dev/null; then
10456 if test -s conftest.err; then
10457 ac_cpp_err=$ac_cxx_preproc_warn_flag
10458 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10465 if test -z "$ac_cpp_err"; then
10466 # Broken: success on invalid input.
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10472 # Passes both tests.
10476 rm -f conftest.err conftest.$ac_ext
10479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10480 rm -f conftest.err conftest.$ac_ext
10481 if $ac_preproc_ok; then
10486 ac_cv_prog_CXXCPP=$CXXCPP
10489 CXXCPP=$ac_cv_prog_CXXCPP
10491 ac_cv_prog_CXXCPP=$CXXCPP
10493 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10494 echo "${ECHO_T}$CXXCPP" >&6
10495 ac_preproc_ok=false
10496 for ac_cxx_preproc_warn_flag in '' yes
10498 # Use a header file that comes with gcc, so configuring glibc
10499 # with a fresh cross-compiler works.
10500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10501 # <limits.h> exists even on freestanding compilers.
10502 # On the NeXT, cc -E runs the code through the compiler's parser,
10503 # not just through cpp. "Syntax error" is here to catch this case.
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10511 # include <limits.h>
10513 # include <assert.h>
10517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10520 grep -v '^ *+' conftest.er1 >conftest.err
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } >/dev/null; then
10525 if test -s conftest.err; then
10526 ac_cpp_err=$ac_cxx_preproc_warn_flag
10527 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10534 if test -z "$ac_cpp_err"; then
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10540 # Broken: fails on valid input.
10543 rm -f conftest.err conftest.$ac_ext
10545 # OK, works on sane cases. Now check whether non-existent headers
10546 # can be detected and how.
10547 cat >conftest.$ac_ext <<_ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 #include <ac_nonexistent.h>
10555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10558 grep -v '^ *+' conftest.er1 >conftest.err
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } >/dev/null; then
10563 if test -s conftest.err; then
10564 ac_cpp_err=$ac_cxx_preproc_warn_flag
10565 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10572 if test -z "$ac_cpp_err"; then
10573 # Broken: success on invalid input.
10576 echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10579 # Passes both tests.
10583 rm -f conftest.err conftest.$ac_ext
10586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10587 rm -f conftest.err conftest.$ac_ext
10588 if $ac_preproc_ok; then
10591 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10592 See \`config.log' for more details." >&5
10593 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10594 See \`config.log' for more details." >&2;}
10595 { (exit 1); exit 1; }; }
10599 ac_cpp='$CXXCPP $CPPFLAGS'
10600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10608 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10609 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10610 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10611 if test -n "$ac_tool_prefix"; then
10612 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10616 echo "$as_me:$LINENO: checking for $ac_word" >&5
10617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10618 if test "${ac_cv_prog_F77+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 if test -n "$F77"; then
10622 ac_cv_prog_F77="$F77" # Let the user override the test.
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10631 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 F77=$ac_cv_prog_F77
10641 if test -n "$F77"; then
10642 echo "$as_me:$LINENO: result: $F77" >&5
10643 echo "${ECHO_T}$F77" >&6
10645 echo "$as_me:$LINENO: result: no" >&5
10646 echo "${ECHO_T}no" >&6
10649 test -n "$F77" && break
10652 if test -z "$F77"; then
10654 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10656 # Extract the first word of "$ac_prog", so it can be a program name with args.
10657 set dummy $ac_prog; ac_word=$2
10658 echo "$as_me:$LINENO: checking for $ac_word" >&5
10659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10660 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 if test -n "$ac_ct_F77"; then
10664 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10673 ac_cv_prog_ac_ct_F77="$ac_prog"
10674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10683 if test -n "$ac_ct_F77"; then
10684 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10685 echo "${ECHO_T}$ac_ct_F77" >&6
10687 echo "$as_me:$LINENO: result: no" >&5
10688 echo "${ECHO_T}no" >&6
10691 test -n "$ac_ct_F77" && break
10698 # Provide some information about the compiler.
10699 echo "$as_me:10699:" \
10700 "checking for Fortran 77 compiler version" >&5
10701 ac_compiler=`set X $ac_compile; echo $2`
10702 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10703 (eval $ac_compiler --version </dev/null >&5) 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }
10707 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10708 (eval $ac_compiler -v </dev/null >&5) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }
10712 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10713 (eval $ac_compiler -V </dev/null >&5) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }
10719 # If we don't use `.F' as extension, the preprocessor is not run on the
10720 # input file. (Note that this only needs to work for GNU compilers.)
10721 ac_save_ext=$ac_ext
10723 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10724 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10725 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 cat >conftest.$ac_ext <<_ACEOF
10736 rm -f conftest.$ac_objext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738 (eval $ac_compile) 2>conftest.er1
10740 grep -v '^ *+' conftest.er1 >conftest.err
10742 cat conftest.err >&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } &&
10745 { ac_try='test -z "$ac_f77_werror_flag"
10746 || test ! -s conftest.err'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; } &&
10752 { ac_try='test -s conftest.$ac_objext'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_compiler_gnu=yes
10760 echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10766 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10769 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10770 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10771 ac_ext=$ac_save_ext
10772 ac_test_FFLAGS=${FFLAGS+set}
10773 ac_save_FFLAGS=$FFLAGS
10775 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10776 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10777 if test "${ac_cv_prog_f77_g+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 cat >conftest.$ac_ext <<_ACEOF
10786 rm -f conftest.$ac_objext
10787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10788 (eval $ac_compile) 2>conftest.er1
10790 grep -v '^ *+' conftest.er1 >conftest.err
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } &&
10795 { ac_try='test -z "$ac_f77_werror_flag"
10796 || test ! -s conftest.err'
10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798 (eval $ac_try) 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; } &&
10802 { ac_try='test -s conftest.$ac_objext'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_cv_prog_f77_g=yes
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_cv_prog_f77_g=no
10815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10818 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10819 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10820 if test "$ac_test_FFLAGS" = set; then
10821 FFLAGS=$ac_save_FFLAGS
10822 elif test $ac_cv_prog_f77_g = yes; then
10823 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10829 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10836 G77=`test $ac_compiler_gnu = yes && echo yes`
10838 ac_cpp='$CPP $CPPFLAGS'
10839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10845 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10847 # find the maximum length of command line arguments
10848 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10849 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10850 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 # On DJGPP, this test can blow up pretty badly due to problems in libc
10859 # (any single argument exceeding 2000 bytes causes a buffer overrun
10860 # during glob expansion). Even if it were fixed, the result of this
10861 # check would be larger than it should be.
10862 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10866 # Under GNU Hurd, this test is not required because there is
10867 # no limit to the length of command line arguments.
10868 # Libtool will interpret -1 as no limit whatsoever
10869 lt_cv_sys_max_cmd_len=-1;
10873 # On Win9x/ME, this test blows up -- it succeeds, but takes
10874 # about 5 minutes as the teststring grows exponentially.
10875 # Worse, since 9x/ME are not pre-emptively multitasking,
10876 # you end up with a "frozen" computer, even though with patience
10877 # the test eventually succeeds (with a max line length of 256k).
10878 # Instead, let's just punt: use the minimum linelength reported by
10879 # all of the supported platforms: 8192 (on NT/2K/XP).
10880 lt_cv_sys_max_cmd_len=8192;
10884 # On AmigaOS with pdksh, this test takes hours, literally.
10885 # So we just punt and use a minimum line length of 8192.
10886 lt_cv_sys_max_cmd_len=8192;
10889 netbsd* | freebsd* | openbsd* | darwin* )
10890 # This has been around since 386BSD, at least. Likely further.
10891 if test -x /sbin/sysctl; then
10892 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10893 elif test -x /usr/sbin/sysctl; then
10894 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10896 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10898 # And add a safety zone
10899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10903 # If test is not a shell built-in, we'll probably end up computing a
10904 # maximum length that is only half of the actual maximum length, but
10906 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10907 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10908 = "XX$teststring") >/dev/null 2>&1 &&
10909 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10910 lt_cv_sys_max_cmd_len=$new_result &&
10911 test $i != 17 # 1/2 MB should be enough
10914 teststring=$teststring$teststring
10917 # Add a significant safety factor because C++ compilers can tack on massive
10918 # amounts of additional arguments before passing them to the linker.
10919 # It appears as though 1/2 is a usable value.
10920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10926 if test -n $lt_cv_sys_max_cmd_len ; then
10927 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10928 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10930 echo "$as_me:$LINENO: result: none" >&5
10931 echo "${ECHO_T}none" >&6
10937 # Check for command to grab the raw symbol name followed by C symbol from nm.
10938 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10939 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10940 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 # These are sane defaults that work on at least a few old systems.
10945 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10947 # Character class describing NM global symbol codes.
10948 symcode='[BCDEGRST]'
10950 # Regexp to match symbols that can be accessed directly from C.
10951 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10953 # Transform the above into a raw symbol and a C symbol.
10954 symxfrm='\1 \2\3 \3'
10956 # Transform an extracted symbol line into a proper C declaration
10957 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10959 # Transform an extracted symbol line into symbol name and symbol address
10960 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'"
10962 # Define system-specific variables.
10967 cygwin* | mingw* | pw32*)
10968 symcode='[ABCDGISTW]'
10970 hpux*) # Its linker distinguishes data from code symbols
10971 if test "$host_cpu" = ia64; then
10972 symcode='[ABCDEGRST]'
10974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10975 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'"
10978 if test "$host_cpu" = ia64; then
10979 symcode='[ABCDGIRSTW]'
10980 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10981 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'"
10984 irix* | nonstopux*)
10985 symcode='[BCDEGRST]'
10988 symcode='[BCDEGQRST]'
10998 # Handle CRLF in mingw tool chain
11002 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11006 # If we're using GNU nm, then use its standard symbol codes.
11007 case `$NM -V 2>&1` in
11008 *GNU* | *'with BFD'*)
11009 symcode='[ABCDGIRSTW]' ;;
11012 # Try without a prefix undercore, then with it.
11013 for ac_symprfx in "" "_"; do
11015 # Write the raw and C identifiers.
11016 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11018 # Check to see that the pipe works correctly.
11022 cat > conftest.$ac_ext <<EOF
11027 void nm_test_func(){}
11031 int main(){nm_test_var='a';nm_test_func();return(0);}
11034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035 (eval $ac_compile) 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; then
11039 # Now try to grab the symbols.
11041 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11042 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } && test -s "$nlist"; then
11046 # Try sorting and uniquifying the output.
11047 if sort "$nlist" | uniq > "$nlist"T; then
11048 mv -f "$nlist"T "$nlist"
11053 # Make sure that we snagged all the symbols we need.
11054 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11055 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11056 cat <<EOF > conftest.$ac_ext
11062 # Now generate the symbol file.
11063 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11065 cat <<EOF >> conftest.$ac_ext
11066 #if defined (__STDC__) && __STDC__
11067 # define lt_ptr_t void *
11069 # define lt_ptr_t char *
11073 /* The mapping between symbol names and symbols. */
11078 lt_preloaded_symbols[] =
11081 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11082 cat <<\EOF >> conftest.$ac_ext
11090 # Now try linking the two files.
11091 mv conftest.$ac_objext conftstm.$ac_objext
11092 lt_save_LIBS="$LIBS"
11093 lt_save_CFLAGS="$CFLAGS"
11094 LIBS="conftstm.$ac_objext"
11095 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11097 (eval $ac_link) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11103 LIBS="$lt_save_LIBS"
11104 CFLAGS="$lt_save_CFLAGS"
11106 echo "cannot find nm_test_func in $nlist" >&5
11109 echo "cannot find nm_test_var in $nlist" >&5
11112 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11115 echo "$progname: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11118 rm -f conftest* conftst*
11120 # Do not use the global_symbol_pipe unless it works.
11121 if test "$pipe_works" = yes; then
11124 lt_cv_sys_global_symbol_pipe=
11130 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11131 lt_cv_sys_global_symbol_to_cdecl=
11133 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11134 echo "$as_me:$LINENO: result: failed" >&5
11135 echo "${ECHO_T}failed" >&6
11137 echo "$as_me:$LINENO: result: ok" >&5
11138 echo "${ECHO_T}ok" >&6
11141 echo "$as_me:$LINENO: checking for objdir" >&5
11142 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11143 if test "${lt_cv_objdir+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 rm -f .libs 2>/dev/null
11147 mkdir .libs 2>/dev/null
11148 if test -d .libs; then
11151 # MS-DOS does not allow filenames that begin with a dot.
11154 rmdir .libs 2>/dev/null
11156 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11157 echo "${ECHO_T}$lt_cv_objdir" >&6
11158 objdir=$lt_cv_objdir
11166 # AIX sometimes has problems with the GCC collect2 program. For some
11167 # reason, if we set the COLLECT_NAMES environment variable, the problems
11168 # vanish in a puff of smoke.
11169 if test "X${COLLECT_NAMES+set}" != Xset; then
11171 export COLLECT_NAMES
11176 # Sed substitution that helps us do robust quoting. It backslashifies
11177 # metacharacters that are still active within double-quoted strings.
11178 Xsed='sed -e s/^X//'
11179 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11181 # Same as above, but do not quote variable references.
11182 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11184 # Sed substitution to delay expansion of an escaped shell variable in a
11185 # double_quote_subst'ed string.
11186 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11188 # Sed substitution to avoid accidental globbing in evaled expressions
11189 no_glob_subst='s/\*/\\\*/g'
11194 # Global variables:
11195 default_ofile=mklib
11196 can_build_shared=yes
11198 # All known linkers require a `.a' archive for static linking (except M$VC,
11199 # which needs '.lib').
11201 ltmain="$ac_aux_dir/ltmain.sh"
11202 ofile="$default_ofile"
11203 with_gnu_ld="$lt_cv_prog_gnu_ld"
11205 if test -n "$ac_tool_prefix"; then
11206 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11207 set dummy ${ac_tool_prefix}ar; ac_word=$2
11208 echo "$as_me:$LINENO: checking for $ac_word" >&5
11209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11210 if test "${ac_cv_prog_AR+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 if test -n "$AR"; then
11214 ac_cv_prog_AR="$AR" # Let the user override the test.
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223 ac_cv_prog_AR="${ac_tool_prefix}ar"
11224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11233 if test -n "$AR"; then
11234 echo "$as_me:$LINENO: result: $AR" >&5
11235 echo "${ECHO_T}$AR" >&6
11237 echo "$as_me:$LINENO: result: no" >&5
11238 echo "${ECHO_T}no" >&6
11242 if test -z "$ac_cv_prog_AR"; then
11244 # Extract the first word of "ar", so it can be a program name with args.
11245 set dummy ar; ac_word=$2
11246 echo "$as_me:$LINENO: checking for $ac_word" >&5
11247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11248 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 if test -n "$ac_ct_AR"; then
11252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11261 ac_cv_prog_ac_ct_AR="ar"
11262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11271 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11272 if test -n "$ac_ct_AR"; then
11273 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11274 echo "${ECHO_T}$ac_ct_AR" >&6
11276 echo "$as_me:$LINENO: result: no" >&5
11277 echo "${ECHO_T}no" >&6
11282 AR="$ac_cv_prog_AR"
11285 if test -n "$ac_tool_prefix"; then
11286 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11288 echo "$as_me:$LINENO: checking for $ac_word" >&5
11289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11290 if test "${ac_cv_prog_RANLIB+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 if test -n "$RANLIB"; then
11294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $PATH
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 RANLIB=$ac_cv_prog_RANLIB
11313 if test -n "$RANLIB"; then
11314 echo "$as_me:$LINENO: result: $RANLIB" >&5
11315 echo "${ECHO_T}$RANLIB" >&6
11317 echo "$as_me:$LINENO: result: no" >&5
11318 echo "${ECHO_T}no" >&6
11322 if test -z "$ac_cv_prog_RANLIB"; then
11323 ac_ct_RANLIB=$RANLIB
11324 # Extract the first word of "ranlib", so it can be a program name with args.
11325 set dummy ranlib; ac_word=$2
11326 echo "$as_me:$LINENO: checking for $ac_word" >&5
11327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11328 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 if test -n "$ac_ct_RANLIB"; then
11332 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335 for as_dir in $PATH
11338 test -z "$as_dir" && as_dir=.
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11341 ac_cv_prog_ac_ct_RANLIB="ranlib"
11342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11351 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11352 if test -n "$ac_ct_RANLIB"; then
11353 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11354 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11356 echo "$as_me:$LINENO: result: no" >&5
11357 echo "${ECHO_T}no" >&6
11360 RANLIB=$ac_ct_RANLIB
11362 RANLIB="$ac_cv_prog_RANLIB"
11365 if test -n "$ac_tool_prefix"; then
11366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11367 set dummy ${ac_tool_prefix}strip; ac_word=$2
11368 echo "$as_me:$LINENO: checking for $ac_word" >&5
11369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11370 if test "${ac_cv_prog_STRIP+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 if test -n "$STRIP"; then
11374 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 STRIP=$ac_cv_prog_STRIP
11393 if test -n "$STRIP"; then
11394 echo "$as_me:$LINENO: result: $STRIP" >&5
11395 echo "${ECHO_T}$STRIP" >&6
11397 echo "$as_me:$LINENO: result: no" >&5
11398 echo "${ECHO_T}no" >&6
11402 if test -z "$ac_cv_prog_STRIP"; then
11404 # Extract the first word of "strip", so it can be a program name with args.
11405 set dummy strip; ac_word=$2
11406 echo "$as_me:$LINENO: checking for $ac_word" >&5
11407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11408 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 if test -n "$ac_ct_STRIP"; then
11412 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415 for as_dir in $PATH
11418 test -z "$as_dir" && as_dir=.
11419 for ac_exec_ext in '' $ac_executable_extensions; do
11420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11421 ac_cv_prog_ac_ct_STRIP="strip"
11422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11428 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11431 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11432 if test -n "$ac_ct_STRIP"; then
11433 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11434 echo "${ECHO_T}$ac_ct_STRIP" >&6
11436 echo "$as_me:$LINENO: result: no" >&5
11437 echo "${ECHO_T}no" >&6
11442 STRIP="$ac_cv_prog_STRIP"
11447 old_CFLAGS="$CFLAGS"
11449 # Set sane defaults for various variables
11450 test -z "$AR" && AR=ar
11451 test -z "$AR_FLAGS" && AR_FLAGS=cru
11452 test -z "$AS" && AS=as
11453 test -z "$CC" && CC=cc
11454 test -z "$LTCC" && LTCC=$CC
11455 test -z "$DLLTOOL" && DLLTOOL=dlltool
11456 test -z "$LD" && LD=ld
11457 test -z "$LN_S" && LN_S="ln -s"
11458 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11459 test -z "$NM" && NM=nm
11460 test -z "$SED" && SED=sed
11461 test -z "$OBJDUMP" && OBJDUMP=objdump
11462 test -z "$RANLIB" && RANLIB=:
11463 test -z "$STRIP" && STRIP=:
11464 test -z "$ac_objext" && ac_objext=o
11466 # Determine commands to create old-style static archives.
11467 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11468 old_postinstall_cmds='chmod 644 $oldlib'
11469 old_postuninstall_cmds=
11471 if test -n "$RANLIB"; then
11474 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11477 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11480 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11483 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11485 # Only perform the check for file, if the check method requires it
11486 case $deplibs_check_method in
11488 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11489 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11490 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11491 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11499 lt_save_MAGIC_CMD="$MAGIC_CMD"
11500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11502 for ac_dir in $ac_dummy; do
11504 test -z "$ac_dir" && ac_dir=.
11505 if test -f $ac_dir/${ac_tool_prefix}file; then
11506 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11507 if test -n "$file_magic_test_file"; then
11508 case $deplibs_check_method in
11510 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11513 $EGREP "$file_magic_regex" > /dev/null; then
11518 *** Warning: the command libtool uses to detect shared libraries,
11519 *** $file_magic_cmd, produces output that libtool cannot recognize.
11520 *** The result is that libtool may fail to recognize shared libraries
11521 *** as such. This will affect the creation of libtool libraries that
11522 *** depend on shared libraries, but programs linked with such libtool
11523 *** libraries will work regardless of this problem. Nevertheless, you
11524 *** may want to report the problem to your system manager and/or to
11525 *** bug-libtool@gnu.org
11535 MAGIC_CMD="$lt_save_MAGIC_CMD"
11540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11541 if test -n "$MAGIC_CMD"; then
11542 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11543 echo "${ECHO_T}$MAGIC_CMD" >&6
11545 echo "$as_me:$LINENO: result: no" >&5
11546 echo "${ECHO_T}no" >&6
11549 if test -z "$lt_cv_path_MAGIC_CMD"; then
11550 if test -n "$ac_tool_prefix"; then
11551 echo "$as_me:$LINENO: checking for file" >&5
11552 echo $ECHO_N "checking for file... $ECHO_C" >&6
11553 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11561 lt_save_MAGIC_CMD="$MAGIC_CMD"
11562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11563 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11564 for ac_dir in $ac_dummy; do
11566 test -z "$ac_dir" && ac_dir=.
11567 if test -f $ac_dir/file; then
11568 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11569 if test -n "$file_magic_test_file"; then
11570 case $deplibs_check_method in
11572 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11575 $EGREP "$file_magic_regex" > /dev/null; then
11580 *** Warning: the command libtool uses to detect shared libraries,
11581 *** $file_magic_cmd, produces output that libtool cannot recognize.
11582 *** The result is that libtool may fail to recognize shared libraries
11583 *** as such. This will affect the creation of libtool libraries that
11584 *** depend on shared libraries, but programs linked with such libtool
11585 *** libraries will work regardless of this problem. Nevertheless, you
11586 *** may want to report the problem to your system manager and/or to
11587 *** bug-libtool@gnu.org
11597 MAGIC_CMD="$lt_save_MAGIC_CMD"
11602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11603 if test -n "$MAGIC_CMD"; then
11604 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11605 echo "${ECHO_T}$MAGIC_CMD" >&6
11607 echo "$as_me:$LINENO: result: no" >&5
11608 echo "${ECHO_T}no" >&6
11621 enable_win32_dll=no
11623 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11624 if test "${enable_libtool_lock+set}" = set; then
11625 enableval="$enable_libtool_lock"
11628 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11631 # Check whether --with-pic or --without-pic was given.
11632 if test "${with_pic+set}" = set; then
11633 withval="$with_pic"
11634 pic_mode="$withval"
11638 test -z "$pic_mode" && pic_mode=default
11640 # Use C for the default configuration in the libtool script
11644 ac_cpp='$CPP $CPPFLAGS'
11645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11650 # Source file extension for C test sources.
11653 # Object file extension for compiled C test sources.
11657 # Code to be used in simple compile tests
11658 lt_simple_compile_test_code="int some_variable = 0;\n"
11660 # Code to be used in simple link tests
11661 lt_simple_link_test_code='int main(){return(0);}\n'
11664 # If no C compiler was specified, use CC.
11667 # Allow CC to be a program name with arguments.
11672 # Check for any special shared library compilation flags.
11675 if test "$GCC" = no; then
11678 lt_prog_cc_shlib='-belf'
11682 if test -n "$lt_prog_cc_shlib"; then
11683 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11684 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11685 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11687 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11688 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11689 lt_cv_prog_cc_can_build_shared=no
11695 # Check to make sure the static flag actually works.
11697 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11698 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11699 if test "${lt_prog_compiler_static_works+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 lt_prog_compiler_static_works=no
11703 save_LDFLAGS="$LDFLAGS"
11704 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11705 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11706 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11707 # The compiler can only warn and ignore the option if not recognized
11708 # So say no if there are warnings
11709 if test -s conftest.err; then
11710 # Append any errors to the config.log.
11711 cat conftest.err 1>&5
11713 lt_prog_compiler_static_works=yes
11717 LDFLAGS="$save_LDFLAGS"
11720 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11721 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11723 if test x"$lt_prog_compiler_static_works" = xyes; then
11726 lt_prog_compiler_static=
11732 lt_prog_compiler_no_builtin_flag=
11734 if test "$GCC" = yes; then
11735 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11738 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11739 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11740 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 lt_cv_prog_compiler_rtti_exceptions=no
11744 ac_outfile=conftest.$ac_objext
11745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11746 lt_compiler_flag="-fno-rtti -fno-exceptions"
11747 # Insert the option either (1) after the last *FLAGS variable, or
11748 # (2) before a word containing "conftest.", or (3) at the end.
11749 # Note that $ac_compile itself does not contain backslashes and begins
11750 # with a dollar sign (not a hyphen), so the echo should work correctly.
11751 # The option is referenced via a variable to avoid confusing sed.
11752 lt_compile=`echo "$ac_compile" | $SED \
11753 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11755 -e 's:$: $lt_compiler_flag:'`
11756 (eval echo "\"\$as_me:11756: $lt_compile\"" >&5)
11757 (eval "$lt_compile" 2>conftest.err)
11759 cat conftest.err >&5
11760 echo "$as_me:11760: \$? = $ac_status" >&5
11761 if (exit $ac_status) && test -s "$ac_outfile"; then
11762 # The compiler can only warn and ignore the option if not recognized
11763 # So say no if there are warnings
11764 if test ! -s conftest.err; then
11765 lt_cv_prog_compiler_rtti_exceptions=yes
11771 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11772 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11774 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11775 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11782 lt_prog_compiler_wl=
11783 lt_prog_compiler_pic=
11784 lt_prog_compiler_static=
11786 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11787 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11789 if test "$GCC" = yes; then
11790 lt_prog_compiler_wl='-Wl,'
11791 lt_prog_compiler_static='-static'
11795 # All AIX code is PIC.
11796 if test "$host_cpu" = ia64; then
11797 # AIX 5 now supports IA64 processor
11798 lt_prog_compiler_static='-Bstatic'
11803 # FIXME: we need at least 68020 code to build shared libraries, but
11804 # adding the `-m68020' flag to GCC prevents building anything better,
11806 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11809 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11810 # PIC is the default for these OSes.
11813 mingw* | pw32* | os2*)
11814 # This hack is so that the source file can tell whether it is being
11815 # built for inclusion in a dll (and should export symbols for example).
11816 lt_prog_compiler_pic='-DDLL_EXPORT'
11819 darwin* | rhapsody*)
11820 # PIC is the default on this platform
11821 # Common symbols not allowed in MH_DYLIB files
11822 lt_prog_compiler_pic='-fno-common'
11826 # Just because we use GCC doesn't mean we suddenly get shared libraries
11827 # on systems that don't support them.
11828 lt_prog_compiler_can_build_shared=no
11833 if test -d /usr/nec; then
11834 lt_prog_compiler_pic=-Kconform_pic
11839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11840 # not for PA HP-UX.
11841 case "$host_cpu" in
11846 lt_prog_compiler_pic='-fPIC'
11852 lt_prog_compiler_pic='-fPIC'
11856 # PORTME Check for flag to pass linker flags through the system compiler.
11859 lt_prog_compiler_wl='-Wl,'
11860 if test "$host_cpu" = ia64; then
11861 # AIX 5 now supports IA64 processor
11862 lt_prog_compiler_static='-Bstatic'
11864 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11868 # PIC is the default on this platform
11869 # Common symbols not allowed in MH_DYLIB files
11870 case "$cc_basename" in
11872 lt_prog_compiler_pic='-qnocommon'
11873 lt_prog_compiler_wl='-Wl,'
11878 mingw* | pw32* | os2*)
11879 # This hack is so that the source file can tell whether it is being
11880 # built for inclusion in a dll (and should export symbols for example).
11881 lt_prog_compiler_pic='-DDLL_EXPORT'
11884 hpux9* | hpux10* | hpux11*)
11885 lt_prog_compiler_wl='-Wl,'
11886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11887 # not for PA HP-UX.
11888 case "$host_cpu" in
11893 lt_prog_compiler_pic='+Z'
11896 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11897 lt_prog_compiler_static='${wl}-a ${wl}archive'
11900 irix5* | irix6* | nonstopux*)
11901 lt_prog_compiler_wl='-Wl,'
11902 # PIC (with -KPIC) is the default.
11903 lt_prog_compiler_static='-non_shared'
11907 lt_prog_compiler_pic='-KPIC'
11908 lt_prog_compiler_static='-Bstatic'
11914 lt_prog_compiler_wl='-Wl,'
11915 lt_prog_compiler_pic='-KPIC'
11916 lt_prog_compiler_static='-static'
11919 lt_prog_compiler_wl='-Wl,'
11920 # All Alpha code is PIC.
11921 lt_prog_compiler_static='-non_shared'
11926 osf3* | osf4* | osf5*)
11927 lt_prog_compiler_wl='-Wl,'
11928 # All OSF/1 code is PIC.
11929 lt_prog_compiler_static='-non_shared'
11933 lt_prog_compiler_pic='-Kpic'
11934 lt_prog_compiler_static='-dn'
11938 lt_prog_compiler_wl='-Wl,'
11939 lt_prog_compiler_pic='-KPIC'
11940 lt_prog_compiler_static='-Bstatic'
11944 lt_prog_compiler_wl='-Qoption ld '
11945 lt_prog_compiler_pic='-PIC'
11946 lt_prog_compiler_static='-Bstatic'
11949 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11950 lt_prog_compiler_wl='-Wl,'
11951 lt_prog_compiler_pic='-KPIC'
11952 lt_prog_compiler_static='-Bstatic'
11956 if test -d /usr/nec ;then
11957 lt_prog_compiler_pic='-Kconform_pic'
11958 lt_prog_compiler_static='-Bstatic'
11963 lt_prog_compiler_pic='-pic'
11964 lt_prog_compiler_static='-Bstatic'
11968 lt_prog_compiler_can_build_shared=no
11973 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11974 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11977 # Check to make sure the PIC flag actually works.
11979 if test -n "$lt_prog_compiler_pic"; then
11981 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11982 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11983 if test "${lt_prog_compiler_pic_works+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 lt_prog_compiler_pic_works=no
11987 ac_outfile=conftest.$ac_objext
11988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11989 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11990 # Insert the option either (1) after the last *FLAGS variable, or
11991 # (2) before a word containing "conftest.", or (3) at the end.
11992 # Note that $ac_compile itself does not contain backslashes and begins
11993 # with a dollar sign (not a hyphen), so the echo should work correctly.
11994 # The option is referenced via a variable to avoid confusing sed.
11995 lt_compile=`echo "$ac_compile" | $SED \
11996 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11998 -e 's:$: $lt_compiler_flag:'`
11999 (eval echo "\"\$as_me:11999: $lt_compile\"" >&5)
12000 (eval "$lt_compile" 2>conftest.err)
12002 cat conftest.err >&5
12003 echo "$as_me:12003: \$? = $ac_status" >&5
12004 if (exit $ac_status) && test -s "$ac_outfile"; then
12005 # The compiler can only warn and ignore the option if not recognized
12006 # So say no if there are warnings
12007 if test ! -s conftest.err; then
12008 lt_prog_compiler_pic_works=yes
12014 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12015 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12017 if test x"$lt_prog_compiler_pic_works" = xyes; then
12018 case $lt_prog_compiler_pic in
12020 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12023 lt_prog_compiler_pic=
12024 lt_prog_compiler_can_build_shared=no
12029 # For platforms which do not support PIC, -DPIC is meaningless:
12031 lt_prog_compiler_pic=
12034 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12038 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12039 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12040 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 lt_cv_prog_compiler_c_o=no
12044 $rm -r conftest 2>/dev/null
12048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12050 lt_compiler_flag="-o out/conftest2.$ac_objext"
12051 # Insert the option either (1) after the last *FLAGS variable, or
12052 # (2) before a word containing "conftest.", or (3) at the end.
12053 # Note that $ac_compile itself does not contain backslashes and begins
12054 # with a dollar sign (not a hyphen), so the echo should work correctly.
12055 lt_compile=`echo "$ac_compile" | $SED \
12056 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12058 -e 's:$: $lt_compiler_flag:'`
12059 (eval echo "\"\$as_me:12059: $lt_compile\"" >&5)
12060 (eval "$lt_compile" 2>out/conftest.err)
12062 cat out/conftest.err >&5
12063 echo "$as_me:12063: \$? = $ac_status" >&5
12064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12066 # The compiler can only warn and ignore the option if not recognized
12067 # So say no if there are warnings
12068 if test ! -s out/conftest.err; then
12069 lt_cv_prog_compiler_c_o=yes
12074 # SGI C++ compiler will create directory out/ii_files/ for
12075 # template instantiation
12076 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12077 $rm out/* && rmdir out
12083 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12084 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12087 hard_links="nottested"
12088 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12089 # do not overwrite the value of need_locks provided by the user
12090 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12091 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12096 ln conftest.a conftest.b 2>&5 || hard_links=no
12097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12098 echo "$as_me:$LINENO: result: $hard_links" >&5
12099 echo "${ECHO_T}$hard_links" >&6
12100 if test "$hard_links" = no; then
12101 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12102 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12109 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12110 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12113 allow_undefined_flag=
12114 enable_shared_with_static_runtimes=no
12116 archive_expsym_cmds=
12117 old_archive_From_new_cmds=
12118 old_archive_from_expsyms_cmds=
12119 export_dynamic_flag_spec=
12120 whole_archive_flag_spec=
12121 thread_safe_flag_spec=
12122 hardcode_libdir_flag_spec=
12123 hardcode_libdir_flag_spec_ld=
12124 hardcode_libdir_separator=
12126 hardcode_minus_L=no
12127 hardcode_shlibpath_var=unsupported
12128 link_all_deplibs=unknown
12129 hardcode_automatic=no
12131 module_expsym_cmds=
12132 always_export_symbols=no
12133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12134 # include_expsyms should be a list of space-separated symbols to be *always*
12135 # included in the symbol list
12137 # exclude_expsyms can be an extended regexp of symbols to exclude
12138 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12140 # as well as any symbol that contains `d'.
12141 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12143 # platforms (ab)use it in PIC code, but their linkers get confused if
12144 # the symbol is explicitly referenced. Since portable code cannot
12145 # rely on this symbol name, it's probably fine to never include it in
12146 # preloaded symbol tables.
12147 extract_expsyms_cmds=
12150 cygwin* | mingw* | pw32*)
12151 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12152 # When not using gcc, we currently assume that we are using
12153 # Microsoft Visual C++.
12154 if test "$GCC" != yes; then
12164 if test "$with_gnu_ld" = yes; then
12165 # If archive_cmds runs LD, not CC, wlarc should be empty
12168 # See if GNU ld supports shared libraries.
12170 aix3* | aix4* | aix5*)
12171 # On AIX/PPC, the GNU linker is very broken
12172 if test "$host_cpu" != ia64; then
12176 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12177 *** to be unable to reliably create shared libraries on AIX.
12178 *** Therefore, libtool is disabling shared libraries support. If you
12179 *** really care for shared libraries, you may want to modify your PATH
12180 *** so that a non-GNU linker is found, and then restart.
12187 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)'
12188 hardcode_libdir_flag_spec='-L$libdir'
12189 hardcode_minus_L=yes
12191 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12192 # that the semantics of dynamic libraries on AmigaOS, at least up
12193 # to version 4, is to share data among multiple programs linked
12194 # with the same dynamic library. Since this doesn't match the
12195 # behavior of shared libraries on other platforms, we can't use
12201 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12202 allow_undefined_flag=unsupported
12203 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12204 # support --undefined. This deserves some investigation. FIXME
12205 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12211 cygwin* | mingw* | pw32*)
12212 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12213 # as there is no search path for DLLs.
12214 hardcode_libdir_flag_spec='-L$libdir'
12215 allow_undefined_flag=unsupported
12216 always_export_symbols=no
12217 enable_shared_with_static_runtimes=yes
12218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12220 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12222 # If the export-symbols file already is a .def file (1st line
12223 # is EXPORTS), use it as is; otherwise, prepend...
12224 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12225 cp $export_symbols $output_objdir/$soname.def;
12227 echo EXPORTS > $output_objdir/$soname.def;
12228 cat $export_symbols >> $output_objdir/$soname.def;
12230 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12238 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12247 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12252 *** create shared libraries on Solaris systems. Therefore, libtool
12253 *** is disabling shared libraries support. We urge you to upgrade GNU
12254 *** binutils to release 2.9.1 or newer. Another option is to modify
12255 *** your PATH or compiler configuration so that the native linker is
12256 *** used, and then restart.
12259 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12268 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12270 hardcode_direct=yes
12271 hardcode_shlibpath_var=no
12275 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12276 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277 archive_cmds="$tmp_archive_cmds"
12278 supports_anon_versioning=no
12279 case `$LD -v 2>/dev/null` in
12280 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12281 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12282 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12283 *\ 2.11.*) ;; # other 2.11 versions
12284 *) supports_anon_versioning=yes ;;
12286 if test $supports_anon_versioning = yes; then
12287 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12288 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12289 $echo "local: *; };" >> $output_objdir/$libname.ver~
12290 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12292 archive_expsym_cmds="$tmp_archive_cmds"
12300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12309 if test "$ld_shlibs" = yes; then
12310 runpath_var=LD_RUN_PATH
12311 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12312 export_dynamic_flag_spec='${wl}--export-dynamic'
12313 # ancient GNU ld didn't support --whole-archive et. al.
12314 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12315 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12317 whole_archive_flag_spec=
12321 # PORTME fill in a description of your system's linker (not GNU ld)
12324 allow_undefined_flag=unsupported
12325 always_export_symbols=yes
12326 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'
12327 # Note: this linker hardcodes the directories in LIBPATH if there
12328 # are no directories specified by -L.
12329 hardcode_minus_L=yes
12330 if test "$GCC" = yes && test -z "$link_static_flag"; then
12331 # Neither direct hardcoding nor static linking is supported with a
12333 hardcode_direct=unsupported
12338 if test "$host_cpu" = ia64; then
12339 # On IA64, the linker does run time linking by default, so we don't
12340 # have to do anything special.
12341 aix_use_runtimelinking=no
12342 exp_sym_flag='-Bexport'
12345 # If we're using GNU nm, then we don't want the "-C" option.
12346 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12347 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12348 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'
12350 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'
12352 aix_use_runtimelinking=no
12354 # Test if we are trying to use run time linking or normal
12355 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12356 # need to do runtime linking.
12357 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12358 for ld_flag in $LDFLAGS; do
12359 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12360 aix_use_runtimelinking=yes
12366 exp_sym_flag='-bexport'
12367 no_entry_flag='-bnoentry'
12370 # When large executables or shared objects are built, AIX ld can
12371 # have problems creating the table of contents. If linking a library
12372 # or program results in "error TOC overflow" add -mminimal-toc to
12373 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12374 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12377 hardcode_direct=yes
12378 hardcode_libdir_separator=':'
12379 link_all_deplibs=yes
12381 if test "$GCC" = yes; then
12382 case $host_os in aix4.012|aix4.012.*)
12383 # We only want to do this on AIX 4.2 and lower, the check
12384 # below for broken collect2 doesn't work under 4.3+
12385 collect2name=`${CC} -print-prog-name=collect2`
12386 if test -f "$collect2name" && \
12387 strings "$collect2name" | grep resolve_lib_name >/dev/null
12389 # We have reworked collect2
12390 hardcode_direct=yes
12392 # We have old collect2
12393 hardcode_direct=unsupported
12394 # It fails to find uninstalled libraries when the uninstalled
12395 # path is not listed in the libpath. Setting hardcode_minus_L
12396 # to unsupported forces relinking
12397 hardcode_minus_L=yes
12398 hardcode_libdir_flag_spec='-L$libdir'
12399 hardcode_libdir_separator=
12402 shared_flag='-shared'
12405 if test "$host_cpu" = ia64; then
12406 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12407 # chokes on -Wl,-G. The following line is correct:
12410 if test "$aix_use_runtimelinking" = yes; then
12411 shared_flag='${wl}-G'
12413 shared_flag='${wl}-bM:SRE'
12418 # It seems that -bexpall does not export symbols beginning with
12419 # underscore (_), so it is better to generate a list of symbols to export.
12420 always_export_symbols=yes
12421 if test "$aix_use_runtimelinking" = yes; then
12422 # Warning - without using the other runtime loading flags (-brtl),
12423 # -berok will link without error, but may produce a broken library.
12424 allow_undefined_flag='-berok'
12425 # Determine the default libpath from the value encoded in an empty executable.
12426 cat >conftest.$ac_ext <<_ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12443 (eval $ac_link) 2>conftest.er1
12445 grep -v '^ *+' conftest.er1 >conftest.err
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } &&
12450 { ac_try='test -z "$ac_c_werror_flag"
12451 || test ! -s conftest.err'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest$ac_exeext'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12466 # Check for a 64-bit object if we didn't find anything.
12467 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; }
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12474 rm -f conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12478 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12479 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"
12481 if test "$host_cpu" = ia64; then
12482 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12483 allow_undefined_flag="-z nodefs"
12484 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"
12486 # Determine the default libpath from the value encoded in an empty executable.
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504 (eval $ac_link) 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest$ac_exeext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12527 # Check for a 64-bit object if we didn't find anything.
12528 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; }
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12535 rm -f conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12539 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12540 # Warning - without using the other run time loading flags,
12541 # -berok will link without error, but may produce a broken library.
12542 no_undefined_flag=' ${wl}-bernotok'
12543 allow_undefined_flag=' ${wl}-berok'
12544 # -bexpall does not export symbols beginning with underscore (_)
12545 always_export_symbols=yes
12546 # Exported symbols can be pulled into shared objects from archives
12547 whole_archive_flag_spec=' '
12548 archive_cmds_need_lc=yes
12549 # This is similar to how AIX traditionally builds it's shared libraries.
12550 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'
12556 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)'
12557 hardcode_libdir_flag_spec='-L$libdir'
12558 hardcode_minus_L=yes
12559 # see comment about different semantics on the GNU ld section
12564 export_dynamic_flag_spec=-rdynamic
12567 cygwin* | mingw* | pw32*)
12568 # When not using gcc, we currently assume that we are using
12569 # Microsoft Visual C++.
12570 # hardcode_libdir_flag_spec is actually meaningless, as there is
12571 # no search path for DLLs.
12572 hardcode_libdir_flag_spec=' '
12573 allow_undefined_flag=unsupported
12574 # Tell ltmain to make .lib files, not .a files.
12576 # Tell ltmain to make .dll files, not .so files.
12578 # FIXME: Setting linknames here is a bad hack.
12579 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12580 # The linker will automatically build a .lib file if we build a DLL.
12581 old_archive_From_new_cmds='true'
12582 # FIXME: Should let the user specify the lib program.
12583 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12584 fix_srcfile_path='`cygpath -w "$srcfile"`'
12585 enable_shared_with_static_runtimes=yes
12588 darwin* | rhapsody*)
12590 rhapsody* | darwin1.[012])
12591 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12594 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12595 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12597 case ${MACOSX_DEPLOYMENT_TARGET} in
12599 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12602 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12608 archive_cmds_need_lc=no
12610 hardcode_automatic=yes
12611 hardcode_shlibpath_var=unsupported
12612 whole_archive_flag_spec=''
12613 link_all_deplibs=yes
12614 if test "$GCC" = yes ; then
12615 output_verbose_link_cmd='echo'
12616 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12617 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12618 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12619 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}'
12620 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}'
12622 case "$cc_basename" in
12624 output_verbose_link_cmd='echo'
12625 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12626 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12627 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12628 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}'
12629 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}'
12639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12640 hardcode_libdir_flag_spec='-L$libdir'
12641 hardcode_shlibpath_var=no
12648 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12649 # support. Future versions do this automatically, but an explicit c++rt0.o
12650 # does not break anything, and helps significantly (at the cost of a little
12653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12654 hardcode_libdir_flag_spec='-R$libdir'
12655 hardcode_direct=yes
12656 hardcode_shlibpath_var=no
12659 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12662 hardcode_direct=yes
12663 hardcode_minus_L=yes
12664 hardcode_shlibpath_var=no
12667 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12668 freebsd* | kfreebsd*-gnu)
12669 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12670 hardcode_libdir_flag_spec='-R$libdir'
12671 hardcode_direct=yes
12672 hardcode_shlibpath_var=no
12676 if test "$GCC" = yes; then
12677 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'
12679 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'
12681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12682 hardcode_libdir_separator=:
12683 hardcode_direct=yes
12685 # hardcode_minus_L: Not really in the search PATH,
12686 # but as the default location of the library.
12687 hardcode_minus_L=yes
12688 export_dynamic_flag_spec='${wl}-E'
12692 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12693 case "$host_cpu" in
12695 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12702 case "$host_cpu" in
12704 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12707 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12711 if test "$with_gnu_ld" = no; then
12712 case "$host_cpu" in
12714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12715 hardcode_libdir_flag_spec_ld='+b $libdir'
12716 hardcode_libdir_separator=:
12718 hardcode_shlibpath_var=no
12721 hardcode_libdir_flag_spec='-L$libdir'
12723 hardcode_shlibpath_var=no
12725 # hardcode_minus_L: Not really in the search PATH,
12726 # but as the default location of the library.
12727 hardcode_minus_L=yes
12730 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12731 hardcode_libdir_separator=:
12732 hardcode_direct=yes
12733 export_dynamic_flag_spec='${wl}-E'
12735 # hardcode_minus_L: Not really in the search PATH,
12736 # but as the default location of the library.
12737 hardcode_minus_L=yes
12743 irix5* | irix6* | nonstopux*)
12744 if test "$GCC" = yes; then
12745 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'
12747 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'
12748 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12751 hardcode_libdir_separator=:
12752 link_all_deplibs=yes
12756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12759 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12761 hardcode_libdir_flag_spec='-R$libdir'
12762 hardcode_direct=yes
12763 hardcode_shlibpath_var=no
12767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12768 hardcode_direct=yes
12769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12770 hardcode_libdir_separator=:
12771 hardcode_shlibpath_var=no
12775 hardcode_direct=yes
12776 hardcode_shlibpath_var=no
12777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12779 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12781 export_dynamic_flag_spec='${wl}-E'
12784 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12785 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12786 hardcode_libdir_flag_spec='-R$libdir'
12789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12797 hardcode_libdir_flag_spec='-L$libdir'
12798 hardcode_minus_L=yes
12799 allow_undefined_flag=unsupported
12800 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'
12801 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12805 if test "$GCC" = yes; then
12806 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12807 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'
12809 allow_undefined_flag=' -expect_unresolved \*'
12810 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'
12812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12813 hardcode_libdir_separator=:
12816 osf4* | osf5*) # as osf3* with the addition of -msym flag
12817 if test "$GCC" = yes; then
12818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12819 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'
12820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12822 allow_undefined_flag=' -expect_unresolved \*'
12823 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'
12824 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12825 $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'
12827 # Both c and cxx compiler support -rpath directly
12828 hardcode_libdir_flag_spec='-rpath $libdir'
12830 hardcode_libdir_separator=:
12834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12835 hardcode_shlibpath_var=no
12836 export_dynamic_flag_spec='${wl}-Bexport'
12837 runpath_var=LD_RUN_PATH
12838 hardcode_runpath_var=yes
12842 no_undefined_flag=' -z text'
12843 if test "$GCC" = yes; then
12844 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12845 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12846 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12848 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12849 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12850 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12852 hardcode_libdir_flag_spec='-R$libdir'
12853 hardcode_shlibpath_var=no
12855 solaris2.[0-5] | solaris2.[0-5].*) ;;
12856 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12857 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12859 link_all_deplibs=yes
12863 if test "x$host_vendor" = xsequent; then
12864 # Use $CC to link under sequent, because it throws in some extra .o
12865 # files that make .init and .fini sections work.
12866 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12868 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12870 hardcode_libdir_flag_spec='-L$libdir'
12871 hardcode_direct=yes
12872 hardcode_minus_L=yes
12873 hardcode_shlibpath_var=no
12877 case $host_vendor in
12879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12880 hardcode_direct=yes # is this really true???
12883 ## LD is ld it makes a PLAMLIB
12884 ## CC just makes a GrossModule.
12885 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12886 reload_cmds='$CC -r -o $output$reload_objs'
12890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12891 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12894 runpath_var='LD_RUN_PATH'
12895 hardcode_shlibpath_var=no
12899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900 hardcode_shlibpath_var=no
12901 export_dynamic_flag_spec='-Bexport'
12905 if test -d /usr/nec; then
12906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12907 hardcode_shlibpath_var=no
12908 runpath_var=LD_RUN_PATH
12909 hardcode_runpath_var=yes
12915 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12916 hardcode_direct=yes
12917 hardcode_minus_L=no
12918 hardcode_shlibpath_var=no
12919 hardcode_runpath_var=yes
12920 runpath_var=LD_RUN_PATH
12923 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12924 no_undefined_flag='${wl}-z ${wl}text'
12925 if test "$GCC" = yes; then
12926 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12928 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12930 runpath_var='LD_RUN_PATH'
12931 hardcode_shlibpath_var=no
12935 no_undefined_flag=' -z text'
12936 # $CC -shared without GNU ld will not create a library from C++
12937 # object files and a static libstdc++, better avoid it by now
12938 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12939 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12940 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12941 hardcode_libdir_flag_spec=
12942 hardcode_shlibpath_var=no
12943 runpath_var='LD_RUN_PATH'
12947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12948 hardcode_libdir_flag_spec='-L$libdir'
12949 hardcode_shlibpath_var=no
12958 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12959 echo "${ECHO_T}$ld_shlibs" >&6
12960 test "$ld_shlibs" = no && can_build_shared=no
12962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12963 if test "$GCC" = yes; then
12964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12968 # Do we need to explicitly link libc?
12970 case "x$archive_cmds_need_lc" in
12972 # Assume -lc should be added
12973 archive_cmds_need_lc=yes
12975 if test "$enable_shared" = yes && test "$GCC" = yes; then
12976 case $archive_cmds in
12978 # FIXME: we may have to deal with multi-command sequences.
12981 # Test whether the compiler implicitly links with -lc since on some
12982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12983 # to ld, don't add -lc before -lgcc.
12984 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12985 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12990 (eval $ac_compile) 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } 2>conftest.err; then
12996 libobjs=conftest.$ac_objext
12998 wl=$lt_prog_compiler_wl
13004 lt_save_allow_undefined_flag=$allow_undefined_flag
13005 allow_undefined_flag=
13006 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13007 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }
13012 archive_cmds_need_lc=no
13014 archive_cmds_need_lc=yes
13016 allow_undefined_flag=$lt_save_allow_undefined_flag
13018 cat conftest.err 1>&5
13021 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13022 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13029 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13030 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13031 library_names_spec=
13032 libname_spec='lib$name'
13036 postuninstall_cmds=
13040 shlibpath_overrides_runpath=unknown
13042 dynamic_linker="$host_os ld.so"
13043 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13044 if test "$GCC" = yes; then
13045 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13046 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13047 # if the path contains ";" then we assume it to be the separator
13048 # otherwise default to the standard path separator (i.e. ":") - it is
13049 # assumed that no part of a normal pathname contains ";" but that should
13050 # okay in the real world where ";" in dirpaths is itself problematic.
13051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13056 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13058 need_lib_prefix=unknown
13059 hardcode_into_libs=no
13061 # when you set need_version to no, make sure it does not cause -set_version
13062 # flags to be left without arguments
13063 need_version=unknown
13068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13069 shlibpath_var=LIBPATH
13071 # AIX 3 has no versioning support, so we append a major version to the name.
13072 soname_spec='${libname}${release}${shared_ext}$major'
13079 hardcode_into_libs=yes
13080 if test "$host_cpu" = ia64; then
13081 # AIX 5 supports IA64
13082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13083 shlibpath_var=LD_LIBRARY_PATH
13085 # With GCC up to 2.95.x, collect2 would create an import file
13086 # for dependence libraries. The import file would start with
13087 # the line `#! .'. This would cause the generated library to
13088 # depend on `.', always an invalid library. This was fixed in
13089 # development snapshots of GCC prior to 3.0.
13091 aix4 | aix4.[01] | aix4.[01].*)
13092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13094 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13097 can_build_shared=no
13101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13102 # soname into executable. Probably we can add versioning support to
13103 # collect2, so additional links can be useful in future.
13104 if test "$aix_use_runtimelinking" = yes; then
13105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13106 # instead of lib<name>.a to let people know that these are not
13107 # typical AIX shared libraries.
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13110 # We preserve .a as extension for shared libraries through AIX4.2
13111 # and later when we are not doing run time linking.
13112 library_names_spec='${libname}${release}.a $libname.a'
13113 soname_spec='${libname}${release}${shared_ext}$major'
13115 shlibpath_var=LIBPATH
13120 library_names_spec='$libname.ixlibrary $libname.a'
13121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13122 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'
13126 library_names_spec='${libname}${shared_ext}'
13127 dynamic_linker="$host_os ld.so"
13128 shlibpath_var=LIBRARY_PATH
13134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13135 soname_spec='${libname}${release}${shared_ext}$major'
13136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13137 shlibpath_var=LD_LIBRARY_PATH
13138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13140 # the default ld.so.conf also contains /usr/contrib/lib and
13141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13142 # libtool to hard-code these into programs
13145 cygwin* | mingw* | pw32*)
13146 version_type=windows
13151 case $GCC,$host_os in
13152 yes,cygwin* | yes,mingw* | yes,pw32*)
13153 library_names_spec='$libname.dll.a'
13154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13155 postinstall_cmds='base_file=`basename \${file}`~
13156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13157 dldir=$destdir/`dirname \$dlpath`~
13158 test -d \$dldir || mkdir -p \$dldir~
13159 $install_prog $dir/$dlname \$dldir/$dlname'
13160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13161 dlpath=$dir/\$dldll~
13163 shlibpath_overrides_runpath=yes
13167 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13168 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13169 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13172 # MinGW DLLs use traditional 'lib' prefix
13173 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13175 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13176 # It is most probably a Windows format PATH printed by
13177 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13178 # path with ; separators, and with drive letters. We can handle the
13179 # drive letters (cygwin fileutils understands them), so leave them,
13180 # especially as we might pass files found there to a mingw objdump,
13181 # which wouldn't understand a cygwinified path. Ahh.
13182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13188 # pw32 DLLs use 'pw' prefix rather than 'lib'
13189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13198 dynamic_linker='Win32 ld.exe'
13199 # FIXME: first we should search . and the directory the executable is in
13203 darwin* | rhapsody*)
13204 dynamic_linker="$host_os dyld"
13205 version_type=darwin
13208 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13209 soname_spec='${libname}${release}${major}$shared_ext'
13210 shlibpath_overrides_runpath=yes
13211 shlibpath_var=DYLD_LIBRARY_PATH
13212 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13213 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13214 if test "$GCC" = yes; then
13215 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"`
13217 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13227 soname_spec='${libname}${release}${shared_ext}$major'
13228 shlibpath_var=LD_LIBRARY_PATH
13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13240 soname_spec='${libname}${release}${shared_ext}$major'
13241 shlibpath_var=LD_LIBRARY_PATH
13242 shlibpath_overrides_runpath=no
13243 hardcode_into_libs=yes
13244 dynamic_linker='GNU ld.so'
13248 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13249 version_type=freebsd-$objformat
13250 case $version_type in
13252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13261 shlibpath_var=LD_LIBRARY_PATH
13264 shlibpath_overrides_runpath=yes
13266 freebsd3.01* | freebsdelf3.01*)
13267 shlibpath_overrides_runpath=yes
13268 hardcode_into_libs=yes
13271 shlibpath_overrides_runpath=no
13272 hardcode_into_libs=yes
13281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13282 soname_spec='${libname}${release}${shared_ext}$major'
13283 shlibpath_var=LD_LIBRARY_PATH
13284 hardcode_into_libs=yes
13287 hpux9* | hpux10* | hpux11*)
13288 # Give a soname corresponding to the major version so that dld.sl refuses to
13289 # link against other versions.
13293 case "$host_cpu" in
13296 hardcode_into_libs=yes
13297 dynamic_linker="$host_os dld.so"
13298 shlibpath_var=LD_LIBRARY_PATH
13299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13301 soname_spec='${libname}${release}${shared_ext}$major'
13302 if test "X$HPUX_IA64_MODE" = X32; then
13303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13311 hardcode_into_libs=yes
13312 dynamic_linker="$host_os dld.sl"
13313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13316 soname_spec='${libname}${release}${shared_ext}$major'
13317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13322 dynamic_linker="$host_os dld.sl"
13323 shlibpath_var=SHLIB_PATH
13324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13326 soname_spec='${libname}${release}${shared_ext}$major'
13329 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13330 postinstall_cmds='chmod 555 $lib'
13333 irix5* | irix6* | nonstopux*)
13335 nonstopux*) version_type=nonstopux ;;
13337 if test "$lt_cv_prog_gnu_ld" = yes; then
13345 soname_spec='${libname}${release}${shared_ext}$major'
13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13348 irix5* | nonstopux*)
13349 libsuff= shlibsuff=
13352 case $LD in # libtool.m4 will add one of these switches to LD
13353 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13354 libsuff= shlibsuff= libmagic=32-bit;;
13355 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13356 libsuff=32 shlibsuff=N32 libmagic=N32;;
13357 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13358 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13359 *) libsuff= shlibsuff= libmagic=never-match;;
13363 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13364 shlibpath_overrides_runpath=no
13365 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13366 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13367 hardcode_into_libs=yes
13370 # No shared lib support for Linux oldld, aout, or coff.
13371 linux*oldld* | linux*aout* | linux*coff*)
13375 # This must be Linux ELF.
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381 soname_spec='${libname}${release}${shared_ext}$major'
13382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13383 shlibpath_var=LD_LIBRARY_PATH
13384 shlibpath_overrides_runpath=no
13385 # This implies no fast_install, which is unacceptable.
13386 # Some rework will be needed to allow for fast_install
13387 # before this can be enabled.
13388 hardcode_into_libs=yes
13390 # Append ld.so.conf contents to the search path
13391 if test -f /etc/ld.so.conf; then
13392 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13393 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13396 # We used to test for /lib/ld.so.1 and disable shared libraries on
13397 # powerpc, because MkLinux only supported shared libraries with the
13398 # GNU dynamic linker. Since this was broken with cross compilers,
13399 # most powerpc-linux boxes support dynamic linking these days and
13400 # people can always --disable-shared, the test was removed, and we
13401 # assume the GNU/Linux dynamic linker is in use.
13402 dynamic_linker='GNU/Linux ld.so'
13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13410 soname_spec='${libname}${release}${shared_ext}$major'
13411 shlibpath_var=LD_LIBRARY_PATH
13412 shlibpath_overrides_runpath=no
13413 hardcode_into_libs=yes
13414 dynamic_linker='GNU ld.so'
13421 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13424 dynamic_linker='NetBSD (a.out) ld.so'
13426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13427 soname_spec='${libname}${release}${shared_ext}$major'
13428 dynamic_linker='NetBSD ld.elf_so'
13430 shlibpath_var=LD_LIBRARY_PATH
13431 shlibpath_overrides_runpath=yes
13432 hardcode_into_libs=yes
13437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13438 shlibpath_var=LD_LIBRARY_PATH
13439 shlibpath_overrides_runpath=yes
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447 soname_spec='${libname}${release}${shared_ext}$major'
13448 shlibpath_var=LD_LIBRARY_PATH
13449 shlibpath_overrides_runpath=yes
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13458 shlibpath_var=LD_LIBRARY_PATH
13459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13461 openbsd2.[89] | openbsd2.[89].*)
13462 shlibpath_overrides_runpath=no
13465 shlibpath_overrides_runpath=yes
13469 shlibpath_overrides_runpath=yes
13474 libname_spec='$name'
13477 library_names_spec='$libname${shared_ext} $libname.a'
13478 dynamic_linker='OS/2 ld.exe'
13479 shlibpath_var=LIBPATH
13482 osf3* | osf4* | osf5*)
13486 soname_spec='${libname}${release}${shared_ext}$major'
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13495 soname_spec='${libname}${release}${shared_ext}$major'
13496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497 shlibpath_var=LD_LIBRARY_PATH
13504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505 soname_spec='${libname}${release}${shared_ext}$major'
13506 shlibpath_var=LD_LIBRARY_PATH
13507 shlibpath_overrides_runpath=yes
13508 hardcode_into_libs=yes
13509 # ldd complains unless libraries are executable
13510 postinstall_cmds='chmod +x $lib'
13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13516 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13517 shlibpath_var=LD_LIBRARY_PATH
13518 shlibpath_overrides_runpath=yes
13519 if test "$with_gnu_ld" = yes; then
13525 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528 soname_spec='${libname}${release}${shared_ext}$major'
13529 shlibpath_var=LD_LIBRARY_PATH
13530 case $host_vendor in
13532 shlibpath_overrides_runpath=no
13534 export_dynamic_flag_spec='${wl}-Blargedynsym'
13535 runpath_var=LD_RUN_PATH
13543 shlibpath_overrides_runpath=no
13544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13550 if test -d /usr/nec ;then
13552 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13553 soname_spec='$libname${shared_ext}.$major'
13554 shlibpath_var=LD_LIBRARY_PATH
13560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561 soname_spec='${libname}${release}${shared_ext}$major'
13562 shlibpath_var=LD_LIBRARY_PATH
13569 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13570 echo "${ECHO_T}$dynamic_linker" >&6
13571 test "$dynamic_linker" = no && can_build_shared=no
13573 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13574 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13576 if test -n "$hardcode_libdir_flag_spec" || \
13577 test -n "$runpath_var" || \
13578 test "X$hardcode_automatic" = "Xyes" ; then
13580 # We can hardcode non-existant directories.
13581 if test "$hardcode_direct" != no &&
13582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13583 # have to relink, otherwise we might link with an installed library
13584 # when we should be linking with a yet-to-be-installed one
13585 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13586 test "$hardcode_minus_L" != no; then
13587 # Linking always hardcodes the temporary library directory.
13588 hardcode_action=relink
13590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13591 hardcode_action=immediate
13594 # We cannot hardcode anything, or else we can only hardcode existing
13596 hardcode_action=unsupported
13598 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13599 echo "${ECHO_T}$hardcode_action" >&6
13601 if test "$hardcode_action" = relink; then
13602 # Fast installation is not supported
13603 enable_fast_install=no
13604 elif test "$shlibpath_overrides_runpath" = yes ||
13605 test "$enable_shared" = no; then
13606 # Fast installation is not necessary
13607 enable_fast_install=needless
13612 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13613 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13614 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13615 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13616 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13617 echo "$as_me:$LINENO: result: yes" >&5
13618 echo "${ECHO_T}yes" >&6
13620 # FIXME - insert some real tests, host_os isn't really good enough
13623 if test -n "$STRIP" ; then
13624 striplib="$STRIP -x"
13625 echo "$as_me:$LINENO: result: yes" >&5
13626 echo "${ECHO_T}yes" >&6
13628 echo "$as_me:$LINENO: result: no" >&5
13629 echo "${ECHO_T}no" >&6
13633 echo "$as_me:$LINENO: result: no" >&5
13634 echo "${ECHO_T}no" >&6
13639 if test "x$enable_dlopen" != xyes; then
13640 enable_dlopen=unknown
13641 enable_dlopen_self=unknown
13642 enable_dlopen_self_static=unknown
13649 lt_cv_dlopen="load_add_on"
13651 lt_cv_dlopen_self=yes
13655 lt_cv_dlopen="LoadLibrary"
13660 lt_cv_dlopen="dlopen"
13665 # if libdl is installed we need to link against it
13666 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13667 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13668 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 ac_check_lib_save_LIBS=$LIBS
13673 cat >conftest.$ac_ext <<_ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13680 /* Override any gcc2 internal prototype to avoid an error. */
13684 /* We use char because int might match the return type of a gcc2
13685 builtin and then its argument prototype would still apply. */
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13697 (eval $ac_link) 2>conftest.er1
13699 grep -v '^ *+' conftest.er1 >conftest.err
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag"
13705 || test ! -s conftest.err'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest$ac_exeext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 ac_cv_lib_dl_dlopen=yes
13719 echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13722 ac_cv_lib_dl_dlopen=no
13724 rm -f conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 LIBS=$ac_check_lib_save_LIBS
13728 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13729 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13730 if test $ac_cv_lib_dl_dlopen = yes; then
13731 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13734 lt_cv_dlopen="dyld"
13736 lt_cv_dlopen_self=yes
13743 echo "$as_me:$LINENO: checking for shl_load" >&5
13744 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13745 if test "${ac_cv_func_shl_load+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 cat >conftest.$ac_ext <<_ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13754 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13756 #define shl_load innocuous_shl_load
13758 /* System header to define __stub macros and hopefully few prototypes,
13759 which can conflict with char shl_load (); below.
13760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13761 <limits.h> exists even on freestanding compilers. */
13764 # include <limits.h>
13766 # include <assert.h>
13771 /* Override any gcc2 internal prototype to avoid an error. */
13776 /* We use char because int might match the return type of a gcc2
13777 builtin and then its argument prototype would still apply. */
13779 /* The GNU C library defines this for functions which it implements
13780 to always fail with ENOSYS. Some functions are actually named
13781 something starting with __ and the normal name is an alias. */
13782 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13785 char (*f) () = shl_load;
13794 return f != shl_load;
13799 rm -f conftest.$ac_objext conftest$ac_exeext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13801 (eval $ac_link) 2>conftest.er1
13803 grep -v '^ *+' conftest.er1 >conftest.err
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest$ac_exeext'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_cv_func_shl_load=yes
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 ac_cv_func_shl_load=no
13828 rm -f conftest.err conftest.$ac_objext \
13829 conftest$ac_exeext conftest.$ac_ext
13831 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13832 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13833 if test $ac_cv_func_shl_load = yes; then
13834 lt_cv_dlopen="shl_load"
13836 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13837 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13838 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 ac_check_lib_save_LIBS=$LIBS
13843 cat >conftest.$ac_ext <<_ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13850 /* Override any gcc2 internal prototype to avoid an error. */
13854 /* We use char because int might match the return type of a gcc2
13855 builtin and then its argument prototype would still apply. */
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13867 (eval $ac_link) 2>conftest.er1
13869 grep -v '^ *+' conftest.er1 >conftest.err
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -z "$ac_c_werror_flag"
13875 || test ! -s conftest.err'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; } &&
13881 { ac_try='test -s conftest$ac_exeext'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 ac_cv_lib_dld_shl_load=yes
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13892 ac_cv_lib_dld_shl_load=no
13894 rm -f conftest.err conftest.$ac_objext \
13895 conftest$ac_exeext conftest.$ac_ext
13896 LIBS=$ac_check_lib_save_LIBS
13898 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13899 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13900 if test $ac_cv_lib_dld_shl_load = yes; then
13901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13903 echo "$as_me:$LINENO: checking for dlopen" >&5
13904 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13905 if test "${ac_cv_func_dlopen+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 cat >conftest.$ac_ext <<_ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13914 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13916 #define dlopen innocuous_dlopen
13918 /* System header to define __stub macros and hopefully few prototypes,
13919 which can conflict with char dlopen (); below.
13920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13921 <limits.h> exists even on freestanding compilers. */
13924 # include <limits.h>
13926 # include <assert.h>
13931 /* Override any gcc2 internal prototype to avoid an error. */
13936 /* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13939 /* The GNU C library defines this for functions which it implements
13940 to always fail with ENOSYS. Some functions are actually named
13941 something starting with __ and the normal name is an alias. */
13942 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13945 char (*f) () = dlopen;
13954 return f != dlopen;
13959 rm -f conftest.$ac_objext conftest$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961 (eval $ac_link) 2>conftest.er1
13963 grep -v '^ *+' conftest.er1 >conftest.err
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
13968 { ac_try='test -z "$ac_c_werror_flag"
13969 || test ! -s conftest.err'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest$ac_exeext'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13981 ac_cv_func_dlopen=yes
13983 echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13986 ac_cv_func_dlopen=no
13988 rm -f conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext conftest.$ac_ext
13991 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13992 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13993 if test $ac_cv_func_dlopen = yes; then
13994 lt_cv_dlopen="dlopen"
13996 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13997 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13998 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 ac_check_lib_save_LIBS=$LIBS
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14010 /* Override any gcc2 internal prototype to avoid an error. */
14014 /* We use char because int might match the return type of a gcc2
14015 builtin and then its argument prototype would still apply. */
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14027 (eval $ac_link) 2>conftest.er1
14029 grep -v '^ *+' conftest.er1 >conftest.err
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
14034 { ac_try='test -z "$ac_c_werror_flag"
14035 || test ! -s conftest.err'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; } &&
14041 { ac_try='test -s conftest$ac_exeext'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047 ac_cv_lib_dl_dlopen=yes
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ac_cv_lib_dl_dlopen=no
14054 rm -f conftest.err conftest.$ac_objext \
14055 conftest$ac_exeext conftest.$ac_ext
14056 LIBS=$ac_check_lib_save_LIBS
14058 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14060 if test $ac_cv_lib_dl_dlopen = yes; then
14061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14063 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14064 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14065 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 ac_check_lib_save_LIBS=$LIBS
14069 LIBS="-lsvld $LIBS"
14070 cat >conftest.$ac_ext <<_ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14077 /* Override any gcc2 internal prototype to avoid an error. */
14081 /* We use char because int might match the return type of a gcc2
14082 builtin and then its argument prototype would still apply. */
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094 (eval $ac_link) 2>conftest.er1
14096 grep -v '^ *+' conftest.er1 >conftest.err
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest$ac_exeext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_cv_lib_svld_dlopen=yes
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 ac_cv_lib_svld_dlopen=no
14121 rm -f conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
14123 LIBS=$ac_check_lib_save_LIBS
14125 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14126 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14127 if test $ac_cv_lib_svld_dlopen = yes; then
14128 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14130 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14131 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14132 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 ac_check_lib_save_LIBS=$LIBS
14137 cat >conftest.$ac_ext <<_ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14144 /* Override any gcc2 internal prototype to avoid an error. */
14148 /* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14159 rm -f conftest.$ac_objext conftest$ac_exeext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14161 (eval $ac_link) 2>conftest.er1
14163 grep -v '^ *+' conftest.er1 >conftest.err
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try='test -z "$ac_c_werror_flag"
14169 || test ! -s conftest.err'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try='test -s conftest$ac_exeext'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 ac_cv_lib_dld_dld_link=yes
14183 echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14186 ac_cv_lib_dld_dld_link=no
14188 rm -f conftest.err conftest.$ac_objext \
14189 conftest$ac_exeext conftest.$ac_ext
14190 LIBS=$ac_check_lib_save_LIBS
14192 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14193 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14194 if test $ac_cv_lib_dld_dld_link = yes; then
14195 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14216 if test "x$lt_cv_dlopen" != xno; then
14222 case $lt_cv_dlopen in
14224 save_CPPFLAGS="$CPPFLAGS"
14225 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14227 save_LDFLAGS="$LDFLAGS"
14228 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14231 LIBS="$lt_cv_dlopen_libs $LIBS"
14233 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14234 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14235 if test "${lt_cv_dlopen_self+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 if test "$cross_compiling" = yes; then :
14239 lt_cv_dlopen_self=cross
14241 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14242 lt_status=$lt_dlunknown
14243 cat > conftest.$ac_ext <<EOF
14244 #line 14244 "configure"
14245 #include "confdefs.h"
14254 # define LT_DLGLOBAL RTLD_GLOBAL
14257 # define LT_DLGLOBAL DL_GLOBAL
14259 # define LT_DLGLOBAL 0
14263 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14264 find out it does not work in some platform. */
14265 #ifndef LT_DLLAZY_OR_NOW
14267 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14270 # define LT_DLLAZY_OR_NOW DL_LAZY
14273 # define LT_DLLAZY_OR_NOW RTLD_NOW
14276 # define LT_DLLAZY_OR_NOW DL_NOW
14278 # define LT_DLLAZY_OR_NOW 0
14286 extern "C" void exit (int);
14289 void fnord() { int i=42;}
14292 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14293 int status = $lt_dlunknown;
14297 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14298 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14299 /* dlclose (self); */
14305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14306 (eval $ac_link) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14310 (./conftest; exit; ) 2>/dev/null
14312 case x$lt_status in
14313 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14314 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14315 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14318 # compilation failed
14319 lt_cv_dlopen_self=no
14326 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14327 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14329 if test "x$lt_cv_dlopen_self" = xyes; then
14330 LDFLAGS="$LDFLAGS $link_static_flag"
14331 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14332 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14333 if test "${lt_cv_dlopen_self_static+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 if test "$cross_compiling" = yes; then :
14337 lt_cv_dlopen_self_static=cross
14339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14340 lt_status=$lt_dlunknown
14341 cat > conftest.$ac_ext <<EOF
14342 #line 14342 "configure"
14343 #include "confdefs.h"
14352 # define LT_DLGLOBAL RTLD_GLOBAL
14355 # define LT_DLGLOBAL DL_GLOBAL
14357 # define LT_DLGLOBAL 0
14361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14362 find out it does not work in some platform. */
14363 #ifndef LT_DLLAZY_OR_NOW
14365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14368 # define LT_DLLAZY_OR_NOW DL_LAZY
14371 # define LT_DLLAZY_OR_NOW RTLD_NOW
14374 # define LT_DLLAZY_OR_NOW DL_NOW
14376 # define LT_DLLAZY_OR_NOW 0
14384 extern "C" void exit (int);
14387 void fnord() { int i=42;}
14390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14391 int status = $lt_dlunknown;
14395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14397 /* dlclose (self); */
14403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14404 (eval $ac_link) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14408 (./conftest; exit; ) 2>/dev/null
14410 case x$lt_status in
14411 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14412 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14413 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14416 # compilation failed
14417 lt_cv_dlopen_self_static=no
14424 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14425 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14428 CPPFLAGS="$save_CPPFLAGS"
14429 LDFLAGS="$save_LDFLAGS"
14434 case $lt_cv_dlopen_self in
14435 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14436 *) enable_dlopen_self=unknown ;;
14439 case $lt_cv_dlopen_self_static in
14440 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14441 *) enable_dlopen_self_static=unknown ;;
14446 # Report which librarie types wil actually be built
14447 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14448 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14449 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14450 echo "${ECHO_T}$can_build_shared" >&6
14452 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14453 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14454 test "$can_build_shared" = "no" && enable_shared=no
14456 # On AIX, shared libraries and static libraries use the same namespace, and
14457 # are all built from PIC.
14460 test "$enable_shared" = yes && enable_static=no
14461 if test -n "$RANLIB"; then
14462 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14463 postinstall_cmds='$RANLIB $lib'
14468 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14469 test "$enable_shared" = yes && enable_static=no
14473 echo "$as_me:$LINENO: result: $enable_shared" >&5
14474 echo "${ECHO_T}$enable_shared" >&6
14476 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14477 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14478 # Make sure either enable_shared or enable_static is yes.
14479 test "$enable_shared" = yes || enable_static=yes
14480 echo "$as_me:$LINENO: result: $enable_static" >&5
14481 echo "${ECHO_T}$enable_static" >&6
14483 # The else clause should only fire when bootstrapping the
14484 # libtool distribution, otherwise you forgot to ship ltmain.sh
14485 # with your package, and you will get complaints that there are
14486 # no rules to generate ltmain.sh.
14487 if test -f "$ltmain"; then
14488 # See if we are running on zsh, and set the options which allow our commands through
14489 # without removal of \ escapes.
14490 if test -n "${ZSH_VERSION+set}" ; then
14491 setopt NO_GLOB_SUBST
14493 # Now quote all the things that may contain metacharacters while being
14494 # careful not to overquote the AC_SUBSTed values. We take copies of the
14495 # variables and quote the copies for generation of the libtool script.
14496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14498 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14499 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14500 deplibs_check_method reload_flag reload_cmds need_locks \
14501 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14502 lt_cv_sys_global_symbol_to_c_name_address \
14503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14504 old_postinstall_cmds old_postuninstall_cmds \
14508 lt_prog_compiler_wl \
14509 lt_prog_compiler_pic \
14510 lt_prog_compiler_static \
14511 lt_prog_compiler_no_builtin_flag \
14512 export_dynamic_flag_spec \
14513 thread_safe_flag_spec \
14514 whole_archive_flag_spec \
14515 enable_shared_with_static_runtimes \
14517 old_archive_from_new_cmds \
14522 compiler_lib_search_path \
14524 archive_expsym_cmds \
14526 postuninstall_cmds \
14527 old_archive_from_expsyms_cmds \
14528 allow_undefined_flag \
14529 no_undefined_flag \
14530 export_symbols_cmds \
14531 hardcode_libdir_flag_spec \
14532 hardcode_libdir_flag_spec_ld \
14533 hardcode_libdir_separator \
14534 hardcode_automatic \
14536 module_expsym_cmds \
14537 lt_cv_prog_compiler_c_o \
14539 include_expsyms; do
14542 old_archive_cmds | \
14543 old_archive_from_new_cmds | \
14545 archive_expsym_cmds | \
14547 module_expsym_cmds | \
14548 old_archive_from_expsyms_cmds | \
14549 export_symbols_cmds | \
14550 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14551 postinstall_cmds | postuninstall_cmds | \
14552 old_postinstall_cmds | old_postuninstall_cmds | \
14553 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14554 # Double-quote double-evaled strings.
14555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14564 *'\$0 --fallback-echo"')
14565 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14569 cfgfile="${ofile}T"
14570 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14572 { echo "$as_me:$LINENO: creating $ofile" >&5
14573 echo "$as_me: creating $ofile" >&6;}
14575 cat <<__EOF__ >> "$cfgfile"
14578 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14579 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14580 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14582 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14583 # Free Software Foundation, Inc.
14585 # This file is part of GNU Libtool:
14586 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14588 # This program is free software; you can redistribute it and/or modify
14589 # it under the terms of the GNU General Public License as published by
14590 # the Free Software Foundation; either version 2 of the License, or
14591 # (at your option) any later version.
14593 # This program is distributed in the hope that it will be useful, but
14594 # WITHOUT ANY WARRANTY; without even the implied warranty of
14595 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14596 # General Public License for more details.
14598 # You should have received a copy of the GNU General Public License
14599 # along with this program; if not, write to the Free Software
14600 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14602 # As a special exception to the GNU General Public License, if you
14603 # distribute this file as part of a program that contains a
14604 # configuration script generated by Autoconf, you may include it under
14605 # the same distribution terms that you use for the rest of that program.
14607 # A sed program that does not truncate output.
14610 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14611 Xsed="$SED -e s/^X//"
14613 # The HP-UX ksh and POSIX shell print the target directory to stdout
14614 # if CDPATH is set.
14615 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14617 # The names of the tagged configurations supported by this script.
14620 # ### BEGIN LIBTOOL CONFIG
14622 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14624 # Shell to use when invoking shell scripts.
14627 # Whether or not to build shared libraries.
14628 build_libtool_libs=$enable_shared
14630 # Whether or not to build static libraries.
14631 build_old_libs=$enable_static
14633 # Whether or not to add -lc for building shared libraries.
14634 build_libtool_need_lc=$archive_cmds_need_lc
14636 # Whether or not to disallow shared libs when runtime libs are static
14637 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14639 # Whether or not to optimize for fast installation.
14640 fast_install=$enable_fast_install
14643 host_alias=$host_alias
14646 # An echo program that does not interpret backslashes.
14651 AR_FLAGS=$lt_AR_FLAGS
14656 # A language-specific compiler.
14659 # Is the compiler the GNU C compiler?
14665 # The linker used to build libraries.
14668 # Whether we need hard or soft links.
14671 # A BSD-compatible nm program.
14674 # A symbol stripping program
14677 # Used to examine libraries when file_magic_cmd begins "file"
14678 MAGIC_CMD=$MAGIC_CMD
14680 # Used on cygwin: DLL creation program.
14683 # Used on cygwin: object dumper.
14686 # Used on cygwin: assembler.
14689 # The name of the directory that contains temporary libtool files.
14692 # How to create reloadable object files.
14693 reload_flag=$lt_reload_flag
14694 reload_cmds=$lt_reload_cmds
14696 # How to pass a linker flag through the compiler.
14697 wl=$lt_lt_prog_compiler_wl
14699 # Object file suffix (normally "o").
14700 objext="$ac_objext"
14702 # Old archive suffix (normally "a").
14705 # Shared library suffix (normally ".so").
14706 shrext_cmds='$shrext_cmds'
14708 # Executable file suffix (normally "").
14711 # Additional compiler flags for building library objects.
14712 pic_flag=$lt_lt_prog_compiler_pic
14715 # What is the maximum length of a command?
14716 max_cmd_len=$lt_cv_sys_max_cmd_len
14718 # Does compiler simultaneously support -c and -o options?
14719 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14721 # Must we lock files when doing compilation ?
14722 need_locks=$lt_need_locks
14724 # Do we need the lib prefix for modules?
14725 need_lib_prefix=$need_lib_prefix
14727 # Do we need a version for libraries?
14728 need_version=$need_version
14730 # Whether dlopen is supported.
14731 dlopen_support=$enable_dlopen
14733 # Whether dlopen of programs is supported.
14734 dlopen_self=$enable_dlopen_self
14736 # Whether dlopen of statically linked programs is supported.
14737 dlopen_self_static=$enable_dlopen_self_static
14739 # Compiler flag to prevent dynamic linking.
14740 link_static_flag=$lt_lt_prog_compiler_static
14742 # Compiler flag to turn off builtin functions.
14743 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14745 # Compiler flag to allow reflexive dlopens.
14746 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14748 # Compiler flag to generate shared objects directly from archives.
14749 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14751 # Compiler flag to generate thread-safe objects.
14752 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14754 # Library versioning type.
14755 version_type=$version_type
14757 # Format of library name prefix.
14758 libname_spec=$lt_libname_spec
14760 # List of archive names. First name is the real one, the rest are links.
14761 # The last name is the one that the linker finds with -lNAME.
14762 library_names_spec=$lt_library_names_spec
14764 # The coded name of the library, if different from the real name.
14765 soname_spec=$lt_soname_spec
14767 # Commands used to build and install an old-style archive.
14769 old_archive_cmds=$lt_old_archive_cmds
14770 old_postinstall_cmds=$lt_old_postinstall_cmds
14771 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14773 # Create an old-style archive from a shared archive.
14774 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14776 # Create a temporary old-style archive to link instead of a shared archive.
14777 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14779 # Commands used to build and install a shared archive.
14780 archive_cmds=$lt_archive_cmds
14781 archive_expsym_cmds=$lt_archive_expsym_cmds
14782 postinstall_cmds=$lt_postinstall_cmds
14783 postuninstall_cmds=$lt_postuninstall_cmds
14785 # Commands used to build a loadable module (assumed same as above if empty)
14786 module_cmds=$lt_module_cmds
14787 module_expsym_cmds=$lt_module_expsym_cmds
14789 # Commands to strip libraries.
14790 old_striplib=$lt_old_striplib
14791 striplib=$lt_striplib
14793 # Dependencies to place before the objects being linked to create a
14795 predep_objects=$lt_predep_objects
14797 # Dependencies to place after the objects being linked to create a
14799 postdep_objects=$lt_postdep_objects
14801 # Dependencies to place before the objects being linked to create a
14803 predeps=$lt_predeps
14805 # Dependencies to place after the objects being linked to create a
14807 postdeps=$lt_postdeps
14809 # The library search path used internally by the compiler when linking
14810 # a shared library.
14811 compiler_lib_search_path=$lt_compiler_lib_search_path
14813 # Method to check whether dependent libraries are shared objects.
14814 deplibs_check_method=$lt_deplibs_check_method
14816 # Command to use when deplibs_check_method == file_magic.
14817 file_magic_cmd=$lt_file_magic_cmd
14819 # Flag that allows shared libraries with undefined symbols to be built.
14820 allow_undefined_flag=$lt_allow_undefined_flag
14822 # Flag that forces no undefined symbols.
14823 no_undefined_flag=$lt_no_undefined_flag
14825 # Commands used to finish a libtool library installation in a directory.
14826 finish_cmds=$lt_finish_cmds
14828 # Same as above, but a single script fragment to be evaled but not shown.
14829 finish_eval=$lt_finish_eval
14831 # Take the output of nm and produce a listing of raw symbols and C names.
14832 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14834 # Transform the output of nm in a proper C declaration
14835 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14837 # Transform the output of nm in a C name address pair
14838 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14840 # This is the shared library runtime path variable.
14841 runpath_var=$runpath_var
14843 # This is the shared library path variable.
14844 shlibpath_var=$shlibpath_var
14846 # Is shlibpath searched before the hard-coded library search path?
14847 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14849 # How to hardcode a shared library path into an executable.
14850 hardcode_action=$hardcode_action
14852 # Whether we should hardcode library paths into libraries.
14853 hardcode_into_libs=$hardcode_into_libs
14855 # Flag to hardcode \$libdir into a binary during linking.
14856 # This must work even if \$libdir does not exist.
14857 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14859 # If ld is used when linking, flag to hardcode \$libdir into
14860 # a binary during linking. This must work even if \$libdir does
14862 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14864 # Whether we need a single -rpath flag with a separated argument.
14865 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14867 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14868 # resulting binary.
14869 hardcode_direct=$hardcode_direct
14871 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14872 # resulting binary.
14873 hardcode_minus_L=$hardcode_minus_L
14875 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14876 # the resulting binary.
14877 hardcode_shlibpath_var=$hardcode_shlibpath_var
14879 # Set to yes if building a shared library automatically hardcodes DIR into the library
14880 # and all subsequent libraries and executables linked against it.
14881 hardcode_automatic=$hardcode_automatic
14883 # Variables whose values should be saved in libtool wrapper scripts and
14884 # restored at relink time.
14885 variables_saved_for_relink="$variables_saved_for_relink"
14887 # Whether libtool must link a program against all its dependency libraries.
14888 link_all_deplibs=$link_all_deplibs
14890 # Compile-time system search path for libraries
14891 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14893 # Run-time system search path for libraries
14894 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14896 # Fix the shell variable \$srcfile for the compiler.
14897 fix_srcfile_path="$fix_srcfile_path"
14899 # Set to yes if exported symbols are required.
14900 always_export_symbols=$always_export_symbols
14902 # The commands to list exported symbols.
14903 export_symbols_cmds=$lt_export_symbols_cmds
14905 # The commands to extract the exported symbol list from a shared archive.
14906 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14908 # Symbols that should not be listed in the preloaded symbols.
14909 exclude_expsyms=$lt_exclude_expsyms
14911 # Symbols that must always be exported.
14912 include_expsyms=$lt_include_expsyms
14914 # ### END LIBTOOL CONFIG
14921 cat <<\EOF >> "$cfgfile"
14923 # AIX sometimes has problems with the GCC collect2 program. For some
14924 # reason, if we set the COLLECT_NAMES environment variable, the problems
14925 # vanish in a puff of smoke.
14926 if test "X${COLLECT_NAMES+set}" != Xset; then
14928 export COLLECT_NAMES
14934 # We use sed instead of cat because bash on DJGPP gets confused if
14935 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14936 # text mode, it properly converts lines to CR/LF. This bash problem
14937 # is reportedly fixed, but why not run on old versions too?
14938 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14940 mv -f "$cfgfile" "$ofile" || \
14941 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14945 # If there is no Makefile yet, we rely on a make rule to execute
14946 # `config.status --recheck' to rerun these tests and create the
14947 # libtool script then.
14948 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14949 if test -f "$ltmain_in"; then
14950 test -f Makefile && make "$ltmain"
14956 ac_cpp='$CPP $CPPFLAGS'
14957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14964 # Check whether --with-tags or --without-tags was given.
14965 if test "${with_tags+set}" = set; then
14966 withval="$with_tags"
14967 tagnames="$withval"
14970 if test -f "$ltmain" && test -n "$tagnames"; then
14971 if test ! -f "${ofile}"; then
14972 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14973 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14976 if test -z "$LTCC"; then
14977 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14978 if test -z "$LTCC"; then
14979 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14980 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14983 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14987 # Extract list of available tagged configurations in $ofile.
14988 # Note that this assumes the entire list is on one line.
14989 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14992 for tagname in $tagnames; do
14994 # Check whether tagname contains only valid characters
14995 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14997 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14998 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14999 { (exit 1); exit 1; }; }
15003 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15005 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15006 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15007 { (exit 1); exit 1; }; }
15010 # Update the list of available tags.
15011 if test -n "$tagname"; then
15012 echo appending configuration tag "$tagname" to $ofile
15016 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15017 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15018 (test "X$CXX" != "Xg++"))) ; then
15020 ac_cpp='$CXXCPP $CPPFLAGS'
15021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15028 archive_cmds_need_lc_CXX=no
15029 allow_undefined_flag_CXX=
15030 always_export_symbols_CXX=no
15031 archive_expsym_cmds_CXX=
15032 export_dynamic_flag_spec_CXX=
15033 hardcode_direct_CXX=no
15034 hardcode_libdir_flag_spec_CXX=
15035 hardcode_libdir_flag_spec_ld_CXX=
15036 hardcode_libdir_separator_CXX=
15037 hardcode_minus_L_CXX=no
15038 hardcode_automatic_CXX=no
15040 module_expsym_cmds_CXX=
15041 link_all_deplibs_CXX=unknown
15042 old_archive_cmds_CXX=$old_archive_cmds
15043 no_undefined_flag_CXX=
15044 whole_archive_flag_spec_CXX=
15045 enable_shared_with_static_runtimes_CXX=no
15047 # Dependencies to place before and after the object being linked:
15048 predep_objects_CXX=
15049 postdep_objects_CXX=
15052 compiler_lib_search_path_CXX=
15054 # Source file extension for C++ test sources.
15057 # Object file extension for compiled C++ test sources.
15061 # Code to be used in simple compile tests
15062 lt_simple_compile_test_code="int some_variable = 0;\n"
15064 # Code to be used in simple link tests
15065 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15067 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15069 # If no C compiler was specified, use CC.
15072 # Allow CC to be a program name with arguments.
15076 # Allow CC to be a program name with arguments.
15081 lt_save_with_gnu_ld=$with_gnu_ld
15082 lt_save_path_LD=$lt_cv_path_LD
15083 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15084 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15086 unset lt_cv_prog_gnu_ld
15088 if test -n "${lt_cv_path_LDCXX+set}"; then
15089 lt_cv_path_LD=$lt_cv_path_LDCXX
15091 unset lt_cv_path_LD
15093 test -z "${LDCXX+set}" || LD=$LDCXX
15097 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15099 # We don't want -fno-exception wen compiling C++ code, so set the
15100 # no_builtin_flag separately
15101 if test "$GXX" = yes; then
15102 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15104 lt_prog_compiler_no_builtin_flag_CXX=
15107 if test "$GXX" = yes; then
15108 # Set up default GNU C++ configuration
15111 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15112 if test "${with_gnu_ld+set}" = set; then
15113 withval="$with_gnu_ld"
15114 test "$withval" = no || with_gnu_ld=yes
15119 if test "$GCC" = yes; then
15120 # Check if gcc -print-prog-name=ld gives a path.
15121 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15125 # gcc leaves a trailing carriage return which upsets mingw
15126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15131 # Accept absolute paths.
15133 re_direlt='/[^/][^/]*/\.\./'
15134 # Canonicalize the pathname of ld
15135 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15136 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15137 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15139 test -z "$LD" && LD="$ac_prog"
15142 # If it fails, then pretend we aren't using GCC.
15146 # If it is relative, then search for the first ld in PATH.
15147 with_gnu_ld=unknown
15150 elif test "$with_gnu_ld" = yes; then
15151 echo "$as_me:$LINENO: checking for GNU ld" >&5
15152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15154 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15157 if test "${lt_cv_path_LD+set}" = set; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15160 if test -z "$LD"; then
15161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15162 for ac_dir in $PATH; do
15164 test -z "$ac_dir" && ac_dir=.
15165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15166 lt_cv_path_LD="$ac_dir/$ac_prog"
15167 # Check to see if the program is GNU ld. I'd rather use --version,
15168 # but apparently some GNU ld's only accept -v.
15169 # Break only if it was the GNU/non-GNU ld that we prefer.
15170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15171 *GNU* | *'with BFD'*)
15172 test "$with_gnu_ld" != no && break
15175 test "$with_gnu_ld" != yes && break
15182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15186 LD="$lt_cv_path_LD"
15187 if test -n "$LD"; then
15188 echo "$as_me:$LINENO: result: $LD" >&5
15189 echo "${ECHO_T}$LD" >&6
15191 echo "$as_me:$LINENO: result: no" >&5
15192 echo "${ECHO_T}no" >&6
15194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15196 { (exit 1); exit 1; }; }
15197 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15203 case `$LD -v 2>&1 </dev/null` in
15204 *GNU* | *'with BFD'*)
15205 lt_cv_prog_gnu_ld=yes
15208 lt_cv_prog_gnu_ld=no
15212 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15214 with_gnu_ld=$lt_cv_prog_gnu_ld
15218 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15219 # archiving commands below assume that GNU ld is being used.
15220 if test "$with_gnu_ld" = yes; then
15221 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15222 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'
15224 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15225 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15227 # If archive_cmds runs LD, not CC, wlarc should be empty
15228 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15229 # investigate it a little bit more. (MM)
15232 # ancient GNU ld didn't support --whole-archive et. al.
15233 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15234 grep 'no-whole-archive' > /dev/null; then
15235 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15237 whole_archive_flag_spec_CXX=
15243 # A generic and very simple default shared library creation
15244 # command for GNU C++ for the case where it uses the native
15245 # linker, instead of GNU ld. If possible, this setting should
15246 # overridden to take advantage of the native linker features on
15247 # the platform it is being used on.
15248 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15251 # Commands to make compiler produce verbose output that lists
15252 # what "hidden" libraries, object files and flags are used when
15253 # linking a shared library.
15254 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15262 # PORTME: fill in a description of your system's C++ link characteristics
15263 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15264 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15268 # FIXME: insert proper C++ library support
15272 if test "$host_cpu" = ia64; then
15273 # On IA64, the linker does run time linking by default, so we don't
15274 # have to do anything special.
15275 aix_use_runtimelinking=no
15276 exp_sym_flag='-Bexport'
15279 aix_use_runtimelinking=no
15281 # Test if we are trying to use run time linking or normal
15282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15283 # need to do runtime linking.
15284 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15285 for ld_flag in $LDFLAGS; do
15288 aix_use_runtimelinking=yes
15295 exp_sym_flag='-bexport'
15296 no_entry_flag='-bnoentry'
15299 # When large executables or shared objects are built, AIX ld can
15300 # have problems creating the table of contents. If linking a library
15301 # or program results in "error TOC overflow" add -mminimal-toc to
15302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15305 archive_cmds_CXX=''
15306 hardcode_direct_CXX=yes
15307 hardcode_libdir_separator_CXX=':'
15308 link_all_deplibs_CXX=yes
15310 if test "$GXX" = yes; then
15311 case $host_os in aix4.012|aix4.012.*)
15312 # We only want to do this on AIX 4.2 and lower, the check
15313 # below for broken collect2 doesn't work under 4.3+
15314 collect2name=`${CC} -print-prog-name=collect2`
15315 if test -f "$collect2name" && \
15316 strings "$collect2name" | grep resolve_lib_name >/dev/null
15318 # We have reworked collect2
15319 hardcode_direct_CXX=yes
15321 # We have old collect2
15322 hardcode_direct_CXX=unsupported
15323 # It fails to find uninstalled libraries when the uninstalled
15324 # path is not listed in the libpath. Setting hardcode_minus_L
15325 # to unsupported forces relinking
15326 hardcode_minus_L_CXX=yes
15327 hardcode_libdir_flag_spec_CXX='-L$libdir'
15328 hardcode_libdir_separator_CXX=
15331 shared_flag='-shared'
15334 if test "$host_cpu" = ia64; then
15335 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15336 # chokes on -Wl,-G. The following line is correct:
15339 if test "$aix_use_runtimelinking" = yes; then
15340 shared_flag='${wl}-G'
15342 shared_flag='${wl}-bM:SRE'
15347 # It seems that -bexpall does not export symbols beginning with
15348 # underscore (_), so it is better to generate a list of symbols to export.
15349 always_export_symbols_CXX=yes
15350 if test "$aix_use_runtimelinking" = yes; then
15351 # Warning - without using the other runtime loading flags (-brtl),
15352 # -berok will link without error, but may produce a broken library.
15353 allow_undefined_flag_CXX='-berok'
15354 # Determine the default libpath from the value encoded in an empty executable.
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15370 rm -f conftest.$ac_objext conftest$ac_exeext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15372 (eval $ac_link) 2>conftest.er1
15374 grep -v '^ *+' conftest.er1 >conftest.err
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -z "$ac_cxx_werror_flag"
15380 || test ! -s conftest.err'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest$ac_exeext'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15395 # Check for a 64-bit object if we didn't find anything.
15396 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; }
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15403 rm -f conftest.err conftest.$ac_objext \
15404 conftest$ac_exeext conftest.$ac_ext
15405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15407 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15409 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"
15411 if test "$host_cpu" = ia64; then
15412 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15413 allow_undefined_flag_CXX="-z nodefs"
15414 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"
15416 # Determine the default libpath from the value encoded in an empty executable.
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15434 (eval $ac_link) 2>conftest.er1
15436 grep -v '^ *+' conftest.er1 >conftest.err
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -z "$ac_cxx_werror_flag"
15442 || test ! -s conftest.err'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest$ac_exeext'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
15455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15457 # Check for a 64-bit object if we didn't find anything.
15458 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; }
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15465 rm -f conftest.err conftest.$ac_objext \
15466 conftest$ac_exeext conftest.$ac_ext
15467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15469 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15470 # Warning - without using the other run time loading flags,
15471 # -berok will link without error, but may produce a broken library.
15472 no_undefined_flag_CXX=' ${wl}-bernotok'
15473 allow_undefined_flag_CXX=' ${wl}-berok'
15474 # -bexpall does not export symbols beginning with underscore (_)
15475 always_export_symbols_CXX=yes
15476 # Exported symbols can be pulled into shared objects from archives
15477 whole_archive_flag_spec_CXX=' '
15478 archive_cmds_need_lc_CXX=yes
15479 # This is similar to how AIX traditionally builds it's shared libraries.
15480 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'
15485 case $cc_basename in
15487 # FIXME: insert proper C++ library support
15494 cygwin* | mingw* | pw32*)
15495 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15496 # as there is no search path for DLLs.
15497 hardcode_libdir_flag_spec_CXX='-L$libdir'
15498 allow_undefined_flag_CXX=unsupported
15499 always_export_symbols_CXX=no
15500 enable_shared_with_static_runtimes_CXX=yes
15502 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15503 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'
15504 # If the export-symbols file already is a .def file (1st line
15505 # is EXPORTS), use it as is; otherwise, prepend...
15506 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15507 cp $export_symbols $output_objdir/$soname.def;
15509 echo EXPORTS > $output_objdir/$soname.def;
15510 cat $export_symbols >> $output_objdir/$soname.def;
15512 $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'
15517 darwin* | rhapsody*)
15519 rhapsody* | darwin1.[012])
15520 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15523 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15524 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15526 case ${MACOSX_DEPLOYMENT_TARGET} in
15528 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15531 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15537 archive_cmds_need_lc_CXX=no
15538 hardcode_direct_CXX=no
15539 hardcode_automatic_CXX=yes
15540 hardcode_shlibpath_var_CXX=unsupported
15541 whole_archive_flag_spec_CXX=''
15542 link_all_deplibs_CXX=yes
15544 if test "$GXX" = yes ; then
15545 lt_int_apple_cc_single_mod=no
15546 output_verbose_link_cmd='echo'
15547 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15548 lt_int_apple_cc_single_mod=yes
15550 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15551 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15553 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'
15555 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15556 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15557 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15558 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}'
15560 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}'
15562 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}'
15564 case "$cc_basename" in
15566 output_verbose_link_cmd='echo'
15567 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'
15568 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15569 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15570 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}'
15571 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}'
15581 case $cc_basename in
15583 # FIXME: insert proper C++ library support
15587 # Green Hills C++ Compiler
15588 # FIXME: insert proper C++ library support
15592 # FIXME: insert proper C++ library support
15598 # C++ shared libraries reported to be fairly broken before switch to ELF
15602 archive_cmds_need_lc_CXX=no
15604 freebsd* | kfreebsd*-gnu)
15605 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15612 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15613 hardcode_libdir_separator_CXX=:
15614 export_dynamic_flag_spec_CXX='${wl}-E'
15615 hardcode_direct_CXX=yes
15616 hardcode_minus_L_CXX=yes # Not in the search PATH,
15617 # but as the default
15618 # location of the library.
15620 case $cc_basename in
15622 # FIXME: insert proper C++ library support
15626 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'
15627 # Commands to make compiler produce verbose output that lists
15628 # what "hidden" libraries, object files and flags are used when
15629 # linking a shared library.
15631 # There doesn't appear to be a way to prevent this compiler from
15632 # explicitly linking system object files so we need to strip them
15633 # from the output so that they don't get included in the library
15635 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'
15638 if test "$GXX" = yes; then
15639 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'
15641 # FIXME: insert proper C++ library support
15648 if test $with_gnu_ld = no; then
15649 case "$host_cpu" in
15651 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15652 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15653 hardcode_libdir_separator_CXX=:
15656 hardcode_libdir_flag_spec_CXX='-L$libdir'
15659 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15660 hardcode_libdir_separator_CXX=:
15661 export_dynamic_flag_spec_CXX='${wl}-E'
15665 case "$host_cpu" in
15667 hardcode_direct_CXX=no
15668 hardcode_shlibpath_var_CXX=no
15671 hardcode_direct_CXX=no
15672 hardcode_shlibpath_var_CXX=no
15673 hardcode_minus_L_CXX=yes # Not in the search PATH,
15674 # but as the default
15675 # location of the library.
15678 hardcode_direct_CXX=yes
15679 hardcode_minus_L_CXX=yes # Not in the search PATH,
15680 # but as the default
15681 # location of the library.
15685 case $cc_basename in
15687 # FIXME: insert proper C++ library support
15691 case "$host_cpu" in
15693 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15699 # Commands to make compiler produce verbose output that lists
15700 # what "hidden" libraries, object files and flags are used when
15701 # linking a shared library.
15703 # There doesn't appear to be a way to prevent this compiler from
15704 # explicitly linking system object files so we need to strip them
15705 # from the output so that they don't get included in the library
15707 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'
15710 if test "$GXX" = yes; then
15711 if test $with_gnu_ld = no; then
15712 case "$host_cpu" in
15714 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15717 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'
15722 # FIXME: insert proper C++ library support
15729 case $cc_basename in
15732 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'
15734 # Archives containing C++ object files must be created using
15735 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15736 # necessary to make sure instantiated templates are included
15738 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15741 if test "$GXX" = yes; then
15742 if test "$with_gnu_ld" = no; then
15743 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'
15745 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'
15748 link_all_deplibs_CXX=yes
15751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15752 hardcode_libdir_separator_CXX=:
15755 case $cc_basename in
15757 # Kuck and Associates, Inc. (KAI) C++ Compiler
15759 # KCC will only create a shared library if the output file
15760 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15761 # to its proper name (with version) after linking.
15762 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'
15763 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'
15764 # Commands to make compiler produce verbose output that lists
15765 # what "hidden" libraries, object files and flags are used when
15766 # linking a shared library.
15768 # There doesn't appear to be a way to prevent this compiler from
15769 # explicitly linking system object files so we need to strip them
15770 # from the output so that they don't get included in the library
15772 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'
15774 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15777 # Archives containing C++ object files must be created using
15778 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15779 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15784 # version 8.0 and above of icpc choke on multiply defined symbols
15785 # if we add $predep_objects and $postdep_objects, however 7.1 and
15786 # earlier do not add the objects themselves.
15787 case `$CC -V 2>&1` in
15789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15790 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'
15792 *) # Version 8.0 or newer
15793 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15794 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15797 archive_cmds_need_lc_CXX=no
15798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15799 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15800 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15804 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15805 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'
15807 runpath_var=LD_RUN_PATH
15808 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15809 hardcode_libdir_separator_CXX=:
15811 # Commands to make compiler produce verbose output that lists
15812 # what "hidden" libraries, object files and flags are used when
15813 # linking a shared library.
15815 # There doesn't appear to be a way to prevent this compiler from
15816 # explicitly linking system object files so we need to strip them
15817 # from the output so that they don't get included in the library
15819 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'
15824 # FIXME: insert proper C++ library support
15828 # FIXME: insert proper C++ library support
15832 case $cc_basename in
15834 # FIXME: insert proper C++ library support
15838 # FIXME: insert proper C++ library support
15844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15845 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15847 hardcode_libdir_flag_spec_CXX='-R$libdir'
15848 hardcode_direct_CXX=yes
15849 hardcode_shlibpath_var_CXX=no
15851 # Workaround some broken pre-1.5 toolchains
15852 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15855 # C++ shared libraries are fairly broken
15859 hardcode_direct_CXX=yes
15860 hardcode_shlibpath_var_CXX=no
15861 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15864 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15865 export_dynamic_flag_spec_CXX='${wl}-E'
15866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15868 output_verbose_link_cmd='echo'
15871 case $cc_basename in
15873 # Kuck and Associates, Inc. (KAI) C++ Compiler
15875 # KCC will only create a shared library if the output file
15876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15877 # to its proper name (with version) after linking.
15878 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'
15880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15881 hardcode_libdir_separator_CXX=:
15883 # Archives containing C++ object files must be created using
15884 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15885 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15889 # Rational C++ 2.4.1
15890 # FIXME: insert proper C++ library support
15894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15895 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'
15897 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15898 hardcode_libdir_separator_CXX=:
15900 # Commands to make compiler produce verbose output that lists
15901 # what "hidden" libraries, object files and flags are used when
15902 # linking a shared library.
15904 # There doesn't appear to be a way to prevent this compiler from
15905 # explicitly linking system object files so we need to strip them
15906 # from the output so that they don't get included in the library
15908 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'
15911 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15912 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15913 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'
15915 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15916 hardcode_libdir_separator_CXX=:
15918 # Commands to make compiler produce verbose output that lists
15919 # what "hidden" libraries, object files and flags are used when
15920 # linking a shared library.
15921 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15924 # FIXME: insert proper C++ library support
15931 case $cc_basename in
15933 # Kuck and Associates, Inc. (KAI) C++ Compiler
15935 # KCC will only create a shared library if the output file
15936 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15937 # to its proper name (with version) after linking.
15938 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'
15940 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15941 hardcode_libdir_separator_CXX=:
15943 # Archives containing C++ object files must be created using
15944 # the KAI C++ compiler.
15945 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15948 # Rational C++ 2.4.1
15949 # FIXME: insert proper C++ library support
15953 allow_undefined_flag_CXX=' -expect_unresolved \*'
15954 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'
15955 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15956 echo "-hidden">> $lib.exp~
15957 $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~
15960 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15961 hardcode_libdir_separator_CXX=:
15963 # Commands to make compiler produce verbose output that lists
15964 # what "hidden" libraries, object files and flags are used when
15965 # linking a shared library.
15967 # There doesn't appear to be a way to prevent this compiler from
15968 # explicitly linking system object files so we need to strip them
15969 # from the output so that they don't get included in the library
15971 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'
15974 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15975 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15976 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'
15978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15979 hardcode_libdir_separator_CXX=:
15981 # Commands to make compiler produce verbose output that lists
15982 # what "hidden" libraries, object files and flags are used when
15983 # linking a shared library.
15984 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15987 # FIXME: insert proper C++ library support
15994 # FIXME: insert proper C++ library support
15998 archive_cmds_need_lc_CXX=no
15999 case $cc_basename in
16001 # FIXME: insert proper C++ library support
16005 # FIXME: insert proper C++ library support
16011 case $cc_basename in
16014 # FIXME: insert proper C++ library support
16019 # FIXME: insert proper C++ library support
16023 # FIXME: insert proper C++ library support
16029 case $cc_basename in
16031 # Sun C++ 4.2, 5.x and Centerline C++
16032 no_undefined_flag_CXX=' -zdefs'
16033 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16034 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16035 $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'
16037 hardcode_libdir_flag_spec_CXX='-R$libdir'
16038 hardcode_shlibpath_var_CXX=no
16040 solaris2.0-5 | solaris2.0-5.*) ;;
16042 # The C++ compiler is used as linker so we must use $wl
16043 # flag to pass the commands to the underlying system
16045 # Supported since Solaris 2.6 (maybe 2.5.1?)
16046 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16049 link_all_deplibs_CXX=yes
16051 # Commands to make compiler produce verbose output that lists
16052 # what "hidden" libraries, object files and flags are used when
16053 # linking a shared library.
16055 # There doesn't appear to be a way to prevent this compiler from
16056 # explicitly linking system object files so we need to strip them
16057 # from the output so that they don't get included in the library
16059 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'
16061 # Archives containing C++ object files must be created using
16062 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16063 # necessary to make sure instantiated templates are included
16065 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16068 # Green Hills C++ Compiler
16069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16071 # The C++ compiler must be used to create the archive.
16072 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16075 # GNU C++ compiler with Solaris linker
16076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16077 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16078 if $CC --version | grep -v '^2\.7' > /dev/null; then
16079 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16080 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16081 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16083 # Commands to make compiler produce verbose output that lists
16084 # what "hidden" libraries, object files and flags are used when
16085 # linking a shared library.
16086 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16088 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16090 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16091 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16092 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16094 # Commands to make compiler produce verbose output that lists
16095 # what "hidden" libraries, object files and flags are used when
16096 # linking a shared library.
16097 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16100 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16105 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16106 archive_cmds_need_lc_CXX=no
16109 case $cc_basename in
16111 # NonStop-UX NCC 3.20
16112 # FIXME: insert proper C++ library support
16116 # FIXME: insert proper C++ library support
16122 # FIXME: insert proper C++ library support
16126 # FIXME: insert proper C++ library support
16130 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16131 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16132 test "$ld_shlibs_CXX" = no && can_build_shared=no
16138 cat > conftest.$ac_ext <<EOF
16142 Foo (void) { a = 0; }
16148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16149 (eval $ac_compile) 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; then
16153 # Parse the compiler output and extract the necessary
16154 # objects, libraries and library flags.
16156 # Sentinel used to keep track of whether or not we are before
16157 # the conftest object file.
16158 pre_test_object_deps_done=no
16160 # The `*' in the case matches for architectures that use `case' in
16161 # $output_verbose_cmd can trigger glob expansion during the loop
16162 # eval without this substitution.
16163 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16165 for p in `eval $output_verbose_link_cmd`; do
16169 # Some compilers place space between "-{L,R}" and the path.
16170 # Remove the space.
16171 if test $p = "-L" \
16172 || test $p = "-R"; then
16179 if test "$pre_test_object_deps_done" = no; then
16182 # Internal compiler library paths should come after those
16183 # provided the user. The postdeps already come after the
16184 # user supplied libs so there is no need to process them.
16185 if test -z "$compiler_lib_search_path_CXX"; then
16186 compiler_lib_search_path_CXX="${prev}${p}"
16188 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16191 # The "-l" case would never come before the object being
16192 # linked, so don't bother handling this case.
16195 if test -z "$postdeps_CXX"; then
16196 postdeps_CXX="${prev}${p}"
16198 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16204 # This assumes that the test object file only shows up
16205 # once in the compiler output.
16206 if test "$p" = "conftest.$objext"; then
16207 pre_test_object_deps_done=yes
16211 if test "$pre_test_object_deps_done" = no; then
16212 if test -z "$predep_objects_CXX"; then
16213 predep_objects_CXX="$p"
16215 predep_objects_CXX="$predep_objects_CXX $p"
16218 if test -z "$postdep_objects_CXX"; then
16219 postdep_objects_CXX="$p"
16221 postdep_objects_CXX="$postdep_objects_CXX $p"
16226 *) ;; # Ignore the rest.
16234 echo "libtool.m4: error: problem compiling CXX test program"
16237 $rm -f confest.$objext
16239 case " $postdeps_CXX " in
16240 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16243 lt_prog_compiler_wl_CXX=
16244 lt_prog_compiler_pic_CXX=
16245 lt_prog_compiler_static_CXX=
16247 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16248 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16250 # C++ specific cases for pic, static, wl, etc.
16251 if test "$GXX" = yes; then
16252 lt_prog_compiler_wl_CXX='-Wl,'
16253 lt_prog_compiler_static_CXX='-static'
16257 # All AIX code is PIC.
16258 if test "$host_cpu" = ia64; then
16259 # AIX 5 now supports IA64 processor
16260 lt_prog_compiler_static_CXX='-Bstatic'
16264 # FIXME: we need at least 68020 code to build shared libraries, but
16265 # adding the `-m68020' flag to GCC prevents building anything better,
16267 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16269 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16270 # PIC is the default for these OSes.
16272 mingw* | os2* | pw32*)
16273 # This hack is so that the source file can tell whether it is being
16274 # built for inclusion in a dll (and should export symbols for example).
16275 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16277 darwin* | rhapsody*)
16278 # PIC is the default on this platform
16279 # Common symbols not allowed in MH_DYLIB files
16280 lt_prog_compiler_pic_CXX='-fno-common'
16283 # DJGPP does not support shared libraries at all
16284 lt_prog_compiler_pic_CXX=
16287 if test -d /usr/nec; then
16288 lt_prog_compiler_pic_CXX=-Kconform_pic
16292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16293 # not for PA HP-UX.
16294 case "$host_cpu" in
16298 lt_prog_compiler_pic_CXX='-fPIC'
16303 lt_prog_compiler_pic_CXX='-fPIC'
16309 # All AIX code is PIC.
16310 if test "$host_cpu" = ia64; then
16311 # AIX 5 now supports IA64 processor
16312 lt_prog_compiler_static_CXX='-Bstatic'
16314 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16318 case $cc_basename in
16320 # Green Hills C++ Compiler
16321 # _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"
16326 # PIC is the default on this platform
16327 # Common symbols not allowed in MH_DYLIB files
16328 case "$cc_basename" in
16330 lt_prog_compiler_pic_CXX='-qnocommon'
16331 lt_prog_compiler_wl_CXX='-Wl,'
16336 case $cc_basename in
16338 lt_prog_compiler_pic_CXX='-KPIC'
16341 # Green Hills C++ Compiler
16342 lt_prog_compiler_pic_CXX='-pic'
16348 freebsd* | kfreebsd*-gnu)
16349 # FreeBSD uses GNU C++
16351 hpux9* | hpux10* | hpux11*)
16352 case $cc_basename in
16354 lt_prog_compiler_wl_CXX='-Wl,'
16355 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16356 if test "$host_cpu" != ia64; then
16357 lt_prog_compiler_pic_CXX='+Z'
16361 lt_prog_compiler_wl_CXX='-Wl,'
16362 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16363 case "$host_cpu" in
16368 lt_prog_compiler_pic_CXX='+Z'
16376 irix5* | irix6* | nonstopux*)
16377 case $cc_basename in
16379 lt_prog_compiler_wl_CXX='-Wl,'
16380 lt_prog_compiler_static_CXX='-non_shared'
16381 # CC pic flag -KPIC is the default.
16388 case $cc_basename in
16391 lt_prog_compiler_wl_CXX='--backend -Wl,'
16392 lt_prog_compiler_pic_CXX='-fPIC'
16396 lt_prog_compiler_wl_CXX='-Wl,'
16397 lt_prog_compiler_pic_CXX='-KPIC'
16398 lt_prog_compiler_static_CXX='-static'
16402 # Make sure the PIC flag is empty. It appears that all Alpha
16403 # Linux and Compaq Tru64 Unix objects are PIC.
16404 lt_prog_compiler_pic_CXX=
16405 lt_prog_compiler_static_CXX='-non_shared'
16416 case $cc_basename in
16418 lt_prog_compiler_pic_CXX='-W c,exportall'
16426 osf3* | osf4* | osf5*)
16427 case $cc_basename in
16429 lt_prog_compiler_wl_CXX='--backend -Wl,'
16432 # Rational C++ 2.4.1
16433 lt_prog_compiler_pic_CXX='-pic'
16436 # Digital/Compaq C++
16437 lt_prog_compiler_wl_CXX='-Wl,'
16438 # Make sure the PIC flag is empty. It appears that all Alpha
16439 # Linux and Compaq Tru64 Unix objects are PIC.
16440 lt_prog_compiler_pic_CXX=
16441 lt_prog_compiler_static_CXX='-non_shared'
16450 case $cc_basename in
16452 lt_prog_compiler_pic_CXX='-fPIC'
16459 case $cc_basename in
16461 # Sun C++ 4.2, 5.x and Centerline C++
16462 lt_prog_compiler_pic_CXX='-KPIC'
16463 lt_prog_compiler_static_CXX='-Bstatic'
16464 lt_prog_compiler_wl_CXX='-Qoption ld '
16467 # Green Hills C++ Compiler
16468 lt_prog_compiler_pic_CXX='-PIC'
16475 case $cc_basename in
16478 lt_prog_compiler_pic_CXX='-pic'
16479 lt_prog_compiler_static_CXX='-Bstatic'
16483 lt_prog_compiler_pic_CXX='-pic'
16490 case $cc_basename in
16492 # NonStop-UX NCC 3.20
16493 lt_prog_compiler_pic_CXX='-KPIC'
16504 lt_prog_compiler_can_build_shared_CXX=no
16509 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16510 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16513 # Check to make sure the PIC flag actually works.
16515 if test -n "$lt_prog_compiler_pic_CXX"; then
16517 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16518 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16519 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 lt_prog_compiler_pic_works_CXX=no
16523 ac_outfile=conftest.$ac_objext
16524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16525 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16526 # Insert the option either (1) after the last *FLAGS variable, or
16527 # (2) before a word containing "conftest.", or (3) at the end.
16528 # Note that $ac_compile itself does not contain backslashes and begins
16529 # with a dollar sign (not a hyphen), so the echo should work correctly.
16530 # The option is referenced via a variable to avoid confusing sed.
16531 lt_compile=`echo "$ac_compile" | $SED \
16532 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16534 -e 's:$: $lt_compiler_flag:'`
16535 (eval echo "\"\$as_me:16535: $lt_compile\"" >&5)
16536 (eval "$lt_compile" 2>conftest.err)
16538 cat conftest.err >&5
16539 echo "$as_me:16539: \$? = $ac_status" >&5
16540 if (exit $ac_status) && test -s "$ac_outfile"; then
16541 # The compiler can only warn and ignore the option if not recognized
16542 # So say no if there are warnings
16543 if test ! -s conftest.err; then
16544 lt_prog_compiler_pic_works_CXX=yes
16550 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16551 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16553 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16554 case $lt_prog_compiler_pic_CXX in
16556 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16559 lt_prog_compiler_pic_CXX=
16560 lt_prog_compiler_can_build_shared_CXX=no
16565 # For platforms which do not support PIC, -DPIC is meaningless:
16567 lt_prog_compiler_pic_CXX=
16570 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16574 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16576 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 lt_cv_prog_compiler_c_o_CXX=no
16580 $rm -r conftest 2>/dev/null
16584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16586 lt_compiler_flag="-o out/conftest2.$ac_objext"
16587 # Insert the option either (1) after the last *FLAGS variable, or
16588 # (2) before a word containing "conftest.", or (3) at the end.
16589 # Note that $ac_compile itself does not contain backslashes and begins
16590 # with a dollar sign (not a hyphen), so the echo should work correctly.
16591 lt_compile=`echo "$ac_compile" | $SED \
16592 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16594 -e 's:$: $lt_compiler_flag:'`
16595 (eval echo "\"\$as_me:16595: $lt_compile\"" >&5)
16596 (eval "$lt_compile" 2>out/conftest.err)
16598 cat out/conftest.err >&5
16599 echo "$as_me:16599: \$? = $ac_status" >&5
16600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16602 # The compiler can only warn and ignore the option if not recognized
16603 # So say no if there are warnings
16604 if test ! -s out/conftest.err; then
16605 lt_cv_prog_compiler_c_o_CXX=yes
16610 # SGI C++ compiler will create directory out/ii_files/ for
16611 # template instantiation
16612 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16613 $rm out/* && rmdir out
16619 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16620 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16623 hard_links="nottested"
16624 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16625 # do not overwrite the value of need_locks provided by the user
16626 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16627 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16632 ln conftest.a conftest.b 2>&5 || hard_links=no
16633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16634 echo "$as_me:$LINENO: result: $hard_links" >&5
16635 echo "${ECHO_T}$hard_links" >&6
16636 if test "$hard_links" = no; then
16637 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16638 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16645 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16646 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16648 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16651 # If we're using GNU nm, then we don't want the "-C" option.
16652 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16653 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16654 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'
16656 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'
16660 export_symbols_cmds_CXX="$ltdll_cmds"
16663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16666 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16670 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16671 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16672 test "$ld_shlibs_CXX" = no && can_build_shared=no
16674 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16675 if test "$GCC" = yes; then
16676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16680 # Do we need to explicitly link libc?
16682 case "x$archive_cmds_need_lc_CXX" in
16684 # Assume -lc should be added
16685 archive_cmds_need_lc_CXX=yes
16687 if test "$enable_shared" = yes && test "$GCC" = yes; then
16688 case $archive_cmds_CXX in
16690 # FIXME: we may have to deal with multi-command sequences.
16693 # Test whether the compiler implicitly links with -lc since on some
16694 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16695 # to ld, don't add -lc before -lgcc.
16696 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16697 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702 (eval $ac_compile) 2>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } 2>conftest.err; then
16708 libobjs=conftest.$ac_objext
16710 wl=$lt_prog_compiler_wl_CXX
16716 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16717 allow_undefined_flag_CXX=
16718 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16719 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }
16724 archive_cmds_need_lc_CXX=no
16726 archive_cmds_need_lc_CXX=yes
16728 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16730 cat conftest.err 1>&5
16733 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16734 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16741 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16742 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16743 library_names_spec=
16744 libname_spec='lib$name'
16748 postuninstall_cmds=
16752 shlibpath_overrides_runpath=unknown
16754 dynamic_linker="$host_os ld.so"
16755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16756 if test "$GCC" = yes; then
16757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16758 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16759 # if the path contains ";" then we assume it to be the separator
16760 # otherwise default to the standard path separator (i.e. ":") - it is
16761 # assumed that no part of a normal pathname contains ";" but that should
16762 # okay in the real world where ";" in dirpaths is itself problematic.
16763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16768 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16770 need_lib_prefix=unknown
16771 hardcode_into_libs=no
16773 # when you set need_version to no, make sure it does not cause -set_version
16774 # flags to be left without arguments
16775 need_version=unknown
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16781 shlibpath_var=LIBPATH
16783 # AIX 3 has no versioning support, so we append a major version to the name.
16784 soname_spec='${libname}${release}${shared_ext}$major'
16791 hardcode_into_libs=yes
16792 if test "$host_cpu" = ia64; then
16793 # AIX 5 supports IA64
16794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16795 shlibpath_var=LD_LIBRARY_PATH
16797 # With GCC up to 2.95.x, collect2 would create an import file
16798 # for dependence libraries. The import file would start with
16799 # the line `#! .'. This would cause the generated library to
16800 # depend on `.', always an invalid library. This was fixed in
16801 # development snapshots of GCC prior to 3.0.
16803 aix4 | aix4.[01] | aix4.[01].*)
16804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16806 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16809 can_build_shared=no
16813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16814 # soname into executable. Probably we can add versioning support to
16815 # collect2, so additional links can be useful in future.
16816 if test "$aix_use_runtimelinking" = yes; then
16817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16818 # instead of lib<name>.a to let people know that these are not
16819 # typical AIX shared libraries.
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16822 # We preserve .a as extension for shared libraries through AIX4.2
16823 # and later when we are not doing run time linking.
16824 library_names_spec='${libname}${release}.a $libname.a'
16825 soname_spec='${libname}${release}${shared_ext}$major'
16827 shlibpath_var=LIBPATH
16832 library_names_spec='$libname.ixlibrary $libname.a'
16833 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16834 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'
16838 library_names_spec='${libname}${shared_ext}'
16839 dynamic_linker="$host_os ld.so"
16840 shlibpath_var=LIBRARY_PATH
16846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16849 shlibpath_var=LD_LIBRARY_PATH
16850 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16851 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16852 # the default ld.so.conf also contains /usr/contrib/lib and
16853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16854 # libtool to hard-code these into programs
16857 cygwin* | mingw* | pw32*)
16858 version_type=windows
16863 case $GCC,$host_os in
16864 yes,cygwin* | yes,mingw* | yes,pw32*)
16865 library_names_spec='$libname.dll.a'
16866 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16867 postinstall_cmds='base_file=`basename \${file}`~
16868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16869 dldir=$destdir/`dirname \$dlpath`~
16870 test -d \$dldir || mkdir -p \$dldir~
16871 $install_prog $dir/$dlname \$dldir/$dlname'
16872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16873 dlpath=$dir/\$dldll~
16875 shlibpath_overrides_runpath=yes
16879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16880 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16881 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16884 # MinGW DLLs use traditional 'lib' prefix
16885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16887 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16888 # It is most probably a Windows format PATH printed by
16889 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16890 # path with ; separators, and with drive letters. We can handle the
16891 # drive letters (cygwin fileutils understands them), so leave them,
16892 # especially as we might pass files found there to a mingw objdump,
16893 # which wouldn't understand a cygwinified path. Ahh.
16894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16900 # pw32 DLLs use 'pw' prefix rather than 'lib'
16901 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16907 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16910 dynamic_linker='Win32 ld.exe'
16911 # FIXME: first we should search . and the directory the executable is in
16915 darwin* | rhapsody*)
16916 dynamic_linker="$host_os dyld"
16917 version_type=darwin
16920 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16921 soname_spec='${libname}${release}${major}$shared_ext'
16922 shlibpath_overrides_runpath=yes
16923 shlibpath_var=DYLD_LIBRARY_PATH
16924 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16925 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16926 if test "$GCC" = yes; then
16927 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"`
16929 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16931 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16939 soname_spec='${libname}${release}${shared_ext}$major'
16940 shlibpath_var=LD_LIBRARY_PATH
16951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16952 soname_spec='${libname}${release}${shared_ext}$major'
16953 shlibpath_var=LD_LIBRARY_PATH
16954 shlibpath_overrides_runpath=no
16955 hardcode_into_libs=yes
16956 dynamic_linker='GNU ld.so'
16960 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16961 version_type=freebsd-$objformat
16962 case $version_type in
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16973 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=yes
16978 freebsd3.01* | freebsdelf3.01*)
16979 shlibpath_overrides_runpath=yes
16980 hardcode_into_libs=yes
16983 shlibpath_overrides_runpath=no
16984 hardcode_into_libs=yes
16993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16994 soname_spec='${libname}${release}${shared_ext}$major'
16995 shlibpath_var=LD_LIBRARY_PATH
16996 hardcode_into_libs=yes
16999 hpux9* | hpux10* | hpux11*)
17000 # Give a soname corresponding to the major version so that dld.sl refuses to
17001 # link against other versions.
17005 case "$host_cpu" in
17008 hardcode_into_libs=yes
17009 dynamic_linker="$host_os dld.so"
17010 shlibpath_var=LD_LIBRARY_PATH
17011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013 soname_spec='${libname}${release}${shared_ext}$major'
17014 if test "X$HPUX_IA64_MODE" = X32; then
17015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17023 hardcode_into_libs=yes
17024 dynamic_linker="$host_os dld.sl"
17025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028 soname_spec='${libname}${release}${shared_ext}$major'
17029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17034 dynamic_linker="$host_os dld.sl"
17035 shlibpath_var=SHLIB_PATH
17036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17041 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17042 postinstall_cmds='chmod 555 $lib'
17045 irix5* | irix6* | nonstopux*)
17047 nonstopux*) version_type=nonstopux ;;
17049 if test "$lt_cv_prog_gnu_ld" = yes; then
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17060 irix5* | nonstopux*)
17061 libsuff= shlibsuff=
17064 case $LD in # libtool.m4 will add one of these switches to LD
17065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17066 libsuff= shlibsuff= libmagic=32-bit;;
17067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17068 libsuff=32 shlibsuff=N32 libmagic=N32;;
17069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17070 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17071 *) libsuff= shlibsuff= libmagic=never-match;;
17075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17076 shlibpath_overrides_runpath=no
17077 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17078 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17079 hardcode_into_libs=yes
17082 # No shared lib support for Linux oldld, aout, or coff.
17083 linux*oldld* | linux*aout* | linux*coff*)
17087 # This must be Linux ELF.
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093 soname_spec='${libname}${release}${shared_ext}$major'
17094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17095 shlibpath_var=LD_LIBRARY_PATH
17096 shlibpath_overrides_runpath=no
17097 # This implies no fast_install, which is unacceptable.
17098 # Some rework will be needed to allow for fast_install
17099 # before this can be enabled.
17100 hardcode_into_libs=yes
17102 # Append ld.so.conf contents to the search path
17103 if test -f /etc/ld.so.conf; then
17104 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17105 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17108 # We used to test for /lib/ld.so.1 and disable shared libraries on
17109 # powerpc, because MkLinux only supported shared libraries with the
17110 # GNU dynamic linker. Since this was broken with cross compilers,
17111 # most powerpc-linux boxes support dynamic linking these days and
17112 # people can always --disable-shared, the test was removed, and we
17113 # assume the GNU/Linux dynamic linker is in use.
17114 dynamic_linker='GNU/Linux ld.so'
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17122 soname_spec='${libname}${release}${shared_ext}$major'
17123 shlibpath_var=LD_LIBRARY_PATH
17124 shlibpath_overrides_runpath=no
17125 hardcode_into_libs=yes
17126 dynamic_linker='GNU ld.so'
17133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17136 dynamic_linker='NetBSD (a.out) ld.so'
17138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17139 soname_spec='${libname}${release}${shared_ext}$major'
17140 dynamic_linker='NetBSD ld.elf_so'
17142 shlibpath_var=LD_LIBRARY_PATH
17143 shlibpath_overrides_runpath=yes
17144 hardcode_into_libs=yes
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath=yes
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159 soname_spec='${libname}${release}${shared_ext}$major'
17160 shlibpath_var=LD_LIBRARY_PATH
17161 shlibpath_overrides_runpath=yes
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17170 shlibpath_var=LD_LIBRARY_PATH
17171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17173 openbsd2.[89] | openbsd2.[89].*)
17174 shlibpath_overrides_runpath=no
17177 shlibpath_overrides_runpath=yes
17181 shlibpath_overrides_runpath=yes
17186 libname_spec='$name'
17189 library_names_spec='$libname${shared_ext} $libname.a'
17190 dynamic_linker='OS/2 ld.exe'
17191 shlibpath_var=LIBPATH
17194 osf3* | osf4* | osf5*)
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200 shlibpath_var=LD_LIBRARY_PATH
17201 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17202 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209 shlibpath_var=LD_LIBRARY_PATH
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217 soname_spec='${libname}${release}${shared_ext}$major'
17218 shlibpath_var=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath=yes
17220 hardcode_into_libs=yes
17221 # ldd complains unless libraries are executable
17222 postinstall_cmds='chmod +x $lib'
17227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17228 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17229 shlibpath_var=LD_LIBRARY_PATH
17230 shlibpath_overrides_runpath=yes
17231 if test "$with_gnu_ld" = yes; then
17237 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17240 soname_spec='${libname}${release}${shared_ext}$major'
17241 shlibpath_var=LD_LIBRARY_PATH
17242 case $host_vendor in
17244 shlibpath_overrides_runpath=no
17246 export_dynamic_flag_spec='${wl}-Blargedynsym'
17247 runpath_var=LD_RUN_PATH
17255 shlibpath_overrides_runpath=no
17256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17262 if test -d /usr/nec ;then
17264 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17265 soname_spec='$libname${shared_ext}.$major'
17266 shlibpath_var=LD_LIBRARY_PATH
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 shlibpath_var=LD_LIBRARY_PATH
17281 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17282 echo "${ECHO_T}$dynamic_linker" >&6
17283 test "$dynamic_linker" = no && can_build_shared=no
17285 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17286 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17287 hardcode_action_CXX=
17288 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17289 test -n "$runpath_var_CXX" || \
17290 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17292 # We can hardcode non-existant directories.
17293 if test "$hardcode_direct_CXX" != no &&
17294 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17295 # have to relink, otherwise we might link with an installed library
17296 # when we should be linking with a yet-to-be-installed one
17297 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17298 test "$hardcode_minus_L_CXX" != no; then
17299 # Linking always hardcodes the temporary library directory.
17300 hardcode_action_CXX=relink
17302 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17303 hardcode_action_CXX=immediate
17306 # We cannot hardcode anything, or else we can only hardcode existing
17308 hardcode_action_CXX=unsupported
17310 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17311 echo "${ECHO_T}$hardcode_action_CXX" >&6
17313 if test "$hardcode_action_CXX" = relink; then
17314 # Fast installation is not supported
17315 enable_fast_install=no
17316 elif test "$shlibpath_overrides_runpath" = yes ||
17317 test "$enable_shared" = no; then
17318 # Fast installation is not necessary
17319 enable_fast_install=needless
17324 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17325 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17326 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17327 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17328 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17329 echo "$as_me:$LINENO: result: yes" >&5
17330 echo "${ECHO_T}yes" >&6
17332 # FIXME - insert some real tests, host_os isn't really good enough
17335 if test -n "$STRIP" ; then
17336 striplib="$STRIP -x"
17337 echo "$as_me:$LINENO: result: yes" >&5
17338 echo "${ECHO_T}yes" >&6
17340 echo "$as_me:$LINENO: result: no" >&5
17341 echo "${ECHO_T}no" >&6
17345 echo "$as_me:$LINENO: result: no" >&5
17346 echo "${ECHO_T}no" >&6
17351 if test "x$enable_dlopen" != xyes; then
17352 enable_dlopen=unknown
17353 enable_dlopen_self=unknown
17354 enable_dlopen_self_static=unknown
17361 lt_cv_dlopen="load_add_on"
17363 lt_cv_dlopen_self=yes
17367 lt_cv_dlopen="LoadLibrary"
17372 lt_cv_dlopen="dlopen"
17377 # if libdl is installed we need to link against it
17378 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17379 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17380 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 ac_check_lib_save_LIBS=$LIBS
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17392 /* Override any gcc2 internal prototype to avoid an error. */
17396 /* We use char because int might match the return type of a gcc2
17397 builtin and then its argument prototype would still apply. */
17407 rm -f conftest.$ac_objext conftest$ac_exeext
17408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17409 (eval $ac_link) 2>conftest.er1
17411 grep -v '^ *+' conftest.er1 >conftest.err
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -z "$ac_cxx_werror_flag"
17417 || test ! -s conftest.err'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } &&
17423 { ac_try='test -s conftest$ac_exeext'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_cv_lib_dl_dlopen=yes
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 ac_cv_lib_dl_dlopen=no
17436 rm -f conftest.err conftest.$ac_objext \
17437 conftest$ac_exeext conftest.$ac_ext
17438 LIBS=$ac_check_lib_save_LIBS
17440 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17441 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17442 if test $ac_cv_lib_dl_dlopen = yes; then
17443 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17446 lt_cv_dlopen="dyld"
17448 lt_cv_dlopen_self=yes
17455 echo "$as_me:$LINENO: checking for shl_load" >&5
17456 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17457 if test "${ac_cv_func_shl_load+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17460 cat >conftest.$ac_ext <<_ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17468 #define shl_load innocuous_shl_load
17470 /* System header to define __stub macros and hopefully few prototypes,
17471 which can conflict with char shl_load (); below.
17472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473 <limits.h> exists even on freestanding compilers. */
17476 # include <limits.h>
17478 # include <assert.h>
17483 /* Override any gcc2 internal prototype to avoid an error. */
17488 /* We use char because int might match the return type of a gcc2
17489 builtin and then its argument prototype would still apply. */
17491 /* The GNU C library defines this for functions which it implements
17492 to always fail with ENOSYS. Some functions are actually named
17493 something starting with __ and the normal name is an alias. */
17494 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17497 char (*f) () = shl_load;
17506 return f != shl_load;
17511 rm -f conftest.$ac_objext conftest$ac_exeext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17513 (eval $ac_link) 2>conftest.er1
17515 grep -v '^ *+' conftest.er1 >conftest.err
17517 cat conftest.err >&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
17520 { ac_try='test -z "$ac_cxx_werror_flag"
17521 || test ! -s conftest.err'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } &&
17527 { ac_try='test -s conftest$ac_exeext'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 ac_cv_func_shl_load=yes
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 ac_cv_func_shl_load=no
17540 rm -f conftest.err conftest.$ac_objext \
17541 conftest$ac_exeext conftest.$ac_ext
17543 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17544 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17545 if test $ac_cv_func_shl_load = yes; then
17546 lt_cv_dlopen="shl_load"
17548 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17549 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17550 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17553 ac_check_lib_save_LIBS=$LIBS
17555 cat >conftest.$ac_ext <<_ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17562 /* Override any gcc2 internal prototype to avoid an error. */
17566 /* We use char because int might match the return type of a gcc2
17567 builtin and then its argument prototype would still apply. */
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17579 (eval $ac_link) 2>conftest.er1
17581 grep -v '^ *+' conftest.er1 >conftest.err
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
17586 { ac_try='test -z "$ac_cxx_werror_flag"
17587 || test ! -s conftest.err'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try='test -s conftest$ac_exeext'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 ac_cv_lib_dld_shl_load=yes
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17604 ac_cv_lib_dld_shl_load=no
17606 rm -f conftest.err conftest.$ac_objext \
17607 conftest$ac_exeext conftest.$ac_ext
17608 LIBS=$ac_check_lib_save_LIBS
17610 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17611 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17612 if test $ac_cv_lib_dld_shl_load = yes; then
17613 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17615 echo "$as_me:$LINENO: checking for dlopen" >&5
17616 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17617 if test "${ac_cv_func_dlopen+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 cat >conftest.$ac_ext <<_ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17626 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17628 #define dlopen innocuous_dlopen
17630 /* System header to define __stub macros and hopefully few prototypes,
17631 which can conflict with char dlopen (); below.
17632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17633 <limits.h> exists even on freestanding compilers. */
17636 # include <limits.h>
17638 # include <assert.h>
17643 /* Override any gcc2 internal prototype to avoid an error. */
17648 /* We use char because int might match the return type of a gcc2
17649 builtin and then its argument prototype would still apply. */
17651 /* The GNU C library defines this for functions which it implements
17652 to always fail with ENOSYS. Some functions are actually named
17653 something starting with __ and the normal name is an alias. */
17654 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17657 char (*f) () = dlopen;
17666 return f != dlopen;
17671 rm -f conftest.$ac_objext conftest$ac_exeext
17672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17673 (eval $ac_link) 2>conftest.er1
17675 grep -v '^ *+' conftest.er1 >conftest.err
17677 cat conftest.err >&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } &&
17680 { ac_try='test -z "$ac_cxx_werror_flag"
17681 || test ! -s conftest.err'
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; } &&
17687 { ac_try='test -s conftest$ac_exeext'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 ac_cv_func_dlopen=yes
17695 echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 ac_cv_func_dlopen=no
17700 rm -f conftest.err conftest.$ac_objext \
17701 conftest$ac_exeext conftest.$ac_ext
17703 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17704 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17705 if test $ac_cv_func_dlopen = yes; then
17706 lt_cv_dlopen="dlopen"
17708 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 ac_check_lib_save_LIBS=$LIBS
17715 cat >conftest.$ac_ext <<_ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17722 /* Override any gcc2 internal prototype to avoid an error. */
17726 /* We use char because int might match the return type of a gcc2
17727 builtin and then its argument prototype would still apply. */
17737 rm -f conftest.$ac_objext conftest$ac_exeext
17738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17739 (eval $ac_link) 2>conftest.er1
17741 grep -v '^ *+' conftest.er1 >conftest.err
17743 cat conftest.err >&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } &&
17746 { ac_try='test -z "$ac_cxx_werror_flag"
17747 || test ! -s conftest.err'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; } &&
17753 { ac_try='test -s conftest$ac_exeext'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 ac_cv_lib_dl_dlopen=yes
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 ac_cv_lib_dl_dlopen=no
17766 rm -f conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
17768 LIBS=$ac_check_lib_save_LIBS
17770 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17771 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17772 if test $ac_cv_lib_dl_dlopen = yes; then
17773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17775 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17776 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17777 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 ac_check_lib_save_LIBS=$LIBS
17781 LIBS="-lsvld $LIBS"
17782 cat >conftest.$ac_ext <<_ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h. */
17789 /* Override any gcc2 internal prototype to avoid an error. */
17793 /* We use char because int might match the return type of a gcc2
17794 builtin and then its argument prototype would still apply. */
17804 rm -f conftest.$ac_objext conftest$ac_exeext
17805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17806 (eval $ac_link) 2>conftest.er1
17808 grep -v '^ *+' conftest.er1 >conftest.err
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -z "$ac_cxx_werror_flag"
17814 || test ! -s conftest.err'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; } &&
17820 { ac_try='test -s conftest$ac_exeext'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17826 ac_cv_lib_svld_dlopen=yes
17828 echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17831 ac_cv_lib_svld_dlopen=no
17833 rm -f conftest.err conftest.$ac_objext \
17834 conftest$ac_exeext conftest.$ac_ext
17835 LIBS=$ac_check_lib_save_LIBS
17837 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17838 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17839 if test $ac_cv_lib_svld_dlopen = yes; then
17840 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17842 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17843 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17844 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 ac_check_lib_save_LIBS=$LIBS
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17856 /* Override any gcc2 internal prototype to avoid an error. */
17860 /* We use char because int might match the return type of a gcc2
17861 builtin and then its argument prototype would still apply. */
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873 (eval $ac_link) 2>conftest.er1
17875 grep -v '^ *+' conftest.er1 >conftest.err
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } &&
17880 { ac_try='test -z "$ac_cxx_werror_flag"
17881 || test ! -s conftest.err'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } &&
17887 { ac_try='test -s conftest$ac_exeext'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 ac_cv_lib_dld_dld_link=yes
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 ac_cv_lib_dld_dld_link=no
17900 rm -f conftest.err conftest.$ac_objext \
17901 conftest$ac_exeext conftest.$ac_ext
17902 LIBS=$ac_check_lib_save_LIBS
17904 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17905 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17906 if test $ac_cv_lib_dld_dld_link = yes; then
17907 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17928 if test "x$lt_cv_dlopen" != xno; then
17934 case $lt_cv_dlopen in
17936 save_CPPFLAGS="$CPPFLAGS"
17937 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17939 save_LDFLAGS="$LDFLAGS"
17940 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17943 LIBS="$lt_cv_dlopen_libs $LIBS"
17945 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17946 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17947 if test "${lt_cv_dlopen_self+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 if test "$cross_compiling" = yes; then :
17951 lt_cv_dlopen_self=cross
17953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17954 lt_status=$lt_dlunknown
17955 cat > conftest.$ac_ext <<EOF
17956 #line 17956 "configure"
17957 #include "confdefs.h"
17966 # define LT_DLGLOBAL RTLD_GLOBAL
17969 # define LT_DLGLOBAL DL_GLOBAL
17971 # define LT_DLGLOBAL 0
17975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17976 find out it does not work in some platform. */
17977 #ifndef LT_DLLAZY_OR_NOW
17979 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17982 # define LT_DLLAZY_OR_NOW DL_LAZY
17985 # define LT_DLLAZY_OR_NOW RTLD_NOW
17988 # define LT_DLLAZY_OR_NOW DL_NOW
17990 # define LT_DLLAZY_OR_NOW 0
17998 extern "C" void exit (int);
18001 void fnord() { int i=42;}
18004 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18005 int status = $lt_dlunknown;
18009 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18010 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18011 /* dlclose (self); */
18017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18018 (eval $ac_link) 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18022 (./conftest; exit; ) 2>/dev/null
18024 case x$lt_status in
18025 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18026 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18027 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18030 # compilation failed
18031 lt_cv_dlopen_self=no
18038 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18039 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18041 if test "x$lt_cv_dlopen_self" = xyes; then
18042 LDFLAGS="$LDFLAGS $link_static_flag"
18043 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18044 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18045 if test "${lt_cv_dlopen_self_static+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 if test "$cross_compiling" = yes; then :
18049 lt_cv_dlopen_self_static=cross
18051 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18052 lt_status=$lt_dlunknown
18053 cat > conftest.$ac_ext <<EOF
18054 #line 18054 "configure"
18055 #include "confdefs.h"
18064 # define LT_DLGLOBAL RTLD_GLOBAL
18067 # define LT_DLGLOBAL DL_GLOBAL
18069 # define LT_DLGLOBAL 0
18073 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18074 find out it does not work in some platform. */
18075 #ifndef LT_DLLAZY_OR_NOW
18077 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18080 # define LT_DLLAZY_OR_NOW DL_LAZY
18083 # define LT_DLLAZY_OR_NOW RTLD_NOW
18086 # define LT_DLLAZY_OR_NOW DL_NOW
18088 # define LT_DLLAZY_OR_NOW 0
18096 extern "C" void exit (int);
18099 void fnord() { int i=42;}
18102 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18103 int status = $lt_dlunknown;
18107 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18108 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18109 /* dlclose (self); */
18115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18116 (eval $ac_link) 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18120 (./conftest; exit; ) 2>/dev/null
18122 case x$lt_status in
18123 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18124 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18125 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18128 # compilation failed
18129 lt_cv_dlopen_self_static=no
18136 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18137 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18140 CPPFLAGS="$save_CPPFLAGS"
18141 LDFLAGS="$save_LDFLAGS"
18146 case $lt_cv_dlopen_self in
18147 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18148 *) enable_dlopen_self=unknown ;;
18151 case $lt_cv_dlopen_self_static in
18152 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18153 *) enable_dlopen_self_static=unknown ;;
18158 # The else clause should only fire when bootstrapping the
18159 # libtool distribution, otherwise you forgot to ship ltmain.sh
18160 # with your package, and you will get complaints that there are
18161 # no rules to generate ltmain.sh.
18162 if test -f "$ltmain"; then
18163 # See if we are running on zsh, and set the options which allow our commands through
18164 # without removal of \ escapes.
18165 if test -n "${ZSH_VERSION+set}" ; then
18166 setopt NO_GLOB_SUBST
18168 # Now quote all the things that may contain metacharacters while being
18169 # careful not to overquote the AC_SUBSTed values. We take copies of the
18170 # variables and quote the copies for generation of the libtool script.
18171 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18173 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18174 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18175 deplibs_check_method reload_flag reload_cmds need_locks \
18176 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18177 lt_cv_sys_global_symbol_to_c_name_address \
18178 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18179 old_postinstall_cmds old_postuninstall_cmds \
18183 lt_prog_compiler_wl_CXX \
18184 lt_prog_compiler_pic_CXX \
18185 lt_prog_compiler_static_CXX \
18186 lt_prog_compiler_no_builtin_flag_CXX \
18187 export_dynamic_flag_spec_CXX \
18188 thread_safe_flag_spec_CXX \
18189 whole_archive_flag_spec_CXX \
18190 enable_shared_with_static_runtimes_CXX \
18191 old_archive_cmds_CXX \
18192 old_archive_from_new_cmds_CXX \
18193 predep_objects_CXX \
18194 postdep_objects_CXX \
18197 compiler_lib_search_path_CXX \
18199 archive_expsym_cmds_CXX \
18200 postinstall_cmds_CXX \
18201 postuninstall_cmds_CXX \
18202 old_archive_from_expsyms_cmds_CXX \
18203 allow_undefined_flag_CXX \
18204 no_undefined_flag_CXX \
18205 export_symbols_cmds_CXX \
18206 hardcode_libdir_flag_spec_CXX \
18207 hardcode_libdir_flag_spec_ld_CXX \
18208 hardcode_libdir_separator_CXX \
18209 hardcode_automatic_CXX \
18211 module_expsym_cmds_CXX \
18212 lt_cv_prog_compiler_c_o_CXX \
18213 exclude_expsyms_CXX \
18214 include_expsyms_CXX; do
18217 old_archive_cmds_CXX | \
18218 old_archive_from_new_cmds_CXX | \
18219 archive_cmds_CXX | \
18220 archive_expsym_cmds_CXX | \
18221 module_cmds_CXX | \
18222 module_expsym_cmds_CXX | \
18223 old_archive_from_expsyms_cmds_CXX | \
18224 export_symbols_cmds_CXX | \
18225 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18226 postinstall_cmds | postuninstall_cmds | \
18227 old_postinstall_cmds | old_postuninstall_cmds | \
18228 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18229 # Double-quote double-evaled strings.
18230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18233 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18239 *'\$0 --fallback-echo"')
18240 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18246 cat <<__EOF__ >> "$cfgfile"
18247 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18251 # Shell to use when invoking shell scripts.
18254 # Whether or not to build shared libraries.
18255 build_libtool_libs=$enable_shared
18257 # Whether or not to build static libraries.
18258 build_old_libs=$enable_static
18260 # Whether or not to add -lc for building shared libraries.
18261 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18263 # Whether or not to disallow shared libs when runtime libs are static
18264 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18266 # Whether or not to optimize for fast installation.
18267 fast_install=$enable_fast_install
18270 host_alias=$host_alias
18273 # An echo program that does not interpret backslashes.
18278 AR_FLAGS=$lt_AR_FLAGS
18283 # A language-specific compiler.
18284 CC=$lt_compiler_CXX
18286 # Is the compiler the GNU C compiler?
18292 # The linker used to build libraries.
18295 # Whether we need hard or soft links.
18298 # A BSD-compatible nm program.
18301 # A symbol stripping program
18304 # Used to examine libraries when file_magic_cmd begins "file"
18305 MAGIC_CMD=$MAGIC_CMD
18307 # Used on cygwin: DLL creation program.
18310 # Used on cygwin: object dumper.
18313 # Used on cygwin: assembler.
18316 # The name of the directory that contains temporary libtool files.
18319 # How to create reloadable object files.
18320 reload_flag=$lt_reload_flag
18321 reload_cmds=$lt_reload_cmds
18323 # How to pass a linker flag through the compiler.
18324 wl=$lt_lt_prog_compiler_wl_CXX
18326 # Object file suffix (normally "o").
18327 objext="$ac_objext"
18329 # Old archive suffix (normally "a").
18332 # Shared library suffix (normally ".so").
18333 shrext_cmds='$shrext_cmds'
18335 # Executable file suffix (normally "").
18338 # Additional compiler flags for building library objects.
18339 pic_flag=$lt_lt_prog_compiler_pic_CXX
18342 # What is the maximum length of a command?
18343 max_cmd_len=$lt_cv_sys_max_cmd_len
18345 # Does compiler simultaneously support -c and -o options?
18346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18348 # Must we lock files when doing compilation ?
18349 need_locks=$lt_need_locks
18351 # Do we need the lib prefix for modules?
18352 need_lib_prefix=$need_lib_prefix
18354 # Do we need a version for libraries?
18355 need_version=$need_version
18357 # Whether dlopen is supported.
18358 dlopen_support=$enable_dlopen
18360 # Whether dlopen of programs is supported.
18361 dlopen_self=$enable_dlopen_self
18363 # Whether dlopen of statically linked programs is supported.
18364 dlopen_self_static=$enable_dlopen_self_static
18366 # Compiler flag to prevent dynamic linking.
18367 link_static_flag=$lt_lt_prog_compiler_static_CXX
18369 # Compiler flag to turn off builtin functions.
18370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18372 # Compiler flag to allow reflexive dlopens.
18373 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18375 # Compiler flag to generate shared objects directly from archives.
18376 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18378 # Compiler flag to generate thread-safe objects.
18379 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18381 # Library versioning type.
18382 version_type=$version_type
18384 # Format of library name prefix.
18385 libname_spec=$lt_libname_spec
18387 # List of archive names. First name is the real one, the rest are links.
18388 # The last name is the one that the linker finds with -lNAME.
18389 library_names_spec=$lt_library_names_spec
18391 # The coded name of the library, if different from the real name.
18392 soname_spec=$lt_soname_spec
18394 # Commands used to build and install an old-style archive.
18396 old_archive_cmds=$lt_old_archive_cmds_CXX
18397 old_postinstall_cmds=$lt_old_postinstall_cmds
18398 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18400 # Create an old-style archive from a shared archive.
18401 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18403 # Create a temporary old-style archive to link instead of a shared archive.
18404 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18406 # Commands used to build and install a shared archive.
18407 archive_cmds=$lt_archive_cmds_CXX
18408 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18409 postinstall_cmds=$lt_postinstall_cmds
18410 postuninstall_cmds=$lt_postuninstall_cmds
18412 # Commands used to build a loadable module (assumed same as above if empty)
18413 module_cmds=$lt_module_cmds_CXX
18414 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18416 # Commands to strip libraries.
18417 old_striplib=$lt_old_striplib
18418 striplib=$lt_striplib
18420 # Dependencies to place before the objects being linked to create a
18422 predep_objects=$lt_predep_objects_CXX
18424 # Dependencies to place after the objects being linked to create a
18426 postdep_objects=$lt_postdep_objects_CXX
18428 # Dependencies to place before the objects being linked to create a
18430 predeps=$lt_predeps_CXX
18432 # Dependencies to place after the objects being linked to create a
18434 postdeps=$lt_postdeps_CXX
18436 # The library search path used internally by the compiler when linking
18437 # a shared library.
18438 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18440 # Method to check whether dependent libraries are shared objects.
18441 deplibs_check_method=$lt_deplibs_check_method
18443 # Command to use when deplibs_check_method == file_magic.
18444 file_magic_cmd=$lt_file_magic_cmd
18446 # Flag that allows shared libraries with undefined symbols to be built.
18447 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18449 # Flag that forces no undefined symbols.
18450 no_undefined_flag=$lt_no_undefined_flag_CXX
18452 # Commands used to finish a libtool library installation in a directory.
18453 finish_cmds=$lt_finish_cmds
18455 # Same as above, but a single script fragment to be evaled but not shown.
18456 finish_eval=$lt_finish_eval
18458 # Take the output of nm and produce a listing of raw symbols and C names.
18459 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18461 # Transform the output of nm in a proper C declaration
18462 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18464 # Transform the output of nm in a C name address pair
18465 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18467 # This is the shared library runtime path variable.
18468 runpath_var=$runpath_var
18470 # This is the shared library path variable.
18471 shlibpath_var=$shlibpath_var
18473 # Is shlibpath searched before the hard-coded library search path?
18474 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18476 # How to hardcode a shared library path into an executable.
18477 hardcode_action=$hardcode_action_CXX
18479 # Whether we should hardcode library paths into libraries.
18480 hardcode_into_libs=$hardcode_into_libs
18482 # Flag to hardcode \$libdir into a binary during linking.
18483 # This must work even if \$libdir does not exist.
18484 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18486 # If ld is used when linking, flag to hardcode \$libdir into
18487 # a binary during linking. This must work even if \$libdir does
18489 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18491 # Whether we need a single -rpath flag with a separated argument.
18492 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18494 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18495 # resulting binary.
18496 hardcode_direct=$hardcode_direct_CXX
18498 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18499 # resulting binary.
18500 hardcode_minus_L=$hardcode_minus_L_CXX
18502 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18503 # the resulting binary.
18504 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18506 # Set to yes if building a shared library automatically hardcodes DIR into the library
18507 # and all subsequent libraries and executables linked against it.
18508 hardcode_automatic=$hardcode_automatic_CXX
18510 # Variables whose values should be saved in libtool wrapper scripts and
18511 # restored at relink time.
18512 variables_saved_for_relink="$variables_saved_for_relink"
18514 # Whether libtool must link a program against all its dependency libraries.
18515 link_all_deplibs=$link_all_deplibs_CXX
18517 # Compile-time system search path for libraries
18518 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18520 # Run-time system search path for libraries
18521 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18523 # Fix the shell variable \$srcfile for the compiler.
18524 fix_srcfile_path="$fix_srcfile_path_CXX"
18526 # Set to yes if exported symbols are required.
18527 always_export_symbols=$always_export_symbols_CXX
18529 # The commands to list exported symbols.
18530 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18532 # The commands to extract the exported symbol list from a shared archive.
18533 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18535 # Symbols that should not be listed in the preloaded symbols.
18536 exclude_expsyms=$lt_exclude_expsyms_CXX
18538 # Symbols that must always be exported.
18539 include_expsyms=$lt_include_expsyms_CXX
18541 # ### END LIBTOOL TAG CONFIG: $tagname
18547 # If there is no Makefile yet, we rely on a make rule to execute
18548 # `config.status --recheck' to rerun these tests and create the
18549 # libtool script then.
18550 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18551 if test -f "$ltmain_in"; then
18552 test -f Makefile && make "$ltmain"
18558 ac_cpp='$CPP $CPPFLAGS'
18559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18567 with_gnu_ldcxx=$with_gnu_ld
18568 with_gnu_ld=$lt_save_with_gnu_ld
18569 lt_cv_path_LDCXX=$lt_cv_path_LD
18570 lt_cv_path_LD=$lt_save_path_LD
18571 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18572 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18580 if test -n "$F77" && test "X$F77" != "Xno"; then
18583 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18584 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18585 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18588 archive_cmds_need_lc_F77=no
18589 allow_undefined_flag_F77=
18590 always_export_symbols_F77=no
18591 archive_expsym_cmds_F77=
18592 export_dynamic_flag_spec_F77=
18593 hardcode_direct_F77=no
18594 hardcode_libdir_flag_spec_F77=
18595 hardcode_libdir_flag_spec_ld_F77=
18596 hardcode_libdir_separator_F77=
18597 hardcode_minus_L_F77=no
18598 hardcode_automatic_F77=no
18600 module_expsym_cmds_F77=
18601 link_all_deplibs_F77=unknown
18602 old_archive_cmds_F77=$old_archive_cmds
18603 no_undefined_flag_F77=
18604 whole_archive_flag_spec_F77=
18605 enable_shared_with_static_runtimes_F77=no
18607 # Source file extension for f77 test sources.
18610 # Object file extension for compiled f77 test sources.
18614 # Code to be used in simple compile tests
18615 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18617 # Code to be used in simple link tests
18618 lt_simple_link_test_code=" program t\n end\n"
18620 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18622 # If no C compiler was specified, use CC.
18625 # Allow CC to be a program name with arguments.
18629 # Allow CC to be a program name with arguments.
18634 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18636 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18637 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18638 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18639 echo "${ECHO_T}$can_build_shared" >&6
18641 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18642 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18643 test "$can_build_shared" = "no" && enable_shared=no
18645 # On AIX, shared libraries and static libraries use the same namespace, and
18646 # are all built from PIC.
18649 test "$enable_shared" = yes && enable_static=no
18650 if test -n "$RANLIB"; then
18651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18652 postinstall_cmds='$RANLIB $lib'
18656 test "$enable_shared" = yes && enable_static=no
18659 echo "$as_me:$LINENO: result: $enable_shared" >&5
18660 echo "${ECHO_T}$enable_shared" >&6
18662 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18663 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18664 # Make sure either enable_shared or enable_static is yes.
18665 test "$enable_shared" = yes || enable_static=yes
18666 echo "$as_me:$LINENO: result: $enable_static" >&5
18667 echo "${ECHO_T}$enable_static" >&6
18669 test "$ld_shlibs_F77" = no && can_build_shared=no
18674 lt_prog_compiler_wl_F77=
18675 lt_prog_compiler_pic_F77=
18676 lt_prog_compiler_static_F77=
18678 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18679 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18681 if test "$GCC" = yes; then
18682 lt_prog_compiler_wl_F77='-Wl,'
18683 lt_prog_compiler_static_F77='-static'
18687 # All AIX code is PIC.
18688 if test "$host_cpu" = ia64; then
18689 # AIX 5 now supports IA64 processor
18690 lt_prog_compiler_static_F77='-Bstatic'
18695 # FIXME: we need at least 68020 code to build shared libraries, but
18696 # adding the `-m68020' flag to GCC prevents building anything better,
18698 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18701 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18702 # PIC is the default for these OSes.
18705 mingw* | pw32* | os2*)
18706 # This hack is so that the source file can tell whether it is being
18707 # built for inclusion in a dll (and should export symbols for example).
18708 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18711 darwin* | rhapsody*)
18712 # PIC is the default on this platform
18713 # Common symbols not allowed in MH_DYLIB files
18714 lt_prog_compiler_pic_F77='-fno-common'
18718 # Just because we use GCC doesn't mean we suddenly get shared libraries
18719 # on systems that don't support them.
18720 lt_prog_compiler_can_build_shared_F77=no
18725 if test -d /usr/nec; then
18726 lt_prog_compiler_pic_F77=-Kconform_pic
18731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18732 # not for PA HP-UX.
18733 case "$host_cpu" in
18738 lt_prog_compiler_pic_F77='-fPIC'
18744 lt_prog_compiler_pic_F77='-fPIC'
18748 # PORTME Check for flag to pass linker flags through the system compiler.
18751 lt_prog_compiler_wl_F77='-Wl,'
18752 if test "$host_cpu" = ia64; then
18753 # AIX 5 now supports IA64 processor
18754 lt_prog_compiler_static_F77='-Bstatic'
18756 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18760 # PIC is the default on this platform
18761 # Common symbols not allowed in MH_DYLIB files
18762 case "$cc_basename" in
18764 lt_prog_compiler_pic_F77='-qnocommon'
18765 lt_prog_compiler_wl_F77='-Wl,'
18770 mingw* | pw32* | os2*)
18771 # This hack is so that the source file can tell whether it is being
18772 # built for inclusion in a dll (and should export symbols for example).
18773 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18776 hpux9* | hpux10* | hpux11*)
18777 lt_prog_compiler_wl_F77='-Wl,'
18778 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18779 # not for PA HP-UX.
18780 case "$host_cpu" in
18785 lt_prog_compiler_pic_F77='+Z'
18788 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18789 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18792 irix5* | irix6* | nonstopux*)
18793 lt_prog_compiler_wl_F77='-Wl,'
18794 # PIC (with -KPIC) is the default.
18795 lt_prog_compiler_static_F77='-non_shared'
18799 lt_prog_compiler_pic_F77='-KPIC'
18800 lt_prog_compiler_static_F77='-Bstatic'
18806 lt_prog_compiler_wl_F77='-Wl,'
18807 lt_prog_compiler_pic_F77='-KPIC'
18808 lt_prog_compiler_static_F77='-static'
18811 lt_prog_compiler_wl_F77='-Wl,'
18812 # All Alpha code is PIC.
18813 lt_prog_compiler_static_F77='-non_shared'
18818 osf3* | osf4* | osf5*)
18819 lt_prog_compiler_wl_F77='-Wl,'
18820 # All OSF/1 code is PIC.
18821 lt_prog_compiler_static_F77='-non_shared'
18825 lt_prog_compiler_pic_F77='-Kpic'
18826 lt_prog_compiler_static_F77='-dn'
18830 lt_prog_compiler_wl_F77='-Wl,'
18831 lt_prog_compiler_pic_F77='-KPIC'
18832 lt_prog_compiler_static_F77='-Bstatic'
18836 lt_prog_compiler_wl_F77='-Qoption ld '
18837 lt_prog_compiler_pic_F77='-PIC'
18838 lt_prog_compiler_static_F77='-Bstatic'
18841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18842 lt_prog_compiler_wl_F77='-Wl,'
18843 lt_prog_compiler_pic_F77='-KPIC'
18844 lt_prog_compiler_static_F77='-Bstatic'
18848 if test -d /usr/nec ;then
18849 lt_prog_compiler_pic_F77='-Kconform_pic'
18850 lt_prog_compiler_static_F77='-Bstatic'
18855 lt_prog_compiler_pic_F77='-pic'
18856 lt_prog_compiler_static_F77='-Bstatic'
18860 lt_prog_compiler_can_build_shared_F77=no
18865 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18866 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18869 # Check to make sure the PIC flag actually works.
18871 if test -n "$lt_prog_compiler_pic_F77"; then
18873 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18874 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18875 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18878 lt_prog_compiler_pic_works_F77=no
18879 ac_outfile=conftest.$ac_objext
18880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18881 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18882 # Insert the option either (1) after the last *FLAGS variable, or
18883 # (2) before a word containing "conftest.", or (3) at the end.
18884 # Note that $ac_compile itself does not contain backslashes and begins
18885 # with a dollar sign (not a hyphen), so the echo should work correctly.
18886 # The option is referenced via a variable to avoid confusing sed.
18887 lt_compile=`echo "$ac_compile" | $SED \
18888 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18890 -e 's:$: $lt_compiler_flag:'`
18891 (eval echo "\"\$as_me:18891: $lt_compile\"" >&5)
18892 (eval "$lt_compile" 2>conftest.err)
18894 cat conftest.err >&5
18895 echo "$as_me:18895: \$? = $ac_status" >&5
18896 if (exit $ac_status) && test -s "$ac_outfile"; then
18897 # The compiler can only warn and ignore the option if not recognized
18898 # So say no if there are warnings
18899 if test ! -s conftest.err; then
18900 lt_prog_compiler_pic_works_F77=yes
18906 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18907 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18909 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18910 case $lt_prog_compiler_pic_F77 in
18912 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18915 lt_prog_compiler_pic_F77=
18916 lt_prog_compiler_can_build_shared_F77=no
18921 # For platforms which do not support PIC, -DPIC is meaningless:
18923 lt_prog_compiler_pic_F77=
18926 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18930 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18932 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 lt_cv_prog_compiler_c_o_F77=no
18936 $rm -r conftest 2>/dev/null
18940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18942 lt_compiler_flag="-o out/conftest2.$ac_objext"
18943 # Insert the option either (1) after the last *FLAGS variable, or
18944 # (2) before a word containing "conftest.", or (3) at the end.
18945 # Note that $ac_compile itself does not contain backslashes and begins
18946 # with a dollar sign (not a hyphen), so the echo should work correctly.
18947 lt_compile=`echo "$ac_compile" | $SED \
18948 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18950 -e 's:$: $lt_compiler_flag:'`
18951 (eval echo "\"\$as_me:18951: $lt_compile\"" >&5)
18952 (eval "$lt_compile" 2>out/conftest.err)
18954 cat out/conftest.err >&5
18955 echo "$as_me:18955: \$? = $ac_status" >&5
18956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18958 # The compiler can only warn and ignore the option if not recognized
18959 # So say no if there are warnings
18960 if test ! -s out/conftest.err; then
18961 lt_cv_prog_compiler_c_o_F77=yes
18966 # SGI C++ compiler will create directory out/ii_files/ for
18967 # template instantiation
18968 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18969 $rm out/* && rmdir out
18975 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18976 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18979 hard_links="nottested"
18980 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18981 # do not overwrite the value of need_locks provided by the user
18982 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18988 ln conftest.a conftest.b 2>&5 || hard_links=no
18989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18990 echo "$as_me:$LINENO: result: $hard_links" >&5
18991 echo "${ECHO_T}$hard_links" >&6
18992 if test "$hard_links" = no; then
18993 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19001 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19005 allow_undefined_flag_F77=
19006 enable_shared_with_static_runtimes_F77=no
19008 archive_expsym_cmds_F77=
19009 old_archive_From_new_cmds_F77=
19010 old_archive_from_expsyms_cmds_F77=
19011 export_dynamic_flag_spec_F77=
19012 whole_archive_flag_spec_F77=
19013 thread_safe_flag_spec_F77=
19014 hardcode_libdir_flag_spec_F77=
19015 hardcode_libdir_flag_spec_ld_F77=
19016 hardcode_libdir_separator_F77=
19017 hardcode_direct_F77=no
19018 hardcode_minus_L_F77=no
19019 hardcode_shlibpath_var_F77=unsupported
19020 link_all_deplibs_F77=unknown
19021 hardcode_automatic_F77=no
19023 module_expsym_cmds_F77=
19024 always_export_symbols_F77=no
19025 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19026 # include_expsyms should be a list of space-separated symbols to be *always*
19027 # included in the symbol list
19028 include_expsyms_F77=
19029 # exclude_expsyms can be an extended regexp of symbols to exclude
19030 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19031 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19032 # as well as any symbol that contains `d'.
19033 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19034 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19035 # platforms (ab)use it in PIC code, but their linkers get confused if
19036 # the symbol is explicitly referenced. Since portable code cannot
19037 # rely on this symbol name, it's probably fine to never include it in
19038 # preloaded symbol tables.
19039 extract_expsyms_cmds=
19042 cygwin* | mingw* | pw32*)
19043 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19044 # When not using gcc, we currently assume that we are using
19045 # Microsoft Visual C++.
19046 if test "$GCC" != yes; then
19056 if test "$with_gnu_ld" = yes; then
19057 # If archive_cmds runs LD, not CC, wlarc should be empty
19060 # See if GNU ld supports shared libraries.
19062 aix3* | aix4* | aix5*)
19063 # On AIX/PPC, the GNU linker is very broken
19064 if test "$host_cpu" != ia64; then
19068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19069 *** to be unable to reliably create shared libraries on AIX.
19070 *** Therefore, libtool is disabling shared libraries support. If you
19071 *** really care for shared libraries, you may want to modify your PATH
19072 *** so that a non-GNU linker is found, and then restart.
19079 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)'
19080 hardcode_libdir_flag_spec_F77='-L$libdir'
19081 hardcode_minus_L_F77=yes
19083 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19084 # that the semantics of dynamic libraries on AmigaOS, at least up
19085 # to version 4, is to share data among multiple programs linked
19086 # with the same dynamic library. Since this doesn't match the
19087 # behavior of shared libraries on other platforms, we can't use
19093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19094 allow_undefined_flag_F77=unsupported
19095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19096 # support --undefined. This deserves some investigation. FIXME
19097 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19103 cygwin* | mingw* | pw32*)
19104 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19105 # as there is no search path for DLLs.
19106 hardcode_libdir_flag_spec_F77='-L$libdir'
19107 allow_undefined_flag_F77=unsupported
19108 always_export_symbols_F77=no
19109 enable_shared_with_static_runtimes_F77=yes
19110 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19113 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19114 # If the export-symbols file already is a .def file (1st line
19115 # is EXPORTS), use it as is; otherwise, prepend...
19116 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19117 cp $export_symbols $output_objdir/$soname.def;
19119 echo EXPORTS > $output_objdir/$soname.def;
19120 cat $export_symbols >> $output_objdir/$soname.def;
19122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19130 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19133 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19134 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19139 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19143 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19144 *** create shared libraries on Solaris systems. Therefore, libtool
19145 *** is disabling shared libraries support. We urge you to upgrade GNU
19146 *** binutils to release 2.9.1 or newer. Another option is to modify
19147 *** your PATH or compiler configuration so that the native linker is
19148 *** used, and then restart.
19151 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19152 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19153 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19160 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19162 hardcode_direct_F77=yes
19163 hardcode_shlibpath_var_F77=no
19167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19168 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19169 archive_cmds_F77="$tmp_archive_cmds"
19170 supports_anon_versioning=no
19171 case `$LD -v 2>/dev/null` in
19172 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19173 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19174 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19175 *\ 2.11.*) ;; # other 2.11 versions
19176 *) supports_anon_versioning=yes ;;
19178 if test $supports_anon_versioning = yes; then
19179 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19181 $echo "local: *; };" >> $output_objdir/$libname.ver~
19182 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19184 archive_expsym_cmds_F77="$tmp_archive_cmds"
19192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19193 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19194 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19201 if test "$ld_shlibs_F77" = yes; then
19202 runpath_var=LD_RUN_PATH
19203 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19204 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19205 # ancient GNU ld didn't support --whole-archive et. al.
19206 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19207 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19209 whole_archive_flag_spec_F77=
19213 # PORTME fill in a description of your system's linker (not GNU ld)
19216 allow_undefined_flag_F77=unsupported
19217 always_export_symbols_F77=yes
19218 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'
19219 # Note: this linker hardcodes the directories in LIBPATH if there
19220 # are no directories specified by -L.
19221 hardcode_minus_L_F77=yes
19222 if test "$GCC" = yes && test -z "$link_static_flag"; then
19223 # Neither direct hardcoding nor static linking is supported with a
19225 hardcode_direct_F77=unsupported
19230 if test "$host_cpu" = ia64; then
19231 # On IA64, the linker does run time linking by default, so we don't
19232 # have to do anything special.
19233 aix_use_runtimelinking=no
19234 exp_sym_flag='-Bexport'
19237 # If we're using GNU nm, then we don't want the "-C" option.
19238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19239 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19240 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'
19242 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'
19244 aix_use_runtimelinking=no
19246 # Test if we are trying to use run time linking or normal
19247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19248 # need to do runtime linking.
19249 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19250 for ld_flag in $LDFLAGS; do
19251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19252 aix_use_runtimelinking=yes
19258 exp_sym_flag='-bexport'
19259 no_entry_flag='-bnoentry'
19262 # When large executables or shared objects are built, AIX ld can
19263 # have problems creating the table of contents. If linking a library
19264 # or program results in "error TOC overflow" add -mminimal-toc to
19265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19268 archive_cmds_F77=''
19269 hardcode_direct_F77=yes
19270 hardcode_libdir_separator_F77=':'
19271 link_all_deplibs_F77=yes
19273 if test "$GCC" = yes; then
19274 case $host_os in aix4.012|aix4.012.*)
19275 # We only want to do this on AIX 4.2 and lower, the check
19276 # below for broken collect2 doesn't work under 4.3+
19277 collect2name=`${CC} -print-prog-name=collect2`
19278 if test -f "$collect2name" && \
19279 strings "$collect2name" | grep resolve_lib_name >/dev/null
19281 # We have reworked collect2
19282 hardcode_direct_F77=yes
19284 # We have old collect2
19285 hardcode_direct_F77=unsupported
19286 # It fails to find uninstalled libraries when the uninstalled
19287 # path is not listed in the libpath. Setting hardcode_minus_L
19288 # to unsupported forces relinking
19289 hardcode_minus_L_F77=yes
19290 hardcode_libdir_flag_spec_F77='-L$libdir'
19291 hardcode_libdir_separator_F77=
19294 shared_flag='-shared'
19297 if test "$host_cpu" = ia64; then
19298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19299 # chokes on -Wl,-G. The following line is correct:
19302 if test "$aix_use_runtimelinking" = yes; then
19303 shared_flag='${wl}-G'
19305 shared_flag='${wl}-bM:SRE'
19310 # It seems that -bexpall does not export symbols beginning with
19311 # underscore (_), so it is better to generate a list of symbols to export.
19312 always_export_symbols_F77=yes
19313 if test "$aix_use_runtimelinking" = yes; then
19314 # Warning - without using the other runtime loading flags (-brtl),
19315 # -berok will link without error, but may produce a broken library.
19316 allow_undefined_flag_F77='-berok'
19317 # Determine the default libpath from the value encoded in an empty executable.
19318 cat >conftest.$ac_ext <<_ACEOF
19323 rm -f conftest.$ac_objext conftest$ac_exeext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19325 (eval $ac_link) 2>conftest.er1
19327 grep -v '^ *+' conftest.er1 >conftest.err
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try='test -z "$ac_f77_werror_flag"
19333 || test ! -s conftest.err'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest$ac_exeext'
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19348 # Check for a 64-bit object if we didn't find anything.
19349 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; }
19352 echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19356 rm -f conftest.err conftest.$ac_objext \
19357 conftest$ac_exeext conftest.$ac_ext
19358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19360 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19361 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"
19363 if test "$host_cpu" = ia64; then
19364 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19365 allow_undefined_flag_F77="-z nodefs"
19366 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"
19368 # Determine the default libpath from the value encoded in an empty executable.
19369 cat >conftest.$ac_ext <<_ACEOF
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19376 (eval $ac_link) 2>conftest.er1
19378 grep -v '^ *+' conftest.er1 >conftest.err
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_f77_werror_flag"
19384 || test ! -s conftest.err'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest$ac_exeext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19399 # Check for a 64-bit object if we didn't find anything.
19400 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; }
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19407 rm -f conftest.err conftest.$ac_objext \
19408 conftest$ac_exeext conftest.$ac_ext
19409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19411 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19412 # Warning - without using the other run time loading flags,
19413 # -berok will link without error, but may produce a broken library.
19414 no_undefined_flag_F77=' ${wl}-bernotok'
19415 allow_undefined_flag_F77=' ${wl}-berok'
19416 # -bexpall does not export symbols beginning with underscore (_)
19417 always_export_symbols_F77=yes
19418 # Exported symbols can be pulled into shared objects from archives
19419 whole_archive_flag_spec_F77=' '
19420 archive_cmds_need_lc_F77=yes
19421 # This is similar to how AIX traditionally builds it's shared libraries.
19422 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'
19428 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)'
19429 hardcode_libdir_flag_spec_F77='-L$libdir'
19430 hardcode_minus_L_F77=yes
19431 # see comment about different semantics on the GNU ld section
19436 export_dynamic_flag_spec_F77=-rdynamic
19439 cygwin* | mingw* | pw32*)
19440 # When not using gcc, we currently assume that we are using
19441 # Microsoft Visual C++.
19442 # hardcode_libdir_flag_spec is actually meaningless, as there is
19443 # no search path for DLLs.
19444 hardcode_libdir_flag_spec_F77=' '
19445 allow_undefined_flag_F77=unsupported
19446 # Tell ltmain to make .lib files, not .a files.
19448 # Tell ltmain to make .dll files, not .so files.
19450 # FIXME: Setting linknames here is a bad hack.
19451 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19452 # The linker will automatically build a .lib file if we build a DLL.
19453 old_archive_From_new_cmds_F77='true'
19454 # FIXME: Should let the user specify the lib program.
19455 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19456 fix_srcfile_path='`cygpath -w "$srcfile"`'
19457 enable_shared_with_static_runtimes_F77=yes
19460 darwin* | rhapsody*)
19462 rhapsody* | darwin1.[012])
19463 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19466 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19467 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19469 case ${MACOSX_DEPLOYMENT_TARGET} in
19471 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19474 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19480 archive_cmds_need_lc_F77=no
19481 hardcode_direct_F77=no
19482 hardcode_automatic_F77=yes
19483 hardcode_shlibpath_var_F77=unsupported
19484 whole_archive_flag_spec_F77=''
19485 link_all_deplibs_F77=yes
19486 if test "$GCC" = yes ; then
19487 output_verbose_link_cmd='echo'
19488 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19489 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19490 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19491 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}'
19492 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}'
19494 case "$cc_basename" in
19496 output_verbose_link_cmd='echo'
19497 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19498 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19499 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19500 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}'
19501 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}'
19511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19512 hardcode_libdir_flag_spec_F77='-L$libdir'
19513 hardcode_shlibpath_var_F77=no
19520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19521 # support. Future versions do this automatically, but an explicit c++rt0.o
19522 # does not break anything, and helps significantly (at the cost of a little
19525 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19526 hardcode_libdir_flag_spec_F77='-R$libdir'
19527 hardcode_direct_F77=yes
19528 hardcode_shlibpath_var_F77=no
19531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19533 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19534 hardcode_direct_F77=yes
19535 hardcode_minus_L_F77=yes
19536 hardcode_shlibpath_var_F77=no
19539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19540 freebsd* | kfreebsd*-gnu)
19541 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19542 hardcode_libdir_flag_spec_F77='-R$libdir'
19543 hardcode_direct_F77=yes
19544 hardcode_shlibpath_var_F77=no
19548 if test "$GCC" = yes; then
19549 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'
19551 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'
19553 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19554 hardcode_libdir_separator_F77=:
19555 hardcode_direct_F77=yes
19557 # hardcode_minus_L: Not really in the search PATH,
19558 # but as the default location of the library.
19559 hardcode_minus_L_F77=yes
19560 export_dynamic_flag_spec_F77='${wl}-E'
19564 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19565 case "$host_cpu" in
19567 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19570 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19574 case "$host_cpu" in
19576 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19579 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19583 if test "$with_gnu_ld" = no; then
19584 case "$host_cpu" in
19586 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19587 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19588 hardcode_libdir_separator_F77=:
19589 hardcode_direct_F77=no
19590 hardcode_shlibpath_var_F77=no
19593 hardcode_libdir_flag_spec_F77='-L$libdir'
19594 hardcode_direct_F77=no
19595 hardcode_shlibpath_var_F77=no
19597 # hardcode_minus_L: Not really in the search PATH,
19598 # but as the default location of the library.
19599 hardcode_minus_L_F77=yes
19602 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19603 hardcode_libdir_separator_F77=:
19604 hardcode_direct_F77=yes
19605 export_dynamic_flag_spec_F77='${wl}-E'
19607 # hardcode_minus_L: Not really in the search PATH,
19608 # but as the default location of the library.
19609 hardcode_minus_L_F77=yes
19615 irix5* | irix6* | nonstopux*)
19616 if test "$GCC" = yes; then
19617 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'
19619 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'
19620 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19622 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19623 hardcode_libdir_separator_F77=:
19624 link_all_deplibs_F77=yes
19628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19631 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19633 hardcode_libdir_flag_spec_F77='-R$libdir'
19634 hardcode_direct_F77=yes
19635 hardcode_shlibpath_var_F77=no
19639 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19640 hardcode_direct_F77=yes
19641 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19642 hardcode_libdir_separator_F77=:
19643 hardcode_shlibpath_var_F77=no
19647 hardcode_direct_F77=yes
19648 hardcode_shlibpath_var_F77=no
19649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19650 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19651 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19652 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19653 export_dynamic_flag_spec_F77='${wl}-E'
19656 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19657 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19658 hardcode_libdir_flag_spec_F77='-R$libdir'
19661 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19662 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19669 hardcode_libdir_flag_spec_F77='-L$libdir'
19670 hardcode_minus_L_F77=yes
19671 allow_undefined_flag_F77=unsupported
19672 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'
19673 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19677 if test "$GCC" = yes; then
19678 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19679 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'
19681 allow_undefined_flag_F77=' -expect_unresolved \*'
19682 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'
19684 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19685 hardcode_libdir_separator_F77=:
19688 osf4* | osf5*) # as osf3* with the addition of -msym flag
19689 if test "$GCC" = yes; then
19690 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19691 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'
19692 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19694 allow_undefined_flag_F77=' -expect_unresolved \*'
19695 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'
19696 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~
19697 $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'
19699 # Both c and cxx compiler support -rpath directly
19700 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19702 hardcode_libdir_separator_F77=:
19706 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19707 hardcode_shlibpath_var_F77=no
19708 export_dynamic_flag_spec_F77='${wl}-Bexport'
19709 runpath_var=LD_RUN_PATH
19710 hardcode_runpath_var=yes
19714 no_undefined_flag_F77=' -z text'
19715 if test "$GCC" = yes; then
19716 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19717 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19718 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19720 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19721 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19722 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19724 hardcode_libdir_flag_spec_F77='-R$libdir'
19725 hardcode_shlibpath_var_F77=no
19727 solaris2.[0-5] | solaris2.[0-5].*) ;;
19728 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19729 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19731 link_all_deplibs_F77=yes
19735 if test "x$host_vendor" = xsequent; then
19736 # Use $CC to link under sequent, because it throws in some extra .o
19737 # files that make .init and .fini sections work.
19738 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19740 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19742 hardcode_libdir_flag_spec_F77='-L$libdir'
19743 hardcode_direct_F77=yes
19744 hardcode_minus_L_F77=yes
19745 hardcode_shlibpath_var_F77=no
19749 case $host_vendor in
19751 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19752 hardcode_direct_F77=yes # is this really true???
19755 ## LD is ld it makes a PLAMLIB
19756 ## CC just makes a GrossModule.
19757 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19758 reload_cmds_F77='$CC -r -o $output$reload_objs'
19759 hardcode_direct_F77=no
19762 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19763 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19766 runpath_var='LD_RUN_PATH'
19767 hardcode_shlibpath_var_F77=no
19771 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19772 hardcode_shlibpath_var_F77=no
19773 export_dynamic_flag_spec_F77='-Bexport'
19777 if test -d /usr/nec; then
19778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19779 hardcode_shlibpath_var_F77=no
19780 runpath_var=LD_RUN_PATH
19781 hardcode_runpath_var=yes
19787 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19788 hardcode_direct_F77=yes
19789 hardcode_minus_L_F77=no
19790 hardcode_shlibpath_var_F77=no
19791 hardcode_runpath_var=yes
19792 runpath_var=LD_RUN_PATH
19795 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19796 no_undefined_flag_F77='${wl}-z ${wl}text'
19797 if test "$GCC" = yes; then
19798 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19800 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19802 runpath_var='LD_RUN_PATH'
19803 hardcode_shlibpath_var_F77=no
19807 no_undefined_flag_F77=' -z text'
19808 # $CC -shared without GNU ld will not create a library from C++
19809 # object files and a static libstdc++, better avoid it by now
19810 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19811 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19812 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19813 hardcode_libdir_flag_spec_F77=
19814 hardcode_shlibpath_var_F77=no
19815 runpath_var='LD_RUN_PATH'
19819 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19820 hardcode_libdir_flag_spec_F77='-L$libdir'
19821 hardcode_shlibpath_var_F77=no
19830 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19831 echo "${ECHO_T}$ld_shlibs_F77" >&6
19832 test "$ld_shlibs_F77" = no && can_build_shared=no
19834 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19835 if test "$GCC" = yes; then
19836 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19840 # Do we need to explicitly link libc?
19842 case "x$archive_cmds_need_lc_F77" in
19844 # Assume -lc should be added
19845 archive_cmds_need_lc_F77=yes
19847 if test "$enable_shared" = yes && test "$GCC" = yes; then
19848 case $archive_cmds_F77 in
19850 # FIXME: we may have to deal with multi-command sequences.
19853 # Test whether the compiler implicitly links with -lc since on some
19854 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19855 # to ld, don't add -lc before -lgcc.
19856 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19857 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19862 (eval $ac_compile) 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } 2>conftest.err; then
19868 libobjs=conftest.$ac_objext
19870 wl=$lt_prog_compiler_wl_F77
19876 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19877 allow_undefined_flag_F77=
19878 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19879 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }
19884 archive_cmds_need_lc_F77=no
19886 archive_cmds_need_lc_F77=yes
19888 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19890 cat conftest.err 1>&5
19893 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19894 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19901 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19902 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19903 library_names_spec=
19904 libname_spec='lib$name'
19908 postuninstall_cmds=
19912 shlibpath_overrides_runpath=unknown
19914 dynamic_linker="$host_os ld.so"
19915 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19916 if test "$GCC" = yes; then
19917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19918 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19919 # if the path contains ";" then we assume it to be the separator
19920 # otherwise default to the standard path separator (i.e. ":") - it is
19921 # assumed that no part of a normal pathname contains ";" but that should
19922 # okay in the real world where ";" in dirpaths is itself problematic.
19923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19928 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19930 need_lib_prefix=unknown
19931 hardcode_into_libs=no
19933 # when you set need_version to no, make sure it does not cause -set_version
19934 # flags to be left without arguments
19935 need_version=unknown
19940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19941 shlibpath_var=LIBPATH
19943 # AIX 3 has no versioning support, so we append a major version to the name.
19944 soname_spec='${libname}${release}${shared_ext}$major'
19951 hardcode_into_libs=yes
19952 if test "$host_cpu" = ia64; then
19953 # AIX 5 supports IA64
19954 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19955 shlibpath_var=LD_LIBRARY_PATH
19957 # With GCC up to 2.95.x, collect2 would create an import file
19958 # for dependence libraries. The import file would start with
19959 # the line `#! .'. This would cause the generated library to
19960 # depend on `.', always an invalid library. This was fixed in
19961 # development snapshots of GCC prior to 3.0.
19963 aix4 | aix4.[01] | aix4.[01].*)
19964 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19966 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19969 can_build_shared=no
19973 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19974 # soname into executable. Probably we can add versioning support to
19975 # collect2, so additional links can be useful in future.
19976 if test "$aix_use_runtimelinking" = yes; then
19977 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19978 # instead of lib<name>.a to let people know that these are not
19979 # typical AIX shared libraries.
19980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19982 # We preserve .a as extension for shared libraries through AIX4.2
19983 # and later when we are not doing run time linking.
19984 library_names_spec='${libname}${release}.a $libname.a'
19985 soname_spec='${libname}${release}${shared_ext}$major'
19987 shlibpath_var=LIBPATH
19992 library_names_spec='$libname.ixlibrary $libname.a'
19993 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19994 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'
19998 library_names_spec='${libname}${shared_ext}'
19999 dynamic_linker="$host_os ld.so"
20000 shlibpath_var=LIBRARY_PATH
20006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20007 soname_spec='${libname}${release}${shared_ext}$major'
20008 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20009 shlibpath_var=LD_LIBRARY_PATH
20010 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20011 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20012 # the default ld.so.conf also contains /usr/contrib/lib and
20013 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20014 # libtool to hard-code these into programs
20017 cygwin* | mingw* | pw32*)
20018 version_type=windows
20023 case $GCC,$host_os in
20024 yes,cygwin* | yes,mingw* | yes,pw32*)
20025 library_names_spec='$libname.dll.a'
20026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20027 postinstall_cmds='base_file=`basename \${file}`~
20028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20029 dldir=$destdir/`dirname \$dlpath`~
20030 test -d \$dldir || mkdir -p \$dldir~
20031 $install_prog $dir/$dlname \$dldir/$dlname'
20032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20033 dlpath=$dir/\$dldll~
20035 shlibpath_overrides_runpath=yes
20039 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20040 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20041 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20044 # MinGW DLLs use traditional 'lib' prefix
20045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20046 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20047 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20048 # It is most probably a Windows format PATH printed by
20049 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20050 # path with ; separators, and with drive letters. We can handle the
20051 # drive letters (cygwin fileutils understands them), so leave them,
20052 # especially as we might pass files found there to a mingw objdump,
20053 # which wouldn't understand a cygwinified path. Ahh.
20054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20060 # pw32 DLLs use 'pw' prefix rather than 'lib'
20061 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20067 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20070 dynamic_linker='Win32 ld.exe'
20071 # FIXME: first we should search . and the directory the executable is in
20075 darwin* | rhapsody*)
20076 dynamic_linker="$host_os dyld"
20077 version_type=darwin
20080 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20081 soname_spec='${libname}${release}${major}$shared_ext'
20082 shlibpath_overrides_runpath=yes
20083 shlibpath_var=DYLD_LIBRARY_PATH
20084 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20085 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20086 if test "$GCC" = yes; then
20087 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"`
20089 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20091 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20099 soname_spec='${libname}${release}${shared_ext}$major'
20100 shlibpath_var=LD_LIBRARY_PATH
20111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20112 soname_spec='${libname}${release}${shared_ext}$major'
20113 shlibpath_var=LD_LIBRARY_PATH
20114 shlibpath_overrides_runpath=no
20115 hardcode_into_libs=yes
20116 dynamic_linker='GNU ld.so'
20120 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20121 version_type=freebsd-$objformat
20122 case $version_type in
20124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20133 shlibpath_var=LD_LIBRARY_PATH
20136 shlibpath_overrides_runpath=yes
20138 freebsd3.01* | freebsdelf3.01*)
20139 shlibpath_overrides_runpath=yes
20140 hardcode_into_libs=yes
20143 shlibpath_overrides_runpath=no
20144 hardcode_into_libs=yes
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20154 soname_spec='${libname}${release}${shared_ext}$major'
20155 shlibpath_var=LD_LIBRARY_PATH
20156 hardcode_into_libs=yes
20159 hpux9* | hpux10* | hpux11*)
20160 # Give a soname corresponding to the major version so that dld.sl refuses to
20161 # link against other versions.
20165 case "$host_cpu" in
20168 hardcode_into_libs=yes
20169 dynamic_linker="$host_os dld.so"
20170 shlibpath_var=LD_LIBRARY_PATH
20171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20173 soname_spec='${libname}${release}${shared_ext}$major'
20174 if test "X$HPUX_IA64_MODE" = X32; then
20175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20183 hardcode_into_libs=yes
20184 dynamic_linker="$host_os dld.sl"
20185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20188 soname_spec='${libname}${release}${shared_ext}$major'
20189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20194 dynamic_linker="$host_os dld.sl"
20195 shlibpath_var=SHLIB_PATH
20196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20198 soname_spec='${libname}${release}${shared_ext}$major'
20201 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20202 postinstall_cmds='chmod 555 $lib'
20205 irix5* | irix6* | nonstopux*)
20207 nonstopux*) version_type=nonstopux ;;
20209 if test "$lt_cv_prog_gnu_ld" = yes; then
20217 soname_spec='${libname}${release}${shared_ext}$major'
20218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20220 irix5* | nonstopux*)
20221 libsuff= shlibsuff=
20224 case $LD in # libtool.m4 will add one of these switches to LD
20225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20226 libsuff= shlibsuff= libmagic=32-bit;;
20227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20228 libsuff=32 shlibsuff=N32 libmagic=N32;;
20229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20231 *) libsuff= shlibsuff= libmagic=never-match;;
20235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20236 shlibpath_overrides_runpath=no
20237 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20238 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20239 hardcode_into_libs=yes
20242 # No shared lib support for Linux oldld, aout, or coff.
20243 linux*oldld* | linux*aout* | linux*coff*)
20247 # This must be Linux ELF.
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20253 soname_spec='${libname}${release}${shared_ext}$major'
20254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20255 shlibpath_var=LD_LIBRARY_PATH
20256 shlibpath_overrides_runpath=no
20257 # This implies no fast_install, which is unacceptable.
20258 # Some rework will be needed to allow for fast_install
20259 # before this can be enabled.
20260 hardcode_into_libs=yes
20262 # Append ld.so.conf contents to the search path
20263 if test -f /etc/ld.so.conf; then
20264 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20265 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20268 # We used to test for /lib/ld.so.1 and disable shared libraries on
20269 # powerpc, because MkLinux only supported shared libraries with the
20270 # GNU dynamic linker. Since this was broken with cross compilers,
20271 # most powerpc-linux boxes support dynamic linking these days and
20272 # people can always --disable-shared, the test was removed, and we
20273 # assume the GNU/Linux dynamic linker is in use.
20274 dynamic_linker='GNU/Linux ld.so'
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20282 soname_spec='${libname}${release}${shared_ext}$major'
20283 shlibpath_var=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath=no
20285 hardcode_into_libs=yes
20286 dynamic_linker='GNU ld.so'
20293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20296 dynamic_linker='NetBSD (a.out) ld.so'
20298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20299 soname_spec='${libname}${release}${shared_ext}$major'
20300 dynamic_linker='NetBSD ld.elf_so'
20302 shlibpath_var=LD_LIBRARY_PATH
20303 shlibpath_overrides_runpath=yes
20304 hardcode_into_libs=yes
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20310 shlibpath_var=LD_LIBRARY_PATH
20311 shlibpath_overrides_runpath=yes
20318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20319 soname_spec='${libname}${release}${shared_ext}$major'
20320 shlibpath_var=LD_LIBRARY_PATH
20321 shlibpath_overrides_runpath=yes
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20330 shlibpath_var=LD_LIBRARY_PATH
20331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20333 openbsd2.[89] | openbsd2.[89].*)
20334 shlibpath_overrides_runpath=no
20337 shlibpath_overrides_runpath=yes
20341 shlibpath_overrides_runpath=yes
20346 libname_spec='$name'
20349 library_names_spec='$libname${shared_ext} $libname.a'
20350 dynamic_linker='OS/2 ld.exe'
20351 shlibpath_var=LIBPATH
20354 osf3* | osf4* | osf5*)
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20367 soname_spec='${libname}${release}${shared_ext}$major'
20368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20369 shlibpath_var=LD_LIBRARY_PATH
20376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20377 soname_spec='${libname}${release}${shared_ext}$major'
20378 shlibpath_var=LD_LIBRARY_PATH
20379 shlibpath_overrides_runpath=yes
20380 hardcode_into_libs=yes
20381 # ldd complains unless libraries are executable
20382 postinstall_cmds='chmod +x $lib'
20387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20388 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20389 shlibpath_var=LD_LIBRARY_PATH
20390 shlibpath_overrides_runpath=yes
20391 if test "$with_gnu_ld" = yes; then
20397 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 case $host_vendor in
20404 shlibpath_overrides_runpath=no
20406 export_dynamic_flag_spec='${wl}-Blargedynsym'
20407 runpath_var=LD_RUN_PATH
20415 shlibpath_overrides_runpath=no
20416 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20422 if test -d /usr/nec ;then
20424 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20425 soname_spec='$libname${shared_ext}.$major'
20426 shlibpath_var=LD_LIBRARY_PATH
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433 soname_spec='${libname}${release}${shared_ext}$major'
20434 shlibpath_var=LD_LIBRARY_PATH
20441 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20442 echo "${ECHO_T}$dynamic_linker" >&6
20443 test "$dynamic_linker" = no && can_build_shared=no
20445 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20447 hardcode_action_F77=
20448 if test -n "$hardcode_libdir_flag_spec_F77" || \
20449 test -n "$runpath_var_F77" || \
20450 test "X$hardcode_automatic_F77" = "Xyes" ; then
20452 # We can hardcode non-existant directories.
20453 if test "$hardcode_direct_F77" != no &&
20454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20455 # have to relink, otherwise we might link with an installed library
20456 # when we should be linking with a yet-to-be-installed one
20457 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20458 test "$hardcode_minus_L_F77" != no; then
20459 # Linking always hardcodes the temporary library directory.
20460 hardcode_action_F77=relink
20462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20463 hardcode_action_F77=immediate
20466 # We cannot hardcode anything, or else we can only hardcode existing
20468 hardcode_action_F77=unsupported
20470 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20471 echo "${ECHO_T}$hardcode_action_F77" >&6
20473 if test "$hardcode_action_F77" = relink; then
20474 # Fast installation is not supported
20475 enable_fast_install=no
20476 elif test "$shlibpath_overrides_runpath" = yes ||
20477 test "$enable_shared" = no; then
20478 # Fast installation is not necessary
20479 enable_fast_install=needless
20484 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20485 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20486 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20487 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20488 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20489 echo "$as_me:$LINENO: result: yes" >&5
20490 echo "${ECHO_T}yes" >&6
20492 # FIXME - insert some real tests, host_os isn't really good enough
20495 if test -n "$STRIP" ; then
20496 striplib="$STRIP -x"
20497 echo "$as_me:$LINENO: result: yes" >&5
20498 echo "${ECHO_T}yes" >&6
20500 echo "$as_me:$LINENO: result: no" >&5
20501 echo "${ECHO_T}no" >&6
20505 echo "$as_me:$LINENO: result: no" >&5
20506 echo "${ECHO_T}no" >&6
20513 # The else clause should only fire when bootstrapping the
20514 # libtool distribution, otherwise you forgot to ship ltmain.sh
20515 # with your package, and you will get complaints that there are
20516 # no rules to generate ltmain.sh.
20517 if test -f "$ltmain"; then
20518 # See if we are running on zsh, and set the options which allow our commands through
20519 # without removal of \ escapes.
20520 if test -n "${ZSH_VERSION+set}" ; then
20521 setopt NO_GLOB_SUBST
20523 # Now quote all the things that may contain metacharacters while being
20524 # careful not to overquote the AC_SUBSTed values. We take copies of the
20525 # variables and quote the copies for generation of the libtool script.
20526 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20528 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20529 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20530 deplibs_check_method reload_flag reload_cmds need_locks \
20531 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20532 lt_cv_sys_global_symbol_to_c_name_address \
20533 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20534 old_postinstall_cmds old_postuninstall_cmds \
20538 lt_prog_compiler_wl_F77 \
20539 lt_prog_compiler_pic_F77 \
20540 lt_prog_compiler_static_F77 \
20541 lt_prog_compiler_no_builtin_flag_F77 \
20542 export_dynamic_flag_spec_F77 \
20543 thread_safe_flag_spec_F77 \
20544 whole_archive_flag_spec_F77 \
20545 enable_shared_with_static_runtimes_F77 \
20546 old_archive_cmds_F77 \
20547 old_archive_from_new_cmds_F77 \
20548 predep_objects_F77 \
20549 postdep_objects_F77 \
20552 compiler_lib_search_path_F77 \
20554 archive_expsym_cmds_F77 \
20555 postinstall_cmds_F77 \
20556 postuninstall_cmds_F77 \
20557 old_archive_from_expsyms_cmds_F77 \
20558 allow_undefined_flag_F77 \
20559 no_undefined_flag_F77 \
20560 export_symbols_cmds_F77 \
20561 hardcode_libdir_flag_spec_F77 \
20562 hardcode_libdir_flag_spec_ld_F77 \
20563 hardcode_libdir_separator_F77 \
20564 hardcode_automatic_F77 \
20566 module_expsym_cmds_F77 \
20567 lt_cv_prog_compiler_c_o_F77 \
20568 exclude_expsyms_F77 \
20569 include_expsyms_F77; do
20572 old_archive_cmds_F77 | \
20573 old_archive_from_new_cmds_F77 | \
20574 archive_cmds_F77 | \
20575 archive_expsym_cmds_F77 | \
20576 module_cmds_F77 | \
20577 module_expsym_cmds_F77 | \
20578 old_archive_from_expsyms_cmds_F77 | \
20579 export_symbols_cmds_F77 | \
20580 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20581 postinstall_cmds | postuninstall_cmds | \
20582 old_postinstall_cmds | old_postuninstall_cmds | \
20583 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20584 # Double-quote double-evaled strings.
20585 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20594 *'\$0 --fallback-echo"')
20595 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20601 cat <<__EOF__ >> "$cfgfile"
20602 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20604 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20606 # Shell to use when invoking shell scripts.
20609 # Whether or not to build shared libraries.
20610 build_libtool_libs=$enable_shared
20612 # Whether or not to build static libraries.
20613 build_old_libs=$enable_static
20615 # Whether or not to add -lc for building shared libraries.
20616 build_libtool_need_lc=$archive_cmds_need_lc_F77
20618 # Whether or not to disallow shared libs when runtime libs are static
20619 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20621 # Whether or not to optimize for fast installation.
20622 fast_install=$enable_fast_install
20625 host_alias=$host_alias
20628 # An echo program that does not interpret backslashes.
20633 AR_FLAGS=$lt_AR_FLAGS
20638 # A language-specific compiler.
20639 CC=$lt_compiler_F77
20641 # Is the compiler the GNU C compiler?
20647 # The linker used to build libraries.
20650 # Whether we need hard or soft links.
20653 # A BSD-compatible nm program.
20656 # A symbol stripping program
20659 # Used to examine libraries when file_magic_cmd begins "file"
20660 MAGIC_CMD=$MAGIC_CMD
20662 # Used on cygwin: DLL creation program.
20665 # Used on cygwin: object dumper.
20668 # Used on cygwin: assembler.
20671 # The name of the directory that contains temporary libtool files.
20674 # How to create reloadable object files.
20675 reload_flag=$lt_reload_flag
20676 reload_cmds=$lt_reload_cmds
20678 # How to pass a linker flag through the compiler.
20679 wl=$lt_lt_prog_compiler_wl_F77
20681 # Object file suffix (normally "o").
20682 objext="$ac_objext"
20684 # Old archive suffix (normally "a").
20687 # Shared library suffix (normally ".so").
20688 shrext_cmds='$shrext_cmds'
20690 # Executable file suffix (normally "").
20693 # Additional compiler flags for building library objects.
20694 pic_flag=$lt_lt_prog_compiler_pic_F77
20697 # What is the maximum length of a command?
20698 max_cmd_len=$lt_cv_sys_max_cmd_len
20700 # Does compiler simultaneously support -c and -o options?
20701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20703 # Must we lock files when doing compilation ?
20704 need_locks=$lt_need_locks
20706 # Do we need the lib prefix for modules?
20707 need_lib_prefix=$need_lib_prefix
20709 # Do we need a version for libraries?
20710 need_version=$need_version
20712 # Whether dlopen is supported.
20713 dlopen_support=$enable_dlopen
20715 # Whether dlopen of programs is supported.
20716 dlopen_self=$enable_dlopen_self
20718 # Whether dlopen of statically linked programs is supported.
20719 dlopen_self_static=$enable_dlopen_self_static
20721 # Compiler flag to prevent dynamic linking.
20722 link_static_flag=$lt_lt_prog_compiler_static_F77
20724 # Compiler flag to turn off builtin functions.
20725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20727 # Compiler flag to allow reflexive dlopens.
20728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20730 # Compiler flag to generate shared objects directly from archives.
20731 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20733 # Compiler flag to generate thread-safe objects.
20734 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20736 # Library versioning type.
20737 version_type=$version_type
20739 # Format of library name prefix.
20740 libname_spec=$lt_libname_spec
20742 # List of archive names. First name is the real one, the rest are links.
20743 # The last name is the one that the linker finds with -lNAME.
20744 library_names_spec=$lt_library_names_spec
20746 # The coded name of the library, if different from the real name.
20747 soname_spec=$lt_soname_spec
20749 # Commands used to build and install an old-style archive.
20751 old_archive_cmds=$lt_old_archive_cmds_F77
20752 old_postinstall_cmds=$lt_old_postinstall_cmds
20753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20755 # Create an old-style archive from a shared archive.
20756 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20758 # Create a temporary old-style archive to link instead of a shared archive.
20759 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20761 # Commands used to build and install a shared archive.
20762 archive_cmds=$lt_archive_cmds_F77
20763 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20764 postinstall_cmds=$lt_postinstall_cmds
20765 postuninstall_cmds=$lt_postuninstall_cmds
20767 # Commands used to build a loadable module (assumed same as above if empty)
20768 module_cmds=$lt_module_cmds_F77
20769 module_expsym_cmds=$lt_module_expsym_cmds_F77
20771 # Commands to strip libraries.
20772 old_striplib=$lt_old_striplib
20773 striplib=$lt_striplib
20775 # Dependencies to place before the objects being linked to create a
20777 predep_objects=$lt_predep_objects_F77
20779 # Dependencies to place after the objects being linked to create a
20781 postdep_objects=$lt_postdep_objects_F77
20783 # Dependencies to place before the objects being linked to create a
20785 predeps=$lt_predeps_F77
20787 # Dependencies to place after the objects being linked to create a
20789 postdeps=$lt_postdeps_F77
20791 # The library search path used internally by the compiler when linking
20792 # a shared library.
20793 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20795 # Method to check whether dependent libraries are shared objects.
20796 deplibs_check_method=$lt_deplibs_check_method
20798 # Command to use when deplibs_check_method == file_magic.
20799 file_magic_cmd=$lt_file_magic_cmd
20801 # Flag that allows shared libraries with undefined symbols to be built.
20802 allow_undefined_flag=$lt_allow_undefined_flag_F77
20804 # Flag that forces no undefined symbols.
20805 no_undefined_flag=$lt_no_undefined_flag_F77
20807 # Commands used to finish a libtool library installation in a directory.
20808 finish_cmds=$lt_finish_cmds
20810 # Same as above, but a single script fragment to be evaled but not shown.
20811 finish_eval=$lt_finish_eval
20813 # Take the output of nm and produce a listing of raw symbols and C names.
20814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20816 # Transform the output of nm in a proper C declaration
20817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20819 # Transform the output of nm in a C name address pair
20820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20822 # This is the shared library runtime path variable.
20823 runpath_var=$runpath_var
20825 # This is the shared library path variable.
20826 shlibpath_var=$shlibpath_var
20828 # Is shlibpath searched before the hard-coded library search path?
20829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20831 # How to hardcode a shared library path into an executable.
20832 hardcode_action=$hardcode_action_F77
20834 # Whether we should hardcode library paths into libraries.
20835 hardcode_into_libs=$hardcode_into_libs
20837 # Flag to hardcode \$libdir into a binary during linking.
20838 # This must work even if \$libdir does not exist.
20839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20841 # If ld is used when linking, flag to hardcode \$libdir into
20842 # a binary during linking. This must work even if \$libdir does
20844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20846 # Whether we need a single -rpath flag with a separated argument.
20847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20850 # resulting binary.
20851 hardcode_direct=$hardcode_direct_F77
20853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20854 # resulting binary.
20855 hardcode_minus_L=$hardcode_minus_L_F77
20857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20858 # the resulting binary.
20859 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20861 # Set to yes if building a shared library automatically hardcodes DIR into the library
20862 # and all subsequent libraries and executables linked against it.
20863 hardcode_automatic=$hardcode_automatic_F77
20865 # Variables whose values should be saved in libtool wrapper scripts and
20866 # restored at relink time.
20867 variables_saved_for_relink="$variables_saved_for_relink"
20869 # Whether libtool must link a program against all its dependency libraries.
20870 link_all_deplibs=$link_all_deplibs_F77
20872 # Compile-time system search path for libraries
20873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20875 # Run-time system search path for libraries
20876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20878 # Fix the shell variable \$srcfile for the compiler.
20879 fix_srcfile_path="$fix_srcfile_path_F77"
20881 # Set to yes if exported symbols are required.
20882 always_export_symbols=$always_export_symbols_F77
20884 # The commands to list exported symbols.
20885 export_symbols_cmds=$lt_export_symbols_cmds_F77
20887 # The commands to extract the exported symbol list from a shared archive.
20888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20890 # Symbols that should not be listed in the preloaded symbols.
20891 exclude_expsyms=$lt_exclude_expsyms_F77
20893 # Symbols that must always be exported.
20894 include_expsyms=$lt_include_expsyms_F77
20896 # ### END LIBTOOL TAG CONFIG: $tagname
20902 # If there is no Makefile yet, we rely on a make rule to execute
20903 # `config.status --recheck' to rerun these tests and create the
20904 # libtool script then.
20905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20906 if test -f "$ltmain_in"; then
20907 test -f Makefile && make "$ltmain"
20913 ac_cpp='$CPP $CPPFLAGS'
20914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20926 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20928 ac_cpp='$CPP $CPPFLAGS'
20929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20934 # Source file extension for Java test sources.
20937 # Object file extension for compiled Java test sources.
20941 # Code to be used in simple compile tests
20942 lt_simple_compile_test_code="class foo {}\n"
20944 # Code to be used in simple link tests
20945 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20947 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20949 # If no C compiler was specified, use CC.
20952 # Allow CC to be a program name with arguments.
20956 # Allow CC to be a program name with arguments.
20962 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20963 archive_cmds_need_lc_GCJ=no
20966 lt_prog_compiler_no_builtin_flag_GCJ=
20968 if test "$GCC" = yes; then
20969 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20972 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20973 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20974 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20977 lt_cv_prog_compiler_rtti_exceptions=no
20978 ac_outfile=conftest.$ac_objext
20979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20980 lt_compiler_flag="-fno-rtti -fno-exceptions"
20981 # Insert the option either (1) after the last *FLAGS variable, or
20982 # (2) before a word containing "conftest.", or (3) at the end.
20983 # Note that $ac_compile itself does not contain backslashes and begins
20984 # with a dollar sign (not a hyphen), so the echo should work correctly.
20985 # The option is referenced via a variable to avoid confusing sed.
20986 lt_compile=`echo "$ac_compile" | $SED \
20987 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20989 -e 's:$: $lt_compiler_flag:'`
20990 (eval echo "\"\$as_me:20990: $lt_compile\"" >&5)
20991 (eval "$lt_compile" 2>conftest.err)
20993 cat conftest.err >&5
20994 echo "$as_me:20994: \$? = $ac_status" >&5
20995 if (exit $ac_status) && test -s "$ac_outfile"; then
20996 # The compiler can only warn and ignore the option if not recognized
20997 # So say no if there are warnings
20998 if test ! -s conftest.err; then
20999 lt_cv_prog_compiler_rtti_exceptions=yes
21005 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21006 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21008 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21009 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21016 lt_prog_compiler_wl_GCJ=
21017 lt_prog_compiler_pic_GCJ=
21018 lt_prog_compiler_static_GCJ=
21020 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21021 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21023 if test "$GCC" = yes; then
21024 lt_prog_compiler_wl_GCJ='-Wl,'
21025 lt_prog_compiler_static_GCJ='-static'
21029 # All AIX code is PIC.
21030 if test "$host_cpu" = ia64; then
21031 # AIX 5 now supports IA64 processor
21032 lt_prog_compiler_static_GCJ='-Bstatic'
21037 # FIXME: we need at least 68020 code to build shared libraries, but
21038 # adding the `-m68020' flag to GCC prevents building anything better,
21040 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21043 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21044 # PIC is the default for these OSes.
21047 mingw* | pw32* | os2*)
21048 # This hack is so that the source file can tell whether it is being
21049 # built for inclusion in a dll (and should export symbols for example).
21050 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21053 darwin* | rhapsody*)
21054 # PIC is the default on this platform
21055 # Common symbols not allowed in MH_DYLIB files
21056 lt_prog_compiler_pic_GCJ='-fno-common'
21060 # Just because we use GCC doesn't mean we suddenly get shared libraries
21061 # on systems that don't support them.
21062 lt_prog_compiler_can_build_shared_GCJ=no
21067 if test -d /usr/nec; then
21068 lt_prog_compiler_pic_GCJ=-Kconform_pic
21073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21074 # not for PA HP-UX.
21075 case "$host_cpu" in
21080 lt_prog_compiler_pic_GCJ='-fPIC'
21086 lt_prog_compiler_pic_GCJ='-fPIC'
21090 # PORTME Check for flag to pass linker flags through the system compiler.
21093 lt_prog_compiler_wl_GCJ='-Wl,'
21094 if test "$host_cpu" = ia64; then
21095 # AIX 5 now supports IA64 processor
21096 lt_prog_compiler_static_GCJ='-Bstatic'
21098 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21102 # PIC is the default on this platform
21103 # Common symbols not allowed in MH_DYLIB files
21104 case "$cc_basename" in
21106 lt_prog_compiler_pic_GCJ='-qnocommon'
21107 lt_prog_compiler_wl_GCJ='-Wl,'
21112 mingw* | pw32* | os2*)
21113 # This hack is so that the source file can tell whether it is being
21114 # built for inclusion in a dll (and should export symbols for example).
21115 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21118 hpux9* | hpux10* | hpux11*)
21119 lt_prog_compiler_wl_GCJ='-Wl,'
21120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21121 # not for PA HP-UX.
21122 case "$host_cpu" in
21127 lt_prog_compiler_pic_GCJ='+Z'
21130 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21131 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21134 irix5* | irix6* | nonstopux*)
21135 lt_prog_compiler_wl_GCJ='-Wl,'
21136 # PIC (with -KPIC) is the default.
21137 lt_prog_compiler_static_GCJ='-non_shared'
21141 lt_prog_compiler_pic_GCJ='-KPIC'
21142 lt_prog_compiler_static_GCJ='-Bstatic'
21148 lt_prog_compiler_wl_GCJ='-Wl,'
21149 lt_prog_compiler_pic_GCJ='-KPIC'
21150 lt_prog_compiler_static_GCJ='-static'
21153 lt_prog_compiler_wl_GCJ='-Wl,'
21154 # All Alpha code is PIC.
21155 lt_prog_compiler_static_GCJ='-non_shared'
21160 osf3* | osf4* | osf5*)
21161 lt_prog_compiler_wl_GCJ='-Wl,'
21162 # All OSF/1 code is PIC.
21163 lt_prog_compiler_static_GCJ='-non_shared'
21167 lt_prog_compiler_pic_GCJ='-Kpic'
21168 lt_prog_compiler_static_GCJ='-dn'
21172 lt_prog_compiler_wl_GCJ='-Wl,'
21173 lt_prog_compiler_pic_GCJ='-KPIC'
21174 lt_prog_compiler_static_GCJ='-Bstatic'
21178 lt_prog_compiler_wl_GCJ='-Qoption ld '
21179 lt_prog_compiler_pic_GCJ='-PIC'
21180 lt_prog_compiler_static_GCJ='-Bstatic'
21183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21184 lt_prog_compiler_wl_GCJ='-Wl,'
21185 lt_prog_compiler_pic_GCJ='-KPIC'
21186 lt_prog_compiler_static_GCJ='-Bstatic'
21190 if test -d /usr/nec ;then
21191 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21192 lt_prog_compiler_static_GCJ='-Bstatic'
21197 lt_prog_compiler_pic_GCJ='-pic'
21198 lt_prog_compiler_static_GCJ='-Bstatic'
21202 lt_prog_compiler_can_build_shared_GCJ=no
21207 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21208 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21211 # Check to make sure the PIC flag actually works.
21213 if test -n "$lt_prog_compiler_pic_GCJ"; then
21215 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21216 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21217 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 lt_prog_compiler_pic_works_GCJ=no
21221 ac_outfile=conftest.$ac_objext
21222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21223 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21224 # Insert the option either (1) after the last *FLAGS variable, or
21225 # (2) before a word containing "conftest.", or (3) at the end.
21226 # Note that $ac_compile itself does not contain backslashes and begins
21227 # with a dollar sign (not a hyphen), so the echo should work correctly.
21228 # The option is referenced via a variable to avoid confusing sed.
21229 lt_compile=`echo "$ac_compile" | $SED \
21230 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21232 -e 's:$: $lt_compiler_flag:'`
21233 (eval echo "\"\$as_me:21233: $lt_compile\"" >&5)
21234 (eval "$lt_compile" 2>conftest.err)
21236 cat conftest.err >&5
21237 echo "$as_me:21237: \$? = $ac_status" >&5
21238 if (exit $ac_status) && test -s "$ac_outfile"; then
21239 # The compiler can only warn and ignore the option if not recognized
21240 # So say no if there are warnings
21241 if test ! -s conftest.err; then
21242 lt_prog_compiler_pic_works_GCJ=yes
21248 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21249 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21251 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21252 case $lt_prog_compiler_pic_GCJ in
21254 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21257 lt_prog_compiler_pic_GCJ=
21258 lt_prog_compiler_can_build_shared_GCJ=no
21263 # For platforms which do not support PIC, -DPIC is meaningless:
21265 lt_prog_compiler_pic_GCJ=
21268 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21272 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21273 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21274 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 lt_cv_prog_compiler_c_o_GCJ=no
21278 $rm -r conftest 2>/dev/null
21282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21284 lt_compiler_flag="-o out/conftest2.$ac_objext"
21285 # Insert the option either (1) after the last *FLAGS variable, or
21286 # (2) before a word containing "conftest.", or (3) at the end.
21287 # Note that $ac_compile itself does not contain backslashes and begins
21288 # with a dollar sign (not a hyphen), so the echo should work correctly.
21289 lt_compile=`echo "$ac_compile" | $SED \
21290 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21292 -e 's:$: $lt_compiler_flag:'`
21293 (eval echo "\"\$as_me:21293: $lt_compile\"" >&5)
21294 (eval "$lt_compile" 2>out/conftest.err)
21296 cat out/conftest.err >&5
21297 echo "$as_me:21297: \$? = $ac_status" >&5
21298 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21300 # The compiler can only warn and ignore the option if not recognized
21301 # So say no if there are warnings
21302 if test ! -s out/conftest.err; then
21303 lt_cv_prog_compiler_c_o_GCJ=yes
21308 # SGI C++ compiler will create directory out/ii_files/ for
21309 # template instantiation
21310 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21311 $rm out/* && rmdir out
21317 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21318 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21321 hard_links="nottested"
21322 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21323 # do not overwrite the value of need_locks provided by the user
21324 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21325 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21330 ln conftest.a conftest.b 2>&5 || hard_links=no
21331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21332 echo "$as_me:$LINENO: result: $hard_links" >&5
21333 echo "${ECHO_T}$hard_links" >&6
21334 if test "$hard_links" = no; then
21335 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21336 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21343 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21344 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21347 allow_undefined_flag_GCJ=
21348 enable_shared_with_static_runtimes_GCJ=no
21350 archive_expsym_cmds_GCJ=
21351 old_archive_From_new_cmds_GCJ=
21352 old_archive_from_expsyms_cmds_GCJ=
21353 export_dynamic_flag_spec_GCJ=
21354 whole_archive_flag_spec_GCJ=
21355 thread_safe_flag_spec_GCJ=
21356 hardcode_libdir_flag_spec_GCJ=
21357 hardcode_libdir_flag_spec_ld_GCJ=
21358 hardcode_libdir_separator_GCJ=
21359 hardcode_direct_GCJ=no
21360 hardcode_minus_L_GCJ=no
21361 hardcode_shlibpath_var_GCJ=unsupported
21362 link_all_deplibs_GCJ=unknown
21363 hardcode_automatic_GCJ=no
21365 module_expsym_cmds_GCJ=
21366 always_export_symbols_GCJ=no
21367 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21368 # include_expsyms should be a list of space-separated symbols to be *always*
21369 # included in the symbol list
21370 include_expsyms_GCJ=
21371 # exclude_expsyms can be an extended regexp of symbols to exclude
21372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21374 # as well as any symbol that contains `d'.
21375 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21377 # platforms (ab)use it in PIC code, but their linkers get confused if
21378 # the symbol is explicitly referenced. Since portable code cannot
21379 # rely on this symbol name, it's probably fine to never include it in
21380 # preloaded symbol tables.
21381 extract_expsyms_cmds=
21384 cygwin* | mingw* | pw32*)
21385 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21386 # When not using gcc, we currently assume that we are using
21387 # Microsoft Visual C++.
21388 if test "$GCC" != yes; then
21398 if test "$with_gnu_ld" = yes; then
21399 # If archive_cmds runs LD, not CC, wlarc should be empty
21402 # See if GNU ld supports shared libraries.
21404 aix3* | aix4* | aix5*)
21405 # On AIX/PPC, the GNU linker is very broken
21406 if test "$host_cpu" != ia64; then
21410 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21411 *** to be unable to reliably create shared libraries on AIX.
21412 *** Therefore, libtool is disabling shared libraries support. If you
21413 *** really care for shared libraries, you may want to modify your PATH
21414 *** so that a non-GNU linker is found, and then restart.
21421 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)'
21422 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21423 hardcode_minus_L_GCJ=yes
21425 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21426 # that the semantics of dynamic libraries on AmigaOS, at least up
21427 # to version 4, is to share data among multiple programs linked
21428 # with the same dynamic library. Since this doesn't match the
21429 # behavior of shared libraries on other platforms, we can't use
21435 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21436 allow_undefined_flag_GCJ=unsupported
21437 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21438 # support --undefined. This deserves some investigation. FIXME
21439 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21445 cygwin* | mingw* | pw32*)
21446 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21447 # as there is no search path for DLLs.
21448 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21449 allow_undefined_flag_GCJ=unsupported
21450 always_export_symbols_GCJ=no
21451 enable_shared_with_static_runtimes_GCJ=yes
21452 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21454 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21455 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21456 # If the export-symbols file already is a .def file (1st line
21457 # is EXPORTS), use it as is; otherwise, prepend...
21458 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21459 cp $export_symbols $output_objdir/$soname.def;
21461 echo EXPORTS > $output_objdir/$soname.def;
21462 cat $export_symbols >> $output_objdir/$soname.def;
21464 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21472 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21475 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21476 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21481 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21485 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21486 *** create shared libraries on Solaris systems. Therefore, libtool
21487 *** is disabling shared libraries support. We urge you to upgrade GNU
21488 *** binutils to release 2.9.1 or newer. Another option is to modify
21489 *** your PATH or compiler configuration so that the native linker is
21490 *** used, and then restart.
21493 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21494 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21495 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21502 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21504 hardcode_direct_GCJ=yes
21505 hardcode_shlibpath_var_GCJ=no
21509 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21510 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21511 archive_cmds_GCJ="$tmp_archive_cmds"
21512 supports_anon_versioning=no
21513 case `$LD -v 2>/dev/null` in
21514 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21515 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21516 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21517 *\ 2.11.*) ;; # other 2.11 versions
21518 *) supports_anon_versioning=yes ;;
21520 if test $supports_anon_versioning = yes; then
21521 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21523 $echo "local: *; };" >> $output_objdir/$libname.ver~
21524 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21526 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21535 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21536 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21543 if test "$ld_shlibs_GCJ" = yes; then
21544 runpath_var=LD_RUN_PATH
21545 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21546 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21547 # ancient GNU ld didn't support --whole-archive et. al.
21548 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21549 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21551 whole_archive_flag_spec_GCJ=
21555 # PORTME fill in a description of your system's linker (not GNU ld)
21558 allow_undefined_flag_GCJ=unsupported
21559 always_export_symbols_GCJ=yes
21560 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'
21561 # Note: this linker hardcodes the directories in LIBPATH if there
21562 # are no directories specified by -L.
21563 hardcode_minus_L_GCJ=yes
21564 if test "$GCC" = yes && test -z "$link_static_flag"; then
21565 # Neither direct hardcoding nor static linking is supported with a
21567 hardcode_direct_GCJ=unsupported
21572 if test "$host_cpu" = ia64; then
21573 # On IA64, the linker does run time linking by default, so we don't
21574 # have to do anything special.
21575 aix_use_runtimelinking=no
21576 exp_sym_flag='-Bexport'
21579 # If we're using GNU nm, then we don't want the "-C" option.
21580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21581 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21582 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'
21584 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'
21586 aix_use_runtimelinking=no
21588 # Test if we are trying to use run time linking or normal
21589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21590 # need to do runtime linking.
21591 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21592 for ld_flag in $LDFLAGS; do
21593 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21594 aix_use_runtimelinking=yes
21600 exp_sym_flag='-bexport'
21601 no_entry_flag='-bnoentry'
21604 # When large executables or shared objects are built, AIX ld can
21605 # have problems creating the table of contents. If linking a library
21606 # or program results in "error TOC overflow" add -mminimal-toc to
21607 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21608 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21610 archive_cmds_GCJ=''
21611 hardcode_direct_GCJ=yes
21612 hardcode_libdir_separator_GCJ=':'
21613 link_all_deplibs_GCJ=yes
21615 if test "$GCC" = yes; then
21616 case $host_os in aix4.012|aix4.012.*)
21617 # We only want to do this on AIX 4.2 and lower, the check
21618 # below for broken collect2 doesn't work under 4.3+
21619 collect2name=`${CC} -print-prog-name=collect2`
21620 if test -f "$collect2name" && \
21621 strings "$collect2name" | grep resolve_lib_name >/dev/null
21623 # We have reworked collect2
21624 hardcode_direct_GCJ=yes
21626 # We have old collect2
21627 hardcode_direct_GCJ=unsupported
21628 # It fails to find uninstalled libraries when the uninstalled
21629 # path is not listed in the libpath. Setting hardcode_minus_L
21630 # to unsupported forces relinking
21631 hardcode_minus_L_GCJ=yes
21632 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21633 hardcode_libdir_separator_GCJ=
21636 shared_flag='-shared'
21639 if test "$host_cpu" = ia64; then
21640 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21641 # chokes on -Wl,-G. The following line is correct:
21644 if test "$aix_use_runtimelinking" = yes; then
21645 shared_flag='${wl}-G'
21647 shared_flag='${wl}-bM:SRE'
21652 # It seems that -bexpall does not export symbols beginning with
21653 # underscore (_), so it is better to generate a list of symbols to export.
21654 always_export_symbols_GCJ=yes
21655 if test "$aix_use_runtimelinking" = yes; then
21656 # Warning - without using the other runtime loading flags (-brtl),
21657 # -berok will link without error, but may produce a broken library.
21658 allow_undefined_flag_GCJ='-berok'
21659 # Determine the default libpath from the value encoded in an empty executable.
21660 cat >conftest.$ac_ext <<_ACEOF
21663 cat confdefs.h >>conftest.$ac_ext
21664 cat >>conftest.$ac_ext <<_ACEOF
21665 /* end confdefs.h. */
21675 rm -f conftest.$ac_objext conftest$ac_exeext
21676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21677 (eval $ac_link) 2>conftest.er1
21679 grep -v '^ *+' conftest.er1 >conftest.err
21681 cat conftest.err >&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); } &&
21684 { ac_try='test -z "$ac_c_werror_flag"
21685 || test ! -s conftest.err'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; } &&
21691 { ac_try='test -s conftest$ac_exeext'
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; }; then
21698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21700 # Check for a 64-bit object if we didn't find anything.
21701 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; }
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21708 rm -f conftest.err conftest.$ac_objext \
21709 conftest$ac_exeext conftest.$ac_ext
21710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21712 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21713 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"
21715 if test "$host_cpu" = ia64; then
21716 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21717 allow_undefined_flag_GCJ="-z nodefs"
21718 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"
21720 # Determine the default libpath from the value encoded in an empty executable.
21721 cat >conftest.$ac_ext <<_ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21736 rm -f conftest.$ac_objext conftest$ac_exeext
21737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21738 (eval $ac_link) 2>conftest.er1
21740 grep -v '^ *+' conftest.er1 >conftest.err
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } &&
21745 { ac_try='test -z "$ac_c_werror_flag"
21746 || test ! -s conftest.err'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; } &&
21752 { ac_try='test -s conftest$ac_exeext'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }; then
21759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21761 # Check for a 64-bit object if we didn't find anything.
21762 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; }
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21769 rm -f conftest.err conftest.$ac_objext \
21770 conftest$ac_exeext conftest.$ac_ext
21771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21773 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21774 # Warning - without using the other run time loading flags,
21775 # -berok will link without error, but may produce a broken library.
21776 no_undefined_flag_GCJ=' ${wl}-bernotok'
21777 allow_undefined_flag_GCJ=' ${wl}-berok'
21778 # -bexpall does not export symbols beginning with underscore (_)
21779 always_export_symbols_GCJ=yes
21780 # Exported symbols can be pulled into shared objects from archives
21781 whole_archive_flag_spec_GCJ=' '
21782 archive_cmds_need_lc_GCJ=yes
21783 # This is similar to how AIX traditionally builds it's shared libraries.
21784 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'
21790 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)'
21791 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21792 hardcode_minus_L_GCJ=yes
21793 # see comment about different semantics on the GNU ld section
21798 export_dynamic_flag_spec_GCJ=-rdynamic
21801 cygwin* | mingw* | pw32*)
21802 # When not using gcc, we currently assume that we are using
21803 # Microsoft Visual C++.
21804 # hardcode_libdir_flag_spec is actually meaningless, as there is
21805 # no search path for DLLs.
21806 hardcode_libdir_flag_spec_GCJ=' '
21807 allow_undefined_flag_GCJ=unsupported
21808 # Tell ltmain to make .lib files, not .a files.
21810 # Tell ltmain to make .dll files, not .so files.
21812 # FIXME: Setting linknames here is a bad hack.
21813 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21814 # The linker will automatically build a .lib file if we build a DLL.
21815 old_archive_From_new_cmds_GCJ='true'
21816 # FIXME: Should let the user specify the lib program.
21817 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21818 fix_srcfile_path='`cygpath -w "$srcfile"`'
21819 enable_shared_with_static_runtimes_GCJ=yes
21822 darwin* | rhapsody*)
21824 rhapsody* | darwin1.[012])
21825 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21828 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21829 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21831 case ${MACOSX_DEPLOYMENT_TARGET} in
21833 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21836 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21842 archive_cmds_need_lc_GCJ=no
21843 hardcode_direct_GCJ=no
21844 hardcode_automatic_GCJ=yes
21845 hardcode_shlibpath_var_GCJ=unsupported
21846 whole_archive_flag_spec_GCJ=''
21847 link_all_deplibs_GCJ=yes
21848 if test "$GCC" = yes ; then
21849 output_verbose_link_cmd='echo'
21850 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21851 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21852 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21853 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}'
21854 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}'
21856 case "$cc_basename" in
21858 output_verbose_link_cmd='echo'
21859 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21860 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21861 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21862 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}'
21863 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}'
21873 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21874 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21875 hardcode_shlibpath_var_GCJ=no
21882 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21883 # support. Future versions do this automatically, but an explicit c++rt0.o
21884 # does not break anything, and helps significantly (at the cost of a little
21887 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21888 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21889 hardcode_direct_GCJ=yes
21890 hardcode_shlibpath_var_GCJ=no
21893 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21895 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21896 hardcode_direct_GCJ=yes
21897 hardcode_minus_L_GCJ=yes
21898 hardcode_shlibpath_var_GCJ=no
21901 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21902 freebsd* | kfreebsd*-gnu)
21903 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21904 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21905 hardcode_direct_GCJ=yes
21906 hardcode_shlibpath_var_GCJ=no
21910 if test "$GCC" = yes; then
21911 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'
21913 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'
21915 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21916 hardcode_libdir_separator_GCJ=:
21917 hardcode_direct_GCJ=yes
21919 # hardcode_minus_L: Not really in the search PATH,
21920 # but as the default location of the library.
21921 hardcode_minus_L_GCJ=yes
21922 export_dynamic_flag_spec_GCJ='${wl}-E'
21926 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21927 case "$host_cpu" in
21929 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21932 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21936 case "$host_cpu" in
21938 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21941 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21945 if test "$with_gnu_ld" = no; then
21946 case "$host_cpu" in
21948 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21949 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21950 hardcode_libdir_separator_GCJ=:
21951 hardcode_direct_GCJ=no
21952 hardcode_shlibpath_var_GCJ=no
21955 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21956 hardcode_direct_GCJ=no
21957 hardcode_shlibpath_var_GCJ=no
21959 # hardcode_minus_L: Not really in the search PATH,
21960 # but as the default location of the library.
21961 hardcode_minus_L_GCJ=yes
21964 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21965 hardcode_libdir_separator_GCJ=:
21966 hardcode_direct_GCJ=yes
21967 export_dynamic_flag_spec_GCJ='${wl}-E'
21969 # hardcode_minus_L: Not really in the search PATH,
21970 # but as the default location of the library.
21971 hardcode_minus_L_GCJ=yes
21977 irix5* | irix6* | nonstopux*)
21978 if test "$GCC" = yes; then
21979 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'
21981 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'
21982 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21984 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21985 hardcode_libdir_separator_GCJ=:
21986 link_all_deplibs_GCJ=yes
21990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21991 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21993 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21995 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21996 hardcode_direct_GCJ=yes
21997 hardcode_shlibpath_var_GCJ=no
22001 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22002 hardcode_direct_GCJ=yes
22003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22004 hardcode_libdir_separator_GCJ=:
22005 hardcode_shlibpath_var_GCJ=no
22009 hardcode_direct_GCJ=yes
22010 hardcode_shlibpath_var_GCJ=no
22011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22012 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22013 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22014 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22015 export_dynamic_flag_spec_GCJ='${wl}-E'
22018 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22019 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22020 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22023 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22031 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22032 hardcode_minus_L_GCJ=yes
22033 allow_undefined_flag_GCJ=unsupported
22034 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'
22035 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22039 if test "$GCC" = yes; then
22040 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22041 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'
22043 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22044 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'
22046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22047 hardcode_libdir_separator_GCJ=:
22050 osf4* | osf5*) # as osf3* with the addition of -msym flag
22051 if test "$GCC" = yes; then
22052 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22053 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'
22054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22056 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22057 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'
22058 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~
22059 $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'
22061 # Both c and cxx compiler support -rpath directly
22062 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22064 hardcode_libdir_separator_GCJ=:
22068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22069 hardcode_shlibpath_var_GCJ=no
22070 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22071 runpath_var=LD_RUN_PATH
22072 hardcode_runpath_var=yes
22076 no_undefined_flag_GCJ=' -z text'
22077 if test "$GCC" = yes; then
22078 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22079 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22080 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22082 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22083 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22084 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22086 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22087 hardcode_shlibpath_var_GCJ=no
22089 solaris2.[0-5] | solaris2.[0-5].*) ;;
22090 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22091 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22093 link_all_deplibs_GCJ=yes
22097 if test "x$host_vendor" = xsequent; then
22098 # Use $CC to link under sequent, because it throws in some extra .o
22099 # files that make .init and .fini sections work.
22100 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22102 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22104 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22105 hardcode_direct_GCJ=yes
22106 hardcode_minus_L_GCJ=yes
22107 hardcode_shlibpath_var_GCJ=no
22111 case $host_vendor in
22113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22114 hardcode_direct_GCJ=yes # is this really true???
22117 ## LD is ld it makes a PLAMLIB
22118 ## CC just makes a GrossModule.
22119 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22120 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22121 hardcode_direct_GCJ=no
22124 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22125 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22128 runpath_var='LD_RUN_PATH'
22129 hardcode_shlibpath_var_GCJ=no
22133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22134 hardcode_shlibpath_var_GCJ=no
22135 export_dynamic_flag_spec_GCJ='-Bexport'
22139 if test -d /usr/nec; then
22140 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22141 hardcode_shlibpath_var_GCJ=no
22142 runpath_var=LD_RUN_PATH
22143 hardcode_runpath_var=yes
22149 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22150 hardcode_direct_GCJ=yes
22151 hardcode_minus_L_GCJ=no
22152 hardcode_shlibpath_var_GCJ=no
22153 hardcode_runpath_var=yes
22154 runpath_var=LD_RUN_PATH
22157 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22158 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22159 if test "$GCC" = yes; then
22160 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22162 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22164 runpath_var='LD_RUN_PATH'
22165 hardcode_shlibpath_var_GCJ=no
22169 no_undefined_flag_GCJ=' -z text'
22170 # $CC -shared without GNU ld will not create a library from C++
22171 # object files and a static libstdc++, better avoid it by now
22172 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22173 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22174 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22175 hardcode_libdir_flag_spec_GCJ=
22176 hardcode_shlibpath_var_GCJ=no
22177 runpath_var='LD_RUN_PATH'
22181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22183 hardcode_shlibpath_var_GCJ=no
22192 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22193 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22194 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22196 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22197 if test "$GCC" = yes; then
22198 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22202 # Do we need to explicitly link libc?
22204 case "x$archive_cmds_need_lc_GCJ" in
22206 # Assume -lc should be added
22207 archive_cmds_need_lc_GCJ=yes
22209 if test "$enable_shared" = yes && test "$GCC" = yes; then
22210 case $archive_cmds_GCJ in
22212 # FIXME: we may have to deal with multi-command sequences.
22215 # Test whether the compiler implicitly links with -lc since on some
22216 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22217 # to ld, don't add -lc before -lgcc.
22218 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22219 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22221 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22224 (eval $ac_compile) 2>&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } 2>conftest.err; then
22230 libobjs=conftest.$ac_objext
22232 wl=$lt_prog_compiler_wl_GCJ
22238 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22239 allow_undefined_flag_GCJ=
22240 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22241 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); }
22246 archive_cmds_need_lc_GCJ=no
22248 archive_cmds_need_lc_GCJ=yes
22250 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22252 cat conftest.err 1>&5
22255 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22256 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22263 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22264 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22265 library_names_spec=
22266 libname_spec='lib$name'
22270 postuninstall_cmds=
22274 shlibpath_overrides_runpath=unknown
22276 dynamic_linker="$host_os ld.so"
22277 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22278 if test "$GCC" = yes; then
22279 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22280 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22281 # if the path contains ";" then we assume it to be the separator
22282 # otherwise default to the standard path separator (i.e. ":") - it is
22283 # assumed that no part of a normal pathname contains ";" but that should
22284 # okay in the real world where ";" in dirpaths is itself problematic.
22285 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22290 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22292 need_lib_prefix=unknown
22293 hardcode_into_libs=no
22295 # when you set need_version to no, make sure it does not cause -set_version
22296 # flags to be left without arguments
22297 need_version=unknown
22302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22303 shlibpath_var=LIBPATH
22305 # AIX 3 has no versioning support, so we append a major version to the name.
22306 soname_spec='${libname}${release}${shared_ext}$major'
22313 hardcode_into_libs=yes
22314 if test "$host_cpu" = ia64; then
22315 # AIX 5 supports IA64
22316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22317 shlibpath_var=LD_LIBRARY_PATH
22319 # With GCC up to 2.95.x, collect2 would create an import file
22320 # for dependence libraries. The import file would start with
22321 # the line `#! .'. This would cause the generated library to
22322 # depend on `.', always an invalid library. This was fixed in
22323 # development snapshots of GCC prior to 3.0.
22325 aix4 | aix4.[01] | aix4.[01].*)
22326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22328 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22331 can_build_shared=no
22335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22336 # soname into executable. Probably we can add versioning support to
22337 # collect2, so additional links can be useful in future.
22338 if test "$aix_use_runtimelinking" = yes; then
22339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22340 # instead of lib<name>.a to let people know that these are not
22341 # typical AIX shared libraries.
22342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22344 # We preserve .a as extension for shared libraries through AIX4.2
22345 # and later when we are not doing run time linking.
22346 library_names_spec='${libname}${release}.a $libname.a'
22347 soname_spec='${libname}${release}${shared_ext}$major'
22349 shlibpath_var=LIBPATH
22354 library_names_spec='$libname.ixlibrary $libname.a'
22355 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22356 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'
22360 library_names_spec='${libname}${shared_ext}'
22361 dynamic_linker="$host_os ld.so"
22362 shlibpath_var=LIBRARY_PATH
22368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22369 soname_spec='${libname}${release}${shared_ext}$major'
22370 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22371 shlibpath_var=LD_LIBRARY_PATH
22372 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22373 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22374 # the default ld.so.conf also contains /usr/contrib/lib and
22375 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22376 # libtool to hard-code these into programs
22379 cygwin* | mingw* | pw32*)
22380 version_type=windows
22385 case $GCC,$host_os in
22386 yes,cygwin* | yes,mingw* | yes,pw32*)
22387 library_names_spec='$libname.dll.a'
22388 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22389 postinstall_cmds='base_file=`basename \${file}`~
22390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22391 dldir=$destdir/`dirname \$dlpath`~
22392 test -d \$dldir || mkdir -p \$dldir~
22393 $install_prog $dir/$dlname \$dldir/$dlname'
22394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22395 dlpath=$dir/\$dldll~
22397 shlibpath_overrides_runpath=yes
22401 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22402 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22403 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22406 # MinGW DLLs use traditional 'lib' prefix
22407 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22408 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22409 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22410 # It is most probably a Windows format PATH printed by
22411 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22412 # path with ; separators, and with drive letters. We can handle the
22413 # drive letters (cygwin fileutils understands them), so leave them,
22414 # especially as we might pass files found there to a mingw objdump,
22415 # which wouldn't understand a cygwinified path. Ahh.
22416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22422 # pw32 DLLs use 'pw' prefix rather than 'lib'
22423 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22429 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22432 dynamic_linker='Win32 ld.exe'
22433 # FIXME: first we should search . and the directory the executable is in
22437 darwin* | rhapsody*)
22438 dynamic_linker="$host_os dyld"
22439 version_type=darwin
22442 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22443 soname_spec='${libname}${release}${major}$shared_ext'
22444 shlibpath_overrides_runpath=yes
22445 shlibpath_var=DYLD_LIBRARY_PATH
22446 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22447 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22448 if test "$GCC" = yes; then
22449 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"`
22451 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22453 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22461 soname_spec='${libname}${release}${shared_ext}$major'
22462 shlibpath_var=LD_LIBRARY_PATH
22473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22474 soname_spec='${libname}${release}${shared_ext}$major'
22475 shlibpath_var=LD_LIBRARY_PATH
22476 shlibpath_overrides_runpath=no
22477 hardcode_into_libs=yes
22478 dynamic_linker='GNU ld.so'
22482 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22483 version_type=freebsd-$objformat
22484 case $version_type in
22486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22495 shlibpath_var=LD_LIBRARY_PATH
22498 shlibpath_overrides_runpath=yes
22500 freebsd3.01* | freebsdelf3.01*)
22501 shlibpath_overrides_runpath=yes
22502 hardcode_into_libs=yes
22505 shlibpath_overrides_runpath=no
22506 hardcode_into_libs=yes
22515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22516 soname_spec='${libname}${release}${shared_ext}$major'
22517 shlibpath_var=LD_LIBRARY_PATH
22518 hardcode_into_libs=yes
22521 hpux9* | hpux10* | hpux11*)
22522 # Give a soname corresponding to the major version so that dld.sl refuses to
22523 # link against other versions.
22527 case "$host_cpu" in
22530 hardcode_into_libs=yes
22531 dynamic_linker="$host_os dld.so"
22532 shlibpath_var=LD_LIBRARY_PATH
22533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22535 soname_spec='${libname}${release}${shared_ext}$major'
22536 if test "X$HPUX_IA64_MODE" = X32; then
22537 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22539 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22545 hardcode_into_libs=yes
22546 dynamic_linker="$host_os dld.sl"
22547 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22550 soname_spec='${libname}${release}${shared_ext}$major'
22551 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22552 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22556 dynamic_linker="$host_os dld.sl"
22557 shlibpath_var=SHLIB_PATH
22558 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22560 soname_spec='${libname}${release}${shared_ext}$major'
22563 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22564 postinstall_cmds='chmod 555 $lib'
22567 irix5* | irix6* | nonstopux*)
22569 nonstopux*) version_type=nonstopux ;;
22571 if test "$lt_cv_prog_gnu_ld" = yes; then
22579 soname_spec='${libname}${release}${shared_ext}$major'
22580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22582 irix5* | nonstopux*)
22583 libsuff= shlibsuff=
22586 case $LD in # libtool.m4 will add one of these switches to LD
22587 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22588 libsuff= shlibsuff= libmagic=32-bit;;
22589 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22590 libsuff=32 shlibsuff=N32 libmagic=N32;;
22591 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22592 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22593 *) libsuff= shlibsuff= libmagic=never-match;;
22597 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22598 shlibpath_overrides_runpath=no
22599 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22600 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22601 hardcode_into_libs=yes
22604 # No shared lib support for Linux oldld, aout, or coff.
22605 linux*oldld* | linux*aout* | linux*coff*)
22609 # This must be Linux ELF.
22614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22615 soname_spec='${libname}${release}${shared_ext}$major'
22616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22617 shlibpath_var=LD_LIBRARY_PATH
22618 shlibpath_overrides_runpath=no
22619 # This implies no fast_install, which is unacceptable.
22620 # Some rework will be needed to allow for fast_install
22621 # before this can be enabled.
22622 hardcode_into_libs=yes
22624 # Append ld.so.conf contents to the search path
22625 if test -f /etc/ld.so.conf; then
22626 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22627 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22630 # We used to test for /lib/ld.so.1 and disable shared libraries on
22631 # powerpc, because MkLinux only supported shared libraries with the
22632 # GNU dynamic linker. Since this was broken with cross compilers,
22633 # most powerpc-linux boxes support dynamic linking these days and
22634 # people can always --disable-shared, the test was removed, and we
22635 # assume the GNU/Linux dynamic linker is in use.
22636 dynamic_linker='GNU/Linux ld.so'
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22644 soname_spec='${libname}${release}${shared_ext}$major'
22645 shlibpath_var=LD_LIBRARY_PATH
22646 shlibpath_overrides_runpath=no
22647 hardcode_into_libs=yes
22648 dynamic_linker='GNU ld.so'
22655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22658 dynamic_linker='NetBSD (a.out) ld.so'
22660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22661 soname_spec='${libname}${release}${shared_ext}$major'
22662 dynamic_linker='NetBSD ld.elf_so'
22664 shlibpath_var=LD_LIBRARY_PATH
22665 shlibpath_overrides_runpath=yes
22666 hardcode_into_libs=yes
22671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22672 shlibpath_var=LD_LIBRARY_PATH
22673 shlibpath_overrides_runpath=yes
22680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22681 soname_spec='${libname}${release}${shared_ext}$major'
22682 shlibpath_var=LD_LIBRARY_PATH
22683 shlibpath_overrides_runpath=yes
22690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22692 shlibpath_var=LD_LIBRARY_PATH
22693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22695 openbsd2.[89] | openbsd2.[89].*)
22696 shlibpath_overrides_runpath=no
22699 shlibpath_overrides_runpath=yes
22703 shlibpath_overrides_runpath=yes
22708 libname_spec='$name'
22711 library_names_spec='$libname${shared_ext} $libname.a'
22712 dynamic_linker='OS/2 ld.exe'
22713 shlibpath_var=LIBPATH
22716 osf3* | osf4* | osf5*)
22720 soname_spec='${libname}${release}${shared_ext}$major'
22721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22722 shlibpath_var=LD_LIBRARY_PATH
22723 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22724 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22729 soname_spec='${libname}${release}${shared_ext}$major'
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731 shlibpath_var=LD_LIBRARY_PATH
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739 soname_spec='${libname}${release}${shared_ext}$major'
22740 shlibpath_var=LD_LIBRARY_PATH
22741 shlibpath_overrides_runpath=yes
22742 hardcode_into_libs=yes
22743 # ldd complains unless libraries are executable
22744 postinstall_cmds='chmod +x $lib'
22749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22750 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22751 shlibpath_var=LD_LIBRARY_PATH
22752 shlibpath_overrides_runpath=yes
22753 if test "$with_gnu_ld" = yes; then
22759 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 shlibpath_var=LD_LIBRARY_PATH
22764 case $host_vendor in
22766 shlibpath_overrides_runpath=no
22768 export_dynamic_flag_spec='${wl}-Blargedynsym'
22769 runpath_var=LD_RUN_PATH
22777 shlibpath_overrides_runpath=no
22778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22784 if test -d /usr/nec ;then
22786 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22787 soname_spec='$libname${shared_ext}.$major'
22788 shlibpath_var=LD_LIBRARY_PATH
22794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22795 soname_spec='${libname}${release}${shared_ext}$major'
22796 shlibpath_var=LD_LIBRARY_PATH
22803 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22804 echo "${ECHO_T}$dynamic_linker" >&6
22805 test "$dynamic_linker" = no && can_build_shared=no
22807 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22808 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22809 hardcode_action_GCJ=
22810 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22811 test -n "$runpath_var_GCJ" || \
22812 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22814 # We can hardcode non-existant directories.
22815 if test "$hardcode_direct_GCJ" != no &&
22816 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22817 # have to relink, otherwise we might link with an installed library
22818 # when we should be linking with a yet-to-be-installed one
22819 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22820 test "$hardcode_minus_L_GCJ" != no; then
22821 # Linking always hardcodes the temporary library directory.
22822 hardcode_action_GCJ=relink
22824 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22825 hardcode_action_GCJ=immediate
22828 # We cannot hardcode anything, or else we can only hardcode existing
22830 hardcode_action_GCJ=unsupported
22832 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22833 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22835 if test "$hardcode_action_GCJ" = relink; then
22836 # Fast installation is not supported
22837 enable_fast_install=no
22838 elif test "$shlibpath_overrides_runpath" = yes ||
22839 test "$enable_shared" = no; then
22840 # Fast installation is not necessary
22841 enable_fast_install=needless
22846 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22848 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22849 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22850 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22851 echo "$as_me:$LINENO: result: yes" >&5
22852 echo "${ECHO_T}yes" >&6
22854 # FIXME - insert some real tests, host_os isn't really good enough
22857 if test -n "$STRIP" ; then
22858 striplib="$STRIP -x"
22859 echo "$as_me:$LINENO: result: yes" >&5
22860 echo "${ECHO_T}yes" >&6
22862 echo "$as_me:$LINENO: result: no" >&5
22863 echo "${ECHO_T}no" >&6
22867 echo "$as_me:$LINENO: result: no" >&5
22868 echo "${ECHO_T}no" >&6
22873 if test "x$enable_dlopen" != xyes; then
22874 enable_dlopen=unknown
22875 enable_dlopen_self=unknown
22876 enable_dlopen_self_static=unknown
22883 lt_cv_dlopen="load_add_on"
22885 lt_cv_dlopen_self=yes
22889 lt_cv_dlopen="LoadLibrary"
22894 lt_cv_dlopen="dlopen"
22899 # if libdl is installed we need to link against it
22900 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22903 echo $ECHO_N "(cached) $ECHO_C" >&6
22905 ac_check_lib_save_LIBS=$LIBS
22907 cat >conftest.$ac_ext <<_ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22914 /* Override any gcc2 internal prototype to avoid an error. */
22918 /* We use char because int might match the return type of a gcc2
22919 builtin and then its argument prototype would still apply. */
22929 rm -f conftest.$ac_objext conftest$ac_exeext
22930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22931 (eval $ac_link) 2>conftest.er1
22933 grep -v '^ *+' conftest.er1 >conftest.err
22935 cat conftest.err >&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } &&
22938 { ac_try='test -z "$ac_c_werror_flag"
22939 || test ! -s conftest.err'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; } &&
22945 { ac_try='test -s conftest$ac_exeext'
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; }; then
22951 ac_cv_lib_dl_dlopen=yes
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956 ac_cv_lib_dl_dlopen=no
22958 rm -f conftest.err conftest.$ac_objext \
22959 conftest$ac_exeext conftest.$ac_ext
22960 LIBS=$ac_check_lib_save_LIBS
22962 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22963 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22964 if test $ac_cv_lib_dl_dlopen = yes; then
22965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22968 lt_cv_dlopen="dyld"
22970 lt_cv_dlopen_self=yes
22977 echo "$as_me:$LINENO: checking for shl_load" >&5
22978 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22979 if test "${ac_cv_func_shl_load+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22990 #define shl_load innocuous_shl_load
22992 /* System header to define __stub macros and hopefully few prototypes,
22993 which can conflict with char shl_load (); below.
22994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22995 <limits.h> exists even on freestanding compilers. */
22998 # include <limits.h>
23000 # include <assert.h>
23005 /* Override any gcc2 internal prototype to avoid an error. */
23010 /* We use char because int might match the return type of a gcc2
23011 builtin and then its argument prototype would still apply. */
23013 /* The GNU C library defines this for functions which it implements
23014 to always fail with ENOSYS. Some functions are actually named
23015 something starting with __ and the normal name is an alias. */
23016 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23019 char (*f) () = shl_load;
23028 return f != shl_load;
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23035 (eval $ac_link) 2>conftest.er1
23037 grep -v '^ *+' conftest.er1 >conftest.err
23039 cat conftest.err >&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } &&
23042 { ac_try='test -z "$ac_c_werror_flag"
23043 || test ! -s conftest.err'
23044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045 (eval $ac_try) 2>&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; } &&
23049 { ac_try='test -s conftest$ac_exeext'
23050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051 (eval $ac_try) 2>&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; }; then
23055 ac_cv_func_shl_load=yes
23057 echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23060 ac_cv_func_shl_load=no
23062 rm -f conftest.err conftest.$ac_objext \
23063 conftest$ac_exeext conftest.$ac_ext
23065 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23066 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23067 if test $ac_cv_func_shl_load = yes; then
23068 lt_cv_dlopen="shl_load"
23070 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23071 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23072 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23073 echo $ECHO_N "(cached) $ECHO_C" >&6
23075 ac_check_lib_save_LIBS=$LIBS
23077 cat >conftest.$ac_ext <<_ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23084 /* Override any gcc2 internal prototype to avoid an error. */
23088 /* We use char because int might match the return type of a gcc2
23089 builtin and then its argument prototype would still apply. */
23099 rm -f conftest.$ac_objext conftest$ac_exeext
23100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23101 (eval $ac_link) 2>conftest.er1
23103 grep -v '^ *+' conftest.er1 >conftest.err
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } &&
23108 { ac_try='test -z "$ac_c_werror_flag"
23109 || test ! -s conftest.err'
23110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111 (eval $ac_try) 2>&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; } &&
23115 { ac_try='test -s conftest$ac_exeext'
23116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117 (eval $ac_try) 2>&5
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); }; }; then
23121 ac_cv_lib_dld_shl_load=yes
23123 echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23126 ac_cv_lib_dld_shl_load=no
23128 rm -f conftest.err conftest.$ac_objext \
23129 conftest$ac_exeext conftest.$ac_ext
23130 LIBS=$ac_check_lib_save_LIBS
23132 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23133 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23134 if test $ac_cv_lib_dld_shl_load = yes; then
23135 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23137 echo "$as_me:$LINENO: checking for dlopen" >&5
23138 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23139 if test "${ac_cv_func_dlopen+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 cat >conftest.$ac_ext <<_ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h. */
23148 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23150 #define dlopen innocuous_dlopen
23152 /* System header to define __stub macros and hopefully few prototypes,
23153 which can conflict with char dlopen (); below.
23154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23155 <limits.h> exists even on freestanding compilers. */
23158 # include <limits.h>
23160 # include <assert.h>
23165 /* Override any gcc2 internal prototype to avoid an error. */
23170 /* We use char because int might match the return type of a gcc2
23171 builtin and then its argument prototype would still apply. */
23173 /* The GNU C library defines this for functions which it implements
23174 to always fail with ENOSYS. Some functions are actually named
23175 something starting with __ and the normal name is an alias. */
23176 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23179 char (*f) () = dlopen;
23188 return f != dlopen;
23193 rm -f conftest.$ac_objext conftest$ac_exeext
23194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23195 (eval $ac_link) 2>conftest.er1
23197 grep -v '^ *+' conftest.er1 >conftest.err
23199 cat conftest.err >&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } &&
23202 { ac_try='test -z "$ac_c_werror_flag"
23203 || test ! -s conftest.err'
23204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205 (eval $ac_try) 2>&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; } &&
23209 { ac_try='test -s conftest$ac_exeext'
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; }; then
23215 ac_cv_func_dlopen=yes
23217 echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23220 ac_cv_func_dlopen=no
23222 rm -f conftest.err conftest.$ac_objext \
23223 conftest$ac_exeext conftest.$ac_ext
23225 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23226 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23227 if test $ac_cv_func_dlopen = yes; then
23228 lt_cv_dlopen="dlopen"
23230 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23231 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23235 ac_check_lib_save_LIBS=$LIBS
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23244 /* Override any gcc2 internal prototype to avoid an error. */
23248 /* We use char because int might match the return type of a gcc2
23249 builtin and then its argument prototype would still apply. */
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261 (eval $ac_link) 2>conftest.er1
23263 grep -v '^ *+' conftest.er1 >conftest.err
23265 cat conftest.err >&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
23268 { ac_try='test -z "$ac_c_werror_flag"
23269 || test ! -s conftest.err'
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest$ac_exeext'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 ac_cv_lib_dl_dlopen=yes
23283 echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23286 ac_cv_lib_dl_dlopen=no
23288 rm -f conftest.err conftest.$ac_objext \
23289 conftest$ac_exeext conftest.$ac_ext
23290 LIBS=$ac_check_lib_save_LIBS
23292 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23293 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23294 if test $ac_cv_lib_dl_dlopen = yes; then
23295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23297 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23298 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23299 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23302 ac_check_lib_save_LIBS=$LIBS
23303 LIBS="-lsvld $LIBS"
23304 cat >conftest.$ac_ext <<_ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23311 /* Override any gcc2 internal prototype to avoid an error. */
23315 /* We use char because int might match the return type of a gcc2
23316 builtin and then its argument prototype would still apply. */
23326 rm -f conftest.$ac_objext conftest$ac_exeext
23327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23328 (eval $ac_link) 2>conftest.er1
23330 grep -v '^ *+' conftest.er1 >conftest.err
23332 cat conftest.err >&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } &&
23335 { ac_try='test -z "$ac_c_werror_flag"
23336 || test ! -s conftest.err'
23337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; } &&
23342 { ac_try='test -s conftest$ac_exeext'
23343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344 (eval $ac_try) 2>&5
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; }; then
23348 ac_cv_lib_svld_dlopen=yes
23350 echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23353 ac_cv_lib_svld_dlopen=no
23355 rm -f conftest.err conftest.$ac_objext \
23356 conftest$ac_exeext conftest.$ac_ext
23357 LIBS=$ac_check_lib_save_LIBS
23359 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23360 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23361 if test $ac_cv_lib_svld_dlopen = yes; then
23362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23364 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23365 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23366 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23369 ac_check_lib_save_LIBS=$LIBS
23371 cat >conftest.$ac_ext <<_ACEOF
23374 cat confdefs.h >>conftest.$ac_ext
23375 cat >>conftest.$ac_ext <<_ACEOF
23376 /* end confdefs.h. */
23378 /* Override any gcc2 internal prototype to avoid an error. */
23382 /* We use char because int might match the return type of a gcc2
23383 builtin and then its argument prototype would still apply. */
23393 rm -f conftest.$ac_objext conftest$ac_exeext
23394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23395 (eval $ac_link) 2>conftest.er1
23397 grep -v '^ *+' conftest.er1 >conftest.err
23399 cat conftest.err >&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } &&
23402 { ac_try='test -z "$ac_c_werror_flag"
23403 || test ! -s conftest.err'
23404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405 (eval $ac_try) 2>&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; } &&
23409 { ac_try='test -s conftest$ac_exeext'
23410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411 (eval $ac_try) 2>&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); }; }; then
23415 ac_cv_lib_dld_dld_link=yes
23417 echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23420 ac_cv_lib_dld_dld_link=no
23422 rm -f conftest.err conftest.$ac_objext \
23423 conftest$ac_exeext conftest.$ac_ext
23424 LIBS=$ac_check_lib_save_LIBS
23426 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23427 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23428 if test $ac_cv_lib_dld_dld_link = yes; then
23429 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23450 if test "x$lt_cv_dlopen" != xno; then
23456 case $lt_cv_dlopen in
23458 save_CPPFLAGS="$CPPFLAGS"
23459 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23461 save_LDFLAGS="$LDFLAGS"
23462 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23465 LIBS="$lt_cv_dlopen_libs $LIBS"
23467 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23468 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23469 if test "${lt_cv_dlopen_self+set}" = set; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23472 if test "$cross_compiling" = yes; then :
23473 lt_cv_dlopen_self=cross
23475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23476 lt_status=$lt_dlunknown
23477 cat > conftest.$ac_ext <<EOF
23478 #line 23478 "configure"
23479 #include "confdefs.h"
23488 # define LT_DLGLOBAL RTLD_GLOBAL
23491 # define LT_DLGLOBAL DL_GLOBAL
23493 # define LT_DLGLOBAL 0
23497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23498 find out it does not work in some platform. */
23499 #ifndef LT_DLLAZY_OR_NOW
23501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23504 # define LT_DLLAZY_OR_NOW DL_LAZY
23507 # define LT_DLLAZY_OR_NOW RTLD_NOW
23510 # define LT_DLLAZY_OR_NOW DL_NOW
23512 # define LT_DLLAZY_OR_NOW 0
23520 extern "C" void exit (int);
23523 void fnord() { int i=42;}
23526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23527 int status = $lt_dlunknown;
23531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23532 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23533 /* dlclose (self); */
23539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23540 (eval $ac_link) 2>&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23544 (./conftest; exit; ) 2>/dev/null
23546 case x$lt_status in
23547 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23548 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23549 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23552 # compilation failed
23553 lt_cv_dlopen_self=no
23560 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23561 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23563 if test "x$lt_cv_dlopen_self" = xyes; then
23564 LDFLAGS="$LDFLAGS $link_static_flag"
23565 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23566 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23567 if test "${lt_cv_dlopen_self_static+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23570 if test "$cross_compiling" = yes; then :
23571 lt_cv_dlopen_self_static=cross
23573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23574 lt_status=$lt_dlunknown
23575 cat > conftest.$ac_ext <<EOF
23576 #line 23576 "configure"
23577 #include "confdefs.h"
23586 # define LT_DLGLOBAL RTLD_GLOBAL
23589 # define LT_DLGLOBAL DL_GLOBAL
23591 # define LT_DLGLOBAL 0
23595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23596 find out it does not work in some platform. */
23597 #ifndef LT_DLLAZY_OR_NOW
23599 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23602 # define LT_DLLAZY_OR_NOW DL_LAZY
23605 # define LT_DLLAZY_OR_NOW RTLD_NOW
23608 # define LT_DLLAZY_OR_NOW DL_NOW
23610 # define LT_DLLAZY_OR_NOW 0
23618 extern "C" void exit (int);
23621 void fnord() { int i=42;}
23624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23625 int status = $lt_dlunknown;
23629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23630 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23631 /* dlclose (self); */
23637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23638 (eval $ac_link) 2>&5
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23642 (./conftest; exit; ) 2>/dev/null
23644 case x$lt_status in
23645 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23646 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23647 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23650 # compilation failed
23651 lt_cv_dlopen_self_static=no
23658 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23659 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23662 CPPFLAGS="$save_CPPFLAGS"
23663 LDFLAGS="$save_LDFLAGS"
23668 case $lt_cv_dlopen_self in
23669 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23670 *) enable_dlopen_self=unknown ;;
23673 case $lt_cv_dlopen_self_static in
23674 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23675 *) enable_dlopen_self_static=unknown ;;
23680 # The else clause should only fire when bootstrapping the
23681 # libtool distribution, otherwise you forgot to ship ltmain.sh
23682 # with your package, and you will get complaints that there are
23683 # no rules to generate ltmain.sh.
23684 if test -f "$ltmain"; then
23685 # See if we are running on zsh, and set the options which allow our commands through
23686 # without removal of \ escapes.
23687 if test -n "${ZSH_VERSION+set}" ; then
23688 setopt NO_GLOB_SUBST
23690 # Now quote all the things that may contain metacharacters while being
23691 # careful not to overquote the AC_SUBSTed values. We take copies of the
23692 # variables and quote the copies for generation of the libtool script.
23693 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23695 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23696 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23697 deplibs_check_method reload_flag reload_cmds need_locks \
23698 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23699 lt_cv_sys_global_symbol_to_c_name_address \
23700 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23701 old_postinstall_cmds old_postuninstall_cmds \
23705 lt_prog_compiler_wl_GCJ \
23706 lt_prog_compiler_pic_GCJ \
23707 lt_prog_compiler_static_GCJ \
23708 lt_prog_compiler_no_builtin_flag_GCJ \
23709 export_dynamic_flag_spec_GCJ \
23710 thread_safe_flag_spec_GCJ \
23711 whole_archive_flag_spec_GCJ \
23712 enable_shared_with_static_runtimes_GCJ \
23713 old_archive_cmds_GCJ \
23714 old_archive_from_new_cmds_GCJ \
23715 predep_objects_GCJ \
23716 postdep_objects_GCJ \
23719 compiler_lib_search_path_GCJ \
23721 archive_expsym_cmds_GCJ \
23722 postinstall_cmds_GCJ \
23723 postuninstall_cmds_GCJ \
23724 old_archive_from_expsyms_cmds_GCJ \
23725 allow_undefined_flag_GCJ \
23726 no_undefined_flag_GCJ \
23727 export_symbols_cmds_GCJ \
23728 hardcode_libdir_flag_spec_GCJ \
23729 hardcode_libdir_flag_spec_ld_GCJ \
23730 hardcode_libdir_separator_GCJ \
23731 hardcode_automatic_GCJ \
23733 module_expsym_cmds_GCJ \
23734 lt_cv_prog_compiler_c_o_GCJ \
23735 exclude_expsyms_GCJ \
23736 include_expsyms_GCJ; do
23739 old_archive_cmds_GCJ | \
23740 old_archive_from_new_cmds_GCJ | \
23741 archive_cmds_GCJ | \
23742 archive_expsym_cmds_GCJ | \
23743 module_cmds_GCJ | \
23744 module_expsym_cmds_GCJ | \
23745 old_archive_from_expsyms_cmds_GCJ | \
23746 export_symbols_cmds_GCJ | \
23747 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23748 postinstall_cmds | postuninstall_cmds | \
23749 old_postinstall_cmds | old_postuninstall_cmds | \
23750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23751 # Double-quote double-evaled strings.
23752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23761 *'\$0 --fallback-echo"')
23762 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23768 cat <<__EOF__ >> "$cfgfile"
23769 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23771 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23773 # Shell to use when invoking shell scripts.
23776 # Whether or not to build shared libraries.
23777 build_libtool_libs=$enable_shared
23779 # Whether or not to build static libraries.
23780 build_old_libs=$enable_static
23782 # Whether or not to add -lc for building shared libraries.
23783 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23785 # Whether or not to disallow shared libs when runtime libs are static
23786 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23788 # Whether or not to optimize for fast installation.
23789 fast_install=$enable_fast_install
23792 host_alias=$host_alias
23795 # An echo program that does not interpret backslashes.
23800 AR_FLAGS=$lt_AR_FLAGS
23805 # A language-specific compiler.
23806 CC=$lt_compiler_GCJ
23808 # Is the compiler the GNU C compiler?
23814 # The linker used to build libraries.
23817 # Whether we need hard or soft links.
23820 # A BSD-compatible nm program.
23823 # A symbol stripping program
23826 # Used to examine libraries when file_magic_cmd begins "file"
23827 MAGIC_CMD=$MAGIC_CMD
23829 # Used on cygwin: DLL creation program.
23832 # Used on cygwin: object dumper.
23835 # Used on cygwin: assembler.
23838 # The name of the directory that contains temporary libtool files.
23841 # How to create reloadable object files.
23842 reload_flag=$lt_reload_flag
23843 reload_cmds=$lt_reload_cmds
23845 # How to pass a linker flag through the compiler.
23846 wl=$lt_lt_prog_compiler_wl_GCJ
23848 # Object file suffix (normally "o").
23849 objext="$ac_objext"
23851 # Old archive suffix (normally "a").
23854 # Shared library suffix (normally ".so").
23855 shrext_cmds='$shrext_cmds'
23857 # Executable file suffix (normally "").
23860 # Additional compiler flags for building library objects.
23861 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23864 # What is the maximum length of a command?
23865 max_cmd_len=$lt_cv_sys_max_cmd_len
23867 # Does compiler simultaneously support -c and -o options?
23868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23870 # Must we lock files when doing compilation ?
23871 need_locks=$lt_need_locks
23873 # Do we need the lib prefix for modules?
23874 need_lib_prefix=$need_lib_prefix
23876 # Do we need a version for libraries?
23877 need_version=$need_version
23879 # Whether dlopen is supported.
23880 dlopen_support=$enable_dlopen
23882 # Whether dlopen of programs is supported.
23883 dlopen_self=$enable_dlopen_self
23885 # Whether dlopen of statically linked programs is supported.
23886 dlopen_self_static=$enable_dlopen_self_static
23888 # Compiler flag to prevent dynamic linking.
23889 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23891 # Compiler flag to turn off builtin functions.
23892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23894 # Compiler flag to allow reflexive dlopens.
23895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23897 # Compiler flag to generate shared objects directly from archives.
23898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23900 # Compiler flag to generate thread-safe objects.
23901 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23903 # Library versioning type.
23904 version_type=$version_type
23906 # Format of library name prefix.
23907 libname_spec=$lt_libname_spec
23909 # List of archive names. First name is the real one, the rest are links.
23910 # The last name is the one that the linker finds with -lNAME.
23911 library_names_spec=$lt_library_names_spec
23913 # The coded name of the library, if different from the real name.
23914 soname_spec=$lt_soname_spec
23916 # Commands used to build and install an old-style archive.
23918 old_archive_cmds=$lt_old_archive_cmds_GCJ
23919 old_postinstall_cmds=$lt_old_postinstall_cmds
23920 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23922 # Create an old-style archive from a shared archive.
23923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23925 # Create a temporary old-style archive to link instead of a shared archive.
23926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23928 # Commands used to build and install a shared archive.
23929 archive_cmds=$lt_archive_cmds_GCJ
23930 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23931 postinstall_cmds=$lt_postinstall_cmds
23932 postuninstall_cmds=$lt_postuninstall_cmds
23934 # Commands used to build a loadable module (assumed same as above if empty)
23935 module_cmds=$lt_module_cmds_GCJ
23936 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23938 # Commands to strip libraries.
23939 old_striplib=$lt_old_striplib
23940 striplib=$lt_striplib
23942 # Dependencies to place before the objects being linked to create a
23944 predep_objects=$lt_predep_objects_GCJ
23946 # Dependencies to place after the objects being linked to create a
23948 postdep_objects=$lt_postdep_objects_GCJ
23950 # Dependencies to place before the objects being linked to create a
23952 predeps=$lt_predeps_GCJ
23954 # Dependencies to place after the objects being linked to create a
23956 postdeps=$lt_postdeps_GCJ
23958 # The library search path used internally by the compiler when linking
23959 # a shared library.
23960 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23962 # Method to check whether dependent libraries are shared objects.
23963 deplibs_check_method=$lt_deplibs_check_method
23965 # Command to use when deplibs_check_method == file_magic.
23966 file_magic_cmd=$lt_file_magic_cmd
23968 # Flag that allows shared libraries with undefined symbols to be built.
23969 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23971 # Flag that forces no undefined symbols.
23972 no_undefined_flag=$lt_no_undefined_flag_GCJ
23974 # Commands used to finish a libtool library installation in a directory.
23975 finish_cmds=$lt_finish_cmds
23977 # Same as above, but a single script fragment to be evaled but not shown.
23978 finish_eval=$lt_finish_eval
23980 # Take the output of nm and produce a listing of raw symbols and C names.
23981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23983 # Transform the output of nm in a proper C declaration
23984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23986 # Transform the output of nm in a C name address pair
23987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23989 # This is the shared library runtime path variable.
23990 runpath_var=$runpath_var
23992 # This is the shared library path variable.
23993 shlibpath_var=$shlibpath_var
23995 # Is shlibpath searched before the hard-coded library search path?
23996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23998 # How to hardcode a shared library path into an executable.
23999 hardcode_action=$hardcode_action_GCJ
24001 # Whether we should hardcode library paths into libraries.
24002 hardcode_into_libs=$hardcode_into_libs
24004 # Flag to hardcode \$libdir into a binary during linking.
24005 # This must work even if \$libdir does not exist.
24006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24008 # If ld is used when linking, flag to hardcode \$libdir into
24009 # a binary during linking. This must work even if \$libdir does
24011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24013 # Whether we need a single -rpath flag with a separated argument.
24014 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24017 # resulting binary.
24018 hardcode_direct=$hardcode_direct_GCJ
24020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24021 # resulting binary.
24022 hardcode_minus_L=$hardcode_minus_L_GCJ
24024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24025 # the resulting binary.
24026 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24028 # Set to yes if building a shared library automatically hardcodes DIR into the library
24029 # and all subsequent libraries and executables linked against it.
24030 hardcode_automatic=$hardcode_automatic_GCJ
24032 # Variables whose values should be saved in libtool wrapper scripts and
24033 # restored at relink time.
24034 variables_saved_for_relink="$variables_saved_for_relink"
24036 # Whether libtool must link a program against all its dependency libraries.
24037 link_all_deplibs=$link_all_deplibs_GCJ
24039 # Compile-time system search path for libraries
24040 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24042 # Run-time system search path for libraries
24043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24045 # Fix the shell variable \$srcfile for the compiler.
24046 fix_srcfile_path="$fix_srcfile_path_GCJ"
24048 # Set to yes if exported symbols are required.
24049 always_export_symbols=$always_export_symbols_GCJ
24051 # The commands to list exported symbols.
24052 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24054 # The commands to extract the exported symbol list from a shared archive.
24055 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24057 # Symbols that should not be listed in the preloaded symbols.
24058 exclude_expsyms=$lt_exclude_expsyms_GCJ
24060 # Symbols that must always be exported.
24061 include_expsyms=$lt_include_expsyms_GCJ
24063 # ### END LIBTOOL TAG CONFIG: $tagname
24069 # If there is no Makefile yet, we rely on a make rule to execute
24070 # `config.status --recheck' to rerun these tests and create the
24071 # libtool script then.
24072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24073 if test -f "$ltmain_in"; then
24074 test -f Makefile && make "$ltmain"
24080 ac_cpp='$CPP $CPPFLAGS'
24081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24094 ac_cpp='$CPP $CPPFLAGS'
24095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24100 # Source file extension for RC test sources.
24103 # Object file extension for compiled RC test sources.
24107 # Code to be used in simple compile tests
24108 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24110 # Code to be used in simple link tests
24111 lt_simple_link_test_code="$lt_simple_compile_test_code"
24113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24115 # If no C compiler was specified, use CC.
24118 # Allow CC to be a program name with arguments.
24122 # Allow CC to be a program name with arguments.
24127 lt_cv_prog_compiler_c_o_RC=yes
24129 # The else clause should only fire when bootstrapping the
24130 # libtool distribution, otherwise you forgot to ship ltmain.sh
24131 # with your package, and you will get complaints that there are
24132 # no rules to generate ltmain.sh.
24133 if test -f "$ltmain"; then
24134 # See if we are running on zsh, and set the options which allow our commands through
24135 # without removal of \ escapes.
24136 if test -n "${ZSH_VERSION+set}" ; then
24137 setopt NO_GLOB_SUBST
24139 # Now quote all the things that may contain metacharacters while being
24140 # careful not to overquote the AC_SUBSTed values. We take copies of the
24141 # variables and quote the copies for generation of the libtool script.
24142 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24144 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24145 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24146 deplibs_check_method reload_flag reload_cmds need_locks \
24147 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24148 lt_cv_sys_global_symbol_to_c_name_address \
24149 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24150 old_postinstall_cmds old_postuninstall_cmds \
24154 lt_prog_compiler_wl_RC \
24155 lt_prog_compiler_pic_RC \
24156 lt_prog_compiler_static_RC \
24157 lt_prog_compiler_no_builtin_flag_RC \
24158 export_dynamic_flag_spec_RC \
24159 thread_safe_flag_spec_RC \
24160 whole_archive_flag_spec_RC \
24161 enable_shared_with_static_runtimes_RC \
24162 old_archive_cmds_RC \
24163 old_archive_from_new_cmds_RC \
24164 predep_objects_RC \
24165 postdep_objects_RC \
24168 compiler_lib_search_path_RC \
24170 archive_expsym_cmds_RC \
24171 postinstall_cmds_RC \
24172 postuninstall_cmds_RC \
24173 old_archive_from_expsyms_cmds_RC \
24174 allow_undefined_flag_RC \
24175 no_undefined_flag_RC \
24176 export_symbols_cmds_RC \
24177 hardcode_libdir_flag_spec_RC \
24178 hardcode_libdir_flag_spec_ld_RC \
24179 hardcode_libdir_separator_RC \
24180 hardcode_automatic_RC \
24182 module_expsym_cmds_RC \
24183 lt_cv_prog_compiler_c_o_RC \
24184 exclude_expsyms_RC \
24185 include_expsyms_RC; do
24188 old_archive_cmds_RC | \
24189 old_archive_from_new_cmds_RC | \
24190 archive_cmds_RC | \
24191 archive_expsym_cmds_RC | \
24193 module_expsym_cmds_RC | \
24194 old_archive_from_expsyms_cmds_RC | \
24195 export_symbols_cmds_RC | \
24196 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24197 postinstall_cmds | postuninstall_cmds | \
24198 old_postinstall_cmds | old_postuninstall_cmds | \
24199 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24200 # Double-quote double-evaled strings.
24201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24204 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24210 *'\$0 --fallback-echo"')
24211 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24217 cat <<__EOF__ >> "$cfgfile"
24218 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24222 # Shell to use when invoking shell scripts.
24225 # Whether or not to build shared libraries.
24226 build_libtool_libs=$enable_shared
24228 # Whether or not to build static libraries.
24229 build_old_libs=$enable_static
24231 # Whether or not to add -lc for building shared libraries.
24232 build_libtool_need_lc=$archive_cmds_need_lc_RC
24234 # Whether or not to disallow shared libs when runtime libs are static
24235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24237 # Whether or not to optimize for fast installation.
24238 fast_install=$enable_fast_install
24241 host_alias=$host_alias
24244 # An echo program that does not interpret backslashes.
24249 AR_FLAGS=$lt_AR_FLAGS
24254 # A language-specific compiler.
24257 # Is the compiler the GNU C compiler?
24263 # The linker used to build libraries.
24266 # Whether we need hard or soft links.
24269 # A BSD-compatible nm program.
24272 # A symbol stripping program
24275 # Used to examine libraries when file_magic_cmd begins "file"
24276 MAGIC_CMD=$MAGIC_CMD
24278 # Used on cygwin: DLL creation program.
24281 # Used on cygwin: object dumper.
24284 # Used on cygwin: assembler.
24287 # The name of the directory that contains temporary libtool files.
24290 # How to create reloadable object files.
24291 reload_flag=$lt_reload_flag
24292 reload_cmds=$lt_reload_cmds
24294 # How to pass a linker flag through the compiler.
24295 wl=$lt_lt_prog_compiler_wl_RC
24297 # Object file suffix (normally "o").
24298 objext="$ac_objext"
24300 # Old archive suffix (normally "a").
24303 # Shared library suffix (normally ".so").
24304 shrext_cmds='$shrext_cmds'
24306 # Executable file suffix (normally "").
24309 # Additional compiler flags for building library objects.
24310 pic_flag=$lt_lt_prog_compiler_pic_RC
24313 # What is the maximum length of a command?
24314 max_cmd_len=$lt_cv_sys_max_cmd_len
24316 # Does compiler simultaneously support -c and -o options?
24317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24319 # Must we lock files when doing compilation ?
24320 need_locks=$lt_need_locks
24322 # Do we need the lib prefix for modules?
24323 need_lib_prefix=$need_lib_prefix
24325 # Do we need a version for libraries?
24326 need_version=$need_version
24328 # Whether dlopen is supported.
24329 dlopen_support=$enable_dlopen
24331 # Whether dlopen of programs is supported.
24332 dlopen_self=$enable_dlopen_self
24334 # Whether dlopen of statically linked programs is supported.
24335 dlopen_self_static=$enable_dlopen_self_static
24337 # Compiler flag to prevent dynamic linking.
24338 link_static_flag=$lt_lt_prog_compiler_static_RC
24340 # Compiler flag to turn off builtin functions.
24341 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24343 # Compiler flag to allow reflexive dlopens.
24344 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24346 # Compiler flag to generate shared objects directly from archives.
24347 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24349 # Compiler flag to generate thread-safe objects.
24350 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24352 # Library versioning type.
24353 version_type=$version_type
24355 # Format of library name prefix.
24356 libname_spec=$lt_libname_spec
24358 # List of archive names. First name is the real one, the rest are links.
24359 # The last name is the one that the linker finds with -lNAME.
24360 library_names_spec=$lt_library_names_spec
24362 # The coded name of the library, if different from the real name.
24363 soname_spec=$lt_soname_spec
24365 # Commands used to build and install an old-style archive.
24367 old_archive_cmds=$lt_old_archive_cmds_RC
24368 old_postinstall_cmds=$lt_old_postinstall_cmds
24369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24371 # Create an old-style archive from a shared archive.
24372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24374 # Create a temporary old-style archive to link instead of a shared archive.
24375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24377 # Commands used to build and install a shared archive.
24378 archive_cmds=$lt_archive_cmds_RC
24379 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24380 postinstall_cmds=$lt_postinstall_cmds
24381 postuninstall_cmds=$lt_postuninstall_cmds
24383 # Commands used to build a loadable module (assumed same as above if empty)
24384 module_cmds=$lt_module_cmds_RC
24385 module_expsym_cmds=$lt_module_expsym_cmds_RC
24387 # Commands to strip libraries.
24388 old_striplib=$lt_old_striplib
24389 striplib=$lt_striplib
24391 # Dependencies to place before the objects being linked to create a
24393 predep_objects=$lt_predep_objects_RC
24395 # Dependencies to place after the objects being linked to create a
24397 postdep_objects=$lt_postdep_objects_RC
24399 # Dependencies to place before the objects being linked to create a
24401 predeps=$lt_predeps_RC
24403 # Dependencies to place after the objects being linked to create a
24405 postdeps=$lt_postdeps_RC
24407 # The library search path used internally by the compiler when linking
24408 # a shared library.
24409 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24411 # Method to check whether dependent libraries are shared objects.
24412 deplibs_check_method=$lt_deplibs_check_method
24414 # Command to use when deplibs_check_method == file_magic.
24415 file_magic_cmd=$lt_file_magic_cmd
24417 # Flag that allows shared libraries with undefined symbols to be built.
24418 allow_undefined_flag=$lt_allow_undefined_flag_RC
24420 # Flag that forces no undefined symbols.
24421 no_undefined_flag=$lt_no_undefined_flag_RC
24423 # Commands used to finish a libtool library installation in a directory.
24424 finish_cmds=$lt_finish_cmds
24426 # Same as above, but a single script fragment to be evaled but not shown.
24427 finish_eval=$lt_finish_eval
24429 # Take the output of nm and produce a listing of raw symbols and C names.
24430 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24432 # Transform the output of nm in a proper C declaration
24433 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24435 # Transform the output of nm in a C name address pair
24436 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24438 # This is the shared library runtime path variable.
24439 runpath_var=$runpath_var
24441 # This is the shared library path variable.
24442 shlibpath_var=$shlibpath_var
24444 # Is shlibpath searched before the hard-coded library search path?
24445 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24447 # How to hardcode a shared library path into an executable.
24448 hardcode_action=$hardcode_action_RC
24450 # Whether we should hardcode library paths into libraries.
24451 hardcode_into_libs=$hardcode_into_libs
24453 # Flag to hardcode \$libdir into a binary during linking.
24454 # This must work even if \$libdir does not exist.
24455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24457 # If ld is used when linking, flag to hardcode \$libdir into
24458 # a binary during linking. This must work even if \$libdir does
24460 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24462 # Whether we need a single -rpath flag with a separated argument.
24463 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24465 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24466 # resulting binary.
24467 hardcode_direct=$hardcode_direct_RC
24469 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24470 # resulting binary.
24471 hardcode_minus_L=$hardcode_minus_L_RC
24473 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24474 # the resulting binary.
24475 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24477 # Set to yes if building a shared library automatically hardcodes DIR into the library
24478 # and all subsequent libraries and executables linked against it.
24479 hardcode_automatic=$hardcode_automatic_RC
24481 # Variables whose values should be saved in libtool wrapper scripts and
24482 # restored at relink time.
24483 variables_saved_for_relink="$variables_saved_for_relink"
24485 # Whether libtool must link a program against all its dependency libraries.
24486 link_all_deplibs=$link_all_deplibs_RC
24488 # Compile-time system search path for libraries
24489 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24491 # Run-time system search path for libraries
24492 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24494 # Fix the shell variable \$srcfile for the compiler.
24495 fix_srcfile_path="$fix_srcfile_path_RC"
24497 # Set to yes if exported symbols are required.
24498 always_export_symbols=$always_export_symbols_RC
24500 # The commands to list exported symbols.
24501 export_symbols_cmds=$lt_export_symbols_cmds_RC
24503 # The commands to extract the exported symbol list from a shared archive.
24504 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24506 # Symbols that should not be listed in the preloaded symbols.
24507 exclude_expsyms=$lt_exclude_expsyms_RC
24509 # Symbols that must always be exported.
24510 include_expsyms=$lt_include_expsyms_RC
24512 # ### END LIBTOOL TAG CONFIG: $tagname
24518 # If there is no Makefile yet, we rely on a make rule to execute
24519 # `config.status --recheck' to rerun these tests and create the
24520 # libtool script then.
24521 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24522 if test -f "$ltmain_in"; then
24523 test -f Makefile && make "$ltmain"
24529 ac_cpp='$CPP $CPPFLAGS'
24530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24539 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24540 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24541 { (exit 1); exit 1; }; }
24545 # Append the new tag name to the list of available tags.
24546 if test -n "$tagname" ; then
24547 available_tags="$available_tags $tagname"
24553 # Now substitute the updated list of available tags.
24554 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24555 mv "${ofile}T" "$ofile"
24559 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24560 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24561 { (exit 1); exit 1; }; }
24567 # This can be used to rebuild libtool when needed
24568 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24570 # Always use our own libtool.
24571 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24573 # Prevent multiple expansion
24595 etags_version=`$ETAGS --version 2>&1`
24596 case "$etags_version" in
24597 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24598 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24599 *) ETAGSFLAGS="" ;;
24601 ETAGSFLAGS=$ETAGSFLAGS
24604 if test "$WITH_LLVMGCCDIR" = "default" ; then
24605 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24606 set dummy llvm-gcc; ac_word=$2
24607 echo "$as_me:$LINENO: checking for $ac_word" >&5
24608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24609 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24610 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24618 for as_dir in $PATH
24621 test -z "$as_dir" && as_dir=.
24622 for ac_exec_ext in '' $ac_executable_extensions; do
24623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24624 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24631 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24635 LLVMGCC=$ac_cv_path_LLVMGCC
24637 if test -n "$LLVMGCC"; then
24638 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24639 echo "${ECHO_T}$LLVMGCC" >&6
24641 echo "$as_me:$LINENO: result: no" >&5
24642 echo "${ECHO_T}no" >&6
24645 # Extract the first word of "llvm-g++", so it can be a program name with args.
24646 set dummy llvm-g++; ac_word=$2
24647 echo "$as_me:$LINENO: checking for $ac_word" >&5
24648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24649 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24654 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24658 for as_dir in $PATH
24661 test -z "$as_dir" && as_dir=.
24662 for ac_exec_ext in '' $ac_executable_extensions; do
24663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24664 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24671 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24675 LLVMGXX=$ac_cv_path_LLVMGXX
24677 if test -n "$LLVMGXX"; then
24678 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24679 echo "${ECHO_T}$LLVMGXX" >&6
24681 echo "$as_me:$LINENO: result: no" >&5
24682 echo "${ECHO_T}no" >&6
24686 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24687 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24694 echo "$as_me:$LINENO: checking tool compatibility" >&5
24695 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24708 if test "$GCC" != "yes" && test "$ICC" != "yes"
24710 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24711 echo "$as_me: error: gcc|icc required but not found" >&2;}
24712 { (exit 1); exit 1; }; }
24715 if test "$GXX" != "yes" && test "$IXX" != "yes"
24717 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24718 echo "$as_me: error: g++|icc required but not found" >&2;}
24719 { (exit 1); exit 1; }; }
24722 if test "$GCC" = "yes"
24724 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24725 if test "$gccmajor" -lt "3"
24727 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24728 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24729 { (exit 1); exit 1; }; }
24733 if test -z "$llvm_cv_gnu_make_command"
24735 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24736 echo "$as_me: error: GNU Make required but not found" >&2;}
24737 { (exit 1); exit 1; }; }
24740 echo "$as_me:$LINENO: result: ok" >&5
24741 echo "${ECHO_T}ok" >&6
24745 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24746 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24747 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24748 echo $ECHO_N "(cached) $ECHO_C" >&6
24750 ac_check_lib_save_LIBS=$LIBS
24752 cat >conftest.$ac_ext <<_ACEOF
24755 cat confdefs.h >>conftest.$ac_ext
24756 cat >>conftest.$ac_ext <<_ACEOF
24757 /* end confdefs.h. */
24759 /* Override any gcc2 internal prototype to avoid an error. */
24763 /* We use char because int might match the return type of a gcc2
24764 builtin and then its argument prototype would still apply. */
24774 rm -f conftest.$ac_objext conftest$ac_exeext
24775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24776 (eval $ac_link) 2>conftest.er1
24778 grep -v '^ *+' conftest.er1 >conftest.err
24780 cat conftest.err >&5
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } &&
24783 { ac_try='test -z "$ac_c_werror_flag"
24784 || test ! -s conftest.err'
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; } &&
24790 { ac_try='test -s conftest$ac_exeext'
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; }; then
24796 ac_cv_lib_elf_elf_begin=yes
24798 echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24801 ac_cv_lib_elf_elf_begin=no
24803 rm -f conftest.err conftest.$ac_objext \
24804 conftest$ac_exeext conftest.$ac_ext
24805 LIBS=$ac_check_lib_save_LIBS
24807 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24808 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24809 if test $ac_cv_lib_elf_elf_begin = yes; then
24810 cat >>confdefs.h <<_ACEOF
24811 #define HAVE_LIBELF 1
24819 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24820 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24821 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24822 echo $ECHO_N "(cached) $ECHO_C" >&6
24824 ac_func_search_save_LIBS=$LIBS
24825 ac_cv_search_lt_dlopen=no
24826 cat >conftest.$ac_ext <<_ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24833 /* Override any gcc2 internal prototype to avoid an error. */
24837 /* We use char because int might match the return type of a gcc2
24838 builtin and then its argument prototype would still apply. */
24848 rm -f conftest.$ac_objext conftest$ac_exeext
24849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24850 (eval $ac_link) 2>conftest.er1
24852 grep -v '^ *+' conftest.er1 >conftest.err
24854 cat conftest.err >&5
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } &&
24857 { ac_try='test -z "$ac_c_werror_flag"
24858 || test ! -s conftest.err'
24859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24860 (eval $ac_try) 2>&5
24862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863 (exit $ac_status); }; } &&
24864 { ac_try='test -s conftest$ac_exeext'
24865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24866 (eval $ac_try) 2>&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); }; }; then
24870 ac_cv_search_lt_dlopen="none required"
24872 echo "$as_me: failed program was:" >&5
24873 sed 's/^/| /' conftest.$ac_ext >&5
24876 rm -f conftest.err conftest.$ac_objext \
24877 conftest$ac_exeext conftest.$ac_ext
24878 if test "$ac_cv_search_lt_dlopen" = no; then
24879 for ac_lib in ltdl; do
24880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24881 cat >conftest.$ac_ext <<_ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h. */
24888 /* Override any gcc2 internal prototype to avoid an error. */
24892 /* We use char because int might match the return type of a gcc2
24893 builtin and then its argument prototype would still apply. */
24903 rm -f conftest.$ac_objext conftest$ac_exeext
24904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24905 (eval $ac_link) 2>conftest.er1
24907 grep -v '^ *+' conftest.er1 >conftest.err
24909 cat conftest.err >&5
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } &&
24912 { ac_try='test -z "$ac_c_werror_flag"
24913 || test ! -s conftest.err'
24914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915 (eval $ac_try) 2>&5
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); }; } &&
24919 { ac_try='test -s conftest$ac_exeext'
24920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24921 (eval $ac_try) 2>&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); }; }; then
24925 ac_cv_search_lt_dlopen="-l$ac_lib"
24928 echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24932 rm -f conftest.err conftest.$ac_objext \
24933 conftest$ac_exeext conftest.$ac_ext
24936 LIBS=$ac_func_search_save_LIBS
24938 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24939 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24940 if test "$ac_cv_search_lt_dlopen" != no; then
24941 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24943 cat >>confdefs.h <<\_ACEOF
24944 #define HAVE_LT_DLOPEN 1
24948 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24949 not be available" >&5
24950 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24951 not be available" >&2;}
24955 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24956 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24957 if test "${ac_cv_search_dlopen+set}" = set; then
24958 echo $ECHO_N "(cached) $ECHO_C" >&6
24960 ac_func_search_save_LIBS=$LIBS
24961 ac_cv_search_dlopen=no
24962 cat >conftest.$ac_ext <<_ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24969 /* Override any gcc2 internal prototype to avoid an error. */
24973 /* We use char because int might match the return type of a gcc2
24974 builtin and then its argument prototype would still apply. */
24984 rm -f conftest.$ac_objext conftest$ac_exeext
24985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24986 (eval $ac_link) 2>conftest.er1
24988 grep -v '^ *+' conftest.er1 >conftest.err
24990 cat conftest.err >&5
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); } &&
24993 { ac_try='test -z "$ac_c_werror_flag"
24994 || test ! -s conftest.err'
24995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); }; } &&
25000 { ac_try='test -s conftest$ac_exeext'
25001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002 (eval $ac_try) 2>&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); }; }; then
25006 ac_cv_search_dlopen="none required"
25008 echo "$as_me: failed program was:" >&5
25009 sed 's/^/| /' conftest.$ac_ext >&5
25012 rm -f conftest.err conftest.$ac_objext \
25013 conftest$ac_exeext conftest.$ac_ext
25014 if test "$ac_cv_search_dlopen" = no; then
25015 for ac_lib in dl; do
25016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25017 cat >conftest.$ac_ext <<_ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h. */
25024 /* Override any gcc2 internal prototype to avoid an error. */
25028 /* We use char because int might match the return type of a gcc2
25029 builtin and then its argument prototype would still apply. */
25039 rm -f conftest.$ac_objext conftest$ac_exeext
25040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25041 (eval $ac_link) 2>conftest.er1
25043 grep -v '^ *+' conftest.er1 >conftest.err
25045 cat conftest.err >&5
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } &&
25048 { ac_try='test -z "$ac_c_werror_flag"
25049 || test ! -s conftest.err'
25050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051 (eval $ac_try) 2>&5
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); }; } &&
25055 { ac_try='test -s conftest$ac_exeext'
25056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25057 (eval $ac_try) 2>&5
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); }; }; then
25061 ac_cv_search_dlopen="-l$ac_lib"
25064 echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25068 rm -f conftest.err conftest.$ac_objext \
25069 conftest$ac_exeext conftest.$ac_ext
25072 LIBS=$ac_func_search_save_LIBS
25074 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25075 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25076 if test "$ac_cv_search_dlopen" != no; then
25077 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25079 cat >>confdefs.h <<\_ACEOF
25080 #define HAVE_DLOPEN 1
25084 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25085 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25089 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25090 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25091 if test "${ac_cv_search_mallinfo+set}" = set; then
25092 echo $ECHO_N "(cached) $ECHO_C" >&6
25094 ac_func_search_save_LIBS=$LIBS
25095 ac_cv_search_mallinfo=no
25096 cat >conftest.$ac_ext <<_ACEOF
25099 cat confdefs.h >>conftest.$ac_ext
25100 cat >>conftest.$ac_ext <<_ACEOF
25101 /* end confdefs.h. */
25103 /* Override any gcc2 internal prototype to avoid an error. */
25107 /* We use char because int might match the return type of a gcc2
25108 builtin and then its argument prototype would still apply. */
25118 rm -f conftest.$ac_objext conftest$ac_exeext
25119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25120 (eval $ac_link) 2>conftest.er1
25122 grep -v '^ *+' conftest.er1 >conftest.err
25124 cat conftest.err >&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } &&
25127 { ac_try='test -z "$ac_c_werror_flag"
25128 || test ! -s conftest.err'
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; } &&
25134 { ac_try='test -s conftest$ac_exeext'
25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; }; then
25140 ac_cv_search_mallinfo="none required"
25142 echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.$ac_ext >&5
25146 rm -f conftest.err conftest.$ac_objext \
25147 conftest$ac_exeext conftest.$ac_ext
25148 if test "$ac_cv_search_mallinfo" = no; then
25149 for ac_lib in malloc; do
25150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25151 cat >conftest.$ac_ext <<_ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h. */
25158 /* Override any gcc2 internal prototype to avoid an error. */
25162 /* We use char because int might match the return type of a gcc2
25163 builtin and then its argument prototype would still apply. */
25173 rm -f conftest.$ac_objext conftest$ac_exeext
25174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25175 (eval $ac_link) 2>conftest.er1
25177 grep -v '^ *+' conftest.er1 >conftest.err
25179 cat conftest.err >&5
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } &&
25182 { ac_try='test -z "$ac_c_werror_flag"
25183 || test ! -s conftest.err'
25184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185 (eval $ac_try) 2>&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; } &&
25189 { ac_try='test -s conftest$ac_exeext'
25190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25191 (eval $ac_try) 2>&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); }; }; then
25195 ac_cv_search_mallinfo="-l$ac_lib"
25198 echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25202 rm -f conftest.err conftest.$ac_objext \
25203 conftest$ac_exeext conftest.$ac_ext
25206 LIBS=$ac_func_search_save_LIBS
25208 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25209 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25210 if test "$ac_cv_search_mallinfo" != no; then
25211 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25213 cat >>confdefs.h <<\_ACEOF
25214 #define HAVE_MALLINFO 1
25220 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25221 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25222 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25223 echo $ECHO_N "(cached) $ECHO_C" >&6
25225 ac_func_search_save_LIBS=$LIBS
25226 ac_cv_search_pthread_mutex_lock=no
25227 cat >conftest.$ac_ext <<_ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h. */
25234 /* Override any gcc2 internal prototype to avoid an error. */
25238 /* We use char because int might match the return type of a gcc2
25239 builtin and then its argument prototype would still apply. */
25240 char pthread_mutex_lock ();
25244 pthread_mutex_lock ();
25249 rm -f conftest.$ac_objext conftest$ac_exeext
25250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25251 (eval $ac_link) 2>conftest.er1
25253 grep -v '^ *+' conftest.er1 >conftest.err
25255 cat conftest.err >&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } &&
25258 { ac_try='test -z "$ac_c_werror_flag"
25259 || test ! -s conftest.err'
25260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261 (eval $ac_try) 2>&5
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); }; } &&
25265 { ac_try='test -s conftest$ac_exeext'
25266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267 (eval $ac_try) 2>&5
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; }; then
25271 ac_cv_search_pthread_mutex_lock="none required"
25273 echo "$as_me: failed program was:" >&5
25274 sed 's/^/| /' conftest.$ac_ext >&5
25277 rm -f conftest.err conftest.$ac_objext \
25278 conftest$ac_exeext conftest.$ac_ext
25279 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25280 for ac_lib in pthread; do
25281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25282 cat >conftest.$ac_ext <<_ACEOF
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h. */
25289 /* Override any gcc2 internal prototype to avoid an error. */
25293 /* We use char because int might match the return type of a gcc2
25294 builtin and then its argument prototype would still apply. */
25295 char pthread_mutex_lock ();
25299 pthread_mutex_lock ();
25304 rm -f conftest.$ac_objext conftest$ac_exeext
25305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25306 (eval $ac_link) 2>conftest.er1
25308 grep -v '^ *+' conftest.er1 >conftest.err
25310 cat conftest.err >&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); } &&
25313 { ac_try='test -z "$ac_c_werror_flag"
25314 || test ! -s conftest.err'
25315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25316 (eval $ac_try) 2>&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); }; } &&
25320 { ac_try='test -s conftest$ac_exeext'
25321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25322 (eval $ac_try) 2>&5
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); }; }; then
25326 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25329 echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25333 rm -f conftest.err conftest.$ac_objext \
25334 conftest$ac_exeext conftest.$ac_ext
25337 LIBS=$ac_func_search_save_LIBS
25339 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25340 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25341 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25342 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25344 cat >>confdefs.h <<\_ACEOF
25345 #define HAVE_PTHREAD_MUTEX_LOCK 1
25357 ac_header_dirent=no
25358 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25359 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25360 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25361 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25363 echo $ECHO_N "(cached) $ECHO_C" >&6
25365 cat >conftest.$ac_ext <<_ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h. */
25371 #include <sys/types.h>
25383 rm -f conftest.$ac_objext
25384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25385 (eval $ac_compile) 2>conftest.er1
25387 grep -v '^ *+' conftest.er1 >conftest.err
25389 cat conftest.err >&5
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } &&
25392 { ac_try='test -z "$ac_c_werror_flag"
25393 || test ! -s conftest.err'
25394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25395 (eval $ac_try) 2>&5
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); }; } &&
25399 { ac_try='test -s conftest.$ac_objext'
25400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401 (eval $ac_try) 2>&5
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; }; then
25405 eval "$as_ac_Header=yes"
25407 echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25410 eval "$as_ac_Header=no"
25412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25417 cat >>confdefs.h <<_ACEOF
25418 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25421 ac_header_dirent=$ac_hdr; break
25425 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25426 if test $ac_header_dirent = dirent.h; then
25427 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25428 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25429 if test "${ac_cv_search_opendir+set}" = set; then
25430 echo $ECHO_N "(cached) $ECHO_C" >&6
25432 ac_func_search_save_LIBS=$LIBS
25433 ac_cv_search_opendir=no
25434 cat >conftest.$ac_ext <<_ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h. */
25441 /* Override any gcc2 internal prototype to avoid an error. */
25445 /* We use char because int might match the return type of a gcc2
25446 builtin and then its argument prototype would still apply. */
25456 rm -f conftest.$ac_objext conftest$ac_exeext
25457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458 (eval $ac_link) 2>conftest.er1
25460 grep -v '^ *+' conftest.er1 >conftest.err
25462 cat conftest.err >&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); } &&
25465 { ac_try='test -z "$ac_c_werror_flag"
25466 || test ! -s conftest.err'
25467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468 (eval $ac_try) 2>&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); }; } &&
25472 { ac_try='test -s conftest$ac_exeext'
25473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474 (eval $ac_try) 2>&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); }; }; then
25478 ac_cv_search_opendir="none required"
25480 echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25484 rm -f conftest.err conftest.$ac_objext \
25485 conftest$ac_exeext conftest.$ac_ext
25486 if test "$ac_cv_search_opendir" = no; then
25487 for ac_lib in dir; do
25488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25489 cat >conftest.$ac_ext <<_ACEOF
25492 cat confdefs.h >>conftest.$ac_ext
25493 cat >>conftest.$ac_ext <<_ACEOF
25494 /* end confdefs.h. */
25496 /* Override any gcc2 internal prototype to avoid an error. */
25500 /* We use char because int might match the return type of a gcc2
25501 builtin and then its argument prototype would still apply. */
25511 rm -f conftest.$ac_objext conftest$ac_exeext
25512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25513 (eval $ac_link) 2>conftest.er1
25515 grep -v '^ *+' conftest.er1 >conftest.err
25517 cat conftest.err >&5
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); } &&
25520 { ac_try='test -z "$ac_c_werror_flag"
25521 || test ! -s conftest.err'
25522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25523 (eval $ac_try) 2>&5
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); }; } &&
25527 { ac_try='test -s conftest$ac_exeext'
25528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529 (eval $ac_try) 2>&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); }; }; then
25533 ac_cv_search_opendir="-l$ac_lib"
25536 echo "$as_me: failed program was:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25540 rm -f conftest.err conftest.$ac_objext \
25541 conftest$ac_exeext conftest.$ac_ext
25544 LIBS=$ac_func_search_save_LIBS
25546 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25547 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25548 if test "$ac_cv_search_opendir" != no; then
25549 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25554 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25555 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25556 if test "${ac_cv_search_opendir+set}" = set; then
25557 echo $ECHO_N "(cached) $ECHO_C" >&6
25559 ac_func_search_save_LIBS=$LIBS
25560 ac_cv_search_opendir=no
25561 cat >conftest.$ac_ext <<_ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h. */
25568 /* Override any gcc2 internal prototype to avoid an error. */
25572 /* We use char because int might match the return type of a gcc2
25573 builtin and then its argument prototype would still apply. */
25583 rm -f conftest.$ac_objext conftest$ac_exeext
25584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25585 (eval $ac_link) 2>conftest.er1
25587 grep -v '^ *+' conftest.er1 >conftest.err
25589 cat conftest.err >&5
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } &&
25592 { ac_try='test -z "$ac_c_werror_flag"
25593 || test ! -s conftest.err'
25594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595 (eval $ac_try) 2>&5
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; } &&
25599 { ac_try='test -s conftest$ac_exeext'
25600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601 (eval $ac_try) 2>&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }; }; then
25605 ac_cv_search_opendir="none required"
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25611 rm -f conftest.err conftest.$ac_objext \
25612 conftest$ac_exeext conftest.$ac_ext
25613 if test "$ac_cv_search_opendir" = no; then
25614 for ac_lib in x; do
25615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25616 cat >conftest.$ac_ext <<_ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25623 /* Override any gcc2 internal prototype to avoid an error. */
25627 /* We use char because int might match the return type of a gcc2
25628 builtin and then its argument prototype would still apply. */
25638 rm -f conftest.$ac_objext conftest$ac_exeext
25639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25640 (eval $ac_link) 2>conftest.er1
25642 grep -v '^ *+' conftest.er1 >conftest.err
25644 cat conftest.err >&5
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); } &&
25647 { ac_try='test -z "$ac_c_werror_flag"
25648 || test ! -s conftest.err'
25649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25650 (eval $ac_try) 2>&5
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); }; } &&
25654 { ac_try='test -s conftest$ac_exeext'
25655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656 (eval $ac_try) 2>&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); }; }; then
25660 ac_cv_search_opendir="-l$ac_lib"
25663 echo "$as_me: failed program was:" >&5
25664 sed 's/^/| /' conftest.$ac_ext >&5
25667 rm -f conftest.err conftest.$ac_objext \
25668 conftest$ac_exeext conftest.$ac_ext
25671 LIBS=$ac_func_search_save_LIBS
25673 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25674 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25675 if test "$ac_cv_search_opendir" != no; then
25676 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25682 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25683 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25684 if test "${ac_cv_header_mmap_anon+set}" = set; then
25685 echo $ECHO_N "(cached) $ECHO_C" >&6
25688 ac_cpp='$CPP $CPPFLAGS'
25689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25693 cat >conftest.$ac_ext <<_ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h. */
25699 #include <sys/mman.h>
25700 #include <unistd.h>
25705 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25710 rm -f conftest.$ac_objext
25711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25712 (eval $ac_compile) 2>conftest.er1
25714 grep -v '^ *+' conftest.er1 >conftest.err
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } &&
25719 { ac_try='test -z "$ac_c_werror_flag"
25720 || test ! -s conftest.err'
25721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722 (eval $ac_try) 2>&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); }; } &&
25726 { ac_try='test -s conftest.$ac_objext'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 ac_cv_header_mmap_anon=yes
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25737 ac_cv_header_mmap_anon=no
25739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25741 ac_cpp='$CPP $CPPFLAGS'
25742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25748 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25749 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25750 if test "$ac_cv_header_mmap_anon" = yes; then
25752 cat >>confdefs.h <<\_ACEOF
25753 #define HAVE_MMAP_ANONYMOUS 1
25758 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25759 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25760 if test "${ac_cv_header_stat_broken+set}" = set; then
25761 echo $ECHO_N "(cached) $ECHO_C" >&6
25763 cat >conftest.$ac_ext <<_ACEOF
25766 cat confdefs.h >>conftest.$ac_ext
25767 cat >>conftest.$ac_ext <<_ACEOF
25768 /* end confdefs.h. */
25769 #include <sys/types.h>
25770 #include <sys/stat.h>
25772 #if defined(S_ISBLK) && defined(S_IFDIR)
25773 # if S_ISBLK (S_IFDIR)
25778 #if defined(S_ISBLK) && defined(S_IFCHR)
25779 # if S_ISBLK (S_IFCHR)
25784 #if defined(S_ISLNK) && defined(S_IFREG)
25785 # if S_ISLNK (S_IFREG)
25790 #if defined(S_ISSOCK) && defined(S_IFREG)
25791 # if S_ISSOCK (S_IFREG)
25797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25798 $EGREP "You lose" >/dev/null 2>&1; then
25799 ac_cv_header_stat_broken=yes
25801 ac_cv_header_stat_broken=no
25806 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25807 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25808 if test $ac_cv_header_stat_broken = yes; then
25810 cat >>confdefs.h <<\_ACEOF
25811 #define STAT_MACROS_BROKEN 1
25816 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25818 if test "${ac_cv_header_stdc+set}" = set; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
25821 cat >conftest.$ac_ext <<_ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h. */
25827 #include <stdlib.h>
25828 #include <stdarg.h>
25829 #include <string.h>
25840 rm -f conftest.$ac_objext
25841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25842 (eval $ac_compile) 2>conftest.er1
25844 grep -v '^ *+' conftest.er1 >conftest.err
25846 cat conftest.err >&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); } &&
25849 { ac_try='test -z "$ac_c_werror_flag"
25850 || test ! -s conftest.err'
25851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); }; } &&
25856 { ac_try='test -s conftest.$ac_objext'
25857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858 (eval $ac_try) 2>&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); }; }; then
25862 ac_cv_header_stdc=yes
25864 echo "$as_me: failed program was:" >&5
25865 sed 's/^/| /' conftest.$ac_ext >&5
25867 ac_cv_header_stdc=no
25869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25871 if test $ac_cv_header_stdc = yes; then
25872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25873 cat >conftest.$ac_ext <<_ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h. */
25879 #include <string.h>
25882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25883 $EGREP "memchr" >/dev/null 2>&1; then
25886 ac_cv_header_stdc=no
25892 if test $ac_cv_header_stdc = yes; then
25893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25894 cat >conftest.$ac_ext <<_ACEOF
25897 cat confdefs.h >>conftest.$ac_ext
25898 cat >>conftest.$ac_ext <<_ACEOF
25899 /* end confdefs.h. */
25900 #include <stdlib.h>
25903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25904 $EGREP "free" >/dev/null 2>&1; then
25907 ac_cv_header_stdc=no
25913 if test $ac_cv_header_stdc = yes; then
25914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25915 if test "$cross_compiling" = yes; then
25918 cat >conftest.$ac_ext <<_ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h. */
25925 #if ((' ' & 0x0FF) == 0x020)
25926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25929 # define ISLOWER(c) \
25930 (('a' <= (c) && (c) <= 'i') \
25931 || ('j' <= (c) && (c) <= 'r') \
25932 || ('s' <= (c) && (c) <= 'z'))
25933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25941 for (i = 0; i < 256; i++)
25942 if (XOR (islower (i), ISLOWER (i))
25943 || toupper (i) != TOUPPER (i))
25948 rm -f conftest$ac_exeext
25949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25950 (eval $ac_link) 2>&5
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25955 (eval $ac_try) 2>&5
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); }; }; then
25961 echo "$as_me: program exited with status $ac_status" >&5
25962 echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25965 ( exit $ac_status )
25966 ac_cv_header_stdc=no
25968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25972 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25973 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25974 if test $ac_cv_header_stdc = yes; then
25976 cat >>confdefs.h <<\_ACEOF
25977 #define STDC_HEADERS 1
25982 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25983 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25984 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25985 echo $ECHO_N "(cached) $ECHO_C" >&6
25987 cat >conftest.$ac_ext <<_ACEOF
25990 cat confdefs.h >>conftest.$ac_ext
25991 cat >>conftest.$ac_ext <<_ACEOF
25992 /* end confdefs.h. */
25993 #include <sys/types.h>
25994 #include <sys/wait.h>
25995 #ifndef WEXITSTATUS
25996 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25999 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26007 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26012 rm -f conftest.$ac_objext
26013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26014 (eval $ac_compile) 2>conftest.er1
26016 grep -v '^ *+' conftest.er1 >conftest.err
26018 cat conftest.err >&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); } &&
26021 { ac_try='test -z "$ac_c_werror_flag"
26022 || test ! -s conftest.err'
26023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024 (eval $ac_try) 2>&5
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); }; } &&
26028 { ac_try='test -s conftest.$ac_objext'
26029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26030 (eval $ac_try) 2>&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); }; }; then
26034 ac_cv_header_sys_wait_h=yes
26036 echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26039 ac_cv_header_sys_wait_h=no
26041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26043 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26044 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26045 if test $ac_cv_header_sys_wait_h = yes; then
26047 cat >>confdefs.h <<\_ACEOF
26048 #define HAVE_SYS_WAIT_H 1
26053 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26054 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26055 if test "${ac_cv_header_time+set}" = set; then
26056 echo $ECHO_N "(cached) $ECHO_C" >&6
26058 cat >conftest.$ac_ext <<_ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h. */
26064 #include <sys/types.h>
26065 #include <sys/time.h>
26071 if ((struct tm *) 0)
26077 rm -f conftest.$ac_objext
26078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26079 (eval $ac_compile) 2>conftest.er1
26081 grep -v '^ *+' conftest.er1 >conftest.err
26083 cat conftest.err >&5
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); } &&
26086 { ac_try='test -z "$ac_c_werror_flag"
26087 || test ! -s conftest.err'
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; } &&
26093 { ac_try='test -s conftest.$ac_objext'
26094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095 (eval $ac_try) 2>&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; }; then
26099 ac_cv_header_time=yes
26101 echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26104 ac_cv_header_time=no
26106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26108 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26109 echo "${ECHO_T}$ac_cv_header_time" >&6
26110 if test $ac_cv_header_time = yes; then
26112 cat >>confdefs.h <<\_ACEOF
26113 #define TIME_WITH_SYS_TIME 1
26125 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26129 echo "$as_me:$LINENO: checking for $ac_header" >&5
26130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26132 echo $ECHO_N "(cached) $ECHO_C" >&6
26134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26137 # Is the header compilable?
26138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26140 cat >conftest.$ac_ext <<_ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h. */
26146 $ac_includes_default
26147 #include <$ac_header>
26149 rm -f conftest.$ac_objext
26150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26151 (eval $ac_compile) 2>conftest.er1
26153 grep -v '^ *+' conftest.er1 >conftest.err
26155 cat conftest.err >&5
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); } &&
26158 { ac_try='test -z "$ac_c_werror_flag"
26159 || test ! -s conftest.err'
26160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26161 (eval $ac_try) 2>&5
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); }; } &&
26165 { ac_try='test -s conftest.$ac_objext'
26166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167 (eval $ac_try) 2>&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); }; }; then
26171 ac_header_compiler=yes
26173 echo "$as_me: failed program was:" >&5
26174 sed 's/^/| /' conftest.$ac_ext >&5
26176 ac_header_compiler=no
26178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26180 echo "${ECHO_T}$ac_header_compiler" >&6
26182 # Is the header present?
26183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26185 cat >conftest.$ac_ext <<_ACEOF
26188 cat confdefs.h >>conftest.$ac_ext
26189 cat >>conftest.$ac_ext <<_ACEOF
26190 /* end confdefs.h. */
26191 #include <$ac_header>
26193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26196 grep -v '^ *+' conftest.er1 >conftest.err
26198 cat conftest.err >&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); } >/dev/null; then
26201 if test -s conftest.err; then
26202 ac_cpp_err=$ac_c_preproc_warn_flag
26203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26210 if test -z "$ac_cpp_err"; then
26211 ac_header_preproc=yes
26213 echo "$as_me: failed program was:" >&5
26214 sed 's/^/| /' conftest.$ac_ext >&5
26216 ac_header_preproc=no
26218 rm -f conftest.err conftest.$ac_ext
26219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26220 echo "${ECHO_T}$ac_header_preproc" >&6
26222 # So? What about this header?
26223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26229 ac_header_preproc=yes
26232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26246 ## ----------------------------------- ##
26247 ## Report this to llvmbugs@cs.uiuc.edu ##
26248 ## ----------------------------------- ##
26251 sed "s/^/$as_me: WARNING: /" >&2
26254 echo "$as_me:$LINENO: checking for $ac_header" >&5
26255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26257 echo $ECHO_N "(cached) $ECHO_C" >&6
26259 eval "$as_ac_Header=\$ac_header_preproc"
26261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26266 cat >>confdefs.h <<_ACEOF
26267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26280 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26284 echo "$as_me:$LINENO: checking for $ac_header" >&5
26285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26287 echo $ECHO_N "(cached) $ECHO_C" >&6
26289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26292 # Is the header compilable?
26293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26295 cat >conftest.$ac_ext <<_ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h. */
26301 $ac_includes_default
26302 #include <$ac_header>
26304 rm -f conftest.$ac_objext
26305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26306 (eval $ac_compile) 2>conftest.er1
26308 grep -v '^ *+' conftest.er1 >conftest.err
26310 cat conftest.err >&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } &&
26313 { ac_try='test -z "$ac_c_werror_flag"
26314 || test ! -s conftest.err'
26315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316 (eval $ac_try) 2>&5
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); }; } &&
26320 { ac_try='test -s conftest.$ac_objext'
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; }; then
26326 ac_header_compiler=yes
26328 echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26331 ac_header_compiler=no
26333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26335 echo "${ECHO_T}$ac_header_compiler" >&6
26337 # Is the header present?
26338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26340 cat >conftest.$ac_ext <<_ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h. */
26346 #include <$ac_header>
26348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26351 grep -v '^ *+' conftest.er1 >conftest.err
26353 cat conftest.err >&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } >/dev/null; then
26356 if test -s conftest.err; then
26357 ac_cpp_err=$ac_c_preproc_warn_flag
26358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26365 if test -z "$ac_cpp_err"; then
26366 ac_header_preproc=yes
26368 echo "$as_me: failed program was:" >&5
26369 sed 's/^/| /' conftest.$ac_ext >&5
26371 ac_header_preproc=no
26373 rm -f conftest.err conftest.$ac_ext
26374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26375 echo "${ECHO_T}$ac_header_preproc" >&6
26377 # So? What about this header?
26378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26384 ac_header_preproc=yes
26387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26401 ## ----------------------------------- ##
26402 ## Report this to llvmbugs@cs.uiuc.edu ##
26403 ## ----------------------------------- ##
26406 sed "s/^/$as_me: WARNING: /" >&2
26409 echo "$as_me:$LINENO: checking for $ac_header" >&5
26410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26412 echo $ECHO_N "(cached) $ECHO_C" >&6
26414 eval "$as_ac_Header=\$ac_header_preproc"
26416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26421 cat >>confdefs.h <<_ACEOF
26422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26434 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26438 echo "$as_me:$LINENO: checking for $ac_header" >&5
26439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26446 # Is the header compilable?
26447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26449 cat >conftest.$ac_ext <<_ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h. */
26455 $ac_includes_default
26456 #include <$ac_header>
26458 rm -f conftest.$ac_objext
26459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26460 (eval $ac_compile) 2>conftest.er1
26462 grep -v '^ *+' conftest.er1 >conftest.err
26464 cat conftest.err >&5
26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); } &&
26467 { ac_try='test -z "$ac_c_werror_flag"
26468 || test ! -s conftest.err'
26469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26470 (eval $ac_try) 2>&5
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); }; } &&
26474 { ac_try='test -s conftest.$ac_objext'
26475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476 (eval $ac_try) 2>&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; }; then
26480 ac_header_compiler=yes
26482 echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26485 ac_header_compiler=no
26487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26489 echo "${ECHO_T}$ac_header_compiler" >&6
26491 # Is the header present?
26492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26494 cat >conftest.$ac_ext <<_ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h. */
26500 #include <$ac_header>
26502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26505 grep -v '^ *+' conftest.er1 >conftest.err
26507 cat conftest.err >&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } >/dev/null; then
26510 if test -s conftest.err; then
26511 ac_cpp_err=$ac_c_preproc_warn_flag
26512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26519 if test -z "$ac_cpp_err"; then
26520 ac_header_preproc=yes
26522 echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26525 ac_header_preproc=no
26527 rm -f conftest.err conftest.$ac_ext
26528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26529 echo "${ECHO_T}$ac_header_preproc" >&6
26531 # So? What about this header?
26532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26538 ac_header_preproc=yes
26541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26555 ## ----------------------------------- ##
26556 ## Report this to llvmbugs@cs.uiuc.edu ##
26557 ## ----------------------------------- ##
26560 sed "s/^/$as_me: WARNING: /" >&2
26563 echo "$as_me:$LINENO: checking for $ac_header" >&5
26564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26566 echo $ECHO_N "(cached) $ECHO_C" >&6
26568 eval "$as_ac_Header=\$ac_header_preproc"
26570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26575 cat >>confdefs.h <<_ACEOF
26576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26585 echo "$as_me:$LINENO: checking for pid_t" >&5
26586 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26587 if test "${ac_cv_type_pid_t+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26590 cat >conftest.$ac_ext <<_ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h. */
26596 $ac_includes_default
26602 if (sizeof (pid_t))
26608 rm -f conftest.$ac_objext
26609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26610 (eval $ac_compile) 2>conftest.er1
26612 grep -v '^ *+' conftest.er1 >conftest.err
26614 cat conftest.err >&5
26615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); } &&
26617 { ac_try='test -z "$ac_c_werror_flag"
26618 || test ! -s conftest.err'
26619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620 (eval $ac_try) 2>&5
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); }; } &&
26624 { ac_try='test -s conftest.$ac_objext'
26625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26626 (eval $ac_try) 2>&5
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); }; }; then
26630 ac_cv_type_pid_t=yes
26632 echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26635 ac_cv_type_pid_t=no
26637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26639 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26640 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26641 if test $ac_cv_type_pid_t = yes; then
26645 cat >>confdefs.h <<_ACEOF
26651 echo "$as_me:$LINENO: checking for size_t" >&5
26652 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26653 if test "${ac_cv_type_size_t+set}" = set; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26656 cat >conftest.$ac_ext <<_ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h. */
26662 $ac_includes_default
26668 if (sizeof (size_t))
26674 rm -f conftest.$ac_objext
26675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26676 (eval $ac_compile) 2>conftest.er1
26678 grep -v '^ *+' conftest.er1 >conftest.err
26680 cat conftest.err >&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } &&
26683 { ac_try='test -z "$ac_c_werror_flag"
26684 || test ! -s conftest.err'
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; } &&
26690 { ac_try='test -s conftest.$ac_objext'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 ac_cv_type_size_t=yes
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26701 ac_cv_type_size_t=no
26703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26705 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26706 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26707 if test $ac_cv_type_size_t = yes; then
26711 cat >>confdefs.h <<_ACEOF
26712 #define size_t unsigned
26717 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26718 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26719 if test "${ac_cv_type_signal+set}" = set; then
26720 echo $ECHO_N "(cached) $ECHO_C" >&6
26722 cat >conftest.$ac_ext <<_ACEOF
26725 cat confdefs.h >>conftest.$ac_ext
26726 cat >>conftest.$ac_ext <<_ACEOF
26727 /* end confdefs.h. */
26728 #include <sys/types.h>
26729 #include <signal.h>
26734 extern "C" void (*signal (int, void (*)(int)))(int);
26736 void (*signal ()) ();
26747 rm -f conftest.$ac_objext
26748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26749 (eval $ac_compile) 2>conftest.er1
26751 grep -v '^ *+' conftest.er1 >conftest.err
26753 cat conftest.err >&5
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } &&
26756 { ac_try='test -z "$ac_c_werror_flag"
26757 || test ! -s conftest.err'
26758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759 (eval $ac_try) 2>&5
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; } &&
26763 { ac_try='test -s conftest.$ac_objext'
26764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26765 (eval $ac_try) 2>&5
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); }; }; then
26769 ac_cv_type_signal=void
26771 echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26774 ac_cv_type_signal=int
26776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26778 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26779 echo "${ECHO_T}$ac_cv_type_signal" >&6
26781 cat >>confdefs.h <<_ACEOF
26782 #define RETSIGTYPE $ac_cv_type_signal
26786 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26787 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26788 if test "${ac_cv_struct_tm+set}" = set; then
26789 echo $ECHO_N "(cached) $ECHO_C" >&6
26791 cat >conftest.$ac_ext <<_ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h. */
26797 #include <sys/types.h>
26803 struct tm *tp; tp->tm_sec;
26808 rm -f conftest.$ac_objext
26809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26810 (eval $ac_compile) 2>conftest.er1
26812 grep -v '^ *+' conftest.er1 >conftest.err
26814 cat conftest.err >&5
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); } &&
26817 { ac_try='test -z "$ac_c_werror_flag"
26818 || test ! -s conftest.err'
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; } &&
26824 { ac_try='test -s conftest.$ac_objext'
26825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26826 (eval $ac_try) 2>&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); }; }; then
26830 ac_cv_struct_tm=time.h
26832 echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26835 ac_cv_struct_tm=sys/time.h
26837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26839 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26840 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26841 if test $ac_cv_struct_tm = sys/time.h; then
26843 cat >>confdefs.h <<\_ACEOF
26844 #define TM_IN_SYS_TIME 1
26849 echo "$as_me:$LINENO: checking for int64_t" >&5
26850 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26851 if test "${ac_cv_type_int64_t+set}" = set; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26854 cat >conftest.$ac_ext <<_ACEOF
26857 cat confdefs.h >>conftest.$ac_ext
26858 cat >>conftest.$ac_ext <<_ACEOF
26859 /* end confdefs.h. */
26860 $ac_includes_default
26866 if (sizeof (int64_t))
26872 rm -f conftest.$ac_objext
26873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26874 (eval $ac_compile) 2>conftest.er1
26876 grep -v '^ *+' conftest.er1 >conftest.err
26878 cat conftest.err >&5
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); } &&
26881 { ac_try='test -z "$ac_c_werror_flag"
26882 || test ! -s conftest.err'
26883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884 (eval $ac_try) 2>&5
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); }; } &&
26888 { ac_try='test -s conftest.$ac_objext'
26889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890 (eval $ac_try) 2>&5
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); }; }; then
26894 ac_cv_type_int64_t=yes
26896 echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26899 ac_cv_type_int64_t=no
26901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26903 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26904 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26905 if test $ac_cv_type_int64_t = yes; then
26907 cat >>confdefs.h <<_ACEOF
26908 #define HAVE_INT64_T 1
26913 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26914 echo "$as_me: error: Type int64_t required but not found" >&2;}
26915 { (exit 1); exit 1; }; }
26918 echo "$as_me:$LINENO: checking for uint64_t" >&5
26919 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26920 if test "${ac_cv_type_uint64_t+set}" = set; then
26921 echo $ECHO_N "(cached) $ECHO_C" >&6
26923 cat >conftest.$ac_ext <<_ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26929 $ac_includes_default
26933 if ((uint64_t *) 0)
26935 if (sizeof (uint64_t))
26941 rm -f conftest.$ac_objext
26942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26943 (eval $ac_compile) 2>conftest.er1
26945 grep -v '^ *+' conftest.er1 >conftest.err
26947 cat conftest.err >&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); } &&
26950 { ac_try='test -z "$ac_c_werror_flag"
26951 || test ! -s conftest.err'
26952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953 (eval $ac_try) 2>&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); }; } &&
26957 { ac_try='test -s conftest.$ac_objext'
26958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26959 (eval $ac_try) 2>&5
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; }; then
26963 ac_cv_type_uint64_t=yes
26965 echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26968 ac_cv_type_uint64_t=no
26970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26972 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26973 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26974 if test $ac_cv_type_uint64_t = yes; then
26976 cat >>confdefs.h <<_ACEOF
26977 #define HAVE_UINT64_T 1
26982 echo "$as_me:$LINENO: checking for u_int64_t" >&5
26983 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26984 if test "${ac_cv_type_u_int64_t+set}" = set; then
26985 echo $ECHO_N "(cached) $ECHO_C" >&6
26987 cat >conftest.$ac_ext <<_ACEOF
26990 cat confdefs.h >>conftest.$ac_ext
26991 cat >>conftest.$ac_ext <<_ACEOF
26992 /* end confdefs.h. */
26993 $ac_includes_default
26997 if ((u_int64_t *) 0)
26999 if (sizeof (u_int64_t))
27005 rm -f conftest.$ac_objext
27006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27007 (eval $ac_compile) 2>conftest.er1
27009 grep -v '^ *+' conftest.er1 >conftest.err
27011 cat conftest.err >&5
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); } &&
27014 { ac_try='test -z "$ac_c_werror_flag"
27015 || test ! -s conftest.err'
27016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017 (eval $ac_try) 2>&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; } &&
27021 { ac_try='test -s conftest.$ac_objext'
27022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023 (eval $ac_try) 2>&5
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; }; then
27027 ac_cv_type_u_int64_t=yes
27029 echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27032 ac_cv_type_u_int64_t=no
27034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27036 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27037 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27038 if test $ac_cv_type_u_int64_t = yes; then
27040 cat >>confdefs.h <<_ACEOF
27041 #define HAVE_U_INT64_T 1
27046 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27047 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27048 { (exit 1); exit 1; }; }
27061 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27064 echo "$as_me:$LINENO: checking for $ac_func" >&5
27065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27066 if eval "test \"\${$as_ac_var+set}\" = set"; then
27067 echo $ECHO_N "(cached) $ECHO_C" >&6
27069 cat >conftest.$ac_ext <<_ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h. */
27075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27077 #define $ac_func innocuous_$ac_func
27079 /* System header to define __stub macros and hopefully few prototypes,
27080 which can conflict with char $ac_func (); below.
27081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27082 <limits.h> exists even on freestanding compilers. */
27085 # include <limits.h>
27087 # include <assert.h>
27092 /* Override any gcc2 internal prototype to avoid an error. */
27097 /* We use char because int might match the return type of a gcc2
27098 builtin and then its argument prototype would still apply. */
27100 /* The GNU C library defines this for functions which it implements
27101 to always fail with ENOSYS. Some functions are actually named
27102 something starting with __ and the normal name is an alias. */
27103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27106 char (*f) () = $ac_func;
27115 return f != $ac_func;
27120 rm -f conftest.$ac_objext conftest$ac_exeext
27121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27122 (eval $ac_link) 2>conftest.er1
27124 grep -v '^ *+' conftest.er1 >conftest.err
27126 cat conftest.err >&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); } &&
27129 { ac_try='test -z "$ac_c_werror_flag"
27130 || test ! -s conftest.err'
27131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132 (eval $ac_try) 2>&5
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; } &&
27136 { ac_try='test -s conftest$ac_exeext'
27137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27138 (eval $ac_try) 2>&5
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); }; }; then
27142 eval "$as_ac_var=yes"
27144 echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27147 eval "$as_ac_var=no"
27149 rm -f conftest.err conftest.$ac_objext \
27150 conftest$ac_exeext conftest.$ac_ext
27152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27154 if test `eval echo '${'$as_ac_var'}'` = yes; then
27155 cat >>confdefs.h <<_ACEOF
27156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27165 for ac_func in mkdtemp mkstemp mktemp
27167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27168 echo "$as_me:$LINENO: checking for $ac_func" >&5
27169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27170 if eval "test \"\${$as_ac_var+set}\" = set"; then
27171 echo $ECHO_N "(cached) $ECHO_C" >&6
27173 cat >conftest.$ac_ext <<_ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h. */
27179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27181 #define $ac_func innocuous_$ac_func
27183 /* System header to define __stub macros and hopefully few prototypes,
27184 which can conflict with char $ac_func (); below.
27185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27186 <limits.h> exists even on freestanding compilers. */
27189 # include <limits.h>
27191 # include <assert.h>
27196 /* Override any gcc2 internal prototype to avoid an error. */
27201 /* We use char because int might match the return type of a gcc2
27202 builtin and then its argument prototype would still apply. */
27204 /* The GNU C library defines this for functions which it implements
27205 to always fail with ENOSYS. Some functions are actually named
27206 something starting with __ and the normal name is an alias. */
27207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27210 char (*f) () = $ac_func;
27219 return f != $ac_func;
27224 rm -f conftest.$ac_objext conftest$ac_exeext
27225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27226 (eval $ac_link) 2>conftest.er1
27228 grep -v '^ *+' conftest.er1 >conftest.err
27230 cat conftest.err >&5
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); } &&
27233 { ac_try='test -z "$ac_c_werror_flag"
27234 || test ! -s conftest.err'
27235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236 (eval $ac_try) 2>&5
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); }; } &&
27240 { ac_try='test -s conftest$ac_exeext'
27241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242 (eval $ac_try) 2>&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); }; }; then
27246 eval "$as_ac_var=yes"
27248 echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27251 eval "$as_ac_var=no"
27253 rm -f conftest.err conftest.$ac_objext \
27254 conftest$ac_exeext conftest.$ac_ext
27256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27258 if test `eval echo '${'$as_ac_var'}'` = yes; then
27259 cat >>confdefs.h <<_ACEOF
27260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27273 for ac_func in realpath setrlimit strdup strerror strerror_r strtoll strtoq
27275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27276 echo "$as_me:$LINENO: checking for $ac_func" >&5
27277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27278 if eval "test \"\${$as_ac_var+set}\" = set"; then
27279 echo $ECHO_N "(cached) $ECHO_C" >&6
27281 cat >conftest.$ac_ext <<_ACEOF
27284 cat confdefs.h >>conftest.$ac_ext
27285 cat >>conftest.$ac_ext <<_ACEOF
27286 /* end confdefs.h. */
27287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27289 #define $ac_func innocuous_$ac_func
27291 /* System header to define __stub macros and hopefully few prototypes,
27292 which can conflict with char $ac_func (); below.
27293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27294 <limits.h> exists even on freestanding compilers. */
27297 # include <limits.h>
27299 # include <assert.h>
27304 /* Override any gcc2 internal prototype to avoid an error. */
27309 /* We use char because int might match the return type of a gcc2
27310 builtin and then its argument prototype would still apply. */
27312 /* The GNU C library defines this for functions which it implements
27313 to always fail with ENOSYS. Some functions are actually named
27314 something starting with __ and the normal name is an alias. */
27315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27318 char (*f) () = $ac_func;
27327 return f != $ac_func;
27332 rm -f conftest.$ac_objext conftest$ac_exeext
27333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27334 (eval $ac_link) 2>conftest.er1
27336 grep -v '^ *+' conftest.er1 >conftest.err
27338 cat conftest.err >&5
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); } &&
27341 { ac_try='test -z "$ac_c_werror_flag"
27342 || test ! -s conftest.err'
27343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27344 (eval $ac_try) 2>&5
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); }; } &&
27348 { ac_try='test -s conftest$ac_exeext'
27349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350 (eval $ac_try) 2>&5
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); }; }; then
27354 eval "$as_ac_var=yes"
27356 echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27359 eval "$as_ac_var=no"
27361 rm -f conftest.err conftest.$ac_objext \
27362 conftest$ac_exeext conftest.$ac_ext
27364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27366 if test `eval echo '${'$as_ac_var'}'` = yes; then
27367 cat >>confdefs.h <<_ACEOF
27368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27375 for ac_func in sysconf
27377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27378 echo "$as_me:$LINENO: checking for $ac_func" >&5
27379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27380 if eval "test \"\${$as_ac_var+set}\" = set"; then
27381 echo $ECHO_N "(cached) $ECHO_C" >&6
27383 cat >conftest.$ac_ext <<_ACEOF
27386 cat confdefs.h >>conftest.$ac_ext
27387 cat >>conftest.$ac_ext <<_ACEOF
27388 /* end confdefs.h. */
27389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27391 #define $ac_func innocuous_$ac_func
27393 /* System header to define __stub macros and hopefully few prototypes,
27394 which can conflict with char $ac_func (); below.
27395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27396 <limits.h> exists even on freestanding compilers. */
27399 # include <limits.h>
27401 # include <assert.h>
27406 /* Override any gcc2 internal prototype to avoid an error. */
27411 /* We use char because int might match the return type of a gcc2
27412 builtin and then its argument prototype would still apply. */
27414 /* The GNU C library defines this for functions which it implements
27415 to always fail with ENOSYS. Some functions are actually named
27416 something starting with __ and the normal name is an alias. */
27417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27420 char (*f) () = $ac_func;
27429 return f != $ac_func;
27434 rm -f conftest.$ac_objext conftest$ac_exeext
27435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27436 (eval $ac_link) 2>conftest.er1
27438 grep -v '^ *+' conftest.er1 >conftest.err
27440 cat conftest.err >&5
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); } &&
27443 { ac_try='test -z "$ac_c_werror_flag"
27444 || test ! -s conftest.err'
27445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446 (eval $ac_try) 2>&5
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); }; } &&
27450 { ac_try='test -s conftest$ac_exeext'
27451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452 (eval $ac_try) 2>&5
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); }; }; then
27456 eval "$as_ac_var=yes"
27458 echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27461 eval "$as_ac_var=no"
27463 rm -f conftest.err conftest.$ac_objext \
27464 conftest$ac_exeext conftest.$ac_ext
27466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27468 if test `eval echo '${'$as_ac_var'}'` = yes; then
27469 cat >>confdefs.h <<_ACEOF
27470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27476 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27477 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27478 if test "${llvm_cv_c_printf_a+set}" = set; then
27479 echo $ECHO_N "(cached) $ECHO_C" >&6
27482 ac_cpp='$CPP $CPPFLAGS'
27483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27487 if test "$cross_compiling" = yes; then
27488 llvmac_cv_c_printf_a=no
27490 cat >conftest.$ac_ext <<_ACEOF
27494 cat confdefs.h >>conftest.$ac_ext
27495 cat >>conftest.$ac_ext <<_ACEOF
27496 /* end confdefs.h. */
27499 #include <stdlib.h>
27505 volatile double A, B;
27509 sprintf(Buffer, "%a", A);
27513 if (A != 0x1.999999999999ap-4)
27520 rm -f conftest$ac_exeext
27521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27522 (eval $ac_link) 2>&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; }; then
27531 llvm_cv_c_printf_a=yes
27533 echo "$as_me: program exited with status $ac_status" >&5
27534 echo "$as_me: failed program was:" >&5
27535 sed 's/^/| /' conftest.$ac_ext >&5
27537 ( exit $ac_status )
27538 llvmac_cv_c_printf_a=no
27540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27543 ac_cpp='$CPP $CPPFLAGS'
27544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27549 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27550 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27551 if test "$llvm_cv_c_printf_a" = "yes"; then
27553 cat >>confdefs.h <<\_ACEOF
27554 #define HAVE_PRINTF_A 1
27559 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27560 # for constant arguments. Useless!
27561 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27562 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27563 if test "${ac_cv_working_alloca_h+set}" = set; then
27564 echo $ECHO_N "(cached) $ECHO_C" >&6
27566 cat >conftest.$ac_ext <<_ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h. */
27572 #include <alloca.h>
27576 char *p = (char *) alloca (2 * sizeof (int));
27581 rm -f conftest.$ac_objext conftest$ac_exeext
27582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27583 (eval $ac_link) 2>conftest.er1
27585 grep -v '^ *+' conftest.er1 >conftest.err
27587 cat conftest.err >&5
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); } &&
27590 { ac_try='test -z "$ac_c_werror_flag"
27591 || test ! -s conftest.err'
27592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27593 (eval $ac_try) 2>&5
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); }; } &&
27597 { ac_try='test -s conftest$ac_exeext'
27598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599 (eval $ac_try) 2>&5
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); }; }; then
27603 ac_cv_working_alloca_h=yes
27605 echo "$as_me: failed program was:" >&5
27606 sed 's/^/| /' conftest.$ac_ext >&5
27608 ac_cv_working_alloca_h=no
27610 rm -f conftest.err conftest.$ac_objext \
27611 conftest$ac_exeext conftest.$ac_ext
27613 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27614 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27615 if test $ac_cv_working_alloca_h = yes; then
27617 cat >>confdefs.h <<\_ACEOF
27618 #define HAVE_ALLOCA_H 1
27623 echo "$as_me:$LINENO: checking for alloca" >&5
27624 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27625 if test "${ac_cv_func_alloca_works+set}" = set; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27628 cat >conftest.$ac_ext <<_ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h. */
27635 # define alloca __builtin_alloca
27638 # include <malloc.h>
27639 # define alloca _alloca
27642 # include <alloca.h>
27647 # ifndef alloca /* predefined by HP cc +Olibcalls */
27658 char *p = (char *) alloca (1);
27663 rm -f conftest.$ac_objext conftest$ac_exeext
27664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27665 (eval $ac_link) 2>conftest.er1
27667 grep -v '^ *+' conftest.er1 >conftest.err
27669 cat conftest.err >&5
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); } &&
27672 { ac_try='test -z "$ac_c_werror_flag"
27673 || test ! -s conftest.err'
27674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27675 (eval $ac_try) 2>&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); }; } &&
27679 { ac_try='test -s conftest$ac_exeext'
27680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27681 (eval $ac_try) 2>&5
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); }; }; then
27685 ac_cv_func_alloca_works=yes
27687 echo "$as_me: failed program was:" >&5
27688 sed 's/^/| /' conftest.$ac_ext >&5
27690 ac_cv_func_alloca_works=no
27692 rm -f conftest.err conftest.$ac_objext \
27693 conftest$ac_exeext conftest.$ac_ext
27695 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27696 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27698 if test $ac_cv_func_alloca_works = yes; then
27700 cat >>confdefs.h <<\_ACEOF
27701 #define HAVE_ALLOCA 1
27705 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27706 # that cause trouble. Some versions do not even contain alloca or
27707 # contain a buggy version. If you still want to use their alloca,
27708 # use ar to extract alloca.o from them instead of compiling alloca.c.
27710 ALLOCA=alloca.$ac_objext
27712 cat >>confdefs.h <<\_ACEOF
27717 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27718 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27719 if test "${ac_cv_os_cray+set}" = set; then
27720 echo $ECHO_N "(cached) $ECHO_C" >&6
27722 cat >conftest.$ac_ext <<_ACEOF
27725 cat confdefs.h >>conftest.$ac_ext
27726 cat >>conftest.$ac_ext <<_ACEOF
27727 /* end confdefs.h. */
27728 #if defined(CRAY) && ! defined(CRAY2)
27735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27736 $EGREP "webecray" >/dev/null 2>&1; then
27744 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27745 echo "${ECHO_T}$ac_cv_os_cray" >&6
27746 if test $ac_cv_os_cray = yes; then
27747 for ac_func in _getb67 GETB67 getb67; do
27748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27749 echo "$as_me:$LINENO: checking for $ac_func" >&5
27750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27751 if eval "test \"\${$as_ac_var+set}\" = set"; then
27752 echo $ECHO_N "(cached) $ECHO_C" >&6
27754 cat >conftest.$ac_ext <<_ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h. */
27760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27762 #define $ac_func innocuous_$ac_func
27764 /* System header to define __stub macros and hopefully few prototypes,
27765 which can conflict with char $ac_func (); below.
27766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27767 <limits.h> exists even on freestanding compilers. */
27770 # include <limits.h>
27772 # include <assert.h>
27777 /* Override any gcc2 internal prototype to avoid an error. */
27782 /* We use char because int might match the return type of a gcc2
27783 builtin and then its argument prototype would still apply. */
27785 /* The GNU C library defines this for functions which it implements
27786 to always fail with ENOSYS. Some functions are actually named
27787 something starting with __ and the normal name is an alias. */
27788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27791 char (*f) () = $ac_func;
27800 return f != $ac_func;
27805 rm -f conftest.$ac_objext conftest$ac_exeext
27806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27807 (eval $ac_link) 2>conftest.er1
27809 grep -v '^ *+' conftest.er1 >conftest.err
27811 cat conftest.err >&5
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); } &&
27814 { ac_try='test -z "$ac_c_werror_flag"
27815 || test ! -s conftest.err'
27816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817 (eval $ac_try) 2>&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); }; } &&
27821 { ac_try='test -s conftest$ac_exeext'
27822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27823 (eval $ac_try) 2>&5
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; }; then
27827 eval "$as_ac_var=yes"
27829 echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27832 eval "$as_ac_var=no"
27834 rm -f conftest.err conftest.$ac_objext \
27835 conftest$ac_exeext conftest.$ac_ext
27837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27839 if test `eval echo '${'$as_ac_var'}'` = yes; then
27841 cat >>confdefs.h <<_ACEOF
27842 #define CRAY_STACKSEG_END $ac_func
27851 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27852 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27853 if test "${ac_cv_c_stack_direction+set}" = set; then
27854 echo $ECHO_N "(cached) $ECHO_C" >&6
27856 if test "$cross_compiling" = yes; then
27857 ac_cv_c_stack_direction=0
27859 cat >conftest.$ac_ext <<_ACEOF
27862 cat confdefs.h >>conftest.$ac_ext
27863 cat >>conftest.$ac_ext <<_ACEOF
27864 /* end confdefs.h. */
27866 find_stack_direction ()
27868 static char *addr = 0;
27873 return find_stack_direction ();
27876 return (&dummy > addr) ? 1 : -1;
27882 exit (find_stack_direction () < 0);
27885 rm -f conftest$ac_exeext
27886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27887 (eval $ac_link) 2>&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27892 (eval $ac_try) 2>&5
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); }; }; then
27896 ac_cv_c_stack_direction=1
27898 echo "$as_me: program exited with status $ac_status" >&5
27899 echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27902 ( exit $ac_status )
27903 ac_cv_c_stack_direction=-1
27905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27908 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27909 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27911 cat >>confdefs.h <<_ACEOF
27912 #define STACK_DIRECTION $ac_cv_c_stack_direction
27919 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27920 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27921 if test "${ac_cv_func_rand48+set}" = set; then
27922 echo $ECHO_N "(cached) $ECHO_C" >&6
27925 ac_cpp='$CXXCPP $CPPFLAGS'
27926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27930 cat >conftest.$ac_ext <<_ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h. */
27936 #include <stdlib.h>
27940 srand48(0);lrand48();drand48();
27945 rm -f conftest.$ac_objext
27946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27947 (eval $ac_compile) 2>conftest.er1
27949 grep -v '^ *+' conftest.er1 >conftest.err
27951 cat conftest.err >&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); } &&
27954 { ac_try='test -z "$ac_cxx_werror_flag"
27955 || test ! -s conftest.err'
27956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957 (eval $ac_try) 2>&5
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); }; } &&
27961 { ac_try='test -s conftest.$ac_objext'
27962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963 (eval $ac_try) 2>&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; }; then
27967 ac_cv_func_rand48=yes
27969 echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27972 ac_cv_func_rand48=no
27974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27976 ac_cpp='$CPP $CPPFLAGS'
27977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27982 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27983 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27985 if test "$ac_cv_func_rand48" = "yes" ; then
27987 cat >>confdefs.h <<\_ACEOF
27988 #define HAVE_RAND48 1
27994 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27995 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27996 if test "${ac_cv_cxx_namespaces+set}" = set; then
27997 echo $ECHO_N "(cached) $ECHO_C" >&6
28000 ac_cpp='$CXXCPP $CPPFLAGS'
28001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28005 cat >conftest.$ac_ext <<_ACEOF
28008 cat confdefs.h >>conftest.$ac_ext
28009 cat >>conftest.$ac_ext <<_ACEOF
28010 /* end confdefs.h. */
28011 namespace Outer { namespace Inner { int i = 0; }}
28015 using namespace Outer::Inner; return i;
28020 rm -f conftest.$ac_objext
28021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28022 (eval $ac_compile) 2>conftest.er1
28024 grep -v '^ *+' conftest.er1 >conftest.err
28026 cat conftest.err >&5
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); } &&
28029 { ac_try='test -z "$ac_cxx_werror_flag"
28030 || test ! -s conftest.err'
28031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032 (eval $ac_try) 2>&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); }; } &&
28036 { ac_try='test -s conftest.$ac_objext'
28037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28038 (eval $ac_try) 2>&5
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); }; }; then
28042 ac_cv_cxx_namespaces=yes
28044 echo "$as_me: failed program was:" >&5
28045 sed 's/^/| /' conftest.$ac_ext >&5
28047 ac_cv_cxx_namespaces=no
28049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28051 ac_cpp='$CPP $CPPFLAGS'
28052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28058 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28059 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28060 if test "$ac_cv_cxx_namespaces" = yes; then
28062 cat >>confdefs.h <<\_ACEOF
28063 #define HAVE_NAMESPACES
28068 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28069 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28070 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28071 echo $ECHO_N "(cached) $ECHO_C" >&6
28075 ac_cpp='$CXXCPP $CPPFLAGS'
28076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28080 cat >conftest.$ac_ext <<_ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h. */
28086 #include <ext/hash_map>
28087 #ifdef HAVE_NAMESPACES
28088 using namespace std;
28093 hash_map<int, int> t;
28098 rm -f conftest.$ac_objext
28099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28100 (eval $ac_compile) 2>conftest.er1
28102 grep -v '^ *+' conftest.er1 >conftest.err
28104 cat conftest.err >&5
28105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106 (exit $ac_status); } &&
28107 { ac_try='test -z "$ac_cxx_werror_flag"
28108 || test ! -s conftest.err'
28109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28110 (eval $ac_try) 2>&5
28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113 (exit $ac_status); }; } &&
28114 { ac_try='test -s conftest.$ac_objext'
28115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28116 (eval $ac_try) 2>&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); }; }; then
28120 ac_cv_cxx_have_std_ext_hash_map=yes
28122 echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28125 ac_cv_cxx_have_std_ext_hash_map=no
28127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28129 ac_cpp='$CPP $CPPFLAGS'
28130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28135 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28136 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28137 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28140 cat >>confdefs.h <<\_ACEOF
28141 #define HAVE_STD_EXT_HASH_MAP 1
28146 cat >>confdefs.h <<\_ACEOF
28147 #define HAVE_STD_EXT_HASH_MAP 0
28152 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28153 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28154 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28155 echo $ECHO_N "(cached) $ECHO_C" >&6
28159 ac_cpp='$CXXCPP $CPPFLAGS'
28160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28164 cat >conftest.$ac_ext <<_ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h. */
28170 #include <ext/hash_map>
28171 #ifdef HAVE_NAMESPACES
28172 using namespace __gnu_cxx;
28177 hash_map<int,int> t;
28182 rm -f conftest.$ac_objext
28183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28184 (eval $ac_compile) 2>conftest.er1
28186 grep -v '^ *+' conftest.er1 >conftest.err
28188 cat conftest.err >&5
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); } &&
28191 { ac_try='test -z "$ac_cxx_werror_flag"
28192 || test ! -s conftest.err'
28193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194 (eval $ac_try) 2>&5
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; } &&
28198 { ac_try='test -s conftest.$ac_objext'
28199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200 (eval $ac_try) 2>&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; }; then
28204 ac_cv_cxx_have_gnu_ext_hash_map=yes
28206 echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28209 ac_cv_cxx_have_gnu_ext_hash_map=no
28211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28213 ac_cpp='$CPP $CPPFLAGS'
28214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28219 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28220 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28221 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28224 cat >>confdefs.h <<\_ACEOF
28225 #define HAVE_GNU_EXT_HASH_MAP 1
28230 cat >>confdefs.h <<\_ACEOF
28231 #define HAVE_GNU_EXT_HASH_MAP 0
28236 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28237 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28238 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28239 echo $ECHO_N "(cached) $ECHO_C" >&6
28243 ac_cpp='$CXXCPP $CPPFLAGS'
28244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28248 cat >conftest.$ac_ext <<_ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h. */
28254 #include <hash_map>
28258 hash_map<int,int> t;
28263 rm -f conftest.$ac_objext
28264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28265 (eval $ac_compile) 2>conftest.er1
28267 grep -v '^ *+' conftest.er1 >conftest.err
28269 cat conftest.err >&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); } &&
28272 { ac_try='test -z "$ac_cxx_werror_flag"
28273 || test ! -s conftest.err'
28274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28275 (eval $ac_try) 2>&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; } &&
28279 { ac_try='test -s conftest.$ac_objext'
28280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281 (eval $ac_try) 2>&5
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; }; then
28285 ac_cv_cxx_have_global_hash_map=yes
28287 echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28290 ac_cv_cxx_have_global_hash_map=no
28292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28294 ac_cpp='$CPP $CPPFLAGS'
28295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28300 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28301 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28302 if test "$ac_cv_cxx_have_global_hash_map" = yes
28305 cat >>confdefs.h <<\_ACEOF
28306 #define HAVE_GLOBAL_HASH_MAP 1
28311 cat >>confdefs.h <<\_ACEOF
28312 #define HAVE_GLOBAL_HASH_MAP 0
28317 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28318 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28319 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28320 echo $ECHO_N "(cached) $ECHO_C" >&6
28324 ac_cpp='$CXXCPP $CPPFLAGS'
28325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28329 cat >conftest.$ac_ext <<_ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h. */
28335 #include <ext/hash_set>
28336 #ifdef HAVE_NAMESPACES
28337 using namespace std;
28347 rm -f conftest.$ac_objext
28348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28349 (eval $ac_compile) 2>conftest.er1
28351 grep -v '^ *+' conftest.er1 >conftest.err
28353 cat conftest.err >&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } &&
28356 { ac_try='test -z "$ac_cxx_werror_flag"
28357 || test ! -s conftest.err'
28358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359 (eval $ac_try) 2>&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; } &&
28363 { ac_try='test -s conftest.$ac_objext'
28364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 ac_cv_cxx_have_std_ext_hash_set=yes
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28374 ac_cv_cxx_have_std_ext_hash_set=no
28376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28378 ac_cpp='$CPP $CPPFLAGS'
28379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28384 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28385 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28386 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28389 cat >>confdefs.h <<\_ACEOF
28390 #define HAVE_STD_EXT_HASH_SET 1
28395 cat >>confdefs.h <<\_ACEOF
28396 #define HAVE_STD_EXT_HASH_SET 0
28401 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28402 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28403 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28404 echo $ECHO_N "(cached) $ECHO_C" >&6
28408 ac_cpp='$CXXCPP $CPPFLAGS'
28409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28413 cat >conftest.$ac_ext <<_ACEOF
28416 cat confdefs.h >>conftest.$ac_ext
28417 cat >>conftest.$ac_ext <<_ACEOF
28418 /* end confdefs.h. */
28419 #include <ext/hash_set>
28420 #ifdef HAVE_NAMESPACES
28421 using namespace __gnu_cxx;
28431 rm -f conftest.$ac_objext
28432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28433 (eval $ac_compile) 2>conftest.er1
28435 grep -v '^ *+' conftest.er1 >conftest.err
28437 cat conftest.err >&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } &&
28440 { ac_try='test -z "$ac_cxx_werror_flag"
28441 || test ! -s conftest.err'
28442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28443 (eval $ac_try) 2>&5
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); }; } &&
28447 { ac_try='test -s conftest.$ac_objext'
28448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449 (eval $ac_try) 2>&5
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; }; then
28453 ac_cv_cxx_have_gnu_ext_hash_set=yes
28455 echo "$as_me: failed program was:" >&5
28456 sed 's/^/| /' conftest.$ac_ext >&5
28458 ac_cv_cxx_have_gnu_ext_hash_set=no
28460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28462 ac_cpp='$CPP $CPPFLAGS'
28463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28468 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28469 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28470 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28473 cat >>confdefs.h <<\_ACEOF
28474 #define HAVE_GNU_EXT_HASH_SET 1
28479 cat >>confdefs.h <<\_ACEOF
28480 #define HAVE_GNU_EXT_HASH_SET 0
28485 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28486 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28487 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28488 echo $ECHO_N "(cached) $ECHO_C" >&6
28492 ac_cpp='$CXXCPP $CPPFLAGS'
28493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28497 cat >conftest.$ac_ext <<_ACEOF
28500 cat confdefs.h >>conftest.$ac_ext
28501 cat >>conftest.$ac_ext <<_ACEOF
28502 /* end confdefs.h. */
28503 #include <hash_set>
28507 hash_set<int> t; return 0;
28512 rm -f conftest.$ac_objext
28513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28514 (eval $ac_compile) 2>conftest.er1
28516 grep -v '^ *+' conftest.er1 >conftest.err
28518 cat conftest.err >&5
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); } &&
28521 { ac_try='test -z "$ac_cxx_werror_flag"
28522 || test ! -s conftest.err'
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; } &&
28528 { ac_try='test -s conftest.$ac_objext'
28529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530 (eval $ac_try) 2>&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; }; then
28534 ac_cv_cxx_have_global_hash_set=yes
28536 echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28539 ac_cv_cxx_have_global_hash_set=no
28541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28543 ac_cpp='$CPP $CPPFLAGS'
28544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28549 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28550 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28551 if test "$ac_cv_cxx_have_global_hash_set" = yes
28554 cat >>confdefs.h <<\_ACEOF
28555 #define HAVE_GLOBAL_HASH_SET 1
28560 cat >>confdefs.h <<\_ACEOF
28561 #define HAVE_GLOBAL_HASH_SET 0
28566 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28567 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28568 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28569 echo $ECHO_N "(cached) $ECHO_C" >&6
28573 ac_cpp='$CXXCPP $CPPFLAGS'
28574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28578 cat >conftest.$ac_ext <<_ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h. */
28584 #include <iterator>
28585 #ifdef HAVE_NAMESPACES
28586 using namespace std;
28591 iterator<int,int,int> t; return 0;
28596 rm -f conftest.$ac_objext
28597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28598 (eval $ac_compile) 2>conftest.er1
28600 grep -v '^ *+' conftest.er1 >conftest.err
28602 cat conftest.err >&5
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); } &&
28605 { ac_try='test -z "$ac_cxx_werror_flag"
28606 || test ! -s conftest.err'
28607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28608 (eval $ac_try) 2>&5
28610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); }; } &&
28612 { ac_try='test -s conftest.$ac_objext'
28613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614 (eval $ac_try) 2>&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; }; then
28618 ac_cv_cxx_have_std_iterator=yes
28620 echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28623 ac_cv_cxx_have_std_iterator=no
28625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28627 ac_cpp='$CPP $CPPFLAGS'
28628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28634 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28635 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28636 if test "$ac_cv_cxx_have_std_iterator" = yes
28639 cat >>confdefs.h <<\_ACEOF
28640 #define HAVE_STD_ITERATOR 1
28645 cat >>confdefs.h <<\_ACEOF
28646 #define HAVE_STD_ITERATOR 0
28651 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28652 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28653 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28654 echo $ECHO_N "(cached) $ECHO_C" >&6
28658 ac_cpp='$CXXCPP $CPPFLAGS'
28659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28663 cat >conftest.$ac_ext <<_ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h. */
28669 #include <iterator>
28670 #ifdef HAVE_NAMESPACES
28671 using namespace std;
28676 bidirectional_iterator<int,int> t; return 0;
28681 rm -f conftest.$ac_objext
28682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28683 (eval $ac_compile) 2>conftest.er1
28685 grep -v '^ *+' conftest.er1 >conftest.err
28687 cat conftest.err >&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); } &&
28690 { ac_try='test -z "$ac_cxx_werror_flag"
28691 || test ! -s conftest.err'
28692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693 (eval $ac_try) 2>&5
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; } &&
28697 { ac_try='test -s conftest.$ac_objext'
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; }; then
28703 ac_cv_cxx_have_bi_iterator=yes
28705 echo "$as_me: failed program was:" >&5
28706 sed 's/^/| /' conftest.$ac_ext >&5
28708 ac_cv_cxx_have_bi_iterator=no
28710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28712 ac_cpp='$CPP $CPPFLAGS'
28713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28719 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28720 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28721 if test "$ac_cv_cxx_have_bi_iterator" = yes
28724 cat >>confdefs.h <<\_ACEOF
28725 #define HAVE_BI_ITERATOR 1
28730 cat >>confdefs.h <<\_ACEOF
28731 #define HAVE_BI_ITERATOR 0
28736 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28737 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28738 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28739 echo $ECHO_N "(cached) $ECHO_C" >&6
28743 ac_cpp='$CXXCPP $CPPFLAGS'
28744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28748 cat >conftest.$ac_ext <<_ACEOF
28751 cat confdefs.h >>conftest.$ac_ext
28752 cat >>conftest.$ac_ext <<_ACEOF
28753 /* end confdefs.h. */
28754 #include <iterator>
28755 #ifdef HAVE_NAMESPACES
28756 using namespace std;
28761 forward_iterator<int,int> t; return 0;
28766 rm -f conftest.$ac_objext
28767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28768 (eval $ac_compile) 2>conftest.er1
28770 grep -v '^ *+' conftest.er1 >conftest.err
28772 cat conftest.err >&5
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); } &&
28775 { ac_try='test -z "$ac_cxx_werror_flag"
28776 || test ! -s conftest.err'
28777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778 (eval $ac_try) 2>&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; } &&
28782 { ac_try='test -s conftest.$ac_objext'
28783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; }; then
28788 ac_cv_cxx_have_fwd_iterator=yes
28790 echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28793 ac_cv_cxx_have_fwd_iterator=no
28795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28797 ac_cpp='$CPP $CPPFLAGS'
28798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28804 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28805 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28806 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28809 cat >>confdefs.h <<\_ACEOF
28810 #define HAVE_FWD_ITERATOR 1
28815 cat >>confdefs.h <<\_ACEOF
28816 #define HAVE_FWD_ITERATOR 0
28822 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28823 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28824 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28825 echo $ECHO_N "(cached) $ECHO_C" >&6
28828 ac_cpp='$CXXCPP $CPPFLAGS'
28829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28833 cat >conftest.$ac_ext <<_ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h. */
28848 rm -f conftest.$ac_objext
28849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28850 (eval $ac_compile) 2>conftest.er1
28852 grep -v '^ *+' conftest.er1 >conftest.err
28854 cat conftest.err >&5
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); } &&
28857 { ac_try='test -z "$ac_cxx_werror_flag"
28858 || test ! -s conftest.err'
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; } &&
28864 { ac_try='test -s conftest.$ac_objext'
28865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866 (eval $ac_try) 2>&5
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 ac_cv_func_isnan_in_math_h=yes
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28875 ac_cv_func_isnan_in_math_h=no
28877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28879 ac_cpp='$CPP $CPPFLAGS'
28880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28885 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28886 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28889 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28891 cat >>confdefs.h <<\_ACEOF
28892 #define HAVE_ISNAN_IN_MATH_H 1
28897 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28898 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28899 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28900 echo $ECHO_N "(cached) $ECHO_C" >&6
28903 ac_cpp='$CXXCPP $CPPFLAGS'
28904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28908 cat >conftest.$ac_ext <<_ACEOF
28911 cat confdefs.h >>conftest.$ac_ext
28912 cat >>conftest.$ac_ext <<_ACEOF
28913 /* end confdefs.h. */
28923 rm -f conftest.$ac_objext
28924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28925 (eval $ac_compile) 2>conftest.er1
28927 grep -v '^ *+' conftest.er1 >conftest.err
28929 cat conftest.err >&5
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); } &&
28932 { ac_try='test -z "$ac_cxx_werror_flag"
28933 || test ! -s conftest.err'
28934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935 (eval $ac_try) 2>&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); }; } &&
28939 { ac_try='test -s conftest.$ac_objext'
28940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941 (eval $ac_try) 2>&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; }; then
28945 ac_cv_func_isnan_in_cmath=yes
28947 echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28950 ac_cv_func_isnan_in_cmath=no
28952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28954 ac_cpp='$CPP $CPPFLAGS'
28955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28960 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28961 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28963 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28965 cat >>confdefs.h <<\_ACEOF
28966 #define HAVE_ISNAN_IN_CMATH 1
28971 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28972 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28973 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28974 echo $ECHO_N "(cached) $ECHO_C" >&6
28977 ac_cpp='$CXXCPP $CPPFLAGS'
28978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28982 cat >conftest.$ac_ext <<_ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h. */
28992 float f; std::isnan(f);
28997 rm -f conftest.$ac_objext
28998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28999 (eval $ac_compile) 2>conftest.er1
29001 grep -v '^ *+' conftest.er1 >conftest.err
29003 cat conftest.err >&5
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); } &&
29006 { ac_try='test -z "$ac_cxx_werror_flag"
29007 || test ! -s conftest.err'
29008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29009 (eval $ac_try) 2>&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); }; } &&
29013 { ac_try='test -s conftest.$ac_objext'
29014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29015 (eval $ac_try) 2>&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); }; }; then
29019 ac_cv_func_std_isnan_in_cmath=yes
29021 echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29024 ac_cv_func_std_isnan_in_cmath=no
29026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29028 ac_cpp='$CPP $CPPFLAGS'
29029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29034 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29035 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29037 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29039 cat >>confdefs.h <<\_ACEOF
29040 #define HAVE_STD_ISNAN_IN_CMATH 1
29046 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29047 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29048 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29049 echo $ECHO_N "(cached) $ECHO_C" >&6
29052 ac_cpp='$CXXCPP $CPPFLAGS'
29053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29057 cat >conftest.$ac_ext <<_ACEOF
29060 cat confdefs.h >>conftest.$ac_ext
29061 cat >>conftest.$ac_ext <<_ACEOF
29062 /* end confdefs.h. */
29072 rm -f conftest.$ac_objext
29073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29074 (eval $ac_compile) 2>conftest.er1
29076 grep -v '^ *+' conftest.er1 >conftest.err
29078 cat conftest.err >&5
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); } &&
29081 { ac_try='test -z "$ac_cxx_werror_flag"
29082 || test ! -s conftest.err'
29083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29084 (eval $ac_try) 2>&5
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); }; } &&
29088 { ac_try='test -s conftest.$ac_objext'
29089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090 (eval $ac_try) 2>&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; }; then
29094 ac_cv_func_isinf_in_math_h=yes
29096 echo "$as_me: failed program was:" >&5
29097 sed 's/^/| /' conftest.$ac_ext >&5
29099 ac_cv_func_isinf_in_math_h=no
29101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29103 ac_cpp='$CPP $CPPFLAGS'
29104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29109 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29110 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29112 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29114 cat >>confdefs.h <<\_ACEOF
29115 #define HAVE_ISINF_IN_MATH_H 1
29120 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29121 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29122 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29123 echo $ECHO_N "(cached) $ECHO_C" >&6
29126 ac_cpp='$CXXCPP $CPPFLAGS'
29127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29131 cat >conftest.$ac_ext <<_ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h. */
29146 rm -f conftest.$ac_objext
29147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29148 (eval $ac_compile) 2>conftest.er1
29150 grep -v '^ *+' conftest.er1 >conftest.err
29152 cat conftest.err >&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } &&
29155 { ac_try='test -z "$ac_cxx_werror_flag"
29156 || test ! -s conftest.err'
29157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158 (eval $ac_try) 2>&5
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; } &&
29162 { ac_try='test -s conftest.$ac_objext'
29163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164 (eval $ac_try) 2>&5
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; }; then
29168 ac_cv_func_isinf_in_cmath=yes
29170 echo "$as_me: failed program was:" >&5
29171 sed 's/^/| /' conftest.$ac_ext >&5
29173 ac_cv_func_isinf_in_cmath=no
29175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29177 ac_cpp='$CPP $CPPFLAGS'
29178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29183 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29184 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29186 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29188 cat >>confdefs.h <<\_ACEOF
29189 #define HAVE_ISINF_IN_CMATH 1
29194 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29195 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29196 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29197 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 ac_cpp='$CXXCPP $CPPFLAGS'
29201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29205 cat >conftest.$ac_ext <<_ACEOF
29208 cat confdefs.h >>conftest.$ac_ext
29209 cat >>conftest.$ac_ext <<_ACEOF
29210 /* end confdefs.h. */
29215 float f; std::isinf(f)}
29220 rm -f conftest.$ac_objext
29221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29222 (eval $ac_compile) 2>conftest.er1
29224 grep -v '^ *+' conftest.er1 >conftest.err
29226 cat conftest.err >&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } &&
29229 { ac_try='test -z "$ac_cxx_werror_flag"
29230 || test ! -s conftest.err'
29231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232 (eval $ac_try) 2>&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; } &&
29236 { ac_try='test -s conftest.$ac_objext'
29237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238 (eval $ac_try) 2>&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; }; then
29242 ac_cv_func_std_isinf_in_cmath=yes
29244 echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29247 ac_cv_func_std_isinf_in_cmath=no
29249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29251 ac_cpp='$CPP $CPPFLAGS'
29252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29257 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29258 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29260 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29262 cat >>confdefs.h <<\_ACEOF
29263 #define HAVE_STD_ISINF_IN_CMATH 1
29268 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29269 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29270 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29271 echo $ECHO_N "(cached) $ECHO_C" >&6
29274 ac_cpp='$CXXCPP $CPPFLAGS'
29275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29279 cat >conftest.$ac_ext <<_ACEOF
29282 cat confdefs.h >>conftest.$ac_ext
29283 cat >>conftest.$ac_ext <<_ACEOF
29284 /* end confdefs.h. */
29285 #include <ieeefp.h>
29289 float f; finite(f);
29294 rm -f conftest.$ac_objext
29295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29296 (eval $ac_compile) 2>conftest.er1
29298 grep -v '^ *+' conftest.er1 >conftest.err
29300 cat conftest.err >&5
29301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302 (exit $ac_status); } &&
29303 { ac_try='test -z "$ac_cxx_werror_flag"
29304 || test ! -s conftest.err'
29305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29306 (eval $ac_try) 2>&5
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; } &&
29310 { ac_try='test -s conftest.$ac_objext'
29311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312 (eval $ac_try) 2>&5
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; }; then
29316 ac_cv_func_finite_in_ieeefp_h=yes
29318 echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29321 ac_cv_func_finite_in_ieeefp_h=no
29323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29325 ac_cpp='$CPP $CPPFLAGS'
29326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29331 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29332 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29334 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29336 cat >>confdefs.h <<\_ACEOF
29337 #define HAVE_FINITE_IN_IEEEFP_H 1
29346 for ac_header in stdlib.h unistd.h
29348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29350 echo "$as_me:$LINENO: checking for $ac_header" >&5
29351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29353 echo $ECHO_N "(cached) $ECHO_C" >&6
29355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29358 # Is the header compilable?
29359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29361 cat >conftest.$ac_ext <<_ACEOF
29364 cat confdefs.h >>conftest.$ac_ext
29365 cat >>conftest.$ac_ext <<_ACEOF
29366 /* end confdefs.h. */
29367 $ac_includes_default
29368 #include <$ac_header>
29370 rm -f conftest.$ac_objext
29371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29372 (eval $ac_compile) 2>conftest.er1
29374 grep -v '^ *+' conftest.er1 >conftest.err
29376 cat conftest.err >&5
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); } &&
29379 { ac_try='test -z "$ac_c_werror_flag"
29380 || test ! -s conftest.err'
29381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382 (eval $ac_try) 2>&5
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); }; } &&
29386 { ac_try='test -s conftest.$ac_objext'
29387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388 (eval $ac_try) 2>&5
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); }; }; then
29392 ac_header_compiler=yes
29394 echo "$as_me: failed program was:" >&5
29395 sed 's/^/| /' conftest.$ac_ext >&5
29397 ac_header_compiler=no
29399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29401 echo "${ECHO_T}$ac_header_compiler" >&6
29403 # Is the header present?
29404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29406 cat >conftest.$ac_ext <<_ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h. */
29412 #include <$ac_header>
29414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29417 grep -v '^ *+' conftest.er1 >conftest.err
29419 cat conftest.err >&5
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); } >/dev/null; then
29422 if test -s conftest.err; then
29423 ac_cpp_err=$ac_c_preproc_warn_flag
29424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29431 if test -z "$ac_cpp_err"; then
29432 ac_header_preproc=yes
29434 echo "$as_me: failed program was:" >&5
29435 sed 's/^/| /' conftest.$ac_ext >&5
29437 ac_header_preproc=no
29439 rm -f conftest.err conftest.$ac_ext
29440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29441 echo "${ECHO_T}$ac_header_preproc" >&6
29443 # So? What about this header?
29444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29450 ac_header_preproc=yes
29453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29467 ## ----------------------------------- ##
29468 ## Report this to llvmbugs@cs.uiuc.edu ##
29469 ## ----------------------------------- ##
29472 sed "s/^/$as_me: WARNING: /" >&2
29475 echo "$as_me:$LINENO: checking for $ac_header" >&5
29476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29478 echo $ECHO_N "(cached) $ECHO_C" >&6
29480 eval "$as_ac_Header=\$ac_header_preproc"
29482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29487 cat >>confdefs.h <<_ACEOF
29488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29496 for ac_func in getpagesize
29498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29499 echo "$as_me:$LINENO: checking for $ac_func" >&5
29500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29501 if eval "test \"\${$as_ac_var+set}\" = set"; then
29502 echo $ECHO_N "(cached) $ECHO_C" >&6
29504 cat >conftest.$ac_ext <<_ACEOF
29507 cat confdefs.h >>conftest.$ac_ext
29508 cat >>conftest.$ac_ext <<_ACEOF
29509 /* end confdefs.h. */
29510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29512 #define $ac_func innocuous_$ac_func
29514 /* System header to define __stub macros and hopefully few prototypes,
29515 which can conflict with char $ac_func (); below.
29516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29517 <limits.h> exists even on freestanding compilers. */
29520 # include <limits.h>
29522 # include <assert.h>
29527 /* Override any gcc2 internal prototype to avoid an error. */
29532 /* We use char because int might match the return type of a gcc2
29533 builtin and then its argument prototype would still apply. */
29535 /* The GNU C library defines this for functions which it implements
29536 to always fail with ENOSYS. Some functions are actually named
29537 something starting with __ and the normal name is an alias. */
29538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29541 char (*f) () = $ac_func;
29550 return f != $ac_func;
29555 rm -f conftest.$ac_objext conftest$ac_exeext
29556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29557 (eval $ac_link) 2>conftest.er1
29559 grep -v '^ *+' conftest.er1 >conftest.err
29561 cat conftest.err >&5
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); } &&
29564 { ac_try='test -z "$ac_c_werror_flag"
29565 || test ! -s conftest.err'
29566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29567 (eval $ac_try) 2>&5
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; } &&
29571 { ac_try='test -s conftest$ac_exeext'
29572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29573 (eval $ac_try) 2>&5
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; }; then
29577 eval "$as_ac_var=yes"
29579 echo "$as_me: failed program was:" >&5
29580 sed 's/^/| /' conftest.$ac_ext >&5
29582 eval "$as_ac_var=no"
29584 rm -f conftest.err conftest.$ac_objext \
29585 conftest$ac_exeext conftest.$ac_ext
29587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29589 if test `eval echo '${'$as_ac_var'}'` = yes; then
29590 cat >>confdefs.h <<_ACEOF
29591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29597 echo "$as_me:$LINENO: checking for working mmap" >&5
29598 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29599 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29600 echo $ECHO_N "(cached) $ECHO_C" >&6
29602 if test "$cross_compiling" = yes; then
29603 ac_cv_func_mmap_fixed_mapped=no
29605 cat >conftest.$ac_ext <<_ACEOF
29608 cat confdefs.h >>conftest.$ac_ext
29609 cat >>conftest.$ac_ext <<_ACEOF
29610 /* end confdefs.h. */
29611 $ac_includes_default
29612 /* malloc might have been renamed as rpl_malloc. */
29615 /* Thanks to Mike Haertel and Jim Avera for this test.
29616 Here is a matrix of mmap possibilities:
29617 mmap private not fixed
29618 mmap private fixed at somewhere currently unmapped
29619 mmap private fixed at somewhere already mapped
29620 mmap shared not fixed
29621 mmap shared fixed at somewhere currently unmapped
29622 mmap shared fixed at somewhere already mapped
29623 For private mappings, we should verify that changes cannot be read()
29624 back from the file, nor mmap's back from the file at a different
29625 address. (There have been systems where private was not correctly
29626 implemented like the infamous i386 svr4.0, and systems where the
29627 VM page cache was not coherent with the file system buffer cache
29628 like early versions of FreeBSD and possibly contemporary NetBSD.)
29629 For shared mappings, we should conversely verify that changes get
29630 propagated back to all the places they're supposed to be.
29632 Grep wants private fixed already mapped.
29633 The main things grep needs to know about mmap are:
29634 * does it exist and is it safe to write into the mmap'd area
29635 * how to use it (BSD variants) */
29638 #include <sys/mman.h>
29640 #if !STDC_HEADERS && !HAVE_STDLIB_H
29644 /* This mess was copied from the GNU getpagesize.h. */
29645 #if !HAVE_GETPAGESIZE
29646 /* Assume that all systems that can run configure have sys/param.h. */
29647 # if !HAVE_SYS_PARAM_H
29648 # define HAVE_SYS_PARAM_H 1
29651 # ifdef _SC_PAGESIZE
29652 # define getpagesize() sysconf(_SC_PAGESIZE)
29653 # else /* no _SC_PAGESIZE */
29654 # if HAVE_SYS_PARAM_H
29655 # include <sys/param.h>
29656 # ifdef EXEC_PAGESIZE
29657 # define getpagesize() EXEC_PAGESIZE
29658 # else /* no EXEC_PAGESIZE */
29660 # define getpagesize() NBPG * CLSIZE
29663 # endif /* no CLSIZE */
29664 # else /* no NBPG */
29666 # define getpagesize() NBPC
29667 # else /* no NBPC */
29669 # define getpagesize() PAGESIZE
29670 # endif /* PAGESIZE */
29671 # endif /* no NBPC */
29672 # endif /* no NBPG */
29673 # endif /* no EXEC_PAGESIZE */
29674 # else /* no HAVE_SYS_PARAM_H */
29675 # define getpagesize() 8192 /* punt totally */
29676 # endif /* no HAVE_SYS_PARAM_H */
29677 # endif /* no _SC_PAGESIZE */
29679 #endif /* no HAVE_GETPAGESIZE */
29684 char *data, *data2, *data3;
29688 pagesize = getpagesize ();
29690 /* First, make a file with some known garbage in it. */
29691 data = (char *) malloc (pagesize);
29694 for (i = 0; i < pagesize; ++i)
29695 *(data + i) = rand ();
29697 fd = creat ("conftest.mmap", 0600);
29700 if (write (fd, data, pagesize) != pagesize)
29704 /* Next, try to mmap the file at a fixed address which already has
29705 something else allocated at it. If we can, also make sure that
29706 we see the same garbage. */
29707 fd = open ("conftest.mmap", O_RDWR);
29710 data2 = (char *) malloc (2 * pagesize);
29713 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29714 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29715 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29717 for (i = 0; i < pagesize; ++i)
29718 if (*(data + i) != *(data2 + i))
29721 /* Finally, make sure that changes to the mapped area do not
29722 percolate back to the file as seen by read(). (This is a bug on
29723 some variants of i386 svr4.0.) */
29724 for (i = 0; i < pagesize; ++i)
29725 *(data2 + i) = *(data2 + i) + 1;
29726 data3 = (char *) malloc (pagesize);
29729 if (read (fd, data3, pagesize) != pagesize)
29731 for (i = 0; i < pagesize; ++i)
29732 if (*(data + i) != *(data3 + i))
29738 rm -f conftest$ac_exeext
29739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29740 (eval $ac_link) 2>&5
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29745 (eval $ac_try) 2>&5
29747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748 (exit $ac_status); }; }; then
29749 ac_cv_func_mmap_fixed_mapped=yes
29751 echo "$as_me: program exited with status $ac_status" >&5
29752 echo "$as_me: failed program was:" >&5
29753 sed 's/^/| /' conftest.$ac_ext >&5
29755 ( exit $ac_status )
29756 ac_cv_func_mmap_fixed_mapped=no
29758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29761 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29762 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29763 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29765 cat >>confdefs.h <<\_ACEOF
29766 #define HAVE_MMAP 1
29770 rm -f conftest.mmap
29772 echo "$as_me:$LINENO: checking for mmap of files" >&5
29773 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29774 if test "${ac_cv_func_mmap_file+set}" = set; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
29778 ac_cpp='$CPP $CPPFLAGS'
29779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29783 if test "$cross_compiling" = yes; then
29784 ac_cv_func_mmap_file=no
29786 cat >conftest.$ac_ext <<_ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h. */
29794 #include <sys/types.h>
29795 #include <sys/mman.h>
29803 fd = creat ("foo",0777);
29804 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29806 return (fd != (int) MAP_FAILED);
29811 rm -f conftest$ac_exeext
29812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29813 (eval $ac_link) 2>&5
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818 (eval $ac_try) 2>&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; }; then
29822 ac_cv_func_mmap_file=yes
29824 echo "$as_me: program exited with status $ac_status" >&5
29825 echo "$as_me: failed program was:" >&5
29826 sed 's/^/| /' conftest.$ac_ext >&5
29828 ( exit $ac_status )
29829 ac_cv_func_mmap_file=no
29831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29834 ac_cpp='$CPP $CPPFLAGS'
29835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29841 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29842 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29843 if test "$ac_cv_func_mmap_file" = yes; then
29845 cat >>confdefs.h <<\_ACEOF
29846 #define HAVE_MMAP_FILE
29853 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29854 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29855 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29856 echo $ECHO_N "(cached) $ECHO_C" >&6
29858 if test "$llvm_cv_os_type" == "Interix" ; then
29859 ac_cv_need_dev_zero_for_mmap=yes
29861 ac_cv_need_dev_zero_for_mmap=no
29865 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29866 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29867 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29869 cat >>confdefs.h <<\_ACEOF
29870 #define NEED_DEV_ZERO_FOR_MMAP 1
29874 echo "$as_me:$LINENO: checking for mprotect" >&5
29875 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29876 if test "${ac_cv_func_mprotect+set}" = set; then
29877 echo $ECHO_N "(cached) $ECHO_C" >&6
29879 cat >conftest.$ac_ext <<_ACEOF
29882 cat confdefs.h >>conftest.$ac_ext
29883 cat >>conftest.$ac_ext <<_ACEOF
29884 /* end confdefs.h. */
29885 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29887 #define mprotect innocuous_mprotect
29889 /* System header to define __stub macros and hopefully few prototypes,
29890 which can conflict with char mprotect (); below.
29891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29892 <limits.h> exists even on freestanding compilers. */
29895 # include <limits.h>
29897 # include <assert.h>
29902 /* Override any gcc2 internal prototype to avoid an error. */
29907 /* We use char because int might match the return type of a gcc2
29908 builtin and then its argument prototype would still apply. */
29910 /* The GNU C library defines this for functions which it implements
29911 to always fail with ENOSYS. Some functions are actually named
29912 something starting with __ and the normal name is an alias. */
29913 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29916 char (*f) () = mprotect;
29925 return f != mprotect;
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29932 (eval $ac_link) 2>conftest.er1
29934 grep -v '^ *+' conftest.er1 >conftest.err
29936 cat conftest.err >&5
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); } &&
29939 { ac_try='test -z "$ac_c_werror_flag"
29940 || test ! -s conftest.err'
29941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942 (eval $ac_try) 2>&5
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); }; } &&
29946 { ac_try='test -s conftest$ac_exeext'
29947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948 (eval $ac_try) 2>&5
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); }; }; then
29952 ac_cv_func_mprotect=yes
29954 echo "$as_me: failed program was:" >&5
29955 sed 's/^/| /' conftest.$ac_ext >&5
29957 ac_cv_func_mprotect=no
29959 rm -f conftest.err conftest.$ac_objext \
29960 conftest$ac_exeext conftest.$ac_ext
29962 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29963 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29964 if test $ac_cv_func_mprotect = yes; then
29967 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29968 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29969 { (exit 1); exit 1; }; }
29973 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29975 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29976 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29978 if test "$ac_cv_func_mmap_file" = "no"
29980 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29981 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29985 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29986 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29987 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29988 echo $ECHO_N "(cached) $ECHO_C" >&6
29990 llvm_cv_llvmgcc_sanity="no"
29991 if test -x "$LLVMGCC" ; then
29992 cp /dev/null conftest.c
29993 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29994 if test $? -eq 0 ; then
29995 llvm_cv_llvmgcc_sanity="yes"
30000 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30001 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30003 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30004 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30005 LLVMCC1=$llvmcc1path
30007 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30008 LLVMCC1PLUS=$llvmcc1pluspath
30010 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30011 LLVMGCCDIR=$llvmgccdir
30015 SHLIBEXT=$libltdl_cv_shlibext
30018 # Translate the various configuration directories and other basic
30019 # information into substitutions that will end up in Makefile.config.in
30020 # that these configured values can be used by the makefiles
30021 eval LLVM_PREFIX="${prefix}";
30022 eval LLVM_BINDIR="${prefix}/bin";
30023 eval LLVM_LIBDIR="${prefix}/lib";
30024 eval LLVM_DATADIR="${prefix}/share/llvm";
30025 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30026 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30027 eval LLVM_INCLUDEDIR="${prefix}/include";
30028 eval LLVM_INFODIR="${prefix}/info";
30029 eval LLVM_MANDIR="${prefix}/man";
30030 LLVM_CONFIGTIME=`date`
30042 # Place the various directores into the config.h file as #defines so that we
30043 # can know about the installation paths within LLVM.
30045 cat >>confdefs.h <<_ACEOF
30046 #define LLVM_PREFIX "$LLVM_PREFIX"
30050 cat >>confdefs.h <<_ACEOF
30051 #define LLVM_BINDIR "$LLVM_BINDIR"
30055 cat >>confdefs.h <<_ACEOF
30056 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30060 cat >>confdefs.h <<_ACEOF
30061 #define LLVM_DATADIR "$LLVM_DATADIR"
30065 cat >>confdefs.h <<_ACEOF
30066 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30070 cat >>confdefs.h <<_ACEOF
30071 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30075 cat >>confdefs.h <<_ACEOF
30076 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30080 cat >>confdefs.h <<_ACEOF
30081 #define LLVM_INFODIR "$LLVM_INFODIR"
30085 cat >>confdefs.h <<_ACEOF
30086 #define LLVM_MANDIR "$LLVM_MANDIR"
30090 cat >>confdefs.h <<_ACEOF
30091 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30096 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30099 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30101 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30103 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30105 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30107 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30110 ac_config_files="$ac_config_files Makefile.config"
30113 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30116 ac_config_files="$ac_config_files docs/doxygen.cfg"
30119 ac_config_commands="$ac_config_commands Makefile"
30122 ac_config_commands="$ac_config_commands Makefile.common"
30125 ac_config_commands="$ac_config_commands examples/Makefile"
30128 ac_config_commands="$ac_config_commands lib/Makefile"
30131 ac_config_commands="$ac_config_commands runtime/Makefile"
30134 ac_config_commands="$ac_config_commands test/Makefile"
30137 ac_config_commands="$ac_config_commands test/Makefile.tests"
30140 ac_config_commands="$ac_config_commands tools/Makefile"
30143 ac_config_commands="$ac_config_commands utils/Makefile"
30146 ac_config_commands="$ac_config_commands projects/Makefile"
30150 cat >confcache <<\_ACEOF
30151 # This file is a shell script that caches the results of configure
30152 # tests run on this system so they can be shared between configure
30153 # scripts and configure runs, see configure's option --config-cache.
30154 # It is not useful on other systems. If it contains results you don't
30155 # want to keep, you may remove or edit it.
30157 # config.status only pays attention to the cache file if you give it
30158 # the --recheck option to rerun configure.
30160 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30162 # following values.
30166 # The following way of writing the cache mishandles newlines in values,
30167 # but we know of no workaround that is simple, portable, and efficient.
30168 # So, don't put newlines in cache variables' values.
30169 # Ultrix sh set writes to stderr and can't be redirected directly,
30170 # and sets the high bit in the cache file unless we assign to the vars.
30173 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30175 # `set' does not quote correctly, so add quotes (double-quote
30176 # substitution turns \\\\ into \\, and sed turns \\ into \).
30179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30182 # `set' quotes correctly as required by POSIX, so do not add quotes.
30184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30191 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30193 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30195 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30196 if test -w $cache_file; then
30197 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30198 cat confcache >$cache_file
30200 echo "not updating unwritable cache $cache_file"
30205 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30206 # Let make expand exec_prefix.
30207 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30209 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30210 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30211 # trailing colons and then remove the whole line if VPATH becomes empty
30212 # (actually we leave an empty line to preserve line numbers).
30213 if test "x$srcdir" = x.; then
30214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30215 s/:*\$(srcdir):*/:/;
30216 s/:*\${srcdir}:*/:/;
30218 s/^\([^=]*=[ ]*\):*/\1/;
30224 DEFS=-DHAVE_CONFIG_H
30228 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30229 # 1. Remove the extension, and $U if already installed.
30230 ac_i=`echo "$ac_i" |
30231 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30233 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30234 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30236 LIBOBJS=$ac_libobjs
30238 LTLIBOBJS=$ac_ltlibobjs
30241 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30242 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30243 Usually this means the macro was only invoked conditionally." >&5
30244 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30245 Usually this means the macro was only invoked conditionally." >&2;}
30246 { (exit 1); exit 1; }; }
30248 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30249 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30250 Usually this means the macro was only invoked conditionally." >&5
30251 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30252 Usually this means the macro was only invoked conditionally." >&2;}
30253 { (exit 1); exit 1; }; }
30256 : ${CONFIG_STATUS=./config.status}
30257 ac_clean_files_save=$ac_clean_files
30258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30259 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30260 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30261 cat >$CONFIG_STATUS <<_ACEOF
30263 # Generated by $as_me.
30264 # Run this file to recreate the current configuration.
30265 # Compiler output produced by configure, useful for debugging
30266 # configure, is in config.log if it exists.
30269 ac_cs_recheck=false
30271 SHELL=\${CONFIG_SHELL-$SHELL}
30274 cat >>$CONFIG_STATUS <<\_ACEOF
30275 ## --------------------- ##
30276 ## M4sh Initialization. ##
30277 ## --------------------- ##
30279 # Be Bourne compatible
30280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30283 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30284 # is contrary to our usage. Disable this feature.
30285 alias -g '${1+"$@"}'='"$@"'
30286 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30289 DUALCASE=1; export DUALCASE # for MKS sh
30291 # Support unset when possible.
30292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30299 # Work around bugs in pre-3.0 UWIN ksh.
30300 $as_unset ENV MAIL MAILPATH
30307 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30308 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30309 LC_TELEPHONE LC_TIME
30311 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30312 eval $as_var=C; export $as_var
30318 # Required to use basename.
30319 if expr a : '\(a\)' >/dev/null 2>&1; then
30325 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30326 as_basename=basename
30332 # Name of the executable.
30333 as_me=`$as_basename "$0" ||
30334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30335 X"$0" : 'X\(//\)$' \| \
30336 X"$0" : 'X\(/\)$' \| \
30337 . : '\(.\)' 2>/dev/null ||
30339 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30340 /^X\/\(\/\/\)$/{ s//\1/; q; }
30341 /^X\/\(\/\).*/{ s//\1/; q; }
30345 # PATH needs CR, and LINENO needs CR and PATH.
30346 # Avoid depending upon Character Ranges.
30347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30350 as_cr_digits='0123456789'
30351 as_cr_alnum=$as_cr_Letters$as_cr_digits
30353 # The user is always right.
30354 if test "${PATH_SEPARATOR+set}" != set; then
30355 echo "#! /bin/sh" >conf$$.sh
30356 echo "exit 0" >>conf$$.sh
30358 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30367 as_lineno_1=$LINENO
30368 as_lineno_2=$LINENO
30369 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30370 test "x$as_lineno_1" != "x$as_lineno_2" &&
30371 test "x$as_lineno_3" = "x$as_lineno_2" || {
30372 # Find who we are. Look in the path if we contain no path at all
30375 *[\\/]* ) as_myself=$0 ;;
30376 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30377 for as_dir in $PATH
30380 test -z "$as_dir" && as_dir=.
30381 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30386 # We did not find ourselves, most probably we were run as `sh COMMAND'
30387 # in which case we are not to be found in the path.
30388 if test "x$as_myself" = x; then
30391 if test ! -f "$as_myself"; then
30392 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30393 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30394 { (exit 1); exit 1; }; }
30396 case $CONFIG_SHELL in
30398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30399 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30402 test -z "$as_dir" && as_dir=.
30403 for as_base in sh bash ksh sh5; do
30406 if ("$as_dir/$as_base" -c '
30407 as_lineno_1=$LINENO
30408 as_lineno_2=$LINENO
30409 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30410 test "x$as_lineno_1" != "x$as_lineno_2" &&
30411 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30412 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30413 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30414 CONFIG_SHELL=$as_dir/$as_base
30415 export CONFIG_SHELL
30416 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30425 # uniformly replaced by the line number. The first 'sed' inserts a
30426 # line-number line before each line; the second 'sed' does the real
30427 # work. The second script uses 'N' to pair each line-number line
30428 # with the numbered line, and appends trailing '-' during
30429 # substitution so that $LINENO is not a special case at line end.
30430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30431 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30432 sed '=' <$as_myself |
30437 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30440 s,^['$as_cr_digits']*\n,,
30441 ' >$as_me.lineno &&
30442 chmod +x $as_me.lineno ||
30443 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30444 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30445 { (exit 1); exit 1; }; }
30447 # Don't try to exec as it changes $[0], causing all sort of problems
30448 # (the dirname of $[0] is not the place where we might find the
30449 # original and so on. Autoconf is especially sensible to this).
30451 # Exit status is that of the last command.
30456 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30457 *c*,-n*) ECHO_N= ECHO_C='
30459 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30460 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30463 if expr a : '\(a\)' >/dev/null 2>&1; then
30469 rm -f conf$$ conf$$.exe conf$$.file
30471 if ln -s conf$$.file conf$$ 2>/dev/null; then
30472 # We could just check for DJGPP; but this test a) works b) is more generic
30473 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30474 if test -f conf$$.exe; then
30475 # Don't use ln at all; we don't have any links
30480 elif ln conf$$.file conf$$ 2>/dev/null; then
30485 rm -f conf$$ conf$$.exe conf$$.file
30487 if mkdir -p . 2>/dev/null; then
30490 test -d ./-p && rmdir ./-p
30494 as_executable_p="test -f"
30496 # Sed expression to map a string onto a valid CPP name.
30497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30499 # Sed expression to map a string onto a valid variable name.
30500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30504 # We need space, tab and new line, in precisely that order.
30514 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30515 # report actual input values of CONFIG_FILES etc. instead of their
30516 # values after options handling. Logging --version etc. is OK.
30520 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30521 ## Running $as_me. ##
30526 This file was extended by llvm $as_me 1.4, which was
30527 generated by GNU Autoconf 2.59. Invocation command line was
30529 CONFIG_FILES = $CONFIG_FILES
30530 CONFIG_HEADERS = $CONFIG_HEADERS
30531 CONFIG_LINKS = $CONFIG_LINKS
30532 CONFIG_COMMANDS = $CONFIG_COMMANDS
30536 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30540 # Files that config.status was made for.
30541 if test -n "$ac_config_files"; then
30542 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30545 if test -n "$ac_config_headers"; then
30546 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30549 if test -n "$ac_config_links"; then
30550 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30553 if test -n "$ac_config_commands"; then
30554 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30557 cat >>$CONFIG_STATUS <<\_ACEOF
30560 \`$as_me' instantiates files from templates according to the
30561 current configuration.
30563 Usage: $0 [OPTIONS] [FILE]...
30565 -h, --help print this help, then exit
30566 -V, --version print version number, then exit
30567 -q, --quiet do not print progress messages
30568 -d, --debug don't remove temporary files
30569 --recheck update $as_me by reconfiguring in the same conditions
30570 --file=FILE[:TEMPLATE]
30571 instantiate the configuration file FILE
30572 --header=FILE[:TEMPLATE]
30573 instantiate the configuration header FILE
30575 Configuration files:
30578 Configuration headers:
30581 Configuration links:
30584 Configuration commands:
30587 Report bugs to <bug-autoconf@gnu.org>."
30590 cat >>$CONFIG_STATUS <<_ACEOF
30592 llvm config.status 1.4
30593 configured by $0, generated by GNU Autoconf 2.59,
30594 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30596 Copyright (C) 2003 Free Software Foundation, Inc.
30597 This config.status script is free software; the Free Software Foundation
30598 gives unlimited permission to copy, distribute and modify it."
30603 cat >>$CONFIG_STATUS <<\_ACEOF
30604 # If no file are specified by the user, then we need to provide default
30605 # value. By we need to know if files were specified by the user.
30611 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30612 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30620 *) # This is not an option, so the user has probably given explicit
30623 ac_need_defaults=false;;
30627 # Handling of the options.
30629 cat >>$CONFIG_STATUS <<\_ACEOF
30630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30632 --version | --vers* | -V )
30633 echo "$ac_cs_version"; exit 0 ;;
30635 # Conflict between --help and --header
30636 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30637 Try \`$0 --help' for more information." >&5
30638 echo "$as_me: error: ambiguous option: $1
30639 Try \`$0 --help' for more information." >&2;}
30640 { (exit 1); exit 1; }; };;
30641 --help | --hel | -h )
30642 echo "$ac_cs_usage"; exit 0 ;;
30643 --debug | --d* | -d )
30645 --file | --fil | --fi | --f )
30647 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30648 ac_need_defaults=false;;
30649 --header | --heade | --head | --hea )
30651 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30652 ac_need_defaults=false;;
30653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30654 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30657 # This is an error.
30658 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30659 Try \`$0 --help' for more information." >&5
30660 echo "$as_me: error: unrecognized option: $1
30661 Try \`$0 --help' for more information." >&2;}
30662 { (exit 1); exit 1; }; } ;;
30664 *) ac_config_targets="$ac_config_targets $1" ;;
30670 ac_configure_extra_args=
30672 if $ac_cs_silent; then
30674 ac_configure_extra_args="$ac_configure_extra_args --silent"
30678 cat >>$CONFIG_STATUS <<_ACEOF
30679 if \$ac_cs_recheck; then
30680 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30681 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30686 cat >>$CONFIG_STATUS <<_ACEOF
30688 # INIT-COMMANDS section.
30691 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30692 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30693 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30694 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30695 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30696 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30697 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30698 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30699 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30700 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30706 cat >>$CONFIG_STATUS <<\_ACEOF
30707 for ac_config_target in $ac_config_targets
30709 case "$ac_config_target" in
30710 # Handling of arguments.
30711 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30712 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30713 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30714 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30715 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30716 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30717 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_os_type" ;;
30718 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30719 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30720 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30721 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30722 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30723 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30724 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30725 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30726 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30727 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30728 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30729 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30730 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30731 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30732 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30733 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30734 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30735 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30736 { (exit 1); exit 1; }; };;
30740 # If the user did not use the arguments to specify the items to instantiate,
30741 # then the envvar interface is used. Set only those that are not.
30742 # We use the long form for the default assignment because of an extremely
30743 # bizarre bug on SunOS 4.1.3.
30744 if $ac_need_defaults; then
30745 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30746 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30747 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30748 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30751 # Have a temporary directory for convenience. Make it in the build tree
30752 # simply because there is no reason to put it here, and in addition,
30753 # creating and moving files from /tmp can sometimes cause problems.
30754 # Create a temporary directory, and hook for its removal unless debugging.
30757 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30758 trap '{ (exit 1); exit 1; }' 1 2 13 15
30761 # Create a (secure) tmp directory for tmp files.
30764 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30765 test -n "$tmp" && test -d "$tmp"
30768 tmp=./confstat$$-$RANDOM
30769 (umask 077 && mkdir $tmp)
30772 echo "$me: cannot create a temporary directory in ." >&2
30773 { (exit 1); exit 1; }
30778 cat >>$CONFIG_STATUS <<_ACEOF
30781 # CONFIG_FILES section.
30784 # No need to generate the scripts if there are no CONFIG_FILES.
30785 # This happens for instance when ./config.status config.h
30786 if test -n "\$CONFIG_FILES"; then
30787 # Protect against being on the right side of a sed subst in config.status.
30788 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30789 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30790 s,@SHELL@,$SHELL,;t t
30791 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30792 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30793 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30794 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30795 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30796 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30797 s,@exec_prefix@,$exec_prefix,;t t
30798 s,@prefix@,$prefix,;t t
30799 s,@program_transform_name@,$program_transform_name,;t t
30800 s,@bindir@,$bindir,;t t
30801 s,@sbindir@,$sbindir,;t t
30802 s,@libexecdir@,$libexecdir,;t t
30803 s,@datadir@,$datadir,;t t
30804 s,@sysconfdir@,$sysconfdir,;t t
30805 s,@sharedstatedir@,$sharedstatedir,;t t
30806 s,@localstatedir@,$localstatedir,;t t
30807 s,@libdir@,$libdir,;t t
30808 s,@includedir@,$includedir,;t t
30809 s,@oldincludedir@,$oldincludedir,;t t
30810 s,@infodir@,$infodir,;t t
30811 s,@mandir@,$mandir,;t t
30812 s,@build_alias@,$build_alias,;t t
30813 s,@host_alias@,$host_alias,;t t
30814 s,@target_alias@,$target_alias,;t t
30815 s,@DEFS@,$DEFS,;t t
30816 s,@ECHO_C@,$ECHO_C,;t t
30817 s,@ECHO_N@,$ECHO_N,;t t
30818 s,@ECHO_T@,$ECHO_T,;t t
30819 s,@LIBS@,$LIBS,;t t
30820 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30821 s,@subdirs@,$subdirs,;t t
30822 s,@build@,$build,;t t
30823 s,@build_cpu@,$build_cpu,;t t
30824 s,@build_vendor@,$build_vendor,;t t
30825 s,@build_os@,$build_os,;t t
30826 s,@host@,$host,;t t
30827 s,@host_cpu@,$host_cpu,;t t
30828 s,@host_vendor@,$host_vendor,;t t
30829 s,@host_os@,$host_os,;t t
30830 s,@target@,$target,;t t
30831 s,@target_cpu@,$target_cpu,;t t
30832 s,@target_vendor@,$target_vendor,;t t
30833 s,@target_os@,$target_os,;t t
30835 s,@ARCH@,$ARCH,;t t
30836 s,@ENDIAN@,$ENDIAN,;t t
30838 s,@CFLAGS@,$CFLAGS,;t t
30839 s,@LDFLAGS@,$LDFLAGS,;t t
30840 s,@CPPFLAGS@,$CPPFLAGS,;t t
30841 s,@ac_ct_CC@,$ac_ct_CC,;t t
30842 s,@EXEEXT@,$EXEEXT,;t t
30843 s,@OBJEXT@,$OBJEXT,;t t
30844 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30846 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30849 s,@CXXFLAGS@,$CXXFLAGS,;t t
30850 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30852 s,@LEXLIB@,$LEXLIB,;t t
30853 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30854 s,@FLEX@,$FLEX,;t t
30855 s,@YACC@,$YACC,;t t
30856 s,@BISON@,$BISON,;t t
30857 s,@ifGNUmake@,$ifGNUmake,;t t
30858 s,@LN_S@,$LN_S,;t t
30861 s,@DATE@,$DATE,;t t
30862 s,@FIND@,$FIND,;t t
30863 s,@GREP@,$GREP,;t t
30864 s,@MKDIR@,$MKDIR,;t t
30867 s,@RANLIB@,$RANLIB,;t t
30868 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30872 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30873 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30874 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30875 s,@BZIP2@,$BZIP2,;t t
30877 s,@DOXYGEN@,$DOXYGEN,;t t
30878 s,@ETAGS@,$ETAGS,;t t
30879 s,@GROFF@,$GROFF,;t t
30880 s,@GZIP@,$GZIP,;t t
30881 s,@POD2HTML@,$POD2HTML,;t t
30882 s,@POD2MAN@,$POD2MAN,;t t
30883 s,@RUNTEST@,$RUNTEST,;t t
30884 s,@TCLSH@,$TCLSH,;t t
30886 s,@EGREP@,$EGREP,;t t
30887 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30888 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30889 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30890 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30891 s,@LIBADD_DL@,$LIBADD_DL,;t t
30892 s,@ECHO@,$ECHO,;t t
30894 s,@ac_ct_AR@,$ac_ct_AR,;t t
30895 s,@STRIP@,$STRIP,;t t
30896 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30897 s,@CXXCPP@,$CXXCPP,;t t
30899 s,@FFLAGS@,$FFLAGS,;t t
30900 s,@ac_ct_F77@,$ac_ct_F77,;t t
30901 s,@LIBTOOL@,$LIBTOOL,;t t
30902 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30903 s,@LLVMGCC@,$LLVMGCC,;t t
30904 s,@LLVMGXX@,$LLVMGXX,;t t
30905 s,@ALLOCA@,$ALLOCA,;t t
30906 s,@MMAP_FILE@,$MMAP_FILE,;t t
30907 s,@LLVMCC1@,$LLVMCC1,;t t
30908 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30909 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30910 s,@SHLIBEXT@,$SHLIBEXT,;t t
30911 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30912 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30913 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30914 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30915 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30916 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30917 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30918 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30919 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30920 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30921 s,@LIBOBJS@,$LIBOBJS,;t t
30922 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30927 cat >>$CONFIG_STATUS <<\_ACEOF
30928 # Split the substitutions into bite-sized pieces for seds with
30929 # small command number limits, like on Digital OSF/1 and HP-UX.
30930 ac_max_sed_lines=48
30931 ac_sed_frag=1 # Number of current file.
30932 ac_beg=1 # First line for current file.
30933 ac_end=$ac_max_sed_lines # Line after last line for current file.
30936 while $ac_more_lines; do
30937 if test $ac_beg -gt 1; then
30938 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30940 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30942 if test ! -s $tmp/subs.frag; then
30943 ac_more_lines=false
30945 # The purpose of the label and of the branching condition is to
30946 # speed up the sed processing (if there are no `@' at all, there
30947 # is no need to browse any of the substitutions).
30948 # These are the two extra sed commands mentioned above.
30950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30951 if test -z "$ac_sed_cmds"; then
30952 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30954 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30956 ac_sed_frag=`expr $ac_sed_frag + 1`
30958 ac_end=`expr $ac_end + $ac_max_sed_lines`
30961 if test -z "$ac_sed_cmds"; then
30964 fi # test -n "$CONFIG_FILES"
30967 cat >>$CONFIG_STATUS <<\_ACEOF
30968 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30971 - | *:- | *:-:* ) # input from stdin
30973 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30974 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30975 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30976 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30977 * ) ac_file_in=$ac_file.in ;;
30980 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30981 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30983 X"$ac_file" : 'X\(//\)[^/]' \| \
30984 X"$ac_file" : 'X\(//\)$' \| \
30985 X"$ac_file" : 'X\(/\)' \| \
30986 . : '\(.\)' 2>/dev/null ||
30988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30990 /^X\(\/\/\)$/{ s//\1/; q; }
30991 /^X\(\/\).*/{ s//\1/; q; }
30993 { if $as_mkdir_p; then
30998 while test ! -d "$as_dir"; do
30999 as_dirs="$as_dir $as_dirs"
31000 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31002 X"$as_dir" : 'X\(//\)[^/]' \| \
31003 X"$as_dir" : 'X\(//\)$' \| \
31004 X"$as_dir" : 'X\(/\)' \| \
31005 . : '\(.\)' 2>/dev/null ||
31007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31009 /^X\(\/\/\)$/{ s//\1/; q; }
31010 /^X\(\/\).*/{ s//\1/; q; }
31013 test ! -n "$as_dirs" || mkdir $as_dirs
31014 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31015 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31016 { (exit 1); exit 1; }; }; }
31020 if test "$ac_dir" != .; then
31021 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31022 # A "../" for each directory in $ac_dir_suffix.
31023 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31025 ac_dir_suffix= ac_top_builddir=
31029 .) # No --srcdir option. We are building in place.
31031 if test -z "$ac_top_builddir"; then
31034 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31036 [\\/]* | ?:[\\/]* ) # Absolute path.
31037 ac_srcdir=$srcdir$ac_dir_suffix;
31038 ac_top_srcdir=$srcdir ;;
31039 *) # Relative path.
31040 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31041 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31044 # Do not use `cd foo && pwd` to compute absolute paths, because
31045 # the directories may not exist.
31047 .) ac_abs_builddir="$ac_dir";;
31050 .) ac_abs_builddir=`pwd`;;
31051 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31052 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31055 case $ac_abs_builddir in
31056 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31058 case ${ac_top_builddir}. in
31059 .) ac_abs_top_builddir=$ac_abs_builddir;;
31060 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31061 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31064 case $ac_abs_builddir in
31065 .) ac_abs_srcdir=$ac_srcdir;;
31068 .) ac_abs_srcdir=$ac_abs_builddir;;
31069 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31070 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31073 case $ac_abs_builddir in
31074 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31076 case $ac_top_srcdir in
31077 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31078 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31079 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31086 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31089 if test x"$ac_file" != x-; then
31090 { echo "$as_me:$LINENO: creating $ac_file" >&5
31091 echo "$as_me: creating $ac_file" >&6;}
31094 # Let's still pretend it is `configure' which instantiates (i.e., don't
31095 # use $as_me), people would be surprised to read:
31096 # /* config.h. Generated by config.status. */
31097 if test x"$ac_file" = x-; then
31100 configure_input="$ac_file. "
31102 configure_input=$configure_input"Generated from `echo $ac_file_in |
31103 sed 's,.*/,,'` by configure."
31105 # First look for the input files in the build tree, otherwise in the
31107 ac_file_inputs=`IFS=:
31108 for f in $ac_file_in; do
31110 -) echo $tmp/stdin ;;
31112 # Absolute (can't be DOS-style, as IFS=:)
31113 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31114 echo "$as_me: error: cannot find input file: $f" >&2;}
31115 { (exit 1); exit 1; }; }
31118 if test -f "$f"; then
31121 elif test -f "$srcdir/$f"; then
31126 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31127 echo "$as_me: error: cannot find input file: $f" >&2;}
31128 { (exit 1); exit 1; }; }
31131 done` || { (exit 1); exit 1; }
31133 cat >>$CONFIG_STATUS <<_ACEOF
31137 cat >>$CONFIG_STATUS <<\_ACEOF
31139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31140 s,@configure_input@,$configure_input,;t t
31141 s,@srcdir@,$ac_srcdir,;t t
31142 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31143 s,@top_srcdir@,$ac_top_srcdir,;t t
31144 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31145 s,@builddir@,$ac_builddir,;t t
31146 s,@abs_builddir@,$ac_abs_builddir,;t t
31147 s,@top_builddir@,$ac_top_builddir,;t t
31148 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31149 s,@INSTALL@,$ac_INSTALL,;t t
31150 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31152 if test x"$ac_file" != x-; then
31153 mv $tmp/out $ac_file
31161 cat >>$CONFIG_STATUS <<\_ACEOF
31164 # CONFIG_HEADER section.
31167 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31168 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31170 # ac_d sets the value in "#define NAME VALUE" lines.
31171 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31172 ac_dB='[ ].*$,\1#\2'
31175 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31176 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31177 ac_uB='$,\1#\2define\3'
31181 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31182 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31184 - | *:- | *:-:* ) # input from stdin
31186 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31187 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31188 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31189 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31190 * ) ac_file_in=$ac_file.in ;;
31193 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31194 echo "$as_me: creating $ac_file" >&6;}
31196 # First look for the input files in the build tree, otherwise in the
31198 ac_file_inputs=`IFS=:
31199 for f in $ac_file_in; do
31201 -) echo $tmp/stdin ;;
31203 # Absolute (can't be DOS-style, as IFS=:)
31204 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31205 echo "$as_me: error: cannot find input file: $f" >&2;}
31206 { (exit 1); exit 1; }; }
31207 # Do quote $f, to prevent DOS paths from being IFS'd.
31210 if test -f "$f"; then
31213 elif test -f "$srcdir/$f"; then
31218 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31219 echo "$as_me: error: cannot find input file: $f" >&2;}
31220 { (exit 1); exit 1; }; }
31223 done` || { (exit 1); exit 1; }
31224 # Remove the trailing spaces.
31225 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31229 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31230 # `conftest.undefs', that substitutes the proper values into
31231 # config.h.in to produce config.h. The first handles `#define'
31232 # templates, and the second `#undef' templates.
31233 # And first: Protect against being on the right side of a sed subst in
31234 # config.status. Protect against being in an unquoted here document
31235 # in config.status.
31236 rm -f conftest.defines conftest.undefs
31237 # Using a here document instead of a string reduces the quoting nightmare.
31238 # Putting comments in sed scripts is not portable.
31240 # `end' is used to avoid that the second main sed command (meant for
31241 # 0-ary CPP macros) applies to n-ary macro definitions.
31242 # See the Autoconf documentation for `clear'.
31243 cat >confdef2sed.sed <<\_ACEOF
31248 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31250 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31253 # If some macros were called several times there might be several times
31254 # the same #defines, which is useless. Nevertheless, we may not want to
31255 # sort them, since we want the *last* AC-DEFINE to be honored.
31256 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31257 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31258 rm -f confdef2sed.sed
31260 # This sed command replaces #undef with comments. This is necessary, for
31261 # example, in the case of _POSIX_SOURCE, which is predefined and required
31262 # on some systems where configure will not decide to define it.
31263 cat >>conftest.undefs <<\_ACEOF
31264 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31267 # Break up conftest.defines because some shells have a limit on the size
31268 # of here documents, and old seds have small limits too (100 cmds).
31269 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31270 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31271 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31272 echo ' :' >>$CONFIG_STATUS
31273 rm -f conftest.tail
31274 while grep . conftest.defines >/dev/null
31276 # Write a limited-size here document to $tmp/defines.sed.
31277 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31278 # Speed up: don't consider the non `#define' lines.
31279 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31280 # Work around the forget-to-reset-the-flag bug.
31281 echo 't clr' >>$CONFIG_STATUS
31282 echo ': clr' >>$CONFIG_STATUS
31283 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31285 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31287 mv $tmp/out $tmp/in
31289 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31290 rm -f conftest.defines
31291 mv conftest.tail conftest.defines
31293 rm -f conftest.defines
31294 echo ' fi # grep' >>$CONFIG_STATUS
31295 echo >>$CONFIG_STATUS
31297 # Break up conftest.undefs because some shells have a limit on the size
31298 # of here documents, and old seds have small limits too (100 cmds).
31299 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31300 rm -f conftest.tail
31301 while grep . conftest.undefs >/dev/null
31303 # Write a limited-size here document to $tmp/undefs.sed.
31304 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31305 # Speed up: don't consider the non `#undef'
31306 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31307 # Work around the forget-to-reset-the-flag bug.
31308 echo 't clr' >>$CONFIG_STATUS
31309 echo ': clr' >>$CONFIG_STATUS
31310 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31312 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31314 mv $tmp/out $tmp/in
31316 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31317 rm -f conftest.undefs
31318 mv conftest.tail conftest.undefs
31320 rm -f conftest.undefs
31322 cat >>$CONFIG_STATUS <<\_ACEOF
31323 # Let's still pretend it is `configure' which instantiates (i.e., don't
31324 # use $as_me), people would be surprised to read:
31325 # /* config.h. Generated by config.status. */
31326 if test x"$ac_file" = x-; then
31327 echo "/* Generated by configure. */" >$tmp/config.h
31329 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31331 cat $tmp/in >>$tmp/config.h
31333 if test x"$ac_file" != x-; then
31334 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31335 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31336 echo "$as_me: $ac_file is unchanged" >&6;}
31338 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31340 X"$ac_file" : 'X\(//\)[^/]' \| \
31341 X"$ac_file" : 'X\(//\)$' \| \
31342 X"$ac_file" : 'X\(/\)' \| \
31343 . : '\(.\)' 2>/dev/null ||
31345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31347 /^X\(\/\/\)$/{ s//\1/; q; }
31348 /^X\(\/\).*/{ s//\1/; q; }
31350 { if $as_mkdir_p; then
31355 while test ! -d "$as_dir"; do
31356 as_dirs="$as_dir $as_dirs"
31357 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31359 X"$as_dir" : 'X\(//\)[^/]' \| \
31360 X"$as_dir" : 'X\(//\)$' \| \
31361 X"$as_dir" : 'X\(/\)' \| \
31362 . : '\(.\)' 2>/dev/null ||
31364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31366 /^X\(\/\/\)$/{ s//\1/; q; }
31367 /^X\(\/\).*/{ s//\1/; q; }
31370 test ! -n "$as_dirs" || mkdir $as_dirs
31371 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31372 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31373 { (exit 1); exit 1; }; }; }
31376 mv $tmp/config.h $ac_file
31380 rm -f $tmp/config.h
31384 cat >>$CONFIG_STATUS <<\_ACEOF
31387 # CONFIG_LINKS section.
31390 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
31391 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31392 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31394 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
31395 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
31397 if test ! -r $srcdir/$ac_source; then
31398 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
31399 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
31400 { (exit 1); exit 1; }; }
31404 # Make relative symlinks.
31405 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
31406 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31407 X"$ac_dest" : 'X\(//\)[^/]' \| \
31408 X"$ac_dest" : 'X\(//\)$' \| \
31409 X"$ac_dest" : 'X\(/\)' \| \
31410 . : '\(.\)' 2>/dev/null ||
31412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31414 /^X\(\/\/\)$/{ s//\1/; q; }
31415 /^X\(\/\).*/{ s//\1/; q; }
31417 { if $as_mkdir_p; then
31418 mkdir -p "$ac_dest_dir"
31420 as_dir="$ac_dest_dir"
31422 while test ! -d "$as_dir"; do
31423 as_dirs="$as_dir $as_dirs"
31424 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31425 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31426 X"$as_dir" : 'X\(//\)[^/]' \| \
31427 X"$as_dir" : 'X\(//\)$' \| \
31428 X"$as_dir" : 'X\(/\)' \| \
31429 . : '\(.\)' 2>/dev/null ||
31431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31432 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31433 /^X\(\/\/\)$/{ s//\1/; q; }
31434 /^X\(\/\).*/{ s//\1/; q; }
31437 test ! -n "$as_dirs" || mkdir $as_dirs
31438 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
31439 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
31440 { (exit 1); exit 1; }; }; }
31444 if test "$ac_dest_dir" != .; then
31445 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
31446 # A "../" for each directory in $ac_dir_suffix.
31447 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31449 ac_dir_suffix= ac_top_builddir=
31453 .) # No --srcdir option. We are building in place.
31455 if test -z "$ac_top_builddir"; then
31458 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31460 [\\/]* | ?:[\\/]* ) # Absolute path.
31461 ac_srcdir=$srcdir$ac_dir_suffix;
31462 ac_top_srcdir=$srcdir ;;
31463 *) # Relative path.
31464 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31465 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31468 # Do not use `cd foo && pwd` to compute absolute paths, because
31469 # the directories may not exist.
31471 .) ac_abs_builddir="$ac_dest_dir";;
31473 case "$ac_dest_dir" in
31474 .) ac_abs_builddir=`pwd`;;
31475 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31476 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31479 case $ac_abs_builddir in
31480 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31482 case ${ac_top_builddir}. in
31483 .) ac_abs_top_builddir=$ac_abs_builddir;;
31484 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31485 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31488 case $ac_abs_builddir in
31489 .) ac_abs_srcdir=$ac_srcdir;;
31492 .) ac_abs_srcdir=$ac_abs_builddir;;
31493 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31494 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31497 case $ac_abs_builddir in
31498 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31500 case $ac_top_srcdir in
31501 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31502 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31503 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31509 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31510 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31513 # Try a symlink, then a hard link, then a copy.
31514 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31515 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31516 cp -p $srcdir/$ac_source $ac_dest ||
31517 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31518 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31519 { (exit 1); exit 1; }; }
31522 cat >>$CONFIG_STATUS <<\_ACEOF
31525 # CONFIG_COMMANDS section.
31527 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31528 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31529 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31530 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31531 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31532 X"$ac_dest" : 'X\(//\)[^/]' \| \
31533 X"$ac_dest" : 'X\(//\)$' \| \
31534 X"$ac_dest" : 'X\(/\)' \| \
31535 . : '\(.\)' 2>/dev/null ||
31537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31539 /^X\(\/\/\)$/{ s//\1/; q; }
31540 /^X\(\/\).*/{ s//\1/; q; }
31542 { if $as_mkdir_p; then
31547 while test ! -d "$as_dir"; do
31548 as_dirs="$as_dir $as_dirs"
31549 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31551 X"$as_dir" : 'X\(//\)[^/]' \| \
31552 X"$as_dir" : 'X\(//\)$' \| \
31553 X"$as_dir" : 'X\(/\)' \| \
31554 . : '\(.\)' 2>/dev/null ||
31556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31558 /^X\(\/\/\)$/{ s//\1/; q; }
31559 /^X\(\/\).*/{ s//\1/; q; }
31562 test ! -n "$as_dirs" || mkdir $as_dirs
31563 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31564 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31565 { (exit 1); exit 1; }; }; }
31569 if test "$ac_dir" != .; then
31570 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31571 # A "../" for each directory in $ac_dir_suffix.
31572 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31574 ac_dir_suffix= ac_top_builddir=
31578 .) # No --srcdir option. We are building in place.
31580 if test -z "$ac_top_builddir"; then
31583 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31585 [\\/]* | ?:[\\/]* ) # Absolute path.
31586 ac_srcdir=$srcdir$ac_dir_suffix;
31587 ac_top_srcdir=$srcdir ;;
31588 *) # Relative path.
31589 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31590 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31593 # Do not use `cd foo && pwd` to compute absolute paths, because
31594 # the directories may not exist.
31596 .) ac_abs_builddir="$ac_dir";;
31599 .) ac_abs_builddir=`pwd`;;
31600 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31601 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31604 case $ac_abs_builddir in
31605 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31607 case ${ac_top_builddir}. in
31608 .) ac_abs_top_builddir=$ac_abs_builddir;;
31609 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31610 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31613 case $ac_abs_builddir in
31614 .) ac_abs_srcdir=$ac_srcdir;;
31617 .) ac_abs_srcdir=$ac_abs_builddir;;
31618 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31619 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31622 case $ac_abs_builddir in
31623 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31625 case $ac_top_srcdir in
31626 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31627 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31628 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31633 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31634 echo "$as_me: executing $ac_dest commands" >&6;}
31636 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31637 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31638 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31639 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31640 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31641 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31642 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31643 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31644 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31645 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31650 cat >>$CONFIG_STATUS <<\_ACEOF
31652 { (exit 0); exit 0; }
31654 chmod +x $CONFIG_STATUS
31655 ac_clean_files=$ac_clean_files_save
31658 # configure is writing to config.log, and then calls config.status.
31659 # config.status does its own redirection, appending to config.log.
31660 # Unfortunately, on DOS this fails, as config.log is still kept open
31661 # by configure, so config.status won't be able to write to it; its
31662 # output is simply discarded. So we exec the FD to /dev/null,
31663 # effectively closing config.log, so it can be properly (re)opened and
31664 # appended to by config.status. When coming back to configure, we
31665 # need to make the FD available again.
31666 if test "$no_create" != yes; then
31668 ac_config_status_args=
31669 test "$silent" = yes &&
31670 ac_config_status_args="$ac_config_status_args --quiet"
31672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31675 # would make configure fail if this is the last instruction.
31676 $ac_cs_success || { (exit 1); exit 1; }
31680 # CONFIG_SUBDIRS section.
31682 if test "$no_recursion" != yes; then
31684 # Remove --cache-file and --srcdir arguments so they do not pile up.
31685 ac_sub_configure_args=
31687 for ac_arg in $ac_configure_args; do
31688 if test -n "$ac_prev"; then
31693 -cache-file | --cache-file | --cache-fil | --cache-fi \
31694 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31695 ac_prev=cache_file ;;
31696 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31697 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31700 --config-cache | -C)
31702 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31704 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31706 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31708 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31710 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31714 # Always prepend --prefix to ensure using the same prefix
31715 # in subdir configurations.
31716 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31719 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31721 # Do not complain, so a configure script can configure whichever
31722 # parts of a large source tree are present.
31723 test -d $srcdir/$ac_dir || continue
31725 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31726 echo "$as_me: configuring in $ac_dir" >&6;}
31727 { if $as_mkdir_p; then
31732 while test ! -d "$as_dir"; do
31733 as_dirs="$as_dir $as_dirs"
31734 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31736 X"$as_dir" : 'X\(//\)[^/]' \| \
31737 X"$as_dir" : 'X\(//\)$' \| \
31738 X"$as_dir" : 'X\(/\)' \| \
31739 . : '\(.\)' 2>/dev/null ||
31741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31743 /^X\(\/\/\)$/{ s//\1/; q; }
31744 /^X\(\/\).*/{ s//\1/; q; }
31747 test ! -n "$as_dirs" || mkdir $as_dirs
31748 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31749 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31750 { (exit 1); exit 1; }; }; }
31754 if test "$ac_dir" != .; then
31755 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31756 # A "../" for each directory in $ac_dir_suffix.
31757 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31759 ac_dir_suffix= ac_top_builddir=
31763 .) # No --srcdir option. We are building in place.
31765 if test -z "$ac_top_builddir"; then
31768 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31770 [\\/]* | ?:[\\/]* ) # Absolute path.
31771 ac_srcdir=$srcdir$ac_dir_suffix;
31772 ac_top_srcdir=$srcdir ;;
31773 *) # Relative path.
31774 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31775 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31778 # Do not use `cd foo && pwd` to compute absolute paths, because
31779 # the directories may not exist.
31781 .) ac_abs_builddir="$ac_dir";;
31784 .) ac_abs_builddir=`pwd`;;
31785 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31786 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31789 case $ac_abs_builddir in
31790 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31792 case ${ac_top_builddir}. in
31793 .) ac_abs_top_builddir=$ac_abs_builddir;;
31794 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31795 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31798 case $ac_abs_builddir in
31799 .) ac_abs_srcdir=$ac_srcdir;;
31802 .) ac_abs_srcdir=$ac_abs_builddir;;
31803 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31804 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31807 case $ac_abs_builddir in
31808 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31810 case $ac_top_srcdir in
31811 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31812 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31813 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31820 # Check for guested configure; otherwise get Cygnus style configure.
31821 if test -f $ac_srcdir/configure.gnu; then
31822 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31823 elif test -f $ac_srcdir/configure; then
31824 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31825 elif test -f $ac_srcdir/configure.in; then
31826 ac_sub_configure=$ac_configure
31828 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31829 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31833 # The recursion is here.
31834 if test -n "$ac_sub_configure"; then
31835 # Make the cache file name correct relative to the subdirectory.
31836 case $cache_file in
31837 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31838 *) # Relative path.
31839 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31842 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31843 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31844 # The eval makes quoting arguments work.
31845 eval $ac_sub_configure $ac_sub_configure_args \
31846 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31847 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31848 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31849 { (exit 1); exit 1; }; }
31857 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31858 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31859 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31860 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31861 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31862 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31863 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31864 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31865 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31866 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31867 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}