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 LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S 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 ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
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 Location of LLVM GCC front-end
1053 --with-tclinclude directory where tcl headers are
1054 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1055 --with-pic try to use only PIC/non-PIC objects [default=use
1058 include additional configurations [automatic]
1060 Some influential environment variables:
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1077 Report bugs to <llvmbugs@cs.uiuc.edu>.
1081 if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1088 if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 ac_dir_suffix= ac_top_builddir=
1097 .) # No --srcdir option. We are building in place.
1099 if test -z "$ac_top_builddir"; then
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112 # Do not use `cd foo && pwd` to compute absolute paths, because
1113 # the directories may not exist.
1115 .) ac_abs_builddir="$ac_dir";;
1118 .) ac_abs_builddir=`pwd`;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123 case $ac_abs_builddir in
1124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132 case $ac_abs_builddir in
1133 .) ac_abs_srcdir=$ac_srcdir;;
1136 .) ac_abs_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141 case $ac_abs_builddir in
1142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
1160 test -f $ac_srcdir/configure.in; then
1162 $ac_configure --help
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170 test -n "$ac_init_help" && exit 0
1171 if $ac_init_version; then
1174 generated by GNU Autoconf 2.59
1176 Copyright (C) 2003 Free Software Foundation, Inc.
1177 This configure script is free software; the Free Software Foundation
1178 gives unlimited permission to copy, distribute and modify it.
1186 This file contains any messages produced by compilers while
1187 running configure, to aid debugging if configure makes a mistake.
1189 It was created by llvm $as_me 1.4, which was
1190 generated by GNU Autoconf 2.59. Invocation command line was
1201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1240 # Keep a trace of the command line.
1241 # Strip out --no-create and --no-recursion so they do not pile up.
1242 # Strip out --silent because we don't want to record it for future runs.
1243 # Also quote any args containing shell meta-characters.
1244 # Make two passes to allow for proper duplicate-argument suppression.
1249 ac_must_keep_next=false
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
1267 ac_must_keep_next=false # Got value, back to normal.
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278 -* ) ac_must_keep_next=true ;;
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1288 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291 # When interrupted or exit'd, cleanup temporary files, and complete
1292 # config.log. We remove comments because anyway the quotes in there
1293 # would cause problems or look ugly.
1294 # WARNING: Be sure not to use single quotes in there, as some shells,
1295 # such as our DU 5.0 friend, will then `close' the trap.
1296 trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1302 ## ---------------- ##
1303 ## Cache variables. ##
1304 ## ---------------- ##
1307 # The following way of writing the cache mishandles newlines in values,
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325 ## ----------------- ##
1326 ## Output variables. ##
1327 ## ----------------- ##
1330 for ac_var in $ac_subst_vars
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1337 if test -n "$ac_subst_files"; then
1344 for ac_var in $ac_subst_files
1346 eval ac_val=$`echo $ac_var`
1347 echo "$ac_var='"'"'$ac_val'"'"'"
1352 if test -s confdefs.h; then
1359 sed "/^$/d" confdefs.h | sort
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1366 rm -f core *.core &&
1367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370 for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1376 rm -rf conftest* confdefs.h
1377 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380 # Predefined preprocessor variables.
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_NAME "$PACKAGE_NAME"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_STRING "$PACKAGE_STRING"
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407 # Let the site file select an alternate cache file if it wants to.
1408 # Prefer explicitly selected file to automatically selected ones.
1409 if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416 for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419 echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1425 if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430 echo "$as_me: loading cache $cache_file" >&6;}
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438 echo "$as_me: creating cache $cache_file" >&6;}
1442 # Check that the precious variables saved in the cache have kept the same
1444 ac_cache_corrupted=false
1445 for ac_var in `(set) 2>&1 |
1446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
1463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1466 echo "$as_me: former value: $ac_old_val" >&2;}
1467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1468 echo "$as_me: current value: $ac_new_val" >&2;}
1469 ac_cache_corrupted=:
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485 if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1535 for ac_dir in autoconf $srcdir/autoconf; do
1536 if test -f $ac_dir/install-sh; then
1538 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 elif test -f $ac_dir/install.sh; then
1542 ac_install_sh="$ac_aux_dir/install.sh -c"
1544 elif test -f $ac_dir/shtool; then
1546 ac_install_sh="$ac_aux_dir/shtool install -c"
1550 if test -z "$ac_aux_dir"; then
1551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1552 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1553 { (exit 1); exit 1; }; }
1555 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560 if test ${srcdir} != "." ; then
1561 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1562 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1563 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1564 { (exit 1); exit 1; }; }
1568 for i in `ls ${srcdir}/projects`
1570 if test -d ${srcdir}/projects/${i} ; then
1575 subdirs="$subdirs projects/sample"
1579 subdirs="$subdirs projects/Stacker"
1583 subdirs="$subdirs projects/llvm-test"
1587 subdirs="$subdirs projects/llvm-reopt"
1591 subdirs="$subdirs projects/llvm-gcc"
1595 subdirs="$subdirs projects/Java"
1599 subdirs="$subdirs projects/llvm-tv"
1603 subdirs="$subdirs projects/llvm-fefw"
1607 subdirs="$subdirs projects/poolalloc"
1610 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1611 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1618 # Make sure we can run config.sub.
1619 $ac_config_sub sun4 >/dev/null 2>&1 ||
1620 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1621 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622 { (exit 1); exit 1; }; }
1624 echo "$as_me:$LINENO: checking build system type" >&5
1625 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1626 if test "${ac_cv_build+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 ac_cv_build_alias=$build_alias
1630 test -z "$ac_cv_build_alias" &&
1631 ac_cv_build_alias=`$ac_config_guess`
1632 test -z "$ac_cv_build_alias" &&
1633 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1634 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1635 { (exit 1); exit 1; }; }
1636 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1638 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1642 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1643 echo "${ECHO_T}$ac_cv_build" >&6
1645 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650 echo "$as_me:$LINENO: checking host system type" >&5
1651 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1652 if test "${ac_cv_host+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 ac_cv_host_alias=$host_alias
1656 test -z "$ac_cv_host_alias" &&
1657 ac_cv_host_alias=$ac_cv_build_alias
1658 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1660 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1665 echo "${ECHO_T}$ac_cv_host" >&6
1667 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 echo "$as_me:$LINENO: checking target system type" >&5
1673 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1674 if test "${ac_cv_target+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 ac_cv_target_alias=$target_alias
1678 test "x$ac_cv_target_alias" = "x" &&
1679 ac_cv_target_alias=$ac_cv_host_alias
1680 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1681 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1682 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1683 { (exit 1); exit 1; }; }
1686 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1687 echo "${ECHO_T}$ac_cv_target" >&6
1688 target=$ac_cv_target
1689 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1694 # The aliases save the names the user supplied, while $host etc.
1695 # will get canonicalized.
1696 test -n "$target_alias" &&
1697 test "$program_prefix$program_suffix$program_transform_name" = \
1699 program_prefix=${target_alias}-
1701 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1702 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1703 if test "${llvm_cv_platform_type+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1708 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1709 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1710 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1711 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1712 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1713 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1714 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1715 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1716 *) llvm_cv_platform_type="Unknown" ;;
1719 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1720 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1722 if test "$llvm_cv_platform_type" = "Unknown" ; then
1723 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1724 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1725 { (exit 1); exit 1; }; }
1728 OS=$llvm_cv_platform_type
1731 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1735 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1740 echo "$as_me:$LINENO: checking target architecture" >&5
1741 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1742 if test "${llvm_cv_target_arch+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 i*86-*) llvm_cv_target_arch="x86" ;;
1747 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1748 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1749 *) llvm_cv_target_arch="Unknown" ;;
1752 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1753 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1755 if test "$llvm_cv_target_arch" = "Unknown" ; then
1756 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1757 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1760 ARCH=$llvm_cv_target_arch
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 if test -n "$ac_tool_prefix"; then
1769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1805 if test -z "$ac_cv_prog_CC"; then
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1847 if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850 set dummy ${ac_tool_prefix}cc; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC="${ac_tool_prefix}cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878 echo "${ECHO_T}$CC" >&6
1880 echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1885 if test -z "$ac_cv_prog_CC"; then
1887 # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC="cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914 if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916 echo "${ECHO_T}$ac_ct_CC" >&6
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1928 if test -z "$CC"; then
1929 # Extract the first word of "cc", so it can be a program name with args.
1930 set dummy cc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948 ac_prog_rejected=yes
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 if test $ac_prog_rejected = yes; then
1959 # We found a bogon in the path, so make sure we never use it.
1960 set dummy $ac_cv_prog_CC
1962 if test $# != 0; then
1963 # We chose a different compiler from the bogus one.
1964 # However, it has the same basename, so the bogon will be chosen
1965 # first if we set CC to just the basename; use the full file name.
1967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1973 if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975 echo "${ECHO_T}$CC" >&6
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1982 if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2021 test -n "$CC" && break
2024 if test -z "$CC"; then
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_ac_ct_CC="$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2063 test -n "$ac_ct_CC" && break
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO:" \
2080 "checking for C compiler version" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083 (eval $ac_compiler --version </dev/null >&5) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088 (eval $ac_compiler -v </dev/null >&5) 2>&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093 (eval $ac_compiler -V </dev/null >&5) 2>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2098 cat >conftest.$ac_ext <<_ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2113 ac_clean_files_save=$ac_clean_files
2114 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115 # Try to create an executable without -o first, disregard a.out.
2116 # It will help us diagnose broken compilers, and finding out an intuition
2118 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2130 # Be careful to initialize this variable, since it used to be cached.
2131 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2133 # b.out is created by i960 compilers.
2134 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2136 test -f "$ac_file" || continue
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2141 # This is the source file.
2144 # We found the default executable, but exeext='' is most
2148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2159 echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&2;}
2166 { (exit 77); exit 77; }; }
2169 ac_exeext=$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 echo "${ECHO_T}$ac_file" >&6
2173 # Check the compiler produces executables we can run. If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178 # If not cross compiling, check that we can run a simple program.
2179 if test "$cross_compiling" != yes; then
2180 if { ac_try='./$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2188 if test "$cross_compiling" = maybe; then
2191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2201 echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6
2204 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 ac_clean_files=$ac_clean_files_save
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211 echo "${ECHO_T}$cross_compiling" >&6
2213 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222 # work properly (i.e., refer to `conftest.exe'), while it won't with
2224 for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2242 rm -f conftest$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 echo "${ECHO_T}$ac_cv_exeext" >&6
2246 rm -f conftest.$ac_ext
2247 EXEEXT=$ac_cv_exeext
2249 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251 if test "${ac_cv_objext+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 cat >conftest.$ac_ext <<_ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2269 rm -f conftest.o conftest.obj
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2295 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 echo "${ECHO_T}$ac_cv_objext" >&6
2297 OBJEXT=$ac_cv_objext
2299 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 cat >conftest.$ac_ext <<_ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1 >conftest.err
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2355 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357 GCC=`test $ac_compiler_gnu = yes && echo yes`
2358 ac_test_CFLAGS=${CFLAGS+set}
2359 ac_save_CFLAGS=$CFLAGS
2361 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363 if test "${ac_cv_prog_cc_g+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2385 grep -v '^ *+' conftest.er1 >conftest.err
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414 if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416 elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2423 if test "$GCC" = yes; then
2429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 ac_cv_prog_cc_stdc=no
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2444 #include <sys/types.h>
2445 #include <sys/stat.h>
2446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447 struct buf { int x; };
2448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2460 s = g (p, va_arg (v,int));
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2474 int test (int i, double x);
2475 struct s1 {int (*f) (int a);};
2476 struct s2 {int (*f) (double a);};
2477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2488 # Don't try gcc -ansi; that turns off useful extensions and
2489 # breaks some systems' header files.
2490 # AIX -qlanglvl=ansi
2491 # Ultrix and OSF/1 -std1
2492 # HP-UX 10.20 and later -Ae
2493 # HP-UX older versions -Aa -D_HPUX_SOURCE
2494 # SVR4 -Xc -D__EXTENSIONS__
2495 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 ac_cv_prog_cc_stdc=$ac_arg
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.err conftest.$ac_objext
2529 rm -f conftest.$ac_ext conftest.$ac_objext
2534 case "x$ac_cv_prog_cc_stdc" in
2536 echo "$as_me:$LINENO: result: none needed" >&5
2537 echo "${ECHO_T}none needed" >&6 ;;
2539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541 CC="$CC $ac_cv_prog_cc_stdc" ;;
2544 # Some people use a C++ compiler to compile C. Since we use `exit',
2545 # in C++ we need to declare it. In case someone uses the same compiler
2546 # for both compiling C and C++ we need to have the C++ compiler decide
2547 # the declaration of exit, since it's the most demanding environment.
2548 cat >conftest.$ac_ext <<_ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2557 grep -v '^ *+' conftest.er1 >conftest.err
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 for ac_declaration in \
2577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2583 cat >conftest.$ac_ext <<_ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 if test -n "$ac_declaration"; then
2676 echo '#ifdef __cplusplus' >>confdefs.h
2677 echo $ac_declaration >>confdefs.h
2678 echo '#endif' >>confdefs.h
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2695 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2696 if test "${ac_cv_c_bigendian+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 # See if sys/param.h defines the BYTE_ORDER macro.
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2706 #include <sys/types.h>
2707 #include <sys/param.h>
2712 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 # It does; now see whether it defined to BIG_ENDIAN or not.
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749 #include <sys/types.h>
2750 #include <sys/param.h>
2755 #if BYTE_ORDER != BIG_ENDIAN
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_c_bigendian=yes
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 ac_cv_c_bigendian=no
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 # It does not; compile a test program.
2798 if test "$cross_compiling" = yes; then
2799 # try to guess the endianness by grepping values into an object file
2800 ac_cv_c_bigendian=unknown
2801 cat >conftest.$ac_ext <<_ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2807 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2808 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2809 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2810 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2811 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2812 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2816 _ascii (); _ebcdic ();
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2825 grep -v '^ *+' conftest.er1 >conftest.err
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_c_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2844 ac_cv_c_bigendian=yes
2846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2847 if test "$ac_cv_c_bigendian" = unknown; then
2848 ac_cv_c_bigendian=no
2850 # finding both strings is unlikely to happen, but who knows?
2851 ac_cv_c_bigendian=unknown
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2870 /* Are we little or big endian? From Harbison&Steele. */
2874 char c[sizeof (long)];
2877 exit (u.c[sizeof (long) - 1] == 1);
2880 rm -f conftest$ac_exeext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882 (eval $ac_link) 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_c_bigendian=no
2893 echo "$as_me: program exited with status $ac_status" >&5
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2898 ac_cv_c_bigendian=yes
2900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2906 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2907 case $ac_cv_c_bigendian in
2915 { { echo "$as_me:$LINENO: error: unknown endianness
2916 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2917 echo "$as_me: error: unknown endianness
2918 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2919 { (exit 1); exit 1; }; } ;;
2924 # Check whether --enable-optimized or --disable-optimized was given.
2925 if test "${enable_optimized+set}" = set; then
2926 enableval="$enable_optimized"
2931 if test ${enableval} = "no" ; then
2935 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2939 # Check whether --enable-jit or --disable-jit was given.
2940 if test "${enable_jit+set}" = set; then
2941 enableval="$enable_jit"
2946 if test ${enableval} = "no"
2951 case "$llvm_cv_target_arch" in
2952 x86) JIT=TARGET_HAS_JIT=1
2954 Sparc) JIT=TARGET_HAS_JIT=1
2956 PowerPC) JIT=TARGET_HAS_JIT=1
2963 # Check whether --enable-doxygen or --disable-doxygen was given.
2964 if test "${enable_doxygen+set}" = set; then
2965 enableval="$enable_doxygen"
2970 case "$enableval" in
2971 yes) ENABLE_DOXYGEN=1
2973 no) ENABLE_DOXYGEN=0
2975 default) ENABLE_DOXYGEN=0
2977 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2978 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2979 { (exit 1); exit 1; }; } ;;
2983 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2984 if test "${with_llvmgccdir+set}" = set; then
2985 withval="$with_llvmgccdir"
2990 if test "x$LLVMGCCDIR" = x ; then
2991 case "$llvm_cv_platform_type" in
2993 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2994 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2999 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
3000 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3010 ac_cpp='$CPP $CPPFLAGS'
3011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3015 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3016 # On Suns, sometimes $CPP names a directory.
3017 if test -n "$CPP" && test -d "$CPP"; then
3020 if test -z "$CPP"; then
3021 if test "${ac_cv_prog_CPP+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 # Double quotes because CPP needs to be expanded
3025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3028 for ac_c_preproc_warn_flag in '' yes
3030 # Use a header file that comes with gcc, so configuring glibc
3031 # with a fresh cross-compiler works.
3032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3033 # <limits.h> exists even on freestanding compilers.
3034 # On the NeXT, cc -E runs the code through the compiler's parser,
3035 # not just through cpp. "Syntax error" is here to catch this case.
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3043 # include <limits.h>
3045 # include <assert.h>
3049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3052 grep -v '^ *+' conftest.er1 >conftest.err
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } >/dev/null; then
3057 if test -s conftest.err; then
3058 ac_cpp_err=$ac_c_preproc_warn_flag
3059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066 if test -z "$ac_cpp_err"; then
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3072 # Broken: fails on valid input.
3075 rm -f conftest.err conftest.$ac_ext
3077 # OK, works on sane cases. Now check whether non-existent headers
3078 # can be detected and how.
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 #include <ac_nonexistent.h>
3087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } >/dev/null; then
3095 if test -s conftest.err; then
3096 ac_cpp_err=$ac_c_preproc_warn_flag
3097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3104 if test -z "$ac_cpp_err"; then
3105 # Broken: success on invalid input.
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 # Passes both tests.
3115 rm -f conftest.err conftest.$ac_ext
3118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3119 rm -f conftest.err conftest.$ac_ext
3120 if $ac_preproc_ok; then
3132 echo "$as_me:$LINENO: result: $CPP" >&5
3133 echo "${ECHO_T}$CPP" >&6
3135 for ac_c_preproc_warn_flag in '' yes
3137 # Use a header file that comes with gcc, so configuring glibc
3138 # with a fresh cross-compiler works.
3139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3140 # <limits.h> exists even on freestanding compilers.
3141 # On the NeXT, cc -E runs the code through the compiler's parser,
3142 # not just through cpp. "Syntax error" is here to catch this case.
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3150 # include <limits.h>
3152 # include <assert.h>
3156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } >/dev/null; then
3164 if test -s conftest.err; then
3165 ac_cpp_err=$ac_c_preproc_warn_flag
3166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3173 if test -z "$ac_cpp_err"; then
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3179 # Broken: fails on valid input.
3182 rm -f conftest.err conftest.$ac_ext
3184 # OK, works on sane cases. Now check whether non-existent headers
3185 # can be detected and how.
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3192 #include <ac_nonexistent.h>
3194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3197 grep -v '^ *+' conftest.er1 >conftest.err
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } >/dev/null; then
3202 if test -s conftest.err; then
3203 ac_cpp_err=$ac_c_preproc_warn_flag
3204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3211 if test -z "$ac_cpp_err"; then
3212 # Broken: success on invalid input.
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 # Passes both tests.
3222 rm -f conftest.err conftest.$ac_ext
3225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3226 rm -f conftest.err conftest.$ac_ext
3227 if $ac_preproc_ok; then
3230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3231 See \`config.log' for more details." >&5
3232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3233 See \`config.log' for more details." >&2;}
3234 { (exit 1); exit 1; }; }
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_CC+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 if test -n "$CC"; then
3279 echo "$as_me:$LINENO: result: $CC" >&5
3280 echo "${ECHO_T}$CC" >&6
3282 echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3286 test -n "$CC" && break
3289 if test -z "$CC"; then
3293 # Extract the first word of "$ac_prog", so it can be a program name with args.
3294 set dummy $ac_prog; ac_word=$2
3295 echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 if test -n "$ac_ct_CC"; then
3301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_ac_ct_CC="$ac_prog"
3311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320 if test -n "$ac_ct_CC"; then
3321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3322 echo "${ECHO_T}$ac_ct_CC" >&6
3324 echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6
3328 test -n "$ac_ct_CC" && break
3335 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details." >&5
3337 echo "$as_me: error: no acceptable C compiler found in \$PATH
3338 See \`config.log' for more details." >&2;}
3339 { (exit 1); exit 1; }; }
3341 # Provide some information about the compiler.
3342 echo "$as_me:$LINENO:" \
3343 "checking for C compiler version" >&5
3344 ac_compiler=`set X $ac_compile; echo $2`
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346 (eval $ac_compiler --version </dev/null >&5) 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351 (eval $ac_compiler -v </dev/null >&5) 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356 (eval $ac_compiler -V </dev/null >&5) 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }
3361 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3362 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>conftest.er1
3388 grep -v '^ *+' conftest.er1 >conftest.err
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_c_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3417 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3419 GCC=`test $ac_compiler_gnu = yes && echo yes`
3420 ac_test_CFLAGS=${CFLAGS+set}
3421 ac_save_CFLAGS=$CFLAGS
3423 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3424 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3425 if test "${ac_cv_prog_cc_g+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3474 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3475 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3476 if test "$ac_test_CFLAGS" = set; then
3477 CFLAGS=$ac_save_CFLAGS
3478 elif test $ac_cv_prog_cc_g = yes; then
3479 if test "$GCC" = yes; then
3485 if test "$GCC" = yes; then
3491 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3492 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3493 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 ac_cv_prog_cc_stdc=no
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3506 #include <sys/types.h>
3507 #include <sys/stat.h>
3508 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3509 struct buf { int x; };
3510 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3511 static char *e (p, i)
3517 static char *f (char * (*g) (char **, int), char **p, ...)
3522 s = g (p, va_arg (v,int));
3527 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3528 function prototypes and stuff, but not '\xHH' hex character constants.
3529 These don't provoke an error unfortunately, instead are silently treated
3530 as 'x'. The following induces an error, until -std1 is added to get
3531 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3532 array size at least. It's necessary to write '\x00'==0 to get something
3533 that's true only with -std1. */
3534 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3536 int test (int i, double x);
3537 struct s1 {int (*f) (int a);};
3538 struct s2 {int (*f) (double a);};
3539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3550 # Don't try gcc -ansi; that turns off useful extensions and
3551 # breaks some systems' header files.
3552 # AIX -qlanglvl=ansi
3553 # Ultrix and OSF/1 -std1
3554 # HP-UX 10.20 and later -Ae
3555 # HP-UX older versions -Aa -D_HPUX_SOURCE
3556 # SVR4 -Xc -D__EXTENSIONS__
3557 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3559 CC="$ac_save_CC $ac_arg"
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try='test -z "$ac_c_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_cv_prog_cc_stdc=$ac_arg
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3589 rm -f conftest.err conftest.$ac_objext
3591 rm -f conftest.$ac_ext conftest.$ac_objext
3596 case "x$ac_cv_prog_cc_stdc" in
3598 echo "$as_me:$LINENO: result: none needed" >&5
3599 echo "${ECHO_T}none needed" >&6 ;;
3601 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3602 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3603 CC="$CC $ac_cv_prog_cc_stdc" ;;
3606 # Some people use a C++ compiler to compile C. Since we use `exit',
3607 # in C++ we need to declare it. In case someone uses the same compiler
3608 # for both compiling C and C++ we need to have the C++ compiler decide
3609 # the declaration of exit, since it's the most demanding environment.
3610 cat >conftest.$ac_ext <<_ACEOF
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617 (eval $ac_compile) 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_c_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 for ac_declaration in \
3639 'extern "C" void std::exit (int) throw (); using std::exit;' \
3640 'extern "C" void std::exit (int); using std::exit;' \
3641 'extern "C" void exit (int) throw ();' \
3642 'extern "C" void exit (int);' \
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3661 rm -f conftest.$ac_objext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663 (eval $ac_compile) 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_c_werror_flag"
3671 || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691 cat >conftest.$ac_ext <<_ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3706 rm -f conftest.$ac_objext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708 (eval $ac_compile) 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } &&
3715 { ac_try='test -z "$ac_c_werror_flag"
3716 || test ! -s conftest.err'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest.$ac_objext'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737 if test -n "$ac_declaration"; then
3738 echo '#ifdef __cplusplus' >>confdefs.h
3739 echo $ac_declaration >>confdefs.h
3740 echo '#endif' >>confdefs.h
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 ac_cpp='$CXXCPP $CPPFLAGS'
3757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3760 if test -n "$ac_tool_prefix"; then
3761 for ac_prog in $CCC g++
3763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3765 echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_prog_CXX+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 if test -n "$CXX"; then
3771 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 if test -n "$CXX"; then
3791 echo "$as_me:$LINENO: result: $CXX" >&5
3792 echo "${ECHO_T}$CXX" >&6
3794 echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6
3798 test -n "$CXX" && break
3801 if test -z "$CXX"; then
3803 for ac_prog in $CCC g++
3805 # Extract the first word of "$ac_prog", so it can be a program name with args.
3806 set dummy $ac_prog; ac_word=$2
3807 echo "$as_me:$LINENO: checking for $ac_word" >&5
3808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 if test -n "$ac_ct_CXX"; then
3813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_ac_ct_CXX="$ac_prog"
3823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3832 if test -n "$ac_ct_CXX"; then
3833 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3834 echo "${ECHO_T}$ac_ct_CXX" >&6
3836 echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6
3840 test -n "$ac_ct_CXX" && break
3842 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3848 # Provide some information about the compiler.
3849 echo "$as_me:$LINENO:" \
3850 "checking for C++ compiler version" >&5
3851 ac_compiler=`set X $ac_compile; echo $2`
3852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3853 (eval $ac_compiler --version </dev/null >&5) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }
3857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3858 (eval $ac_compiler -v </dev/null >&5) 2>&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }
3862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3863 (eval $ac_compiler -V </dev/null >&5) 2>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }
3868 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3869 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3870 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3891 rm -f conftest.$ac_objext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 { ac_try='test -z "$ac_cxx_werror_flag"
3901 || test ! -s conftest.err'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try='test -s conftest.$ac_objext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3924 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3925 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3926 GXX=`test $ac_compiler_gnu = yes && echo yes`
3927 ac_test_CXXFLAGS=${CXXFLAGS+set}
3928 ac_save_CXXFLAGS=$CXXFLAGS
3930 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3931 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3932 if test "${ac_cv_prog_cxx_g+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>conftest.er1
3954 grep -v '^ *+' conftest.er1 >conftest.err
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -z "$ac_cxx_werror_flag"
3960 || test ! -s conftest.err'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 ac_cv_prog_cxx_g=yes
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3982 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3983 if test "$ac_test_CXXFLAGS" = set; then
3984 CXXFLAGS=$ac_save_CXXFLAGS
3985 elif test $ac_cv_prog_cxx_g = yes; then
3986 if test "$GXX" = yes; then
3992 if test "$GXX" = yes; then
3998 for ac_declaration in \
4000 'extern "C" void std::exit (int) throw (); using std::exit;' \
4001 'extern "C" void std::exit (int); using std::exit;' \
4002 'extern "C" void exit (int) throw ();' \
4003 'extern "C" void exit (int);' \
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4022 rm -f conftest.$ac_objext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>conftest.er1
4026 grep -v '^ *+' conftest.er1 >conftest.err
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_cxx_werror_flag"
4032 || test ! -s conftest.err'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069 (eval $ac_compile) 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_cxx_werror_flag"
4077 || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest.$ac_objext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098 if test -n "$ac_declaration"; then
4099 echo '#ifdef __cplusplus' >>confdefs.h
4100 echo $ac_declaration >>confdefs.h
4101 echo '#endif' >>confdefs.h
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110 echo "$as_me:$LINENO: checking " >&5
4111 echo $ECHO_N "checking ... $ECHO_C" >&6
4112 if test "${ac_cv_has_flex+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 for ac_prog in flex lex
4117 # Extract the first word of "$ac_prog", so it can be a program name with args.
4118 set dummy $ac_prog; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_LEX+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 if test -n "$LEX"; then
4125 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_LEX="$ac_prog"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 if test -n "$LEX"; then
4145 echo "$as_me:$LINENO: result: $LEX" >&5
4146 echo "${ECHO_T}$LEX" >&6
4148 echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4152 test -n "$LEX" && break
4154 test -n "$LEX" || LEX=":"
4156 if test -z "$LEXLIB"
4158 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4159 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4160 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 ac_check_lib_save_LIBS=$LIBS
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4172 /* Override any gcc2 internal prototype to avoid an error. */
4176 /* We use char because int might match the return type of a gcc2
4177 builtin and then its argument prototype would still apply. */
4187 rm -f conftest.$ac_objext conftest$ac_exeext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4189 (eval $ac_link) 2>conftest.er1
4191 grep -v '^ *+' conftest.er1 >conftest.err
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest$ac_exeext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_lib_fl_yywrap=yes
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 ac_cv_lib_fl_yywrap=no
4216 rm -f conftest.err conftest.$ac_objext \
4217 conftest$ac_exeext conftest.$ac_ext
4218 LIBS=$ac_check_lib_save_LIBS
4220 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4221 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4222 if test $ac_cv_lib_fl_yywrap = yes; then
4225 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4226 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4227 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 ac_check_lib_save_LIBS=$LIBS
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4239 /* Override any gcc2 internal prototype to avoid an error. */
4243 /* We use char because int might match the return type of a gcc2
4244 builtin and then its argument prototype would still apply. */
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256 (eval $ac_link) 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag"
4264 || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest$ac_exeext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_lib_l_yywrap=yes
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 ac_cv_lib_l_yywrap=no
4283 rm -f conftest.err conftest.$ac_objext \
4284 conftest$ac_exeext conftest.$ac_ext
4285 LIBS=$ac_check_lib_save_LIBS
4287 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4288 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4289 if test $ac_cv_lib_l_yywrap = yes; then
4297 if test "x$LEX" != "x:"; then
4298 echo "$as_me:$LINENO: checking lex output file root" >&5
4299 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4300 if test "${ac_cv_prog_lex_root+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 # The minimal lex program is just a single line: %%. But some broken lexes
4304 # (Solaris, I think it was) want two %% lines, so accommodate them.
4305 cat >conftest.l <<_ACEOF
4309 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4310 (eval $LEX conftest.l) 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }
4314 if test -f lex.yy.c; then
4315 ac_cv_prog_lex_root=lex.yy
4316 elif test -f lexyy.c; then
4317 ac_cv_prog_lex_root=lexyy
4319 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4320 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4321 { (exit 1); exit 1; }; }
4324 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4325 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4327 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4329 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4330 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4331 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 # POSIX says lex can declare yytext either as a pointer or an array; the
4335 # default is implementation-dependent. Figure out which it is, since
4336 # not all implementations provide the %pointer and %array declarations.
4337 ac_cv_prog_lex_yytext_pointer=no
4338 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4340 LIBS="$LIBS $LEXLIB"
4341 cat >conftest.$ac_ext <<_ACEOF
4342 `cat $LEX_OUTPUT_ROOT.c`
4344 rm -f conftest.$ac_objext conftest$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346 (eval $ac_link) 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest$ac_exeext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_cv_prog_lex_yytext_pointer=yes
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4372 rm -f conftest.err conftest.$ac_objext \
4373 conftest$ac_exeext conftest.$ac_ext
4375 rm -f "${LEX_OUTPUT_ROOT}.c"
4378 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4379 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4380 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4382 cat >>confdefs.h <<\_ACEOF
4383 #define YYTEXT_POINTER 1
4391 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4392 echo "${ECHO_T}$ac_cv_has_flex" >&6
4393 if test "$LEX" != "flex"; then
4394 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4395 echo "$as_me: error: flex not found but required" >&2;}
4396 { (exit 1); exit 1; }; }
4402 echo "$as_me:$LINENO: checking " >&5
4403 echo $ECHO_N "checking ... $ECHO_C" >&6
4404 if test "${llvm_cv_has_bison+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 for ac_prog in 'bison -y' byacc
4409 # Extract the first word of "$ac_prog", so it can be a program name with args.
4410 set dummy $ac_prog; ac_word=$2
4411 echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413 if test "${ac_cv_prog_YACC+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 if test -n "$YACC"; then
4417 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_YACC="$ac_prog"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 YACC=$ac_cv_prog_YACC
4436 if test -n "$YACC"; then
4437 echo "$as_me:$LINENO: result: $YACC" >&5
4438 echo "${ECHO_T}$YACC" >&6
4440 echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4444 test -n "$YACC" && break
4446 test -n "$YACC" || YACC="yacc"
4449 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4450 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4451 if test "$YACC" != "bison -y"; then
4452 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4453 echo "$as_me: error: bison not found but required" >&2;}
4454 { (exit 1); exit 1; }; }
4460 echo "$as_me:$LINENO: checking for GNU make" >&5
4461 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4462 if test "${llvm_cv_gnu_make_command+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 llvm_cv_gnu_make_command=''
4466 for a in "$MAKE" make gmake gnumake ; do
4467 if test -z "$a" ; then continue ; fi ;
4468 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4470 llvm_cv_gnu_make_command=$a ;
4475 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4476 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4477 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4481 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4482 echo "${ECHO_T}\"Not found\"" >&6;
4486 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4489 if test "$LN_S" = "ln -s"; then
4490 echo "$as_me:$LINENO: result: yes" >&5
4491 echo "${ECHO_T}yes" >&6
4493 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4494 echo "${ECHO_T}no, using $LN_S" >&6
4497 # Extract the first word of "date", so it can be a program name with args.
4498 set dummy date; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_path_DATE+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4527 DATE=$ac_cv_path_DATE
4529 if test -n "$DATE"; then
4530 echo "$as_me:$LINENO: result: $DATE" >&5
4531 echo "${ECHO_T}$DATE" >&6
4533 echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4537 # Extract the first word of "find", so it can be a program name with args.
4538 set dummy find; ac_word=$2
4539 echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541 if test "${ac_cv_path_FIND+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4567 FIND=$ac_cv_path_FIND
4569 if test -n "$FIND"; then
4570 echo "$as_me:$LINENO: result: $FIND" >&5
4571 echo "${ECHO_T}$FIND" >&6
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4577 # Extract the first word of "grep", so it can be a program name with args.
4578 set dummy grep; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_path_GREP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4607 GREP=$ac_cv_path_GREP
4609 if test -n "$GREP"; then
4610 echo "$as_me:$LINENO: result: $GREP" >&5
4611 echo "${ECHO_T}$GREP" >&6
4613 echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4617 # Extract the first word of "mkdir", so it can be a program name with args.
4618 set dummy mkdir; ac_word=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_path_MKDIR+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4647 MKDIR=$ac_cv_path_MKDIR
4649 if test -n "$MKDIR"; then
4650 echo "$as_me:$LINENO: result: $MKDIR" >&5
4651 echo "${ECHO_T}$MKDIR" >&6
4653 echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4657 # Extract the first word of "mv", so it can be a program name with args.
4658 set dummy mv; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_path_MV+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4689 if test -n "$MV"; then
4690 echo "$as_me:$LINENO: result: $MV" >&5
4691 echo "${ECHO_T}$MV" >&6
4693 echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4697 # Extract the first word of "pax", so it can be a program name with args.
4698 set dummy pax; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_path_PAX+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4729 if test -n "$PAX"; then
4730 echo "$as_me:$LINENO: result: $PAX" >&5
4731 echo "${ECHO_T}$PAX" >&6
4733 echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4737 if test -n "$ac_tool_prefix"; then
4738 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4739 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4740 echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4742 if test "${ac_cv_prog_RANLIB+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 if test -n "$RANLIB"; then
4746 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 RANLIB=$ac_cv_prog_RANLIB
4765 if test -n "$RANLIB"; then
4766 echo "$as_me:$LINENO: result: $RANLIB" >&5
4767 echo "${ECHO_T}$RANLIB" >&6
4769 echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6
4774 if test -z "$ac_cv_prog_RANLIB"; then
4775 ac_ct_RANLIB=$RANLIB
4776 # Extract the first word of "ranlib", so it can be a program name with args.
4777 set dummy ranlib; ac_word=$2
4778 echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 if test -n "$ac_ct_RANLIB"; then
4784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_prog_ac_ct_RANLIB="ranlib"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4804 if test -n "$ac_ct_RANLIB"; then
4805 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4806 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4808 echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4812 RANLIB=$ac_ct_RANLIB
4814 RANLIB="$ac_cv_prog_RANLIB"
4817 # Extract the first word of "rm", so it can be a program name with args.
4818 set dummy rm; ac_word=$2
4819 echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821 if test "${ac_cv_path_RM+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4849 if test -n "$RM"; then
4850 echo "$as_me:$LINENO: result: $RM" >&5
4851 echo "${ECHO_T}$RM" >&6
4853 echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4857 # Extract the first word of "sed", so it can be a program name with args.
4858 set dummy sed; ac_word=$2
4859 echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861 if test "${ac_cv_path_SED+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4889 if test -n "$SED"; then
4890 echo "$as_me:$LINENO: result: $SED" >&5
4891 echo "${ECHO_T}$SED" >&6
4893 echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6
4897 # Extract the first word of "tar", so it can be a program name with args.
4898 set dummy tar; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_path_TAR+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4929 if test -n "$TAR"; then
4930 echo "$as_me:$LINENO: result: $TAR" >&5
4931 echo "${ECHO_T}$TAR" >&6
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4938 # Find a good install program. We prefer a C program (faster),
4939 # so one script is as good as another. But avoid the broken or
4940 # incompatible versions:
4941 # SysV /etc/install, /usr/sbin/install
4942 # SunOS /usr/etc/install
4943 # IRIX /sbin/install
4945 # AmigaOS /C/install, which installs bootblocks on floppy discs
4946 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4947 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4948 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4949 # OS/2's system install, which has a completely different semantic
4950 # ./install, which can be erroneously created by make from ./install.sh.
4951 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4952 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4953 if test -z "$INSTALL"; then
4954 if test "${ac_cv_path_install+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir=.
4962 # Account for people who put trailing slashes in PATH elements.
4964 ./ | .// | /cC/* | \
4965 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4966 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4969 # OSF1 and SCO ODT 3.0 have their own names for install.
4970 # Don't use installbsd from OSF since it installs stuff as root
4972 for ac_prog in ginstall scoinst install; do
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4975 if test $ac_prog = install &&
4976 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4977 # AIX install. It has an incompatible calling convention.
4979 elif test $ac_prog = install &&
4980 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4981 # program-specific install script used by HP pwplus--don't use.
4984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4996 if test "${ac_cv_path_install+set}" = set; then
4997 INSTALL=$ac_cv_path_install
4999 # As a last resort, use the slow shell script. We don't cache a
5000 # path for INSTALL within a source directory, because that will
5001 # break other packages using the cache if that directory is
5002 # removed, or if the path is relative.
5003 INSTALL=$ac_install_sh
5006 echo "$as_me:$LINENO: result: $INSTALL" >&5
5007 echo "${ECHO_T}$INSTALL" >&6
5009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5010 # It thinks the first close brace ends the variable substitution.
5011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5018 # Extract the first word of "bzip2", so it can be a program name with args.
5019 set dummy bzip2; ac_word=$2
5020 echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022 if test "${ac_cv_path_BZIP2+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5048 BZIP2=$ac_cv_path_BZIP2
5050 if test -n "$BZIP2"; then
5051 echo "$as_me:$LINENO: result: $BZIP2" >&5
5052 echo "${ECHO_T}$BZIP2" >&6
5054 echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5058 # Extract the first word of "dot", so it can be a program name with args.
5059 set dummy dot; ac_word=$2
5060 echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5062 if test "${ac_cv_path_DOT+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5090 if test -n "$DOT"; then
5091 echo "$as_me:$LINENO: result: $DOT" >&5
5092 echo "${ECHO_T}$DOT" >&6
5094 echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6
5098 # Extract the first word of "doxygen", so it can be a program name with args.
5099 set dummy doxygen; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5128 DOXYGEN=$ac_cv_path_DOXYGEN
5130 if test -n "$DOXYGEN"; then
5131 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5132 echo "${ECHO_T}$DOXYGEN" >&6
5134 echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6
5138 # Extract the first word of "etags", so it can be a program name with args.
5139 set dummy etags; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_path_ETAGS+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5168 ETAGS=$ac_cv_path_ETAGS
5170 if test -n "$ETAGS"; then
5171 echo "$as_me:$LINENO: result: $ETAGS" >&5
5172 echo "${ECHO_T}$ETAGS" >&6
5174 echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5178 # Extract the first word of "groff", so it can be a program name with args.
5179 set dummy groff; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_path_GROFF+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5208 GROFF=$ac_cv_path_GROFF
5210 if test -n "$GROFF"; then
5211 echo "$as_me:$LINENO: result: $GROFF" >&5
5212 echo "${ECHO_T}$GROFF" >&6
5214 echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5218 # Extract the first word of "gzip", so it can be a program name with args.
5219 set dummy gzip; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_path_GZIP+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5248 GZIP=$ac_cv_path_GZIP
5250 if test -n "$GZIP"; then
5251 echo "$as_me:$LINENO: result: $GZIP" >&5
5252 echo "${ECHO_T}$GZIP" >&6
5254 echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5258 # Extract the first word of "pod2html", so it can be a program name with args.
5259 set dummy pod2html; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_path_POD2HTML+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5288 POD2HTML=$ac_cv_path_POD2HTML
5290 if test -n "$POD2HTML"; then
5291 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5292 echo "${ECHO_T}$POD2HTML" >&6
5294 echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5298 # Extract the first word of "pod2man", so it can be a program name with args.
5299 set dummy pod2man; ac_word=$2
5300 echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302 if test "${ac_cv_path_POD2MAN+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5328 POD2MAN=$ac_cv_path_POD2MAN
5330 if test -n "$POD2MAN"; then
5331 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5332 echo "${ECHO_T}$POD2MAN" >&6
5334 echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6
5338 # Extract the first word of "runtest", so it can be a program name with args.
5339 set dummy runtest; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_path_RUNTEST+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5368 RUNTEST=$ac_cv_path_RUNTEST
5370 if test -n "$RUNTEST"; then
5371 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5372 echo "${ECHO_T}$RUNTEST" >&6
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5380 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5381 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5383 # Check whether --with-tclinclude or --without-tclinclude was given.
5384 if test "${with_tclinclude+set}" = set; then
5385 withval="$with_tclinclude"
5386 with_tclinclude=${withval}
5390 if test "${ac_cv_path_tclsh+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 if test x"${with_tclinclude}" != x ; then
5395 if test -f ${with_tclinclude}/tclsh ; then
5396 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5397 elif test -f ${with_tclinclude}/src/tclsh ; then
5398 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5400 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5401 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5402 { (exit 1); exit 1; }; }
5406 if test x"${ac_cv_path_tclsh}" = x ; then
5407 echo "$as_me:$LINENO: result: none" >&5
5408 echo "${ECHO_T}none" >&6
5409 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
5411 # Extract the first word of "$ac_prog", so it can be a program name with args.
5412 set dummy $ac_prog; ac_word=$2
5413 echo "$as_me:$LINENO: checking for $ac_word" >&5
5414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5415 if test "${ac_cv_path_TCLSH+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 TCLSH=$ac_cv_path_TCLSH
5442 if test -n "$TCLSH"; then
5443 echo "$as_me:$LINENO: result: $TCLSH" >&5
5444 echo "${ECHO_T}$TCLSH" >&6
5446 echo "$as_me:$LINENO: result: no" >&5
5447 echo "${ECHO_T}no" >&6
5450 test -n "$TCLSH" && break
5453 if test x"${TCLSH}" = x ; then
5454 ac_cv_path_tclsh='';
5456 ac_cv_path_tclsh="${TCLSH}";
5459 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5460 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5461 TCLSH="${ac_cv_path_tclsh}"
5467 # Extract the first word of "zip", so it can be a program name with args.
5468 set dummy zip; ac_word=$2
5469 echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5471 if test "${ac_cv_path_ZIP+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5499 if test -n "$ZIP"; then
5500 echo "$as_me:$LINENO: result: $ZIP" >&5
5501 echo "${ECHO_T}$ZIP" >&6
5503 echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5508 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5509 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5510 if test "${llvm_cv_link_use_r+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 ac_cpp='$CPP $CPPFLAGS'
5515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5520 CFLAGS="$CFLAGS -Wl,-R."
5521 cat >conftest.$ac_ext <<_ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5531 int main() { return 0; }
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538 (eval $ac_link) 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag"
5546 || test ! -s conftest.err'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest$ac_exeext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 llvm_cv_link_use_r=yes
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 llvm_cv_link_use_r=no
5565 rm -f conftest.err conftest.$ac_objext \
5566 conftest$ac_exeext conftest.$ac_ext
5569 ac_cpp='$CPP $CPPFLAGS'
5570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5576 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5577 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5578 if test "$llvm_cv_link_use_r" = yes ; then
5580 cat >>confdefs.h <<\_ACEOF
5581 #define HAVE_LINK_R 1
5589 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5590 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5591 if test "${ac_cv_c_const+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5604 /* FIXME: Include the comments suggested by Paul. */
5606 /* Ultrix mips cc rejects this. */
5607 typedef int charset[2];
5609 /* SunOS 4.1.1 cc rejects this. */
5610 char const *const *ccp;
5612 /* NEC SVR4.0.2 mips cc rejects this. */
5613 struct point {int x, y;};
5614 static struct point const zero = {0,0};
5615 /* AIX XL C 1.02.0.0 rejects this.
5616 It does not let you subtract one const X* pointer from another in
5617 an arm of an if-expression whose if-part is not a constant
5619 const char *g = "string";
5620 ccp = &g + (g ? g-g : 0);
5621 /* HPUX 7.0 cc rejects these. */
5624 ccp = (char const *const *) p;
5625 { /* SCO 3.2v4 cc rejects this. */
5627 char const *s = 0 ? (char *) 0 : (char const *) 0;
5631 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5633 const int *foo = &x[0];
5636 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5637 typedef const int *iptr;
5641 { /* AIX XL C 1.02.0.0 rejects this saying
5642 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5643 struct s { int j; const int *ap[3]; };
5644 struct s *b; b->j = 5;
5646 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5655 rm -f conftest.$ac_objext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657 (eval $ac_compile) 2>conftest.er1
5659 grep -v '^ *+' conftest.er1 >conftest.err
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -z "$ac_c_werror_flag"
5665 || test ! -s conftest.err'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; } &&
5671 { ac_try='test -s conftest.$ac_objext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5686 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5687 echo "${ECHO_T}$ac_cv_c_const" >&6
5688 if test $ac_cv_c_const = no; then
5690 cat >>confdefs.h <<\_ACEOF
5697 echo "$as_me:$LINENO: checking for egrep" >&5
5698 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5699 if test "${ac_cv_prog_egrep+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5703 then ac_cv_prog_egrep='grep -E'
5704 else ac_cv_prog_egrep='egrep'
5707 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5708 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5709 EGREP=$ac_cv_prog_egrep
5712 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5713 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5714 if test "${ac_cv_header_stdc+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 cat >conftest.$ac_ext <<_ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738 (eval $ac_compile) 2>conftest.er1
5740 grep -v '^ *+' conftest.er1 >conftest.err
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -z "$ac_c_werror_flag"
5746 || test ! -s conftest.err'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try='test -s conftest.$ac_objext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_cv_header_stdc=yes
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 ac_cv_header_stdc=no
5765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5767 if test $ac_cv_header_stdc = yes; then
5768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5779 $EGREP "memchr" >/dev/null 2>&1; then
5782 ac_cv_header_stdc=no
5788 if test $ac_cv_header_stdc = yes; then
5789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5790 cat >conftest.$ac_ext <<_ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5800 $EGREP "free" >/dev/null 2>&1; then
5803 ac_cv_header_stdc=no
5809 if test $ac_cv_header_stdc = yes; then
5810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5811 if test "$cross_compiling" = yes; then
5814 cat >conftest.$ac_ext <<_ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5821 #if ((' ' & 0x0FF) == 0x020)
5822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5825 # define ISLOWER(c) \
5826 (('a' <= (c) && (c) <= 'i') \
5827 || ('j' <= (c) && (c) <= 'r') \
5828 || ('s' <= (c) && (c) <= 'z'))
5829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5837 for (i = 0; i < 256; i++)
5838 if (XOR (islower (i), ISLOWER (i))
5839 || toupper (i) != TOUPPER (i))
5844 rm -f conftest$ac_exeext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846 (eval $ac_link) 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; }; then
5857 echo "$as_me: program exited with status $ac_status" >&5
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5862 ac_cv_header_stdc=no
5864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5868 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5869 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5870 if test $ac_cv_header_stdc = yes; then
5872 cat >>confdefs.h <<\_ACEOF
5873 #define STDC_HEADERS 1
5884 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5885 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5886 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5887 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 #include <sys/types.h>
5909 rm -f conftest.$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>conftest.er1
5913 grep -v '^ *+' conftest.er1 >conftest.err
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_c_werror_flag"
5919 || test ! -s conftest.err'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; } &&
5925 { ac_try='test -s conftest.$ac_objext'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 eval "$as_ac_Header=yes"
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 eval "$as_ac_Header=no"
5938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5943 cat >>confdefs.h <<_ACEOF
5944 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5947 ac_header_dirent=$ac_hdr; break
5951 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5952 if test $ac_header_dirent = dirent.h; then
5953 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5954 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5955 if test "${ac_cv_search_opendir+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 ac_func_search_save_LIBS=$LIBS
5959 ac_cv_search_opendir=no
5960 cat >conftest.$ac_ext <<_ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5967 /* Override any gcc2 internal prototype to avoid an error. */
5971 /* We use char because int might match the return type of a gcc2
5972 builtin and then its argument prototype would still apply. */
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984 (eval $ac_link) 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest$ac_exeext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 ac_cv_search_opendir="none required"
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6010 rm -f conftest.err conftest.$ac_objext \
6011 conftest$ac_exeext conftest.$ac_ext
6012 if test "$ac_cv_search_opendir" = no; then
6013 for ac_lib in dir; do
6014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6015 cat >conftest.$ac_ext <<_ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6022 /* Override any gcc2 internal prototype to avoid an error. */
6026 /* We use char because int might match the return type of a gcc2
6027 builtin and then its argument prototype would still apply. */
6037 rm -f conftest.$ac_objext conftest$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039 (eval $ac_link) 2>conftest.er1
6041 grep -v '^ *+' conftest.er1 >conftest.err
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -z "$ac_c_werror_flag"
6047 || test ! -s conftest.err'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; } &&
6053 { ac_try='test -s conftest$ac_exeext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6059 ac_cv_search_opendir="-l$ac_lib"
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6066 rm -f conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6070 LIBS=$ac_func_search_save_LIBS
6072 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6073 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6074 if test "$ac_cv_search_opendir" != no; then
6075 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6080 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6081 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6082 if test "${ac_cv_search_opendir+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 ac_func_search_save_LIBS=$LIBS
6086 ac_cv_search_opendir=no
6087 cat >conftest.$ac_ext <<_ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6094 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6109 rm -f conftest.$ac_objext conftest$ac_exeext
6110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6111 (eval $ac_link) 2>conftest.er1
6113 grep -v '^ *+' conftest.er1 >conftest.err
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try='test -z "$ac_c_werror_flag"
6119 || test ! -s conftest.err'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; } &&
6125 { ac_try='test -s conftest$ac_exeext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 ac_cv_search_opendir="none required"
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6137 rm -f conftest.err conftest.$ac_objext \
6138 conftest$ac_exeext conftest.$ac_ext
6139 if test "$ac_cv_search_opendir" = no; then
6141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6142 cat >conftest.$ac_ext <<_ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6149 /* Override any gcc2 internal prototype to avoid an error. */
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6164 rm -f conftest.$ac_objext conftest$ac_exeext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6166 (eval $ac_link) 2>conftest.er1
6168 grep -v '^ *+' conftest.er1 >conftest.err
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } &&
6173 { ac_try='test -z "$ac_c_werror_flag"
6174 || test ! -s conftest.err'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; } &&
6180 { ac_try='test -s conftest$ac_exeext'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_search_opendir="-l$ac_lib"
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6193 rm -f conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6197 LIBS=$ac_func_search_save_LIBS
6199 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6200 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6201 if test "$ac_cv_search_opendir" != no; then
6202 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6208 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6219 inttypes.h stdint.h unistd.h
6221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6222 echo "$as_me:$LINENO: checking for $ac_header" >&5
6223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 cat >conftest.$ac_ext <<_ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233 $ac_includes_default
6235 #include <$ac_header>
6237 rm -f conftest.$ac_objext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6239 (eval $ac_compile) 2>conftest.er1
6241 grep -v '^ *+' conftest.er1 >conftest.err
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -z "$ac_c_werror_flag"
6247 || test ! -s conftest.err'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; } &&
6253 { ac_try='test -s conftest.$ac_objext'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6259 eval "$as_ac_Header=yes"
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 eval "$as_ac_Header=no"
6266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6271 cat >>confdefs.h <<_ACEOF
6272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6281 for ac_header in dlfcn.h
6283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6285 echo "$as_me:$LINENO: checking for $ac_header" >&5
6286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6293 # Is the header compilable?
6294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 $ac_includes_default
6303 #include <$ac_header>
6305 rm -f conftest.$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307 (eval $ac_compile) 2>conftest.er1
6309 grep -v '^ *+' conftest.er1 >conftest.err
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest.$ac_objext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_header_compiler=yes
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6332 ac_header_compiler=no
6334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6336 echo "${ECHO_T}$ac_header_compiler" >&6
6338 # Is the header present?
6339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6341 cat >conftest.$ac_ext <<_ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 #include <$ac_header>
6349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6350 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
6357 if test -s conftest.err; then
6358 ac_cpp_err=$ac_c_preproc_warn_flag
6359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6366 if test -z "$ac_cpp_err"; then
6367 ac_header_preproc=yes
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 ac_header_preproc=no
6374 rm -f conftest.err conftest.$ac_ext
6375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376 echo "${ECHO_T}$ac_header_preproc" >&6
6378 # So? What about this header?
6379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc=yes
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6402 ## ----------------------------------- ##
6403 ## Report this to llvmbugs@cs.uiuc.edu ##
6404 ## ----------------------------------- ##
6407 sed "s/^/$as_me: WARNING: /" >&2
6410 echo "$as_me:$LINENO: checking for $ac_header" >&5
6411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 eval "$as_ac_Header=\$ac_header_preproc"
6417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6422 cat >>confdefs.h <<_ACEOF
6423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6430 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6431 if test "${enable_ltdl_install+set}" = set; then
6432 enableval="$enable_ltdl_install"
6438 if test x"${enable_ltdl_install-no}" != xno; then
6440 INSTALL_LTDL_FALSE='#'
6442 INSTALL_LTDL_TRUE='#'
6448 if test x"${enable_ltdl_convenience-no}" != xno; then
6449 CONVENIENCE_LTDL_TRUE=
6450 CONVENIENCE_LTDL_FALSE='#'
6452 CONVENIENCE_LTDL_TRUE='#'
6453 CONVENIENCE_LTDL_FALSE=
6457 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6458 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6460 libname_spec='lib$name'
6468 shlibpath_overrides_runpath=unknown
6470 dynamic_linker="$host_os ld.so"
6471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6472 if test "$GCC" = yes; then
6473 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6474 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6475 # if the path contains ";" then we assume it to be the separator
6476 # otherwise default to the standard path separator (i.e. ":") - it is
6477 # assumed that no part of a normal pathname contains ";" but that should
6478 # okay in the real world where ";" in dirpaths is itself problematic.
6479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6484 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6486 need_lib_prefix=unknown
6487 hardcode_into_libs=no
6489 # when you set need_version to no, make sure it does not cause -set_version
6490 # flags to be left without arguments
6491 need_version=unknown
6496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6497 shlibpath_var=LIBPATH
6499 # AIX 3 has no versioning support, so we append a major version to the name.
6500 soname_spec='${libname}${release}${shared_ext}$major'
6507 hardcode_into_libs=yes
6508 if test "$host_cpu" = ia64; then
6509 # AIX 5 supports IA64
6510 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6511 shlibpath_var=LD_LIBRARY_PATH
6513 # With GCC up to 2.95.x, collect2 would create an import file
6514 # for dependence libraries. The import file would start with
6515 # the line `#! .'. This would cause the generated library to
6516 # depend on `.', always an invalid library. This was fixed in
6517 # development snapshots of GCC prior to 3.0.
6519 aix4 | aix4.[01] | aix4.[01].*)
6520 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6522 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6529 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6530 # soname into executable. Probably we can add versioning support to
6531 # collect2, so additional links can be useful in future.
6532 if test "$aix_use_runtimelinking" = yes; then
6533 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6534 # instead of lib<name>.a to let people know that these are not
6535 # typical AIX shared libraries.
6536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6538 # We preserve .a as extension for shared libraries through AIX4.2
6539 # and later when we are not doing run time linking.
6540 library_names_spec='${libname}${release}.a $libname.a'
6541 soname_spec='${libname}${release}${shared_ext}$major'
6543 shlibpath_var=LIBPATH
6548 library_names_spec='$libname.ixlibrary $libname.a'
6549 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6550 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'
6554 library_names_spec='${libname}${shared_ext}'
6555 dynamic_linker="$host_os ld.so"
6556 shlibpath_var=LIBRARY_PATH
6562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6563 soname_spec='${libname}${release}${shared_ext}$major'
6564 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6565 shlibpath_var=LD_LIBRARY_PATH
6566 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6567 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6568 # the default ld.so.conf also contains /usr/contrib/lib and
6569 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6570 # libtool to hard-code these into programs
6573 cygwin* | mingw* | pw32*)
6574 version_type=windows
6579 case $GCC,$host_os in
6580 yes,cygwin* | yes,mingw* | yes,pw32*)
6581 library_names_spec='$libname.dll.a'
6582 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6583 postinstall_cmds='base_file=`basename \${file}`~
6584 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6585 dldir=$destdir/`dirname \$dlpath`~
6586 test -d \$dldir || mkdir -p \$dldir~
6587 $install_prog $dir/$dlname \$dldir/$dlname'
6588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6589 dlpath=$dir/\$dldll~
6591 shlibpath_overrides_runpath=yes
6595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6597 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6600 # MinGW DLLs use traditional 'lib' prefix
6601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6603 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6604 # It is most probably a Windows format PATH printed by
6605 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6606 # path with ; separators, and with drive letters. We can handle the
6607 # drive letters (cygwin fileutils understands them), so leave them,
6608 # especially as we might pass files found there to a mingw objdump,
6609 # which wouldn't understand a cygwinified path. Ahh.
6610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6616 # pw32 DLLs use 'pw' prefix rather than 'lib'
6617 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6623 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6626 dynamic_linker='Win32 ld.exe'
6627 # FIXME: first we should search . and the directory the executable is in
6631 darwin* | rhapsody*)
6632 dynamic_linker="$host_os dyld"
6636 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6637 soname_spec='${libname}${release}${major}$shared_ext'
6638 shlibpath_overrides_runpath=yes
6639 shlibpath_var=DYLD_LIBRARY_PATH
6640 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6641 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6642 if test "$GCC" = yes; then
6643 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"`
6645 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6647 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6655 soname_spec='${libname}${release}${shared_ext}$major'
6656 shlibpath_var=LD_LIBRARY_PATH
6667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6668 soname_spec='${libname}${release}${shared_ext}$major'
6669 shlibpath_var=LD_LIBRARY_PATH
6670 shlibpath_overrides_runpath=no
6671 hardcode_into_libs=yes
6672 dynamic_linker='GNU ld.so'
6676 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6677 version_type=freebsd-$objformat
6678 case $version_type in
6680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6689 shlibpath_var=LD_LIBRARY_PATH
6692 shlibpath_overrides_runpath=yes
6694 freebsd3.01* | freebsdelf3.01*)
6695 shlibpath_overrides_runpath=yes
6696 hardcode_into_libs=yes
6699 shlibpath_overrides_runpath=no
6700 hardcode_into_libs=yes
6709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6710 soname_spec='${libname}${release}${shared_ext}$major'
6711 shlibpath_var=LD_LIBRARY_PATH
6712 hardcode_into_libs=yes
6715 hpux9* | hpux10* | hpux11*)
6716 # Give a soname corresponding to the major version so that dld.sl refuses to
6717 # link against other versions.
6724 hardcode_into_libs=yes
6725 dynamic_linker="$host_os dld.so"
6726 shlibpath_var=LD_LIBRARY_PATH
6727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6729 soname_spec='${libname}${release}${shared_ext}$major'
6730 if test "X$HPUX_IA64_MODE" = X32; then
6731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6733 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6739 hardcode_into_libs=yes
6740 dynamic_linker="$host_os dld.sl"
6741 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6744 soname_spec='${libname}${release}${shared_ext}$major'
6745 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6750 dynamic_linker="$host_os dld.sl"
6751 shlibpath_var=SHLIB_PATH
6752 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6754 soname_spec='${libname}${release}${shared_ext}$major'
6757 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6758 postinstall_cmds='chmod 555 $lib'
6761 irix5* | irix6* | nonstopux*)
6763 nonstopux*) version_type=nonstopux ;;
6765 if test "$lt_cv_prog_gnu_ld" = yes; then
6773 soname_spec='${libname}${release}${shared_ext}$major'
6774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6776 irix5* | nonstopux*)
6780 case $LD in # libtool.m4 will add one of these switches to LD
6781 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6782 libsuff= shlibsuff= libmagic=32-bit;;
6783 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6784 libsuff=32 shlibsuff=N32 libmagic=N32;;
6785 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6786 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6787 *) libsuff= shlibsuff= libmagic=never-match;;
6791 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6792 shlibpath_overrides_runpath=no
6793 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6794 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6795 hardcode_into_libs=yes
6798 # No shared lib support for Linux oldld, aout, or coff.
6799 linux*oldld* | linux*aout* | linux*coff*)
6803 # This must be Linux ELF.
6808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6809 soname_spec='${libname}${release}${shared_ext}$major'
6810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6811 shlibpath_var=LD_LIBRARY_PATH
6812 shlibpath_overrides_runpath=no
6813 # This implies no fast_install, which is unacceptable.
6814 # Some rework will be needed to allow for fast_install
6815 # before this can be enabled.
6816 hardcode_into_libs=yes
6818 # Append ld.so.conf contents to the search path
6819 if test -f /etc/ld.so.conf; then
6820 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6821 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6824 # We used to test for /lib/ld.so.1 and disable shared libraries on
6825 # powerpc, because MkLinux only supported shared libraries with the
6826 # GNU dynamic linker. Since this was broken with cross compilers,
6827 # most powerpc-linux boxes support dynamic linking these days and
6828 # people can always --disable-shared, the test was removed, and we
6829 # assume the GNU/Linux dynamic linker is in use.
6830 dynamic_linker='GNU/Linux ld.so'
6837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6838 soname_spec='${libname}${release}${shared_ext}$major'
6839 shlibpath_var=LD_LIBRARY_PATH
6840 shlibpath_overrides_runpath=no
6841 hardcode_into_libs=yes
6842 dynamic_linker='GNU ld.so'
6849 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6852 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
6858 shlibpath_var=LD_LIBRARY_PATH
6859 shlibpath_overrides_runpath=yes
6860 hardcode_into_libs=yes
6865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6866 shlibpath_var=LD_LIBRARY_PATH
6867 shlibpath_overrides_runpath=yes
6874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6875 soname_spec='${libname}${release}${shared_ext}$major'
6876 shlibpath_var=LD_LIBRARY_PATH
6877 shlibpath_overrides_runpath=yes
6884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6886 shlibpath_var=LD_LIBRARY_PATH
6887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6889 openbsd2.[89] | openbsd2.[89].*)
6890 shlibpath_overrides_runpath=no
6893 shlibpath_overrides_runpath=yes
6897 shlibpath_overrides_runpath=yes
6902 libname_spec='$name'
6905 library_names_spec='$libname${shared_ext} $libname.a'
6906 dynamic_linker='OS/2 ld.exe'
6907 shlibpath_var=LIBPATH
6910 osf3* | osf4* | osf5*)
6914 soname_spec='${libname}${release}${shared_ext}$major'
6915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6916 shlibpath_var=LD_LIBRARY_PATH
6917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6923 soname_spec='${libname}${release}${shared_ext}$major'
6924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6925 shlibpath_var=LD_LIBRARY_PATH
6932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6933 soname_spec='${libname}${release}${shared_ext}$major'
6934 shlibpath_var=LD_LIBRARY_PATH
6935 shlibpath_overrides_runpath=yes
6936 hardcode_into_libs=yes
6937 # ldd complains unless libraries are executable
6938 postinstall_cmds='chmod +x $lib'
6943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6944 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6945 shlibpath_var=LD_LIBRARY_PATH
6946 shlibpath_overrides_runpath=yes
6947 if test "$with_gnu_ld" = yes; then
6953 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6956 soname_spec='${libname}${release}${shared_ext}$major'
6957 shlibpath_var=LD_LIBRARY_PATH
6958 case $host_vendor in
6960 shlibpath_overrides_runpath=no
6962 export_dynamic_flag_spec='${wl}-Blargedynsym'
6963 runpath_var=LD_RUN_PATH
6971 shlibpath_overrides_runpath=no
6972 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6978 if test -d /usr/nec ;then
6980 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6981 soname_spec='$libname${shared_ext}.$major'
6982 shlibpath_var=LD_LIBRARY_PATH
6988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6989 soname_spec='${libname}${release}${shared_ext}$major'
6990 shlibpath_var=LD_LIBRARY_PATH
6997 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6998 echo "${ECHO_T}$dynamic_linker" >&6
6999 test "$dynamic_linker" = no && can_build_shared=no
7002 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7003 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7004 if test "${libltdl_cv_shlibext+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 eval libltdl_cv_shlibext=$shrext_cmds
7012 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7013 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7014 if test -n "$libltdl_cv_shlibext"; then
7016 cat >>confdefs.h <<_ACEOF
7017 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7023 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7024 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7025 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 libltdl_cv_shlibpath_var="$shlibpath_var"
7030 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7031 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7032 if test -n "$libltdl_cv_shlibpath_var"; then
7034 cat >>confdefs.h <<_ACEOF
7035 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7041 echo "$as_me:$LINENO: checking for the default library search path" >&5
7042 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7043 if test "${libltdl_cv_sys_search_path+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7048 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7049 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7050 if test -n "$libltdl_cv_sys_search_path"; then
7052 for dir in $libltdl_cv_sys_search_path; do
7053 if test -z "$sys_search_path"; then
7054 sys_search_path="$dir"
7056 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7060 cat >>confdefs.h <<_ACEOF
7061 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7066 echo "$as_me:$LINENO: checking for objdir" >&5
7067 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7068 if test "${libltdl_cv_objdir+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 libltdl_cv_objdir="$objdir"
7072 if test -n "$objdir"; then
7075 rm -f .libs 2>/dev/null
7076 mkdir .libs 2>/dev/null
7077 if test -d .libs; then
7078 libltdl_cv_objdir=.libs
7080 # MS-DOS does not allow filenames that begin with a dot.
7081 libltdl_cv_objdir=_libs
7083 rmdir .libs 2>/dev/null
7087 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7088 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7090 cat >>confdefs.h <<_ACEOF
7091 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7095 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7096 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7097 if test "${lt_cv_path_NM+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 if test -n "$NM"; then
7101 # Let the user override the test.
7104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7105 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7107 test -z "$ac_dir" && ac_dir=.
7108 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7109 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7110 # Check to see if the nm accepts a BSD-compat flag.
7111 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7112 # nm: unknown option "B" ignored
7113 # Tru64's nm complains that /dev/null is an invalid object file
7114 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7115 */dev/null* | *'Invalid file or object type'*)
7116 lt_cv_path_NM="$tmp_nm -B"
7120 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7122 lt_cv_path_NM="$tmp_nm -p"
7126 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7127 continue # so that we can try to find one that supports BSD flags
7134 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7137 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7138 echo "${ECHO_T}$lt_cv_path_NM" >&6
7145 # Check for command to grab the raw symbol name followed by C symbol from nm.
7146 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7147 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7148 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 # These are sane defaults that work on at least a few old systems.
7153 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7155 # Character class describing NM global symbol codes.
7156 symcode='[BCDEGRST]'
7158 # Regexp to match symbols that can be accessed directly from C.
7159 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7161 # Transform the above into a raw symbol and a C symbol.
7162 symxfrm='\1 \2\3 \3'
7164 # Transform an extracted symbol line into a proper C declaration
7165 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7167 # Transform an extracted symbol line into symbol name and symbol address
7168 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'"
7170 # Define system-specific variables.
7175 cygwin* | mingw* | pw32*)
7176 symcode='[ABCDGISTW]'
7178 hpux*) # Its linker distinguishes data from code symbols
7179 if test "$host_cpu" = ia64; then
7180 symcode='[ABCDEGRST]'
7182 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7183 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'"
7186 if test "$host_cpu" = ia64; then
7187 symcode='[ABCDGIRSTW]'
7188 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7189 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'"
7193 symcode='[BCDEGRST]'
7196 symcode='[BCDEGQRST]'
7206 # Handle CRLF in mingw tool chain
7210 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7214 # If we're using GNU nm, then use its standard symbol codes.
7215 case `$NM -V 2>&1` in
7216 *GNU* | *'with BFD'*)
7217 symcode='[ABCDGIRSTW]' ;;
7220 # Try without a prefix undercore, then with it.
7221 for ac_symprfx in "" "_"; do
7223 # Write the raw and C identifiers.
7224 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7226 # Check to see that the pipe works correctly.
7230 cat > conftest.$ac_ext <<EOF
7235 void nm_test_func(){}
7239 int main(){nm_test_var='a';nm_test_func();return(0);}
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243 (eval $ac_compile) 2>&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; then
7247 # Now try to grab the symbols.
7249 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7250 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } && test -s "$nlist"; then
7254 # Try sorting and uniquifying the output.
7255 if sort "$nlist" | uniq > "$nlist"T; then
7256 mv -f "$nlist"T "$nlist"
7261 # Make sure that we snagged all the symbols we need.
7262 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7263 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7264 cat <<EOF > conftest.$ac_ext
7270 # Now generate the symbol file.
7271 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7273 cat <<EOF >> conftest.$ac_ext
7274 #if defined (__STDC__) && __STDC__
7275 # define lt_ptr_t void *
7277 # define lt_ptr_t char *
7281 /* The mapping between symbol names and symbols. */
7286 lt_preloaded_symbols[] =
7289 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7290 cat <<\EOF >> conftest.$ac_ext
7298 # Now try linking the two files.
7299 mv conftest.$ac_objext conftstm.$ac_objext
7300 lt_save_LIBS="$LIBS"
7301 lt_save_CFLAGS="$CFLAGS"
7302 LIBS="conftstm.$ac_objext"
7303 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305 (eval $ac_link) 2>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7311 LIBS="$lt_save_LIBS"
7312 CFLAGS="$lt_save_CFLAGS"
7314 echo "cannot find nm_test_func in $nlist" >&5
7317 echo "cannot find nm_test_var in $nlist" >&5
7320 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7323 echo "$progname: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7326 rm -f conftest* conftst*
7328 # Do not use the global_symbol_pipe unless it works.
7329 if test "$pipe_works" = yes; then
7332 lt_cv_sys_global_symbol_pipe=
7338 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7339 lt_cv_sys_global_symbol_to_cdecl=
7341 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7342 echo "$as_me:$LINENO: result: failed" >&5
7343 echo "${ECHO_T}failed" >&6
7345 echo "$as_me:$LINENO: result: ok" >&5
7346 echo "${ECHO_T}ok" >&6
7350 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7351 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7352 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7356 libltdl_cv_preloaded_symbols=yes
7358 libltdl_cv_preloaded_symbols=no
7362 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7363 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7364 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define HAVE_PRELOADED_SYMBOLS 1
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7381 echo "$as_me:$LINENO: checking for shl_load" >&5
7382 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7383 if test "${ac_cv_func_shl_load+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 cat >conftest.$ac_ext <<_ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7394 #define shl_load innocuous_shl_load
7396 /* System header to define __stub macros and hopefully few prototypes,
7397 which can conflict with char shl_load (); below.
7398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399 <limits.h> exists even on freestanding compilers. */
7402 # include <limits.h>
7404 # include <assert.h>
7409 /* Override any gcc2 internal prototype to avoid an error. */
7414 /* We use char because int might match the return type of a gcc2
7415 builtin and then its argument prototype would still apply. */
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7423 char (*f) () = shl_load;
7432 return f != shl_load;
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>conftest.er1
7441 grep -v '^ *+' conftest.er1 >conftest.err
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } &&
7446 { ac_try='test -z "$ac_c_werror_flag"
7447 || test ! -s conftest.err'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; } &&
7453 { ac_try='test -s conftest$ac_exeext'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 ac_cv_func_shl_load=yes
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7464 ac_cv_func_shl_load=no
7466 rm -f conftest.err conftest.$ac_objext \
7467 conftest$ac_exeext conftest.$ac_ext
7469 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7470 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7471 if test $ac_cv_func_shl_load = yes; then
7473 cat >>confdefs.h <<\_ACEOF
7474 #define HAVE_SHL_LOAD 1
7478 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7479 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7480 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 ac_check_lib_save_LIBS=$LIBS
7485 cat >conftest.$ac_ext <<_ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7492 /* Override any gcc2 internal prototype to avoid an error. */
7496 /* We use char because int might match the return type of a gcc2
7497 builtin and then its argument prototype would still apply. */
7507 rm -f conftest.$ac_objext conftest$ac_exeext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7509 (eval $ac_link) 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -z "$ac_c_werror_flag"
7517 || test ! -s conftest.err'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_lib_dld_shl_load=yes
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_cv_lib_dld_shl_load=no
7536 rm -f conftest.err conftest.$ac_objext \
7537 conftest$ac_exeext conftest.$ac_ext
7538 LIBS=$ac_check_lib_save_LIBS
7540 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7541 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7542 if test $ac_cv_lib_dld_shl_load = yes; then
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_SHL_LOAD 1
7548 LIBADD_DL="$LIBADD_DL -ldld"
7550 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7551 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7552 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 ac_check_lib_save_LIBS=$LIBS
7557 cat >conftest.$ac_ext <<_ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7564 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7579 rm -f conftest.$ac_objext conftest$ac_exeext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581 (eval $ac_link) 2>conftest.er1
7583 grep -v '^ *+' conftest.er1 >conftest.err
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try='test -z "$ac_c_werror_flag"
7589 || test ! -s conftest.err'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; } &&
7595 { ac_try='test -s conftest$ac_exeext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 ac_cv_lib_dl_dlopen=yes
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 ac_cv_lib_dl_dlopen=no
7608 rm -f conftest.err conftest.$ac_objext \
7609 conftest$ac_exeext conftest.$ac_ext
7610 LIBS=$ac_check_lib_save_LIBS
7612 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7613 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7614 if test $ac_cv_lib_dl_dlopen = yes; then
7616 cat >>confdefs.h <<\_ACEOF
7617 #define HAVE_LIBDL 1
7620 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7622 cat >conftest.$ac_ext <<_ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7640 rm -f conftest.$ac_objext conftest$ac_exeext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642 (eval $ac_link) 2>conftest.er1
7644 grep -v '^ *+' conftest.er1 >conftest.err
7646 cat conftest.err >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try='test -z "$ac_c_werror_flag"
7650 || test ! -s conftest.err'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; } &&
7656 { ac_try='test -s conftest$ac_exeext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7663 cat >>confdefs.h <<\_ACEOF
7664 #define HAVE_LIBDL 1
7666 libltdl_cv_func_dlopen="yes"
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7672 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7673 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 ac_check_lib_save_LIBS=$LIBS
7678 cat >conftest.$ac_ext <<_ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7685 /* Override any gcc2 internal prototype to avoid an error. */
7689 /* We use char because int might match the return type of a gcc2
7690 builtin and then its argument prototype would still apply. */
7700 rm -f conftest.$ac_objext conftest$ac_exeext
7701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7702 (eval $ac_link) 2>conftest.er1
7704 grep -v '^ *+' conftest.er1 >conftest.err
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } &&
7709 { ac_try='test -z "$ac_c_werror_flag"
7710 || test ! -s conftest.err'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; } &&
7716 { ac_try='test -s conftest$ac_exeext'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; }; then
7722 ac_cv_lib_svld_dlopen=yes
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7727 ac_cv_lib_svld_dlopen=no
7729 rm -f conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7731 LIBS=$ac_check_lib_save_LIBS
7733 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7734 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7735 if test $ac_cv_lib_svld_dlopen = yes; then
7737 cat >>confdefs.h <<\_ACEOF
7738 #define HAVE_LIBDL 1
7741 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7743 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7744 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7745 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 ac_check_lib_save_LIBS=$LIBS
7750 cat >conftest.$ac_ext <<_ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7757 /* Override any gcc2 internal prototype to avoid an error. */
7761 /* We use char because int might match the return type of a gcc2
7762 builtin and then its argument prototype would still apply. */
7772 rm -f conftest.$ac_objext conftest$ac_exeext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7774 (eval $ac_link) 2>conftest.er1
7776 grep -v '^ *+' conftest.er1 >conftest.err
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -z "$ac_c_werror_flag"
7782 || test ! -s conftest.err'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; } &&
7788 { ac_try='test -s conftest$ac_exeext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_lib_dld_dld_link=yes
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7799 ac_cv_lib_dld_dld_link=no
7801 rm -f conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7803 LIBS=$ac_check_lib_save_LIBS
7805 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7806 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7807 if test $ac_cv_lib_dld_dld_link = yes; then
7809 cat >>confdefs.h <<\_ACEOF
7813 LIBADD_DL="$LIBADD_DL -ldld"
7815 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7816 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7817 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 cat >conftest.$ac_ext <<_ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7826 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7828 #define _dyld_func_lookup innocuous__dyld_func_lookup
7830 /* System header to define __stub macros and hopefully few prototypes,
7831 which can conflict with char _dyld_func_lookup (); below.
7832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7833 <limits.h> exists even on freestanding compilers. */
7836 # include <limits.h>
7838 # include <assert.h>
7841 #undef _dyld_func_lookup
7843 /* Override any gcc2 internal prototype to avoid an error. */
7848 /* We use char because int might match the return type of a gcc2
7849 builtin and then its argument prototype would still apply. */
7850 char _dyld_func_lookup ();
7851 /* The GNU C library defines this for functions which it implements
7852 to always fail with ENOSYS. Some functions are actually named
7853 something starting with __ and the normal name is an alias. */
7854 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7857 char (*f) () = _dyld_func_lookup;
7866 return f != _dyld_func_lookup;
7871 rm -f conftest.$ac_objext conftest$ac_exeext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873 (eval $ac_link) 2>conftest.er1
7875 grep -v '^ *+' conftest.er1 >conftest.err
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_c_werror_flag"
7881 || test ! -s conftest.err'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_func__dyld_func_lookup=yes
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 ac_cv_func__dyld_func_lookup=no
7900 rm -f conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7903 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7904 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7905 if test $ac_cv_func__dyld_func_lookup = yes; then
7907 cat >>confdefs.h <<\_ACEOF
7921 rm -f conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7933 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
7935 lt_save_LIBS="$LIBS"
7936 LIBS="$LIBS $LIBADD_DL"
7938 for ac_func in dlerror
7940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7941 echo "$as_me:$LINENO: checking for $ac_func" >&5
7942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7943 if eval "test \"\${$as_ac_var+set}\" = set"; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7954 #define $ac_func innocuous_$ac_func
7956 /* System header to define __stub macros and hopefully few prototypes,
7957 which can conflict with char $ac_func (); below.
7958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7959 <limits.h> exists even on freestanding compilers. */
7962 # include <limits.h>
7964 # include <assert.h>
7969 /* Override any gcc2 internal prototype to avoid an error. */
7974 /* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7977 /* The GNU C library defines this for functions which it implements
7978 to always fail with ENOSYS. Some functions are actually named
7979 something starting with __ and the normal name is an alias. */
7980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7983 char (*f) () = $ac_func;
7992 return f != $ac_func;
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999 (eval $ac_link) 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag"
8007 || test ! -s conftest.err'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; } &&
8013 { ac_try='test -s conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 eval "$as_ac_var=yes"
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 eval "$as_ac_var=no"
8026 rm -f conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8031 if test `eval echo '${'$as_ac_var'}'` = yes; then
8032 cat >>confdefs.h <<_ACEOF
8033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8039 LIBS="$lt_save_LIBS"
8042 ac_cpp='$CPP $CPPFLAGS'
8043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8049 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8050 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8051 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 ac_cv_sys_symbol_underscore=no
8055 cat > conftest.$ac_ext <<EOF
8056 void nm_test_func(){}
8057 int main(){nm_test_func;return 0;}
8059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060 (eval $ac_compile) 2>&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; then
8064 # Now try to grab the symbols.
8065 ac_nlist=conftest.nm
8066 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8067 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && test -s "$ac_nlist"; then
8071 # See whether the symbols have a leading underscore.
8072 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8073 ac_cv_sys_symbol_underscore=yes
8075 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8078 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8082 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8085 echo "configure: failed program was:" >&5
8091 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8092 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8095 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8096 if test x"$libltdl_cv_func_dlopen" = xyes ||
8097 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8098 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8099 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8100 if test "${libltdl_cv_need_uscore+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 libltdl_cv_need_uscore=unknown
8105 LIBS="$LIBS $LIBADD_DL"
8106 if test "$cross_compiling" = yes; then :
8107 libltdl_cv_need_uscore=cross
8109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8110 lt_status=$lt_dlunknown
8111 cat > conftest.$ac_ext <<EOF
8112 #line 8112 "configure"
8113 #include "confdefs.h"
8122 # define LT_DLGLOBAL RTLD_GLOBAL
8125 # define LT_DLGLOBAL DL_GLOBAL
8127 # define LT_DLGLOBAL 0
8131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8132 find out it does not work in some platform. */
8133 #ifndef LT_DLLAZY_OR_NOW
8135 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8138 # define LT_DLLAZY_OR_NOW DL_LAZY
8141 # define LT_DLLAZY_OR_NOW RTLD_NOW
8144 # define LT_DLLAZY_OR_NOW DL_NOW
8146 # define LT_DLLAZY_OR_NOW 0
8154 extern "C" void exit (int);
8157 void fnord() { int i=42;}
8160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8161 int status = $lt_dlunknown;
8165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8166 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8167 /* dlclose (self); */
8173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174 (eval $ac_link) 2>&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8178 (./conftest; exit; ) 2>/dev/null
8181 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8182 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8186 # compilation failed
8195 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8196 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8200 if test x"$libltdl_cv_need_uscore" = xyes; then
8202 cat >>confdefs.h <<\_ACEOF
8203 #define NEED_USCORE 1
8209 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8210 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8211 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 # PORTME does your system automatically load deplibs for dlopen?
8215 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8216 # For now, we just catch OSes we know something about -- in the
8217 # future, we'll try test this programmatically.
8218 libltdl_cv_sys_dlopen_deplibs=unknown
8220 aix3*|aix4.1.*|aix4.2.*)
8221 # Unknown whether this is true for these versions of AIX, but
8222 # we want this `case' here to explicitly catch those versions.
8223 libltdl_cv_sys_dlopen_deplibs=unknown
8226 libltdl_cv_sys_dlopen_deplibs=yes
8229 # Assuming the user has installed a libdl from somewhere, this is true
8230 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8231 libltdl_cv_sys_dlopen_deplibs=yes
8233 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8234 # GNU and its variants, using gnu ld.so (Glibc)
8235 libltdl_cv_sys_dlopen_deplibs=yes
8238 libltdl_cv_sys_dlopen_deplibs=yes
8240 irix[12345]*|irix6.[01]*)
8241 # Catch all versions of IRIX before 6.2, and indicate that we don't
8242 # know how it worked for any of those versions.
8243 libltdl_cv_sys_dlopen_deplibs=unknown
8246 # The case above catches anything before 6.2, and it's known that
8247 # at 6.2 and later dlopen does load deplibs.
8248 libltdl_cv_sys_dlopen_deplibs=yes
8251 libltdl_cv_sys_dlopen_deplibs=yes
8254 libltdl_cv_sys_dlopen_deplibs=yes
8257 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8258 # it did *not* use an RPATH in a shared library to find objects the
8259 # library depends on, so we explictly say `no'.
8260 libltdl_cv_sys_dlopen_deplibs=no
8262 osf5.0|osf5.0a|osf5.1)
8263 # dlopen *does* load deplibs and with the right loader patch applied
8264 # it even uses RPATH in a shared library to search for shared objects
8265 # that the library depends on, but there's no easy way to know if that
8266 # patch is installed. Since this is the case, all we can really
8267 # say is unknown -- it depends on the patch being installed. If
8268 # it is, this changes to `yes'. Without it, it would be `no'.
8269 libltdl_cv_sys_dlopen_deplibs=unknown
8272 # the two cases above should catch all versions of osf <= 5.1. Read
8273 # the comments above for what we know about them.
8274 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8275 # is used to find them so we can finally say `yes'.
8276 libltdl_cv_sys_dlopen_deplibs=yes
8279 libltdl_cv_sys_dlopen_deplibs=yes
8284 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8285 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8286 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8288 cat >>confdefs.h <<\_ACEOF
8289 #define LTDL_DLOPEN_DEPLIBS 1
8295 for ac_header in argz.h
8297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8299 echo "$as_me:$LINENO: checking for $ac_header" >&5
8300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8307 # Is the header compilable?
8308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8310 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 $ac_includes_default
8317 #include <$ac_header>
8319 rm -f conftest.$ac_objext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321 (eval $ac_compile) 2>conftest.er1
8323 grep -v '^ *+' conftest.er1 >conftest.err
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_c_werror_flag"
8329 || test ! -s conftest.err'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; } &&
8335 { ac_try='test -s conftest.$ac_objext'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8341 ac_header_compiler=yes
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8346 ac_header_compiler=no
8348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8350 echo "${ECHO_T}$ac_header_compiler" >&6
8352 # Is the header present?
8353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 #include <$ac_header>
8363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8366 grep -v '^ *+' conftest.er1 >conftest.err
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } >/dev/null; then
8371 if test -s conftest.err; then
8372 ac_cpp_err=$ac_c_preproc_warn_flag
8373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8380 if test -z "$ac_cpp_err"; then
8381 ac_header_preproc=yes
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8386 ac_header_preproc=no
8388 rm -f conftest.err conftest.$ac_ext
8389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8390 echo "${ECHO_T}$ac_header_preproc" >&6
8392 # So? What about this header?
8393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8399 ac_header_preproc=yes
8402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8416 ## ----------------------------------- ##
8417 ## Report this to llvmbugs@cs.uiuc.edu ##
8418 ## ----------------------------------- ##
8421 sed "s/^/$as_me: WARNING: /" >&2
8424 echo "$as_me:$LINENO: checking for $ac_header" >&5
8425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 eval "$as_ac_Header=\$ac_header_preproc"
8431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8436 cat >>confdefs.h <<_ACEOF
8437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8445 echo "$as_me:$LINENO: checking for error_t" >&5
8446 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8447 if test "${ac_cv_type_error_t+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8465 if (sizeof (error_t))
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>conftest.er1
8475 grep -v '^ *+' conftest.er1 >conftest.err
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest.$ac_objext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_type_error_t=yes
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8498 ac_cv_type_error_t=no
8500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8502 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8503 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8504 if test $ac_cv_type_error_t = yes; then
8506 cat >>confdefs.h <<_ACEOF
8507 #define HAVE_ERROR_T 1
8513 cat >>confdefs.h <<\_ACEOF
8525 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8528 echo "$as_me:$LINENO: checking for $ac_func" >&5
8529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8530 if eval "test \"\${$as_ac_var+set}\" = set"; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 cat >conftest.$ac_ext <<_ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8541 #define $ac_func innocuous_$ac_func
8543 /* System header to define __stub macros and hopefully few prototypes,
8544 which can conflict with char $ac_func (); below.
8545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8546 <limits.h> exists even on freestanding compilers. */
8549 # include <limits.h>
8551 # include <assert.h>
8556 /* Override any gcc2 internal prototype to avoid an error. */
8561 /* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
8564 /* The GNU C library defines this for functions which it implements
8565 to always fail with ENOSYS. Some functions are actually named
8566 something starting with __ and the normal name is an alias. */
8567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8570 char (*f) () = $ac_func;
8579 return f != $ac_func;
8584 rm -f conftest.$ac_objext conftest$ac_exeext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586 (eval $ac_link) 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag"
8594 || test ! -s conftest.err'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; } &&
8600 { ac_try='test -s conftest$ac_exeext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 eval "$as_ac_var=yes"
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 eval "$as_ac_var=no"
8613 rm -f conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8618 if test `eval echo '${'$as_ac_var'}'` = yes; then
8619 cat >>confdefs.h <<_ACEOF
8620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8653 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658 echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8666 # Is the header compilable?
8667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8675 $ac_includes_default
8676 #include <$ac_header>
8678 rm -f conftest.$ac_objext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680 (eval $ac_compile) 2>conftest.er1
8682 grep -v '^ *+' conftest.er1 >conftest.err
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_header_compiler=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_header_compiler=no
8707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8709 echo "${ECHO_T}$ac_header_compiler" >&6
8711 # Is the header present?
8712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8714 cat >conftest.$ac_ext <<_ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8720 #include <$ac_header>
8722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } >/dev/null; then
8730 if test -s conftest.err; then
8731 ac_cpp_err=$ac_c_preproc_warn_flag
8732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8739 if test -z "$ac_cpp_err"; then
8740 ac_header_preproc=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_header_preproc=no
8747 rm -f conftest.err conftest.$ac_ext
8748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749 echo "${ECHO_T}$ac_header_preproc" >&6
8751 # So? What about this header?
8752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8758 ac_header_preproc=yes
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8775 ## ----------------------------------- ##
8776 ## Report this to llvmbugs@cs.uiuc.edu ##
8777 ## ----------------------------------- ##
8780 sed "s/^/$as_me: WARNING: /" >&2
8783 echo "$as_me:$LINENO: checking for $ac_header" >&5
8784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 eval "$as_ac_Header=\$ac_header_preproc"
8790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8795 cat >>confdefs.h <<_ACEOF
8796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8807 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8811 echo "$as_me:$LINENO: checking for $ac_header" >&5
8812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8819 # Is the header compilable?
8820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 $ac_includes_default
8829 #include <$ac_header>
8831 rm -f conftest.$ac_objext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8833 (eval $ac_compile) 2>conftest.er1
8835 grep -v '^ *+' conftest.er1 >conftest.err
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -z "$ac_c_werror_flag"
8841 || test ! -s conftest.err'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; } &&
8847 { ac_try='test -s conftest.$ac_objext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 ac_header_compiler=yes
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8858 ac_header_compiler=no
8860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8862 echo "${ECHO_T}$ac_header_compiler" >&6
8864 # Is the header present?
8865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 #include <$ac_header>
8875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8878 grep -v '^ *+' conftest.er1 >conftest.err
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } >/dev/null; then
8883 if test -s conftest.err; then
8884 ac_cpp_err=$ac_c_preproc_warn_flag
8885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8892 if test -z "$ac_cpp_err"; then
8893 ac_header_preproc=yes
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 ac_header_preproc=no
8900 rm -f conftest.err conftest.$ac_ext
8901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8902 echo "${ECHO_T}$ac_header_preproc" >&6
8904 # So? What about this header?
8905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8911 ac_header_preproc=yes
8914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8928 ## ----------------------------------- ##
8929 ## Report this to llvmbugs@cs.uiuc.edu ##
8930 ## ----------------------------------- ##
8933 sed "s/^/$as_me: WARNING: /" >&2
8936 echo "$as_me:$LINENO: checking for $ac_header" >&5
8937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 eval "$as_ac_Header=\$ac_header_preproc"
8943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8948 cat >>confdefs.h <<_ACEOF
8949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8958 for ac_header in string.h strings.h
8960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8962 echo "$as_me:$LINENO: checking for $ac_header" >&5
8963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8970 # Is the header compilable?
8971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8973 cat >conftest.$ac_ext <<_ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979 $ac_includes_default
8980 #include <$ac_header>
8982 rm -f conftest.$ac_objext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8984 (eval $ac_compile) 2>conftest.er1
8986 grep -v '^ *+' conftest.er1 >conftest.err
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag"
8992 || test ! -s conftest.err'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; } &&
8998 { ac_try='test -s conftest.$ac_objext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_header_compiler=yes
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_header_compiler=no
9011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9013 echo "${ECHO_T}$ac_header_compiler" >&6
9015 # Is the header present?
9016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9018 cat >conftest.$ac_ext <<_ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9024 #include <$ac_header>
9026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9029 grep -v '^ *+' conftest.er1 >conftest.err
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } >/dev/null; then
9034 if test -s conftest.err; then
9035 ac_cpp_err=$ac_c_preproc_warn_flag
9036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9043 if test -z "$ac_cpp_err"; then
9044 ac_header_preproc=yes
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 ac_header_preproc=no
9051 rm -f conftest.err conftest.$ac_ext
9052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9053 echo "${ECHO_T}$ac_header_preproc" >&6
9055 # So? What about this header?
9056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9062 ac_header_preproc=yes
9065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9079 ## ----------------------------------- ##
9080 ## Report this to llvmbugs@cs.uiuc.edu ##
9081 ## ----------------------------------- ##
9084 sed "s/^/$as_me: WARNING: /" >&2
9087 echo "$as_me:$LINENO: checking for $ac_header" >&5
9088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 eval "$as_ac_Header=\$ac_header_preproc"
9094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9099 cat >>confdefs.h <<_ACEOF
9100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9110 for ac_func in strchr index
9112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9113 echo "$as_me:$LINENO: checking for $ac_func" >&5
9114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9115 if eval "test \"\${$as_ac_var+set}\" = set"; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 cat >conftest.$ac_ext <<_ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9126 #define $ac_func innocuous_$ac_func
9128 /* System header to define __stub macros and hopefully few prototypes,
9129 which can conflict with char $ac_func (); below.
9130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9131 <limits.h> exists even on freestanding compilers. */
9134 # include <limits.h>
9136 # include <assert.h>
9141 /* Override any gcc2 internal prototype to avoid an error. */
9146 /* We use char because int might match the return type of a gcc2
9147 builtin and then its argument prototype would still apply. */
9149 /* The GNU C library defines this for functions which it implements
9150 to always fail with ENOSYS. Some functions are actually named
9151 something starting with __ and the normal name is an alias. */
9152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9155 char (*f) () = $ac_func;
9164 return f != $ac_func;
9169 rm -f conftest.$ac_objext conftest$ac_exeext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9171 (eval $ac_link) 2>conftest.er1
9173 grep -v '^ *+' conftest.er1 >conftest.err
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try='test -z "$ac_c_werror_flag"
9179 || test ! -s conftest.err'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest$ac_exeext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 eval "$as_ac_var=yes"
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 eval "$as_ac_var=no"
9198 rm -f conftest.err conftest.$ac_objext \
9199 conftest$ac_exeext conftest.$ac_ext
9201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9203 if test `eval echo '${'$as_ac_var'}'` = yes; then
9204 cat >>confdefs.h <<_ACEOF
9205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9213 for ac_func in strrchr rindex
9215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9216 echo "$as_me:$LINENO: checking for $ac_func" >&5
9217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9218 if eval "test \"\${$as_ac_var+set}\" = set"; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9229 #define $ac_func innocuous_$ac_func
9231 /* System header to define __stub macros and hopefully few prototypes,
9232 which can conflict with char $ac_func (); below.
9233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9234 <limits.h> exists even on freestanding compilers. */
9237 # include <limits.h>
9239 # include <assert.h>
9244 /* Override any gcc2 internal prototype to avoid an error. */
9249 /* We use char because int might match the return type of a gcc2
9250 builtin and then its argument prototype would still apply. */
9252 /* The GNU C library defines this for functions which it implements
9253 to always fail with ENOSYS. Some functions are actually named
9254 something starting with __ and the normal name is an alias. */
9255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9258 char (*f) () = $ac_func;
9267 return f != $ac_func;
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274 (eval $ac_link) 2>conftest.er1
9276 grep -v '^ *+' conftest.er1 >conftest.err
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag"
9282 || test ! -s conftest.err'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; } &&
9288 { ac_try='test -s conftest$ac_exeext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 eval "$as_ac_var=yes"
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9299 eval "$as_ac_var=no"
9301 rm -f conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9306 if test `eval echo '${'$as_ac_var'}'` = yes; then
9307 cat >>confdefs.h <<_ACEOF
9308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9316 for ac_func in memcpy bcopy
9318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9319 echo "$as_me:$LINENO: checking for $ac_func" >&5
9320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_var+set}\" = set"; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 cat >conftest.$ac_ext <<_ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9332 #define $ac_func innocuous_$ac_func
9334 /* System header to define __stub macros and hopefully few prototypes,
9335 which can conflict with char $ac_func (); below.
9336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9337 <limits.h> exists even on freestanding compilers. */
9340 # include <limits.h>
9342 # include <assert.h>
9347 /* Override any gcc2 internal prototype to avoid an error. */
9352 /* We use char because int might match the return type of a gcc2
9353 builtin and then its argument prototype would still apply. */
9355 /* The GNU C library defines this for functions which it implements
9356 to always fail with ENOSYS. Some functions are actually named
9357 something starting with __ and the normal name is an alias. */
9358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9361 char (*f) () = $ac_func;
9370 return f != $ac_func;
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>conftest.er1
9379 grep -v '^ *+' conftest.er1 >conftest.err
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try='test -z "$ac_c_werror_flag"
9385 || test ! -s conftest.err'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; } &&
9391 { ac_try='test -s conftest$ac_exeext'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; }; then
9397 eval "$as_ac_var=yes"
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 eval "$as_ac_var=no"
9404 rm -f conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext conftest.$ac_ext
9407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9409 if test `eval echo '${'$as_ac_var'}'` = yes; then
9410 cat >>confdefs.h <<_ACEOF
9411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9419 for ac_func in memmove strcmp
9421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9422 echo "$as_me:$LINENO: checking for $ac_func" >&5
9423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9424 if eval "test \"\${$as_ac_var+set}\" = set"; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 cat >conftest.$ac_ext <<_ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9435 #define $ac_func innocuous_$ac_func
9437 /* System header to define __stub macros and hopefully few prototypes,
9438 which can conflict with char $ac_func (); below.
9439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9440 <limits.h> exists even on freestanding compilers. */
9443 # include <limits.h>
9445 # include <assert.h>
9450 /* Override any gcc2 internal prototype to avoid an error. */
9455 /* We use char because int might match the return type of a gcc2
9456 builtin and then its argument prototype would still apply. */
9458 /* The GNU C library defines this for functions which it implements
9459 to always fail with ENOSYS. Some functions are actually named
9460 something starting with __ and the normal name is an alias. */
9461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9464 char (*f) () = $ac_func;
9473 return f != $ac_func;
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>conftest.er1
9482 grep -v '^ *+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest$ac_exeext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 eval "$as_ac_var=yes"
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 eval "$as_ac_var=no"
9507 rm -f conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
9510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9512 if test `eval echo '${'$as_ac_var'}'` = yes; then
9513 cat >>confdefs.h <<_ACEOF
9514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9523 for ac_func in closedir opendir readdir
9525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9526 echo "$as_me:$LINENO: checking for $ac_func" >&5
9527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9528 if eval "test \"\${$as_ac_var+set}\" = set"; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9539 #define $ac_func innocuous_$ac_func
9541 /* System header to define __stub macros and hopefully few prototypes,
9542 which can conflict with char $ac_func (); below.
9543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9544 <limits.h> exists even on freestanding compilers. */
9547 # include <limits.h>
9549 # include <assert.h>
9554 /* Override any gcc2 internal prototype to avoid an error. */
9559 /* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9562 /* The GNU C library defines this for functions which it implements
9563 to always fail with ENOSYS. Some functions are actually named
9564 something starting with __ and the normal name is an alias. */
9565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9568 char (*f) () = $ac_func;
9577 return f != $ac_func;
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9584 (eval $ac_link) 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -z "$ac_c_werror_flag"
9592 || test ! -s conftest.err'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; } &&
9598 { ac_try='test -s conftest$ac_exeext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 eval "$as_ac_var=yes"
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 eval "$as_ac_var=no"
9611 rm -f conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9616 if test `eval echo '${'$as_ac_var'}'` = yes; then
9617 cat >>confdefs.h <<_ACEOF
9618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9625 # Check whether --enable-shared or --disable-shared was given.
9626 if test "${enable_shared+set}" = set; then
9627 enableval="$enable_shared"
9628 p=${PACKAGE-default}
9630 yes) enable_shared=yes ;;
9631 no) enable_shared=no ;;
9634 # Look at the argument we got. We use all the common list separators.
9635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9636 for pkg in $enableval; do
9638 if test "X$pkg" = "X$p"; then
9649 # Check whether --enable-static or --disable-static was given.
9650 if test "${enable_static+set}" = set; then
9651 enableval="$enable_static"
9652 p=${PACKAGE-default}
9654 yes) enable_static=yes ;;
9655 no) enable_static=no ;;
9658 # Look at the argument we got. We use all the common list separators.
9659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9660 for pkg in $enableval; do
9662 if test "X$pkg" = "X$p"; then
9673 # Check whether --enable-fast-install or --disable-fast-install was given.
9674 if test "${enable_fast_install+set}" = set; then
9675 enableval="$enable_fast_install"
9676 p=${PACKAGE-default}
9678 yes) enable_fast_install=yes ;;
9679 no) enable_fast_install=no ;;
9681 enable_fast_install=no
9682 # Look at the argument we got. We use all the common list separators.
9683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9684 for pkg in $enableval; do
9686 if test "X$pkg" = "X$p"; then
9687 enable_fast_install=yes
9694 enable_fast_install=yes
9697 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9698 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9699 if test "${lt_cv_path_SED+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 # Loop through the user's path and test for sed and gsed.
9703 # Then use that list of sed's as ones to test for truncation.
9704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 test -z "$as_dir" && as_dir=.
9709 for lt_ac_prog in sed gsed; do
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9712 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9719 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9720 # along with /bin/sed that truncates output.
9721 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9722 test ! -f $lt_ac_sed && break
9723 cat /dev/null > conftest.in
9725 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9726 # Check for GNU sed and select it if it is found.
9727 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9728 lt_cv_path_SED=$lt_ac_sed
9732 cat conftest.in conftest.in >conftest.tmp
9733 mv conftest.tmp conftest.in
9734 cp conftest.in conftest.nl
9736 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9737 cmp -s conftest.out conftest.nl || break
9738 # 10000 chars as input seems more than enough
9739 test $lt_ac_count -gt 10 && break
9740 lt_ac_count=`expr $lt_ac_count + 1`
9741 if test $lt_ac_count -gt $lt_ac_max; then
9742 lt_ac_max=$lt_ac_count
9743 lt_cv_path_SED=$lt_ac_sed
9751 echo "$as_me:$LINENO: result: $SED" >&5
9752 echo "${ECHO_T}$SED" >&6
9755 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9756 if test "${with_gnu_ld+set}" = set; then
9757 withval="$with_gnu_ld"
9758 test "$withval" = no || with_gnu_ld=yes
9763 if test "$GCC" = yes; then
9764 # Check if gcc -print-prog-name=ld gives a path.
9765 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9766 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9769 # gcc leaves a trailing carriage return which upsets mingw
9770 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9772 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9775 # Accept absolute paths.
9777 re_direlt='/[^/][^/]*/\.\./'
9778 # Canonicalize the pathname of ld
9779 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9780 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9781 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9783 test -z "$LD" && LD="$ac_prog"
9786 # If it fails, then pretend we aren't using GCC.
9790 # If it is relative, then search for the first ld in PATH.
9794 elif test "$with_gnu_ld" = yes; then
9795 echo "$as_me:$LINENO: checking for GNU ld" >&5
9796 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9798 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9799 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9801 if test "${lt_cv_path_LD+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 if test -z "$LD"; then
9805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9806 for ac_dir in $PATH; do
9808 test -z "$ac_dir" && ac_dir=.
9809 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9810 lt_cv_path_LD="$ac_dir/$ac_prog"
9811 # Check to see if the program is GNU ld. I'd rather use --version,
9812 # but apparently some GNU ld's only accept -v.
9813 # Break only if it was the GNU/non-GNU ld that we prefer.
9814 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9815 *GNU* | *'with BFD'*)
9816 test "$with_gnu_ld" != no && break
9819 test "$with_gnu_ld" != yes && break
9826 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9831 if test -n "$LD"; then
9832 echo "$as_me:$LINENO: result: $LD" >&5
9833 echo "${ECHO_T}$LD" >&6
9835 echo "$as_me:$LINENO: result: no" >&5
9836 echo "${ECHO_T}no" >&6
9838 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9839 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9840 { (exit 1); exit 1; }; }
9841 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9842 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9843 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9847 case `$LD -v 2>&1 </dev/null` in
9848 *GNU* | *'with BFD'*)
9849 lt_cv_prog_gnu_ld=yes
9852 lt_cv_prog_gnu_ld=no
9856 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9857 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9858 with_gnu_ld=$lt_cv_prog_gnu_ld
9861 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9862 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9863 if test "${lt_cv_ld_reload_flag+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 lt_cv_ld_reload_flag='-r'
9868 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9869 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9870 reload_flag=$lt_cv_ld_reload_flag
9871 case $reload_flag in
9873 *) reload_flag=" $reload_flag" ;;
9875 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9878 if test "$GCC" = yes; then
9879 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9881 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9886 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9887 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9888 if test "${lt_cv_deplibs_check_method+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 lt_cv_file_magic_cmd='$MAGIC_CMD'
9892 lt_cv_file_magic_test_file=
9893 lt_cv_deplibs_check_method='unknown'
9894 # Need to set the preceding variable on all platforms that support
9895 # interlibrary dependencies.
9896 # 'none' -- dependencies not supported.
9897 # `unknown' -- same as none, but documents that we really don't know.
9898 # 'pass_all' -- all dependencies passed with no checks.
9899 # 'test_compile' -- check by making test program.
9900 # 'file_magic [[regex]]' -- check by looking for files in library path
9901 # which responds to the $file_magic_cmd with a given extended regex.
9902 # If you have `file' or equivalent on your system and you're not sure
9903 # whether `pass_all' will *always* work, you probably want this one.
9907 lt_cv_deplibs_check_method=pass_all
9911 lt_cv_deplibs_check_method=pass_all
9915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9916 lt_cv_file_magic_cmd='/usr/bin/file -L'
9917 lt_cv_file_magic_test_file=/shlib/libc.so
9921 # func_win32_libid is a shell function defined in ltmain.sh
9922 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9923 lt_cv_file_magic_cmd='func_win32_libid'
9927 # Base MSYS/MinGW do not provide the 'file' command needed by
9928 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9930 lt_cv_file_magic_cmd='$OBJDUMP -f'
9933 darwin* | rhapsody*)
9934 lt_cv_deplibs_check_method=pass_all
9937 freebsd* | kfreebsd*-gnu)
9938 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9941 # Not sure whether the presence of OpenBSD here was a mistake.
9942 # Let's accept both of them until this is cleared up.
9943 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
9944 lt_cv_file_magic_cmd=/usr/bin/file
9945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9949 lt_cv_deplibs_check_method=pass_all
9954 lt_cv_deplibs_check_method=pass_all
9957 hpux10.20* | hpux11*)
9958 lt_cv_file_magic_cmd=/usr/bin/file
9961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9962 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9965 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]'
9966 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9970 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9975 irix5* | irix6* | nonstopux*)
9977 *-32|*"-32 ") libmagic=32-bit;;
9978 *-n32|*"-n32 ") libmagic=N32;;
9979 *-64|*"-64 ") libmagic=64-bit;;
9980 *) libmagic=never-match;;
9982 lt_cv_deplibs_check_method=pass_all
9985 # This must be Linux ELF.
9987 lt_cv_deplibs_check_method=pass_all
9991 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10000 lt_cv_file_magic_cmd=/usr/bin/file
10001 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10005 lt_cv_deplibs_check_method=unknown
10009 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10016 osf3* | osf4* | osf5*)
10017 lt_cv_deplibs_check_method=pass_all
10021 lt_cv_deplibs_check_method=pass_all
10025 lt_cv_deplibs_check_method=pass_all
10028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10029 case $host_vendor in
10031 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]'
10032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10035 lt_cv_deplibs_check_method=pass_all
10038 lt_cv_file_magic_cmd='/bin/file'
10039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10042 lt_cv_file_magic_cmd='/bin/file'
10043 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10044 lt_cv_file_magic_test_file=/lib/libc.so
10047 lt_cv_deplibs_check_method=pass_all
10052 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10053 lt_cv_deplibs_check_method=pass_all
10058 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10059 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10060 file_magic_cmd=$lt_cv_file_magic_cmd
10061 deplibs_check_method=$lt_cv_deplibs_check_method
10062 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10066 # If no C compiler was specified, use CC.
10069 # Allow CC to be a program name with arguments.
10072 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10073 if test "${enable_libtool_lock+set}" = set; then
10074 enableval="$enable_libtool_lock"
10077 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10079 # Some flags need to be propagated to the compiler or linker for good
10083 # Find out which ABI we are using.
10084 echo 'int i;' > conftest.$ac_ext
10085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10086 (eval $ac_compile) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; then
10090 case `/usr/bin/file conftest.$ac_objext` in
10092 HPUX_IA64_MODE="32"
10095 HPUX_IA64_MODE="64"
10102 # Find out which ABI we are using.
10103 echo '#line 10103 "configure"' > conftest.$ac_ext
10104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10105 (eval $ac_compile) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; then
10109 if test "$lt_cv_prog_gnu_ld" = yes; then
10110 case `/usr/bin/file conftest.$ac_objext` in
10112 LD="${LD-ld} -melf32bsmip"
10115 LD="${LD-ld} -melf32bmipn32"
10118 LD="${LD-ld} -melf64bmip"
10122 case `/usr/bin/file conftest.$ac_objext` in
10138 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10139 # Find out which ABI we are using.
10140 echo 'int i;' > conftest.$ac_ext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10142 (eval $ac_compile) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; then
10146 case "`/usr/bin/file conftest.o`" in
10150 LD="${LD-ld} -m elf_i386"
10152 ppc64-*linux*|powerpc64-*linux*)
10153 LD="${LD-ld} -m elf32ppclinux"
10156 LD="${LD-ld} -m elf_s390"
10159 LD="${LD-ld} -m elf32_sparc"
10166 LD="${LD-ld} -m elf_x86_64"
10168 ppc*-*linux*|powerpc*-*linux*)
10169 LD="${LD-ld} -m elf64ppc"
10172 LD="${LD-ld} -m elf64_s390"
10175 LD="${LD-ld} -m elf64_sparc"
10185 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10186 SAVE_CFLAGS="$CFLAGS"
10187 CFLAGS="$CFLAGS -belf"
10188 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10189 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10190 if test "${lt_cv_cc_needs_belf+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 ac_cpp='$CPP $CPPFLAGS'
10195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10199 cat >conftest.$ac_ext <<_ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10209 (eval $ac_link) 2>conftest.er1
10211 grep -v '^ *+' conftest.er1 >conftest.err
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } &&
10216 { ac_try='test -z "$ac_c_werror_flag"
10217 || test ! -s conftest.err'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; } &&
10223 { ac_try='test -s conftest$ac_exeext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 lt_cv_cc_needs_belf=yes
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 lt_cv_cc_needs_belf=no
10236 rm -f conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10239 ac_cpp='$CPP $CPPFLAGS'
10240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10245 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10246 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10247 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10248 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10249 CFLAGS="$SAVE_CFLAGS"
10255 need_locks="$enable_libtool_lock"
10260 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10261 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10262 (test "X$CXX" != "Xg++"))) ; then
10264 ac_cpp='$CXXCPP $CPPFLAGS'
10265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10268 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10269 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10270 if test -z "$CXXCPP"; then
10271 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 # Double quotes because CXXCPP needs to be expanded
10275 for CXXCPP in "$CXX -E" "/lib/cpp"
10277 ac_preproc_ok=false
10278 for ac_cxx_preproc_warn_flag in '' yes
10280 # Use a header file that comes with gcc, so configuring glibc
10281 # with a fresh cross-compiler works.
10282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10283 # <limits.h> exists even on freestanding compilers.
10284 # On the NeXT, cc -E runs the code through the compiler's parser,
10285 # not just through cpp. "Syntax error" is here to catch this case.
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10293 # include <limits.h>
10295 # include <assert.h>
10299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10302 grep -v '^ *+' conftest.er1 >conftest.err
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } >/dev/null; then
10307 if test -s conftest.err; then
10308 ac_cpp_err=$ac_cxx_preproc_warn_flag
10309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10316 if test -z "$ac_cpp_err"; then
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 # Broken: fails on valid input.
10325 rm -f conftest.err conftest.$ac_ext
10327 # OK, works on sane cases. Now check whether non-existent headers
10328 # can be detected and how.
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 #include <ac_nonexistent.h>
10337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10340 grep -v '^ *+' conftest.er1 >conftest.err
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } >/dev/null; then
10345 if test -s conftest.err; then
10346 ac_cpp_err=$ac_cxx_preproc_warn_flag
10347 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10354 if test -z "$ac_cpp_err"; then
10355 # Broken: success on invalid input.
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 # Passes both tests.
10365 rm -f conftest.err conftest.$ac_ext
10368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10369 rm -f conftest.err conftest.$ac_ext
10370 if $ac_preproc_ok; then
10375 ac_cv_prog_CXXCPP=$CXXCPP
10378 CXXCPP=$ac_cv_prog_CXXCPP
10380 ac_cv_prog_CXXCPP=$CXXCPP
10382 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10383 echo "${ECHO_T}$CXXCPP" >&6
10384 ac_preproc_ok=false
10385 for ac_cxx_preproc_warn_flag in '' yes
10387 # Use a header file that comes with gcc, so configuring glibc
10388 # with a fresh cross-compiler works.
10389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10390 # <limits.h> exists even on freestanding compilers.
10391 # On the NeXT, cc -E runs the code through the compiler's parser,
10392 # not just through cpp. "Syntax error" is here to catch this case.
10393 cat >conftest.$ac_ext <<_ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10400 # include <limits.h>
10402 # include <assert.h>
10406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10409 grep -v '^ *+' conftest.er1 >conftest.err
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } >/dev/null; then
10414 if test -s conftest.err; then
10415 ac_cpp_err=$ac_cxx_preproc_warn_flag
10416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10423 if test -z "$ac_cpp_err"; then
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 # Broken: fails on valid input.
10432 rm -f conftest.err conftest.$ac_ext
10434 # OK, works on sane cases. Now check whether non-existent headers
10435 # can be detected and how.
10436 cat >conftest.$ac_ext <<_ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 #include <ac_nonexistent.h>
10444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } >/dev/null; then
10452 if test -s conftest.err; then
10453 ac_cpp_err=$ac_cxx_preproc_warn_flag
10454 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10461 if test -z "$ac_cpp_err"; then
10462 # Broken: success on invalid input.
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 # Passes both tests.
10472 rm -f conftest.err conftest.$ac_ext
10475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10476 rm -f conftest.err conftest.$ac_ext
10477 if $ac_preproc_ok; then
10480 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10481 See \`config.log' for more details." >&5
10482 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10483 See \`config.log' for more details." >&2;}
10484 { (exit 1); exit 1; }; }
10488 ac_cpp='$CXXCPP $CPPFLAGS'
10489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10497 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10498 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10499 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10500 if test -n "$ac_tool_prefix"; then
10501 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10505 echo "$as_me:$LINENO: checking for $ac_word" >&5
10506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10507 if test "${ac_cv_prog_F77+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 if test -n "$F77"; then
10511 ac_cv_prog_F77="$F77" # Let the user override the test.
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10520 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 F77=$ac_cv_prog_F77
10530 if test -n "$F77"; then
10531 echo "$as_me:$LINENO: result: $F77" >&5
10532 echo "${ECHO_T}$F77" >&6
10534 echo "$as_me:$LINENO: result: no" >&5
10535 echo "${ECHO_T}no" >&6
10538 test -n "$F77" && break
10541 if test -z "$F77"; then
10543 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10545 # Extract the first word of "$ac_prog", so it can be a program name with args.
10546 set dummy $ac_prog; ac_word=$2
10547 echo "$as_me:$LINENO: checking for $ac_word" >&5
10548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10549 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 if test -n "$ac_ct_F77"; then
10553 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10559 test -z "$as_dir" && as_dir=.
10560 for ac_exec_ext in '' $ac_executable_extensions; do
10561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562 ac_cv_prog_ac_ct_F77="$ac_prog"
10563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10572 if test -n "$ac_ct_F77"; then
10573 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10574 echo "${ECHO_T}$ac_ct_F77" >&6
10576 echo "$as_me:$LINENO: result: no" >&5
10577 echo "${ECHO_T}no" >&6
10580 test -n "$ac_ct_F77" && break
10587 # Provide some information about the compiler.
10588 echo "$as_me:10588:" \
10589 "checking for Fortran 77 compiler version" >&5
10590 ac_compiler=`set X $ac_compile; echo $2`
10591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10592 (eval $ac_compiler --version </dev/null >&5) 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }
10596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10597 (eval $ac_compiler -v </dev/null >&5) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }
10601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10602 (eval $ac_compiler -V </dev/null >&5) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }
10608 # If we don't use `.F' as extension, the preprocessor is not run on the
10609 # input file. (Note that this only needs to work for GNU compilers.)
10610 ac_save_ext=$ac_ext
10612 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10613 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10614 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 cat >conftest.$ac_ext <<_ACEOF
10625 rm -f conftest.$ac_objext
10626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10627 (eval $ac_compile) 2>conftest.er1
10629 grep -v '^ *+' conftest.er1 >conftest.err
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
10634 { ac_try='test -z "$ac_f77_werror_flag"
10635 || test ! -s conftest.err'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; } &&
10641 { ac_try='test -s conftest.$ac_objext'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_compiler_gnu=yes
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10655 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10658 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10659 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10660 ac_ext=$ac_save_ext
10661 ac_test_FFLAGS=${FFLAGS+set}
10662 ac_save_FFLAGS=$FFLAGS
10664 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10665 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10666 if test "${ac_cv_prog_f77_g+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 cat >conftest.$ac_ext <<_ACEOF
10675 rm -f conftest.$ac_objext
10676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10677 (eval $ac_compile) 2>conftest.er1
10679 grep -v '^ *+' conftest.er1 >conftest.err
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } &&
10684 { ac_try='test -z "$ac_f77_werror_flag"
10685 || test ! -s conftest.err'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; } &&
10691 { ac_try='test -s conftest.$ac_objext'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
10697 ac_cv_prog_f77_g=yes
10699 echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10702 ac_cv_prog_f77_g=no
10704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10707 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10708 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10709 if test "$ac_test_FFLAGS" = set; then
10710 FFLAGS=$ac_save_FFLAGS
10711 elif test $ac_cv_prog_f77_g = yes; then
10712 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10718 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10725 G77=`test $ac_compiler_gnu = yes && echo yes`
10727 ac_cpp='$CPP $CPPFLAGS'
10728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10734 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10736 # find the maximum length of command line arguments
10737 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10738 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10739 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 # On DJGPP, this test can blow up pretty badly due to problems in libc
10748 # (any single argument exceeding 2000 bytes causes a buffer overrun
10749 # during glob expansion). Even if it were fixed, the result of this
10750 # check would be larger than it should be.
10751 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10755 # Under GNU Hurd, this test is not required because there is
10756 # no limit to the length of command line arguments.
10757 # Libtool will interpret -1 as no limit whatsoever
10758 lt_cv_sys_max_cmd_len=-1;
10762 # On Win9x/ME, this test blows up -- it succeeds, but takes
10763 # about 5 minutes as the teststring grows exponentially.
10764 # Worse, since 9x/ME are not pre-emptively multitasking,
10765 # you end up with a "frozen" computer, even though with patience
10766 # the test eventually succeeds (with a max line length of 256k).
10767 # Instead, let's just punt: use the minimum linelength reported by
10768 # all of the supported platforms: 8192 (on NT/2K/XP).
10769 lt_cv_sys_max_cmd_len=8192;
10773 # On AmigaOS with pdksh, this test takes hours, literally.
10774 # So we just punt and use a minimum line length of 8192.
10775 lt_cv_sys_max_cmd_len=8192;
10778 netbsd* | freebsd* | openbsd* | darwin* )
10779 # This has been around since 386BSD, at least. Likely further.
10780 if test -x /sbin/sysctl; then
10781 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10782 elif test -x /usr/sbin/sysctl; then
10783 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10785 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10787 # And add a safety zone
10788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10792 # If test is not a shell built-in, we'll probably end up computing a
10793 # maximum length that is only half of the actual maximum length, but
10795 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10796 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10797 = "XX$teststring") >/dev/null 2>&1 &&
10798 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10799 lt_cv_sys_max_cmd_len=$new_result &&
10800 test $i != 17 # 1/2 MB should be enough
10803 teststring=$teststring$teststring
10806 # Add a significant safety factor because C++ compilers can tack on massive
10807 # amounts of additional arguments before passing them to the linker.
10808 # It appears as though 1/2 is a usable value.
10809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10815 if test -n $lt_cv_sys_max_cmd_len ; then
10816 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10817 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10819 echo "$as_me:$LINENO: result: none" >&5
10820 echo "${ECHO_T}none" >&6
10826 # Check for command to grab the raw symbol name followed by C symbol from nm.
10827 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10828 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10829 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 # These are sane defaults that work on at least a few old systems.
10834 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10836 # Character class describing NM global symbol codes.
10837 symcode='[BCDEGRST]'
10839 # Regexp to match symbols that can be accessed directly from C.
10840 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10842 # Transform the above into a raw symbol and a C symbol.
10843 symxfrm='\1 \2\3 \3'
10845 # Transform an extracted symbol line into a proper C declaration
10846 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10848 # Transform an extracted symbol line into symbol name and symbol address
10849 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'"
10851 # Define system-specific variables.
10856 cygwin* | mingw* | pw32*)
10857 symcode='[ABCDGISTW]'
10859 hpux*) # Its linker distinguishes data from code symbols
10860 if test "$host_cpu" = ia64; then
10861 symcode='[ABCDEGRST]'
10863 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10864 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'"
10867 if test "$host_cpu" = ia64; then
10868 symcode='[ABCDGIRSTW]'
10869 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10870 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'"
10873 irix* | nonstopux*)
10874 symcode='[BCDEGRST]'
10877 symcode='[BCDEGQRST]'
10887 # Handle CRLF in mingw tool chain
10891 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10895 # If we're using GNU nm, then use its standard symbol codes.
10896 case `$NM -V 2>&1` in
10897 *GNU* | *'with BFD'*)
10898 symcode='[ABCDGIRSTW]' ;;
10901 # Try without a prefix undercore, then with it.
10902 for ac_symprfx in "" "_"; do
10904 # Write the raw and C identifiers.
10905 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10907 # Check to see that the pipe works correctly.
10911 cat > conftest.$ac_ext <<EOF
10916 void nm_test_func(){}
10920 int main(){nm_test_var='a';nm_test_func();return(0);}
10923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924 (eval $ac_compile) 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; then
10928 # Now try to grab the symbols.
10930 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10931 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && test -s "$nlist"; then
10935 # Try sorting and uniquifying the output.
10936 if sort "$nlist" | uniq > "$nlist"T; then
10937 mv -f "$nlist"T "$nlist"
10942 # Make sure that we snagged all the symbols we need.
10943 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10944 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10945 cat <<EOF > conftest.$ac_ext
10951 # Now generate the symbol file.
10952 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10954 cat <<EOF >> conftest.$ac_ext
10955 #if defined (__STDC__) && __STDC__
10956 # define lt_ptr_t void *
10958 # define lt_ptr_t char *
10962 /* The mapping between symbol names and symbols. */
10967 lt_preloaded_symbols[] =
10970 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10971 cat <<\EOF >> conftest.$ac_ext
10979 # Now try linking the two files.
10980 mv conftest.$ac_objext conftstm.$ac_objext
10981 lt_save_LIBS="$LIBS"
10982 lt_save_CFLAGS="$CFLAGS"
10983 LIBS="conftstm.$ac_objext"
10984 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986 (eval $ac_link) 2>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10992 LIBS="$lt_save_LIBS"
10993 CFLAGS="$lt_save_CFLAGS"
10995 echo "cannot find nm_test_func in $nlist" >&5
10998 echo "cannot find nm_test_var in $nlist" >&5
11001 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11004 echo "$progname: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11007 rm -f conftest* conftst*
11009 # Do not use the global_symbol_pipe unless it works.
11010 if test "$pipe_works" = yes; then
11013 lt_cv_sys_global_symbol_pipe=
11019 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11020 lt_cv_sys_global_symbol_to_cdecl=
11022 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11023 echo "$as_me:$LINENO: result: failed" >&5
11024 echo "${ECHO_T}failed" >&6
11026 echo "$as_me:$LINENO: result: ok" >&5
11027 echo "${ECHO_T}ok" >&6
11030 echo "$as_me:$LINENO: checking for objdir" >&5
11031 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11032 if test "${lt_cv_objdir+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 rm -f .libs 2>/dev/null
11036 mkdir .libs 2>/dev/null
11037 if test -d .libs; then
11040 # MS-DOS does not allow filenames that begin with a dot.
11043 rmdir .libs 2>/dev/null
11045 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11046 echo "${ECHO_T}$lt_cv_objdir" >&6
11047 objdir=$lt_cv_objdir
11055 # AIX sometimes has problems with the GCC collect2 program. For some
11056 # reason, if we set the COLLECT_NAMES environment variable, the problems
11057 # vanish in a puff of smoke.
11058 if test "X${COLLECT_NAMES+set}" != Xset; then
11060 export COLLECT_NAMES
11065 # Sed substitution that helps us do robust quoting. It backslashifies
11066 # metacharacters that are still active within double-quoted strings.
11067 Xsed='sed -e s/^X//'
11068 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11070 # Same as above, but do not quote variable references.
11071 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11073 # Sed substitution to delay expansion of an escaped shell variable in a
11074 # double_quote_subst'ed string.
11075 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11077 # Sed substitution to avoid accidental globbing in evaled expressions
11078 no_glob_subst='s/\*/\\\*/g'
11083 # Global variables:
11084 default_ofile=mklib
11085 can_build_shared=yes
11087 # All known linkers require a `.a' archive for static linking (except M$VC,
11088 # which needs '.lib').
11090 ltmain="$ac_aux_dir/ltmain.sh"
11091 ofile="$default_ofile"
11092 with_gnu_ld="$lt_cv_prog_gnu_ld"
11094 if test -n "$ac_tool_prefix"; then
11095 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11096 set dummy ${ac_tool_prefix}ar; ac_word=$2
11097 echo "$as_me:$LINENO: checking for $ac_word" >&5
11098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11099 if test "${ac_cv_prog_AR+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 if test -n "$AR"; then
11103 ac_cv_prog_AR="$AR" # Let the user override the test.
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11112 ac_cv_prog_AR="${ac_tool_prefix}ar"
11113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 if test -n "$AR"; then
11123 echo "$as_me:$LINENO: result: $AR" >&5
11124 echo "${ECHO_T}$AR" >&6
11126 echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6
11131 if test -z "$ac_cv_prog_AR"; then
11133 # Extract the first word of "ar", so it can be a program name with args.
11134 set dummy ar; ac_word=$2
11135 echo "$as_me:$LINENO: checking for $ac_word" >&5
11136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11137 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 if test -n "$ac_ct_AR"; then
11141 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144 for as_dir in $PATH
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11150 ac_cv_prog_ac_ct_AR="ar"
11151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11160 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11161 if test -n "$ac_ct_AR"; then
11162 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11163 echo "${ECHO_T}$ac_ct_AR" >&6
11165 echo "$as_me:$LINENO: result: no" >&5
11166 echo "${ECHO_T}no" >&6
11171 AR="$ac_cv_prog_AR"
11174 if test -n "$ac_tool_prefix"; then
11175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11177 echo "$as_me:$LINENO: checking for $ac_word" >&5
11178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11179 if test "${ac_cv_prog_RANLIB+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 if test -n "$RANLIB"; then
11183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186 for as_dir in $PATH
11189 test -z "$as_dir" && as_dir=.
11190 for ac_exec_ext in '' $ac_executable_extensions; do
11191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 RANLIB=$ac_cv_prog_RANLIB
11202 if test -n "$RANLIB"; then
11203 echo "$as_me:$LINENO: result: $RANLIB" >&5
11204 echo "${ECHO_T}$RANLIB" >&6
11206 echo "$as_me:$LINENO: result: no" >&5
11207 echo "${ECHO_T}no" >&6
11211 if test -z "$ac_cv_prog_RANLIB"; then
11212 ac_ct_RANLIB=$RANLIB
11213 # Extract the first word of "ranlib", so it can be a program name with args.
11214 set dummy ranlib; ac_word=$2
11215 echo "$as_me:$LINENO: checking for $ac_word" >&5
11216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 if test -n "$ac_ct_RANLIB"; then
11221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230 ac_cv_prog_ac_ct_RANLIB="ranlib"
11231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11241 if test -n "$ac_ct_RANLIB"; then
11242 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11243 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11245 echo "$as_me:$LINENO: result: no" >&5
11246 echo "${ECHO_T}no" >&6
11249 RANLIB=$ac_ct_RANLIB
11251 RANLIB="$ac_cv_prog_RANLIB"
11254 if test -n "$ac_tool_prefix"; then
11255 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11256 set dummy ${ac_tool_prefix}strip; ac_word=$2
11257 echo "$as_me:$LINENO: checking for $ac_word" >&5
11258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11259 if test "${ac_cv_prog_STRIP+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 if test -n "$STRIP"; then
11263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11269 test -z "$as_dir" && as_dir=.
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 STRIP=$ac_cv_prog_STRIP
11282 if test -n "$STRIP"; then
11283 echo "$as_me:$LINENO: result: $STRIP" >&5
11284 echo "${ECHO_T}$STRIP" >&6
11286 echo "$as_me:$LINENO: result: no" >&5
11287 echo "${ECHO_T}no" >&6
11291 if test -z "$ac_cv_prog_STRIP"; then
11293 # Extract the first word of "strip", so it can be a program name with args.
11294 set dummy strip; ac_word=$2
11295 echo "$as_me:$LINENO: checking for $ac_word" >&5
11296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11297 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 if test -n "$ac_ct_STRIP"; then
11301 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310 ac_cv_prog_ac_ct_STRIP="strip"
11311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11320 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11321 if test -n "$ac_ct_STRIP"; then
11322 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11323 echo "${ECHO_T}$ac_ct_STRIP" >&6
11325 echo "$as_me:$LINENO: result: no" >&5
11326 echo "${ECHO_T}no" >&6
11331 STRIP="$ac_cv_prog_STRIP"
11336 old_CFLAGS="$CFLAGS"
11338 # Set sane defaults for various variables
11339 test -z "$AR" && AR=ar
11340 test -z "$AR_FLAGS" && AR_FLAGS=cru
11341 test -z "$AS" && AS=as
11342 test -z "$CC" && CC=cc
11343 test -z "$LTCC" && LTCC=$CC
11344 test -z "$DLLTOOL" && DLLTOOL=dlltool
11345 test -z "$LD" && LD=ld
11346 test -z "$LN_S" && LN_S="ln -s"
11347 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11348 test -z "$NM" && NM=nm
11349 test -z "$SED" && SED=sed
11350 test -z "$OBJDUMP" && OBJDUMP=objdump
11351 test -z "$RANLIB" && RANLIB=:
11352 test -z "$STRIP" && STRIP=:
11353 test -z "$ac_objext" && ac_objext=o
11355 # Determine commands to create old-style static archives.
11356 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11357 old_postinstall_cmds='chmod 644 $oldlib'
11358 old_postuninstall_cmds=
11360 if test -n "$RANLIB"; then
11363 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11366 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11369 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11372 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11374 # Only perform the check for file, if the check method requires it
11375 case $deplibs_check_method in
11377 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11378 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11379 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11380 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11388 lt_save_MAGIC_CMD="$MAGIC_CMD"
11389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11390 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11391 for ac_dir in $ac_dummy; do
11393 test -z "$ac_dir" && ac_dir=.
11394 if test -f $ac_dir/${ac_tool_prefix}file; then
11395 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11396 if test -n "$file_magic_test_file"; then
11397 case $deplibs_check_method in
11399 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11402 $EGREP "$file_magic_regex" > /dev/null; then
11407 *** Warning: the command libtool uses to detect shared libraries,
11408 *** $file_magic_cmd, produces output that libtool cannot recognize.
11409 *** The result is that libtool may fail to recognize shared libraries
11410 *** as such. This will affect the creation of libtool libraries that
11411 *** depend on shared libraries, but programs linked with such libtool
11412 *** libraries will work regardless of this problem. Nevertheless, you
11413 *** may want to report the problem to your system manager and/or to
11414 *** bug-libtool@gnu.org
11424 MAGIC_CMD="$lt_save_MAGIC_CMD"
11429 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11430 if test -n "$MAGIC_CMD"; then
11431 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11432 echo "${ECHO_T}$MAGIC_CMD" >&6
11434 echo "$as_me:$LINENO: result: no" >&5
11435 echo "${ECHO_T}no" >&6
11438 if test -z "$lt_cv_path_MAGIC_CMD"; then
11439 if test -n "$ac_tool_prefix"; then
11440 echo "$as_me:$LINENO: checking for file" >&5
11441 echo $ECHO_N "checking for file... $ECHO_C" >&6
11442 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11450 lt_save_MAGIC_CMD="$MAGIC_CMD"
11451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11452 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11453 for ac_dir in $ac_dummy; do
11455 test -z "$ac_dir" && ac_dir=.
11456 if test -f $ac_dir/file; then
11457 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11458 if test -n "$file_magic_test_file"; then
11459 case $deplibs_check_method in
11461 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11463 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11464 $EGREP "$file_magic_regex" > /dev/null; then
11469 *** Warning: the command libtool uses to detect shared libraries,
11470 *** $file_magic_cmd, produces output that libtool cannot recognize.
11471 *** The result is that libtool may fail to recognize shared libraries
11472 *** as such. This will affect the creation of libtool libraries that
11473 *** depend on shared libraries, but programs linked with such libtool
11474 *** libraries will work regardless of this problem. Nevertheless, you
11475 *** may want to report the problem to your system manager and/or to
11476 *** bug-libtool@gnu.org
11486 MAGIC_CMD="$lt_save_MAGIC_CMD"
11491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11492 if test -n "$MAGIC_CMD"; then
11493 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11494 echo "${ECHO_T}$MAGIC_CMD" >&6
11496 echo "$as_me:$LINENO: result: no" >&5
11497 echo "${ECHO_T}no" >&6
11510 enable_win32_dll=no
11512 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11513 if test "${enable_libtool_lock+set}" = set; then
11514 enableval="$enable_libtool_lock"
11517 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11520 # Check whether --with-pic or --without-pic was given.
11521 if test "${with_pic+set}" = set; then
11522 withval="$with_pic"
11523 pic_mode="$withval"
11527 test -z "$pic_mode" && pic_mode=default
11529 # Use C for the default configuration in the libtool script
11533 ac_cpp='$CPP $CPPFLAGS'
11534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11539 # Source file extension for C test sources.
11542 # Object file extension for compiled C test sources.
11546 # Code to be used in simple compile tests
11547 lt_simple_compile_test_code="int some_variable = 0;\n"
11549 # Code to be used in simple link tests
11550 lt_simple_link_test_code='int main(){return(0);}\n'
11553 # If no C compiler was specified, use CC.
11556 # Allow CC to be a program name with arguments.
11561 # Check for any special shared library compilation flags.
11564 if test "$GCC" = no; then
11567 lt_prog_cc_shlib='-belf'
11571 if test -n "$lt_prog_cc_shlib"; then
11572 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11573 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11574 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11576 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11577 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11578 lt_cv_prog_cc_can_build_shared=no
11584 # Check to make sure the static flag actually works.
11586 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11587 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11588 if test "${lt_prog_compiler_static_works+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 lt_prog_compiler_static_works=no
11592 save_LDFLAGS="$LDFLAGS"
11593 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11594 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11595 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11596 # The compiler can only warn and ignore the option if not recognized
11597 # So say no if there are warnings
11598 if test -s conftest.err; then
11599 # Append any errors to the config.log.
11600 cat conftest.err 1>&5
11602 lt_prog_compiler_static_works=yes
11606 LDFLAGS="$save_LDFLAGS"
11609 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11610 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11612 if test x"$lt_prog_compiler_static_works" = xyes; then
11615 lt_prog_compiler_static=
11621 lt_prog_compiler_no_builtin_flag=
11623 if test "$GCC" = yes; then
11624 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11627 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11628 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11629 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 lt_cv_prog_compiler_rtti_exceptions=no
11633 ac_outfile=conftest.$ac_objext
11634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11635 lt_compiler_flag="-fno-rtti -fno-exceptions"
11636 # Insert the option either (1) after the last *FLAGS variable, or
11637 # (2) before a word containing "conftest.", or (3) at the end.
11638 # Note that $ac_compile itself does not contain backslashes and begins
11639 # with a dollar sign (not a hyphen), so the echo should work correctly.
11640 # The option is referenced via a variable to avoid confusing sed.
11641 lt_compile=`echo "$ac_compile" | $SED \
11642 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11644 -e 's:$: $lt_compiler_flag:'`
11645 (eval echo "\"\$as_me:11645: $lt_compile\"" >&5)
11646 (eval "$lt_compile" 2>conftest.err)
11648 cat conftest.err >&5
11649 echo "$as_me:11649: \$? = $ac_status" >&5
11650 if (exit $ac_status) && test -s "$ac_outfile"; then
11651 # The compiler can only warn and ignore the option if not recognized
11652 # So say no if there are warnings
11653 if test ! -s conftest.err; then
11654 lt_cv_prog_compiler_rtti_exceptions=yes
11660 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11661 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11663 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11664 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11671 lt_prog_compiler_wl=
11672 lt_prog_compiler_pic=
11673 lt_prog_compiler_static=
11675 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11676 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11678 if test "$GCC" = yes; then
11679 lt_prog_compiler_wl='-Wl,'
11680 lt_prog_compiler_static='-static'
11684 # All AIX code is PIC.
11685 if test "$host_cpu" = ia64; then
11686 # AIX 5 now supports IA64 processor
11687 lt_prog_compiler_static='-Bstatic'
11692 # FIXME: we need at least 68020 code to build shared libraries, but
11693 # adding the `-m68020' flag to GCC prevents building anything better,
11695 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11698 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11699 # PIC is the default for these OSes.
11702 mingw* | pw32* | os2*)
11703 # This hack is so that the source file can tell whether it is being
11704 # built for inclusion in a dll (and should export symbols for example).
11705 lt_prog_compiler_pic='-DDLL_EXPORT'
11708 darwin* | rhapsody*)
11709 # PIC is the default on this platform
11710 # Common symbols not allowed in MH_DYLIB files
11711 lt_prog_compiler_pic='-fno-common'
11715 # Just because we use GCC doesn't mean we suddenly get shared libraries
11716 # on systems that don't support them.
11717 lt_prog_compiler_can_build_shared=no
11722 if test -d /usr/nec; then
11723 lt_prog_compiler_pic=-Kconform_pic
11728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11729 # not for PA HP-UX.
11730 case "$host_cpu" in
11735 lt_prog_compiler_pic='-fPIC'
11741 lt_prog_compiler_pic='-fPIC'
11745 # PORTME Check for flag to pass linker flags through the system compiler.
11748 lt_prog_compiler_wl='-Wl,'
11749 if test "$host_cpu" = ia64; then
11750 # AIX 5 now supports IA64 processor
11751 lt_prog_compiler_static='-Bstatic'
11753 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11757 # PIC is the default on this platform
11758 # Common symbols not allowed in MH_DYLIB files
11759 case "$cc_basename" in
11761 lt_prog_compiler_pic='-qnocommon'
11762 lt_prog_compiler_wl='-Wl,'
11767 mingw* | pw32* | os2*)
11768 # This hack is so that the source file can tell whether it is being
11769 # built for inclusion in a dll (and should export symbols for example).
11770 lt_prog_compiler_pic='-DDLL_EXPORT'
11773 hpux9* | hpux10* | hpux11*)
11774 lt_prog_compiler_wl='-Wl,'
11775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11776 # not for PA HP-UX.
11777 case "$host_cpu" in
11782 lt_prog_compiler_pic='+Z'
11785 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11786 lt_prog_compiler_static='${wl}-a ${wl}archive'
11789 irix5* | irix6* | nonstopux*)
11790 lt_prog_compiler_wl='-Wl,'
11791 # PIC (with -KPIC) is the default.
11792 lt_prog_compiler_static='-non_shared'
11796 lt_prog_compiler_pic='-KPIC'
11797 lt_prog_compiler_static='-Bstatic'
11803 lt_prog_compiler_wl='-Wl,'
11804 lt_prog_compiler_pic='-KPIC'
11805 lt_prog_compiler_static='-static'
11808 lt_prog_compiler_wl='-Wl,'
11809 # All Alpha code is PIC.
11810 lt_prog_compiler_static='-non_shared'
11815 osf3* | osf4* | osf5*)
11816 lt_prog_compiler_wl='-Wl,'
11817 # All OSF/1 code is PIC.
11818 lt_prog_compiler_static='-non_shared'
11822 lt_prog_compiler_pic='-Kpic'
11823 lt_prog_compiler_static='-dn'
11827 lt_prog_compiler_wl='-Wl,'
11828 lt_prog_compiler_pic='-KPIC'
11829 lt_prog_compiler_static='-Bstatic'
11833 lt_prog_compiler_wl='-Qoption ld '
11834 lt_prog_compiler_pic='-PIC'
11835 lt_prog_compiler_static='-Bstatic'
11838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11839 lt_prog_compiler_wl='-Wl,'
11840 lt_prog_compiler_pic='-KPIC'
11841 lt_prog_compiler_static='-Bstatic'
11845 if test -d /usr/nec ;then
11846 lt_prog_compiler_pic='-Kconform_pic'
11847 lt_prog_compiler_static='-Bstatic'
11852 lt_prog_compiler_pic='-pic'
11853 lt_prog_compiler_static='-Bstatic'
11857 lt_prog_compiler_can_build_shared=no
11862 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11863 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11866 # Check to make sure the PIC flag actually works.
11868 if test -n "$lt_prog_compiler_pic"; then
11870 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11871 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11872 if test "${lt_prog_compiler_pic_works+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 lt_prog_compiler_pic_works=no
11876 ac_outfile=conftest.$ac_objext
11877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11878 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11879 # Insert the option either (1) after the last *FLAGS variable, or
11880 # (2) before a word containing "conftest.", or (3) at the end.
11881 # Note that $ac_compile itself does not contain backslashes and begins
11882 # with a dollar sign (not a hyphen), so the echo should work correctly.
11883 # The option is referenced via a variable to avoid confusing sed.
11884 lt_compile=`echo "$ac_compile" | $SED \
11885 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11887 -e 's:$: $lt_compiler_flag:'`
11888 (eval echo "\"\$as_me:11888: $lt_compile\"" >&5)
11889 (eval "$lt_compile" 2>conftest.err)
11891 cat conftest.err >&5
11892 echo "$as_me:11892: \$? = $ac_status" >&5
11893 if (exit $ac_status) && test -s "$ac_outfile"; then
11894 # The compiler can only warn and ignore the option if not recognized
11895 # So say no if there are warnings
11896 if test ! -s conftest.err; then
11897 lt_prog_compiler_pic_works=yes
11903 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11904 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11906 if test x"$lt_prog_compiler_pic_works" = xyes; then
11907 case $lt_prog_compiler_pic in
11909 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11912 lt_prog_compiler_pic=
11913 lt_prog_compiler_can_build_shared=no
11918 # For platforms which do not support PIC, -DPIC is meaningless:
11920 lt_prog_compiler_pic=
11923 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11927 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11928 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11929 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 lt_cv_prog_compiler_c_o=no
11933 $rm -r conftest 2>/dev/null
11937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11939 lt_compiler_flag="-o out/conftest2.$ac_objext"
11940 # Insert the option either (1) after the last *FLAGS variable, or
11941 # (2) before a word containing "conftest.", or (3) at the end.
11942 # Note that $ac_compile itself does not contain backslashes and begins
11943 # with a dollar sign (not a hyphen), so the echo should work correctly.
11944 lt_compile=`echo "$ac_compile" | $SED \
11945 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11947 -e 's:$: $lt_compiler_flag:'`
11948 (eval echo "\"\$as_me:11948: $lt_compile\"" >&5)
11949 (eval "$lt_compile" 2>out/conftest.err)
11951 cat out/conftest.err >&5
11952 echo "$as_me:11952: \$? = $ac_status" >&5
11953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11955 # The compiler can only warn and ignore the option if not recognized
11956 # So say no if there are warnings
11957 if test ! -s out/conftest.err; then
11958 lt_cv_prog_compiler_c_o=yes
11963 # SGI C++ compiler will create directory out/ii_files/ for
11964 # template instantiation
11965 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11966 $rm out/* && rmdir out
11972 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11973 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
11976 hard_links="nottested"
11977 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11978 # do not overwrite the value of need_locks provided by the user
11979 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11980 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11985 ln conftest.a conftest.b 2>&5 || hard_links=no
11986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11987 echo "$as_me:$LINENO: result: $hard_links" >&5
11988 echo "${ECHO_T}$hard_links" >&6
11989 if test "$hard_links" = no; then
11990 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11991 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11998 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12002 allow_undefined_flag=
12003 enable_shared_with_static_runtimes=no
12005 archive_expsym_cmds=
12006 old_archive_From_new_cmds=
12007 old_archive_from_expsyms_cmds=
12008 export_dynamic_flag_spec=
12009 whole_archive_flag_spec=
12010 thread_safe_flag_spec=
12011 hardcode_libdir_flag_spec=
12012 hardcode_libdir_flag_spec_ld=
12013 hardcode_libdir_separator=
12015 hardcode_minus_L=no
12016 hardcode_shlibpath_var=unsupported
12017 link_all_deplibs=unknown
12018 hardcode_automatic=no
12020 module_expsym_cmds=
12021 always_export_symbols=no
12022 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12023 # include_expsyms should be a list of space-separated symbols to be *always*
12024 # included in the symbol list
12026 # exclude_expsyms can be an extended regexp of symbols to exclude
12027 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12028 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12029 # as well as any symbol that contains `d'.
12030 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12032 # platforms (ab)use it in PIC code, but their linkers get confused if
12033 # the symbol is explicitly referenced. Since portable code cannot
12034 # rely on this symbol name, it's probably fine to never include it in
12035 # preloaded symbol tables.
12036 extract_expsyms_cmds=
12039 cygwin* | mingw* | pw32*)
12040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12041 # When not using gcc, we currently assume that we are using
12042 # Microsoft Visual C++.
12043 if test "$GCC" != yes; then
12053 if test "$with_gnu_ld" = yes; then
12054 # If archive_cmds runs LD, not CC, wlarc should be empty
12057 # See if GNU ld supports shared libraries.
12059 aix3* | aix4* | aix5*)
12060 # On AIX/PPC, the GNU linker is very broken
12061 if test "$host_cpu" != ia64; then
12065 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12066 *** to be unable to reliably create shared libraries on AIX.
12067 *** Therefore, libtool is disabling shared libraries support. If you
12068 *** really care for shared libraries, you may want to modify your PATH
12069 *** so that a non-GNU linker is found, and then restart.
12076 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)'
12077 hardcode_libdir_flag_spec='-L$libdir'
12078 hardcode_minus_L=yes
12080 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12081 # that the semantics of dynamic libraries on AmigaOS, at least up
12082 # to version 4, is to share data among multiple programs linked
12083 # with the same dynamic library. Since this doesn't match the
12084 # behavior of shared libraries on other platforms, we can't use
12090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12091 allow_undefined_flag=unsupported
12092 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12093 # support --undefined. This deserves some investigation. FIXME
12094 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12100 cygwin* | mingw* | pw32*)
12101 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12102 # as there is no search path for DLLs.
12103 hardcode_libdir_flag_spec='-L$libdir'
12104 allow_undefined_flag=unsupported
12105 always_export_symbols=no
12106 enable_shared_with_static_runtimes=yes
12107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12109 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12111 # If the export-symbols file already is a .def file (1st line
12112 # is EXPORTS), use it as is; otherwise, prepend...
12113 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12114 cp $export_symbols $output_objdir/$soname.def;
12116 echo EXPORTS > $output_objdir/$soname.def;
12117 cat $export_symbols >> $output_objdir/$soname.def;
12119 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12126 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12127 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12136 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12140 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12141 *** create shared libraries on Solaris systems. Therefore, libtool
12142 *** is disabling shared libraries support. We urge you to upgrade GNU
12143 *** binutils to release 2.9.1 or newer. Another option is to modify
12144 *** your PATH or compiler configuration so that the native linker is
12145 *** used, and then restart.
12148 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12157 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12159 hardcode_direct=yes
12160 hardcode_shlibpath_var=no
12164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12165 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12166 archive_cmds="$tmp_archive_cmds"
12167 supports_anon_versioning=no
12168 case `$LD -v 2>/dev/null` in
12169 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12170 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12171 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12172 *\ 2.11.*) ;; # other 2.11 versions
12173 *) supports_anon_versioning=yes ;;
12175 if test $supports_anon_versioning = yes; then
12176 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12178 $echo "local: *; };" >> $output_objdir/$libname.ver~
12179 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12181 archive_expsym_cmds="$tmp_archive_cmds"
12189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12198 if test "$ld_shlibs" = yes; then
12199 runpath_var=LD_RUN_PATH
12200 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12201 export_dynamic_flag_spec='${wl}--export-dynamic'
12202 # ancient GNU ld didn't support --whole-archive et. al.
12203 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12204 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12206 whole_archive_flag_spec=
12210 # PORTME fill in a description of your system's linker (not GNU ld)
12213 allow_undefined_flag=unsupported
12214 always_export_symbols=yes
12215 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'
12216 # Note: this linker hardcodes the directories in LIBPATH if there
12217 # are no directories specified by -L.
12218 hardcode_minus_L=yes
12219 if test "$GCC" = yes && test -z "$link_static_flag"; then
12220 # Neither direct hardcoding nor static linking is supported with a
12222 hardcode_direct=unsupported
12227 if test "$host_cpu" = ia64; then
12228 # On IA64, the linker does run time linking by default, so we don't
12229 # have to do anything special.
12230 aix_use_runtimelinking=no
12231 exp_sym_flag='-Bexport'
12234 # If we're using GNU nm, then we don't want the "-C" option.
12235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12236 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12237 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'
12239 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'
12241 aix_use_runtimelinking=no
12243 # Test if we are trying to use run time linking or normal
12244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12245 # need to do runtime linking.
12246 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12247 for ld_flag in $LDFLAGS; do
12248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12249 aix_use_runtimelinking=yes
12255 exp_sym_flag='-bexport'
12256 no_entry_flag='-bnoentry'
12259 # When large executables or shared objects are built, AIX ld can
12260 # have problems creating the table of contents. If linking a library
12261 # or program results in "error TOC overflow" add -mminimal-toc to
12262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12266 hardcode_direct=yes
12267 hardcode_libdir_separator=':'
12268 link_all_deplibs=yes
12270 if test "$GCC" = yes; then
12271 case $host_os in aix4.012|aix4.012.*)
12272 # We only want to do this on AIX 4.2 and lower, the check
12273 # below for broken collect2 doesn't work under 4.3+
12274 collect2name=`${CC} -print-prog-name=collect2`
12275 if test -f "$collect2name" && \
12276 strings "$collect2name" | grep resolve_lib_name >/dev/null
12278 # We have reworked collect2
12279 hardcode_direct=yes
12281 # We have old collect2
12282 hardcode_direct=unsupported
12283 # It fails to find uninstalled libraries when the uninstalled
12284 # path is not listed in the libpath. Setting hardcode_minus_L
12285 # to unsupported forces relinking
12286 hardcode_minus_L=yes
12287 hardcode_libdir_flag_spec='-L$libdir'
12288 hardcode_libdir_separator=
12291 shared_flag='-shared'
12294 if test "$host_cpu" = ia64; then
12295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12296 # chokes on -Wl,-G. The following line is correct:
12299 if test "$aix_use_runtimelinking" = yes; then
12300 shared_flag='${wl}-G'
12302 shared_flag='${wl}-bM:SRE'
12307 # It seems that -bexpall does not export symbols beginning with
12308 # underscore (_), so it is better to generate a list of symbols to export.
12309 always_export_symbols=yes
12310 if test "$aix_use_runtimelinking" = yes; then
12311 # Warning - without using the other runtime loading flags (-brtl),
12312 # -berok will link without error, but may produce a broken library.
12313 allow_undefined_flag='-berok'
12314 # Determine the default libpath from the value encoded in an empty executable.
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332 (eval $ac_link) 2>conftest.er1
12334 grep -v '^ *+' conftest.er1 >conftest.err
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } &&
12339 { ac_try='test -z "$ac_c_werror_flag"
12340 || test ! -s conftest.err'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; } &&
12346 { ac_try='test -s conftest$ac_exeext'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12355 # Check for a 64-bit object if we didn't find anything.
12356 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; }
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12363 rm -f conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12367 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12368 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"
12370 if test "$host_cpu" = ia64; then
12371 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12372 allow_undefined_flag="-z nodefs"
12373 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"
12375 # Determine the default libpath from the value encoded in an empty executable.
12376 cat >conftest.$ac_ext <<_ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12393 (eval $ac_link) 2>conftest.er1
12395 grep -v '^ *+' conftest.er1 >conftest.err
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
12400 { ac_try='test -z "$ac_c_werror_flag"
12401 || test ! -s conftest.err'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; } &&
12407 { ac_try='test -s conftest$ac_exeext'
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12416 # Check for a 64-bit object if we didn't find anything.
12417 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; }
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12424 rm -f conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
12426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12428 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12429 # Warning - without using the other run time loading flags,
12430 # -berok will link without error, but may produce a broken library.
12431 no_undefined_flag=' ${wl}-bernotok'
12432 allow_undefined_flag=' ${wl}-berok'
12433 # -bexpall does not export symbols beginning with underscore (_)
12434 always_export_symbols=yes
12435 # Exported symbols can be pulled into shared objects from archives
12436 whole_archive_flag_spec=' '
12437 archive_cmds_need_lc=yes
12438 # This is similar to how AIX traditionally builds it's shared libraries.
12439 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'
12445 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)'
12446 hardcode_libdir_flag_spec='-L$libdir'
12447 hardcode_minus_L=yes
12448 # see comment about different semantics on the GNU ld section
12453 export_dynamic_flag_spec=-rdynamic
12456 cygwin* | mingw* | pw32*)
12457 # When not using gcc, we currently assume that we are using
12458 # Microsoft Visual C++.
12459 # hardcode_libdir_flag_spec is actually meaningless, as there is
12460 # no search path for DLLs.
12461 hardcode_libdir_flag_spec=' '
12462 allow_undefined_flag=unsupported
12463 # Tell ltmain to make .lib files, not .a files.
12465 # Tell ltmain to make .dll files, not .so files.
12467 # FIXME: Setting linknames here is a bad hack.
12468 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12469 # The linker will automatically build a .lib file if we build a DLL.
12470 old_archive_From_new_cmds='true'
12471 # FIXME: Should let the user specify the lib program.
12472 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12473 fix_srcfile_path='`cygpath -w "$srcfile"`'
12474 enable_shared_with_static_runtimes=yes
12477 darwin* | rhapsody*)
12479 rhapsody* | darwin1.[012])
12480 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12483 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12484 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12486 case ${MACOSX_DEPLOYMENT_TARGET} in
12488 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12491 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12497 archive_cmds_need_lc=no
12499 hardcode_automatic=yes
12500 hardcode_shlibpath_var=unsupported
12501 whole_archive_flag_spec=''
12502 link_all_deplibs=yes
12503 if test "$GCC" = yes ; then
12504 output_verbose_link_cmd='echo'
12505 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12506 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12507 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12508 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}'
12509 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}'
12511 case "$cc_basename" in
12513 output_verbose_link_cmd='echo'
12514 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12515 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12516 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12517 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}'
12518 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}'
12528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12529 hardcode_libdir_flag_spec='-L$libdir'
12530 hardcode_shlibpath_var=no
12537 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12538 # support. Future versions do this automatically, but an explicit c++rt0.o
12539 # does not break anything, and helps significantly (at the cost of a little
12542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12543 hardcode_libdir_flag_spec='-R$libdir'
12544 hardcode_direct=yes
12545 hardcode_shlibpath_var=no
12548 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12551 hardcode_direct=yes
12552 hardcode_minus_L=yes
12553 hardcode_shlibpath_var=no
12556 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12557 freebsd* | kfreebsd*-gnu)
12558 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12559 hardcode_libdir_flag_spec='-R$libdir'
12560 hardcode_direct=yes
12561 hardcode_shlibpath_var=no
12565 if test "$GCC" = yes; then
12566 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'
12568 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'
12570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12571 hardcode_libdir_separator=:
12572 hardcode_direct=yes
12574 # hardcode_minus_L: Not really in the search PATH,
12575 # but as the default location of the library.
12576 hardcode_minus_L=yes
12577 export_dynamic_flag_spec='${wl}-E'
12581 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12582 case "$host_cpu" in
12584 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12587 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12591 case "$host_cpu" in
12593 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12596 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12600 if test "$with_gnu_ld" = no; then
12601 case "$host_cpu" in
12603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12604 hardcode_libdir_flag_spec_ld='+b $libdir'
12605 hardcode_libdir_separator=:
12607 hardcode_shlibpath_var=no
12610 hardcode_libdir_flag_spec='-L$libdir'
12612 hardcode_shlibpath_var=no
12614 # hardcode_minus_L: Not really in the search PATH,
12615 # but as the default location of the library.
12616 hardcode_minus_L=yes
12619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12620 hardcode_libdir_separator=:
12621 hardcode_direct=yes
12622 export_dynamic_flag_spec='${wl}-E'
12624 # hardcode_minus_L: Not really in the search PATH,
12625 # but as the default location of the library.
12626 hardcode_minus_L=yes
12632 irix5* | irix6* | nonstopux*)
12633 if test "$GCC" = yes; then
12634 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'
12636 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'
12637 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12640 hardcode_libdir_separator=:
12641 link_all_deplibs=yes
12645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12648 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12650 hardcode_libdir_flag_spec='-R$libdir'
12651 hardcode_direct=yes
12652 hardcode_shlibpath_var=no
12656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12657 hardcode_direct=yes
12658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12659 hardcode_libdir_separator=:
12660 hardcode_shlibpath_var=no
12664 hardcode_direct=yes
12665 hardcode_shlibpath_var=no
12666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12668 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12670 export_dynamic_flag_spec='${wl}-E'
12673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12675 hardcode_libdir_flag_spec='-R$libdir'
12678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12686 hardcode_libdir_flag_spec='-L$libdir'
12687 hardcode_minus_L=yes
12688 allow_undefined_flag=unsupported
12689 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'
12690 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12694 if test "$GCC" = yes; then
12695 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12696 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'
12698 allow_undefined_flag=' -expect_unresolved \*'
12699 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'
12701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12702 hardcode_libdir_separator=:
12705 osf4* | osf5*) # as osf3* with the addition of -msym flag
12706 if test "$GCC" = yes; then
12707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12708 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'
12709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12711 allow_undefined_flag=' -expect_unresolved \*'
12712 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'
12713 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12714 $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'
12716 # Both c and cxx compiler support -rpath directly
12717 hardcode_libdir_flag_spec='-rpath $libdir'
12719 hardcode_libdir_separator=:
12723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12724 hardcode_shlibpath_var=no
12725 export_dynamic_flag_spec='${wl}-Bexport'
12726 runpath_var=LD_RUN_PATH
12727 hardcode_runpath_var=yes
12731 no_undefined_flag=' -z text'
12732 if test "$GCC" = yes; then
12733 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12734 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12735 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12737 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12738 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12739 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12741 hardcode_libdir_flag_spec='-R$libdir'
12742 hardcode_shlibpath_var=no
12744 solaris2.[0-5] | solaris2.[0-5].*) ;;
12745 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12746 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12748 link_all_deplibs=yes
12752 if test "x$host_vendor" = xsequent; then
12753 # Use $CC to link under sequent, because it throws in some extra .o
12754 # files that make .init and .fini sections work.
12755 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12757 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12759 hardcode_libdir_flag_spec='-L$libdir'
12760 hardcode_direct=yes
12761 hardcode_minus_L=yes
12762 hardcode_shlibpath_var=no
12766 case $host_vendor in
12768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12769 hardcode_direct=yes # is this really true???
12772 ## LD is ld it makes a PLAMLIB
12773 ## CC just makes a GrossModule.
12774 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12775 reload_cmds='$CC -r -o $output$reload_objs'
12779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12783 runpath_var='LD_RUN_PATH'
12784 hardcode_shlibpath_var=no
12788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12789 hardcode_shlibpath_var=no
12790 export_dynamic_flag_spec='-Bexport'
12794 if test -d /usr/nec; then
12795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12796 hardcode_shlibpath_var=no
12797 runpath_var=LD_RUN_PATH
12798 hardcode_runpath_var=yes
12804 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12805 hardcode_direct=yes
12806 hardcode_minus_L=no
12807 hardcode_shlibpath_var=no
12808 hardcode_runpath_var=yes
12809 runpath_var=LD_RUN_PATH
12812 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12813 no_undefined_flag='${wl}-z ${wl}text'
12814 if test "$GCC" = yes; then
12815 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12817 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12819 runpath_var='LD_RUN_PATH'
12820 hardcode_shlibpath_var=no
12824 no_undefined_flag=' -z text'
12825 # $CC -shared without GNU ld will not create a library from C++
12826 # object files and a static libstdc++, better avoid it by now
12827 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12828 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12830 hardcode_libdir_flag_spec=
12831 hardcode_shlibpath_var=no
12832 runpath_var='LD_RUN_PATH'
12836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12837 hardcode_libdir_flag_spec='-L$libdir'
12838 hardcode_shlibpath_var=no
12847 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12848 echo "${ECHO_T}$ld_shlibs" >&6
12849 test "$ld_shlibs" = no && can_build_shared=no
12851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12852 if test "$GCC" = yes; then
12853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12857 # Do we need to explicitly link libc?
12859 case "x$archive_cmds_need_lc" in
12861 # Assume -lc should be added
12862 archive_cmds_need_lc=yes
12864 if test "$enable_shared" = yes && test "$GCC" = yes; then
12865 case $archive_cmds in
12867 # FIXME: we may have to deal with multi-command sequences.
12870 # Test whether the compiler implicitly links with -lc since on some
12871 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12872 # to ld, don't add -lc before -lgcc.
12873 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12874 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12879 (eval $ac_compile) 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } 2>conftest.err; then
12885 libobjs=conftest.$ac_objext
12887 wl=$lt_prog_compiler_wl
12893 lt_save_allow_undefined_flag=$allow_undefined_flag
12894 allow_undefined_flag=
12895 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12896 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }
12901 archive_cmds_need_lc=no
12903 archive_cmds_need_lc=yes
12905 allow_undefined_flag=$lt_save_allow_undefined_flag
12907 cat conftest.err 1>&5
12910 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12911 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12918 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12919 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12920 library_names_spec=
12921 libname_spec='lib$name'
12925 postuninstall_cmds=
12929 shlibpath_overrides_runpath=unknown
12931 dynamic_linker="$host_os ld.so"
12932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12933 if test "$GCC" = yes; then
12934 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12935 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12936 # if the path contains ";" then we assume it to be the separator
12937 # otherwise default to the standard path separator (i.e. ":") - it is
12938 # assumed that no part of a normal pathname contains ";" but that should
12939 # okay in the real world where ";" in dirpaths is itself problematic.
12940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12947 need_lib_prefix=unknown
12948 hardcode_into_libs=no
12950 # when you set need_version to no, make sure it does not cause -set_version
12951 # flags to be left without arguments
12952 need_version=unknown
12957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12958 shlibpath_var=LIBPATH
12960 # AIX 3 has no versioning support, so we append a major version to the name.
12961 soname_spec='${libname}${release}${shared_ext}$major'
12968 hardcode_into_libs=yes
12969 if test "$host_cpu" = ia64; then
12970 # AIX 5 supports IA64
12971 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12972 shlibpath_var=LD_LIBRARY_PATH
12974 # With GCC up to 2.95.x, collect2 would create an import file
12975 # for dependence libraries. The import file would start with
12976 # the line `#! .'. This would cause the generated library to
12977 # depend on `.', always an invalid library. This was fixed in
12978 # development snapshots of GCC prior to 3.0.
12980 aix4 | aix4.[01] | aix4.[01].*)
12981 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12983 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12986 can_build_shared=no
12990 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12991 # soname into executable. Probably we can add versioning support to
12992 # collect2, so additional links can be useful in future.
12993 if test "$aix_use_runtimelinking" = yes; then
12994 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12995 # instead of lib<name>.a to let people know that these are not
12996 # typical AIX shared libraries.
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999 # We preserve .a as extension for shared libraries through AIX4.2
13000 # and later when we are not doing run time linking.
13001 library_names_spec='${libname}${release}.a $libname.a'
13002 soname_spec='${libname}${release}${shared_ext}$major'
13004 shlibpath_var=LIBPATH
13009 library_names_spec='$libname.ixlibrary $libname.a'
13010 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13011 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'
13015 library_names_spec='${libname}${shared_ext}'
13016 dynamic_linker="$host_os ld.so"
13017 shlibpath_var=LIBRARY_PATH
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024 soname_spec='${libname}${release}${shared_ext}$major'
13025 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13028 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13029 # the default ld.so.conf also contains /usr/contrib/lib and
13030 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13031 # libtool to hard-code these into programs
13034 cygwin* | mingw* | pw32*)
13035 version_type=windows
13040 case $GCC,$host_os in
13041 yes,cygwin* | yes,mingw* | yes,pw32*)
13042 library_names_spec='$libname.dll.a'
13043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13044 postinstall_cmds='base_file=`basename \${file}`~
13045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13046 dldir=$destdir/`dirname \$dlpath`~
13047 test -d \$dldir || mkdir -p \$dldir~
13048 $install_prog $dir/$dlname \$dldir/$dlname'
13049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13050 dlpath=$dir/\$dldll~
13052 shlibpath_overrides_runpath=yes
13056 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13057 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13058 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13061 # MinGW DLLs use traditional 'lib' prefix
13062 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13063 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13064 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13065 # It is most probably a Windows format PATH printed by
13066 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13067 # path with ; separators, and with drive letters. We can handle the
13068 # drive letters (cygwin fileutils understands them), so leave them,
13069 # especially as we might pass files found there to a mingw objdump,
13070 # which wouldn't understand a cygwinified path. Ahh.
13071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13077 # pw32 DLLs use 'pw' prefix rather than 'lib'
13078 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13084 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13087 dynamic_linker='Win32 ld.exe'
13088 # FIXME: first we should search . and the directory the executable is in
13092 darwin* | rhapsody*)
13093 dynamic_linker="$host_os dyld"
13094 version_type=darwin
13097 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13098 soname_spec='${libname}${release}${major}$shared_ext'
13099 shlibpath_overrides_runpath=yes
13100 shlibpath_var=DYLD_LIBRARY_PATH
13101 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13102 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13103 if test "$GCC" = yes; then
13104 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"`
13106 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13108 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13116 soname_spec='${libname}${release}${shared_ext}$major'
13117 shlibpath_var=LD_LIBRARY_PATH
13128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13129 soname_spec='${libname}${release}${shared_ext}$major'
13130 shlibpath_var=LD_LIBRARY_PATH
13131 shlibpath_overrides_runpath=no
13132 hardcode_into_libs=yes
13133 dynamic_linker='GNU ld.so'
13137 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13138 version_type=freebsd-$objformat
13139 case $version_type in
13141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13150 shlibpath_var=LD_LIBRARY_PATH
13153 shlibpath_overrides_runpath=yes
13155 freebsd3.01* | freebsdelf3.01*)
13156 shlibpath_overrides_runpath=yes
13157 hardcode_into_libs=yes
13160 shlibpath_overrides_runpath=no
13161 hardcode_into_libs=yes
13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13171 soname_spec='${libname}${release}${shared_ext}$major'
13172 shlibpath_var=LD_LIBRARY_PATH
13173 hardcode_into_libs=yes
13176 hpux9* | hpux10* | hpux11*)
13177 # Give a soname corresponding to the major version so that dld.sl refuses to
13178 # link against other versions.
13182 case "$host_cpu" in
13185 hardcode_into_libs=yes
13186 dynamic_linker="$host_os dld.so"
13187 shlibpath_var=LD_LIBRARY_PATH
13188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13190 soname_spec='${libname}${release}${shared_ext}$major'
13191 if test "X$HPUX_IA64_MODE" = X32; then
13192 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13194 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13200 hardcode_into_libs=yes
13201 dynamic_linker="$host_os dld.sl"
13202 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205 soname_spec='${libname}${release}${shared_ext}$major'
13206 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13211 dynamic_linker="$host_os dld.sl"
13212 shlibpath_var=SHLIB_PATH
13213 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13215 soname_spec='${libname}${release}${shared_ext}$major'
13218 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13219 postinstall_cmds='chmod 555 $lib'
13222 irix5* | irix6* | nonstopux*)
13224 nonstopux*) version_type=nonstopux ;;
13226 if test "$lt_cv_prog_gnu_ld" = yes; then
13234 soname_spec='${libname}${release}${shared_ext}$major'
13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13237 irix5* | nonstopux*)
13238 libsuff= shlibsuff=
13241 case $LD in # libtool.m4 will add one of these switches to LD
13242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13243 libsuff= shlibsuff= libmagic=32-bit;;
13244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13245 libsuff=32 shlibsuff=N32 libmagic=N32;;
13246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13248 *) libsuff= shlibsuff= libmagic=never-match;;
13252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13253 shlibpath_overrides_runpath=no
13254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13256 hardcode_into_libs=yes
13259 # No shared lib support for Linux oldld, aout, or coff.
13260 linux*oldld* | linux*aout* | linux*coff*)
13264 # This must be Linux ELF.
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270 soname_spec='${libname}${release}${shared_ext}$major'
13271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13272 shlibpath_var=LD_LIBRARY_PATH
13273 shlibpath_overrides_runpath=no
13274 # This implies no fast_install, which is unacceptable.
13275 # Some rework will be needed to allow for fast_install
13276 # before this can be enabled.
13277 hardcode_into_libs=yes
13279 # Append ld.so.conf contents to the search path
13280 if test -f /etc/ld.so.conf; then
13281 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13285 # We used to test for /lib/ld.so.1 and disable shared libraries on
13286 # powerpc, because MkLinux only supported shared libraries with the
13287 # GNU dynamic linker. Since this was broken with cross compilers,
13288 # most powerpc-linux boxes support dynamic linking these days and
13289 # people can always --disable-shared, the test was removed, and we
13290 # assume the GNU/Linux dynamic linker is in use.
13291 dynamic_linker='GNU/Linux ld.so'
13298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13299 soname_spec='${libname}${release}${shared_ext}$major'
13300 shlibpath_var=LD_LIBRARY_PATH
13301 shlibpath_overrides_runpath=no
13302 hardcode_into_libs=yes
13303 dynamic_linker='GNU ld.so'
13310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13313 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
13319 shlibpath_var=LD_LIBRARY_PATH
13320 shlibpath_overrides_runpath=yes
13321 hardcode_into_libs=yes
13326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327 shlibpath_var=LD_LIBRARY_PATH
13328 shlibpath_overrides_runpath=yes
13335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13336 soname_spec='${libname}${release}${shared_ext}$major'
13337 shlibpath_var=LD_LIBRARY_PATH
13338 shlibpath_overrides_runpath=yes
13345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13347 shlibpath_var=LD_LIBRARY_PATH
13348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13350 openbsd2.[89] | openbsd2.[89].*)
13351 shlibpath_overrides_runpath=no
13354 shlibpath_overrides_runpath=yes
13358 shlibpath_overrides_runpath=yes
13363 libname_spec='$name'
13366 library_names_spec='$libname${shared_ext} $libname.a'
13367 dynamic_linker='OS/2 ld.exe'
13368 shlibpath_var=LIBPATH
13371 osf3* | osf4* | osf5*)
13375 soname_spec='${libname}${release}${shared_ext}$major'
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13377 shlibpath_var=LD_LIBRARY_PATH
13378 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13379 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13384 soname_spec='${libname}${release}${shared_ext}$major'
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13386 shlibpath_var=LD_LIBRARY_PATH
13393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13394 soname_spec='${libname}${release}${shared_ext}$major'
13395 shlibpath_var=LD_LIBRARY_PATH
13396 shlibpath_overrides_runpath=yes
13397 hardcode_into_libs=yes
13398 # ldd complains unless libraries are executable
13399 postinstall_cmds='chmod +x $lib'
13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13405 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13406 shlibpath_var=LD_LIBRARY_PATH
13407 shlibpath_overrides_runpath=yes
13408 if test "$with_gnu_ld" = yes; then
13414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417 soname_spec='${libname}${release}${shared_ext}$major'
13418 shlibpath_var=LD_LIBRARY_PATH
13419 case $host_vendor in
13421 shlibpath_overrides_runpath=no
13423 export_dynamic_flag_spec='${wl}-Blargedynsym'
13424 runpath_var=LD_RUN_PATH
13432 shlibpath_overrides_runpath=no
13433 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13439 if test -d /usr/nec ;then
13441 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13442 soname_spec='$libname${shared_ext}.$major'
13443 shlibpath_var=LD_LIBRARY_PATH
13449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13450 soname_spec='${libname}${release}${shared_ext}$major'
13451 shlibpath_var=LD_LIBRARY_PATH
13458 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13459 echo "${ECHO_T}$dynamic_linker" >&6
13460 test "$dynamic_linker" = no && can_build_shared=no
13462 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13463 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13465 if test -n "$hardcode_libdir_flag_spec" || \
13466 test -n "$runpath_var" || \
13467 test "X$hardcode_automatic" = "Xyes" ; then
13469 # We can hardcode non-existant directories.
13470 if test "$hardcode_direct" != no &&
13471 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13472 # have to relink, otherwise we might link with an installed library
13473 # when we should be linking with a yet-to-be-installed one
13474 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13475 test "$hardcode_minus_L" != no; then
13476 # Linking always hardcodes the temporary library directory.
13477 hardcode_action=relink
13479 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13480 hardcode_action=immediate
13483 # We cannot hardcode anything, or else we can only hardcode existing
13485 hardcode_action=unsupported
13487 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13488 echo "${ECHO_T}$hardcode_action" >&6
13490 if test "$hardcode_action" = relink; then
13491 # Fast installation is not supported
13492 enable_fast_install=no
13493 elif test "$shlibpath_overrides_runpath" = yes ||
13494 test "$enable_shared" = no; then
13495 # Fast installation is not necessary
13496 enable_fast_install=needless
13501 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13502 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13503 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13504 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13505 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13506 echo "$as_me:$LINENO: result: yes" >&5
13507 echo "${ECHO_T}yes" >&6
13509 # FIXME - insert some real tests, host_os isn't really good enough
13512 if test -n "$STRIP" ; then
13513 striplib="$STRIP -x"
13514 echo "$as_me:$LINENO: result: yes" >&5
13515 echo "${ECHO_T}yes" >&6
13517 echo "$as_me:$LINENO: result: no" >&5
13518 echo "${ECHO_T}no" >&6
13522 echo "$as_me:$LINENO: result: no" >&5
13523 echo "${ECHO_T}no" >&6
13528 if test "x$enable_dlopen" != xyes; then
13529 enable_dlopen=unknown
13530 enable_dlopen_self=unknown
13531 enable_dlopen_self_static=unknown
13538 lt_cv_dlopen="load_add_on"
13540 lt_cv_dlopen_self=yes
13544 lt_cv_dlopen="LoadLibrary"
13549 lt_cv_dlopen="dlopen"
13554 # if libdl is installed we need to link against it
13555 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13556 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 ac_check_lib_save_LIBS=$LIBS
13562 cat >conftest.$ac_ext <<_ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13569 /* Override any gcc2 internal prototype to avoid an error. */
13573 /* We use char because int might match the return type of a gcc2
13574 builtin and then its argument prototype would still apply. */
13584 rm -f conftest.$ac_objext conftest$ac_exeext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13586 (eval $ac_link) 2>conftest.er1
13588 grep -v '^ *+' conftest.er1 >conftest.err
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } &&
13593 { ac_try='test -z "$ac_c_werror_flag"
13594 || test ! -s conftest.err'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; } &&
13600 { ac_try='test -s conftest$ac_exeext'
13601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; }; then
13606 ac_cv_lib_dl_dlopen=yes
13608 echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13611 ac_cv_lib_dl_dlopen=no
13613 rm -f conftest.err conftest.$ac_objext \
13614 conftest$ac_exeext conftest.$ac_ext
13615 LIBS=$ac_check_lib_save_LIBS
13617 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13618 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13619 if test $ac_cv_lib_dl_dlopen = yes; then
13620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13623 lt_cv_dlopen="dyld"
13625 lt_cv_dlopen_self=yes
13632 echo "$as_me:$LINENO: checking for shl_load" >&5
13633 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13634 if test "${ac_cv_func_shl_load+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 cat >conftest.$ac_ext <<_ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13643 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13645 #define shl_load innocuous_shl_load
13647 /* System header to define __stub macros and hopefully few prototypes,
13648 which can conflict with char shl_load (); below.
13649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13650 <limits.h> exists even on freestanding compilers. */
13653 # include <limits.h>
13655 # include <assert.h>
13660 /* Override any gcc2 internal prototype to avoid an error. */
13665 /* We use char because int might match the return type of a gcc2
13666 builtin and then its argument prototype would still apply. */
13668 /* The GNU C library defines this for functions which it implements
13669 to always fail with ENOSYS. Some functions are actually named
13670 something starting with __ and the normal name is an alias. */
13671 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13674 char (*f) () = shl_load;
13683 return f != shl_load;
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690 (eval $ac_link) 2>conftest.er1
13692 grep -v '^ *+' conftest.er1 >conftest.err
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
13697 { ac_try='test -z "$ac_c_werror_flag"
13698 || test ! -s conftest.err'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest$ac_exeext'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 ac_cv_func_shl_load=yes
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 ac_cv_func_shl_load=no
13717 rm -f conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
13720 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13721 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13722 if test $ac_cv_func_shl_load = yes; then
13723 lt_cv_dlopen="shl_load"
13725 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13726 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13727 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 ac_check_lib_save_LIBS=$LIBS
13732 cat >conftest.$ac_ext <<_ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h. */
13739 /* Override any gcc2 internal prototype to avoid an error. */
13743 /* We use char because int might match the return type of a gcc2
13744 builtin and then its argument prototype would still apply. */
13754 rm -f conftest.$ac_objext conftest$ac_exeext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13756 (eval $ac_link) 2>conftest.er1
13758 grep -v '^ *+' conftest.er1 >conftest.err
13760 cat conftest.err >&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } &&
13763 { ac_try='test -z "$ac_c_werror_flag"
13764 || test ! -s conftest.err'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest$ac_exeext'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 ac_cv_lib_dld_shl_load=yes
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13781 ac_cv_lib_dld_shl_load=no
13783 rm -f conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 LIBS=$ac_check_lib_save_LIBS
13787 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13788 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13789 if test $ac_cv_lib_dld_shl_load = yes; then
13790 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13792 echo "$as_me:$LINENO: checking for dlopen" >&5
13793 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13794 if test "${ac_cv_func_dlopen+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 cat >conftest.$ac_ext <<_ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13805 #define dlopen innocuous_dlopen
13807 /* System header to define __stub macros and hopefully few prototypes,
13808 which can conflict with char dlopen (); below.
13809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13810 <limits.h> exists even on freestanding compilers. */
13813 # include <limits.h>
13815 # include <assert.h>
13820 /* Override any gcc2 internal prototype to avoid an error. */
13825 /* We use char because int might match the return type of a gcc2
13826 builtin and then its argument prototype would still apply. */
13828 /* The GNU C library defines this for functions which it implements
13829 to always fail with ENOSYS. Some functions are actually named
13830 something starting with __ and the normal name is an alias. */
13831 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13834 char (*f) () = dlopen;
13843 return f != dlopen;
13848 rm -f conftest.$ac_objext conftest$ac_exeext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13850 (eval $ac_link) 2>conftest.er1
13852 grep -v '^ *+' conftest.er1 >conftest.err
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
13857 { ac_try='test -z "$ac_c_werror_flag"
13858 || test ! -s conftest.err'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest$ac_exeext'
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13870 ac_cv_func_dlopen=yes
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13875 ac_cv_func_dlopen=no
13877 rm -f conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13880 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13881 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13882 if test $ac_cv_func_dlopen = yes; then
13883 lt_cv_dlopen="dlopen"
13885 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13886 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 ac_check_lib_save_LIBS=$LIBS
13892 cat >conftest.$ac_ext <<_ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13899 /* Override any gcc2 internal prototype to avoid an error. */
13903 /* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13916 (eval $ac_link) 2>conftest.er1
13918 grep -v '^ *+' conftest.er1 >conftest.err
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
13923 { ac_try='test -z "$ac_c_werror_flag"
13924 || test ! -s conftest.err'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest$ac_exeext'
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_cv_lib_dl_dlopen=yes
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 ac_cv_lib_dl_dlopen=no
13943 rm -f conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13949 if test $ac_cv_lib_dl_dlopen = yes; then
13950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13952 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13953 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13954 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 ac_check_lib_save_LIBS=$LIBS
13958 LIBS="-lsvld $LIBS"
13959 cat >conftest.$ac_ext <<_ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13966 /* Override any gcc2 internal prototype to avoid an error. */
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>conftest.er1
13985 grep -v '^ *+' conftest.er1 >conftest.err
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest$ac_exeext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 ac_cv_lib_svld_dlopen=yes
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14008 ac_cv_lib_svld_dlopen=no
14010 rm -f conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14012 LIBS=$ac_check_lib_save_LIBS
14014 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14015 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14016 if test $ac_cv_lib_svld_dlopen = yes; then
14017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14019 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14020 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14021 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 ac_check_lib_save_LIBS=$LIBS
14026 cat >conftest.$ac_ext <<_ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14033 /* Override any gcc2 internal prototype to avoid an error. */
14037 /* We use char because int might match the return type of a gcc2
14038 builtin and then its argument prototype would still apply. */
14048 rm -f conftest.$ac_objext conftest$ac_exeext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050 (eval $ac_link) 2>conftest.er1
14052 grep -v '^ *+' conftest.er1 >conftest.err
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } &&
14057 { ac_try='test -z "$ac_c_werror_flag"
14058 || test ! -s conftest.err'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; } &&
14064 { ac_try='test -s conftest$ac_exeext'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; }; then
14070 ac_cv_lib_dld_dld_link=yes
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14075 ac_cv_lib_dld_dld_link=no
14077 rm -f conftest.err conftest.$ac_objext \
14078 conftest$ac_exeext conftest.$ac_ext
14079 LIBS=$ac_check_lib_save_LIBS
14081 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14082 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14083 if test $ac_cv_lib_dld_dld_link = yes; then
14084 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14105 if test "x$lt_cv_dlopen" != xno; then
14111 case $lt_cv_dlopen in
14113 save_CPPFLAGS="$CPPFLAGS"
14114 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14116 save_LDFLAGS="$LDFLAGS"
14117 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14120 LIBS="$lt_cv_dlopen_libs $LIBS"
14122 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14123 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14124 if test "${lt_cv_dlopen_self+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 if test "$cross_compiling" = yes; then :
14128 lt_cv_dlopen_self=cross
14130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14131 lt_status=$lt_dlunknown
14132 cat > conftest.$ac_ext <<EOF
14133 #line 14133 "configure"
14134 #include "confdefs.h"
14143 # define LT_DLGLOBAL RTLD_GLOBAL
14146 # define LT_DLGLOBAL DL_GLOBAL
14148 # define LT_DLGLOBAL 0
14152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14153 find out it does not work in some platform. */
14154 #ifndef LT_DLLAZY_OR_NOW
14156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14159 # define LT_DLLAZY_OR_NOW DL_LAZY
14162 # define LT_DLLAZY_OR_NOW RTLD_NOW
14165 # define LT_DLLAZY_OR_NOW DL_NOW
14167 # define LT_DLLAZY_OR_NOW 0
14175 extern "C" void exit (int);
14178 void fnord() { int i=42;}
14181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14182 int status = $lt_dlunknown;
14186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14187 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14188 /* dlclose (self); */
14194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14195 (eval $ac_link) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14199 (./conftest; exit; ) 2>/dev/null
14201 case x$lt_status in
14202 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14203 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14204 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14207 # compilation failed
14208 lt_cv_dlopen_self=no
14215 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14216 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14218 if test "x$lt_cv_dlopen_self" = xyes; then
14219 LDFLAGS="$LDFLAGS $link_static_flag"
14220 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14221 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14222 if test "${lt_cv_dlopen_self_static+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 if test "$cross_compiling" = yes; then :
14226 lt_cv_dlopen_self_static=cross
14228 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14229 lt_status=$lt_dlunknown
14230 cat > conftest.$ac_ext <<EOF
14231 #line 14231 "configure"
14232 #include "confdefs.h"
14241 # define LT_DLGLOBAL RTLD_GLOBAL
14244 # define LT_DLGLOBAL DL_GLOBAL
14246 # define LT_DLGLOBAL 0
14250 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14251 find out it does not work in some platform. */
14252 #ifndef LT_DLLAZY_OR_NOW
14254 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14257 # define LT_DLLAZY_OR_NOW DL_LAZY
14260 # define LT_DLLAZY_OR_NOW RTLD_NOW
14263 # define LT_DLLAZY_OR_NOW DL_NOW
14265 # define LT_DLLAZY_OR_NOW 0
14273 extern "C" void exit (int);
14276 void fnord() { int i=42;}
14279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14280 int status = $lt_dlunknown;
14284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14285 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14286 /* dlclose (self); */
14292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293 (eval $ac_link) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14297 (./conftest; exit; ) 2>/dev/null
14299 case x$lt_status in
14300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14302 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14305 # compilation failed
14306 lt_cv_dlopen_self_static=no
14313 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14314 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14317 CPPFLAGS="$save_CPPFLAGS"
14318 LDFLAGS="$save_LDFLAGS"
14323 case $lt_cv_dlopen_self in
14324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14325 *) enable_dlopen_self=unknown ;;
14328 case $lt_cv_dlopen_self_static in
14329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14330 *) enable_dlopen_self_static=unknown ;;
14335 # Report which librarie types wil actually be built
14336 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14337 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14338 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14339 echo "${ECHO_T}$can_build_shared" >&6
14341 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14342 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14343 test "$can_build_shared" = "no" && enable_shared=no
14345 # On AIX, shared libraries and static libraries use the same namespace, and
14346 # are all built from PIC.
14349 test "$enable_shared" = yes && enable_static=no
14350 if test -n "$RANLIB"; then
14351 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14352 postinstall_cmds='$RANLIB $lib'
14357 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14358 test "$enable_shared" = yes && enable_static=no
14362 echo "$as_me:$LINENO: result: $enable_shared" >&5
14363 echo "${ECHO_T}$enable_shared" >&6
14365 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14366 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14367 # Make sure either enable_shared or enable_static is yes.
14368 test "$enable_shared" = yes || enable_static=yes
14369 echo "$as_me:$LINENO: result: $enable_static" >&5
14370 echo "${ECHO_T}$enable_static" >&6
14372 # The else clause should only fire when bootstrapping the
14373 # libtool distribution, otherwise you forgot to ship ltmain.sh
14374 # with your package, and you will get complaints that there are
14375 # no rules to generate ltmain.sh.
14376 if test -f "$ltmain"; then
14377 # See if we are running on zsh, and set the options which allow our commands through
14378 # without removal of \ escapes.
14379 if test -n "${ZSH_VERSION+set}" ; then
14380 setopt NO_GLOB_SUBST
14382 # Now quote all the things that may contain metacharacters while being
14383 # careful not to overquote the AC_SUBSTed values. We take copies of the
14384 # variables and quote the copies for generation of the libtool script.
14385 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14387 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14388 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14389 deplibs_check_method reload_flag reload_cmds need_locks \
14390 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14391 lt_cv_sys_global_symbol_to_c_name_address \
14392 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14393 old_postinstall_cmds old_postuninstall_cmds \
14397 lt_prog_compiler_wl \
14398 lt_prog_compiler_pic \
14399 lt_prog_compiler_static \
14400 lt_prog_compiler_no_builtin_flag \
14401 export_dynamic_flag_spec \
14402 thread_safe_flag_spec \
14403 whole_archive_flag_spec \
14404 enable_shared_with_static_runtimes \
14406 old_archive_from_new_cmds \
14411 compiler_lib_search_path \
14413 archive_expsym_cmds \
14415 postuninstall_cmds \
14416 old_archive_from_expsyms_cmds \
14417 allow_undefined_flag \
14418 no_undefined_flag \
14419 export_symbols_cmds \
14420 hardcode_libdir_flag_spec \
14421 hardcode_libdir_flag_spec_ld \
14422 hardcode_libdir_separator \
14423 hardcode_automatic \
14425 module_expsym_cmds \
14426 lt_cv_prog_compiler_c_o \
14428 include_expsyms; do
14431 old_archive_cmds | \
14432 old_archive_from_new_cmds | \
14434 archive_expsym_cmds | \
14436 module_expsym_cmds | \
14437 old_archive_from_expsyms_cmds | \
14438 export_symbols_cmds | \
14439 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14440 postinstall_cmds | postuninstall_cmds | \
14441 old_postinstall_cmds | old_postuninstall_cmds | \
14442 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14443 # Double-quote double-evaled strings.
14444 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14447 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14453 *'\$0 --fallback-echo"')
14454 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14458 cfgfile="${ofile}T"
14459 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14461 { echo "$as_me:$LINENO: creating $ofile" >&5
14462 echo "$as_me: creating $ofile" >&6;}
14464 cat <<__EOF__ >> "$cfgfile"
14467 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14468 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14469 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14471 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14472 # Free Software Foundation, Inc.
14474 # This file is part of GNU Libtool:
14475 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14477 # This program is free software; you can redistribute it and/or modify
14478 # it under the terms of the GNU General Public License as published by
14479 # the Free Software Foundation; either version 2 of the License, or
14480 # (at your option) any later version.
14482 # This program is distributed in the hope that it will be useful, but
14483 # WITHOUT ANY WARRANTY; without even the implied warranty of
14484 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14485 # General Public License for more details.
14487 # You should have received a copy of the GNU General Public License
14488 # along with this program; if not, write to the Free Software
14489 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14491 # As a special exception to the GNU General Public License, if you
14492 # distribute this file as part of a program that contains a
14493 # configuration script generated by Autoconf, you may include it under
14494 # the same distribution terms that you use for the rest of that program.
14496 # A sed program that does not truncate output.
14499 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14500 Xsed="$SED -e s/^X//"
14502 # The HP-UX ksh and POSIX shell print the target directory to stdout
14503 # if CDPATH is set.
14504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14506 # The names of the tagged configurations supported by this script.
14509 # ### BEGIN LIBTOOL CONFIG
14511 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14513 # Shell to use when invoking shell scripts.
14516 # Whether or not to build shared libraries.
14517 build_libtool_libs=$enable_shared
14519 # Whether or not to build static libraries.
14520 build_old_libs=$enable_static
14522 # Whether or not to add -lc for building shared libraries.
14523 build_libtool_need_lc=$archive_cmds_need_lc
14525 # Whether or not to disallow shared libs when runtime libs are static
14526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14528 # Whether or not to optimize for fast installation.
14529 fast_install=$enable_fast_install
14532 host_alias=$host_alias
14535 # An echo program that does not interpret backslashes.
14540 AR_FLAGS=$lt_AR_FLAGS
14545 # A language-specific compiler.
14548 # Is the compiler the GNU C compiler?
14554 # The linker used to build libraries.
14557 # Whether we need hard or soft links.
14560 # A BSD-compatible nm program.
14563 # A symbol stripping program
14566 # Used to examine libraries when file_magic_cmd begins "file"
14567 MAGIC_CMD=$MAGIC_CMD
14569 # Used on cygwin: DLL creation program.
14572 # Used on cygwin: object dumper.
14575 # Used on cygwin: assembler.
14578 # The name of the directory that contains temporary libtool files.
14581 # How to create reloadable object files.
14582 reload_flag=$lt_reload_flag
14583 reload_cmds=$lt_reload_cmds
14585 # How to pass a linker flag through the compiler.
14586 wl=$lt_lt_prog_compiler_wl
14588 # Object file suffix (normally "o").
14589 objext="$ac_objext"
14591 # Old archive suffix (normally "a").
14594 # Shared library suffix (normally ".so").
14595 shrext_cmds='$shrext_cmds'
14597 # Executable file suffix (normally "").
14600 # Additional compiler flags for building library objects.
14601 pic_flag=$lt_lt_prog_compiler_pic
14604 # What is the maximum length of a command?
14605 max_cmd_len=$lt_cv_sys_max_cmd_len
14607 # Does compiler simultaneously support -c and -o options?
14608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14610 # Must we lock files when doing compilation ?
14611 need_locks=$lt_need_locks
14613 # Do we need the lib prefix for modules?
14614 need_lib_prefix=$need_lib_prefix
14616 # Do we need a version for libraries?
14617 need_version=$need_version
14619 # Whether dlopen is supported.
14620 dlopen_support=$enable_dlopen
14622 # Whether dlopen of programs is supported.
14623 dlopen_self=$enable_dlopen_self
14625 # Whether dlopen of statically linked programs is supported.
14626 dlopen_self_static=$enable_dlopen_self_static
14628 # Compiler flag to prevent dynamic linking.
14629 link_static_flag=$lt_lt_prog_compiler_static
14631 # Compiler flag to turn off builtin functions.
14632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14634 # Compiler flag to allow reflexive dlopens.
14635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14637 # Compiler flag to generate shared objects directly from archives.
14638 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14640 # Compiler flag to generate thread-safe objects.
14641 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14643 # Library versioning type.
14644 version_type=$version_type
14646 # Format of library name prefix.
14647 libname_spec=$lt_libname_spec
14649 # List of archive names. First name is the real one, the rest are links.
14650 # The last name is the one that the linker finds with -lNAME.
14651 library_names_spec=$lt_library_names_spec
14653 # The coded name of the library, if different from the real name.
14654 soname_spec=$lt_soname_spec
14656 # Commands used to build and install an old-style archive.
14658 old_archive_cmds=$lt_old_archive_cmds
14659 old_postinstall_cmds=$lt_old_postinstall_cmds
14660 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14662 # Create an old-style archive from a shared archive.
14663 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14665 # Create a temporary old-style archive to link instead of a shared archive.
14666 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14668 # Commands used to build and install a shared archive.
14669 archive_cmds=$lt_archive_cmds
14670 archive_expsym_cmds=$lt_archive_expsym_cmds
14671 postinstall_cmds=$lt_postinstall_cmds
14672 postuninstall_cmds=$lt_postuninstall_cmds
14674 # Commands used to build a loadable module (assumed same as above if empty)
14675 module_cmds=$lt_module_cmds
14676 module_expsym_cmds=$lt_module_expsym_cmds
14678 # Commands to strip libraries.
14679 old_striplib=$lt_old_striplib
14680 striplib=$lt_striplib
14682 # Dependencies to place before the objects being linked to create a
14684 predep_objects=$lt_predep_objects
14686 # Dependencies to place after the objects being linked to create a
14688 postdep_objects=$lt_postdep_objects
14690 # Dependencies to place before the objects being linked to create a
14692 predeps=$lt_predeps
14694 # Dependencies to place after the objects being linked to create a
14696 postdeps=$lt_postdeps
14698 # The library search path used internally by the compiler when linking
14699 # a shared library.
14700 compiler_lib_search_path=$lt_compiler_lib_search_path
14702 # Method to check whether dependent libraries are shared objects.
14703 deplibs_check_method=$lt_deplibs_check_method
14705 # Command to use when deplibs_check_method == file_magic.
14706 file_magic_cmd=$lt_file_magic_cmd
14708 # Flag that allows shared libraries with undefined symbols to be built.
14709 allow_undefined_flag=$lt_allow_undefined_flag
14711 # Flag that forces no undefined symbols.
14712 no_undefined_flag=$lt_no_undefined_flag
14714 # Commands used to finish a libtool library installation in a directory.
14715 finish_cmds=$lt_finish_cmds
14717 # Same as above, but a single script fragment to be evaled but not shown.
14718 finish_eval=$lt_finish_eval
14720 # Take the output of nm and produce a listing of raw symbols and C names.
14721 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14723 # Transform the output of nm in a proper C declaration
14724 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14726 # Transform the output of nm in a C name address pair
14727 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14729 # This is the shared library runtime path variable.
14730 runpath_var=$runpath_var
14732 # This is the shared library path variable.
14733 shlibpath_var=$shlibpath_var
14735 # Is shlibpath searched before the hard-coded library search path?
14736 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14738 # How to hardcode a shared library path into an executable.
14739 hardcode_action=$hardcode_action
14741 # Whether we should hardcode library paths into libraries.
14742 hardcode_into_libs=$hardcode_into_libs
14744 # Flag to hardcode \$libdir into a binary during linking.
14745 # This must work even if \$libdir does not exist.
14746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14748 # If ld is used when linking, flag to hardcode \$libdir into
14749 # a binary during linking. This must work even if \$libdir does
14751 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14753 # Whether we need a single -rpath flag with a separated argument.
14754 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14756 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14757 # resulting binary.
14758 hardcode_direct=$hardcode_direct
14760 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14761 # resulting binary.
14762 hardcode_minus_L=$hardcode_minus_L
14764 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14765 # the resulting binary.
14766 hardcode_shlibpath_var=$hardcode_shlibpath_var
14768 # Set to yes if building a shared library automatically hardcodes DIR into the library
14769 # and all subsequent libraries and executables linked against it.
14770 hardcode_automatic=$hardcode_automatic
14772 # Variables whose values should be saved in libtool wrapper scripts and
14773 # restored at relink time.
14774 variables_saved_for_relink="$variables_saved_for_relink"
14776 # Whether libtool must link a program against all its dependency libraries.
14777 link_all_deplibs=$link_all_deplibs
14779 # Compile-time system search path for libraries
14780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14782 # Run-time system search path for libraries
14783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14785 # Fix the shell variable \$srcfile for the compiler.
14786 fix_srcfile_path="$fix_srcfile_path"
14788 # Set to yes if exported symbols are required.
14789 always_export_symbols=$always_export_symbols
14791 # The commands to list exported symbols.
14792 export_symbols_cmds=$lt_export_symbols_cmds
14794 # The commands to extract the exported symbol list from a shared archive.
14795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14797 # Symbols that should not be listed in the preloaded symbols.
14798 exclude_expsyms=$lt_exclude_expsyms
14800 # Symbols that must always be exported.
14801 include_expsyms=$lt_include_expsyms
14803 # ### END LIBTOOL CONFIG
14810 cat <<\EOF >> "$cfgfile"
14812 # AIX sometimes has problems with the GCC collect2 program. For some
14813 # reason, if we set the COLLECT_NAMES environment variable, the problems
14814 # vanish in a puff of smoke.
14815 if test "X${COLLECT_NAMES+set}" != Xset; then
14817 export COLLECT_NAMES
14823 # We use sed instead of cat because bash on DJGPP gets confused if
14824 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14825 # text mode, it properly converts lines to CR/LF. This bash problem
14826 # is reportedly fixed, but why not run on old versions too?
14827 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14829 mv -f "$cfgfile" "$ofile" || \
14830 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14834 # If there is no Makefile yet, we rely on a make rule to execute
14835 # `config.status --recheck' to rerun these tests and create the
14836 # libtool script then.
14837 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14838 if test -f "$ltmain_in"; then
14839 test -f Makefile && make "$ltmain"
14845 ac_cpp='$CPP $CPPFLAGS'
14846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14853 # Check whether --with-tags or --without-tags was given.
14854 if test "${with_tags+set}" = set; then
14855 withval="$with_tags"
14856 tagnames="$withval"
14859 if test -f "$ltmain" && test -n "$tagnames"; then
14860 if test ! -f "${ofile}"; then
14861 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14862 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14865 if test -z "$LTCC"; then
14866 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14867 if test -z "$LTCC"; then
14868 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14869 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14872 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14876 # Extract list of available tagged configurations in $ofile.
14877 # Note that this assumes the entire list is on one line.
14878 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14881 for tagname in $tagnames; do
14883 # Check whether tagname contains only valid characters
14884 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14886 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14887 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14888 { (exit 1); exit 1; }; }
14892 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14894 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14895 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14896 { (exit 1); exit 1; }; }
14899 # Update the list of available tags.
14900 if test -n "$tagname"; then
14901 echo appending configuration tag "$tagname" to $ofile
14905 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14906 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14907 (test "X$CXX" != "Xg++"))) ; then
14909 ac_cpp='$CXXCPP $CPPFLAGS'
14910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14917 archive_cmds_need_lc_CXX=no
14918 allow_undefined_flag_CXX=
14919 always_export_symbols_CXX=no
14920 archive_expsym_cmds_CXX=
14921 export_dynamic_flag_spec_CXX=
14922 hardcode_direct_CXX=no
14923 hardcode_libdir_flag_spec_CXX=
14924 hardcode_libdir_flag_spec_ld_CXX=
14925 hardcode_libdir_separator_CXX=
14926 hardcode_minus_L_CXX=no
14927 hardcode_automatic_CXX=no
14929 module_expsym_cmds_CXX=
14930 link_all_deplibs_CXX=unknown
14931 old_archive_cmds_CXX=$old_archive_cmds
14932 no_undefined_flag_CXX=
14933 whole_archive_flag_spec_CXX=
14934 enable_shared_with_static_runtimes_CXX=no
14936 # Dependencies to place before and after the object being linked:
14937 predep_objects_CXX=
14938 postdep_objects_CXX=
14941 compiler_lib_search_path_CXX=
14943 # Source file extension for C++ test sources.
14946 # Object file extension for compiled C++ test sources.
14950 # Code to be used in simple compile tests
14951 lt_simple_compile_test_code="int some_variable = 0;\n"
14953 # Code to be used in simple link tests
14954 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14956 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14958 # If no C compiler was specified, use CC.
14961 # Allow CC to be a program name with arguments.
14965 # Allow CC to be a program name with arguments.
14970 lt_save_with_gnu_ld=$with_gnu_ld
14971 lt_save_path_LD=$lt_cv_path_LD
14972 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14973 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14975 unset lt_cv_prog_gnu_ld
14977 if test -n "${lt_cv_path_LDCXX+set}"; then
14978 lt_cv_path_LD=$lt_cv_path_LDCXX
14980 unset lt_cv_path_LD
14982 test -z "${LDCXX+set}" || LD=$LDCXX
14986 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14988 # We don't want -fno-exception wen compiling C++ code, so set the
14989 # no_builtin_flag separately
14990 if test "$GXX" = yes; then
14991 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14993 lt_prog_compiler_no_builtin_flag_CXX=
14996 if test "$GXX" = yes; then
14997 # Set up default GNU C++ configuration
15000 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15001 if test "${with_gnu_ld+set}" = set; then
15002 withval="$with_gnu_ld"
15003 test "$withval" = no || with_gnu_ld=yes
15008 if test "$GCC" = yes; then
15009 # Check if gcc -print-prog-name=ld gives a path.
15010 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15011 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15014 # gcc leaves a trailing carriage return which upsets mingw
15015 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15017 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15020 # Accept absolute paths.
15022 re_direlt='/[^/][^/]*/\.\./'
15023 # Canonicalize the pathname of ld
15024 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15025 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15026 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15028 test -z "$LD" && LD="$ac_prog"
15031 # If it fails, then pretend we aren't using GCC.
15035 # If it is relative, then search for the first ld in PATH.
15036 with_gnu_ld=unknown
15039 elif test "$with_gnu_ld" = yes; then
15040 echo "$as_me:$LINENO: checking for GNU ld" >&5
15041 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15043 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15044 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15046 if test "${lt_cv_path_LD+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 if test -z "$LD"; then
15050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15051 for ac_dir in $PATH; do
15053 test -z "$ac_dir" && ac_dir=.
15054 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15055 lt_cv_path_LD="$ac_dir/$ac_prog"
15056 # Check to see if the program is GNU ld. I'd rather use --version,
15057 # but apparently some GNU ld's only accept -v.
15058 # Break only if it was the GNU/non-GNU ld that we prefer.
15059 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15060 *GNU* | *'with BFD'*)
15061 test "$with_gnu_ld" != no && break
15064 test "$with_gnu_ld" != yes && break
15071 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15075 LD="$lt_cv_path_LD"
15076 if test -n "$LD"; then
15077 echo "$as_me:$LINENO: result: $LD" >&5
15078 echo "${ECHO_T}$LD" >&6
15080 echo "$as_me:$LINENO: result: no" >&5
15081 echo "${ECHO_T}no" >&6
15083 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15084 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15085 { (exit 1); exit 1; }; }
15086 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15087 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15088 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15092 case `$LD -v 2>&1 </dev/null` in
15093 *GNU* | *'with BFD'*)
15094 lt_cv_prog_gnu_ld=yes
15097 lt_cv_prog_gnu_ld=no
15101 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15102 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15103 with_gnu_ld=$lt_cv_prog_gnu_ld
15107 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15108 # archiving commands below assume that GNU ld is being used.
15109 if test "$with_gnu_ld" = yes; then
15110 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111 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'
15113 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15116 # If archive_cmds runs LD, not CC, wlarc should be empty
15117 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15118 # investigate it a little bit more. (MM)
15121 # ancient GNU ld didn't support --whole-archive et. al.
15122 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15123 grep 'no-whole-archive' > /dev/null; then
15124 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15126 whole_archive_flag_spec_CXX=
15132 # A generic and very simple default shared library creation
15133 # command for GNU C++ for the case where it uses the native
15134 # linker, instead of GNU ld. If possible, this setting should
15135 # overridden to take advantage of the native linker features on
15136 # the platform it is being used on.
15137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15140 # Commands to make compiler produce verbose output that lists
15141 # what "hidden" libraries, object files and flags are used when
15142 # linking a shared library.
15143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15151 # PORTME: fill in a description of your system's C++ link characteristics
15152 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15153 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15157 # FIXME: insert proper C++ library support
15161 if test "$host_cpu" = ia64; then
15162 # On IA64, the linker does run time linking by default, so we don't
15163 # have to do anything special.
15164 aix_use_runtimelinking=no
15165 exp_sym_flag='-Bexport'
15168 aix_use_runtimelinking=no
15170 # Test if we are trying to use run time linking or normal
15171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15172 # need to do runtime linking.
15173 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15174 for ld_flag in $LDFLAGS; do
15177 aix_use_runtimelinking=yes
15184 exp_sym_flag='-bexport'
15185 no_entry_flag='-bnoentry'
15188 # When large executables or shared objects are built, AIX ld can
15189 # have problems creating the table of contents. If linking a library
15190 # or program results in "error TOC overflow" add -mminimal-toc to
15191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15194 archive_cmds_CXX=''
15195 hardcode_direct_CXX=yes
15196 hardcode_libdir_separator_CXX=':'
15197 link_all_deplibs_CXX=yes
15199 if test "$GXX" = yes; then
15200 case $host_os in aix4.012|aix4.012.*)
15201 # We only want to do this on AIX 4.2 and lower, the check
15202 # below for broken collect2 doesn't work under 4.3+
15203 collect2name=`${CC} -print-prog-name=collect2`
15204 if test -f "$collect2name" && \
15205 strings "$collect2name" | grep resolve_lib_name >/dev/null
15207 # We have reworked collect2
15208 hardcode_direct_CXX=yes
15210 # We have old collect2
15211 hardcode_direct_CXX=unsupported
15212 # It fails to find uninstalled libraries when the uninstalled
15213 # path is not listed in the libpath. Setting hardcode_minus_L
15214 # to unsupported forces relinking
15215 hardcode_minus_L_CXX=yes
15216 hardcode_libdir_flag_spec_CXX='-L$libdir'
15217 hardcode_libdir_separator_CXX=
15220 shared_flag='-shared'
15223 if test "$host_cpu" = ia64; then
15224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15225 # chokes on -Wl,-G. The following line is correct:
15228 if test "$aix_use_runtimelinking" = yes; then
15229 shared_flag='${wl}-G'
15231 shared_flag='${wl}-bM:SRE'
15236 # It seems that -bexpall does not export symbols beginning with
15237 # underscore (_), so it is better to generate a list of symbols to export.
15238 always_export_symbols_CXX=yes
15239 if test "$aix_use_runtimelinking" = yes; then
15240 # Warning - without using the other runtime loading flags (-brtl),
15241 # -berok will link without error, but may produce a broken library.
15242 allow_undefined_flag_CXX='-berok'
15243 # Determine the default libpath from the value encoded in an empty executable.
15244 cat >conftest.$ac_ext <<_ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15259 rm -f conftest.$ac_objext conftest$ac_exeext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15261 (eval $ac_link) 2>conftest.er1
15263 grep -v '^ *+' conftest.er1 >conftest.err
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -z "$ac_cxx_werror_flag"
15269 || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest$ac_exeext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15284 # Check for a 64-bit object if we didn't find anything.
15285 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; }
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15292 rm -f conftest.err conftest.$ac_objext \
15293 conftest$ac_exeext conftest.$ac_ext
15294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15298 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"
15300 if test "$host_cpu" = ia64; then
15301 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15302 allow_undefined_flag_CXX="-z nodefs"
15303 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"
15305 # Determine the default libpath from the value encoded in an empty executable.
15306 cat >conftest.$ac_ext <<_ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15321 rm -f conftest.$ac_objext conftest$ac_exeext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15323 (eval $ac_link) 2>conftest.er1
15325 grep -v '^ *+' conftest.er1 >conftest.err
15327 cat conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
15330 { ac_try='test -z "$ac_cxx_werror_flag"
15331 || test ! -s conftest.err'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest$ac_exeext'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15346 # Check for a 64-bit object if we didn't find anything.
15347 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; }
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15354 rm -f conftest.err conftest.$ac_objext \
15355 conftest$ac_exeext conftest.$ac_ext
15356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15358 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15359 # Warning - without using the other run time loading flags,
15360 # -berok will link without error, but may produce a broken library.
15361 no_undefined_flag_CXX=' ${wl}-bernotok'
15362 allow_undefined_flag_CXX=' ${wl}-berok'
15363 # -bexpall does not export symbols beginning with underscore (_)
15364 always_export_symbols_CXX=yes
15365 # Exported symbols can be pulled into shared objects from archives
15366 whole_archive_flag_spec_CXX=' '
15367 archive_cmds_need_lc_CXX=yes
15368 # This is similar to how AIX traditionally builds it's shared libraries.
15369 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'
15374 case $cc_basename in
15376 # FIXME: insert proper C++ library support
15383 cygwin* | mingw* | pw32*)
15384 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15385 # as there is no search path for DLLs.
15386 hardcode_libdir_flag_spec_CXX='-L$libdir'
15387 allow_undefined_flag_CXX=unsupported
15388 always_export_symbols_CXX=no
15389 enable_shared_with_static_runtimes_CXX=yes
15391 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15392 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'
15393 # If the export-symbols file already is a .def file (1st line
15394 # is EXPORTS), use it as is; otherwise, prepend...
15395 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15396 cp $export_symbols $output_objdir/$soname.def;
15398 echo EXPORTS > $output_objdir/$soname.def;
15399 cat $export_symbols >> $output_objdir/$soname.def;
15401 $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'
15406 darwin* | rhapsody*)
15408 rhapsody* | darwin1.[012])
15409 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15412 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15413 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15415 case ${MACOSX_DEPLOYMENT_TARGET} in
15417 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15420 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15426 archive_cmds_need_lc_CXX=no
15427 hardcode_direct_CXX=no
15428 hardcode_automatic_CXX=yes
15429 hardcode_shlibpath_var_CXX=unsupported
15430 whole_archive_flag_spec_CXX=''
15431 link_all_deplibs_CXX=yes
15433 if test "$GXX" = yes ; then
15434 lt_int_apple_cc_single_mod=no
15435 output_verbose_link_cmd='echo'
15436 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15437 lt_int_apple_cc_single_mod=yes
15439 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15440 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15442 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'
15444 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15446 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15447 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}'
15449 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}'
15451 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}'
15453 case "$cc_basename" in
15455 output_verbose_link_cmd='echo'
15456 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'
15457 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15458 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15459 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}'
15460 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}'
15470 case $cc_basename in
15472 # FIXME: insert proper C++ library support
15476 # Green Hills C++ Compiler
15477 # FIXME: insert proper C++ library support
15481 # FIXME: insert proper C++ library support
15487 # C++ shared libraries reported to be fairly broken before switch to ELF
15491 archive_cmds_need_lc_CXX=no
15493 freebsd* | kfreebsd*-gnu)
15494 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15501 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15502 hardcode_libdir_separator_CXX=:
15503 export_dynamic_flag_spec_CXX='${wl}-E'
15504 hardcode_direct_CXX=yes
15505 hardcode_minus_L_CXX=yes # Not in the search PATH,
15506 # but as the default
15507 # location of the library.
15509 case $cc_basename in
15511 # FIXME: insert proper C++ library support
15515 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'
15516 # Commands to make compiler produce verbose output that lists
15517 # what "hidden" libraries, object files and flags are used when
15518 # linking a shared library.
15520 # There doesn't appear to be a way to prevent this compiler from
15521 # explicitly linking system object files so we need to strip them
15522 # from the output so that they don't get included in the library
15524 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'
15527 if test "$GXX" = yes; then
15528 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'
15530 # FIXME: insert proper C++ library support
15537 if test $with_gnu_ld = no; then
15538 case "$host_cpu" in
15540 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15541 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15542 hardcode_libdir_separator_CXX=:
15545 hardcode_libdir_flag_spec_CXX='-L$libdir'
15548 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15549 hardcode_libdir_separator_CXX=:
15550 export_dynamic_flag_spec_CXX='${wl}-E'
15554 case "$host_cpu" in
15556 hardcode_direct_CXX=no
15557 hardcode_shlibpath_var_CXX=no
15560 hardcode_direct_CXX=no
15561 hardcode_shlibpath_var_CXX=no
15562 hardcode_minus_L_CXX=yes # Not in the search PATH,
15563 # but as the default
15564 # location of the library.
15567 hardcode_direct_CXX=yes
15568 hardcode_minus_L_CXX=yes # Not in the search PATH,
15569 # but as the default
15570 # location of the library.
15574 case $cc_basename in
15576 # FIXME: insert proper C++ library support
15580 case "$host_cpu" in
15582 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15585 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15588 # Commands to make compiler produce verbose output that lists
15589 # what "hidden" libraries, object files and flags are used when
15590 # linking a shared library.
15592 # There doesn't appear to be a way to prevent this compiler from
15593 # explicitly linking system object files so we need to strip them
15594 # from the output so that they don't get included in the library
15596 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'
15599 if test "$GXX" = yes; then
15600 if test $with_gnu_ld = no; then
15601 case "$host_cpu" in
15603 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15606 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'
15611 # FIXME: insert proper C++ library support
15618 case $cc_basename in
15621 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'
15623 # Archives containing C++ object files must be created using
15624 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15625 # necessary to make sure instantiated templates are included
15627 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15630 if test "$GXX" = yes; then
15631 if test "$with_gnu_ld" = no; then
15632 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'
15634 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'
15637 link_all_deplibs_CXX=yes
15640 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15641 hardcode_libdir_separator_CXX=:
15644 case $cc_basename in
15646 # Kuck and Associates, Inc. (KAI) C++ Compiler
15648 # KCC will only create a shared library if the output file
15649 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15650 # to its proper name (with version) after linking.
15651 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'
15652 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'
15653 # Commands to make compiler produce verbose output that lists
15654 # what "hidden" libraries, object files and flags are used when
15655 # linking a shared library.
15657 # There doesn't appear to be a way to prevent this compiler from
15658 # explicitly linking system object files so we need to strip them
15659 # from the output so that they don't get included in the library
15661 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'
15663 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15664 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15666 # Archives containing C++ object files must be created using
15667 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15668 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15673 # version 8.0 and above of icpc choke on multiply defined symbols
15674 # if we add $predep_objects and $postdep_objects, however 7.1 and
15675 # earlier do not add the objects themselves.
15676 case `$CC -V 2>&1` in
15678 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679 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'
15681 *) # Version 8.0 or newer
15682 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15683 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15686 archive_cmds_need_lc_CXX=no
15687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15689 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15693 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15694 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'
15696 runpath_var=LD_RUN_PATH
15697 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15698 hardcode_libdir_separator_CXX=:
15700 # Commands to make compiler produce verbose output that lists
15701 # what "hidden" libraries, object files and flags are used when
15702 # linking a shared library.
15704 # There doesn't appear to be a way to prevent this compiler from
15705 # explicitly linking system object files so we need to strip them
15706 # from the output so that they don't get included in the library
15708 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'
15713 # FIXME: insert proper C++ library support
15717 # FIXME: insert proper C++ library support
15721 case $cc_basename in
15723 # FIXME: insert proper C++ library support
15727 # FIXME: insert proper C++ library support
15733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15734 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15736 hardcode_libdir_flag_spec_CXX='-R$libdir'
15737 hardcode_direct_CXX=yes
15738 hardcode_shlibpath_var_CXX=no
15740 # Workaround some broken pre-1.5 toolchains
15741 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15744 # C++ shared libraries are fairly broken
15748 hardcode_direct_CXX=yes
15749 hardcode_shlibpath_var_CXX=no
15750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15751 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15753 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15754 export_dynamic_flag_spec_CXX='${wl}-E'
15755 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15757 output_verbose_link_cmd='echo'
15760 case $cc_basename in
15762 # Kuck and Associates, Inc. (KAI) C++ Compiler
15764 # KCC will only create a shared library if the output file
15765 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15766 # to its proper name (with version) after linking.
15767 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'
15769 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15770 hardcode_libdir_separator_CXX=:
15772 # Archives containing C++ object files must be created using
15773 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15774 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15778 # Rational C++ 2.4.1
15779 # FIXME: insert proper C++ library support
15783 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15784 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'
15786 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15787 hardcode_libdir_separator_CXX=:
15789 # Commands to make compiler produce verbose output that lists
15790 # what "hidden" libraries, object files and flags are used when
15791 # linking a shared library.
15793 # There doesn't appear to be a way to prevent this compiler from
15794 # explicitly linking system object files so we need to strip them
15795 # from the output so that they don't get included in the library
15797 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'
15800 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15801 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15802 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'
15804 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15805 hardcode_libdir_separator_CXX=:
15807 # Commands to make compiler produce verbose output that lists
15808 # what "hidden" libraries, object files and flags are used when
15809 # linking a shared library.
15810 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15813 # FIXME: insert proper C++ library support
15820 case $cc_basename in
15822 # Kuck and Associates, Inc. (KAI) C++ Compiler
15824 # KCC will only create a shared library if the output file
15825 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15826 # to its proper name (with version) after linking.
15827 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'
15829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15830 hardcode_libdir_separator_CXX=:
15832 # Archives containing C++ object files must be created using
15833 # the KAI C++ compiler.
15834 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15837 # Rational C++ 2.4.1
15838 # FIXME: insert proper C++ library support
15842 allow_undefined_flag_CXX=' -expect_unresolved \*'
15843 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'
15844 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15845 echo "-hidden">> $lib.exp~
15846 $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~
15849 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15850 hardcode_libdir_separator_CXX=:
15852 # Commands to make compiler produce verbose output that lists
15853 # what "hidden" libraries, object files and flags are used when
15854 # linking a shared library.
15856 # There doesn't appear to be a way to prevent this compiler from
15857 # explicitly linking system object files so we need to strip them
15858 # from the output so that they don't get included in the library
15860 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'
15863 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15864 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15865 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'
15867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15868 hardcode_libdir_separator_CXX=:
15870 # Commands to make compiler produce verbose output that lists
15871 # what "hidden" libraries, object files and flags are used when
15872 # linking a shared library.
15873 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15876 # FIXME: insert proper C++ library support
15883 # FIXME: insert proper C++ library support
15887 archive_cmds_need_lc_CXX=no
15888 case $cc_basename in
15890 # FIXME: insert proper C++ library support
15894 # FIXME: insert proper C++ library support
15900 case $cc_basename in
15903 # FIXME: insert proper C++ library support
15908 # FIXME: insert proper C++ library support
15912 # FIXME: insert proper C++ library support
15918 case $cc_basename in
15920 # Sun C++ 4.2, 5.x and Centerline C++
15921 no_undefined_flag_CXX=' -zdefs'
15922 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15923 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15924 $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'
15926 hardcode_libdir_flag_spec_CXX='-R$libdir'
15927 hardcode_shlibpath_var_CXX=no
15929 solaris2.0-5 | solaris2.0-5.*) ;;
15931 # The C++ compiler is used as linker so we must use $wl
15932 # flag to pass the commands to the underlying system
15934 # Supported since Solaris 2.6 (maybe 2.5.1?)
15935 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15938 link_all_deplibs_CXX=yes
15940 # Commands to make compiler produce verbose output that lists
15941 # what "hidden" libraries, object files and flags are used when
15942 # linking a shared library.
15944 # There doesn't appear to be a way to prevent this compiler from
15945 # explicitly linking system object files so we need to strip them
15946 # from the output so that they don't get included in the library
15948 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'
15950 # Archives containing C++ object files must be created using
15951 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15952 # necessary to make sure instantiated templates are included
15954 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15957 # Green Hills C++ Compiler
15958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15960 # The C++ compiler must be used to create the archive.
15961 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15964 # GNU C++ compiler with Solaris linker
15965 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15966 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15967 if $CC --version | grep -v '^2\.7' > /dev/null; then
15968 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15969 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15970 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15972 # Commands to make compiler produce verbose output that lists
15973 # what "hidden" libraries, object files and flags are used when
15974 # linking a shared library.
15975 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15977 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15979 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15980 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15981 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15983 # Commands to make compiler produce verbose output that lists
15984 # what "hidden" libraries, object files and flags are used when
15985 # linking a shared library.
15986 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15989 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15994 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15995 archive_cmds_need_lc_CXX=no
15998 case $cc_basename in
16000 # NonStop-UX NCC 3.20
16001 # FIXME: insert proper C++ library support
16005 # FIXME: insert proper C++ library support
16011 # FIXME: insert proper C++ library support
16015 # FIXME: insert proper C++ library support
16019 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16020 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16021 test "$ld_shlibs_CXX" = no && can_build_shared=no
16027 cat > conftest.$ac_ext <<EOF
16031 Foo (void) { a = 0; }
16037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038 (eval $ac_compile) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; then
16042 # Parse the compiler output and extract the necessary
16043 # objects, libraries and library flags.
16045 # Sentinel used to keep track of whether or not we are before
16046 # the conftest object file.
16047 pre_test_object_deps_done=no
16049 # The `*' in the case matches for architectures that use `case' in
16050 # $output_verbose_cmd can trigger glob expansion during the loop
16051 # eval without this substitution.
16052 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16054 for p in `eval $output_verbose_link_cmd`; do
16058 # Some compilers place space between "-{L,R}" and the path.
16059 # Remove the space.
16060 if test $p = "-L" \
16061 || test $p = "-R"; then
16068 if test "$pre_test_object_deps_done" = no; then
16071 # Internal compiler library paths should come after those
16072 # provided the user. The postdeps already come after the
16073 # user supplied libs so there is no need to process them.
16074 if test -z "$compiler_lib_search_path_CXX"; then
16075 compiler_lib_search_path_CXX="${prev}${p}"
16077 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16080 # The "-l" case would never come before the object being
16081 # linked, so don't bother handling this case.
16084 if test -z "$postdeps_CXX"; then
16085 postdeps_CXX="${prev}${p}"
16087 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16093 # This assumes that the test object file only shows up
16094 # once in the compiler output.
16095 if test "$p" = "conftest.$objext"; then
16096 pre_test_object_deps_done=yes
16100 if test "$pre_test_object_deps_done" = no; then
16101 if test -z "$predep_objects_CXX"; then
16102 predep_objects_CXX="$p"
16104 predep_objects_CXX="$predep_objects_CXX $p"
16107 if test -z "$postdep_objects_CXX"; then
16108 postdep_objects_CXX="$p"
16110 postdep_objects_CXX="$postdep_objects_CXX $p"
16115 *) ;; # Ignore the rest.
16123 echo "libtool.m4: error: problem compiling CXX test program"
16126 $rm -f confest.$objext
16128 case " $postdeps_CXX " in
16129 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16132 lt_prog_compiler_wl_CXX=
16133 lt_prog_compiler_pic_CXX=
16134 lt_prog_compiler_static_CXX=
16136 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16137 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16139 # C++ specific cases for pic, static, wl, etc.
16140 if test "$GXX" = yes; then
16141 lt_prog_compiler_wl_CXX='-Wl,'
16142 lt_prog_compiler_static_CXX='-static'
16146 # All AIX code is PIC.
16147 if test "$host_cpu" = ia64; then
16148 # AIX 5 now supports IA64 processor
16149 lt_prog_compiler_static_CXX='-Bstatic'
16153 # FIXME: we need at least 68020 code to build shared libraries, but
16154 # adding the `-m68020' flag to GCC prevents building anything better,
16156 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16158 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16159 # PIC is the default for these OSes.
16161 mingw* | os2* | pw32*)
16162 # This hack is so that the source file can tell whether it is being
16163 # built for inclusion in a dll (and should export symbols for example).
16164 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16166 darwin* | rhapsody*)
16167 # PIC is the default on this platform
16168 # Common symbols not allowed in MH_DYLIB files
16169 lt_prog_compiler_pic_CXX='-fno-common'
16172 # DJGPP does not support shared libraries at all
16173 lt_prog_compiler_pic_CXX=
16176 if test -d /usr/nec; then
16177 lt_prog_compiler_pic_CXX=-Kconform_pic
16181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16182 # not for PA HP-UX.
16183 case "$host_cpu" in
16187 lt_prog_compiler_pic_CXX='-fPIC'
16192 lt_prog_compiler_pic_CXX='-fPIC'
16198 # All AIX code is PIC.
16199 if test "$host_cpu" = ia64; then
16200 # AIX 5 now supports IA64 processor
16201 lt_prog_compiler_static_CXX='-Bstatic'
16203 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16207 case $cc_basename in
16209 # Green Hills C++ Compiler
16210 # _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"
16215 # PIC is the default on this platform
16216 # Common symbols not allowed in MH_DYLIB files
16217 case "$cc_basename" in
16219 lt_prog_compiler_pic_CXX='-qnocommon'
16220 lt_prog_compiler_wl_CXX='-Wl,'
16225 case $cc_basename in
16227 lt_prog_compiler_pic_CXX='-KPIC'
16230 # Green Hills C++ Compiler
16231 lt_prog_compiler_pic_CXX='-pic'
16237 freebsd* | kfreebsd*-gnu)
16238 # FreeBSD uses GNU C++
16240 hpux9* | hpux10* | hpux11*)
16241 case $cc_basename in
16243 lt_prog_compiler_wl_CXX='-Wl,'
16244 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16245 if test "$host_cpu" != ia64; then
16246 lt_prog_compiler_pic_CXX='+Z'
16250 lt_prog_compiler_wl_CXX='-Wl,'
16251 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16252 case "$host_cpu" in
16257 lt_prog_compiler_pic_CXX='+Z'
16265 irix5* | irix6* | nonstopux*)
16266 case $cc_basename in
16268 lt_prog_compiler_wl_CXX='-Wl,'
16269 lt_prog_compiler_static_CXX='-non_shared'
16270 # CC pic flag -KPIC is the default.
16277 case $cc_basename in
16280 lt_prog_compiler_wl_CXX='--backend -Wl,'
16281 lt_prog_compiler_pic_CXX='-fPIC'
16285 lt_prog_compiler_wl_CXX='-Wl,'
16286 lt_prog_compiler_pic_CXX='-KPIC'
16287 lt_prog_compiler_static_CXX='-static'
16291 # Make sure the PIC flag is empty. It appears that all Alpha
16292 # Linux and Compaq Tru64 Unix objects are PIC.
16293 lt_prog_compiler_pic_CXX=
16294 lt_prog_compiler_static_CXX='-non_shared'
16305 case $cc_basename in
16307 lt_prog_compiler_pic_CXX='-W c,exportall'
16315 osf3* | osf4* | osf5*)
16316 case $cc_basename in
16318 lt_prog_compiler_wl_CXX='--backend -Wl,'
16321 # Rational C++ 2.4.1
16322 lt_prog_compiler_pic_CXX='-pic'
16325 # Digital/Compaq C++
16326 lt_prog_compiler_wl_CXX='-Wl,'
16327 # Make sure the PIC flag is empty. It appears that all Alpha
16328 # Linux and Compaq Tru64 Unix objects are PIC.
16329 lt_prog_compiler_pic_CXX=
16330 lt_prog_compiler_static_CXX='-non_shared'
16339 case $cc_basename in
16341 lt_prog_compiler_pic_CXX='-fPIC'
16348 case $cc_basename in
16350 # Sun C++ 4.2, 5.x and Centerline C++
16351 lt_prog_compiler_pic_CXX='-KPIC'
16352 lt_prog_compiler_static_CXX='-Bstatic'
16353 lt_prog_compiler_wl_CXX='-Qoption ld '
16356 # Green Hills C++ Compiler
16357 lt_prog_compiler_pic_CXX='-PIC'
16364 case $cc_basename in
16367 lt_prog_compiler_pic_CXX='-pic'
16368 lt_prog_compiler_static_CXX='-Bstatic'
16372 lt_prog_compiler_pic_CXX='-pic'
16379 case $cc_basename in
16381 # NonStop-UX NCC 3.20
16382 lt_prog_compiler_pic_CXX='-KPIC'
16393 lt_prog_compiler_can_build_shared_CXX=no
16398 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16399 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16402 # Check to make sure the PIC flag actually works.
16404 if test -n "$lt_prog_compiler_pic_CXX"; then
16406 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16407 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16408 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 lt_prog_compiler_pic_works_CXX=no
16412 ac_outfile=conftest.$ac_objext
16413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16414 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16415 # Insert the option either (1) after the last *FLAGS variable, or
16416 # (2) before a word containing "conftest.", or (3) at the end.
16417 # Note that $ac_compile itself does not contain backslashes and begins
16418 # with a dollar sign (not a hyphen), so the echo should work correctly.
16419 # The option is referenced via a variable to avoid confusing sed.
16420 lt_compile=`echo "$ac_compile" | $SED \
16421 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16423 -e 's:$: $lt_compiler_flag:'`
16424 (eval echo "\"\$as_me:16424: $lt_compile\"" >&5)
16425 (eval "$lt_compile" 2>conftest.err)
16427 cat conftest.err >&5
16428 echo "$as_me:16428: \$? = $ac_status" >&5
16429 if (exit $ac_status) && test -s "$ac_outfile"; then
16430 # The compiler can only warn and ignore the option if not recognized
16431 # So say no if there are warnings
16432 if test ! -s conftest.err; then
16433 lt_prog_compiler_pic_works_CXX=yes
16439 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16440 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16442 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16443 case $lt_prog_compiler_pic_CXX in
16445 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16448 lt_prog_compiler_pic_CXX=
16449 lt_prog_compiler_can_build_shared_CXX=no
16454 # For platforms which do not support PIC, -DPIC is meaningless:
16456 lt_prog_compiler_pic_CXX=
16459 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16463 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16464 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16465 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 lt_cv_prog_compiler_c_o_CXX=no
16469 $rm -r conftest 2>/dev/null
16473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16475 lt_compiler_flag="-o out/conftest2.$ac_objext"
16476 # Insert the option either (1) after the last *FLAGS variable, or
16477 # (2) before a word containing "conftest.", or (3) at the end.
16478 # Note that $ac_compile itself does not contain backslashes and begins
16479 # with a dollar sign (not a hyphen), so the echo should work correctly.
16480 lt_compile=`echo "$ac_compile" | $SED \
16481 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16483 -e 's:$: $lt_compiler_flag:'`
16484 (eval echo "\"\$as_me:16484: $lt_compile\"" >&5)
16485 (eval "$lt_compile" 2>out/conftest.err)
16487 cat out/conftest.err >&5
16488 echo "$as_me:16488: \$? = $ac_status" >&5
16489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16491 # The compiler can only warn and ignore the option if not recognized
16492 # So say no if there are warnings
16493 if test ! -s out/conftest.err; then
16494 lt_cv_prog_compiler_c_o_CXX=yes
16499 # SGI C++ compiler will create directory out/ii_files/ for
16500 # template instantiation
16501 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16502 $rm out/* && rmdir out
16508 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16509 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16512 hard_links="nottested"
16513 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16514 # do not overwrite the value of need_locks provided by the user
16515 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16516 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16521 ln conftest.a conftest.b 2>&5 || hard_links=no
16522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16523 echo "$as_me:$LINENO: result: $hard_links" >&5
16524 echo "${ECHO_T}$hard_links" >&6
16525 if test "$hard_links" = no; then
16526 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16527 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16534 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16535 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16537 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16540 # If we're using GNU nm, then we don't want the "-C" option.
16541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16542 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16543 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'
16545 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'
16549 export_symbols_cmds_CXX="$ltdll_cmds"
16552 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16555 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16559 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16560 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16561 test "$ld_shlibs_CXX" = no && can_build_shared=no
16563 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16564 if test "$GCC" = yes; then
16565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16569 # Do we need to explicitly link libc?
16571 case "x$archive_cmds_need_lc_CXX" in
16573 # Assume -lc should be added
16574 archive_cmds_need_lc_CXX=yes
16576 if test "$enable_shared" = yes && test "$GCC" = yes; then
16577 case $archive_cmds_CXX in
16579 # FIXME: we may have to deal with multi-command sequences.
16582 # Test whether the compiler implicitly links with -lc since on some
16583 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16584 # to ld, don't add -lc before -lgcc.
16585 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16586 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16588 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591 (eval $ac_compile) 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } 2>conftest.err; then
16597 libobjs=conftest.$ac_objext
16599 wl=$lt_prog_compiler_wl_CXX
16605 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16606 allow_undefined_flag_CXX=
16607 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16608 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }
16613 archive_cmds_need_lc_CXX=no
16615 archive_cmds_need_lc_CXX=yes
16617 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16619 cat conftest.err 1>&5
16622 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16623 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16630 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16631 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16632 library_names_spec=
16633 libname_spec='lib$name'
16637 postuninstall_cmds=
16641 shlibpath_overrides_runpath=unknown
16643 dynamic_linker="$host_os ld.so"
16644 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16645 if test "$GCC" = yes; then
16646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16647 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16648 # if the path contains ";" then we assume it to be the separator
16649 # otherwise default to the standard path separator (i.e. ":") - it is
16650 # assumed that no part of a normal pathname contains ";" but that should
16651 # okay in the real world where ";" in dirpaths is itself problematic.
16652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16657 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16659 need_lib_prefix=unknown
16660 hardcode_into_libs=no
16662 # when you set need_version to no, make sure it does not cause -set_version
16663 # flags to be left without arguments
16664 need_version=unknown
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16670 shlibpath_var=LIBPATH
16672 # AIX 3 has no versioning support, so we append a major version to the name.
16673 soname_spec='${libname}${release}${shared_ext}$major'
16680 hardcode_into_libs=yes
16681 if test "$host_cpu" = ia64; then
16682 # AIX 5 supports IA64
16683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16684 shlibpath_var=LD_LIBRARY_PATH
16686 # With GCC up to 2.95.x, collect2 would create an import file
16687 # for dependence libraries. The import file would start with
16688 # the line `#! .'. This would cause the generated library to
16689 # depend on `.', always an invalid library. This was fixed in
16690 # development snapshots of GCC prior to 3.0.
16692 aix4 | aix4.[01] | aix4.[01].*)
16693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16695 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16698 can_build_shared=no
16702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16703 # soname into executable. Probably we can add versioning support to
16704 # collect2, so additional links can be useful in future.
16705 if test "$aix_use_runtimelinking" = yes; then
16706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16707 # instead of lib<name>.a to let people know that these are not
16708 # typical AIX shared libraries.
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711 # We preserve .a as extension for shared libraries through AIX4.2
16712 # and later when we are not doing run time linking.
16713 library_names_spec='${libname}${release}.a $libname.a'
16714 soname_spec='${libname}${release}${shared_ext}$major'
16716 shlibpath_var=LIBPATH
16721 library_names_spec='$libname.ixlibrary $libname.a'
16722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16723 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'
16727 library_names_spec='${libname}${shared_ext}'
16728 dynamic_linker="$host_os ld.so"
16729 shlibpath_var=LIBRARY_PATH
16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736 soname_spec='${libname}${release}${shared_ext}$major'
16737 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16738 shlibpath_var=LD_LIBRARY_PATH
16739 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16740 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16741 # the default ld.so.conf also contains /usr/contrib/lib and
16742 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16743 # libtool to hard-code these into programs
16746 cygwin* | mingw* | pw32*)
16747 version_type=windows
16752 case $GCC,$host_os in
16753 yes,cygwin* | yes,mingw* | yes,pw32*)
16754 library_names_spec='$libname.dll.a'
16755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16756 postinstall_cmds='base_file=`basename \${file}`~
16757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16758 dldir=$destdir/`dirname \$dlpath`~
16759 test -d \$dldir || mkdir -p \$dldir~
16760 $install_prog $dir/$dlname \$dldir/$dlname'
16761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16762 dlpath=$dir/\$dldll~
16764 shlibpath_overrides_runpath=yes
16768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16773 # MinGW DLLs use traditional 'lib' prefix
16774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16776 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16777 # It is most probably a Windows format PATH printed by
16778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16779 # path with ; separators, and with drive letters. We can handle the
16780 # drive letters (cygwin fileutils understands them), so leave them,
16781 # especially as we might pass files found there to a mingw objdump,
16782 # which wouldn't understand a cygwinified path. Ahh.
16783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16789 # pw32 DLLs use 'pw' prefix rather than 'lib'
16790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16799 dynamic_linker='Win32 ld.exe'
16800 # FIXME: first we should search . and the directory the executable is in
16804 darwin* | rhapsody*)
16805 dynamic_linker="$host_os dyld"
16806 version_type=darwin
16809 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16810 soname_spec='${libname}${release}${major}$shared_ext'
16811 shlibpath_overrides_runpath=yes
16812 shlibpath_var=DYLD_LIBRARY_PATH
16813 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16814 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16815 if test "$GCC" = yes; then
16816 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"`
16818 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16820 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16828 soname_spec='${libname}${release}${shared_ext}$major'
16829 shlibpath_var=LD_LIBRARY_PATH
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 shlibpath_var=LD_LIBRARY_PATH
16843 shlibpath_overrides_runpath=no
16844 hardcode_into_libs=yes
16845 dynamic_linker='GNU ld.so'
16849 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16850 version_type=freebsd-$objformat
16851 case $version_type in
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16862 shlibpath_var=LD_LIBRARY_PATH
16865 shlibpath_overrides_runpath=yes
16867 freebsd3.01* | freebsdelf3.01*)
16868 shlibpath_overrides_runpath=yes
16869 hardcode_into_libs=yes
16872 shlibpath_overrides_runpath=no
16873 hardcode_into_libs=yes
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 hardcode_into_libs=yes
16888 hpux9* | hpux10* | hpux11*)
16889 # Give a soname corresponding to the major version so that dld.sl refuses to
16890 # link against other versions.
16894 case "$host_cpu" in
16897 hardcode_into_libs=yes
16898 dynamic_linker="$host_os dld.so"
16899 shlibpath_var=LD_LIBRARY_PATH
16900 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16902 soname_spec='${libname}${release}${shared_ext}$major'
16903 if test "X$HPUX_IA64_MODE" = X32; then
16904 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16906 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16912 hardcode_into_libs=yes
16913 dynamic_linker="$host_os dld.sl"
16914 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16923 dynamic_linker="$host_os dld.sl"
16924 shlibpath_var=SHLIB_PATH
16925 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16930 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16931 postinstall_cmds='chmod 555 $lib'
16934 irix5* | irix6* | nonstopux*)
16936 nonstopux*) version_type=nonstopux ;;
16938 if test "$lt_cv_prog_gnu_ld" = yes; then
16946 soname_spec='${libname}${release}${shared_ext}$major'
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16949 irix5* | nonstopux*)
16950 libsuff= shlibsuff=
16953 case $LD in # libtool.m4 will add one of these switches to LD
16954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16955 libsuff= shlibsuff= libmagic=32-bit;;
16956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16957 libsuff=32 shlibsuff=N32 libmagic=N32;;
16958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16960 *) libsuff= shlibsuff= libmagic=never-match;;
16964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16965 shlibpath_overrides_runpath=no
16966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16968 hardcode_into_libs=yes
16971 # No shared lib support for Linux oldld, aout, or coff.
16972 linux*oldld* | linux*aout* | linux*coff*)
16976 # This must be Linux ELF.
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16984 shlibpath_var=LD_LIBRARY_PATH
16985 shlibpath_overrides_runpath=no
16986 # This implies no fast_install, which is unacceptable.
16987 # Some rework will be needed to allow for fast_install
16988 # before this can be enabled.
16989 hardcode_into_libs=yes
16991 # Append ld.so.conf contents to the search path
16992 if test -f /etc/ld.so.conf; then
16993 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16994 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16997 # We used to test for /lib/ld.so.1 and disable shared libraries on
16998 # powerpc, because MkLinux only supported shared libraries with the
16999 # GNU dynamic linker. Since this was broken with cross compilers,
17000 # most powerpc-linux boxes support dynamic linking these days and
17001 # people can always --disable-shared, the test was removed, and we
17002 # assume the GNU/Linux dynamic linker is in use.
17003 dynamic_linker='GNU/Linux ld.so'
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 shlibpath_overrides_runpath=no
17014 hardcode_into_libs=yes
17015 dynamic_linker='GNU ld.so'
17022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17025 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
17031 shlibpath_var=LD_LIBRARY_PATH
17032 shlibpath_overrides_runpath=yes
17033 hardcode_into_libs=yes
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039 shlibpath_var=LD_LIBRARY_PATH
17040 shlibpath_overrides_runpath=yes
17047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048 soname_spec='${libname}${release}${shared_ext}$major'
17049 shlibpath_var=LD_LIBRARY_PATH
17050 shlibpath_overrides_runpath=yes
17057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17059 shlibpath_var=LD_LIBRARY_PATH
17060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17062 openbsd2.[89] | openbsd2.[89].*)
17063 shlibpath_overrides_runpath=no
17066 shlibpath_overrides_runpath=yes
17070 shlibpath_overrides_runpath=yes
17075 libname_spec='$name'
17078 library_names_spec='$libname${shared_ext} $libname.a'
17079 dynamic_linker='OS/2 ld.exe'
17080 shlibpath_var=LIBPATH
17083 osf3* | osf4* | osf5*)
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17091 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 shlibpath_var=LD_LIBRARY_PATH
17105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17106 soname_spec='${libname}${release}${shared_ext}$major'
17107 shlibpath_var=LD_LIBRARY_PATH
17108 shlibpath_overrides_runpath=yes
17109 hardcode_into_libs=yes
17110 # ldd complains unless libraries are executable
17111 postinstall_cmds='chmod +x $lib'
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17117 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17118 shlibpath_var=LD_LIBRARY_PATH
17119 shlibpath_overrides_runpath=yes
17120 if test "$with_gnu_ld" = yes; then
17126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129 soname_spec='${libname}${release}${shared_ext}$major'
17130 shlibpath_var=LD_LIBRARY_PATH
17131 case $host_vendor in
17133 shlibpath_overrides_runpath=no
17135 export_dynamic_flag_spec='${wl}-Blargedynsym'
17136 runpath_var=LD_RUN_PATH
17144 shlibpath_overrides_runpath=no
17145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17151 if test -d /usr/nec ;then
17153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17154 soname_spec='$libname${shared_ext}.$major'
17155 shlibpath_var=LD_LIBRARY_PATH
17161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17162 soname_spec='${libname}${release}${shared_ext}$major'
17163 shlibpath_var=LD_LIBRARY_PATH
17170 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17171 echo "${ECHO_T}$dynamic_linker" >&6
17172 test "$dynamic_linker" = no && can_build_shared=no
17174 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17175 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17176 hardcode_action_CXX=
17177 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17178 test -n "$runpath_var_CXX" || \
17179 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17181 # We can hardcode non-existant directories.
17182 if test "$hardcode_direct_CXX" != no &&
17183 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17184 # have to relink, otherwise we might link with an installed library
17185 # when we should be linking with a yet-to-be-installed one
17186 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17187 test "$hardcode_minus_L_CXX" != no; then
17188 # Linking always hardcodes the temporary library directory.
17189 hardcode_action_CXX=relink
17191 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17192 hardcode_action_CXX=immediate
17195 # We cannot hardcode anything, or else we can only hardcode existing
17197 hardcode_action_CXX=unsupported
17199 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17200 echo "${ECHO_T}$hardcode_action_CXX" >&6
17202 if test "$hardcode_action_CXX" = relink; then
17203 # Fast installation is not supported
17204 enable_fast_install=no
17205 elif test "$shlibpath_overrides_runpath" = yes ||
17206 test "$enable_shared" = no; then
17207 # Fast installation is not necessary
17208 enable_fast_install=needless
17213 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17214 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17215 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17216 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17217 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17218 echo "$as_me:$LINENO: result: yes" >&5
17219 echo "${ECHO_T}yes" >&6
17221 # FIXME - insert some real tests, host_os isn't really good enough
17224 if test -n "$STRIP" ; then
17225 striplib="$STRIP -x"
17226 echo "$as_me:$LINENO: result: yes" >&5
17227 echo "${ECHO_T}yes" >&6
17229 echo "$as_me:$LINENO: result: no" >&5
17230 echo "${ECHO_T}no" >&6
17234 echo "$as_me:$LINENO: result: no" >&5
17235 echo "${ECHO_T}no" >&6
17240 if test "x$enable_dlopen" != xyes; then
17241 enable_dlopen=unknown
17242 enable_dlopen_self=unknown
17243 enable_dlopen_self_static=unknown
17250 lt_cv_dlopen="load_add_on"
17252 lt_cv_dlopen_self=yes
17256 lt_cv_dlopen="LoadLibrary"
17261 lt_cv_dlopen="dlopen"
17266 # if libdl is installed we need to link against it
17267 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17268 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17269 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 ac_check_lib_save_LIBS=$LIBS
17274 cat >conftest.$ac_ext <<_ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17281 /* Override any gcc2 internal prototype to avoid an error. */
17285 /* We use char because int might match the return type of a gcc2
17286 builtin and then its argument prototype would still apply. */
17296 rm -f conftest.$ac_objext conftest$ac_exeext
17297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>conftest.er1
17300 grep -v '^ *+' conftest.er1 >conftest.err
17302 cat conftest.err >&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try='test -z "$ac_cxx_werror_flag"
17306 || test ! -s conftest.err'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; } &&
17312 { ac_try='test -s conftest$ac_exeext'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; }; then
17318 ac_cv_lib_dl_dlopen=yes
17320 echo "$as_me: failed program was:" >&5
17321 sed 's/^/| /' conftest.$ac_ext >&5
17323 ac_cv_lib_dl_dlopen=no
17325 rm -f conftest.err conftest.$ac_objext \
17326 conftest$ac_exeext conftest.$ac_ext
17327 LIBS=$ac_check_lib_save_LIBS
17329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17330 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17331 if test $ac_cv_lib_dl_dlopen = yes; then
17332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17335 lt_cv_dlopen="dyld"
17337 lt_cv_dlopen_self=yes
17344 echo "$as_me:$LINENO: checking for shl_load" >&5
17345 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17346 if test "${ac_cv_func_shl_load+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 cat >conftest.$ac_ext <<_ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17357 #define shl_load innocuous_shl_load
17359 /* System header to define __stub macros and hopefully few prototypes,
17360 which can conflict with char shl_load (); below.
17361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17362 <limits.h> exists even on freestanding compilers. */
17365 # include <limits.h>
17367 # include <assert.h>
17372 /* Override any gcc2 internal prototype to avoid an error. */
17377 /* We use char because int might match the return type of a gcc2
17378 builtin and then its argument prototype would still apply. */
17380 /* The GNU C library defines this for functions which it implements
17381 to always fail with ENOSYS. Some functions are actually named
17382 something starting with __ and the normal name is an alias. */
17383 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17386 char (*f) () = shl_load;
17395 return f != shl_load;
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17402 (eval $ac_link) 2>conftest.er1
17404 grep -v '^ *+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try='test -z "$ac_cxx_werror_flag"
17410 || test ! -s conftest.err'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try='test -s conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_func_shl_load=yes
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17427 ac_cv_func_shl_load=no
17429 rm -f conftest.err conftest.$ac_objext \
17430 conftest$ac_exeext conftest.$ac_ext
17432 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17433 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17434 if test $ac_cv_func_shl_load = yes; then
17435 lt_cv_dlopen="shl_load"
17437 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17438 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17439 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 ac_check_lib_save_LIBS=$LIBS
17444 cat >conftest.$ac_ext <<_ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h. */
17451 /* Override any gcc2 internal prototype to avoid an error. */
17455 /* We use char because int might match the return type of a gcc2
17456 builtin and then its argument prototype would still apply. */
17466 rm -f conftest.$ac_objext conftest$ac_exeext
17467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17468 (eval $ac_link) 2>conftest.er1
17470 grep -v '^ *+' conftest.er1 >conftest.err
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try='test -z "$ac_cxx_werror_flag"
17476 || test ! -s conftest.err'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest$ac_exeext'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 ac_cv_lib_dld_shl_load=yes
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17493 ac_cv_lib_dld_shl_load=no
17495 rm -f conftest.err conftest.$ac_objext \
17496 conftest$ac_exeext conftest.$ac_ext
17497 LIBS=$ac_check_lib_save_LIBS
17499 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17500 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17501 if test $ac_cv_lib_dld_shl_load = yes; then
17502 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17504 echo "$as_me:$LINENO: checking for dlopen" >&5
17505 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17506 if test "${ac_cv_func_dlopen+set}" = set; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 cat >conftest.$ac_ext <<_ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17515 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17517 #define dlopen innocuous_dlopen
17519 /* System header to define __stub macros and hopefully few prototypes,
17520 which can conflict with char dlopen (); below.
17521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17522 <limits.h> exists even on freestanding compilers. */
17525 # include <limits.h>
17527 # include <assert.h>
17532 /* Override any gcc2 internal prototype to avoid an error. */
17537 /* We use char because int might match the return type of a gcc2
17538 builtin and then its argument prototype would still apply. */
17540 /* The GNU C library defines this for functions which it implements
17541 to always fail with ENOSYS. Some functions are actually named
17542 something starting with __ and the normal name is an alias. */
17543 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17546 char (*f) () = dlopen;
17555 return f != dlopen;
17560 rm -f conftest.$ac_objext conftest$ac_exeext
17561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562 (eval $ac_link) 2>conftest.er1
17564 grep -v '^ *+' conftest.er1 >conftest.err
17566 cat conftest.err >&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
17569 { ac_try='test -z "$ac_cxx_werror_flag"
17570 || test ! -s conftest.err'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
17576 { ac_try='test -s conftest$ac_exeext'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17582 ac_cv_func_dlopen=yes
17584 echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17587 ac_cv_func_dlopen=no
17589 rm -f conftest.err conftest.$ac_objext \
17590 conftest$ac_exeext conftest.$ac_ext
17592 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17593 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17594 if test $ac_cv_func_dlopen = yes; then
17595 lt_cv_dlopen="dlopen"
17597 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17598 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17599 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 ac_check_lib_save_LIBS=$LIBS
17604 cat >conftest.$ac_ext <<_ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17611 /* Override any gcc2 internal prototype to avoid an error. */
17615 /* We use char because int might match the return type of a gcc2
17616 builtin and then its argument prototype would still apply. */
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17628 (eval $ac_link) 2>conftest.er1
17630 grep -v '^ *+' conftest.er1 >conftest.err
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -z "$ac_cxx_werror_flag"
17636 || test ! -s conftest.err'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; } &&
17642 { ac_try='test -s conftest$ac_exeext'
17643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; }; then
17648 ac_cv_lib_dl_dlopen=yes
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17653 ac_cv_lib_dl_dlopen=no
17655 rm -f conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
17657 LIBS=$ac_check_lib_save_LIBS
17659 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17660 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17661 if test $ac_cv_lib_dl_dlopen = yes; then
17662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17664 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17665 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17666 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 ac_check_lib_save_LIBS=$LIBS
17670 LIBS="-lsvld $LIBS"
17671 cat >conftest.$ac_ext <<_ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17678 /* Override any gcc2 internal prototype to avoid an error. */
17682 /* We use char because int might match the return type of a gcc2
17683 builtin and then its argument prototype would still apply. */
17693 rm -f conftest.$ac_objext conftest$ac_exeext
17694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17695 (eval $ac_link) 2>conftest.er1
17697 grep -v '^ *+' conftest.er1 >conftest.err
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
17702 { ac_try='test -z "$ac_cxx_werror_flag"
17703 || test ! -s conftest.err'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest$ac_exeext'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 ac_cv_lib_svld_dlopen=yes
17717 echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17720 ac_cv_lib_svld_dlopen=no
17722 rm -f conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
17724 LIBS=$ac_check_lib_save_LIBS
17726 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17727 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17728 if test $ac_cv_lib_svld_dlopen = yes; then
17729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17731 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17732 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17733 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 ac_check_lib_save_LIBS=$LIBS
17738 cat >conftest.$ac_ext <<_ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17745 /* Override any gcc2 internal prototype to avoid an error. */
17749 /* We use char because int might match the return type of a gcc2
17750 builtin and then its argument prototype would still apply. */
17760 rm -f conftest.$ac_objext conftest$ac_exeext
17761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17762 (eval $ac_link) 2>conftest.er1
17764 grep -v '^ *+' conftest.er1 >conftest.err
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -z "$ac_cxx_werror_flag"
17770 || test ! -s conftest.err'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest$ac_exeext'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 ac_cv_lib_dld_dld_link=yes
17784 echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17787 ac_cv_lib_dld_dld_link=no
17789 rm -f conftest.err conftest.$ac_objext \
17790 conftest$ac_exeext conftest.$ac_ext
17791 LIBS=$ac_check_lib_save_LIBS
17793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17794 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17795 if test $ac_cv_lib_dld_dld_link = yes; then
17796 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17817 if test "x$lt_cv_dlopen" != xno; then
17823 case $lt_cv_dlopen in
17825 save_CPPFLAGS="$CPPFLAGS"
17826 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17828 save_LDFLAGS="$LDFLAGS"
17829 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17832 LIBS="$lt_cv_dlopen_libs $LIBS"
17834 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17835 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17836 if test "${lt_cv_dlopen_self+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 if test "$cross_compiling" = yes; then :
17840 lt_cv_dlopen_self=cross
17842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17843 lt_status=$lt_dlunknown
17844 cat > conftest.$ac_ext <<EOF
17845 #line 17845 "configure"
17846 #include "confdefs.h"
17855 # define LT_DLGLOBAL RTLD_GLOBAL
17858 # define LT_DLGLOBAL DL_GLOBAL
17860 # define LT_DLGLOBAL 0
17864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17865 find out it does not work in some platform. */
17866 #ifndef LT_DLLAZY_OR_NOW
17868 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17871 # define LT_DLLAZY_OR_NOW DL_LAZY
17874 # define LT_DLLAZY_OR_NOW RTLD_NOW
17877 # define LT_DLLAZY_OR_NOW DL_NOW
17879 # define LT_DLLAZY_OR_NOW 0
17887 extern "C" void exit (int);
17890 void fnord() { int i=42;}
17893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17894 int status = $lt_dlunknown;
17898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17899 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17900 /* dlclose (self); */
17906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17907 (eval $ac_link) 2>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17911 (./conftest; exit; ) 2>/dev/null
17913 case x$lt_status in
17914 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17915 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17916 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17919 # compilation failed
17920 lt_cv_dlopen_self=no
17927 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17928 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17930 if test "x$lt_cv_dlopen_self" = xyes; then
17931 LDFLAGS="$LDFLAGS $link_static_flag"
17932 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17933 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17934 if test "${lt_cv_dlopen_self_static+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 if test "$cross_compiling" = yes; then :
17938 lt_cv_dlopen_self_static=cross
17940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17941 lt_status=$lt_dlunknown
17942 cat > conftest.$ac_ext <<EOF
17943 #line 17943 "configure"
17944 #include "confdefs.h"
17953 # define LT_DLGLOBAL RTLD_GLOBAL
17956 # define LT_DLGLOBAL DL_GLOBAL
17958 # define LT_DLGLOBAL 0
17962 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17963 find out it does not work in some platform. */
17964 #ifndef LT_DLLAZY_OR_NOW
17966 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17969 # define LT_DLLAZY_OR_NOW DL_LAZY
17972 # define LT_DLLAZY_OR_NOW RTLD_NOW
17975 # define LT_DLLAZY_OR_NOW DL_NOW
17977 # define LT_DLLAZY_OR_NOW 0
17985 extern "C" void exit (int);
17988 void fnord() { int i=42;}
17991 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17992 int status = $lt_dlunknown;
17996 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17997 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17998 /* dlclose (self); */
18004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18005 (eval $ac_link) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18009 (./conftest; exit; ) 2>/dev/null
18011 case x$lt_status in
18012 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18013 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18014 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18017 # compilation failed
18018 lt_cv_dlopen_self_static=no
18025 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18026 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18029 CPPFLAGS="$save_CPPFLAGS"
18030 LDFLAGS="$save_LDFLAGS"
18035 case $lt_cv_dlopen_self in
18036 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18037 *) enable_dlopen_self=unknown ;;
18040 case $lt_cv_dlopen_self_static in
18041 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18042 *) enable_dlopen_self_static=unknown ;;
18047 # The else clause should only fire when bootstrapping the
18048 # libtool distribution, otherwise you forgot to ship ltmain.sh
18049 # with your package, and you will get complaints that there are
18050 # no rules to generate ltmain.sh.
18051 if test -f "$ltmain"; then
18052 # See if we are running on zsh, and set the options which allow our commands through
18053 # without removal of \ escapes.
18054 if test -n "${ZSH_VERSION+set}" ; then
18055 setopt NO_GLOB_SUBST
18057 # Now quote all the things that may contain metacharacters while being
18058 # careful not to overquote the AC_SUBSTed values. We take copies of the
18059 # variables and quote the copies for generation of the libtool script.
18060 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18062 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18063 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18064 deplibs_check_method reload_flag reload_cmds need_locks \
18065 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18066 lt_cv_sys_global_symbol_to_c_name_address \
18067 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18068 old_postinstall_cmds old_postuninstall_cmds \
18072 lt_prog_compiler_wl_CXX \
18073 lt_prog_compiler_pic_CXX \
18074 lt_prog_compiler_static_CXX \
18075 lt_prog_compiler_no_builtin_flag_CXX \
18076 export_dynamic_flag_spec_CXX \
18077 thread_safe_flag_spec_CXX \
18078 whole_archive_flag_spec_CXX \
18079 enable_shared_with_static_runtimes_CXX \
18080 old_archive_cmds_CXX \
18081 old_archive_from_new_cmds_CXX \
18082 predep_objects_CXX \
18083 postdep_objects_CXX \
18086 compiler_lib_search_path_CXX \
18088 archive_expsym_cmds_CXX \
18089 postinstall_cmds_CXX \
18090 postuninstall_cmds_CXX \
18091 old_archive_from_expsyms_cmds_CXX \
18092 allow_undefined_flag_CXX \
18093 no_undefined_flag_CXX \
18094 export_symbols_cmds_CXX \
18095 hardcode_libdir_flag_spec_CXX \
18096 hardcode_libdir_flag_spec_ld_CXX \
18097 hardcode_libdir_separator_CXX \
18098 hardcode_automatic_CXX \
18100 module_expsym_cmds_CXX \
18101 lt_cv_prog_compiler_c_o_CXX \
18102 exclude_expsyms_CXX \
18103 include_expsyms_CXX; do
18106 old_archive_cmds_CXX | \
18107 old_archive_from_new_cmds_CXX | \
18108 archive_cmds_CXX | \
18109 archive_expsym_cmds_CXX | \
18110 module_cmds_CXX | \
18111 module_expsym_cmds_CXX | \
18112 old_archive_from_expsyms_cmds_CXX | \
18113 export_symbols_cmds_CXX | \
18114 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18115 postinstall_cmds | postuninstall_cmds | \
18116 old_postinstall_cmds | old_postuninstall_cmds | \
18117 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18118 # Double-quote double-evaled strings.
18119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18128 *'\$0 --fallback-echo"')
18129 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18135 cat <<__EOF__ >> "$cfgfile"
18136 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18138 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18140 # Shell to use when invoking shell scripts.
18143 # Whether or not to build shared libraries.
18144 build_libtool_libs=$enable_shared
18146 # Whether or not to build static libraries.
18147 build_old_libs=$enable_static
18149 # Whether or not to add -lc for building shared libraries.
18150 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18152 # Whether or not to disallow shared libs when runtime libs are static
18153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18155 # Whether or not to optimize for fast installation.
18156 fast_install=$enable_fast_install
18159 host_alias=$host_alias
18162 # An echo program that does not interpret backslashes.
18167 AR_FLAGS=$lt_AR_FLAGS
18172 # A language-specific compiler.
18173 CC=$lt_compiler_CXX
18175 # Is the compiler the GNU C compiler?
18181 # The linker used to build libraries.
18184 # Whether we need hard or soft links.
18187 # A BSD-compatible nm program.
18190 # A symbol stripping program
18193 # Used to examine libraries when file_magic_cmd begins "file"
18194 MAGIC_CMD=$MAGIC_CMD
18196 # Used on cygwin: DLL creation program.
18199 # Used on cygwin: object dumper.
18202 # Used on cygwin: assembler.
18205 # The name of the directory that contains temporary libtool files.
18208 # How to create reloadable object files.
18209 reload_flag=$lt_reload_flag
18210 reload_cmds=$lt_reload_cmds
18212 # How to pass a linker flag through the compiler.
18213 wl=$lt_lt_prog_compiler_wl_CXX
18215 # Object file suffix (normally "o").
18216 objext="$ac_objext"
18218 # Old archive suffix (normally "a").
18221 # Shared library suffix (normally ".so").
18222 shrext_cmds='$shrext_cmds'
18224 # Executable file suffix (normally "").
18227 # Additional compiler flags for building library objects.
18228 pic_flag=$lt_lt_prog_compiler_pic_CXX
18231 # What is the maximum length of a command?
18232 max_cmd_len=$lt_cv_sys_max_cmd_len
18234 # Does compiler simultaneously support -c and -o options?
18235 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18237 # Must we lock files when doing compilation ?
18238 need_locks=$lt_need_locks
18240 # Do we need the lib prefix for modules?
18241 need_lib_prefix=$need_lib_prefix
18243 # Do we need a version for libraries?
18244 need_version=$need_version
18246 # Whether dlopen is supported.
18247 dlopen_support=$enable_dlopen
18249 # Whether dlopen of programs is supported.
18250 dlopen_self=$enable_dlopen_self
18252 # Whether dlopen of statically linked programs is supported.
18253 dlopen_self_static=$enable_dlopen_self_static
18255 # Compiler flag to prevent dynamic linking.
18256 link_static_flag=$lt_lt_prog_compiler_static_CXX
18258 # Compiler flag to turn off builtin functions.
18259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18261 # Compiler flag to allow reflexive dlopens.
18262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18264 # Compiler flag to generate shared objects directly from archives.
18265 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18267 # Compiler flag to generate thread-safe objects.
18268 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18270 # Library versioning type.
18271 version_type=$version_type
18273 # Format of library name prefix.
18274 libname_spec=$lt_libname_spec
18276 # List of archive names. First name is the real one, the rest are links.
18277 # The last name is the one that the linker finds with -lNAME.
18278 library_names_spec=$lt_library_names_spec
18280 # The coded name of the library, if different from the real name.
18281 soname_spec=$lt_soname_spec
18283 # Commands used to build and install an old-style archive.
18285 old_archive_cmds=$lt_old_archive_cmds_CXX
18286 old_postinstall_cmds=$lt_old_postinstall_cmds
18287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18289 # Create an old-style archive from a shared archive.
18290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18292 # Create a temporary old-style archive to link instead of a shared archive.
18293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18295 # Commands used to build and install a shared archive.
18296 archive_cmds=$lt_archive_cmds_CXX
18297 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18298 postinstall_cmds=$lt_postinstall_cmds
18299 postuninstall_cmds=$lt_postuninstall_cmds
18301 # Commands used to build a loadable module (assumed same as above if empty)
18302 module_cmds=$lt_module_cmds_CXX
18303 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18305 # Commands to strip libraries.
18306 old_striplib=$lt_old_striplib
18307 striplib=$lt_striplib
18309 # Dependencies to place before the objects being linked to create a
18311 predep_objects=$lt_predep_objects_CXX
18313 # Dependencies to place after the objects being linked to create a
18315 postdep_objects=$lt_postdep_objects_CXX
18317 # Dependencies to place before the objects being linked to create a
18319 predeps=$lt_predeps_CXX
18321 # Dependencies to place after the objects being linked to create a
18323 postdeps=$lt_postdeps_CXX
18325 # The library search path used internally by the compiler when linking
18326 # a shared library.
18327 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18329 # Method to check whether dependent libraries are shared objects.
18330 deplibs_check_method=$lt_deplibs_check_method
18332 # Command to use when deplibs_check_method == file_magic.
18333 file_magic_cmd=$lt_file_magic_cmd
18335 # Flag that allows shared libraries with undefined symbols to be built.
18336 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18338 # Flag that forces no undefined symbols.
18339 no_undefined_flag=$lt_no_undefined_flag_CXX
18341 # Commands used to finish a libtool library installation in a directory.
18342 finish_cmds=$lt_finish_cmds
18344 # Same as above, but a single script fragment to be evaled but not shown.
18345 finish_eval=$lt_finish_eval
18347 # Take the output of nm and produce a listing of raw symbols and C names.
18348 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18350 # Transform the output of nm in a proper C declaration
18351 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18353 # Transform the output of nm in a C name address pair
18354 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18356 # This is the shared library runtime path variable.
18357 runpath_var=$runpath_var
18359 # This is the shared library path variable.
18360 shlibpath_var=$shlibpath_var
18362 # Is shlibpath searched before the hard-coded library search path?
18363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18365 # How to hardcode a shared library path into an executable.
18366 hardcode_action=$hardcode_action_CXX
18368 # Whether we should hardcode library paths into libraries.
18369 hardcode_into_libs=$hardcode_into_libs
18371 # Flag to hardcode \$libdir into a binary during linking.
18372 # This must work even if \$libdir does not exist.
18373 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18375 # If ld is used when linking, flag to hardcode \$libdir into
18376 # a binary during linking. This must work even if \$libdir does
18378 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18380 # Whether we need a single -rpath flag with a separated argument.
18381 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18383 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18384 # resulting binary.
18385 hardcode_direct=$hardcode_direct_CXX
18387 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18388 # resulting binary.
18389 hardcode_minus_L=$hardcode_minus_L_CXX
18391 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18392 # the resulting binary.
18393 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18395 # Set to yes if building a shared library automatically hardcodes DIR into the library
18396 # and all subsequent libraries and executables linked against it.
18397 hardcode_automatic=$hardcode_automatic_CXX
18399 # Variables whose values should be saved in libtool wrapper scripts and
18400 # restored at relink time.
18401 variables_saved_for_relink="$variables_saved_for_relink"
18403 # Whether libtool must link a program against all its dependency libraries.
18404 link_all_deplibs=$link_all_deplibs_CXX
18406 # Compile-time system search path for libraries
18407 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18409 # Run-time system search path for libraries
18410 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18412 # Fix the shell variable \$srcfile for the compiler.
18413 fix_srcfile_path="$fix_srcfile_path_CXX"
18415 # Set to yes if exported symbols are required.
18416 always_export_symbols=$always_export_symbols_CXX
18418 # The commands to list exported symbols.
18419 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18421 # The commands to extract the exported symbol list from a shared archive.
18422 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18424 # Symbols that should not be listed in the preloaded symbols.
18425 exclude_expsyms=$lt_exclude_expsyms_CXX
18427 # Symbols that must always be exported.
18428 include_expsyms=$lt_include_expsyms_CXX
18430 # ### END LIBTOOL TAG CONFIG: $tagname
18436 # If there is no Makefile yet, we rely on a make rule to execute
18437 # `config.status --recheck' to rerun these tests and create the
18438 # libtool script then.
18439 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18440 if test -f "$ltmain_in"; then
18441 test -f Makefile && make "$ltmain"
18447 ac_cpp='$CPP $CPPFLAGS'
18448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18456 with_gnu_ldcxx=$with_gnu_ld
18457 with_gnu_ld=$lt_save_with_gnu_ld
18458 lt_cv_path_LDCXX=$lt_cv_path_LD
18459 lt_cv_path_LD=$lt_save_path_LD
18460 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18461 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18469 if test -n "$F77" && test "X$F77" != "Xno"; then
18472 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18473 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18474 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18477 archive_cmds_need_lc_F77=no
18478 allow_undefined_flag_F77=
18479 always_export_symbols_F77=no
18480 archive_expsym_cmds_F77=
18481 export_dynamic_flag_spec_F77=
18482 hardcode_direct_F77=no
18483 hardcode_libdir_flag_spec_F77=
18484 hardcode_libdir_flag_spec_ld_F77=
18485 hardcode_libdir_separator_F77=
18486 hardcode_minus_L_F77=no
18487 hardcode_automatic_F77=no
18489 module_expsym_cmds_F77=
18490 link_all_deplibs_F77=unknown
18491 old_archive_cmds_F77=$old_archive_cmds
18492 no_undefined_flag_F77=
18493 whole_archive_flag_spec_F77=
18494 enable_shared_with_static_runtimes_F77=no
18496 # Source file extension for f77 test sources.
18499 # Object file extension for compiled f77 test sources.
18503 # Code to be used in simple compile tests
18504 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18506 # Code to be used in simple link tests
18507 lt_simple_link_test_code=" program t\n end\n"
18509 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18511 # If no C compiler was specified, use CC.
18514 # Allow CC to be a program name with arguments.
18518 # Allow CC to be a program name with arguments.
18523 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18525 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18526 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18527 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18528 echo "${ECHO_T}$can_build_shared" >&6
18530 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18531 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18532 test "$can_build_shared" = "no" && enable_shared=no
18534 # On AIX, shared libraries and static libraries use the same namespace, and
18535 # are all built from PIC.
18538 test "$enable_shared" = yes && enable_static=no
18539 if test -n "$RANLIB"; then
18540 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18541 postinstall_cmds='$RANLIB $lib'
18545 test "$enable_shared" = yes && enable_static=no
18548 echo "$as_me:$LINENO: result: $enable_shared" >&5
18549 echo "${ECHO_T}$enable_shared" >&6
18551 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18552 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18553 # Make sure either enable_shared or enable_static is yes.
18554 test "$enable_shared" = yes || enable_static=yes
18555 echo "$as_me:$LINENO: result: $enable_static" >&5
18556 echo "${ECHO_T}$enable_static" >&6
18558 test "$ld_shlibs_F77" = no && can_build_shared=no
18563 lt_prog_compiler_wl_F77=
18564 lt_prog_compiler_pic_F77=
18565 lt_prog_compiler_static_F77=
18567 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18568 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18570 if test "$GCC" = yes; then
18571 lt_prog_compiler_wl_F77='-Wl,'
18572 lt_prog_compiler_static_F77='-static'
18576 # All AIX code is PIC.
18577 if test "$host_cpu" = ia64; then
18578 # AIX 5 now supports IA64 processor
18579 lt_prog_compiler_static_F77='-Bstatic'
18584 # FIXME: we need at least 68020 code to build shared libraries, but
18585 # adding the `-m68020' flag to GCC prevents building anything better,
18587 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18590 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18591 # PIC is the default for these OSes.
18594 mingw* | pw32* | os2*)
18595 # This hack is so that the source file can tell whether it is being
18596 # built for inclusion in a dll (and should export symbols for example).
18597 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18600 darwin* | rhapsody*)
18601 # PIC is the default on this platform
18602 # Common symbols not allowed in MH_DYLIB files
18603 lt_prog_compiler_pic_F77='-fno-common'
18607 # Just because we use GCC doesn't mean we suddenly get shared libraries
18608 # on systems that don't support them.
18609 lt_prog_compiler_can_build_shared_F77=no
18614 if test -d /usr/nec; then
18615 lt_prog_compiler_pic_F77=-Kconform_pic
18620 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18621 # not for PA HP-UX.
18622 case "$host_cpu" in
18627 lt_prog_compiler_pic_F77='-fPIC'
18633 lt_prog_compiler_pic_F77='-fPIC'
18637 # PORTME Check for flag to pass linker flags through the system compiler.
18640 lt_prog_compiler_wl_F77='-Wl,'
18641 if test "$host_cpu" = ia64; then
18642 # AIX 5 now supports IA64 processor
18643 lt_prog_compiler_static_F77='-Bstatic'
18645 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18649 # PIC is the default on this platform
18650 # Common symbols not allowed in MH_DYLIB files
18651 case "$cc_basename" in
18653 lt_prog_compiler_pic_F77='-qnocommon'
18654 lt_prog_compiler_wl_F77='-Wl,'
18659 mingw* | pw32* | os2*)
18660 # This hack is so that the source file can tell whether it is being
18661 # built for inclusion in a dll (and should export symbols for example).
18662 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18665 hpux9* | hpux10* | hpux11*)
18666 lt_prog_compiler_wl_F77='-Wl,'
18667 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18668 # not for PA HP-UX.
18669 case "$host_cpu" in
18674 lt_prog_compiler_pic_F77='+Z'
18677 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18678 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18681 irix5* | irix6* | nonstopux*)
18682 lt_prog_compiler_wl_F77='-Wl,'
18683 # PIC (with -KPIC) is the default.
18684 lt_prog_compiler_static_F77='-non_shared'
18688 lt_prog_compiler_pic_F77='-KPIC'
18689 lt_prog_compiler_static_F77='-Bstatic'
18695 lt_prog_compiler_wl_F77='-Wl,'
18696 lt_prog_compiler_pic_F77='-KPIC'
18697 lt_prog_compiler_static_F77='-static'
18700 lt_prog_compiler_wl_F77='-Wl,'
18701 # All Alpha code is PIC.
18702 lt_prog_compiler_static_F77='-non_shared'
18707 osf3* | osf4* | osf5*)
18708 lt_prog_compiler_wl_F77='-Wl,'
18709 # All OSF/1 code is PIC.
18710 lt_prog_compiler_static_F77='-non_shared'
18714 lt_prog_compiler_pic_F77='-Kpic'
18715 lt_prog_compiler_static_F77='-dn'
18719 lt_prog_compiler_wl_F77='-Wl,'
18720 lt_prog_compiler_pic_F77='-KPIC'
18721 lt_prog_compiler_static_F77='-Bstatic'
18725 lt_prog_compiler_wl_F77='-Qoption ld '
18726 lt_prog_compiler_pic_F77='-PIC'
18727 lt_prog_compiler_static_F77='-Bstatic'
18730 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18731 lt_prog_compiler_wl_F77='-Wl,'
18732 lt_prog_compiler_pic_F77='-KPIC'
18733 lt_prog_compiler_static_F77='-Bstatic'
18737 if test -d /usr/nec ;then
18738 lt_prog_compiler_pic_F77='-Kconform_pic'
18739 lt_prog_compiler_static_F77='-Bstatic'
18744 lt_prog_compiler_pic_F77='-pic'
18745 lt_prog_compiler_static_F77='-Bstatic'
18749 lt_prog_compiler_can_build_shared_F77=no
18754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18755 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18758 # Check to make sure the PIC flag actually works.
18760 if test -n "$lt_prog_compiler_pic_F77"; then
18762 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18763 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18764 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 lt_prog_compiler_pic_works_F77=no
18768 ac_outfile=conftest.$ac_objext
18769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18770 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18771 # Insert the option either (1) after the last *FLAGS variable, or
18772 # (2) before a word containing "conftest.", or (3) at the end.
18773 # Note that $ac_compile itself does not contain backslashes and begins
18774 # with a dollar sign (not a hyphen), so the echo should work correctly.
18775 # The option is referenced via a variable to avoid confusing sed.
18776 lt_compile=`echo "$ac_compile" | $SED \
18777 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18779 -e 's:$: $lt_compiler_flag:'`
18780 (eval echo "\"\$as_me:18780: $lt_compile\"" >&5)
18781 (eval "$lt_compile" 2>conftest.err)
18783 cat conftest.err >&5
18784 echo "$as_me:18784: \$? = $ac_status" >&5
18785 if (exit $ac_status) && test -s "$ac_outfile"; then
18786 # The compiler can only warn and ignore the option if not recognized
18787 # So say no if there are warnings
18788 if test ! -s conftest.err; then
18789 lt_prog_compiler_pic_works_F77=yes
18795 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18796 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18798 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18799 case $lt_prog_compiler_pic_F77 in
18801 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18804 lt_prog_compiler_pic_F77=
18805 lt_prog_compiler_can_build_shared_F77=no
18810 # For platforms which do not support PIC, -DPIC is meaningless:
18812 lt_prog_compiler_pic_F77=
18815 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18819 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18821 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 lt_cv_prog_compiler_c_o_F77=no
18825 $rm -r conftest 2>/dev/null
18829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18831 lt_compiler_flag="-o out/conftest2.$ac_objext"
18832 # Insert the option either (1) after the last *FLAGS variable, or
18833 # (2) before a word containing "conftest.", or (3) at the end.
18834 # Note that $ac_compile itself does not contain backslashes and begins
18835 # with a dollar sign (not a hyphen), so the echo should work correctly.
18836 lt_compile=`echo "$ac_compile" | $SED \
18837 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18839 -e 's:$: $lt_compiler_flag:'`
18840 (eval echo "\"\$as_me:18840: $lt_compile\"" >&5)
18841 (eval "$lt_compile" 2>out/conftest.err)
18843 cat out/conftest.err >&5
18844 echo "$as_me:18844: \$? = $ac_status" >&5
18845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18847 # The compiler can only warn and ignore the option if not recognized
18848 # So say no if there are warnings
18849 if test ! -s out/conftest.err; then
18850 lt_cv_prog_compiler_c_o_F77=yes
18855 # SGI C++ compiler will create directory out/ii_files/ for
18856 # template instantiation
18857 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18858 $rm out/* && rmdir out
18864 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18868 hard_links="nottested"
18869 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18870 # do not overwrite the value of need_locks provided by the user
18871 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18877 ln conftest.a conftest.b 2>&5 || hard_links=no
18878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18879 echo "$as_me:$LINENO: result: $hard_links" >&5
18880 echo "${ECHO_T}$hard_links" >&6
18881 if test "$hard_links" = no; then
18882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18890 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18894 allow_undefined_flag_F77=
18895 enable_shared_with_static_runtimes_F77=no
18897 archive_expsym_cmds_F77=
18898 old_archive_From_new_cmds_F77=
18899 old_archive_from_expsyms_cmds_F77=
18900 export_dynamic_flag_spec_F77=
18901 whole_archive_flag_spec_F77=
18902 thread_safe_flag_spec_F77=
18903 hardcode_libdir_flag_spec_F77=
18904 hardcode_libdir_flag_spec_ld_F77=
18905 hardcode_libdir_separator_F77=
18906 hardcode_direct_F77=no
18907 hardcode_minus_L_F77=no
18908 hardcode_shlibpath_var_F77=unsupported
18909 link_all_deplibs_F77=unknown
18910 hardcode_automatic_F77=no
18912 module_expsym_cmds_F77=
18913 always_export_symbols_F77=no
18914 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18915 # include_expsyms should be a list of space-separated symbols to be *always*
18916 # included in the symbol list
18917 include_expsyms_F77=
18918 # exclude_expsyms can be an extended regexp of symbols to exclude
18919 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18920 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18921 # as well as any symbol that contains `d'.
18922 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18924 # platforms (ab)use it in PIC code, but their linkers get confused if
18925 # the symbol is explicitly referenced. Since portable code cannot
18926 # rely on this symbol name, it's probably fine to never include it in
18927 # preloaded symbol tables.
18928 extract_expsyms_cmds=
18931 cygwin* | mingw* | pw32*)
18932 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18933 # When not using gcc, we currently assume that we are using
18934 # Microsoft Visual C++.
18935 if test "$GCC" != yes; then
18945 if test "$with_gnu_ld" = yes; then
18946 # If archive_cmds runs LD, not CC, wlarc should be empty
18949 # See if GNU ld supports shared libraries.
18951 aix3* | aix4* | aix5*)
18952 # On AIX/PPC, the GNU linker is very broken
18953 if test "$host_cpu" != ia64; then
18957 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18958 *** to be unable to reliably create shared libraries on AIX.
18959 *** Therefore, libtool is disabling shared libraries support. If you
18960 *** really care for shared libraries, you may want to modify your PATH
18961 *** so that a non-GNU linker is found, and then restart.
18968 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)'
18969 hardcode_libdir_flag_spec_F77='-L$libdir'
18970 hardcode_minus_L_F77=yes
18972 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18973 # that the semantics of dynamic libraries on AmigaOS, at least up
18974 # to version 4, is to share data among multiple programs linked
18975 # with the same dynamic library. Since this doesn't match the
18976 # behavior of shared libraries on other platforms, we can't use
18982 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18983 allow_undefined_flag_F77=unsupported
18984 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18985 # support --undefined. This deserves some investigation. FIXME
18986 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18992 cygwin* | mingw* | pw32*)
18993 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18994 # as there is no search path for DLLs.
18995 hardcode_libdir_flag_spec_F77='-L$libdir'
18996 allow_undefined_flag_F77=unsupported
18997 always_export_symbols_F77=no
18998 enable_shared_with_static_runtimes_F77=yes
18999 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19001 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19002 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19003 # If the export-symbols file already is a .def file (1st line
19004 # is EXPORTS), use it as is; otherwise, prepend...
19005 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19006 cp $export_symbols $output_objdir/$soname.def;
19008 echo EXPORTS > $output_objdir/$soname.def;
19009 cat $export_symbols >> $output_objdir/$soname.def;
19011 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19019 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19022 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19023 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19028 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19032 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19033 *** create shared libraries on Solaris systems. Therefore, libtool
19034 *** is disabling shared libraries support. We urge you to upgrade GNU
19035 *** binutils to release 2.9.1 or newer. Another option is to modify
19036 *** your PATH or compiler configuration so that the native linker is
19037 *** used, and then restart.
19040 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19041 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19042 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19049 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19051 hardcode_direct_F77=yes
19052 hardcode_shlibpath_var_F77=no
19056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19057 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19058 archive_cmds_F77="$tmp_archive_cmds"
19059 supports_anon_versioning=no
19060 case `$LD -v 2>/dev/null` in
19061 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19064 *\ 2.11.*) ;; # other 2.11 versions
19065 *) supports_anon_versioning=yes ;;
19067 if test $supports_anon_versioning = yes; then
19068 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19070 $echo "local: *; };" >> $output_objdir/$libname.ver~
19071 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19073 archive_expsym_cmds_F77="$tmp_archive_cmds"
19081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19082 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19083 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19090 if test "$ld_shlibs_F77" = yes; then
19091 runpath_var=LD_RUN_PATH
19092 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19093 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19094 # ancient GNU ld didn't support --whole-archive et. al.
19095 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19096 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19098 whole_archive_flag_spec_F77=
19102 # PORTME fill in a description of your system's linker (not GNU ld)
19105 allow_undefined_flag_F77=unsupported
19106 always_export_symbols_F77=yes
19107 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'
19108 # Note: this linker hardcodes the directories in LIBPATH if there
19109 # are no directories specified by -L.
19110 hardcode_minus_L_F77=yes
19111 if test "$GCC" = yes && test -z "$link_static_flag"; then
19112 # Neither direct hardcoding nor static linking is supported with a
19114 hardcode_direct_F77=unsupported
19119 if test "$host_cpu" = ia64; then
19120 # On IA64, the linker does run time linking by default, so we don't
19121 # have to do anything special.
19122 aix_use_runtimelinking=no
19123 exp_sym_flag='-Bexport'
19126 # If we're using GNU nm, then we don't want the "-C" option.
19127 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19128 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19129 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'
19131 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'
19133 aix_use_runtimelinking=no
19135 # Test if we are trying to use run time linking or normal
19136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19137 # need to do runtime linking.
19138 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19139 for ld_flag in $LDFLAGS; do
19140 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19141 aix_use_runtimelinking=yes
19147 exp_sym_flag='-bexport'
19148 no_entry_flag='-bnoentry'
19151 # When large executables or shared objects are built, AIX ld can
19152 # have problems creating the table of contents. If linking a library
19153 # or program results in "error TOC overflow" add -mminimal-toc to
19154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19157 archive_cmds_F77=''
19158 hardcode_direct_F77=yes
19159 hardcode_libdir_separator_F77=':'
19160 link_all_deplibs_F77=yes
19162 if test "$GCC" = yes; then
19163 case $host_os in aix4.012|aix4.012.*)
19164 # We only want to do this on AIX 4.2 and lower, the check
19165 # below for broken collect2 doesn't work under 4.3+
19166 collect2name=`${CC} -print-prog-name=collect2`
19167 if test -f "$collect2name" && \
19168 strings "$collect2name" | grep resolve_lib_name >/dev/null
19170 # We have reworked collect2
19171 hardcode_direct_F77=yes
19173 # We have old collect2
19174 hardcode_direct_F77=unsupported
19175 # It fails to find uninstalled libraries when the uninstalled
19176 # path is not listed in the libpath. Setting hardcode_minus_L
19177 # to unsupported forces relinking
19178 hardcode_minus_L_F77=yes
19179 hardcode_libdir_flag_spec_F77='-L$libdir'
19180 hardcode_libdir_separator_F77=
19183 shared_flag='-shared'
19186 if test "$host_cpu" = ia64; then
19187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19188 # chokes on -Wl,-G. The following line is correct:
19191 if test "$aix_use_runtimelinking" = yes; then
19192 shared_flag='${wl}-G'
19194 shared_flag='${wl}-bM:SRE'
19199 # It seems that -bexpall does not export symbols beginning with
19200 # underscore (_), so it is better to generate a list of symbols to export.
19201 always_export_symbols_F77=yes
19202 if test "$aix_use_runtimelinking" = yes; then
19203 # Warning - without using the other runtime loading flags (-brtl),
19204 # -berok will link without error, but may produce a broken library.
19205 allow_undefined_flag_F77='-berok'
19206 # Determine the default libpath from the value encoded in an empty executable.
19207 cat >conftest.$ac_ext <<_ACEOF
19212 rm -f conftest.$ac_objext conftest$ac_exeext
19213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19214 (eval $ac_link) 2>conftest.er1
19216 grep -v '^ *+' conftest.er1 >conftest.err
19218 cat conftest.err >&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } &&
19221 { ac_try='test -z "$ac_f77_werror_flag"
19222 || test ! -s conftest.err'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest$ac_exeext'
19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; }; then
19235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19237 # Check for a 64-bit object if we didn't find anything.
19238 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; }
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19245 rm -f conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
19247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19249 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19250 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"
19252 if test "$host_cpu" = ia64; then
19253 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19254 allow_undefined_flag_F77="-z nodefs"
19255 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"
19257 # Determine the default libpath from the value encoded in an empty executable.
19258 cat >conftest.$ac_ext <<_ACEOF
19263 rm -f conftest.$ac_objext conftest$ac_exeext
19264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19265 (eval $ac_link) 2>conftest.er1
19267 grep -v '^ *+' conftest.er1 >conftest.err
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } &&
19272 { ac_try='test -z "$ac_f77_werror_flag"
19273 || test ! -s conftest.err'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try='test -s conftest$ac_exeext'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
19286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19288 # Check for a 64-bit object if we didn't find anything.
19289 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; }
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19296 rm -f conftest.err conftest.$ac_objext \
19297 conftest$ac_exeext conftest.$ac_ext
19298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19300 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19301 # Warning - without using the other run time loading flags,
19302 # -berok will link without error, but may produce a broken library.
19303 no_undefined_flag_F77=' ${wl}-bernotok'
19304 allow_undefined_flag_F77=' ${wl}-berok'
19305 # -bexpall does not export symbols beginning with underscore (_)
19306 always_export_symbols_F77=yes
19307 # Exported symbols can be pulled into shared objects from archives
19308 whole_archive_flag_spec_F77=' '
19309 archive_cmds_need_lc_F77=yes
19310 # This is similar to how AIX traditionally builds it's shared libraries.
19311 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'
19317 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)'
19318 hardcode_libdir_flag_spec_F77='-L$libdir'
19319 hardcode_minus_L_F77=yes
19320 # see comment about different semantics on the GNU ld section
19325 export_dynamic_flag_spec_F77=-rdynamic
19328 cygwin* | mingw* | pw32*)
19329 # When not using gcc, we currently assume that we are using
19330 # Microsoft Visual C++.
19331 # hardcode_libdir_flag_spec is actually meaningless, as there is
19332 # no search path for DLLs.
19333 hardcode_libdir_flag_spec_F77=' '
19334 allow_undefined_flag_F77=unsupported
19335 # Tell ltmain to make .lib files, not .a files.
19337 # Tell ltmain to make .dll files, not .so files.
19339 # FIXME: Setting linknames here is a bad hack.
19340 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19341 # The linker will automatically build a .lib file if we build a DLL.
19342 old_archive_From_new_cmds_F77='true'
19343 # FIXME: Should let the user specify the lib program.
19344 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19345 fix_srcfile_path='`cygpath -w "$srcfile"`'
19346 enable_shared_with_static_runtimes_F77=yes
19349 darwin* | rhapsody*)
19351 rhapsody* | darwin1.[012])
19352 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19355 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19356 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19358 case ${MACOSX_DEPLOYMENT_TARGET} in
19360 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19363 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19369 archive_cmds_need_lc_F77=no
19370 hardcode_direct_F77=no
19371 hardcode_automatic_F77=yes
19372 hardcode_shlibpath_var_F77=unsupported
19373 whole_archive_flag_spec_F77=''
19374 link_all_deplibs_F77=yes
19375 if test "$GCC" = yes ; then
19376 output_verbose_link_cmd='echo'
19377 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19378 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19379 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19380 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}'
19381 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}'
19383 case "$cc_basename" in
19385 output_verbose_link_cmd='echo'
19386 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19387 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19388 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19389 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}'
19390 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}'
19400 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19401 hardcode_libdir_flag_spec_F77='-L$libdir'
19402 hardcode_shlibpath_var_F77=no
19409 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19410 # support. Future versions do this automatically, but an explicit c++rt0.o
19411 # does not break anything, and helps significantly (at the cost of a little
19414 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19415 hardcode_libdir_flag_spec_F77='-R$libdir'
19416 hardcode_direct_F77=yes
19417 hardcode_shlibpath_var_F77=no
19420 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19422 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19423 hardcode_direct_F77=yes
19424 hardcode_minus_L_F77=yes
19425 hardcode_shlibpath_var_F77=no
19428 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19429 freebsd* | kfreebsd*-gnu)
19430 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19431 hardcode_libdir_flag_spec_F77='-R$libdir'
19432 hardcode_direct_F77=yes
19433 hardcode_shlibpath_var_F77=no
19437 if test "$GCC" = yes; then
19438 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'
19440 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'
19442 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19443 hardcode_libdir_separator_F77=:
19444 hardcode_direct_F77=yes
19446 # hardcode_minus_L: Not really in the search PATH,
19447 # but as the default location of the library.
19448 hardcode_minus_L_F77=yes
19449 export_dynamic_flag_spec_F77='${wl}-E'
19453 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19454 case "$host_cpu" in
19456 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19459 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19463 case "$host_cpu" in
19465 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19468 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19472 if test "$with_gnu_ld" = no; then
19473 case "$host_cpu" in
19475 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19476 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19477 hardcode_libdir_separator_F77=:
19478 hardcode_direct_F77=no
19479 hardcode_shlibpath_var_F77=no
19482 hardcode_libdir_flag_spec_F77='-L$libdir'
19483 hardcode_direct_F77=no
19484 hardcode_shlibpath_var_F77=no
19486 # hardcode_minus_L: Not really in the search PATH,
19487 # but as the default location of the library.
19488 hardcode_minus_L_F77=yes
19491 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19492 hardcode_libdir_separator_F77=:
19493 hardcode_direct_F77=yes
19494 export_dynamic_flag_spec_F77='${wl}-E'
19496 # hardcode_minus_L: Not really in the search PATH,
19497 # but as the default location of the library.
19498 hardcode_minus_L_F77=yes
19504 irix5* | irix6* | nonstopux*)
19505 if test "$GCC" = yes; then
19506 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'
19508 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'
19509 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19511 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19512 hardcode_libdir_separator_F77=:
19513 link_all_deplibs_F77=yes
19517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19518 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19520 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19522 hardcode_libdir_flag_spec_F77='-R$libdir'
19523 hardcode_direct_F77=yes
19524 hardcode_shlibpath_var_F77=no
19528 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19529 hardcode_direct_F77=yes
19530 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19531 hardcode_libdir_separator_F77=:
19532 hardcode_shlibpath_var_F77=no
19536 hardcode_direct_F77=yes
19537 hardcode_shlibpath_var_F77=no
19538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19539 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19540 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19541 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19542 export_dynamic_flag_spec_F77='${wl}-E'
19545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19546 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19547 hardcode_libdir_flag_spec_F77='-R$libdir'
19550 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19551 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19558 hardcode_libdir_flag_spec_F77='-L$libdir'
19559 hardcode_minus_L_F77=yes
19560 allow_undefined_flag_F77=unsupported
19561 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'
19562 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19566 if test "$GCC" = yes; then
19567 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19568 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'
19570 allow_undefined_flag_F77=' -expect_unresolved \*'
19571 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'
19573 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19574 hardcode_libdir_separator_F77=:
19577 osf4* | osf5*) # as osf3* with the addition of -msym flag
19578 if test "$GCC" = yes; then
19579 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19580 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'
19581 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19583 allow_undefined_flag_F77=' -expect_unresolved \*'
19584 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'
19585 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~
19586 $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'
19588 # Both c and cxx compiler support -rpath directly
19589 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19591 hardcode_libdir_separator_F77=:
19595 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19596 hardcode_shlibpath_var_F77=no
19597 export_dynamic_flag_spec_F77='${wl}-Bexport'
19598 runpath_var=LD_RUN_PATH
19599 hardcode_runpath_var=yes
19603 no_undefined_flag_F77=' -z text'
19604 if test "$GCC" = yes; then
19605 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19606 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19607 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19609 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19610 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19611 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19613 hardcode_libdir_flag_spec_F77='-R$libdir'
19614 hardcode_shlibpath_var_F77=no
19616 solaris2.[0-5] | solaris2.[0-5].*) ;;
19617 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19618 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19620 link_all_deplibs_F77=yes
19624 if test "x$host_vendor" = xsequent; then
19625 # Use $CC to link under sequent, because it throws in some extra .o
19626 # files that make .init and .fini sections work.
19627 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19629 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19631 hardcode_libdir_flag_spec_F77='-L$libdir'
19632 hardcode_direct_F77=yes
19633 hardcode_minus_L_F77=yes
19634 hardcode_shlibpath_var_F77=no
19638 case $host_vendor in
19640 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19641 hardcode_direct_F77=yes # is this really true???
19644 ## LD is ld it makes a PLAMLIB
19645 ## CC just makes a GrossModule.
19646 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19647 reload_cmds_F77='$CC -r -o $output$reload_objs'
19648 hardcode_direct_F77=no
19651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19655 runpath_var='LD_RUN_PATH'
19656 hardcode_shlibpath_var_F77=no
19660 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19661 hardcode_shlibpath_var_F77=no
19662 export_dynamic_flag_spec_F77='-Bexport'
19666 if test -d /usr/nec; then
19667 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19668 hardcode_shlibpath_var_F77=no
19669 runpath_var=LD_RUN_PATH
19670 hardcode_runpath_var=yes
19676 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19677 hardcode_direct_F77=yes
19678 hardcode_minus_L_F77=no
19679 hardcode_shlibpath_var_F77=no
19680 hardcode_runpath_var=yes
19681 runpath_var=LD_RUN_PATH
19684 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19685 no_undefined_flag_F77='${wl}-z ${wl}text'
19686 if test "$GCC" = yes; then
19687 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19689 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19691 runpath_var='LD_RUN_PATH'
19692 hardcode_shlibpath_var_F77=no
19696 no_undefined_flag_F77=' -z text'
19697 # $CC -shared without GNU ld will not create a library from C++
19698 # object files and a static libstdc++, better avoid it by now
19699 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19700 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19701 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19702 hardcode_libdir_flag_spec_F77=
19703 hardcode_shlibpath_var_F77=no
19704 runpath_var='LD_RUN_PATH'
19708 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19709 hardcode_libdir_flag_spec_F77='-L$libdir'
19710 hardcode_shlibpath_var_F77=no
19719 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19720 echo "${ECHO_T}$ld_shlibs_F77" >&6
19721 test "$ld_shlibs_F77" = no && can_build_shared=no
19723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19724 if test "$GCC" = yes; then
19725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19729 # Do we need to explicitly link libc?
19731 case "x$archive_cmds_need_lc_F77" in
19733 # Assume -lc should be added
19734 archive_cmds_need_lc_F77=yes
19736 if test "$enable_shared" = yes && test "$GCC" = yes; then
19737 case $archive_cmds_F77 in
19739 # FIXME: we may have to deal with multi-command sequences.
19742 # Test whether the compiler implicitly links with -lc since on some
19743 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19744 # to ld, don't add -lc before -lgcc.
19745 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19746 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19748 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751 (eval $ac_compile) 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } 2>conftest.err; then
19757 libobjs=conftest.$ac_objext
19759 wl=$lt_prog_compiler_wl_F77
19765 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19766 allow_undefined_flag_F77=
19767 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19768 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }
19773 archive_cmds_need_lc_F77=no
19775 archive_cmds_need_lc_F77=yes
19777 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19779 cat conftest.err 1>&5
19782 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19783 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19790 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19791 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19792 library_names_spec=
19793 libname_spec='lib$name'
19797 postuninstall_cmds=
19801 shlibpath_overrides_runpath=unknown
19803 dynamic_linker="$host_os ld.so"
19804 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19805 if test "$GCC" = yes; then
19806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19807 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19808 # if the path contains ";" then we assume it to be the separator
19809 # otherwise default to the standard path separator (i.e. ":") - it is
19810 # assumed that no part of a normal pathname contains ";" but that should
19811 # okay in the real world where ";" in dirpaths is itself problematic.
19812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19817 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19819 need_lib_prefix=unknown
19820 hardcode_into_libs=no
19822 # when you set need_version to no, make sure it does not cause -set_version
19823 # flags to be left without arguments
19824 need_version=unknown
19829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19830 shlibpath_var=LIBPATH
19832 # AIX 3 has no versioning support, so we append a major version to the name.
19833 soname_spec='${libname}${release}${shared_ext}$major'
19840 hardcode_into_libs=yes
19841 if test "$host_cpu" = ia64; then
19842 # AIX 5 supports IA64
19843 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19844 shlibpath_var=LD_LIBRARY_PATH
19846 # With GCC up to 2.95.x, collect2 would create an import file
19847 # for dependence libraries. The import file would start with
19848 # the line `#! .'. This would cause the generated library to
19849 # depend on `.', always an invalid library. This was fixed in
19850 # development snapshots of GCC prior to 3.0.
19852 aix4 | aix4.[01] | aix4.[01].*)
19853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19855 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19858 can_build_shared=no
19862 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19863 # soname into executable. Probably we can add versioning support to
19864 # collect2, so additional links can be useful in future.
19865 if test "$aix_use_runtimelinking" = yes; then
19866 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19867 # instead of lib<name>.a to let people know that these are not
19868 # typical AIX shared libraries.
19869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19871 # We preserve .a as extension for shared libraries through AIX4.2
19872 # and later when we are not doing run time linking.
19873 library_names_spec='${libname}${release}.a $libname.a'
19874 soname_spec='${libname}${release}${shared_ext}$major'
19876 shlibpath_var=LIBPATH
19881 library_names_spec='$libname.ixlibrary $libname.a'
19882 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19883 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'
19887 library_names_spec='${libname}${shared_ext}'
19888 dynamic_linker="$host_os ld.so"
19889 shlibpath_var=LIBRARY_PATH
19895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19896 soname_spec='${libname}${release}${shared_ext}$major'
19897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19898 shlibpath_var=LD_LIBRARY_PATH
19899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19901 # the default ld.so.conf also contains /usr/contrib/lib and
19902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19903 # libtool to hard-code these into programs
19906 cygwin* | mingw* | pw32*)
19907 version_type=windows
19912 case $GCC,$host_os in
19913 yes,cygwin* | yes,mingw* | yes,pw32*)
19914 library_names_spec='$libname.dll.a'
19915 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19916 postinstall_cmds='base_file=`basename \${file}`~
19917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19918 dldir=$destdir/`dirname \$dlpath`~
19919 test -d \$dldir || mkdir -p \$dldir~
19920 $install_prog $dir/$dlname \$dldir/$dlname'
19921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19922 dlpath=$dir/\$dldll~
19924 shlibpath_overrides_runpath=yes
19928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19929 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19930 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19933 # MinGW DLLs use traditional 'lib' prefix
19934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19936 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19937 # It is most probably a Windows format PATH printed by
19938 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19939 # path with ; separators, and with drive letters. We can handle the
19940 # drive letters (cygwin fileutils understands them), so leave them,
19941 # especially as we might pass files found there to a mingw objdump,
19942 # which wouldn't understand a cygwinified path. Ahh.
19943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19949 # pw32 DLLs use 'pw' prefix rather than 'lib'
19950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19959 dynamic_linker='Win32 ld.exe'
19960 # FIXME: first we should search . and the directory the executable is in
19964 darwin* | rhapsody*)
19965 dynamic_linker="$host_os dyld"
19966 version_type=darwin
19969 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19970 soname_spec='${libname}${release}${major}$shared_ext'
19971 shlibpath_overrides_runpath=yes
19972 shlibpath_var=DYLD_LIBRARY_PATH
19973 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19974 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19975 if test "$GCC" = yes; then
19976 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"`
19978 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19980 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19988 soname_spec='${libname}${release}${shared_ext}$major'
19989 shlibpath_var=LD_LIBRARY_PATH
20000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20001 soname_spec='${libname}${release}${shared_ext}$major'
20002 shlibpath_var=LD_LIBRARY_PATH
20003 shlibpath_overrides_runpath=no
20004 hardcode_into_libs=yes
20005 dynamic_linker='GNU ld.so'
20009 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20010 version_type=freebsd-$objformat
20011 case $version_type in
20013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20022 shlibpath_var=LD_LIBRARY_PATH
20025 shlibpath_overrides_runpath=yes
20027 freebsd3.01* | freebsdelf3.01*)
20028 shlibpath_overrides_runpath=yes
20029 hardcode_into_libs=yes
20032 shlibpath_overrides_runpath=no
20033 hardcode_into_libs=yes
20042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20043 soname_spec='${libname}${release}${shared_ext}$major'
20044 shlibpath_var=LD_LIBRARY_PATH
20045 hardcode_into_libs=yes
20048 hpux9* | hpux10* | hpux11*)
20049 # Give a soname corresponding to the major version so that dld.sl refuses to
20050 # link against other versions.
20054 case "$host_cpu" in
20057 hardcode_into_libs=yes
20058 dynamic_linker="$host_os dld.so"
20059 shlibpath_var=LD_LIBRARY_PATH
20060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20062 soname_spec='${libname}${release}${shared_ext}$major'
20063 if test "X$HPUX_IA64_MODE" = X32; then
20064 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20066 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20072 hardcode_into_libs=yes
20073 dynamic_linker="$host_os dld.sl"
20074 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20077 soname_spec='${libname}${release}${shared_ext}$major'
20078 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20083 dynamic_linker="$host_os dld.sl"
20084 shlibpath_var=SHLIB_PATH
20085 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20087 soname_spec='${libname}${release}${shared_ext}$major'
20090 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20091 postinstall_cmds='chmod 555 $lib'
20094 irix5* | irix6* | nonstopux*)
20096 nonstopux*) version_type=nonstopux ;;
20098 if test "$lt_cv_prog_gnu_ld" = yes; then
20106 soname_spec='${libname}${release}${shared_ext}$major'
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20109 irix5* | nonstopux*)
20110 libsuff= shlibsuff=
20113 case $LD in # libtool.m4 will add one of these switches to LD
20114 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20115 libsuff= shlibsuff= libmagic=32-bit;;
20116 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20117 libsuff=32 shlibsuff=N32 libmagic=N32;;
20118 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20119 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20120 *) libsuff= shlibsuff= libmagic=never-match;;
20124 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20125 shlibpath_overrides_runpath=no
20126 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20127 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20128 hardcode_into_libs=yes
20131 # No shared lib support for Linux oldld, aout, or coff.
20132 linux*oldld* | linux*aout* | linux*coff*)
20136 # This must be Linux ELF.
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20144 shlibpath_var=LD_LIBRARY_PATH
20145 shlibpath_overrides_runpath=no
20146 # This implies no fast_install, which is unacceptable.
20147 # Some rework will be needed to allow for fast_install
20148 # before this can be enabled.
20149 hardcode_into_libs=yes
20151 # Append ld.so.conf contents to the search path
20152 if test -f /etc/ld.so.conf; then
20153 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20154 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20157 # We used to test for /lib/ld.so.1 and disable shared libraries on
20158 # powerpc, because MkLinux only supported shared libraries with the
20159 # GNU dynamic linker. Since this was broken with cross compilers,
20160 # most powerpc-linux boxes support dynamic linking these days and
20161 # people can always --disable-shared, the test was removed, and we
20162 # assume the GNU/Linux dynamic linker is in use.
20163 dynamic_linker='GNU/Linux ld.so'
20170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20171 soname_spec='${libname}${release}${shared_ext}$major'
20172 shlibpath_var=LD_LIBRARY_PATH
20173 shlibpath_overrides_runpath=no
20174 hardcode_into_libs=yes
20175 dynamic_linker='GNU ld.so'
20182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20185 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
20191 shlibpath_var=LD_LIBRARY_PATH
20192 shlibpath_overrides_runpath=yes
20193 hardcode_into_libs=yes
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 shlibpath_overrides_runpath=yes
20207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20208 soname_spec='${libname}${release}${shared_ext}$major'
20209 shlibpath_var=LD_LIBRARY_PATH
20210 shlibpath_overrides_runpath=yes
20217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20219 shlibpath_var=LD_LIBRARY_PATH
20220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20222 openbsd2.[89] | openbsd2.[89].*)
20223 shlibpath_overrides_runpath=no
20226 shlibpath_overrides_runpath=yes
20230 shlibpath_overrides_runpath=yes
20235 libname_spec='$name'
20238 library_names_spec='$libname${shared_ext} $libname.a'
20239 dynamic_linker='OS/2 ld.exe'
20240 shlibpath_var=LIBPATH
20243 osf3* | osf4* | osf5*)
20247 soname_spec='${libname}${release}${shared_ext}$major'
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249 shlibpath_var=LD_LIBRARY_PATH
20250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20256 soname_spec='${libname}${release}${shared_ext}$major'
20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258 shlibpath_var=LD_LIBRARY_PATH
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266 soname_spec='${libname}${release}${shared_ext}$major'
20267 shlibpath_var=LD_LIBRARY_PATH
20268 shlibpath_overrides_runpath=yes
20269 hardcode_into_libs=yes
20270 # ldd complains unless libraries are executable
20271 postinstall_cmds='chmod +x $lib'
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20278 shlibpath_var=LD_LIBRARY_PATH
20279 shlibpath_overrides_runpath=yes
20280 if test "$with_gnu_ld" = yes; then
20286 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20289 soname_spec='${libname}${release}${shared_ext}$major'
20290 shlibpath_var=LD_LIBRARY_PATH
20291 case $host_vendor in
20293 shlibpath_overrides_runpath=no
20295 export_dynamic_flag_spec='${wl}-Blargedynsym'
20296 runpath_var=LD_RUN_PATH
20304 shlibpath_overrides_runpath=no
20305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20311 if test -d /usr/nec ;then
20313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20314 soname_spec='$libname${shared_ext}.$major'
20315 shlibpath_var=LD_LIBRARY_PATH
20321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20322 soname_spec='${libname}${release}${shared_ext}$major'
20323 shlibpath_var=LD_LIBRARY_PATH
20330 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20331 echo "${ECHO_T}$dynamic_linker" >&6
20332 test "$dynamic_linker" = no && can_build_shared=no
20334 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20335 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20336 hardcode_action_F77=
20337 if test -n "$hardcode_libdir_flag_spec_F77" || \
20338 test -n "$runpath_var_F77" || \
20339 test "X$hardcode_automatic_F77" = "Xyes" ; then
20341 # We can hardcode non-existant directories.
20342 if test "$hardcode_direct_F77" != no &&
20343 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20344 # have to relink, otherwise we might link with an installed library
20345 # when we should be linking with a yet-to-be-installed one
20346 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20347 test "$hardcode_minus_L_F77" != no; then
20348 # Linking always hardcodes the temporary library directory.
20349 hardcode_action_F77=relink
20351 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20352 hardcode_action_F77=immediate
20355 # We cannot hardcode anything, or else we can only hardcode existing
20357 hardcode_action_F77=unsupported
20359 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20360 echo "${ECHO_T}$hardcode_action_F77" >&6
20362 if test "$hardcode_action_F77" = relink; then
20363 # Fast installation is not supported
20364 enable_fast_install=no
20365 elif test "$shlibpath_overrides_runpath" = yes ||
20366 test "$enable_shared" = no; then
20367 # Fast installation is not necessary
20368 enable_fast_install=needless
20373 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20374 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20375 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20376 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20377 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20378 echo "$as_me:$LINENO: result: yes" >&5
20379 echo "${ECHO_T}yes" >&6
20381 # FIXME - insert some real tests, host_os isn't really good enough
20384 if test -n "$STRIP" ; then
20385 striplib="$STRIP -x"
20386 echo "$as_me:$LINENO: result: yes" >&5
20387 echo "${ECHO_T}yes" >&6
20389 echo "$as_me:$LINENO: result: no" >&5
20390 echo "${ECHO_T}no" >&6
20394 echo "$as_me:$LINENO: result: no" >&5
20395 echo "${ECHO_T}no" >&6
20402 # The else clause should only fire when bootstrapping the
20403 # libtool distribution, otherwise you forgot to ship ltmain.sh
20404 # with your package, and you will get complaints that there are
20405 # no rules to generate ltmain.sh.
20406 if test -f "$ltmain"; then
20407 # See if we are running on zsh, and set the options which allow our commands through
20408 # without removal of \ escapes.
20409 if test -n "${ZSH_VERSION+set}" ; then
20410 setopt NO_GLOB_SUBST
20412 # Now quote all the things that may contain metacharacters while being
20413 # careful not to overquote the AC_SUBSTed values. We take copies of the
20414 # variables and quote the copies for generation of the libtool script.
20415 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20417 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20418 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20419 deplibs_check_method reload_flag reload_cmds need_locks \
20420 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20421 lt_cv_sys_global_symbol_to_c_name_address \
20422 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20423 old_postinstall_cmds old_postuninstall_cmds \
20427 lt_prog_compiler_wl_F77 \
20428 lt_prog_compiler_pic_F77 \
20429 lt_prog_compiler_static_F77 \
20430 lt_prog_compiler_no_builtin_flag_F77 \
20431 export_dynamic_flag_spec_F77 \
20432 thread_safe_flag_spec_F77 \
20433 whole_archive_flag_spec_F77 \
20434 enable_shared_with_static_runtimes_F77 \
20435 old_archive_cmds_F77 \
20436 old_archive_from_new_cmds_F77 \
20437 predep_objects_F77 \
20438 postdep_objects_F77 \
20441 compiler_lib_search_path_F77 \
20443 archive_expsym_cmds_F77 \
20444 postinstall_cmds_F77 \
20445 postuninstall_cmds_F77 \
20446 old_archive_from_expsyms_cmds_F77 \
20447 allow_undefined_flag_F77 \
20448 no_undefined_flag_F77 \
20449 export_symbols_cmds_F77 \
20450 hardcode_libdir_flag_spec_F77 \
20451 hardcode_libdir_flag_spec_ld_F77 \
20452 hardcode_libdir_separator_F77 \
20453 hardcode_automatic_F77 \
20455 module_expsym_cmds_F77 \
20456 lt_cv_prog_compiler_c_o_F77 \
20457 exclude_expsyms_F77 \
20458 include_expsyms_F77; do
20461 old_archive_cmds_F77 | \
20462 old_archive_from_new_cmds_F77 | \
20463 archive_cmds_F77 | \
20464 archive_expsym_cmds_F77 | \
20465 module_cmds_F77 | \
20466 module_expsym_cmds_F77 | \
20467 old_archive_from_expsyms_cmds_F77 | \
20468 export_symbols_cmds_F77 | \
20469 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20470 postinstall_cmds | postuninstall_cmds | \
20471 old_postinstall_cmds | old_postuninstall_cmds | \
20472 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20473 # Double-quote double-evaled strings.
20474 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20483 *'\$0 --fallback-echo"')
20484 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20490 cat <<__EOF__ >> "$cfgfile"
20491 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20493 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20495 # Shell to use when invoking shell scripts.
20498 # Whether or not to build shared libraries.
20499 build_libtool_libs=$enable_shared
20501 # Whether or not to build static libraries.
20502 build_old_libs=$enable_static
20504 # Whether or not to add -lc for building shared libraries.
20505 build_libtool_need_lc=$archive_cmds_need_lc_F77
20507 # Whether or not to disallow shared libs when runtime libs are static
20508 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20510 # Whether or not to optimize for fast installation.
20511 fast_install=$enable_fast_install
20514 host_alias=$host_alias
20517 # An echo program that does not interpret backslashes.
20522 AR_FLAGS=$lt_AR_FLAGS
20527 # A language-specific compiler.
20528 CC=$lt_compiler_F77
20530 # Is the compiler the GNU C compiler?
20536 # The linker used to build libraries.
20539 # Whether we need hard or soft links.
20542 # A BSD-compatible nm program.
20545 # A symbol stripping program
20548 # Used to examine libraries when file_magic_cmd begins "file"
20549 MAGIC_CMD=$MAGIC_CMD
20551 # Used on cygwin: DLL creation program.
20554 # Used on cygwin: object dumper.
20557 # Used on cygwin: assembler.
20560 # The name of the directory that contains temporary libtool files.
20563 # How to create reloadable object files.
20564 reload_flag=$lt_reload_flag
20565 reload_cmds=$lt_reload_cmds
20567 # How to pass a linker flag through the compiler.
20568 wl=$lt_lt_prog_compiler_wl_F77
20570 # Object file suffix (normally "o").
20571 objext="$ac_objext"
20573 # Old archive suffix (normally "a").
20576 # Shared library suffix (normally ".so").
20577 shrext_cmds='$shrext_cmds'
20579 # Executable file suffix (normally "").
20582 # Additional compiler flags for building library objects.
20583 pic_flag=$lt_lt_prog_compiler_pic_F77
20586 # What is the maximum length of a command?
20587 max_cmd_len=$lt_cv_sys_max_cmd_len
20589 # Does compiler simultaneously support -c and -o options?
20590 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20592 # Must we lock files when doing compilation ?
20593 need_locks=$lt_need_locks
20595 # Do we need the lib prefix for modules?
20596 need_lib_prefix=$need_lib_prefix
20598 # Do we need a version for libraries?
20599 need_version=$need_version
20601 # Whether dlopen is supported.
20602 dlopen_support=$enable_dlopen
20604 # Whether dlopen of programs is supported.
20605 dlopen_self=$enable_dlopen_self
20607 # Whether dlopen of statically linked programs is supported.
20608 dlopen_self_static=$enable_dlopen_self_static
20610 # Compiler flag to prevent dynamic linking.
20611 link_static_flag=$lt_lt_prog_compiler_static_F77
20613 # Compiler flag to turn off builtin functions.
20614 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20616 # Compiler flag to allow reflexive dlopens.
20617 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20619 # Compiler flag to generate shared objects directly from archives.
20620 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20622 # Compiler flag to generate thread-safe objects.
20623 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20625 # Library versioning type.
20626 version_type=$version_type
20628 # Format of library name prefix.
20629 libname_spec=$lt_libname_spec
20631 # List of archive names. First name is the real one, the rest are links.
20632 # The last name is the one that the linker finds with -lNAME.
20633 library_names_spec=$lt_library_names_spec
20635 # The coded name of the library, if different from the real name.
20636 soname_spec=$lt_soname_spec
20638 # Commands used to build and install an old-style archive.
20640 old_archive_cmds=$lt_old_archive_cmds_F77
20641 old_postinstall_cmds=$lt_old_postinstall_cmds
20642 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20644 # Create an old-style archive from a shared archive.
20645 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20647 # Create a temporary old-style archive to link instead of a shared archive.
20648 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20650 # Commands used to build and install a shared archive.
20651 archive_cmds=$lt_archive_cmds_F77
20652 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20653 postinstall_cmds=$lt_postinstall_cmds
20654 postuninstall_cmds=$lt_postuninstall_cmds
20656 # Commands used to build a loadable module (assumed same as above if empty)
20657 module_cmds=$lt_module_cmds_F77
20658 module_expsym_cmds=$lt_module_expsym_cmds_F77
20660 # Commands to strip libraries.
20661 old_striplib=$lt_old_striplib
20662 striplib=$lt_striplib
20664 # Dependencies to place before the objects being linked to create a
20666 predep_objects=$lt_predep_objects_F77
20668 # Dependencies to place after the objects being linked to create a
20670 postdep_objects=$lt_postdep_objects_F77
20672 # Dependencies to place before the objects being linked to create a
20674 predeps=$lt_predeps_F77
20676 # Dependencies to place after the objects being linked to create a
20678 postdeps=$lt_postdeps_F77
20680 # The library search path used internally by the compiler when linking
20681 # a shared library.
20682 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20684 # Method to check whether dependent libraries are shared objects.
20685 deplibs_check_method=$lt_deplibs_check_method
20687 # Command to use when deplibs_check_method == file_magic.
20688 file_magic_cmd=$lt_file_magic_cmd
20690 # Flag that allows shared libraries with undefined symbols to be built.
20691 allow_undefined_flag=$lt_allow_undefined_flag_F77
20693 # Flag that forces no undefined symbols.
20694 no_undefined_flag=$lt_no_undefined_flag_F77
20696 # Commands used to finish a libtool library installation in a directory.
20697 finish_cmds=$lt_finish_cmds
20699 # Same as above, but a single script fragment to be evaled but not shown.
20700 finish_eval=$lt_finish_eval
20702 # Take the output of nm and produce a listing of raw symbols and C names.
20703 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20705 # Transform the output of nm in a proper C declaration
20706 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20708 # Transform the output of nm in a C name address pair
20709 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20711 # This is the shared library runtime path variable.
20712 runpath_var=$runpath_var
20714 # This is the shared library path variable.
20715 shlibpath_var=$shlibpath_var
20717 # Is shlibpath searched before the hard-coded library search path?
20718 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20720 # How to hardcode a shared library path into an executable.
20721 hardcode_action=$hardcode_action_F77
20723 # Whether we should hardcode library paths into libraries.
20724 hardcode_into_libs=$hardcode_into_libs
20726 # Flag to hardcode \$libdir into a binary during linking.
20727 # This must work even if \$libdir does not exist.
20728 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20730 # If ld is used when linking, flag to hardcode \$libdir into
20731 # a binary during linking. This must work even if \$libdir does
20733 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20735 # Whether we need a single -rpath flag with a separated argument.
20736 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20738 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20739 # resulting binary.
20740 hardcode_direct=$hardcode_direct_F77
20742 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20743 # resulting binary.
20744 hardcode_minus_L=$hardcode_minus_L_F77
20746 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20747 # the resulting binary.
20748 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20750 # Set to yes if building a shared library automatically hardcodes DIR into the library
20751 # and all subsequent libraries and executables linked against it.
20752 hardcode_automatic=$hardcode_automatic_F77
20754 # Variables whose values should be saved in libtool wrapper scripts and
20755 # restored at relink time.
20756 variables_saved_for_relink="$variables_saved_for_relink"
20758 # Whether libtool must link a program against all its dependency libraries.
20759 link_all_deplibs=$link_all_deplibs_F77
20761 # Compile-time system search path for libraries
20762 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20764 # Run-time system search path for libraries
20765 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20767 # Fix the shell variable \$srcfile for the compiler.
20768 fix_srcfile_path="$fix_srcfile_path_F77"
20770 # Set to yes if exported symbols are required.
20771 always_export_symbols=$always_export_symbols_F77
20773 # The commands to list exported symbols.
20774 export_symbols_cmds=$lt_export_symbols_cmds_F77
20776 # The commands to extract the exported symbol list from a shared archive.
20777 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20779 # Symbols that should not be listed in the preloaded symbols.
20780 exclude_expsyms=$lt_exclude_expsyms_F77
20782 # Symbols that must always be exported.
20783 include_expsyms=$lt_include_expsyms_F77
20785 # ### END LIBTOOL TAG CONFIG: $tagname
20791 # If there is no Makefile yet, we rely on a make rule to execute
20792 # `config.status --recheck' to rerun these tests and create the
20793 # libtool script then.
20794 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20795 if test -f "$ltmain_in"; then
20796 test -f Makefile && make "$ltmain"
20802 ac_cpp='$CPP $CPPFLAGS'
20803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20815 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20817 ac_cpp='$CPP $CPPFLAGS'
20818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20823 # Source file extension for Java test sources.
20826 # Object file extension for compiled Java test sources.
20830 # Code to be used in simple compile tests
20831 lt_simple_compile_test_code="class foo {}\n"
20833 # Code to be used in simple link tests
20834 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20836 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20838 # If no C compiler was specified, use CC.
20841 # Allow CC to be a program name with arguments.
20845 # Allow CC to be a program name with arguments.
20851 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20852 archive_cmds_need_lc_GCJ=no
20855 lt_prog_compiler_no_builtin_flag_GCJ=
20857 if test "$GCC" = yes; then
20858 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20861 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20862 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20863 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20864 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 lt_cv_prog_compiler_rtti_exceptions=no
20867 ac_outfile=conftest.$ac_objext
20868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20869 lt_compiler_flag="-fno-rtti -fno-exceptions"
20870 # Insert the option either (1) after the last *FLAGS variable, or
20871 # (2) before a word containing "conftest.", or (3) at the end.
20872 # Note that $ac_compile itself does not contain backslashes and begins
20873 # with a dollar sign (not a hyphen), so the echo should work correctly.
20874 # The option is referenced via a variable to avoid confusing sed.
20875 lt_compile=`echo "$ac_compile" | $SED \
20876 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20878 -e 's:$: $lt_compiler_flag:'`
20879 (eval echo "\"\$as_me:20879: $lt_compile\"" >&5)
20880 (eval "$lt_compile" 2>conftest.err)
20882 cat conftest.err >&5
20883 echo "$as_me:20883: \$? = $ac_status" >&5
20884 if (exit $ac_status) && test -s "$ac_outfile"; then
20885 # The compiler can only warn and ignore the option if not recognized
20886 # So say no if there are warnings
20887 if test ! -s conftest.err; then
20888 lt_cv_prog_compiler_rtti_exceptions=yes
20894 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20895 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20897 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20898 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20905 lt_prog_compiler_wl_GCJ=
20906 lt_prog_compiler_pic_GCJ=
20907 lt_prog_compiler_static_GCJ=
20909 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20910 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20912 if test "$GCC" = yes; then
20913 lt_prog_compiler_wl_GCJ='-Wl,'
20914 lt_prog_compiler_static_GCJ='-static'
20918 # All AIX code is PIC.
20919 if test "$host_cpu" = ia64; then
20920 # AIX 5 now supports IA64 processor
20921 lt_prog_compiler_static_GCJ='-Bstatic'
20926 # FIXME: we need at least 68020 code to build shared libraries, but
20927 # adding the `-m68020' flag to GCC prevents building anything better,
20929 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20932 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20933 # PIC is the default for these OSes.
20936 mingw* | pw32* | os2*)
20937 # This hack is so that the source file can tell whether it is being
20938 # built for inclusion in a dll (and should export symbols for example).
20939 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20942 darwin* | rhapsody*)
20943 # PIC is the default on this platform
20944 # Common symbols not allowed in MH_DYLIB files
20945 lt_prog_compiler_pic_GCJ='-fno-common'
20949 # Just because we use GCC doesn't mean we suddenly get shared libraries
20950 # on systems that don't support them.
20951 lt_prog_compiler_can_build_shared_GCJ=no
20956 if test -d /usr/nec; then
20957 lt_prog_compiler_pic_GCJ=-Kconform_pic
20962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20963 # not for PA HP-UX.
20964 case "$host_cpu" in
20969 lt_prog_compiler_pic_GCJ='-fPIC'
20975 lt_prog_compiler_pic_GCJ='-fPIC'
20979 # PORTME Check for flag to pass linker flags through the system compiler.
20982 lt_prog_compiler_wl_GCJ='-Wl,'
20983 if test "$host_cpu" = ia64; then
20984 # AIX 5 now supports IA64 processor
20985 lt_prog_compiler_static_GCJ='-Bstatic'
20987 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20991 # PIC is the default on this platform
20992 # Common symbols not allowed in MH_DYLIB files
20993 case "$cc_basename" in
20995 lt_prog_compiler_pic_GCJ='-qnocommon'
20996 lt_prog_compiler_wl_GCJ='-Wl,'
21001 mingw* | pw32* | os2*)
21002 # This hack is so that the source file can tell whether it is being
21003 # built for inclusion in a dll (and should export symbols for example).
21004 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21007 hpux9* | hpux10* | hpux11*)
21008 lt_prog_compiler_wl_GCJ='-Wl,'
21009 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21010 # not for PA HP-UX.
21011 case "$host_cpu" in
21016 lt_prog_compiler_pic_GCJ='+Z'
21019 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21020 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21023 irix5* | irix6* | nonstopux*)
21024 lt_prog_compiler_wl_GCJ='-Wl,'
21025 # PIC (with -KPIC) is the default.
21026 lt_prog_compiler_static_GCJ='-non_shared'
21030 lt_prog_compiler_pic_GCJ='-KPIC'
21031 lt_prog_compiler_static_GCJ='-Bstatic'
21037 lt_prog_compiler_wl_GCJ='-Wl,'
21038 lt_prog_compiler_pic_GCJ='-KPIC'
21039 lt_prog_compiler_static_GCJ='-static'
21042 lt_prog_compiler_wl_GCJ='-Wl,'
21043 # All Alpha code is PIC.
21044 lt_prog_compiler_static_GCJ='-non_shared'
21049 osf3* | osf4* | osf5*)
21050 lt_prog_compiler_wl_GCJ='-Wl,'
21051 # All OSF/1 code is PIC.
21052 lt_prog_compiler_static_GCJ='-non_shared'
21056 lt_prog_compiler_pic_GCJ='-Kpic'
21057 lt_prog_compiler_static_GCJ='-dn'
21061 lt_prog_compiler_wl_GCJ='-Wl,'
21062 lt_prog_compiler_pic_GCJ='-KPIC'
21063 lt_prog_compiler_static_GCJ='-Bstatic'
21067 lt_prog_compiler_wl_GCJ='-Qoption ld '
21068 lt_prog_compiler_pic_GCJ='-PIC'
21069 lt_prog_compiler_static_GCJ='-Bstatic'
21072 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21073 lt_prog_compiler_wl_GCJ='-Wl,'
21074 lt_prog_compiler_pic_GCJ='-KPIC'
21075 lt_prog_compiler_static_GCJ='-Bstatic'
21079 if test -d /usr/nec ;then
21080 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21081 lt_prog_compiler_static_GCJ='-Bstatic'
21086 lt_prog_compiler_pic_GCJ='-pic'
21087 lt_prog_compiler_static_GCJ='-Bstatic'
21091 lt_prog_compiler_can_build_shared_GCJ=no
21096 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21097 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21100 # Check to make sure the PIC flag actually works.
21102 if test -n "$lt_prog_compiler_pic_GCJ"; then
21104 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21105 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21106 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 lt_prog_compiler_pic_works_GCJ=no
21110 ac_outfile=conftest.$ac_objext
21111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21112 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21113 # Insert the option either (1) after the last *FLAGS variable, or
21114 # (2) before a word containing "conftest.", or (3) at the end.
21115 # Note that $ac_compile itself does not contain backslashes and begins
21116 # with a dollar sign (not a hyphen), so the echo should work correctly.
21117 # The option is referenced via a variable to avoid confusing sed.
21118 lt_compile=`echo "$ac_compile" | $SED \
21119 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21121 -e 's:$: $lt_compiler_flag:'`
21122 (eval echo "\"\$as_me:21122: $lt_compile\"" >&5)
21123 (eval "$lt_compile" 2>conftest.err)
21125 cat conftest.err >&5
21126 echo "$as_me:21126: \$? = $ac_status" >&5
21127 if (exit $ac_status) && test -s "$ac_outfile"; then
21128 # The compiler can only warn and ignore the option if not recognized
21129 # So say no if there are warnings
21130 if test ! -s conftest.err; then
21131 lt_prog_compiler_pic_works_GCJ=yes
21137 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21138 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21140 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21141 case $lt_prog_compiler_pic_GCJ in
21143 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21146 lt_prog_compiler_pic_GCJ=
21147 lt_prog_compiler_can_build_shared_GCJ=no
21152 # For platforms which do not support PIC, -DPIC is meaningless:
21154 lt_prog_compiler_pic_GCJ=
21157 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21161 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21162 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21163 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21164 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 lt_cv_prog_compiler_c_o_GCJ=no
21167 $rm -r conftest 2>/dev/null
21171 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21173 lt_compiler_flag="-o out/conftest2.$ac_objext"
21174 # Insert the option either (1) after the last *FLAGS variable, or
21175 # (2) before a word containing "conftest.", or (3) at the end.
21176 # Note that $ac_compile itself does not contain backslashes and begins
21177 # with a dollar sign (not a hyphen), so the echo should work correctly.
21178 lt_compile=`echo "$ac_compile" | $SED \
21179 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21181 -e 's:$: $lt_compiler_flag:'`
21182 (eval echo "\"\$as_me:21182: $lt_compile\"" >&5)
21183 (eval "$lt_compile" 2>out/conftest.err)
21185 cat out/conftest.err >&5
21186 echo "$as_me:21186: \$? = $ac_status" >&5
21187 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21189 # The compiler can only warn and ignore the option if not recognized
21190 # So say no if there are warnings
21191 if test ! -s out/conftest.err; then
21192 lt_cv_prog_compiler_c_o_GCJ=yes
21197 # SGI C++ compiler will create directory out/ii_files/ for
21198 # template instantiation
21199 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21200 $rm out/* && rmdir out
21206 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21207 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21210 hard_links="nottested"
21211 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21212 # do not overwrite the value of need_locks provided by the user
21213 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21214 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21219 ln conftest.a conftest.b 2>&5 || hard_links=no
21220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21221 echo "$as_me:$LINENO: result: $hard_links" >&5
21222 echo "${ECHO_T}$hard_links" >&6
21223 if test "$hard_links" = no; then
21224 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21225 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21232 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21233 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21236 allow_undefined_flag_GCJ=
21237 enable_shared_with_static_runtimes_GCJ=no
21239 archive_expsym_cmds_GCJ=
21240 old_archive_From_new_cmds_GCJ=
21241 old_archive_from_expsyms_cmds_GCJ=
21242 export_dynamic_flag_spec_GCJ=
21243 whole_archive_flag_spec_GCJ=
21244 thread_safe_flag_spec_GCJ=
21245 hardcode_libdir_flag_spec_GCJ=
21246 hardcode_libdir_flag_spec_ld_GCJ=
21247 hardcode_libdir_separator_GCJ=
21248 hardcode_direct_GCJ=no
21249 hardcode_minus_L_GCJ=no
21250 hardcode_shlibpath_var_GCJ=unsupported
21251 link_all_deplibs_GCJ=unknown
21252 hardcode_automatic_GCJ=no
21254 module_expsym_cmds_GCJ=
21255 always_export_symbols_GCJ=no
21256 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21257 # include_expsyms should be a list of space-separated symbols to be *always*
21258 # included in the symbol list
21259 include_expsyms_GCJ=
21260 # exclude_expsyms can be an extended regexp of symbols to exclude
21261 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21262 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21263 # as well as any symbol that contains `d'.
21264 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21265 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21266 # platforms (ab)use it in PIC code, but their linkers get confused if
21267 # the symbol is explicitly referenced. Since portable code cannot
21268 # rely on this symbol name, it's probably fine to never include it in
21269 # preloaded symbol tables.
21270 extract_expsyms_cmds=
21273 cygwin* | mingw* | pw32*)
21274 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21275 # When not using gcc, we currently assume that we are using
21276 # Microsoft Visual C++.
21277 if test "$GCC" != yes; then
21287 if test "$with_gnu_ld" = yes; then
21288 # If archive_cmds runs LD, not CC, wlarc should be empty
21291 # See if GNU ld supports shared libraries.
21293 aix3* | aix4* | aix5*)
21294 # On AIX/PPC, the GNU linker is very broken
21295 if test "$host_cpu" != ia64; then
21299 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21300 *** to be unable to reliably create shared libraries on AIX.
21301 *** Therefore, libtool is disabling shared libraries support. If you
21302 *** really care for shared libraries, you may want to modify your PATH
21303 *** so that a non-GNU linker is found, and then restart.
21310 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)'
21311 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21312 hardcode_minus_L_GCJ=yes
21314 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21315 # that the semantics of dynamic libraries on AmigaOS, at least up
21316 # to version 4, is to share data among multiple programs linked
21317 # with the same dynamic library. Since this doesn't match the
21318 # behavior of shared libraries on other platforms, we can't use
21324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21325 allow_undefined_flag_GCJ=unsupported
21326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21327 # support --undefined. This deserves some investigation. FIXME
21328 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21334 cygwin* | mingw* | pw32*)
21335 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21336 # as there is no search path for DLLs.
21337 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21338 allow_undefined_flag_GCJ=unsupported
21339 always_export_symbols_GCJ=no
21340 enable_shared_with_static_runtimes_GCJ=yes
21341 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21343 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21344 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21345 # If the export-symbols file already is a .def file (1st line
21346 # is EXPORTS), use it as is; otherwise, prepend...
21347 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21348 cp $export_symbols $output_objdir/$soname.def;
21350 echo EXPORTS > $output_objdir/$soname.def;
21351 cat $export_symbols >> $output_objdir/$soname.def;
21353 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21361 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21364 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21365 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21370 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21375 *** create shared libraries on Solaris systems. Therefore, libtool
21376 *** is disabling shared libraries support. We urge you to upgrade GNU
21377 *** binutils to release 2.9.1 or newer. Another option is to modify
21378 *** your PATH or compiler configuration so that the native linker is
21379 *** used, and then restart.
21382 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21383 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21384 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21391 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21393 hardcode_direct_GCJ=yes
21394 hardcode_shlibpath_var_GCJ=no
21398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21399 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21400 archive_cmds_GCJ="$tmp_archive_cmds"
21401 supports_anon_versioning=no
21402 case `$LD -v 2>/dev/null` in
21403 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21404 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21405 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21406 *\ 2.11.*) ;; # other 2.11 versions
21407 *) supports_anon_versioning=yes ;;
21409 if test $supports_anon_versioning = yes; then
21410 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21412 $echo "local: *; };" >> $output_objdir/$libname.ver~
21413 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21415 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21424 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21425 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21432 if test "$ld_shlibs_GCJ" = yes; then
21433 runpath_var=LD_RUN_PATH
21434 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21435 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21436 # ancient GNU ld didn't support --whole-archive et. al.
21437 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21438 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21440 whole_archive_flag_spec_GCJ=
21444 # PORTME fill in a description of your system's linker (not GNU ld)
21447 allow_undefined_flag_GCJ=unsupported
21448 always_export_symbols_GCJ=yes
21449 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'
21450 # Note: this linker hardcodes the directories in LIBPATH if there
21451 # are no directories specified by -L.
21452 hardcode_minus_L_GCJ=yes
21453 if test "$GCC" = yes && test -z "$link_static_flag"; then
21454 # Neither direct hardcoding nor static linking is supported with a
21456 hardcode_direct_GCJ=unsupported
21461 if test "$host_cpu" = ia64; then
21462 # On IA64, the linker does run time linking by default, so we don't
21463 # have to do anything special.
21464 aix_use_runtimelinking=no
21465 exp_sym_flag='-Bexport'
21468 # If we're using GNU nm, then we don't want the "-C" option.
21469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21470 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21471 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'
21473 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'
21475 aix_use_runtimelinking=no
21477 # Test if we are trying to use run time linking or normal
21478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21479 # need to do runtime linking.
21480 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21481 for ld_flag in $LDFLAGS; do
21482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21483 aix_use_runtimelinking=yes
21489 exp_sym_flag='-bexport'
21490 no_entry_flag='-bnoentry'
21493 # When large executables or shared objects are built, AIX ld can
21494 # have problems creating the table of contents. If linking a library
21495 # or program results in "error TOC overflow" add -mminimal-toc to
21496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21499 archive_cmds_GCJ=''
21500 hardcode_direct_GCJ=yes
21501 hardcode_libdir_separator_GCJ=':'
21502 link_all_deplibs_GCJ=yes
21504 if test "$GCC" = yes; then
21505 case $host_os in aix4.012|aix4.012.*)
21506 # We only want to do this on AIX 4.2 and lower, the check
21507 # below for broken collect2 doesn't work under 4.3+
21508 collect2name=`${CC} -print-prog-name=collect2`
21509 if test -f "$collect2name" && \
21510 strings "$collect2name" | grep resolve_lib_name >/dev/null
21512 # We have reworked collect2
21513 hardcode_direct_GCJ=yes
21515 # We have old collect2
21516 hardcode_direct_GCJ=unsupported
21517 # It fails to find uninstalled libraries when the uninstalled
21518 # path is not listed in the libpath. Setting hardcode_minus_L
21519 # to unsupported forces relinking
21520 hardcode_minus_L_GCJ=yes
21521 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21522 hardcode_libdir_separator_GCJ=
21525 shared_flag='-shared'
21528 if test "$host_cpu" = ia64; then
21529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21530 # chokes on -Wl,-G. The following line is correct:
21533 if test "$aix_use_runtimelinking" = yes; then
21534 shared_flag='${wl}-G'
21536 shared_flag='${wl}-bM:SRE'
21541 # It seems that -bexpall does not export symbols beginning with
21542 # underscore (_), so it is better to generate a list of symbols to export.
21543 always_export_symbols_GCJ=yes
21544 if test "$aix_use_runtimelinking" = yes; then
21545 # Warning - without using the other runtime loading flags (-brtl),
21546 # -berok will link without error, but may produce a broken library.
21547 allow_undefined_flag_GCJ='-berok'
21548 # Determine the default libpath from the value encoded in an empty executable.
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21564 rm -f conftest.$ac_objext conftest$ac_exeext
21565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21566 (eval $ac_link) 2>conftest.er1
21568 grep -v '^ *+' conftest.er1 >conftest.err
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } &&
21573 { ac_try='test -z "$ac_c_werror_flag"
21574 || test ! -s conftest.err'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; } &&
21580 { ac_try='test -s conftest$ac_exeext'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; }; then
21587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21589 # Check for a 64-bit object if we didn't find anything.
21590 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; }
21593 echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21597 rm -f conftest.err conftest.$ac_objext \
21598 conftest$ac_exeext conftest.$ac_ext
21599 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21601 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21602 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"
21604 if test "$host_cpu" = ia64; then
21605 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21606 allow_undefined_flag_GCJ="-z nodefs"
21607 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"
21609 # Determine the default libpath from the value encoded in an empty executable.
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21625 rm -f conftest.$ac_objext conftest$ac_exeext
21626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21627 (eval $ac_link) 2>conftest.er1
21629 grep -v '^ *+' conftest.er1 >conftest.err
21631 cat conftest.err >&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); } &&
21634 { ac_try='test -z "$ac_c_werror_flag"
21635 || test ! -s conftest.err'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; } &&
21641 { ac_try='test -s conftest$ac_exeext'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }; then
21648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21650 # Check for a 64-bit object if we didn't find anything.
21651 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; }
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21658 rm -f conftest.err conftest.$ac_objext \
21659 conftest$ac_exeext conftest.$ac_ext
21660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21662 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21663 # Warning - without using the other run time loading flags,
21664 # -berok will link without error, but may produce a broken library.
21665 no_undefined_flag_GCJ=' ${wl}-bernotok'
21666 allow_undefined_flag_GCJ=' ${wl}-berok'
21667 # -bexpall does not export symbols beginning with underscore (_)
21668 always_export_symbols_GCJ=yes
21669 # Exported symbols can be pulled into shared objects from archives
21670 whole_archive_flag_spec_GCJ=' '
21671 archive_cmds_need_lc_GCJ=yes
21672 # This is similar to how AIX traditionally builds it's shared libraries.
21673 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'
21679 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)'
21680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21681 hardcode_minus_L_GCJ=yes
21682 # see comment about different semantics on the GNU ld section
21687 export_dynamic_flag_spec_GCJ=-rdynamic
21690 cygwin* | mingw* | pw32*)
21691 # When not using gcc, we currently assume that we are using
21692 # Microsoft Visual C++.
21693 # hardcode_libdir_flag_spec is actually meaningless, as there is
21694 # no search path for DLLs.
21695 hardcode_libdir_flag_spec_GCJ=' '
21696 allow_undefined_flag_GCJ=unsupported
21697 # Tell ltmain to make .lib files, not .a files.
21699 # Tell ltmain to make .dll files, not .so files.
21701 # FIXME: Setting linknames here is a bad hack.
21702 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21703 # The linker will automatically build a .lib file if we build a DLL.
21704 old_archive_From_new_cmds_GCJ='true'
21705 # FIXME: Should let the user specify the lib program.
21706 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21707 fix_srcfile_path='`cygpath -w "$srcfile"`'
21708 enable_shared_with_static_runtimes_GCJ=yes
21711 darwin* | rhapsody*)
21713 rhapsody* | darwin1.[012])
21714 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21717 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21718 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21720 case ${MACOSX_DEPLOYMENT_TARGET} in
21722 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21725 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21731 archive_cmds_need_lc_GCJ=no
21732 hardcode_direct_GCJ=no
21733 hardcode_automatic_GCJ=yes
21734 hardcode_shlibpath_var_GCJ=unsupported
21735 whole_archive_flag_spec_GCJ=''
21736 link_all_deplibs_GCJ=yes
21737 if test "$GCC" = yes ; then
21738 output_verbose_link_cmd='echo'
21739 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21740 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21741 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21742 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}'
21743 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}'
21745 case "$cc_basename" in
21747 output_verbose_link_cmd='echo'
21748 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21749 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21750 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21751 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}'
21752 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}'
21762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21763 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21764 hardcode_shlibpath_var_GCJ=no
21771 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21772 # support. Future versions do this automatically, but an explicit c++rt0.o
21773 # does not break anything, and helps significantly (at the cost of a little
21776 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21777 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21778 hardcode_direct_GCJ=yes
21779 hardcode_shlibpath_var_GCJ=no
21782 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21784 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21785 hardcode_direct_GCJ=yes
21786 hardcode_minus_L_GCJ=yes
21787 hardcode_shlibpath_var_GCJ=no
21790 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21791 freebsd* | kfreebsd*-gnu)
21792 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21793 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21794 hardcode_direct_GCJ=yes
21795 hardcode_shlibpath_var_GCJ=no
21799 if test "$GCC" = yes; then
21800 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'
21802 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'
21804 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21805 hardcode_libdir_separator_GCJ=:
21806 hardcode_direct_GCJ=yes
21808 # hardcode_minus_L: Not really in the search PATH,
21809 # but as the default location of the library.
21810 hardcode_minus_L_GCJ=yes
21811 export_dynamic_flag_spec_GCJ='${wl}-E'
21815 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21816 case "$host_cpu" in
21818 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21821 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21825 case "$host_cpu" in
21827 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21830 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21834 if test "$with_gnu_ld" = no; then
21835 case "$host_cpu" in
21837 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21838 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21839 hardcode_libdir_separator_GCJ=:
21840 hardcode_direct_GCJ=no
21841 hardcode_shlibpath_var_GCJ=no
21844 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21845 hardcode_direct_GCJ=no
21846 hardcode_shlibpath_var_GCJ=no
21848 # hardcode_minus_L: Not really in the search PATH,
21849 # but as the default location of the library.
21850 hardcode_minus_L_GCJ=yes
21853 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21854 hardcode_libdir_separator_GCJ=:
21855 hardcode_direct_GCJ=yes
21856 export_dynamic_flag_spec_GCJ='${wl}-E'
21858 # hardcode_minus_L: Not really in the search PATH,
21859 # but as the default location of the library.
21860 hardcode_minus_L_GCJ=yes
21866 irix5* | irix6* | nonstopux*)
21867 if test "$GCC" = yes; then
21868 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'
21870 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'
21871 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21873 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21874 hardcode_libdir_separator_GCJ=:
21875 link_all_deplibs_GCJ=yes
21879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21880 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21882 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21884 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21885 hardcode_direct_GCJ=yes
21886 hardcode_shlibpath_var_GCJ=no
21890 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21891 hardcode_direct_GCJ=yes
21892 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21893 hardcode_libdir_separator_GCJ=:
21894 hardcode_shlibpath_var_GCJ=no
21898 hardcode_direct_GCJ=yes
21899 hardcode_shlibpath_var_GCJ=no
21900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21901 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21902 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21903 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21904 export_dynamic_flag_spec_GCJ='${wl}-E'
21907 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21908 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21909 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21912 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21913 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21920 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21921 hardcode_minus_L_GCJ=yes
21922 allow_undefined_flag_GCJ=unsupported
21923 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'
21924 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21928 if test "$GCC" = yes; then
21929 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21930 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'
21932 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21933 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'
21935 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21936 hardcode_libdir_separator_GCJ=:
21939 osf4* | osf5*) # as osf3* with the addition of -msym flag
21940 if test "$GCC" = yes; then
21941 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21942 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'
21943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21945 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21946 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'
21947 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~
21948 $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'
21950 # Both c and cxx compiler support -rpath directly
21951 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21953 hardcode_libdir_separator_GCJ=:
21957 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21958 hardcode_shlibpath_var_GCJ=no
21959 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21960 runpath_var=LD_RUN_PATH
21961 hardcode_runpath_var=yes
21965 no_undefined_flag_GCJ=' -z text'
21966 if test "$GCC" = yes; then
21967 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21968 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21969 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21971 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21972 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21973 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21975 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21976 hardcode_shlibpath_var_GCJ=no
21978 solaris2.[0-5] | solaris2.[0-5].*) ;;
21979 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21980 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21982 link_all_deplibs_GCJ=yes
21986 if test "x$host_vendor" = xsequent; then
21987 # Use $CC to link under sequent, because it throws in some extra .o
21988 # files that make .init and .fini sections work.
21989 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21991 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21994 hardcode_direct_GCJ=yes
21995 hardcode_minus_L_GCJ=yes
21996 hardcode_shlibpath_var_GCJ=no
22000 case $host_vendor in
22002 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22003 hardcode_direct_GCJ=yes # is this really true???
22006 ## LD is ld it makes a PLAMLIB
22007 ## CC just makes a GrossModule.
22008 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22009 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22010 hardcode_direct_GCJ=no
22013 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22014 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22017 runpath_var='LD_RUN_PATH'
22018 hardcode_shlibpath_var_GCJ=no
22022 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22023 hardcode_shlibpath_var_GCJ=no
22024 export_dynamic_flag_spec_GCJ='-Bexport'
22028 if test -d /usr/nec; then
22029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22030 hardcode_shlibpath_var_GCJ=no
22031 runpath_var=LD_RUN_PATH
22032 hardcode_runpath_var=yes
22038 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22039 hardcode_direct_GCJ=yes
22040 hardcode_minus_L_GCJ=no
22041 hardcode_shlibpath_var_GCJ=no
22042 hardcode_runpath_var=yes
22043 runpath_var=LD_RUN_PATH
22046 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22047 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22048 if test "$GCC" = yes; then
22049 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22051 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22053 runpath_var='LD_RUN_PATH'
22054 hardcode_shlibpath_var_GCJ=no
22058 no_undefined_flag_GCJ=' -z text'
22059 # $CC -shared without GNU ld will not create a library from C++
22060 # object files and a static libstdc++, better avoid it by now
22061 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22062 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22063 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22064 hardcode_libdir_flag_spec_GCJ=
22065 hardcode_shlibpath_var_GCJ=no
22066 runpath_var='LD_RUN_PATH'
22070 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22071 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22072 hardcode_shlibpath_var_GCJ=no
22081 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22082 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22083 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22085 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22086 if test "$GCC" = yes; then
22087 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22091 # Do we need to explicitly link libc?
22093 case "x$archive_cmds_need_lc_GCJ" in
22095 # Assume -lc should be added
22096 archive_cmds_need_lc_GCJ=yes
22098 if test "$enable_shared" = yes && test "$GCC" = yes; then
22099 case $archive_cmds_GCJ in
22101 # FIXME: we may have to deal with multi-command sequences.
22104 # Test whether the compiler implicitly links with -lc since on some
22105 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22106 # to ld, don't add -lc before -lgcc.
22107 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22108 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22113 (eval $ac_compile) 2>&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } 2>conftest.err; then
22119 libobjs=conftest.$ac_objext
22121 wl=$lt_prog_compiler_wl_GCJ
22127 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22128 allow_undefined_flag_GCJ=
22129 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22130 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }
22135 archive_cmds_need_lc_GCJ=no
22137 archive_cmds_need_lc_GCJ=yes
22139 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22141 cat conftest.err 1>&5
22144 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22145 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22152 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22153 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22154 library_names_spec=
22155 libname_spec='lib$name'
22159 postuninstall_cmds=
22163 shlibpath_overrides_runpath=unknown
22165 dynamic_linker="$host_os ld.so"
22166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22167 if test "$GCC" = yes; then
22168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22169 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22170 # if the path contains ";" then we assume it to be the separator
22171 # otherwise default to the standard path separator (i.e. ":") - it is
22172 # assumed that no part of a normal pathname contains ";" but that should
22173 # okay in the real world where ";" in dirpaths is itself problematic.
22174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22181 need_lib_prefix=unknown
22182 hardcode_into_libs=no
22184 # when you set need_version to no, make sure it does not cause -set_version
22185 # flags to be left without arguments
22186 need_version=unknown
22191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22192 shlibpath_var=LIBPATH
22194 # AIX 3 has no versioning support, so we append a major version to the name.
22195 soname_spec='${libname}${release}${shared_ext}$major'
22202 hardcode_into_libs=yes
22203 if test "$host_cpu" = ia64; then
22204 # AIX 5 supports IA64
22205 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22206 shlibpath_var=LD_LIBRARY_PATH
22208 # With GCC up to 2.95.x, collect2 would create an import file
22209 # for dependence libraries. The import file would start with
22210 # the line `#! .'. This would cause the generated library to
22211 # depend on `.', always an invalid library. This was fixed in
22212 # development snapshots of GCC prior to 3.0.
22214 aix4 | aix4.[01] | aix4.[01].*)
22215 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22217 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22220 can_build_shared=no
22224 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22225 # soname into executable. Probably we can add versioning support to
22226 # collect2, so additional links can be useful in future.
22227 if test "$aix_use_runtimelinking" = yes; then
22228 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22229 # instead of lib<name>.a to let people know that these are not
22230 # typical AIX shared libraries.
22231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22233 # We preserve .a as extension for shared libraries through AIX4.2
22234 # and later when we are not doing run time linking.
22235 library_names_spec='${libname}${release}.a $libname.a'
22236 soname_spec='${libname}${release}${shared_ext}$major'
22238 shlibpath_var=LIBPATH
22243 library_names_spec='$libname.ixlibrary $libname.a'
22244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22245 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'
22249 library_names_spec='${libname}${shared_ext}'
22250 dynamic_linker="$host_os ld.so"
22251 shlibpath_var=LIBRARY_PATH
22257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22258 soname_spec='${libname}${release}${shared_ext}$major'
22259 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22260 shlibpath_var=LD_LIBRARY_PATH
22261 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22262 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22263 # the default ld.so.conf also contains /usr/contrib/lib and
22264 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22265 # libtool to hard-code these into programs
22268 cygwin* | mingw* | pw32*)
22269 version_type=windows
22274 case $GCC,$host_os in
22275 yes,cygwin* | yes,mingw* | yes,pw32*)
22276 library_names_spec='$libname.dll.a'
22277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22278 postinstall_cmds='base_file=`basename \${file}`~
22279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22280 dldir=$destdir/`dirname \$dlpath`~
22281 test -d \$dldir || mkdir -p \$dldir~
22282 $install_prog $dir/$dlname \$dldir/$dlname'
22283 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22284 dlpath=$dir/\$dldll~
22286 shlibpath_overrides_runpath=yes
22290 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22291 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22292 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22295 # MinGW DLLs use traditional 'lib' prefix
22296 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22298 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22299 # It is most probably a Windows format PATH printed by
22300 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22301 # path with ; separators, and with drive letters. We can handle the
22302 # drive letters (cygwin fileutils understands them), so leave them,
22303 # especially as we might pass files found there to a mingw objdump,
22304 # which wouldn't understand a cygwinified path. Ahh.
22305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22311 # pw32 DLLs use 'pw' prefix rather than 'lib'
22312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22318 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22321 dynamic_linker='Win32 ld.exe'
22322 # FIXME: first we should search . and the directory the executable is in
22326 darwin* | rhapsody*)
22327 dynamic_linker="$host_os dyld"
22328 version_type=darwin
22331 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22332 soname_spec='${libname}${release}${major}$shared_ext'
22333 shlibpath_overrides_runpath=yes
22334 shlibpath_var=DYLD_LIBRARY_PATH
22335 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22336 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22337 if test "$GCC" = yes; then
22338 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"`
22340 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22342 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22350 soname_spec='${libname}${release}${shared_ext}$major'
22351 shlibpath_var=LD_LIBRARY_PATH
22362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22363 soname_spec='${libname}${release}${shared_ext}$major'
22364 shlibpath_var=LD_LIBRARY_PATH
22365 shlibpath_overrides_runpath=no
22366 hardcode_into_libs=yes
22367 dynamic_linker='GNU ld.so'
22371 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22372 version_type=freebsd-$objformat
22373 case $version_type in
22375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22384 shlibpath_var=LD_LIBRARY_PATH
22387 shlibpath_overrides_runpath=yes
22389 freebsd3.01* | freebsdelf3.01*)
22390 shlibpath_overrides_runpath=yes
22391 hardcode_into_libs=yes
22394 shlibpath_overrides_runpath=no
22395 hardcode_into_libs=yes
22404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22405 soname_spec='${libname}${release}${shared_ext}$major'
22406 shlibpath_var=LD_LIBRARY_PATH
22407 hardcode_into_libs=yes
22410 hpux9* | hpux10* | hpux11*)
22411 # Give a soname corresponding to the major version so that dld.sl refuses to
22412 # link against other versions.
22416 case "$host_cpu" in
22419 hardcode_into_libs=yes
22420 dynamic_linker="$host_os dld.so"
22421 shlibpath_var=LD_LIBRARY_PATH
22422 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22424 soname_spec='${libname}${release}${shared_ext}$major'
22425 if test "X$HPUX_IA64_MODE" = X32; then
22426 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22428 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22430 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22434 hardcode_into_libs=yes
22435 dynamic_linker="$host_os dld.sl"
22436 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22439 soname_spec='${libname}${release}${shared_ext}$major'
22440 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22445 dynamic_linker="$host_os dld.sl"
22446 shlibpath_var=SHLIB_PATH
22447 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22449 soname_spec='${libname}${release}${shared_ext}$major'
22452 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22453 postinstall_cmds='chmod 555 $lib'
22456 irix5* | irix6* | nonstopux*)
22458 nonstopux*) version_type=nonstopux ;;
22460 if test "$lt_cv_prog_gnu_ld" = yes; then
22468 soname_spec='${libname}${release}${shared_ext}$major'
22469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22471 irix5* | nonstopux*)
22472 libsuff= shlibsuff=
22475 case $LD in # libtool.m4 will add one of these switches to LD
22476 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22477 libsuff= shlibsuff= libmagic=32-bit;;
22478 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22479 libsuff=32 shlibsuff=N32 libmagic=N32;;
22480 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22481 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22482 *) libsuff= shlibsuff= libmagic=never-match;;
22486 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22487 shlibpath_overrides_runpath=no
22488 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22489 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22490 hardcode_into_libs=yes
22493 # No shared lib support for Linux oldld, aout, or coff.
22494 linux*oldld* | linux*aout* | linux*coff*)
22498 # This must be Linux ELF.
22503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22504 soname_spec='${libname}${release}${shared_ext}$major'
22505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22506 shlibpath_var=LD_LIBRARY_PATH
22507 shlibpath_overrides_runpath=no
22508 # This implies no fast_install, which is unacceptable.
22509 # Some rework will be needed to allow for fast_install
22510 # before this can be enabled.
22511 hardcode_into_libs=yes
22513 # Append ld.so.conf contents to the search path
22514 if test -f /etc/ld.so.conf; then
22515 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22516 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22519 # We used to test for /lib/ld.so.1 and disable shared libraries on
22520 # powerpc, because MkLinux only supported shared libraries with the
22521 # GNU dynamic linker. Since this was broken with cross compilers,
22522 # most powerpc-linux boxes support dynamic linking these days and
22523 # people can always --disable-shared, the test was removed, and we
22524 # assume the GNU/Linux dynamic linker is in use.
22525 dynamic_linker='GNU/Linux ld.so'
22532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22533 soname_spec='${libname}${release}${shared_ext}$major'
22534 shlibpath_var=LD_LIBRARY_PATH
22535 shlibpath_overrides_runpath=no
22536 hardcode_into_libs=yes
22537 dynamic_linker='GNU ld.so'
22544 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22547 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
22553 shlibpath_var=LD_LIBRARY_PATH
22554 shlibpath_overrides_runpath=yes
22555 hardcode_into_libs=yes
22560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22561 shlibpath_var=LD_LIBRARY_PATH
22562 shlibpath_overrides_runpath=yes
22569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22570 soname_spec='${libname}${release}${shared_ext}$major'
22571 shlibpath_var=LD_LIBRARY_PATH
22572 shlibpath_overrides_runpath=yes
22579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22581 shlibpath_var=LD_LIBRARY_PATH
22582 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22584 openbsd2.[89] | openbsd2.[89].*)
22585 shlibpath_overrides_runpath=no
22588 shlibpath_overrides_runpath=yes
22592 shlibpath_overrides_runpath=yes
22597 libname_spec='$name'
22600 library_names_spec='$libname${shared_ext} $libname.a'
22601 dynamic_linker='OS/2 ld.exe'
22602 shlibpath_var=LIBPATH
22605 osf3* | osf4* | osf5*)
22609 soname_spec='${libname}${release}${shared_ext}$major'
22610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611 shlibpath_var=LD_LIBRARY_PATH
22612 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22613 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22618 soname_spec='${libname}${release}${shared_ext}$major'
22619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22620 shlibpath_var=LD_LIBRARY_PATH
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22628 soname_spec='${libname}${release}${shared_ext}$major'
22629 shlibpath_var=LD_LIBRARY_PATH
22630 shlibpath_overrides_runpath=yes
22631 hardcode_into_libs=yes
22632 # ldd complains unless libraries are executable
22633 postinstall_cmds='chmod +x $lib'
22638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22640 shlibpath_var=LD_LIBRARY_PATH
22641 shlibpath_overrides_runpath=yes
22642 if test "$with_gnu_ld" = yes; then
22648 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22651 soname_spec='${libname}${release}${shared_ext}$major'
22652 shlibpath_var=LD_LIBRARY_PATH
22653 case $host_vendor in
22655 shlibpath_overrides_runpath=no
22657 export_dynamic_flag_spec='${wl}-Blargedynsym'
22658 runpath_var=LD_RUN_PATH
22666 shlibpath_overrides_runpath=no
22667 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22673 if test -d /usr/nec ;then
22675 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22676 soname_spec='$libname${shared_ext}.$major'
22677 shlibpath_var=LD_LIBRARY_PATH
22683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22684 soname_spec='${libname}${release}${shared_ext}$major'
22685 shlibpath_var=LD_LIBRARY_PATH
22692 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22693 echo "${ECHO_T}$dynamic_linker" >&6
22694 test "$dynamic_linker" = no && can_build_shared=no
22696 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22697 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22698 hardcode_action_GCJ=
22699 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22700 test -n "$runpath_var_GCJ" || \
22701 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22703 # We can hardcode non-existant directories.
22704 if test "$hardcode_direct_GCJ" != no &&
22705 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22706 # have to relink, otherwise we might link with an installed library
22707 # when we should be linking with a yet-to-be-installed one
22708 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22709 test "$hardcode_minus_L_GCJ" != no; then
22710 # Linking always hardcodes the temporary library directory.
22711 hardcode_action_GCJ=relink
22713 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22714 hardcode_action_GCJ=immediate
22717 # We cannot hardcode anything, or else we can only hardcode existing
22719 hardcode_action_GCJ=unsupported
22721 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22722 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22724 if test "$hardcode_action_GCJ" = relink; then
22725 # Fast installation is not supported
22726 enable_fast_install=no
22727 elif test "$shlibpath_overrides_runpath" = yes ||
22728 test "$enable_shared" = no; then
22729 # Fast installation is not necessary
22730 enable_fast_install=needless
22735 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22736 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22737 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22739 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22740 echo "$as_me:$LINENO: result: yes" >&5
22741 echo "${ECHO_T}yes" >&6
22743 # FIXME - insert some real tests, host_os isn't really good enough
22746 if test -n "$STRIP" ; then
22747 striplib="$STRIP -x"
22748 echo "$as_me:$LINENO: result: yes" >&5
22749 echo "${ECHO_T}yes" >&6
22751 echo "$as_me:$LINENO: result: no" >&5
22752 echo "${ECHO_T}no" >&6
22756 echo "$as_me:$LINENO: result: no" >&5
22757 echo "${ECHO_T}no" >&6
22762 if test "x$enable_dlopen" != xyes; then
22763 enable_dlopen=unknown
22764 enable_dlopen_self=unknown
22765 enable_dlopen_self_static=unknown
22772 lt_cv_dlopen="load_add_on"
22774 lt_cv_dlopen_self=yes
22778 lt_cv_dlopen="LoadLibrary"
22783 lt_cv_dlopen="dlopen"
22788 # if libdl is installed we need to link against it
22789 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22792 echo $ECHO_N "(cached) $ECHO_C" >&6
22794 ac_check_lib_save_LIBS=$LIBS
22796 cat >conftest.$ac_ext <<_ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h. */
22803 /* Override any gcc2 internal prototype to avoid an error. */
22807 /* We use char because int might match the return type of a gcc2
22808 builtin and then its argument prototype would still apply. */
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22820 (eval $ac_link) 2>conftest.er1
22822 grep -v '^ *+' conftest.er1 >conftest.err
22824 cat conftest.err >&5
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } &&
22827 { ac_try='test -z "$ac_c_werror_flag"
22828 || test ! -s conftest.err'
22829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }; } &&
22834 { ac_try='test -s conftest$ac_exeext'
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }; then
22840 ac_cv_lib_dl_dlopen=yes
22842 echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22845 ac_cv_lib_dl_dlopen=no
22847 rm -f conftest.err conftest.$ac_objext \
22848 conftest$ac_exeext conftest.$ac_ext
22849 LIBS=$ac_check_lib_save_LIBS
22851 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22852 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22853 if test $ac_cv_lib_dl_dlopen = yes; then
22854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22857 lt_cv_dlopen="dyld"
22859 lt_cv_dlopen_self=yes
22866 echo "$as_me:$LINENO: checking for shl_load" >&5
22867 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22868 if test "${ac_cv_func_shl_load+set}" = set; then
22869 echo $ECHO_N "(cached) $ECHO_C" >&6
22871 cat >conftest.$ac_ext <<_ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22877 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22879 #define shl_load innocuous_shl_load
22881 /* System header to define __stub macros and hopefully few prototypes,
22882 which can conflict with char shl_load (); below.
22883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22884 <limits.h> exists even on freestanding compilers. */
22887 # include <limits.h>
22889 # include <assert.h>
22894 /* Override any gcc2 internal prototype to avoid an error. */
22899 /* We use char because int might match the return type of a gcc2
22900 builtin and then its argument prototype would still apply. */
22902 /* The GNU C library defines this for functions which it implements
22903 to always fail with ENOSYS. Some functions are actually named
22904 something starting with __ and the normal name is an alias. */
22905 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22908 char (*f) () = shl_load;
22917 return f != shl_load;
22922 rm -f conftest.$ac_objext conftest$ac_exeext
22923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22924 (eval $ac_link) 2>conftest.er1
22926 grep -v '^ *+' conftest.er1 >conftest.err
22928 cat conftest.err >&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } &&
22931 { ac_try='test -z "$ac_c_werror_flag"
22932 || test ! -s conftest.err'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; } &&
22938 { ac_try='test -s conftest$ac_exeext'
22939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940 (eval $ac_try) 2>&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); }; }; then
22944 ac_cv_func_shl_load=yes
22946 echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22949 ac_cv_func_shl_load=no
22951 rm -f conftest.err conftest.$ac_objext \
22952 conftest$ac_exeext conftest.$ac_ext
22954 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22955 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22956 if test $ac_cv_func_shl_load = yes; then
22957 lt_cv_dlopen="shl_load"
22959 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22960 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22961 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22962 echo $ECHO_N "(cached) $ECHO_C" >&6
22964 ac_check_lib_save_LIBS=$LIBS
22966 cat >conftest.$ac_ext <<_ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22973 /* Override any gcc2 internal prototype to avoid an error. */
22977 /* We use char because int might match the return type of a gcc2
22978 builtin and then its argument prototype would still apply. */
22988 rm -f conftest.$ac_objext conftest$ac_exeext
22989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22990 (eval $ac_link) 2>conftest.er1
22992 grep -v '^ *+' conftest.er1 >conftest.err
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } &&
22997 { ac_try='test -z "$ac_c_werror_flag"
22998 || test ! -s conftest.err'
22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000 (eval $ac_try) 2>&5
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); }; } &&
23004 { ac_try='test -s conftest$ac_exeext'
23005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23006 (eval $ac_try) 2>&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); }; }; then
23010 ac_cv_lib_dld_shl_load=yes
23012 echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23015 ac_cv_lib_dld_shl_load=no
23017 rm -f conftest.err conftest.$ac_objext \
23018 conftest$ac_exeext conftest.$ac_ext
23019 LIBS=$ac_check_lib_save_LIBS
23021 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23022 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23023 if test $ac_cv_lib_dld_shl_load = yes; then
23024 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23026 echo "$as_me:$LINENO: checking for dlopen" >&5
23027 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23028 if test "${ac_cv_func_dlopen+set}" = set; then
23029 echo $ECHO_N "(cached) $ECHO_C" >&6
23031 cat >conftest.$ac_ext <<_ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h. */
23037 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23039 #define dlopen innocuous_dlopen
23041 /* System header to define __stub macros and hopefully few prototypes,
23042 which can conflict with char dlopen (); below.
23043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23044 <limits.h> exists even on freestanding compilers. */
23047 # include <limits.h>
23049 # include <assert.h>
23054 /* Override any gcc2 internal prototype to avoid an error. */
23059 /* We use char because int might match the return type of a gcc2
23060 builtin and then its argument prototype would still apply. */
23062 /* The GNU C library defines this for functions which it implements
23063 to always fail with ENOSYS. Some functions are actually named
23064 something starting with __ and the normal name is an alias. */
23065 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23068 char (*f) () = dlopen;
23077 return f != dlopen;
23082 rm -f conftest.$ac_objext conftest$ac_exeext
23083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23084 (eval $ac_link) 2>conftest.er1
23086 grep -v '^ *+' conftest.er1 >conftest.err
23088 cat conftest.err >&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); } &&
23091 { ac_try='test -z "$ac_c_werror_flag"
23092 || test ! -s conftest.err'
23093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094 (eval $ac_try) 2>&5
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); }; } &&
23098 { ac_try='test -s conftest$ac_exeext'
23099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); }; }; then
23104 ac_cv_func_dlopen=yes
23106 echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23109 ac_cv_func_dlopen=no
23111 rm -f conftest.err conftest.$ac_objext \
23112 conftest$ac_exeext conftest.$ac_ext
23114 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23115 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23116 if test $ac_cv_func_dlopen = yes; then
23117 lt_cv_dlopen="dlopen"
23119 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 ac_check_lib_save_LIBS=$LIBS
23126 cat >conftest.$ac_ext <<_ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23133 /* Override any gcc2 internal prototype to avoid an error. */
23137 /* We use char because int might match the return type of a gcc2
23138 builtin and then its argument prototype would still apply. */
23148 rm -f conftest.$ac_objext conftest$ac_exeext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23150 (eval $ac_link) 2>conftest.er1
23152 grep -v '^ *+' conftest.er1 >conftest.err
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } &&
23157 { ac_try='test -z "$ac_c_werror_flag"
23158 || test ! -s conftest.err'
23159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; } &&
23164 { ac_try='test -s conftest$ac_exeext'
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; }; then
23170 ac_cv_lib_dl_dlopen=yes
23172 echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23175 ac_cv_lib_dl_dlopen=no
23177 rm -f conftest.err conftest.$ac_objext \
23178 conftest$ac_exeext conftest.$ac_ext
23179 LIBS=$ac_check_lib_save_LIBS
23181 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23182 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23183 if test $ac_cv_lib_dl_dlopen = yes; then
23184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23186 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23187 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23188 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23191 ac_check_lib_save_LIBS=$LIBS
23192 LIBS="-lsvld $LIBS"
23193 cat >conftest.$ac_ext <<_ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h. */
23200 /* Override any gcc2 internal prototype to avoid an error. */
23204 /* We use char because int might match the return type of a gcc2
23205 builtin and then its argument prototype would still apply. */
23215 rm -f conftest.$ac_objext conftest$ac_exeext
23216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23217 (eval $ac_link) 2>conftest.er1
23219 grep -v '^ *+' conftest.er1 >conftest.err
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
23224 { ac_try='test -z "$ac_c_werror_flag"
23225 || test ! -s conftest.err'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } &&
23231 { ac_try='test -s conftest$ac_exeext'
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 ac_cv_lib_svld_dlopen=yes
23239 echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23242 ac_cv_lib_svld_dlopen=no
23244 rm -f conftest.err conftest.$ac_objext \
23245 conftest$ac_exeext conftest.$ac_ext
23246 LIBS=$ac_check_lib_save_LIBS
23248 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23249 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23250 if test $ac_cv_lib_svld_dlopen = yes; then
23251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23253 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23254 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23255 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23258 ac_check_lib_save_LIBS=$LIBS
23260 cat >conftest.$ac_ext <<_ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h. */
23267 /* Override any gcc2 internal prototype to avoid an error. */
23271 /* We use char because int might match the return type of a gcc2
23272 builtin and then its argument prototype would still apply. */
23282 rm -f conftest.$ac_objext conftest$ac_exeext
23283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23284 (eval $ac_link) 2>conftest.er1
23286 grep -v '^ *+' conftest.er1 >conftest.err
23288 cat conftest.err >&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } &&
23291 { ac_try='test -z "$ac_c_werror_flag"
23292 || test ! -s conftest.err'
23293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23294 (eval $ac_try) 2>&5
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); }; } &&
23298 { ac_try='test -s conftest$ac_exeext'
23299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300 (eval $ac_try) 2>&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; }; then
23304 ac_cv_lib_dld_dld_link=yes
23306 echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23309 ac_cv_lib_dld_dld_link=no
23311 rm -f conftest.err conftest.$ac_objext \
23312 conftest$ac_exeext conftest.$ac_ext
23313 LIBS=$ac_check_lib_save_LIBS
23315 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23316 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23317 if test $ac_cv_lib_dld_dld_link = yes; then
23318 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23339 if test "x$lt_cv_dlopen" != xno; then
23345 case $lt_cv_dlopen in
23347 save_CPPFLAGS="$CPPFLAGS"
23348 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23350 save_LDFLAGS="$LDFLAGS"
23351 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23354 LIBS="$lt_cv_dlopen_libs $LIBS"
23356 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23357 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23358 if test "${lt_cv_dlopen_self+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23361 if test "$cross_compiling" = yes; then :
23362 lt_cv_dlopen_self=cross
23364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23365 lt_status=$lt_dlunknown
23366 cat > conftest.$ac_ext <<EOF
23367 #line 23367 "configure"
23368 #include "confdefs.h"
23377 # define LT_DLGLOBAL RTLD_GLOBAL
23380 # define LT_DLGLOBAL DL_GLOBAL
23382 # define LT_DLGLOBAL 0
23386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23387 find out it does not work in some platform. */
23388 #ifndef LT_DLLAZY_OR_NOW
23390 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23393 # define LT_DLLAZY_OR_NOW DL_LAZY
23396 # define LT_DLLAZY_OR_NOW RTLD_NOW
23399 # define LT_DLLAZY_OR_NOW DL_NOW
23401 # define LT_DLLAZY_OR_NOW 0
23409 extern "C" void exit (int);
23412 void fnord() { int i=42;}
23415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23416 int status = $lt_dlunknown;
23420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23422 /* dlclose (self); */
23428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23429 (eval $ac_link) 2>&5
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23433 (./conftest; exit; ) 2>/dev/null
23435 case x$lt_status in
23436 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23437 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23438 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23441 # compilation failed
23442 lt_cv_dlopen_self=no
23449 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23450 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23452 if test "x$lt_cv_dlopen_self" = xyes; then
23453 LDFLAGS="$LDFLAGS $link_static_flag"
23454 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23455 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23456 if test "${lt_cv_dlopen_self_static+set}" = set; then
23457 echo $ECHO_N "(cached) $ECHO_C" >&6
23459 if test "$cross_compiling" = yes; then :
23460 lt_cv_dlopen_self_static=cross
23462 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23463 lt_status=$lt_dlunknown
23464 cat > conftest.$ac_ext <<EOF
23465 #line 23465 "configure"
23466 #include "confdefs.h"
23475 # define LT_DLGLOBAL RTLD_GLOBAL
23478 # define LT_DLGLOBAL DL_GLOBAL
23480 # define LT_DLGLOBAL 0
23484 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23485 find out it does not work in some platform. */
23486 #ifndef LT_DLLAZY_OR_NOW
23488 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23491 # define LT_DLLAZY_OR_NOW DL_LAZY
23494 # define LT_DLLAZY_OR_NOW RTLD_NOW
23497 # define LT_DLLAZY_OR_NOW DL_NOW
23499 # define LT_DLLAZY_OR_NOW 0
23507 extern "C" void exit (int);
23510 void fnord() { int i=42;}
23513 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23514 int status = $lt_dlunknown;
23518 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23519 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23520 /* dlclose (self); */
23526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23527 (eval $ac_link) 2>&5
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23531 (./conftest; exit; ) 2>/dev/null
23533 case x$lt_status in
23534 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23535 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23536 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23539 # compilation failed
23540 lt_cv_dlopen_self_static=no
23547 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23548 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23551 CPPFLAGS="$save_CPPFLAGS"
23552 LDFLAGS="$save_LDFLAGS"
23557 case $lt_cv_dlopen_self in
23558 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23559 *) enable_dlopen_self=unknown ;;
23562 case $lt_cv_dlopen_self_static in
23563 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23564 *) enable_dlopen_self_static=unknown ;;
23569 # The else clause should only fire when bootstrapping the
23570 # libtool distribution, otherwise you forgot to ship ltmain.sh
23571 # with your package, and you will get complaints that there are
23572 # no rules to generate ltmain.sh.
23573 if test -f "$ltmain"; then
23574 # See if we are running on zsh, and set the options which allow our commands through
23575 # without removal of \ escapes.
23576 if test -n "${ZSH_VERSION+set}" ; then
23577 setopt NO_GLOB_SUBST
23579 # Now quote all the things that may contain metacharacters while being
23580 # careful not to overquote the AC_SUBSTed values. We take copies of the
23581 # variables and quote the copies for generation of the libtool script.
23582 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23584 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23585 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23586 deplibs_check_method reload_flag reload_cmds need_locks \
23587 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23588 lt_cv_sys_global_symbol_to_c_name_address \
23589 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23590 old_postinstall_cmds old_postuninstall_cmds \
23594 lt_prog_compiler_wl_GCJ \
23595 lt_prog_compiler_pic_GCJ \
23596 lt_prog_compiler_static_GCJ \
23597 lt_prog_compiler_no_builtin_flag_GCJ \
23598 export_dynamic_flag_spec_GCJ \
23599 thread_safe_flag_spec_GCJ \
23600 whole_archive_flag_spec_GCJ \
23601 enable_shared_with_static_runtimes_GCJ \
23602 old_archive_cmds_GCJ \
23603 old_archive_from_new_cmds_GCJ \
23604 predep_objects_GCJ \
23605 postdep_objects_GCJ \
23608 compiler_lib_search_path_GCJ \
23610 archive_expsym_cmds_GCJ \
23611 postinstall_cmds_GCJ \
23612 postuninstall_cmds_GCJ \
23613 old_archive_from_expsyms_cmds_GCJ \
23614 allow_undefined_flag_GCJ \
23615 no_undefined_flag_GCJ \
23616 export_symbols_cmds_GCJ \
23617 hardcode_libdir_flag_spec_GCJ \
23618 hardcode_libdir_flag_spec_ld_GCJ \
23619 hardcode_libdir_separator_GCJ \
23620 hardcode_automatic_GCJ \
23622 module_expsym_cmds_GCJ \
23623 lt_cv_prog_compiler_c_o_GCJ \
23624 exclude_expsyms_GCJ \
23625 include_expsyms_GCJ; do
23628 old_archive_cmds_GCJ | \
23629 old_archive_from_new_cmds_GCJ | \
23630 archive_cmds_GCJ | \
23631 archive_expsym_cmds_GCJ | \
23632 module_cmds_GCJ | \
23633 module_expsym_cmds_GCJ | \
23634 old_archive_from_expsyms_cmds_GCJ | \
23635 export_symbols_cmds_GCJ | \
23636 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23637 postinstall_cmds | postuninstall_cmds | \
23638 old_postinstall_cmds | old_postuninstall_cmds | \
23639 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23640 # Double-quote double-evaled strings.
23641 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23644 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23650 *'\$0 --fallback-echo"')
23651 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23657 cat <<__EOF__ >> "$cfgfile"
23658 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23662 # Shell to use when invoking shell scripts.
23665 # Whether or not to build shared libraries.
23666 build_libtool_libs=$enable_shared
23668 # Whether or not to build static libraries.
23669 build_old_libs=$enable_static
23671 # Whether or not to add -lc for building shared libraries.
23672 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23674 # Whether or not to disallow shared libs when runtime libs are static
23675 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23677 # Whether or not to optimize for fast installation.
23678 fast_install=$enable_fast_install
23681 host_alias=$host_alias
23684 # An echo program that does not interpret backslashes.
23689 AR_FLAGS=$lt_AR_FLAGS
23694 # A language-specific compiler.
23695 CC=$lt_compiler_GCJ
23697 # Is the compiler the GNU C compiler?
23703 # The linker used to build libraries.
23706 # Whether we need hard or soft links.
23709 # A BSD-compatible nm program.
23712 # A symbol stripping program
23715 # Used to examine libraries when file_magic_cmd begins "file"
23716 MAGIC_CMD=$MAGIC_CMD
23718 # Used on cygwin: DLL creation program.
23721 # Used on cygwin: object dumper.
23724 # Used on cygwin: assembler.
23727 # The name of the directory that contains temporary libtool files.
23730 # How to create reloadable object files.
23731 reload_flag=$lt_reload_flag
23732 reload_cmds=$lt_reload_cmds
23734 # How to pass a linker flag through the compiler.
23735 wl=$lt_lt_prog_compiler_wl_GCJ
23737 # Object file suffix (normally "o").
23738 objext="$ac_objext"
23740 # Old archive suffix (normally "a").
23743 # Shared library suffix (normally ".so").
23744 shrext_cmds='$shrext_cmds'
23746 # Executable file suffix (normally "").
23749 # Additional compiler flags for building library objects.
23750 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23753 # What is the maximum length of a command?
23754 max_cmd_len=$lt_cv_sys_max_cmd_len
23756 # Does compiler simultaneously support -c and -o options?
23757 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23759 # Must we lock files when doing compilation ?
23760 need_locks=$lt_need_locks
23762 # Do we need the lib prefix for modules?
23763 need_lib_prefix=$need_lib_prefix
23765 # Do we need a version for libraries?
23766 need_version=$need_version
23768 # Whether dlopen is supported.
23769 dlopen_support=$enable_dlopen
23771 # Whether dlopen of programs is supported.
23772 dlopen_self=$enable_dlopen_self
23774 # Whether dlopen of statically linked programs is supported.
23775 dlopen_self_static=$enable_dlopen_self_static
23777 # Compiler flag to prevent dynamic linking.
23778 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23780 # Compiler flag to turn off builtin functions.
23781 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23783 # Compiler flag to allow reflexive dlopens.
23784 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23786 # Compiler flag to generate shared objects directly from archives.
23787 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23789 # Compiler flag to generate thread-safe objects.
23790 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23792 # Library versioning type.
23793 version_type=$version_type
23795 # Format of library name prefix.
23796 libname_spec=$lt_libname_spec
23798 # List of archive names. First name is the real one, the rest are links.
23799 # The last name is the one that the linker finds with -lNAME.
23800 library_names_spec=$lt_library_names_spec
23802 # The coded name of the library, if different from the real name.
23803 soname_spec=$lt_soname_spec
23805 # Commands used to build and install an old-style archive.
23807 old_archive_cmds=$lt_old_archive_cmds_GCJ
23808 old_postinstall_cmds=$lt_old_postinstall_cmds
23809 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23811 # Create an old-style archive from a shared archive.
23812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23814 # Create a temporary old-style archive to link instead of a shared archive.
23815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23817 # Commands used to build and install a shared archive.
23818 archive_cmds=$lt_archive_cmds_GCJ
23819 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23820 postinstall_cmds=$lt_postinstall_cmds
23821 postuninstall_cmds=$lt_postuninstall_cmds
23823 # Commands used to build a loadable module (assumed same as above if empty)
23824 module_cmds=$lt_module_cmds_GCJ
23825 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23827 # Commands to strip libraries.
23828 old_striplib=$lt_old_striplib
23829 striplib=$lt_striplib
23831 # Dependencies to place before the objects being linked to create a
23833 predep_objects=$lt_predep_objects_GCJ
23835 # Dependencies to place after the objects being linked to create a
23837 postdep_objects=$lt_postdep_objects_GCJ
23839 # Dependencies to place before the objects being linked to create a
23841 predeps=$lt_predeps_GCJ
23843 # Dependencies to place after the objects being linked to create a
23845 postdeps=$lt_postdeps_GCJ
23847 # The library search path used internally by the compiler when linking
23848 # a shared library.
23849 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23851 # Method to check whether dependent libraries are shared objects.
23852 deplibs_check_method=$lt_deplibs_check_method
23854 # Command to use when deplibs_check_method == file_magic.
23855 file_magic_cmd=$lt_file_magic_cmd
23857 # Flag that allows shared libraries with undefined symbols to be built.
23858 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23860 # Flag that forces no undefined symbols.
23861 no_undefined_flag=$lt_no_undefined_flag_GCJ
23863 # Commands used to finish a libtool library installation in a directory.
23864 finish_cmds=$lt_finish_cmds
23866 # Same as above, but a single script fragment to be evaled but not shown.
23867 finish_eval=$lt_finish_eval
23869 # Take the output of nm and produce a listing of raw symbols and C names.
23870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23872 # Transform the output of nm in a proper C declaration
23873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23875 # Transform the output of nm in a C name address pair
23876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23878 # This is the shared library runtime path variable.
23879 runpath_var=$runpath_var
23881 # This is the shared library path variable.
23882 shlibpath_var=$shlibpath_var
23884 # Is shlibpath searched before the hard-coded library search path?
23885 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23887 # How to hardcode a shared library path into an executable.
23888 hardcode_action=$hardcode_action_GCJ
23890 # Whether we should hardcode library paths into libraries.
23891 hardcode_into_libs=$hardcode_into_libs
23893 # Flag to hardcode \$libdir into a binary during linking.
23894 # This must work even if \$libdir does not exist.
23895 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23897 # If ld is used when linking, flag to hardcode \$libdir into
23898 # a binary during linking. This must work even if \$libdir does
23900 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23902 # Whether we need a single -rpath flag with a separated argument.
23903 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23905 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23906 # resulting binary.
23907 hardcode_direct=$hardcode_direct_GCJ
23909 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23910 # resulting binary.
23911 hardcode_minus_L=$hardcode_minus_L_GCJ
23913 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23914 # the resulting binary.
23915 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23917 # Set to yes if building a shared library automatically hardcodes DIR into the library
23918 # and all subsequent libraries and executables linked against it.
23919 hardcode_automatic=$hardcode_automatic_GCJ
23921 # Variables whose values should be saved in libtool wrapper scripts and
23922 # restored at relink time.
23923 variables_saved_for_relink="$variables_saved_for_relink"
23925 # Whether libtool must link a program against all its dependency libraries.
23926 link_all_deplibs=$link_all_deplibs_GCJ
23928 # Compile-time system search path for libraries
23929 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23931 # Run-time system search path for libraries
23932 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23934 # Fix the shell variable \$srcfile for the compiler.
23935 fix_srcfile_path="$fix_srcfile_path_GCJ"
23937 # Set to yes if exported symbols are required.
23938 always_export_symbols=$always_export_symbols_GCJ
23940 # The commands to list exported symbols.
23941 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23943 # The commands to extract the exported symbol list from a shared archive.
23944 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23946 # Symbols that should not be listed in the preloaded symbols.
23947 exclude_expsyms=$lt_exclude_expsyms_GCJ
23949 # Symbols that must always be exported.
23950 include_expsyms=$lt_include_expsyms_GCJ
23952 # ### END LIBTOOL TAG CONFIG: $tagname
23958 # If there is no Makefile yet, we rely on a make rule to execute
23959 # `config.status --recheck' to rerun these tests and create the
23960 # libtool script then.
23961 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23962 if test -f "$ltmain_in"; then
23963 test -f Makefile && make "$ltmain"
23969 ac_cpp='$CPP $CPPFLAGS'
23970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23983 ac_cpp='$CPP $CPPFLAGS'
23984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23989 # Source file extension for RC test sources.
23992 # Object file extension for compiled RC test sources.
23996 # Code to be used in simple compile tests
23997 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
23999 # Code to be used in simple link tests
24000 lt_simple_link_test_code="$lt_simple_compile_test_code"
24002 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24004 # If no C compiler was specified, use CC.
24007 # Allow CC to be a program name with arguments.
24011 # Allow CC to be a program name with arguments.
24016 lt_cv_prog_compiler_c_o_RC=yes
24018 # The else clause should only fire when bootstrapping the
24019 # libtool distribution, otherwise you forgot to ship ltmain.sh
24020 # with your package, and you will get complaints that there are
24021 # no rules to generate ltmain.sh.
24022 if test -f "$ltmain"; then
24023 # See if we are running on zsh, and set the options which allow our commands through
24024 # without removal of \ escapes.
24025 if test -n "${ZSH_VERSION+set}" ; then
24026 setopt NO_GLOB_SUBST
24028 # Now quote all the things that may contain metacharacters while being
24029 # careful not to overquote the AC_SUBSTed values. We take copies of the
24030 # variables and quote the copies for generation of the libtool script.
24031 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24033 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24034 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24035 deplibs_check_method reload_flag reload_cmds need_locks \
24036 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24037 lt_cv_sys_global_symbol_to_c_name_address \
24038 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24039 old_postinstall_cmds old_postuninstall_cmds \
24043 lt_prog_compiler_wl_RC \
24044 lt_prog_compiler_pic_RC \
24045 lt_prog_compiler_static_RC \
24046 lt_prog_compiler_no_builtin_flag_RC \
24047 export_dynamic_flag_spec_RC \
24048 thread_safe_flag_spec_RC \
24049 whole_archive_flag_spec_RC \
24050 enable_shared_with_static_runtimes_RC \
24051 old_archive_cmds_RC \
24052 old_archive_from_new_cmds_RC \
24053 predep_objects_RC \
24054 postdep_objects_RC \
24057 compiler_lib_search_path_RC \
24059 archive_expsym_cmds_RC \
24060 postinstall_cmds_RC \
24061 postuninstall_cmds_RC \
24062 old_archive_from_expsyms_cmds_RC \
24063 allow_undefined_flag_RC \
24064 no_undefined_flag_RC \
24065 export_symbols_cmds_RC \
24066 hardcode_libdir_flag_spec_RC \
24067 hardcode_libdir_flag_spec_ld_RC \
24068 hardcode_libdir_separator_RC \
24069 hardcode_automatic_RC \
24071 module_expsym_cmds_RC \
24072 lt_cv_prog_compiler_c_o_RC \
24073 exclude_expsyms_RC \
24074 include_expsyms_RC; do
24077 old_archive_cmds_RC | \
24078 old_archive_from_new_cmds_RC | \
24079 archive_cmds_RC | \
24080 archive_expsym_cmds_RC | \
24082 module_expsym_cmds_RC | \
24083 old_archive_from_expsyms_cmds_RC | \
24084 export_symbols_cmds_RC | \
24085 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24086 postinstall_cmds | postuninstall_cmds | \
24087 old_postinstall_cmds | old_postuninstall_cmds | \
24088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24089 # Double-quote double-evaled strings.
24090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24099 *'\$0 --fallback-echo"')
24100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24106 cat <<__EOF__ >> "$cfgfile"
24107 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24109 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24111 # Shell to use when invoking shell scripts.
24114 # Whether or not to build shared libraries.
24115 build_libtool_libs=$enable_shared
24117 # Whether or not to build static libraries.
24118 build_old_libs=$enable_static
24120 # Whether or not to add -lc for building shared libraries.
24121 build_libtool_need_lc=$archive_cmds_need_lc_RC
24123 # Whether or not to disallow shared libs when runtime libs are static
24124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24126 # Whether or not to optimize for fast installation.
24127 fast_install=$enable_fast_install
24130 host_alias=$host_alias
24133 # An echo program that does not interpret backslashes.
24138 AR_FLAGS=$lt_AR_FLAGS
24143 # A language-specific compiler.
24146 # Is the compiler the GNU C compiler?
24152 # The linker used to build libraries.
24155 # Whether we need hard or soft links.
24158 # A BSD-compatible nm program.
24161 # A symbol stripping program
24164 # Used to examine libraries when file_magic_cmd begins "file"
24165 MAGIC_CMD=$MAGIC_CMD
24167 # Used on cygwin: DLL creation program.
24170 # Used on cygwin: object dumper.
24173 # Used on cygwin: assembler.
24176 # The name of the directory that contains temporary libtool files.
24179 # How to create reloadable object files.
24180 reload_flag=$lt_reload_flag
24181 reload_cmds=$lt_reload_cmds
24183 # How to pass a linker flag through the compiler.
24184 wl=$lt_lt_prog_compiler_wl_RC
24186 # Object file suffix (normally "o").
24187 objext="$ac_objext"
24189 # Old archive suffix (normally "a").
24192 # Shared library suffix (normally ".so").
24193 shrext_cmds='$shrext_cmds'
24195 # Executable file suffix (normally "").
24198 # Additional compiler flags for building library objects.
24199 pic_flag=$lt_lt_prog_compiler_pic_RC
24202 # What is the maximum length of a command?
24203 max_cmd_len=$lt_cv_sys_max_cmd_len
24205 # Does compiler simultaneously support -c and -o options?
24206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24208 # Must we lock files when doing compilation ?
24209 need_locks=$lt_need_locks
24211 # Do we need the lib prefix for modules?
24212 need_lib_prefix=$need_lib_prefix
24214 # Do we need a version for libraries?
24215 need_version=$need_version
24217 # Whether dlopen is supported.
24218 dlopen_support=$enable_dlopen
24220 # Whether dlopen of programs is supported.
24221 dlopen_self=$enable_dlopen_self
24223 # Whether dlopen of statically linked programs is supported.
24224 dlopen_self_static=$enable_dlopen_self_static
24226 # Compiler flag to prevent dynamic linking.
24227 link_static_flag=$lt_lt_prog_compiler_static_RC
24229 # Compiler flag to turn off builtin functions.
24230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24232 # Compiler flag to allow reflexive dlopens.
24233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24235 # Compiler flag to generate shared objects directly from archives.
24236 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24238 # Compiler flag to generate thread-safe objects.
24239 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24241 # Library versioning type.
24242 version_type=$version_type
24244 # Format of library name prefix.
24245 libname_spec=$lt_libname_spec
24247 # List of archive names. First name is the real one, the rest are links.
24248 # The last name is the one that the linker finds with -lNAME.
24249 library_names_spec=$lt_library_names_spec
24251 # The coded name of the library, if different from the real name.
24252 soname_spec=$lt_soname_spec
24254 # Commands used to build and install an old-style archive.
24256 old_archive_cmds=$lt_old_archive_cmds_RC
24257 old_postinstall_cmds=$lt_old_postinstall_cmds
24258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24260 # Create an old-style archive from a shared archive.
24261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24263 # Create a temporary old-style archive to link instead of a shared archive.
24264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24266 # Commands used to build and install a shared archive.
24267 archive_cmds=$lt_archive_cmds_RC
24268 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24269 postinstall_cmds=$lt_postinstall_cmds
24270 postuninstall_cmds=$lt_postuninstall_cmds
24272 # Commands used to build a loadable module (assumed same as above if empty)
24273 module_cmds=$lt_module_cmds_RC
24274 module_expsym_cmds=$lt_module_expsym_cmds_RC
24276 # Commands to strip libraries.
24277 old_striplib=$lt_old_striplib
24278 striplib=$lt_striplib
24280 # Dependencies to place before the objects being linked to create a
24282 predep_objects=$lt_predep_objects_RC
24284 # Dependencies to place after the objects being linked to create a
24286 postdep_objects=$lt_postdep_objects_RC
24288 # Dependencies to place before the objects being linked to create a
24290 predeps=$lt_predeps_RC
24292 # Dependencies to place after the objects being linked to create a
24294 postdeps=$lt_postdeps_RC
24296 # The library search path used internally by the compiler when linking
24297 # a shared library.
24298 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24300 # Method to check whether dependent libraries are shared objects.
24301 deplibs_check_method=$lt_deplibs_check_method
24303 # Command to use when deplibs_check_method == file_magic.
24304 file_magic_cmd=$lt_file_magic_cmd
24306 # Flag that allows shared libraries with undefined symbols to be built.
24307 allow_undefined_flag=$lt_allow_undefined_flag_RC
24309 # Flag that forces no undefined symbols.
24310 no_undefined_flag=$lt_no_undefined_flag_RC
24312 # Commands used to finish a libtool library installation in a directory.
24313 finish_cmds=$lt_finish_cmds
24315 # Same as above, but a single script fragment to be evaled but not shown.
24316 finish_eval=$lt_finish_eval
24318 # Take the output of nm and produce a listing of raw symbols and C names.
24319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24321 # Transform the output of nm in a proper C declaration
24322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24324 # Transform the output of nm in a C name address pair
24325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24327 # This is the shared library runtime path variable.
24328 runpath_var=$runpath_var
24330 # This is the shared library path variable.
24331 shlibpath_var=$shlibpath_var
24333 # Is shlibpath searched before the hard-coded library search path?
24334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24336 # How to hardcode a shared library path into an executable.
24337 hardcode_action=$hardcode_action_RC
24339 # Whether we should hardcode library paths into libraries.
24340 hardcode_into_libs=$hardcode_into_libs
24342 # Flag to hardcode \$libdir into a binary during linking.
24343 # This must work even if \$libdir does not exist.
24344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24346 # If ld is used when linking, flag to hardcode \$libdir into
24347 # a binary during linking. This must work even if \$libdir does
24349 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24351 # Whether we need a single -rpath flag with a separated argument.
24352 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24354 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24355 # resulting binary.
24356 hardcode_direct=$hardcode_direct_RC
24358 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24359 # resulting binary.
24360 hardcode_minus_L=$hardcode_minus_L_RC
24362 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24363 # the resulting binary.
24364 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24366 # Set to yes if building a shared library automatically hardcodes DIR into the library
24367 # and all subsequent libraries and executables linked against it.
24368 hardcode_automatic=$hardcode_automatic_RC
24370 # Variables whose values should be saved in libtool wrapper scripts and
24371 # restored at relink time.
24372 variables_saved_for_relink="$variables_saved_for_relink"
24374 # Whether libtool must link a program against all its dependency libraries.
24375 link_all_deplibs=$link_all_deplibs_RC
24377 # Compile-time system search path for libraries
24378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24380 # Run-time system search path for libraries
24381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24383 # Fix the shell variable \$srcfile for the compiler.
24384 fix_srcfile_path="$fix_srcfile_path_RC"
24386 # Set to yes if exported symbols are required.
24387 always_export_symbols=$always_export_symbols_RC
24389 # The commands to list exported symbols.
24390 export_symbols_cmds=$lt_export_symbols_cmds_RC
24392 # The commands to extract the exported symbol list from a shared archive.
24393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24395 # Symbols that should not be listed in the preloaded symbols.
24396 exclude_expsyms=$lt_exclude_expsyms_RC
24398 # Symbols that must always be exported.
24399 include_expsyms=$lt_include_expsyms_RC
24401 # ### END LIBTOOL TAG CONFIG: $tagname
24407 # If there is no Makefile yet, we rely on a make rule to execute
24408 # `config.status --recheck' to rerun these tests and create the
24409 # libtool script then.
24410 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24411 if test -f "$ltmain_in"; then
24412 test -f Makefile && make "$ltmain"
24418 ac_cpp='$CPP $CPPFLAGS'
24419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24428 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24429 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24430 { (exit 1); exit 1; }; }
24434 # Append the new tag name to the list of available tags.
24435 if test -n "$tagname" ; then
24436 available_tags="$available_tags $tagname"
24442 # Now substitute the updated list of available tags.
24443 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24444 mv "${ofile}T" "$ofile"
24448 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24449 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24450 { (exit 1); exit 1; }; }
24456 # This can be used to rebuild libtool when needed
24457 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24459 # Always use our own libtool.
24460 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24462 # Prevent multiple expansion
24484 etags_version=`$ETAGS --version 2>&1`
24485 case "$etags_version" in
24486 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24487 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24488 *) ETAGSFLAGS="" ;;
24490 ETAGSFLAGS=$ETAGSFLAGS
24493 echo "$as_me:$LINENO: checking tool compatibility" >&5
24494 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24507 if test "$GCC" != "yes" && test "$ICC" != "yes"
24509 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24510 echo "$as_me: error: gcc|icc required but not found" >&2;}
24511 { (exit 1); exit 1; }; }
24514 if test "$GXX" != "yes" && test "$IXX" != "yes"
24516 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24517 echo "$as_me: error: g++|icc required but not found" >&2;}
24518 { (exit 1); exit 1; }; }
24521 if test "$GCC" = "yes"
24523 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24524 if test "$gccmajor" -lt "3"
24526 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24527 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24528 { (exit 1); exit 1; }; }
24532 if test -z "$llvm_cv_gnu_make_command"
24534 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24535 echo "$as_me: error: GNU Make required but not found" >&2;}
24536 { (exit 1); exit 1; }; }
24539 echo "$as_me:$LINENO: result: ok" >&5
24540 echo "${ECHO_T}ok" >&6
24544 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24545 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24546 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24547 echo $ECHO_N "(cached) $ECHO_C" >&6
24549 ac_check_lib_save_LIBS=$LIBS
24551 cat >conftest.$ac_ext <<_ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h. */
24558 /* Override any gcc2 internal prototype to avoid an error. */
24562 /* We use char because int might match the return type of a gcc2
24563 builtin and then its argument prototype would still apply. */
24573 rm -f conftest.$ac_objext conftest$ac_exeext
24574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24575 (eval $ac_link) 2>conftest.er1
24577 grep -v '^ *+' conftest.er1 >conftest.err
24579 cat conftest.err >&5
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } &&
24582 { ac_try='test -z "$ac_c_werror_flag"
24583 || test ! -s conftest.err'
24584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); }; } &&
24589 { ac_try='test -s conftest$ac_exeext'
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; }; then
24595 ac_cv_lib_elf_elf_begin=yes
24597 echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24600 ac_cv_lib_elf_elf_begin=no
24602 rm -f conftest.err conftest.$ac_objext \
24603 conftest$ac_exeext conftest.$ac_ext
24604 LIBS=$ac_check_lib_save_LIBS
24606 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24607 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24608 if test $ac_cv_lib_elf_elf_begin = yes; then
24609 cat >>confdefs.h <<_ACEOF
24610 #define HAVE_LIBELF 1
24618 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24619 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24620 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24621 echo $ECHO_N "(cached) $ECHO_C" >&6
24623 ac_func_search_save_LIBS=$LIBS
24624 ac_cv_search_lt_dlopen=no
24625 cat >conftest.$ac_ext <<_ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h. */
24632 /* Override any gcc2 internal prototype to avoid an error. */
24636 /* We use char because int might match the return type of a gcc2
24637 builtin and then its argument prototype would still apply. */
24647 rm -f conftest.$ac_objext conftest$ac_exeext
24648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24649 (eval $ac_link) 2>conftest.er1
24651 grep -v '^ *+' conftest.er1 >conftest.err
24653 cat conftest.err >&5
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); } &&
24656 { ac_try='test -z "$ac_c_werror_flag"
24657 || test ! -s conftest.err'
24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659 (eval $ac_try) 2>&5
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; } &&
24663 { ac_try='test -s conftest$ac_exeext'
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; }; then
24669 ac_cv_search_lt_dlopen="none required"
24671 echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24675 rm -f conftest.err conftest.$ac_objext \
24676 conftest$ac_exeext conftest.$ac_ext
24677 if test "$ac_cv_search_lt_dlopen" = no; then
24678 for ac_lib in ltdl; do
24679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24680 cat >conftest.$ac_ext <<_ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h. */
24687 /* Override any gcc2 internal prototype to avoid an error. */
24691 /* We use char because int might match the return type of a gcc2
24692 builtin and then its argument prototype would still apply. */
24702 rm -f conftest.$ac_objext conftest$ac_exeext
24703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24704 (eval $ac_link) 2>conftest.er1
24706 grep -v '^ *+' conftest.er1 >conftest.err
24708 cat conftest.err >&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } &&
24711 { ac_try='test -z "$ac_c_werror_flag"
24712 || test ! -s conftest.err'
24713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24714 (eval $ac_try) 2>&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); }; } &&
24718 { ac_try='test -s conftest$ac_exeext'
24719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24720 (eval $ac_try) 2>&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); }; }; then
24724 ac_cv_search_lt_dlopen="-l$ac_lib"
24727 echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24731 rm -f conftest.err conftest.$ac_objext \
24732 conftest$ac_exeext conftest.$ac_ext
24735 LIBS=$ac_func_search_save_LIBS
24737 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24738 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24739 if test "$ac_cv_search_lt_dlopen" != no; then
24740 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24742 cat >>confdefs.h <<\_ACEOF
24743 #define HAVE_LT_DLOPEN 1
24747 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24748 not be available" >&5
24749 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24750 not be available" >&2;}
24754 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24755 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24756 if test "${ac_cv_search_dlopen+set}" = set; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24759 ac_func_search_save_LIBS=$LIBS
24760 ac_cv_search_dlopen=no
24761 cat >conftest.$ac_ext <<_ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h. */
24768 /* Override any gcc2 internal prototype to avoid an error. */
24772 /* We use char because int might match the return type of a gcc2
24773 builtin and then its argument prototype would still apply. */
24783 rm -f conftest.$ac_objext conftest$ac_exeext
24784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24785 (eval $ac_link) 2>conftest.er1
24787 grep -v '^ *+' conftest.er1 >conftest.err
24789 cat conftest.err >&5
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); } &&
24792 { ac_try='test -z "$ac_c_werror_flag"
24793 || test ! -s conftest.err'
24794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795 (eval $ac_try) 2>&5
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); }; } &&
24799 { ac_try='test -s conftest$ac_exeext'
24800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801 (eval $ac_try) 2>&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); }; }; then
24805 ac_cv_search_dlopen="none required"
24807 echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24811 rm -f conftest.err conftest.$ac_objext \
24812 conftest$ac_exeext conftest.$ac_ext
24813 if test "$ac_cv_search_dlopen" = no; then
24814 for ac_lib in dl; do
24815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24816 cat >conftest.$ac_ext <<_ACEOF
24819 cat confdefs.h >>conftest.$ac_ext
24820 cat >>conftest.$ac_ext <<_ACEOF
24821 /* end confdefs.h. */
24823 /* Override any gcc2 internal prototype to avoid an error. */
24827 /* We use char because int might match the return type of a gcc2
24828 builtin and then its argument prototype would still apply. */
24838 rm -f conftest.$ac_objext conftest$ac_exeext
24839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24840 (eval $ac_link) 2>conftest.er1
24842 grep -v '^ *+' conftest.er1 >conftest.err
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
24847 { ac_try='test -z "$ac_c_werror_flag"
24848 || test ! -s conftest.err'
24849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850 (eval $ac_try) 2>&5
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); }; } &&
24854 { ac_try='test -s conftest$ac_exeext'
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860 ac_cv_search_dlopen="-l$ac_lib"
24863 echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24867 rm -f conftest.err conftest.$ac_objext \
24868 conftest$ac_exeext conftest.$ac_ext
24871 LIBS=$ac_func_search_save_LIBS
24873 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24874 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24875 if test "$ac_cv_search_dlopen" != no; then
24876 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
24878 cat >>confdefs.h <<\_ACEOF
24879 #define HAVE_DLOPEN 1
24883 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24884 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
24888 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24889 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24890 if test "${ac_cv_search_mallinfo+set}" = set; then
24891 echo $ECHO_N "(cached) $ECHO_C" >&6
24893 ac_func_search_save_LIBS=$LIBS
24894 ac_cv_search_mallinfo=no
24895 cat >conftest.$ac_ext <<_ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24902 /* Override any gcc2 internal prototype to avoid an error. */
24906 /* We use char because int might match the return type of a gcc2
24907 builtin and then its argument prototype would still apply. */
24917 rm -f conftest.$ac_objext conftest$ac_exeext
24918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24919 (eval $ac_link) 2>conftest.er1
24921 grep -v '^ *+' conftest.er1 >conftest.err
24923 cat conftest.err >&5
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } &&
24926 { ac_try='test -z "$ac_c_werror_flag"
24927 || test ! -s conftest.err'
24928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929 (eval $ac_try) 2>&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; } &&
24933 { ac_try='test -s conftest$ac_exeext'
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; }; then
24939 ac_cv_search_mallinfo="none required"
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24945 rm -f conftest.err conftest.$ac_objext \
24946 conftest$ac_exeext conftest.$ac_ext
24947 if test "$ac_cv_search_mallinfo" = no; then
24948 for ac_lib in malloc; do
24949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24950 cat >conftest.$ac_ext <<_ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24957 /* Override any gcc2 internal prototype to avoid an error. */
24961 /* We use char because int might match the return type of a gcc2
24962 builtin and then its argument prototype would still apply. */
24972 rm -f conftest.$ac_objext conftest$ac_exeext
24973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24974 (eval $ac_link) 2>conftest.er1
24976 grep -v '^ *+' conftest.er1 >conftest.err
24978 cat conftest.err >&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); } &&
24981 { ac_try='test -z "$ac_c_werror_flag"
24982 || test ! -s conftest.err'
24983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24984 (eval $ac_try) 2>&5
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); }; } &&
24988 { ac_try='test -s conftest$ac_exeext'
24989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990 (eval $ac_try) 2>&5
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); }; }; then
24994 ac_cv_search_mallinfo="-l$ac_lib"
24997 echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
25001 rm -f conftest.err conftest.$ac_objext \
25002 conftest$ac_exeext conftest.$ac_ext
25005 LIBS=$ac_func_search_save_LIBS
25007 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25008 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25009 if test "$ac_cv_search_mallinfo" != no; then
25010 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25012 cat >>confdefs.h <<\_ACEOF
25013 #define HAVE_MALLINFO 1
25019 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25020 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25021 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25022 echo $ECHO_N "(cached) $ECHO_C" >&6
25024 ac_func_search_save_LIBS=$LIBS
25025 ac_cv_search_pthread_mutex_lock=no
25026 cat >conftest.$ac_ext <<_ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25033 /* Override any gcc2 internal prototype to avoid an error. */
25037 /* We use char because int might match the return type of a gcc2
25038 builtin and then its argument prototype would still apply. */
25039 char pthread_mutex_lock ();
25043 pthread_mutex_lock ();
25048 rm -f conftest.$ac_objext conftest$ac_exeext
25049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25050 (eval $ac_link) 2>conftest.er1
25052 grep -v '^ *+' conftest.er1 >conftest.err
25054 cat conftest.err >&5
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); } &&
25057 { ac_try='test -z "$ac_c_werror_flag"
25058 || test ! -s conftest.err'
25059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060 (eval $ac_try) 2>&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); }; } &&
25064 { ac_try='test -s conftest$ac_exeext'
25065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066 (eval $ac_try) 2>&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); }; }; then
25070 ac_cv_search_pthread_mutex_lock="none required"
25072 echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25076 rm -f conftest.err conftest.$ac_objext \
25077 conftest$ac_exeext conftest.$ac_ext
25078 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25079 for ac_lib in pthread; do
25080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25081 cat >conftest.$ac_ext <<_ACEOF
25084 cat confdefs.h >>conftest.$ac_ext
25085 cat >>conftest.$ac_ext <<_ACEOF
25086 /* end confdefs.h. */
25088 /* Override any gcc2 internal prototype to avoid an error. */
25092 /* We use char because int might match the return type of a gcc2
25093 builtin and then its argument prototype would still apply. */
25094 char pthread_mutex_lock ();
25098 pthread_mutex_lock ();
25103 rm -f conftest.$ac_objext conftest$ac_exeext
25104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25105 (eval $ac_link) 2>conftest.er1
25107 grep -v '^ *+' conftest.er1 >conftest.err
25109 cat conftest.err >&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); } &&
25112 { ac_try='test -z "$ac_c_werror_flag"
25113 || test ! -s conftest.err'
25114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115 (eval $ac_try) 2>&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; } &&
25119 { ac_try='test -s conftest$ac_exeext'
25120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121 (eval $ac_try) 2>&5
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); }; }; then
25125 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25128 echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25132 rm -f conftest.err conftest.$ac_objext \
25133 conftest$ac_exeext conftest.$ac_ext
25136 LIBS=$ac_func_search_save_LIBS
25138 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25139 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25140 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25141 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25143 cat >>confdefs.h <<\_ACEOF
25144 #define HAVE_PTHREAD_MUTEX_LOCK 1
25151 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25152 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25153 if test "${ac_cv_header_stdc+set}" = set; then
25154 echo $ECHO_N "(cached) $ECHO_C" >&6
25156 cat >conftest.$ac_ext <<_ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h. */
25162 #include <stdlib.h>
25163 #include <stdarg.h>
25164 #include <string.h>
25175 rm -f conftest.$ac_objext
25176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25177 (eval $ac_compile) 2>conftest.er1
25179 grep -v '^ *+' conftest.er1 >conftest.err
25181 cat conftest.err >&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } &&
25184 { ac_try='test -z "$ac_c_werror_flag"
25185 || test ! -s conftest.err'
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest.$ac_objext'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
25197 ac_cv_header_stdc=yes
25199 echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25202 ac_cv_header_stdc=no
25204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25206 if test $ac_cv_header_stdc = yes; then
25207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25208 cat >conftest.$ac_ext <<_ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h. */
25214 #include <string.h>
25217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25218 $EGREP "memchr" >/dev/null 2>&1; then
25221 ac_cv_header_stdc=no
25227 if test $ac_cv_header_stdc = yes; then
25228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25229 cat >conftest.$ac_ext <<_ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h. */
25235 #include <stdlib.h>
25238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25239 $EGREP "free" >/dev/null 2>&1; then
25242 ac_cv_header_stdc=no
25248 if test $ac_cv_header_stdc = yes; then
25249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25250 if test "$cross_compiling" = yes; then
25253 cat >conftest.$ac_ext <<_ACEOF
25256 cat confdefs.h >>conftest.$ac_ext
25257 cat >>conftest.$ac_ext <<_ACEOF
25258 /* end confdefs.h. */
25260 #if ((' ' & 0x0FF) == 0x020)
25261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25264 # define ISLOWER(c) \
25265 (('a' <= (c) && (c) <= 'i') \
25266 || ('j' <= (c) && (c) <= 'r') \
25267 || ('s' <= (c) && (c) <= 'z'))
25268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25276 for (i = 0; i < 256; i++)
25277 if (XOR (islower (i), ISLOWER (i))
25278 || toupper (i) != TOUPPER (i))
25283 rm -f conftest$ac_exeext
25284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25285 (eval $ac_link) 2>&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290 (eval $ac_try) 2>&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); }; }; then
25296 echo "$as_me: program exited with status $ac_status" >&5
25297 echo "$as_me: failed program was:" >&5
25298 sed 's/^/| /' conftest.$ac_ext >&5
25300 ( exit $ac_status )
25301 ac_cv_header_stdc=no
25303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25307 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25308 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25309 if test $ac_cv_header_stdc = yes; then
25311 cat >>confdefs.h <<\_ACEOF
25312 #define STDC_HEADERS 1
25318 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25319 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25320 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25321 echo $ECHO_N "(cached) $ECHO_C" >&6
25323 cat >conftest.$ac_ext <<_ACEOF
25326 cat confdefs.h >>conftest.$ac_ext
25327 cat >>conftest.$ac_ext <<_ACEOF
25328 /* end confdefs.h. */
25329 #include <sys/types.h>
25330 #include <sys/wait.h>
25331 #ifndef WEXITSTATUS
25332 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25335 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25343 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25348 rm -f conftest.$ac_objext
25349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25350 (eval $ac_compile) 2>conftest.er1
25352 grep -v '^ *+' conftest.er1 >conftest.err
25354 cat conftest.err >&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } &&
25357 { ac_try='test -z "$ac_c_werror_flag"
25358 || test ! -s conftest.err'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; } &&
25364 { ac_try='test -s conftest.$ac_objext'
25365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366 (eval $ac_try) 2>&5
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; }; then
25370 ac_cv_header_sys_wait_h=yes
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25375 ac_cv_header_sys_wait_h=no
25377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25379 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25380 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25381 if test $ac_cv_header_sys_wait_h = yes; then
25383 cat >>confdefs.h <<\_ACEOF
25384 #define HAVE_SYS_WAIT_H 1
25394 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25398 echo "$as_me:$LINENO: checking for $ac_header" >&5
25399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25406 # Is the header compilable?
25407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25409 cat >conftest.$ac_ext <<_ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h. */
25415 $ac_includes_default
25416 #include <$ac_header>
25418 rm -f conftest.$ac_objext
25419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25420 (eval $ac_compile) 2>conftest.er1
25422 grep -v '^ *+' conftest.er1 >conftest.err
25424 cat conftest.err >&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } &&
25427 { ac_try='test -z "$ac_c_werror_flag"
25428 || test ! -s conftest.err'
25429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430 (eval $ac_try) 2>&5
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); }; } &&
25434 { ac_try='test -s conftest.$ac_objext'
25435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; }; then
25440 ac_header_compiler=yes
25442 echo "$as_me: failed program was:" >&5
25443 sed 's/^/| /' conftest.$ac_ext >&5
25445 ac_header_compiler=no
25447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25449 echo "${ECHO_T}$ac_header_compiler" >&6
25451 # Is the header present?
25452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25454 cat >conftest.$ac_ext <<_ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h. */
25460 #include <$ac_header>
25462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25465 grep -v '^ *+' conftest.er1 >conftest.err
25467 cat conftest.err >&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } >/dev/null; then
25470 if test -s conftest.err; then
25471 ac_cpp_err=$ac_c_preproc_warn_flag
25472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25479 if test -z "$ac_cpp_err"; then
25480 ac_header_preproc=yes
25482 echo "$as_me: failed program was:" >&5
25483 sed 's/^/| /' conftest.$ac_ext >&5
25485 ac_header_preproc=no
25487 rm -f conftest.err conftest.$ac_ext
25488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25489 echo "${ECHO_T}$ac_header_preproc" >&6
25491 # So? What about this header?
25492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25498 ac_header_preproc=yes
25501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25515 ## ----------------------------------- ##
25516 ## Report this to llvmbugs@cs.uiuc.edu ##
25517 ## ----------------------------------- ##
25520 sed "s/^/$as_me: WARNING: /" >&2
25523 echo "$as_me:$LINENO: checking for $ac_header" >&5
25524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25526 echo $ECHO_N "(cached) $ECHO_C" >&6
25528 eval "$as_ac_Header=\$ac_header_preproc"
25530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25535 cat >>confdefs.h <<_ACEOF
25536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25548 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25552 echo "$as_me:$LINENO: checking for $ac_header" >&5
25553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25555 echo $ECHO_N "(cached) $ECHO_C" >&6
25557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25560 # Is the header compilable?
25561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25563 cat >conftest.$ac_ext <<_ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h. */
25569 $ac_includes_default
25570 #include <$ac_header>
25572 rm -f conftest.$ac_objext
25573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25574 (eval $ac_compile) 2>conftest.er1
25576 grep -v '^ *+' conftest.er1 >conftest.err
25578 cat conftest.err >&5
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } &&
25581 { ac_try='test -z "$ac_c_werror_flag"
25582 || test ! -s conftest.err'
25583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25584 (eval $ac_try) 2>&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); }; } &&
25588 { ac_try='test -s conftest.$ac_objext'
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; }; then
25594 ac_header_compiler=yes
25596 echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.$ac_ext >&5
25599 ac_header_compiler=no
25601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25603 echo "${ECHO_T}$ac_header_compiler" >&6
25605 # Is the header present?
25606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25608 cat >conftest.$ac_ext <<_ACEOF
25611 cat confdefs.h >>conftest.$ac_ext
25612 cat >>conftest.$ac_ext <<_ACEOF
25613 /* end confdefs.h. */
25614 #include <$ac_header>
25616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25619 grep -v '^ *+' conftest.er1 >conftest.err
25621 cat conftest.err >&5
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); } >/dev/null; then
25624 if test -s conftest.err; then
25625 ac_cpp_err=$ac_c_preproc_warn_flag
25626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25633 if test -z "$ac_cpp_err"; then
25634 ac_header_preproc=yes
25636 echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25639 ac_header_preproc=no
25641 rm -f conftest.err conftest.$ac_ext
25642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25643 echo "${ECHO_T}$ac_header_preproc" >&6
25645 # So? What about this header?
25646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25652 ac_header_preproc=yes
25655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25669 ## ----------------------------------- ##
25670 ## Report this to llvmbugs@cs.uiuc.edu ##
25671 ## ----------------------------------- ##
25674 sed "s/^/$as_me: WARNING: /" >&2
25677 echo "$as_me:$LINENO: checking for $ac_header" >&5
25678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25680 echo $ECHO_N "(cached) $ECHO_C" >&6
25682 eval "$as_ac_Header=\$ac_header_preproc"
25684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25689 cat >>confdefs.h <<_ACEOF
25690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25700 for ac_header in malloc.h unistd.h windows.h
25702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25704 echo "$as_me:$LINENO: checking for $ac_header" >&5
25705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
25709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25712 # Is the header compilable?
25713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25715 cat >conftest.$ac_ext <<_ACEOF
25718 cat confdefs.h >>conftest.$ac_ext
25719 cat >>conftest.$ac_ext <<_ACEOF
25720 /* end confdefs.h. */
25721 $ac_includes_default
25722 #include <$ac_header>
25724 rm -f conftest.$ac_objext
25725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25726 (eval $ac_compile) 2>conftest.er1
25728 grep -v '^ *+' conftest.er1 >conftest.err
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } &&
25733 { ac_try='test -z "$ac_c_werror_flag"
25734 || test ! -s conftest.err'
25735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736 (eval $ac_try) 2>&5
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); }; } &&
25740 { ac_try='test -s conftest.$ac_objext'
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; }; then
25746 ac_header_compiler=yes
25748 echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25751 ac_header_compiler=no
25753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25755 echo "${ECHO_T}$ac_header_compiler" >&6
25757 # Is the header present?
25758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25760 cat >conftest.$ac_ext <<_ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h. */
25766 #include <$ac_header>
25768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25771 grep -v '^ *+' conftest.er1 >conftest.err
25773 cat conftest.err >&5
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); } >/dev/null; then
25776 if test -s conftest.err; then
25777 ac_cpp_err=$ac_c_preproc_warn_flag
25778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25785 if test -z "$ac_cpp_err"; then
25786 ac_header_preproc=yes
25788 echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.$ac_ext >&5
25791 ac_header_preproc=no
25793 rm -f conftest.err conftest.$ac_ext
25794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25795 echo "${ECHO_T}$ac_header_preproc" >&6
25797 # So? What about this header?
25798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25804 ac_header_preproc=yes
25807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25821 ## ----------------------------------- ##
25822 ## Report this to llvmbugs@cs.uiuc.edu ##
25823 ## ----------------------------------- ##
25826 sed "s/^/$as_me: WARNING: /" >&2
25829 echo "$as_me:$LINENO: checking for $ac_header" >&5
25830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25834 eval "$as_ac_Header=\$ac_header_preproc"
25836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25841 cat >>confdefs.h <<_ACEOF
25842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25849 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25850 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25851 if test "${ac_cv_header_time+set}" = set; then
25852 echo $ECHO_N "(cached) $ECHO_C" >&6
25854 cat >conftest.$ac_ext <<_ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h. */
25860 #include <sys/types.h>
25861 #include <sys/time.h>
25867 if ((struct tm *) 0)
25873 rm -f conftest.$ac_objext
25874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25875 (eval $ac_compile) 2>conftest.er1
25877 grep -v '^ *+' conftest.er1 >conftest.err
25879 cat conftest.err >&5
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); } &&
25882 { ac_try='test -z "$ac_c_werror_flag"
25883 || test ! -s conftest.err'
25884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885 (eval $ac_try) 2>&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); }; } &&
25889 { ac_try='test -s conftest.$ac_objext'
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; }; then
25895 ac_cv_header_time=yes
25897 echo "$as_me: failed program was:" >&5
25898 sed 's/^/| /' conftest.$ac_ext >&5
25900 ac_cv_header_time=no
25902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25904 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25905 echo "${ECHO_T}$ac_cv_header_time" >&6
25906 if test $ac_cv_header_time = yes; then
25908 cat >>confdefs.h <<\_ACEOF
25909 #define TIME_WITH_SYS_TIME 1
25914 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25915 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25916 if test "${ac_cv_header_mmap_anon+set}" = set; then
25917 echo $ECHO_N "(cached) $ECHO_C" >&6
25920 ac_cpp='$CPP $CPPFLAGS'
25921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25925 cat >conftest.$ac_ext <<_ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25931 #include <sys/mman.h>
25932 #include <unistd.h>
25937 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25942 rm -f conftest.$ac_objext
25943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25944 (eval $ac_compile) 2>conftest.er1
25946 grep -v '^ *+' conftest.er1 >conftest.err
25948 cat conftest.err >&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); } &&
25951 { ac_try='test -z "$ac_c_werror_flag"
25952 || test ! -s conftest.err'
25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954 (eval $ac_try) 2>&5
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; } &&
25958 { ac_try='test -s conftest.$ac_objext'
25959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960 (eval $ac_try) 2>&5
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); }; }; then
25964 ac_cv_header_mmap_anon=yes
25966 echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25969 ac_cv_header_mmap_anon=no
25971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25973 ac_cpp='$CPP $CPPFLAGS'
25974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25980 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25981 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25982 if test "$ac_cv_header_mmap_anon" = yes; then
25984 cat >>confdefs.h <<\_ACEOF
25985 #define HAVE_MMAP_ANONYMOUS
25993 for ac_header in inttypes.h stdint.h
25995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25997 echo "$as_me:$LINENO: checking for $ac_header" >&5
25998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
26002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26005 # Is the header compilable?
26006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26008 cat >conftest.$ac_ext <<_ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 $ac_includes_default
26015 #include <$ac_header>
26017 rm -f conftest.$ac_objext
26018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26019 (eval $ac_compile) 2>conftest.er1
26021 grep -v '^ *+' conftest.er1 >conftest.err
26023 cat conftest.err >&5
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); } &&
26026 { ac_try='test -z "$ac_c_werror_flag"
26027 || test ! -s conftest.err'
26028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029 (eval $ac_try) 2>&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); }; } &&
26033 { ac_try='test -s conftest.$ac_objext'
26034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; }; then
26039 ac_header_compiler=yes
26041 echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26044 ac_header_compiler=no
26046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26048 echo "${ECHO_T}$ac_header_compiler" >&6
26050 # Is the header present?
26051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26053 cat >conftest.$ac_ext <<_ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h. */
26059 #include <$ac_header>
26061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26064 grep -v '^ *+' conftest.er1 >conftest.err
26066 cat conftest.err >&5
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); } >/dev/null; then
26069 if test -s conftest.err; then
26070 ac_cpp_err=$ac_c_preproc_warn_flag
26071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26078 if test -z "$ac_cpp_err"; then
26079 ac_header_preproc=yes
26081 echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26084 ac_header_preproc=no
26086 rm -f conftest.err conftest.$ac_ext
26087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26088 echo "${ECHO_T}$ac_header_preproc" >&6
26090 # So? What about this header?
26091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26097 ac_header_preproc=yes
26100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26114 ## ----------------------------------- ##
26115 ## Report this to llvmbugs@cs.uiuc.edu ##
26116 ## ----------------------------------- ##
26119 sed "s/^/$as_me: WARNING: /" >&2
26122 echo "$as_me:$LINENO: checking for $ac_header" >&5
26123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26125 echo $ECHO_N "(cached) $ECHO_C" >&6
26127 eval "$as_ac_Header=\$ac_header_preproc"
26129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26134 cat >>confdefs.h <<_ACEOF
26135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26144 echo "$as_me:$LINENO: checking for pid_t" >&5
26145 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26146 if test "${ac_cv_type_pid_t+set}" = set; then
26147 echo $ECHO_N "(cached) $ECHO_C" >&6
26149 cat >conftest.$ac_ext <<_ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h. */
26155 $ac_includes_default
26161 if (sizeof (pid_t))
26167 rm -f conftest.$ac_objext
26168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26169 (eval $ac_compile) 2>conftest.er1
26171 grep -v '^ *+' conftest.er1 >conftest.err
26173 cat conftest.err >&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } &&
26176 { ac_try='test -z "$ac_c_werror_flag"
26177 || test ! -s conftest.err'
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; } &&
26183 { ac_try='test -s conftest.$ac_objext'
26184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185 (eval $ac_try) 2>&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; }; then
26189 ac_cv_type_pid_t=yes
26191 echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 ac_cv_type_pid_t=no
26196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26198 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26199 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26200 if test $ac_cv_type_pid_t = yes; then
26204 cat >>confdefs.h <<_ACEOF
26210 echo "$as_me:$LINENO: checking for size_t" >&5
26211 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26212 if test "${ac_cv_type_size_t+set}" = set; then
26213 echo $ECHO_N "(cached) $ECHO_C" >&6
26215 cat >conftest.$ac_ext <<_ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h. */
26221 $ac_includes_default
26227 if (sizeof (size_t))
26233 rm -f conftest.$ac_objext
26234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26235 (eval $ac_compile) 2>conftest.er1
26237 grep -v '^ *+' conftest.er1 >conftest.err
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } &&
26242 { ac_try='test -z "$ac_c_werror_flag"
26243 || test ! -s conftest.err'
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; } &&
26249 { ac_try='test -s conftest.$ac_objext'
26250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; }; then
26255 ac_cv_type_size_t=yes
26257 echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26260 ac_cv_type_size_t=no
26262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26264 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26265 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26266 if test $ac_cv_type_size_t = yes; then
26270 cat >>confdefs.h <<_ACEOF
26271 #define size_t unsigned
26276 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26277 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26278 if test "${ac_cv_type_signal+set}" = set; then
26279 echo $ECHO_N "(cached) $ECHO_C" >&6
26281 cat >conftest.$ac_ext <<_ACEOF
26284 cat confdefs.h >>conftest.$ac_ext
26285 cat >>conftest.$ac_ext <<_ACEOF
26286 /* end confdefs.h. */
26287 #include <sys/types.h>
26288 #include <signal.h>
26293 extern "C" void (*signal (int, void (*)(int)))(int);
26295 void (*signal ()) ();
26306 rm -f conftest.$ac_objext
26307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26308 (eval $ac_compile) 2>conftest.er1
26310 grep -v '^ *+' conftest.er1 >conftest.err
26312 cat conftest.err >&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } &&
26315 { ac_try='test -z "$ac_c_werror_flag"
26316 || test ! -s conftest.err'
26317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318 (eval $ac_try) 2>&5
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); }; } &&
26322 { ac_try='test -s conftest.$ac_objext'
26323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324 (eval $ac_try) 2>&5
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); }; }; then
26328 ac_cv_type_signal=void
26330 echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26333 ac_cv_type_signal=int
26335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26337 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26338 echo "${ECHO_T}$ac_cv_type_signal" >&6
26340 cat >>confdefs.h <<_ACEOF
26341 #define RETSIGTYPE $ac_cv_type_signal
26345 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26346 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26347 if test "${ac_cv_struct_tm+set}" = set; then
26348 echo $ECHO_N "(cached) $ECHO_C" >&6
26350 cat >conftest.$ac_ext <<_ACEOF
26353 cat confdefs.h >>conftest.$ac_ext
26354 cat >>conftest.$ac_ext <<_ACEOF
26355 /* end confdefs.h. */
26356 #include <sys/types.h>
26362 struct tm *tp; tp->tm_sec;
26367 rm -f conftest.$ac_objext
26368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26369 (eval $ac_compile) 2>conftest.er1
26371 grep -v '^ *+' conftest.er1 >conftest.err
26373 cat conftest.err >&5
26374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 (exit $ac_status); } &&
26376 { ac_try='test -z "$ac_c_werror_flag"
26377 || test ! -s conftest.err'
26378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26379 (eval $ac_try) 2>&5
26381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); }; } &&
26383 { ac_try='test -s conftest.$ac_objext'
26384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385 (eval $ac_try) 2>&5
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); }; }; then
26389 ac_cv_struct_tm=time.h
26391 echo "$as_me: failed program was:" >&5
26392 sed 's/^/| /' conftest.$ac_ext >&5
26394 ac_cv_struct_tm=sys/time.h
26396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26398 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26399 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26400 if test $ac_cv_struct_tm = sys/time.h; then
26402 cat >>confdefs.h <<\_ACEOF
26403 #define TM_IN_SYS_TIME 1
26408 echo "$as_me:$LINENO: checking for int64_t" >&5
26409 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26410 if test "${ac_cv_type_int64_t+set}" = set; then
26411 echo $ECHO_N "(cached) $ECHO_C" >&6
26413 cat >conftest.$ac_ext <<_ACEOF
26416 cat confdefs.h >>conftest.$ac_ext
26417 cat >>conftest.$ac_ext <<_ACEOF
26418 /* end confdefs.h. */
26419 $ac_includes_default
26425 if (sizeof (int64_t))
26431 rm -f conftest.$ac_objext
26432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26433 (eval $ac_compile) 2>conftest.er1
26435 grep -v '^ *+' conftest.er1 >conftest.err
26437 cat conftest.err >&5
26438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); } &&
26440 { ac_try='test -z "$ac_c_werror_flag"
26441 || test ! -s conftest.err'
26442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26443 (eval $ac_try) 2>&5
26445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); }; } &&
26447 { ac_try='test -s conftest.$ac_objext'
26448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449 (eval $ac_try) 2>&5
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); }; }; then
26453 ac_cv_type_int64_t=yes
26455 echo "$as_me: failed program was:" >&5
26456 sed 's/^/| /' conftest.$ac_ext >&5
26458 ac_cv_type_int64_t=no
26460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26462 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26463 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26464 if test $ac_cv_type_int64_t = yes; then
26466 cat >>confdefs.h <<_ACEOF
26467 #define HAVE_INT64_T 1
26472 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26473 echo "$as_me: error: Type int64_t required but not found" >&2;}
26474 { (exit 1); exit 1; }; }
26477 echo "$as_me:$LINENO: checking for uint64_t" >&5
26478 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26479 if test "${ac_cv_type_uint64_t+set}" = set; then
26480 echo $ECHO_N "(cached) $ECHO_C" >&6
26482 cat >conftest.$ac_ext <<_ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h. */
26488 $ac_includes_default
26492 if ((uint64_t *) 0)
26494 if (sizeof (uint64_t))
26500 rm -f conftest.$ac_objext
26501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26502 (eval $ac_compile) 2>conftest.er1
26504 grep -v '^ *+' conftest.er1 >conftest.err
26506 cat conftest.err >&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } &&
26509 { ac_try='test -z "$ac_c_werror_flag"
26510 || test ! -s conftest.err'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; } &&
26516 { ac_try='test -s conftest.$ac_objext'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; }; then
26522 ac_cv_type_uint64_t=yes
26524 echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26527 ac_cv_type_uint64_t=no
26529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26531 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26532 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26533 if test $ac_cv_type_uint64_t = yes; then
26535 cat >>confdefs.h <<_ACEOF
26536 #define HAVE_UINT64_T 1
26541 echo "$as_me:$LINENO: checking for u_int64_t" >&5
26542 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26543 if test "${ac_cv_type_u_int64_t+set}" = set; then
26544 echo $ECHO_N "(cached) $ECHO_C" >&6
26546 cat >conftest.$ac_ext <<_ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h. */
26552 $ac_includes_default
26556 if ((u_int64_t *) 0)
26558 if (sizeof (u_int64_t))
26564 rm -f conftest.$ac_objext
26565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26566 (eval $ac_compile) 2>conftest.er1
26568 grep -v '^ *+' conftest.er1 >conftest.err
26570 cat conftest.err >&5
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } &&
26573 { ac_try='test -z "$ac_c_werror_flag"
26574 || test ! -s conftest.err'
26575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576 (eval $ac_try) 2>&5
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); }; } &&
26580 { ac_try='test -s conftest.$ac_objext'
26581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582 (eval $ac_try) 2>&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; }; then
26586 ac_cv_type_u_int64_t=yes
26588 echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26591 ac_cv_type_u_int64_t=no
26593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26595 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26596 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26597 if test $ac_cv_type_u_int64_t = yes; then
26599 cat >>confdefs.h <<_ACEOF
26600 #define HAVE_U_INT64_T 1
26605 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26606 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26607 { (exit 1); exit 1; }; }
26620 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
26622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26623 echo "$as_me:$LINENO: checking for $ac_func" >&5
26624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26625 if eval "test \"\${$as_ac_var+set}\" = set"; then
26626 echo $ECHO_N "(cached) $ECHO_C" >&6
26628 cat >conftest.$ac_ext <<_ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h. */
26634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26636 #define $ac_func innocuous_$ac_func
26638 /* System header to define __stub macros and hopefully few prototypes,
26639 which can conflict with char $ac_func (); below.
26640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26641 <limits.h> exists even on freestanding compilers. */
26644 # include <limits.h>
26646 # include <assert.h>
26651 /* Override any gcc2 internal prototype to avoid an error. */
26656 /* We use char because int might match the return type of a gcc2
26657 builtin and then its argument prototype would still apply. */
26659 /* The GNU C library defines this for functions which it implements
26660 to always fail with ENOSYS. Some functions are actually named
26661 something starting with __ and the normal name is an alias. */
26662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26665 char (*f) () = $ac_func;
26674 return f != $ac_func;
26679 rm -f conftest.$ac_objext conftest$ac_exeext
26680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26681 (eval $ac_link) 2>conftest.er1
26683 grep -v '^ *+' conftest.er1 >conftest.err
26685 cat conftest.err >&5
26686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); } &&
26688 { ac_try='test -z "$ac_c_werror_flag"
26689 || test ! -s conftest.err'
26690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; } &&
26695 { ac_try='test -s conftest$ac_exeext'
26696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697 (eval $ac_try) 2>&5
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; }; then
26701 eval "$as_ac_var=yes"
26703 echo "$as_me: failed program was:" >&5
26704 sed 's/^/| /' conftest.$ac_ext >&5
26706 eval "$as_ac_var=no"
26708 rm -f conftest.err conftest.$ac_objext \
26709 conftest$ac_exeext conftest.$ac_ext
26711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26713 if test `eval echo '${'$as_ac_var'}'` = yes; then
26714 cat >>confdefs.h <<_ACEOF
26715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26724 for ac_func in strdup strtoq strtoll
26726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26727 echo "$as_me:$LINENO: checking for $ac_func" >&5
26728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26729 if eval "test \"\${$as_ac_var+set}\" = set"; then
26730 echo $ECHO_N "(cached) $ECHO_C" >&6
26732 cat >conftest.$ac_ext <<_ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h. */
26738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26740 #define $ac_func innocuous_$ac_func
26742 /* System header to define __stub macros and hopefully few prototypes,
26743 which can conflict with char $ac_func (); below.
26744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26745 <limits.h> exists even on freestanding compilers. */
26748 # include <limits.h>
26750 # include <assert.h>
26755 /* Override any gcc2 internal prototype to avoid an error. */
26760 /* We use char because int might match the return type of a gcc2
26761 builtin and then its argument prototype would still apply. */
26763 /* The GNU C library defines this for functions which it implements
26764 to always fail with ENOSYS. Some functions are actually named
26765 something starting with __ and the normal name is an alias. */
26766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26769 char (*f) () = $ac_func;
26778 return f != $ac_func;
26783 rm -f conftest.$ac_objext conftest$ac_exeext
26784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26785 (eval $ac_link) 2>conftest.er1
26787 grep -v '^ *+' conftest.er1 >conftest.err
26789 cat conftest.err >&5
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); } &&
26792 { ac_try='test -z "$ac_c_werror_flag"
26793 || test ! -s conftest.err'
26794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795 (eval $ac_try) 2>&5
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; } &&
26799 { ac_try='test -s conftest$ac_exeext'
26800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801 (eval $ac_try) 2>&5
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; }; then
26805 eval "$as_ac_var=yes"
26807 echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26810 eval "$as_ac_var=no"
26812 rm -f conftest.err conftest.$ac_objext \
26813 conftest$ac_exeext conftest.$ac_ext
26815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26817 if test `eval echo '${'$as_ac_var'}'` = yes; then
26818 cat >>confdefs.h <<_ACEOF
26819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26825 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26826 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
26827 if test "${llvm_cv_c_printf_a+set}" = set; then
26828 echo $ECHO_N "(cached) $ECHO_C" >&6
26831 ac_cpp='$CPP $CPPFLAGS'
26832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26836 if test "$cross_compiling" = yes; then
26837 llvmac_cv_c_printf_a=no
26839 cat >conftest.$ac_ext <<_ACEOF
26843 cat confdefs.h >>conftest.$ac_ext
26844 cat >>conftest.$ac_ext <<_ACEOF
26845 /* end confdefs.h. */
26848 #include <stdlib.h>
26854 volatile double A, B;
26858 sprintf(Buffer, "%a", A);
26862 if (A != 0x1.999999999999ap-4)
26869 rm -f conftest$ac_exeext
26870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26871 (eval $ac_link) 2>&5
26873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876 (eval $ac_try) 2>&5
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; }; then
26880 llvm_cv_c_printf_a=yes
26882 echo "$as_me: program exited with status $ac_status" >&5
26883 echo "$as_me: failed program was:" >&5
26884 sed 's/^/| /' conftest.$ac_ext >&5
26886 ( exit $ac_status )
26887 llvmac_cv_c_printf_a=no
26889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26892 ac_cpp='$CPP $CPPFLAGS'
26893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26898 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26899 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26900 if test "$llvm_cv_c_printf_a" = "yes"; then
26902 cat >>confdefs.h <<\_ACEOF
26903 #define HAVE_PRINTF_A 1
26908 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26909 # for constant arguments. Useless!
26910 echo "$as_me:$LINENO: checking for working alloca.h" >&5
26911 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26912 if test "${ac_cv_working_alloca_h+set}" = set; then
26913 echo $ECHO_N "(cached) $ECHO_C" >&6
26915 cat >conftest.$ac_ext <<_ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h. */
26921 #include <alloca.h>
26925 char *p = (char *) alloca (2 * sizeof (int));
26930 rm -f conftest.$ac_objext conftest$ac_exeext
26931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26932 (eval $ac_link) 2>conftest.er1
26934 grep -v '^ *+' conftest.er1 >conftest.err
26936 cat conftest.err >&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); } &&
26939 { ac_try='test -z "$ac_c_werror_flag"
26940 || test ! -s conftest.err'
26941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26942 (eval $ac_try) 2>&5
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); }; } &&
26946 { ac_try='test -s conftest$ac_exeext'
26947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948 (eval $ac_try) 2>&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); }; }; then
26952 ac_cv_working_alloca_h=yes
26954 echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26957 ac_cv_working_alloca_h=no
26959 rm -f conftest.err conftest.$ac_objext \
26960 conftest$ac_exeext conftest.$ac_ext
26962 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
26963 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
26964 if test $ac_cv_working_alloca_h = yes; then
26966 cat >>confdefs.h <<\_ACEOF
26967 #define HAVE_ALLOCA_H 1
26972 echo "$as_me:$LINENO: checking for alloca" >&5
26973 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
26974 if test "${ac_cv_func_alloca_works+set}" = set; then
26975 echo $ECHO_N "(cached) $ECHO_C" >&6
26977 cat >conftest.$ac_ext <<_ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h. */
26984 # define alloca __builtin_alloca
26987 # include <malloc.h>
26988 # define alloca _alloca
26991 # include <alloca.h>
26996 # ifndef alloca /* predefined by HP cc +Olibcalls */
27007 char *p = (char *) alloca (1);
27012 rm -f conftest.$ac_objext conftest$ac_exeext
27013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27014 (eval $ac_link) 2>conftest.er1
27016 grep -v '^ *+' conftest.er1 >conftest.err
27018 cat conftest.err >&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); } &&
27021 { ac_try='test -z "$ac_c_werror_flag"
27022 || test ! -s conftest.err'
27023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27024 (eval $ac_try) 2>&5
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); }; } &&
27028 { ac_try='test -s conftest$ac_exeext'
27029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030 (eval $ac_try) 2>&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; }; then
27034 ac_cv_func_alloca_works=yes
27036 echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.$ac_ext >&5
27039 ac_cv_func_alloca_works=no
27041 rm -f conftest.err conftest.$ac_objext \
27042 conftest$ac_exeext conftest.$ac_ext
27044 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27045 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27047 if test $ac_cv_func_alloca_works = yes; then
27049 cat >>confdefs.h <<\_ACEOF
27050 #define HAVE_ALLOCA 1
27054 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27055 # that cause trouble. Some versions do not even contain alloca or
27056 # contain a buggy version. If you still want to use their alloca,
27057 # use ar to extract alloca.o from them instead of compiling alloca.c.
27059 ALLOCA=alloca.$ac_objext
27061 cat >>confdefs.h <<\_ACEOF
27066 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27067 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27068 if test "${ac_cv_os_cray+set}" = set; then
27069 echo $ECHO_N "(cached) $ECHO_C" >&6
27071 cat >conftest.$ac_ext <<_ACEOF
27074 cat confdefs.h >>conftest.$ac_ext
27075 cat >>conftest.$ac_ext <<_ACEOF
27076 /* end confdefs.h. */
27077 #if defined(CRAY) && ! defined(CRAY2)
27084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27085 $EGREP "webecray" >/dev/null 2>&1; then
27093 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27094 echo "${ECHO_T}$ac_cv_os_cray" >&6
27095 if test $ac_cv_os_cray = yes; then
27096 for ac_func in _getb67 GETB67 getb67; do
27097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27098 echo "$as_me:$LINENO: checking for $ac_func" >&5
27099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27100 if eval "test \"\${$as_ac_var+set}\" = set"; then
27101 echo $ECHO_N "(cached) $ECHO_C" >&6
27103 cat >conftest.$ac_ext <<_ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h. */
27109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27111 #define $ac_func innocuous_$ac_func
27113 /* System header to define __stub macros and hopefully few prototypes,
27114 which can conflict with char $ac_func (); below.
27115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27116 <limits.h> exists even on freestanding compilers. */
27119 # include <limits.h>
27121 # include <assert.h>
27126 /* Override any gcc2 internal prototype to avoid an error. */
27131 /* We use char because int might match the return type of a gcc2
27132 builtin and then its argument prototype would still apply. */
27134 /* The GNU C library defines this for functions which it implements
27135 to always fail with ENOSYS. Some functions are actually named
27136 something starting with __ and the normal name is an alias. */
27137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27140 char (*f) () = $ac_func;
27149 return f != $ac_func;
27154 rm -f conftest.$ac_objext conftest$ac_exeext
27155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27156 (eval $ac_link) 2>conftest.er1
27158 grep -v '^ *+' conftest.er1 >conftest.err
27160 cat conftest.err >&5
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); } &&
27163 { ac_try='test -z "$ac_c_werror_flag"
27164 || test ! -s conftest.err'
27165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27166 (eval $ac_try) 2>&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); }; } &&
27170 { ac_try='test -s conftest$ac_exeext'
27171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27172 (eval $ac_try) 2>&5
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); }; }; then
27176 eval "$as_ac_var=yes"
27178 echo "$as_me: failed program was:" >&5
27179 sed 's/^/| /' conftest.$ac_ext >&5
27181 eval "$as_ac_var=no"
27183 rm -f conftest.err conftest.$ac_objext \
27184 conftest$ac_exeext conftest.$ac_ext
27186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27188 if test `eval echo '${'$as_ac_var'}'` = yes; then
27190 cat >>confdefs.h <<_ACEOF
27191 #define CRAY_STACKSEG_END $ac_func
27200 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27201 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27202 if test "${ac_cv_c_stack_direction+set}" = set; then
27203 echo $ECHO_N "(cached) $ECHO_C" >&6
27205 if test "$cross_compiling" = yes; then
27206 ac_cv_c_stack_direction=0
27208 cat >conftest.$ac_ext <<_ACEOF
27211 cat confdefs.h >>conftest.$ac_ext
27212 cat >>conftest.$ac_ext <<_ACEOF
27213 /* end confdefs.h. */
27215 find_stack_direction ()
27217 static char *addr = 0;
27222 return find_stack_direction ();
27225 return (&dummy > addr) ? 1 : -1;
27231 exit (find_stack_direction () < 0);
27234 rm -f conftest$ac_exeext
27235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27236 (eval $ac_link) 2>&5
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27241 (eval $ac_try) 2>&5
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); }; }; then
27245 ac_cv_c_stack_direction=1
27247 echo "$as_me: program exited with status $ac_status" >&5
27248 echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27251 ( exit $ac_status )
27252 ac_cv_c_stack_direction=-1
27254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27257 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27258 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27260 cat >>confdefs.h <<_ACEOF
27261 #define STACK_DIRECTION $ac_cv_c_stack_direction
27268 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27269 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27270 if test "${ac_cv_func_rand48+set}" = set; then
27271 echo $ECHO_N "(cached) $ECHO_C" >&6
27274 ac_cpp='$CXXCPP $CPPFLAGS'
27275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27279 cat >conftest.$ac_ext <<_ACEOF
27282 cat confdefs.h >>conftest.$ac_ext
27283 cat >>conftest.$ac_ext <<_ACEOF
27284 /* end confdefs.h. */
27285 #include <stdlib.h>
27289 srand48(0);lrand48();drand48();
27294 rm -f conftest.$ac_objext
27295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27296 (eval $ac_compile) 2>conftest.er1
27298 grep -v '^ *+' conftest.er1 >conftest.err
27300 cat conftest.err >&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } &&
27303 { ac_try='test -z "$ac_cxx_werror_flag"
27304 || test ! -s conftest.err'
27305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27306 (eval $ac_try) 2>&5
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); }; } &&
27310 { ac_try='test -s conftest.$ac_objext'
27311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312 (eval $ac_try) 2>&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; }; then
27316 ac_cv_func_rand48=yes
27318 echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27321 ac_cv_func_rand48=no
27323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27325 ac_cpp='$CPP $CPPFLAGS'
27326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27331 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27332 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27334 if test "$ac_cv_func_rand48" = "yes" ; then
27336 cat >>confdefs.h <<\_ACEOF
27337 #define HAVE_RAND48 1
27343 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27344 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27345 if test "${ac_cv_cxx_namespaces+set}" = set; then
27346 echo $ECHO_N "(cached) $ECHO_C" >&6
27349 ac_cpp='$CXXCPP $CPPFLAGS'
27350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27354 cat >conftest.$ac_ext <<_ACEOF
27357 cat confdefs.h >>conftest.$ac_ext
27358 cat >>conftest.$ac_ext <<_ACEOF
27359 /* end confdefs.h. */
27360 namespace Outer { namespace Inner { int i = 0; }}
27364 using namespace Outer::Inner; return i;
27369 rm -f conftest.$ac_objext
27370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27371 (eval $ac_compile) 2>conftest.er1
27373 grep -v '^ *+' conftest.er1 >conftest.err
27375 cat conftest.err >&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); } &&
27378 { ac_try='test -z "$ac_cxx_werror_flag"
27379 || test ! -s conftest.err'
27380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381 (eval $ac_try) 2>&5
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; } &&
27385 { ac_try='test -s conftest.$ac_objext'
27386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387 (eval $ac_try) 2>&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; }; then
27391 ac_cv_cxx_namespaces=yes
27393 echo "$as_me: failed program was:" >&5
27394 sed 's/^/| /' conftest.$ac_ext >&5
27396 ac_cv_cxx_namespaces=no
27398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27400 ac_cpp='$CPP $CPPFLAGS'
27401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27407 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27408 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27409 if test "$ac_cv_cxx_namespaces" = yes; then
27411 cat >>confdefs.h <<\_ACEOF
27412 #define HAVE_NAMESPACES
27417 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27418 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27419 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27420 echo $ECHO_N "(cached) $ECHO_C" >&6
27424 ac_cpp='$CXXCPP $CPPFLAGS'
27425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27429 cat >conftest.$ac_ext <<_ACEOF
27432 cat confdefs.h >>conftest.$ac_ext
27433 cat >>conftest.$ac_ext <<_ACEOF
27434 /* end confdefs.h. */
27435 #include <ext/hash_map>
27436 #ifdef HAVE_NAMESPACES
27437 using namespace std;
27442 hash_map<int, int> t;
27447 rm -f conftest.$ac_objext
27448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27449 (eval $ac_compile) 2>conftest.er1
27451 grep -v '^ *+' conftest.er1 >conftest.err
27453 cat conftest.err >&5
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); } &&
27456 { ac_try='test -z "$ac_cxx_werror_flag"
27457 || test ! -s conftest.err'
27458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27459 (eval $ac_try) 2>&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); }; } &&
27463 { ac_try='test -s conftest.$ac_objext'
27464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465 (eval $ac_try) 2>&5
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; }; then
27469 ac_cv_cxx_have_std_ext_hash_map=yes
27471 echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27474 ac_cv_cxx_have_std_ext_hash_map=no
27476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27478 ac_cpp='$CPP $CPPFLAGS'
27479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27484 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27485 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27486 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27489 cat >>confdefs.h <<\_ACEOF
27490 #define HAVE_STD_EXT_HASH_MAP 1
27495 cat >>confdefs.h <<\_ACEOF
27496 #define HAVE_STD_EXT_HASH_MAP 0
27501 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27502 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27503 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27504 echo $ECHO_N "(cached) $ECHO_C" >&6
27508 ac_cpp='$CXXCPP $CPPFLAGS'
27509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27513 cat >conftest.$ac_ext <<_ACEOF
27516 cat confdefs.h >>conftest.$ac_ext
27517 cat >>conftest.$ac_ext <<_ACEOF
27518 /* end confdefs.h. */
27519 #include <ext/hash_map>
27520 #ifdef HAVE_NAMESPACES
27521 using namespace __gnu_cxx;
27526 hash_map<int,int> t;
27531 rm -f conftest.$ac_objext
27532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27533 (eval $ac_compile) 2>conftest.er1
27535 grep -v '^ *+' conftest.er1 >conftest.err
27537 cat conftest.err >&5
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); } &&
27540 { ac_try='test -z "$ac_cxx_werror_flag"
27541 || test ! -s conftest.err'
27542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27543 (eval $ac_try) 2>&5
27545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); }; } &&
27547 { ac_try='test -s conftest.$ac_objext'
27548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27549 (eval $ac_try) 2>&5
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); }; }; then
27553 ac_cv_cxx_have_gnu_ext_hash_map=yes
27555 echo "$as_me: failed program was:" >&5
27556 sed 's/^/| /' conftest.$ac_ext >&5
27558 ac_cv_cxx_have_gnu_ext_hash_map=no
27560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27562 ac_cpp='$CPP $CPPFLAGS'
27563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27568 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27569 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27570 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27573 cat >>confdefs.h <<\_ACEOF
27574 #define HAVE_GNU_EXT_HASH_MAP 1
27579 cat >>confdefs.h <<\_ACEOF
27580 #define HAVE_GNU_EXT_HASH_MAP 0
27585 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27586 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27587 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27588 echo $ECHO_N "(cached) $ECHO_C" >&6
27592 ac_cpp='$CXXCPP $CPPFLAGS'
27593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27597 cat >conftest.$ac_ext <<_ACEOF
27600 cat confdefs.h >>conftest.$ac_ext
27601 cat >>conftest.$ac_ext <<_ACEOF
27602 /* end confdefs.h. */
27603 #include <hash_map>
27607 hash_map<int,int> t;
27612 rm -f conftest.$ac_objext
27613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27614 (eval $ac_compile) 2>conftest.er1
27616 grep -v '^ *+' conftest.er1 >conftest.err
27618 cat conftest.err >&5
27619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620 (exit $ac_status); } &&
27621 { ac_try='test -z "$ac_cxx_werror_flag"
27622 || test ! -s conftest.err'
27623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27624 (eval $ac_try) 2>&5
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); }; } &&
27628 { ac_try='test -s conftest.$ac_objext'
27629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630 (eval $ac_try) 2>&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); }; }; then
27634 ac_cv_cxx_have_global_hash_map=yes
27636 echo "$as_me: failed program was:" >&5
27637 sed 's/^/| /' conftest.$ac_ext >&5
27639 ac_cv_cxx_have_global_hash_map=no
27641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27643 ac_cpp='$CPP $CPPFLAGS'
27644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27649 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27650 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27651 if test "$ac_cv_cxx_have_global_hash_map" = yes
27654 cat >>confdefs.h <<\_ACEOF
27655 #define HAVE_GLOBAL_HASH_MAP 1
27660 cat >>confdefs.h <<\_ACEOF
27661 #define HAVE_GLOBAL_HASH_MAP 0
27666 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27667 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27668 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27669 echo $ECHO_N "(cached) $ECHO_C" >&6
27673 ac_cpp='$CXXCPP $CPPFLAGS'
27674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27678 cat >conftest.$ac_ext <<_ACEOF
27681 cat confdefs.h >>conftest.$ac_ext
27682 cat >>conftest.$ac_ext <<_ACEOF
27683 /* end confdefs.h. */
27684 #include <ext/hash_set>
27685 #ifdef HAVE_NAMESPACES
27686 using namespace std;
27696 rm -f conftest.$ac_objext
27697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27698 (eval $ac_compile) 2>conftest.er1
27700 grep -v '^ *+' conftest.er1 >conftest.err
27702 cat conftest.err >&5
27703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); } &&
27705 { ac_try='test -z "$ac_cxx_werror_flag"
27706 || test ! -s conftest.err'
27707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27708 (eval $ac_try) 2>&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); }; } &&
27712 { ac_try='test -s conftest.$ac_objext'
27713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714 (eval $ac_try) 2>&5
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); }; }; then
27718 ac_cv_cxx_have_std_ext_hash_set=yes
27720 echo "$as_me: failed program was:" >&5
27721 sed 's/^/| /' conftest.$ac_ext >&5
27723 ac_cv_cxx_have_std_ext_hash_set=no
27725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27727 ac_cpp='$CPP $CPPFLAGS'
27728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27733 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27734 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27735 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27738 cat >>confdefs.h <<\_ACEOF
27739 #define HAVE_STD_EXT_HASH_SET 1
27744 cat >>confdefs.h <<\_ACEOF
27745 #define HAVE_STD_EXT_HASH_SET 0
27750 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27751 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27752 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27753 echo $ECHO_N "(cached) $ECHO_C" >&6
27757 ac_cpp='$CXXCPP $CPPFLAGS'
27758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27762 cat >conftest.$ac_ext <<_ACEOF
27765 cat confdefs.h >>conftest.$ac_ext
27766 cat >>conftest.$ac_ext <<_ACEOF
27767 /* end confdefs.h. */
27768 #include <ext/hash_set>
27769 #ifdef HAVE_NAMESPACES
27770 using namespace __gnu_cxx;
27780 rm -f conftest.$ac_objext
27781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27782 (eval $ac_compile) 2>conftest.er1
27784 grep -v '^ *+' conftest.er1 >conftest.err
27786 cat conftest.err >&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); } &&
27789 { ac_try='test -z "$ac_cxx_werror_flag"
27790 || test ! -s conftest.err'
27791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792 (eval $ac_try) 2>&5
27794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795 (exit $ac_status); }; } &&
27796 { ac_try='test -s conftest.$ac_objext'
27797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798 (eval $ac_try) 2>&5
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; }; then
27802 ac_cv_cxx_have_gnu_ext_hash_set=yes
27804 echo "$as_me: failed program was:" >&5
27805 sed 's/^/| /' conftest.$ac_ext >&5
27807 ac_cv_cxx_have_gnu_ext_hash_set=no
27809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27811 ac_cpp='$CPP $CPPFLAGS'
27812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27817 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27818 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
27819 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27822 cat >>confdefs.h <<\_ACEOF
27823 #define HAVE_GNU_EXT_HASH_SET 1
27828 cat >>confdefs.h <<\_ACEOF
27829 #define HAVE_GNU_EXT_HASH_SET 0
27834 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27835 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27836 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27837 echo $ECHO_N "(cached) $ECHO_C" >&6
27841 ac_cpp='$CXXCPP $CPPFLAGS'
27842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27846 cat >conftest.$ac_ext <<_ACEOF
27849 cat confdefs.h >>conftest.$ac_ext
27850 cat >>conftest.$ac_ext <<_ACEOF
27851 /* end confdefs.h. */
27852 #include <hash_set>
27856 hash_set<int> t; return 0;
27861 rm -f conftest.$ac_objext
27862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27863 (eval $ac_compile) 2>conftest.er1
27865 grep -v '^ *+' conftest.er1 >conftest.err
27867 cat conftest.err >&5
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); } &&
27870 { ac_try='test -z "$ac_cxx_werror_flag"
27871 || test ! -s conftest.err'
27872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873 (eval $ac_try) 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; } &&
27877 { ac_try='test -s conftest.$ac_objext'
27878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879 (eval $ac_try) 2>&5
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; }; then
27883 ac_cv_cxx_have_global_hash_set=yes
27885 echo "$as_me: failed program was:" >&5
27886 sed 's/^/| /' conftest.$ac_ext >&5
27888 ac_cv_cxx_have_global_hash_set=no
27890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27892 ac_cpp='$CPP $CPPFLAGS'
27893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27898 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27899 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
27900 if test "$ac_cv_cxx_have_global_hash_set" = yes
27903 cat >>confdefs.h <<\_ACEOF
27904 #define HAVE_GLOBAL_HASH_SET 1
27909 cat >>confdefs.h <<\_ACEOF
27910 #define HAVE_GLOBAL_HASH_SET 0
27915 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
27916 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
27917 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
27918 echo $ECHO_N "(cached) $ECHO_C" >&6
27922 ac_cpp='$CXXCPP $CPPFLAGS'
27923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27927 cat >conftest.$ac_ext <<_ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h. */
27933 #include <iterator>
27934 #ifdef HAVE_NAMESPACES
27935 using namespace std;
27940 iterator<int,int,int> t; return 0;
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_cxx_have_std_iterator=yes
27969 echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27972 ac_cv_cxx_have_std_iterator=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
27983 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
27984 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
27985 if test "$ac_cv_cxx_have_std_iterator" = yes
27988 cat >>confdefs.h <<\_ACEOF
27989 #define HAVE_STD_ITERATOR 1
27994 cat >>confdefs.h <<\_ACEOF
27995 #define HAVE_STD_ITERATOR 0
28000 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28001 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28002 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28003 echo $ECHO_N "(cached) $ECHO_C" >&6
28007 ac_cpp='$CXXCPP $CPPFLAGS'
28008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28012 cat >conftest.$ac_ext <<_ACEOF
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h. */
28018 #include <iterator>
28019 #ifdef HAVE_NAMESPACES
28020 using namespace std;
28025 bidirectional_iterator<int,int> t; return 0;
28030 rm -f conftest.$ac_objext
28031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28032 (eval $ac_compile) 2>conftest.er1
28034 grep -v '^ *+' conftest.er1 >conftest.err
28036 cat conftest.err >&5
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); } &&
28039 { ac_try='test -z "$ac_cxx_werror_flag"
28040 || test ! -s conftest.err'
28041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042 (eval $ac_try) 2>&5
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); }; } &&
28046 { ac_try='test -s conftest.$ac_objext'
28047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048 (eval $ac_try) 2>&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; }; then
28052 ac_cv_cxx_have_bi_iterator=yes
28054 echo "$as_me: failed program was:" >&5
28055 sed 's/^/| /' conftest.$ac_ext >&5
28057 ac_cv_cxx_have_bi_iterator=no
28059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28061 ac_cpp='$CPP $CPPFLAGS'
28062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28068 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28069 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28070 if test "$ac_cv_cxx_have_bi_iterator" = yes
28073 cat >>confdefs.h <<\_ACEOF
28074 #define HAVE_BI_ITERATOR 1
28079 cat >>confdefs.h <<\_ACEOF
28080 #define HAVE_BI_ITERATOR 0
28085 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28086 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28087 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28088 echo $ECHO_N "(cached) $ECHO_C" >&6
28092 ac_cpp='$CXXCPP $CPPFLAGS'
28093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28097 cat >conftest.$ac_ext <<_ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h. */
28103 #include <iterator>
28104 #ifdef HAVE_NAMESPACES
28105 using namespace std;
28110 forward_iterator<int,int> t; return 0;
28115 rm -f conftest.$ac_objext
28116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28117 (eval $ac_compile) 2>conftest.er1
28119 grep -v '^ *+' conftest.er1 >conftest.err
28121 cat conftest.err >&5
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } &&
28124 { ac_try='test -z "$ac_cxx_werror_flag"
28125 || test ! -s conftest.err'
28126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28127 (eval $ac_try) 2>&5
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); }; } &&
28131 { ac_try='test -s conftest.$ac_objext'
28132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133 (eval $ac_try) 2>&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; }; then
28137 ac_cv_cxx_have_fwd_iterator=yes
28139 echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.$ac_ext >&5
28142 ac_cv_cxx_have_fwd_iterator=no
28144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28146 ac_cpp='$CPP $CPPFLAGS'
28147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28153 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28154 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28155 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28158 cat >>confdefs.h <<\_ACEOF
28159 #define HAVE_FWD_ITERATOR 1
28164 cat >>confdefs.h <<\_ACEOF
28165 #define HAVE_FWD_ITERATOR 0
28171 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28172 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28173 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28174 echo $ECHO_N "(cached) $ECHO_C" >&6
28177 ac_cpp='$CXXCPP $CPPFLAGS'
28178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28182 cat >conftest.$ac_ext <<_ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h. */
28197 rm -f conftest.$ac_objext
28198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28199 (eval $ac_compile) 2>conftest.er1
28201 grep -v '^ *+' conftest.er1 >conftest.err
28203 cat conftest.err >&5
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); } &&
28206 { ac_try='test -z "$ac_cxx_werror_flag"
28207 || test ! -s conftest.err'
28208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209 (eval $ac_try) 2>&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; } &&
28213 { ac_try='test -s conftest.$ac_objext'
28214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28215 (eval $ac_try) 2>&5
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; }; then
28219 ac_cv_func_isnan_in_math_h=yes
28221 echo "$as_me: failed program was:" >&5
28222 sed 's/^/| /' conftest.$ac_ext >&5
28224 ac_cv_func_isnan_in_math_h=no
28226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28228 ac_cpp='$CPP $CPPFLAGS'
28229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28234 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28235 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28238 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28240 cat >>confdefs.h <<\_ACEOF
28241 #define HAVE_ISNAN_IN_MATH_H 1
28246 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28247 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28248 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28249 echo $ECHO_N "(cached) $ECHO_C" >&6
28252 ac_cpp='$CXXCPP $CPPFLAGS'
28253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28257 cat >conftest.$ac_ext <<_ACEOF
28260 cat confdefs.h >>conftest.$ac_ext
28261 cat >>conftest.$ac_ext <<_ACEOF
28262 /* end confdefs.h. */
28272 rm -f conftest.$ac_objext
28273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28274 (eval $ac_compile) 2>conftest.er1
28276 grep -v '^ *+' conftest.er1 >conftest.err
28278 cat conftest.err >&5
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); } &&
28281 { ac_try='test -z "$ac_cxx_werror_flag"
28282 || test ! -s conftest.err'
28283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28284 (eval $ac_try) 2>&5
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; } &&
28288 { ac_try='test -s conftest.$ac_objext'
28289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28290 (eval $ac_try) 2>&5
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); }; }; then
28294 ac_cv_func_isnan_in_cmath=yes
28296 echo "$as_me: failed program was:" >&5
28297 sed 's/^/| /' conftest.$ac_ext >&5
28299 ac_cv_func_isnan_in_cmath=no
28301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28303 ac_cpp='$CPP $CPPFLAGS'
28304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28309 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28310 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28312 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28314 cat >>confdefs.h <<\_ACEOF
28315 #define HAVE_ISNAN_IN_CMATH 1
28320 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28321 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28322 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28323 echo $ECHO_N "(cached) $ECHO_C" >&6
28326 ac_cpp='$CXXCPP $CPPFLAGS'
28327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28331 cat >conftest.$ac_ext <<_ACEOF
28334 cat confdefs.h >>conftest.$ac_ext
28335 cat >>conftest.$ac_ext <<_ACEOF
28336 /* end confdefs.h. */
28341 float f; std::isnan(f);
28346 rm -f conftest.$ac_objext
28347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28348 (eval $ac_compile) 2>conftest.er1
28350 grep -v '^ *+' conftest.er1 >conftest.err
28352 cat conftest.err >&5
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); } &&
28355 { ac_try='test -z "$ac_cxx_werror_flag"
28356 || test ! -s conftest.err'
28357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358 (eval $ac_try) 2>&5
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; } &&
28362 { ac_try='test -s conftest.$ac_objext'
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; }; then
28368 ac_cv_func_std_isnan_in_cmath=yes
28370 echo "$as_me: failed program was:" >&5
28371 sed 's/^/| /' conftest.$ac_ext >&5
28373 ac_cv_func_std_isnan_in_cmath=no
28375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28377 ac_cpp='$CPP $CPPFLAGS'
28378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28383 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28384 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28386 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28388 cat >>confdefs.h <<\_ACEOF
28389 #define HAVE_STD_ISNAN_IN_CMATH 1
28395 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28396 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28397 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28398 echo $ECHO_N "(cached) $ECHO_C" >&6
28401 ac_cpp='$CXXCPP $CPPFLAGS'
28402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28406 cat >conftest.$ac_ext <<_ACEOF
28409 cat confdefs.h >>conftest.$ac_ext
28410 cat >>conftest.$ac_ext <<_ACEOF
28411 /* end confdefs.h. */
28421 rm -f conftest.$ac_objext
28422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28423 (eval $ac_compile) 2>conftest.er1
28425 grep -v '^ *+' conftest.er1 >conftest.err
28427 cat conftest.err >&5
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); } &&
28430 { ac_try='test -z "$ac_cxx_werror_flag"
28431 || test ! -s conftest.err'
28432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433 (eval $ac_try) 2>&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); }; } &&
28437 { ac_try='test -s conftest.$ac_objext'
28438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28439 (eval $ac_try) 2>&5
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); }; }; then
28443 ac_cv_func_isinf_in_math_h=yes
28445 echo "$as_me: failed program was:" >&5
28446 sed 's/^/| /' conftest.$ac_ext >&5
28448 ac_cv_func_isinf_in_math_h=no
28450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28452 ac_cpp='$CPP $CPPFLAGS'
28453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28458 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28459 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28461 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28463 cat >>confdefs.h <<\_ACEOF
28464 #define HAVE_ISINF_IN_MATH_H 1
28469 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28470 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28471 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28472 echo $ECHO_N "(cached) $ECHO_C" >&6
28475 ac_cpp='$CXXCPP $CPPFLAGS'
28476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28480 cat >conftest.$ac_ext <<_ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h. */
28495 rm -f conftest.$ac_objext
28496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28497 (eval $ac_compile) 2>conftest.er1
28499 grep -v '^ *+' conftest.er1 >conftest.err
28501 cat conftest.err >&5
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); } &&
28504 { ac_try='test -z "$ac_cxx_werror_flag"
28505 || test ! -s conftest.err'
28506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28507 (eval $ac_try) 2>&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; } &&
28511 { ac_try='test -s conftest.$ac_objext'
28512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28513 (eval $ac_try) 2>&5
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); }; }; then
28517 ac_cv_func_isinf_in_cmath=yes
28519 echo "$as_me: failed program was:" >&5
28520 sed 's/^/| /' conftest.$ac_ext >&5
28522 ac_cv_func_isinf_in_cmath=no
28524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28526 ac_cpp='$CPP $CPPFLAGS'
28527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28532 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28533 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28535 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28537 cat >>confdefs.h <<\_ACEOF
28538 #define HAVE_ISINF_IN_CMATH 1
28543 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28544 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28545 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28546 echo $ECHO_N "(cached) $ECHO_C" >&6
28549 ac_cpp='$CXXCPP $CPPFLAGS'
28550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28554 cat >conftest.$ac_ext <<_ACEOF
28557 cat confdefs.h >>conftest.$ac_ext
28558 cat >>conftest.$ac_ext <<_ACEOF
28559 /* end confdefs.h. */
28564 float f; std::isinf(f)}
28569 rm -f conftest.$ac_objext
28570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28571 (eval $ac_compile) 2>conftest.er1
28573 grep -v '^ *+' conftest.er1 >conftest.err
28575 cat conftest.err >&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } &&
28578 { ac_try='test -z "$ac_cxx_werror_flag"
28579 || test ! -s conftest.err'
28580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581 (eval $ac_try) 2>&5
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; } &&
28585 { ac_try='test -s conftest.$ac_objext'
28586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587 (eval $ac_try) 2>&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); }; }; then
28591 ac_cv_func_std_isinf_in_cmath=yes
28593 echo "$as_me: failed program was:" >&5
28594 sed 's/^/| /' conftest.$ac_ext >&5
28596 ac_cv_func_std_isinf_in_cmath=no
28598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28600 ac_cpp='$CPP $CPPFLAGS'
28601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28606 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28607 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28609 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28611 cat >>confdefs.h <<\_ACEOF
28612 #define HAVE_STD_ISINF_IN_CMATH 1
28617 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28618 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28619 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28623 ac_cpp='$CXXCPP $CPPFLAGS'
28624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28628 cat >conftest.$ac_ext <<_ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634 #include <ieeefp.h>
28638 float f; finite(f);
28643 rm -f conftest.$ac_objext
28644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28645 (eval $ac_compile) 2>conftest.er1
28647 grep -v '^ *+' conftest.er1 >conftest.err
28649 cat conftest.err >&5
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); } &&
28652 { ac_try='test -z "$ac_cxx_werror_flag"
28653 || test ! -s conftest.err'
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; } &&
28659 { ac_try='test -s conftest.$ac_objext'
28660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661 (eval $ac_try) 2>&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); }; }; then
28665 ac_cv_func_finite_in_ieeefp_h=yes
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28670 ac_cv_func_finite_in_ieeefp_h=no
28672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28674 ac_cpp='$CPP $CPPFLAGS'
28675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28680 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28681 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28683 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28685 cat >>confdefs.h <<\_ACEOF
28686 #define HAVE_FINITE_IN_IEEEFP_H 1
28695 for ac_header in stdlib.h unistd.h
28697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28699 echo "$as_me:$LINENO: checking for $ac_header" >&5
28700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28702 echo $ECHO_N "(cached) $ECHO_C" >&6
28704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28707 # Is the header compilable?
28708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28710 cat >conftest.$ac_ext <<_ACEOF
28713 cat confdefs.h >>conftest.$ac_ext
28714 cat >>conftest.$ac_ext <<_ACEOF
28715 /* end confdefs.h. */
28716 $ac_includes_default
28717 #include <$ac_header>
28719 rm -f conftest.$ac_objext
28720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28721 (eval $ac_compile) 2>conftest.er1
28723 grep -v '^ *+' conftest.er1 >conftest.err
28725 cat conftest.err >&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } &&
28728 { ac_try='test -z "$ac_c_werror_flag"
28729 || test ! -s conftest.err'
28730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28731 (eval $ac_try) 2>&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); }; } &&
28735 { ac_try='test -s conftest.$ac_objext'
28736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28737 (eval $ac_try) 2>&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; }; then
28741 ac_header_compiler=yes
28743 echo "$as_me: failed program was:" >&5
28744 sed 's/^/| /' conftest.$ac_ext >&5
28746 ac_header_compiler=no
28748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28750 echo "${ECHO_T}$ac_header_compiler" >&6
28752 # Is the header present?
28753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28755 cat >conftest.$ac_ext <<_ACEOF
28758 cat confdefs.h >>conftest.$ac_ext
28759 cat >>conftest.$ac_ext <<_ACEOF
28760 /* end confdefs.h. */
28761 #include <$ac_header>
28763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28766 grep -v '^ *+' conftest.er1 >conftest.err
28768 cat conftest.err >&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } >/dev/null; then
28771 if test -s conftest.err; then
28772 ac_cpp_err=$ac_c_preproc_warn_flag
28773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28780 if test -z "$ac_cpp_err"; then
28781 ac_header_preproc=yes
28783 echo "$as_me: failed program was:" >&5
28784 sed 's/^/| /' conftest.$ac_ext >&5
28786 ac_header_preproc=no
28788 rm -f conftest.err conftest.$ac_ext
28789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28790 echo "${ECHO_T}$ac_header_preproc" >&6
28792 # So? What about this header?
28793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28799 ac_header_preproc=yes
28802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28816 ## ----------------------------------- ##
28817 ## Report this to llvmbugs@cs.uiuc.edu ##
28818 ## ----------------------------------- ##
28821 sed "s/^/$as_me: WARNING: /" >&2
28824 echo "$as_me:$LINENO: checking for $ac_header" >&5
28825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28827 echo $ECHO_N "(cached) $ECHO_C" >&6
28829 eval "$as_ac_Header=\$ac_header_preproc"
28831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28836 cat >>confdefs.h <<_ACEOF
28837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28845 for ac_func in getpagesize
28847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28848 echo "$as_me:$LINENO: checking for $ac_func" >&5
28849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28850 if eval "test \"\${$as_ac_var+set}\" = set"; then
28851 echo $ECHO_N "(cached) $ECHO_C" >&6
28853 cat >conftest.$ac_ext <<_ACEOF
28856 cat confdefs.h >>conftest.$ac_ext
28857 cat >>conftest.$ac_ext <<_ACEOF
28858 /* end confdefs.h. */
28859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28861 #define $ac_func innocuous_$ac_func
28863 /* System header to define __stub macros and hopefully few prototypes,
28864 which can conflict with char $ac_func (); below.
28865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28866 <limits.h> exists even on freestanding compilers. */
28869 # include <limits.h>
28871 # include <assert.h>
28876 /* Override any gcc2 internal prototype to avoid an error. */
28881 /* We use char because int might match the return type of a gcc2
28882 builtin and then its argument prototype would still apply. */
28884 /* The GNU C library defines this for functions which it implements
28885 to always fail with ENOSYS. Some functions are actually named
28886 something starting with __ and the normal name is an alias. */
28887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28890 char (*f) () = $ac_func;
28899 return f != $ac_func;
28904 rm -f conftest.$ac_objext conftest$ac_exeext
28905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28906 (eval $ac_link) 2>conftest.er1
28908 grep -v '^ *+' conftest.er1 >conftest.err
28910 cat conftest.err >&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); } &&
28913 { ac_try='test -z "$ac_c_werror_flag"
28914 || test ! -s conftest.err'
28915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28916 (eval $ac_try) 2>&5
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); }; } &&
28920 { ac_try='test -s conftest$ac_exeext'
28921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28922 (eval $ac_try) 2>&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; }; then
28926 eval "$as_ac_var=yes"
28928 echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28931 eval "$as_ac_var=no"
28933 rm -f conftest.err conftest.$ac_objext \
28934 conftest$ac_exeext conftest.$ac_ext
28936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28938 if test `eval echo '${'$as_ac_var'}'` = yes; then
28939 cat >>confdefs.h <<_ACEOF
28940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28946 echo "$as_me:$LINENO: checking for working mmap" >&5
28947 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
28948 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
28949 echo $ECHO_N "(cached) $ECHO_C" >&6
28951 if test "$cross_compiling" = yes; then
28952 ac_cv_func_mmap_fixed_mapped=no
28954 cat >conftest.$ac_ext <<_ACEOF
28957 cat confdefs.h >>conftest.$ac_ext
28958 cat >>conftest.$ac_ext <<_ACEOF
28959 /* end confdefs.h. */
28960 $ac_includes_default
28961 /* malloc might have been renamed as rpl_malloc. */
28964 /* Thanks to Mike Haertel and Jim Avera for this test.
28965 Here is a matrix of mmap possibilities:
28966 mmap private not fixed
28967 mmap private fixed at somewhere currently unmapped
28968 mmap private fixed at somewhere already mapped
28969 mmap shared not fixed
28970 mmap shared fixed at somewhere currently unmapped
28971 mmap shared fixed at somewhere already mapped
28972 For private mappings, we should verify that changes cannot be read()
28973 back from the file, nor mmap's back from the file at a different
28974 address. (There have been systems where private was not correctly
28975 implemented like the infamous i386 svr4.0, and systems where the
28976 VM page cache was not coherent with the file system buffer cache
28977 like early versions of FreeBSD and possibly contemporary NetBSD.)
28978 For shared mappings, we should conversely verify that changes get
28979 propagated back to all the places they're supposed to be.
28981 Grep wants private fixed already mapped.
28982 The main things grep needs to know about mmap are:
28983 * does it exist and is it safe to write into the mmap'd area
28984 * how to use it (BSD variants) */
28987 #include <sys/mman.h>
28989 #if !STDC_HEADERS && !HAVE_STDLIB_H
28993 /* This mess was copied from the GNU getpagesize.h. */
28994 #if !HAVE_GETPAGESIZE
28995 /* Assume that all systems that can run configure have sys/param.h. */
28996 # if !HAVE_SYS_PARAM_H
28997 # define HAVE_SYS_PARAM_H 1
29000 # ifdef _SC_PAGESIZE
29001 # define getpagesize() sysconf(_SC_PAGESIZE)
29002 # else /* no _SC_PAGESIZE */
29003 # if HAVE_SYS_PARAM_H
29004 # include <sys/param.h>
29005 # ifdef EXEC_PAGESIZE
29006 # define getpagesize() EXEC_PAGESIZE
29007 # else /* no EXEC_PAGESIZE */
29009 # define getpagesize() NBPG * CLSIZE
29012 # endif /* no CLSIZE */
29013 # else /* no NBPG */
29015 # define getpagesize() NBPC
29016 # else /* no NBPC */
29018 # define getpagesize() PAGESIZE
29019 # endif /* PAGESIZE */
29020 # endif /* no NBPC */
29021 # endif /* no NBPG */
29022 # endif /* no EXEC_PAGESIZE */
29023 # else /* no HAVE_SYS_PARAM_H */
29024 # define getpagesize() 8192 /* punt totally */
29025 # endif /* no HAVE_SYS_PARAM_H */
29026 # endif /* no _SC_PAGESIZE */
29028 #endif /* no HAVE_GETPAGESIZE */
29033 char *data, *data2, *data3;
29037 pagesize = getpagesize ();
29039 /* First, make a file with some known garbage in it. */
29040 data = (char *) malloc (pagesize);
29043 for (i = 0; i < pagesize; ++i)
29044 *(data + i) = rand ();
29046 fd = creat ("conftest.mmap", 0600);
29049 if (write (fd, data, pagesize) != pagesize)
29053 /* Next, try to mmap the file at a fixed address which already has
29054 something else allocated at it. If we can, also make sure that
29055 we see the same garbage. */
29056 fd = open ("conftest.mmap", O_RDWR);
29059 data2 = (char *) malloc (2 * pagesize);
29062 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29063 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29064 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29066 for (i = 0; i < pagesize; ++i)
29067 if (*(data + i) != *(data2 + i))
29070 /* Finally, make sure that changes to the mapped area do not
29071 percolate back to the file as seen by read(). (This is a bug on
29072 some variants of i386 svr4.0.) */
29073 for (i = 0; i < pagesize; ++i)
29074 *(data2 + i) = *(data2 + i) + 1;
29075 data3 = (char *) malloc (pagesize);
29078 if (read (fd, data3, pagesize) != pagesize)
29080 for (i = 0; i < pagesize; ++i)
29081 if (*(data + i) != *(data3 + i))
29087 rm -f conftest$ac_exeext
29088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29089 (eval $ac_link) 2>&5
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29094 (eval $ac_try) 2>&5
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); }; }; then
29098 ac_cv_func_mmap_fixed_mapped=yes
29100 echo "$as_me: program exited with status $ac_status" >&5
29101 echo "$as_me: failed program was:" >&5
29102 sed 's/^/| /' conftest.$ac_ext >&5
29104 ( exit $ac_status )
29105 ac_cv_func_mmap_fixed_mapped=no
29107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29110 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29111 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29112 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29114 cat >>confdefs.h <<\_ACEOF
29115 #define HAVE_MMAP 1
29119 rm -f conftest.mmap
29121 echo "$as_me:$LINENO: checking for mmap of files" >&5
29122 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29123 if test "${ac_cv_func_mmap_file+set}" = set; then
29124 echo $ECHO_N "(cached) $ECHO_C" >&6
29127 ac_cpp='$CPP $CPPFLAGS'
29128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29132 if test "$cross_compiling" = yes; then
29133 ac_cv_func_mmap_file=no
29135 cat >conftest.$ac_ext <<_ACEOF
29139 cat confdefs.h >>conftest.$ac_ext
29140 cat >>conftest.$ac_ext <<_ACEOF
29141 /* end confdefs.h. */
29143 #include <sys/types.h>
29144 #include <sys/mman.h>
29152 fd = creat ("foo",0777);
29153 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29155 return (fd != (int) MAP_FAILED);
29160 rm -f conftest$ac_exeext
29161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29162 (eval $ac_link) 2>&5
29164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29167 (eval $ac_try) 2>&5
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); }; }; then
29171 ac_cv_func_mmap_file=yes
29173 echo "$as_me: program exited with status $ac_status" >&5
29174 echo "$as_me: failed program was:" >&5
29175 sed 's/^/| /' conftest.$ac_ext >&5
29177 ( exit $ac_status )
29178 ac_cv_func_mmap_file=no
29180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29183 ac_cpp='$CPP $CPPFLAGS'
29184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29190 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29191 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29192 if test "$ac_cv_func_mmap_file" = yes; then
29194 cat >>confdefs.h <<\_ACEOF
29195 #define HAVE_MMAP_FILE
29202 echo "$as_me:$LINENO: checking for mprotect" >&5
29203 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29204 if test "${ac_cv_func_mprotect+set}" = set; then
29205 echo $ECHO_N "(cached) $ECHO_C" >&6
29207 cat >conftest.$ac_ext <<_ACEOF
29210 cat confdefs.h >>conftest.$ac_ext
29211 cat >>conftest.$ac_ext <<_ACEOF
29212 /* end confdefs.h. */
29213 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29215 #define mprotect innocuous_mprotect
29217 /* System header to define __stub macros and hopefully few prototypes,
29218 which can conflict with char mprotect (); below.
29219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29220 <limits.h> exists even on freestanding compilers. */
29223 # include <limits.h>
29225 # include <assert.h>
29230 /* Override any gcc2 internal prototype to avoid an error. */
29235 /* We use char because int might match the return type of a gcc2
29236 builtin and then its argument prototype would still apply. */
29238 /* The GNU C library defines this for functions which it implements
29239 to always fail with ENOSYS. Some functions are actually named
29240 something starting with __ and the normal name is an alias. */
29241 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29244 char (*f) () = mprotect;
29253 return f != mprotect;
29258 rm -f conftest.$ac_objext conftest$ac_exeext
29259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29260 (eval $ac_link) 2>conftest.er1
29262 grep -v '^ *+' conftest.er1 >conftest.err
29264 cat conftest.err >&5
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); } &&
29267 { ac_try='test -z "$ac_c_werror_flag"
29268 || test ! -s conftest.err'
29269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29270 (eval $ac_try) 2>&5
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); }; } &&
29274 { ac_try='test -s conftest$ac_exeext'
29275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276 (eval $ac_try) 2>&5
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); }; }; then
29280 ac_cv_func_mprotect=yes
29282 echo "$as_me: failed program was:" >&5
29283 sed 's/^/| /' conftest.$ac_ext >&5
29285 ac_cv_func_mprotect=no
29287 rm -f conftest.err conftest.$ac_objext \
29288 conftest$ac_exeext conftest.$ac_ext
29290 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29291 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29292 if test $ac_cv_func_mprotect = yes; then
29295 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29296 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29297 { (exit 1); exit 1; }; }
29301 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29303 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29304 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29306 if test "$ac_cv_func_mmap_file" = "no"
29308 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29309 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29313 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29314 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
29315 if test "${llvm_cv_llvmgcc+set}" = set; then
29316 echo $ECHO_N "(cached) $ECHO_C" >&6
29318 llvm_cv_llvmgcc='llvmgcc_not_found'
29319 if test -d "$LLVMGCCDIR" ; then
29320 if test -x "$LLVMGCCDIR/bin/gcc" ; then
29321 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29325 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29326 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29328 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29329 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29330 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29333 llvm_cv_llvmgcc_sanity="no"
29334 if test -x "$llvm_cv_llvmgcc" ; then
29335 cp /dev/null conftest.c
29336 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29337 if test $? -eq 0 ; then
29338 llvm_cv_llvmgcc_sanity="yes"
29343 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29344 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29346 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29347 LLVMGCC="$llvm_cv_llvmgcc"
29349 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29350 LLVMCC1=$llvmcc1path
29352 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29353 LLVMCC1PLUS=$llvmcc1pluspath
29357 SHLIBEXT=$libltdl_cv_shlibext
29360 # Translate the various configuration directories and other basic
29361 # information into substitutions that will end up in Makefile.config.in
29362 # that these configured values can be used by the makefiles
29363 eval LLVM_PREFIX="${prefix}";
29364 eval LLVM_BINDIR="${prefix}/bin";
29365 eval LLVM_LIBDIR="${prefix}/lib";
29366 eval LLVM_DATADIR="${prefix}/share/llvm";
29367 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29368 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29369 eval LLVM_INCLUDEDIR="${prefix}/include";
29370 eval LLVM_INFODIR="${prefix}/info";
29371 eval LLVM_MANDIR="${prefix}/man";
29372 LLVM_CONFIGTIME=`date`
29384 # Place the various directores into the config.h file as #defines so that we
29385 # can know about the installation paths within LLVM.
29387 cat >>confdefs.h <<_ACEOF
29388 #define LLVM_PREFIX "$LLVM_PREFIX"
29392 cat >>confdefs.h <<_ACEOF
29393 #define LLVM_BINDIR "$LLVM_BINDIR"
29397 cat >>confdefs.h <<_ACEOF
29398 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29402 cat >>confdefs.h <<_ACEOF
29403 #define LLVM_DATADIR "$LLVM_DATADIR"
29407 cat >>confdefs.h <<_ACEOF
29408 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29412 cat >>confdefs.h <<_ACEOF
29413 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29417 cat >>confdefs.h <<_ACEOF
29418 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29422 cat >>confdefs.h <<_ACEOF
29423 #define LLVM_INFODIR "$LLVM_INFODIR"
29427 cat >>confdefs.h <<_ACEOF
29428 #define LLVM_MANDIR "$LLVM_MANDIR"
29432 cat >>confdefs.h <<_ACEOF
29433 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29437 cat >>confdefs.h <<_ACEOF
29438 #define LLVMGCCDIR "$LLVMGCCDIR"
29443 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29446 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29448 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29450 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29452 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29454 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29457 ac_config_files="$ac_config_files Makefile.config"
29460 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29463 ac_config_files="$ac_config_files docs/doxygen.cfg"
29466 ac_config_commands="$ac_config_commands Makefile"
29469 ac_config_commands="$ac_config_commands Makefile.common"
29472 ac_config_commands="$ac_config_commands examples/Makefile"
29475 ac_config_commands="$ac_config_commands lib/Makefile"
29478 ac_config_commands="$ac_config_commands runtime/Makefile"
29481 ac_config_commands="$ac_config_commands test/Makefile"
29484 ac_config_commands="$ac_config_commands test/Makefile.tests"
29487 ac_config_commands="$ac_config_commands tools/Makefile"
29490 ac_config_commands="$ac_config_commands utils/Makefile"
29493 ac_config_commands="$ac_config_commands projects/Makefile"
29497 cat >confcache <<\_ACEOF
29498 # This file is a shell script that caches the results of configure
29499 # tests run on this system so they can be shared between configure
29500 # scripts and configure runs, see configure's option --config-cache.
29501 # It is not useful on other systems. If it contains results you don't
29502 # want to keep, you may remove or edit it.
29504 # config.status only pays attention to the cache file if you give it
29505 # the --recheck option to rerun configure.
29507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29509 # following values.
29513 # The following way of writing the cache mishandles newlines in values,
29514 # but we know of no workaround that is simple, portable, and efficient.
29515 # So, don't put newlines in cache variables' values.
29516 # Ultrix sh set writes to stderr and can't be redirected directly,
29517 # and sets the high bit in the cache file unless we assign to the vars.
29520 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29522 # `set' does not quote correctly, so add quotes (double-quote
29523 # substitution turns \\\\ into \\, and sed turns \\ into \).
29526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29529 # `set' quotes correctly as required by POSIX, so do not add quotes.
29531 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29538 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29540 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29542 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29543 if test -w $cache_file; then
29544 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29545 cat confcache >$cache_file
29547 echo "not updating unwritable cache $cache_file"
29552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29553 # Let make expand exec_prefix.
29554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29556 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29557 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29558 # trailing colons and then remove the whole line if VPATH becomes empty
29559 # (actually we leave an empty line to preserve line numbers).
29560 if test "x$srcdir" = x.; then
29561 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29562 s/:*\$(srcdir):*/:/;
29563 s/:*\${srcdir}:*/:/;
29565 s/^\([^=]*=[ ]*\):*/\1/;
29571 DEFS=-DHAVE_CONFIG_H
29575 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29576 # 1. Remove the extension, and $U if already installed.
29577 ac_i=`echo "$ac_i" |
29578 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29580 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29581 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29583 LIBOBJS=$ac_libobjs
29585 LTLIBOBJS=$ac_ltlibobjs
29588 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29589 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29590 Usually this means the macro was only invoked conditionally." >&5
29591 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29592 Usually this means the macro was only invoked conditionally." >&2;}
29593 { (exit 1); exit 1; }; }
29595 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29596 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29597 Usually this means the macro was only invoked conditionally." >&5
29598 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29599 Usually this means the macro was only invoked conditionally." >&2;}
29600 { (exit 1); exit 1; }; }
29603 : ${CONFIG_STATUS=./config.status}
29604 ac_clean_files_save=$ac_clean_files
29605 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29606 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29607 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29608 cat >$CONFIG_STATUS <<_ACEOF
29610 # Generated by $as_me.
29611 # Run this file to recreate the current configuration.
29612 # Compiler output produced by configure, useful for debugging
29613 # configure, is in config.log if it exists.
29616 ac_cs_recheck=false
29618 SHELL=\${CONFIG_SHELL-$SHELL}
29621 cat >>$CONFIG_STATUS <<\_ACEOF
29622 ## --------------------- ##
29623 ## M4sh Initialization. ##
29624 ## --------------------- ##
29626 # Be Bourne compatible
29627 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29630 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29631 # is contrary to our usage. Disable this feature.
29632 alias -g '${1+"$@"}'='"$@"'
29633 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29636 DUALCASE=1; export DUALCASE # for MKS sh
29638 # Support unset when possible.
29639 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29646 # Work around bugs in pre-3.0 UWIN ksh.
29647 $as_unset ENV MAIL MAILPATH
29654 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29655 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29656 LC_TELEPHONE LC_TIME
29658 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29659 eval $as_var=C; export $as_var
29665 # Required to use basename.
29666 if expr a : '\(a\)' >/dev/null 2>&1; then
29672 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29673 as_basename=basename
29679 # Name of the executable.
29680 as_me=`$as_basename "$0" ||
29681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29682 X"$0" : 'X\(//\)$' \| \
29683 X"$0" : 'X\(/\)$' \| \
29684 . : '\(.\)' 2>/dev/null ||
29686 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29687 /^X\/\(\/\/\)$/{ s//\1/; q; }
29688 /^X\/\(\/\).*/{ s//\1/; q; }
29692 # PATH needs CR, and LINENO needs CR and PATH.
29693 # Avoid depending upon Character Ranges.
29694 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29695 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29696 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29697 as_cr_digits='0123456789'
29698 as_cr_alnum=$as_cr_Letters$as_cr_digits
29700 # The user is always right.
29701 if test "${PATH_SEPARATOR+set}" != set; then
29702 echo "#! /bin/sh" >conf$$.sh
29703 echo "exit 0" >>conf$$.sh
29705 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29714 as_lineno_1=$LINENO
29715 as_lineno_2=$LINENO
29716 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29717 test "x$as_lineno_1" != "x$as_lineno_2" &&
29718 test "x$as_lineno_3" = "x$as_lineno_2" || {
29719 # Find who we are. Look in the path if we contain no path at all
29722 *[\\/]* ) as_myself=$0 ;;
29723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29724 for as_dir in $PATH
29727 test -z "$as_dir" && as_dir=.
29728 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29733 # We did not find ourselves, most probably we were run as `sh COMMAND'
29734 # in which case we are not to be found in the path.
29735 if test "x$as_myself" = x; then
29738 if test ! -f "$as_myself"; then
29739 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29740 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29741 { (exit 1); exit 1; }; }
29743 case $CONFIG_SHELL in
29745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29746 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29749 test -z "$as_dir" && as_dir=.
29750 for as_base in sh bash ksh sh5; do
29753 if ("$as_dir/$as_base" -c '
29754 as_lineno_1=$LINENO
29755 as_lineno_2=$LINENO
29756 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29757 test "x$as_lineno_1" != "x$as_lineno_2" &&
29758 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29759 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29760 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29761 CONFIG_SHELL=$as_dir/$as_base
29762 export CONFIG_SHELL
29763 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29771 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29772 # uniformly replaced by the line number. The first 'sed' inserts a
29773 # line-number line before each line; the second 'sed' does the real
29774 # work. The second script uses 'N' to pair each line-number line
29775 # with the numbered line, and appends trailing '-' during
29776 # substitution so that $LINENO is not a special case at line end.
29777 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29778 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29779 sed '=' <$as_myself |
29784 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29787 s,^['$as_cr_digits']*\n,,
29788 ' >$as_me.lineno &&
29789 chmod +x $as_me.lineno ||
29790 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29791 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29792 { (exit 1); exit 1; }; }
29794 # Don't try to exec as it changes $[0], causing all sort of problems
29795 # (the dirname of $[0] is not the place where we might find the
29796 # original and so on. Autoconf is especially sensible to this).
29798 # Exit status is that of the last command.
29803 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29804 *c*,-n*) ECHO_N= ECHO_C='
29806 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29807 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29810 if expr a : '\(a\)' >/dev/null 2>&1; then
29816 rm -f conf$$ conf$$.exe conf$$.file
29818 if ln -s conf$$.file conf$$ 2>/dev/null; then
29819 # We could just check for DJGPP; but this test a) works b) is more generic
29820 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29821 if test -f conf$$.exe; then
29822 # Don't use ln at all; we don't have any links
29827 elif ln conf$$.file conf$$ 2>/dev/null; then
29832 rm -f conf$$ conf$$.exe conf$$.file
29834 if mkdir -p . 2>/dev/null; then
29837 test -d ./-p && rmdir ./-p
29841 as_executable_p="test -f"
29843 # Sed expression to map a string onto a valid CPP name.
29844 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29846 # Sed expression to map a string onto a valid variable name.
29847 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29851 # We need space, tab and new line, in precisely that order.
29861 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29862 # report actual input values of CONFIG_FILES etc. instead of their
29863 # values after options handling. Logging --version etc. is OK.
29867 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29868 ## Running $as_me. ##
29873 This file was extended by llvm $as_me 1.4, which was
29874 generated by GNU Autoconf 2.59. Invocation command line was
29876 CONFIG_FILES = $CONFIG_FILES
29877 CONFIG_HEADERS = $CONFIG_HEADERS
29878 CONFIG_LINKS = $CONFIG_LINKS
29879 CONFIG_COMMANDS = $CONFIG_COMMANDS
29883 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29887 # Files that config.status was made for.
29888 if test -n "$ac_config_files"; then
29889 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29892 if test -n "$ac_config_headers"; then
29893 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29896 if test -n "$ac_config_links"; then
29897 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29900 if test -n "$ac_config_commands"; then
29901 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29904 cat >>$CONFIG_STATUS <<\_ACEOF
29907 \`$as_me' instantiates files from templates according to the
29908 current configuration.
29910 Usage: $0 [OPTIONS] [FILE]...
29912 -h, --help print this help, then exit
29913 -V, --version print version number, then exit
29914 -q, --quiet do not print progress messages
29915 -d, --debug don't remove temporary files
29916 --recheck update $as_me by reconfiguring in the same conditions
29917 --file=FILE[:TEMPLATE]
29918 instantiate the configuration file FILE
29919 --header=FILE[:TEMPLATE]
29920 instantiate the configuration header FILE
29922 Configuration files:
29925 Configuration headers:
29928 Configuration links:
29931 Configuration commands:
29934 Report bugs to <bug-autoconf@gnu.org>."
29937 cat >>$CONFIG_STATUS <<_ACEOF
29939 llvm config.status 1.4
29940 configured by $0, generated by GNU Autoconf 2.59,
29941 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29943 Copyright (C) 2003 Free Software Foundation, Inc.
29944 This config.status script is free software; the Free Software Foundation
29945 gives unlimited permission to copy, distribute and modify it."
29950 cat >>$CONFIG_STATUS <<\_ACEOF
29951 # If no file are specified by the user, then we need to provide default
29952 # value. By we need to know if files were specified by the user.
29958 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29959 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29967 *) # This is not an option, so the user has probably given explicit
29970 ac_need_defaults=false;;
29974 # Handling of the options.
29976 cat >>$CONFIG_STATUS <<\_ACEOF
29977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29979 --version | --vers* | -V )
29980 echo "$ac_cs_version"; exit 0 ;;
29982 # Conflict between --help and --header
29983 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29984 Try \`$0 --help' for more information." >&5
29985 echo "$as_me: error: ambiguous option: $1
29986 Try \`$0 --help' for more information." >&2;}
29987 { (exit 1); exit 1; }; };;
29988 --help | --hel | -h )
29989 echo "$ac_cs_usage"; exit 0 ;;
29990 --debug | --d* | -d )
29992 --file | --fil | --fi | --f )
29994 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29995 ac_need_defaults=false;;
29996 --header | --heade | --head | --hea )
29998 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29999 ac_need_defaults=false;;
30000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30004 # This is an error.
30005 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30006 Try \`$0 --help' for more information." >&5
30007 echo "$as_me: error: unrecognized option: $1
30008 Try \`$0 --help' for more information." >&2;}
30009 { (exit 1); exit 1; }; } ;;
30011 *) ac_config_targets="$ac_config_targets $1" ;;
30017 ac_configure_extra_args=
30019 if $ac_cs_silent; then
30021 ac_configure_extra_args="$ac_configure_extra_args --silent"
30025 cat >>$CONFIG_STATUS <<_ACEOF
30026 if \$ac_cs_recheck; then
30027 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30028 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30033 cat >>$CONFIG_STATUS <<_ACEOF
30035 # INIT-COMMANDS section.
30038 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30039 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30040 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30041 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30042 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30043 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30044 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30045 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30046 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30047 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30053 cat >>$CONFIG_STATUS <<\_ACEOF
30054 for ac_config_target in $ac_config_targets
30056 case "$ac_config_target" in
30057 # Handling of arguments.
30058 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30059 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30060 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30061 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30062 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30063 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30064 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30065 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30066 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30067 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30068 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30069 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30070 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30071 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30072 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30073 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30074 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30075 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30076 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30077 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30078 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30079 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30080 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30081 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30082 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30083 { (exit 1); exit 1; }; };;
30087 # If the user did not use the arguments to specify the items to instantiate,
30088 # then the envvar interface is used. Set only those that are not.
30089 # We use the long form for the default assignment because of an extremely
30090 # bizarre bug on SunOS 4.1.3.
30091 if $ac_need_defaults; then
30092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30094 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30095 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30098 # Have a temporary directory for convenience. Make it in the build tree
30099 # simply because there is no reason to put it here, and in addition,
30100 # creating and moving files from /tmp can sometimes cause problems.
30101 # Create a temporary directory, and hook for its removal unless debugging.
30104 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30105 trap '{ (exit 1); exit 1; }' 1 2 13 15
30108 # Create a (secure) tmp directory for tmp files.
30111 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30112 test -n "$tmp" && test -d "$tmp"
30115 tmp=./confstat$$-$RANDOM
30116 (umask 077 && mkdir $tmp)
30119 echo "$me: cannot create a temporary directory in ." >&2
30120 { (exit 1); exit 1; }
30125 cat >>$CONFIG_STATUS <<_ACEOF
30128 # CONFIG_FILES section.
30131 # No need to generate the scripts if there are no CONFIG_FILES.
30132 # This happens for instance when ./config.status config.h
30133 if test -n "\$CONFIG_FILES"; then
30134 # Protect against being on the right side of a sed subst in config.status.
30135 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30136 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30137 s,@SHELL@,$SHELL,;t t
30138 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30139 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30140 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30141 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30142 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30143 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30144 s,@exec_prefix@,$exec_prefix,;t t
30145 s,@prefix@,$prefix,;t t
30146 s,@program_transform_name@,$program_transform_name,;t t
30147 s,@bindir@,$bindir,;t t
30148 s,@sbindir@,$sbindir,;t t
30149 s,@libexecdir@,$libexecdir,;t t
30150 s,@datadir@,$datadir,;t t
30151 s,@sysconfdir@,$sysconfdir,;t t
30152 s,@sharedstatedir@,$sharedstatedir,;t t
30153 s,@localstatedir@,$localstatedir,;t t
30154 s,@libdir@,$libdir,;t t
30155 s,@includedir@,$includedir,;t t
30156 s,@oldincludedir@,$oldincludedir,;t t
30157 s,@infodir@,$infodir,;t t
30158 s,@mandir@,$mandir,;t t
30159 s,@build_alias@,$build_alias,;t t
30160 s,@host_alias@,$host_alias,;t t
30161 s,@target_alias@,$target_alias,;t t
30162 s,@DEFS@,$DEFS,;t t
30163 s,@ECHO_C@,$ECHO_C,;t t
30164 s,@ECHO_N@,$ECHO_N,;t t
30165 s,@ECHO_T@,$ECHO_T,;t t
30166 s,@LIBS@,$LIBS,;t t
30167 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30168 s,@subdirs@,$subdirs,;t t
30169 s,@build@,$build,;t t
30170 s,@build_cpu@,$build_cpu,;t t
30171 s,@build_vendor@,$build_vendor,;t t
30172 s,@build_os@,$build_os,;t t
30173 s,@host@,$host,;t t
30174 s,@host_cpu@,$host_cpu,;t t
30175 s,@host_vendor@,$host_vendor,;t t
30176 s,@host_os@,$host_os,;t t
30177 s,@target@,$target,;t t
30178 s,@target_cpu@,$target_cpu,;t t
30179 s,@target_vendor@,$target_vendor,;t t
30180 s,@target_os@,$target_os,;t t
30182 s,@ARCH@,$ARCH,;t t
30183 s,@ENDIAN@,$ENDIAN,;t t
30185 s,@CFLAGS@,$CFLAGS,;t t
30186 s,@LDFLAGS@,$LDFLAGS,;t t
30187 s,@CPPFLAGS@,$CPPFLAGS,;t t
30188 s,@ac_ct_CC@,$ac_ct_CC,;t t
30189 s,@EXEEXT@,$EXEEXT,;t t
30190 s,@OBJEXT@,$OBJEXT,;t t
30191 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30193 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30194 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30197 s,@CXXFLAGS@,$CXXFLAGS,;t t
30198 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30200 s,@LEXLIB@,$LEXLIB,;t t
30201 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30202 s,@FLEX@,$FLEX,;t t
30203 s,@YACC@,$YACC,;t t
30204 s,@BISON@,$BISON,;t t
30205 s,@ifGNUmake@,$ifGNUmake,;t t
30206 s,@LN_S@,$LN_S,;t t
30207 s,@DATE@,$DATE,;t t
30208 s,@FIND@,$FIND,;t t
30209 s,@GREP@,$GREP,;t t
30210 s,@MKDIR@,$MKDIR,;t t
30213 s,@RANLIB@,$RANLIB,;t t
30214 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30218 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30219 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30220 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30221 s,@BZIP2@,$BZIP2,;t t
30223 s,@DOXYGEN@,$DOXYGEN,;t t
30224 s,@ETAGS@,$ETAGS,;t t
30225 s,@GROFF@,$GROFF,;t t
30226 s,@GZIP@,$GZIP,;t t
30227 s,@POD2HTML@,$POD2HTML,;t t
30228 s,@POD2MAN@,$POD2MAN,;t t
30229 s,@RUNTEST@,$RUNTEST,;t t
30230 s,@TCLSH@,$TCLSH,;t t
30232 s,@EGREP@,$EGREP,;t t
30233 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30234 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30235 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30236 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30237 s,@LIBADD_DL@,$LIBADD_DL,;t t
30238 s,@ECHO@,$ECHO,;t t
30240 s,@ac_ct_AR@,$ac_ct_AR,;t t
30241 s,@STRIP@,$STRIP,;t t
30242 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30243 s,@CXXCPP@,$CXXCPP,;t t
30245 s,@FFLAGS@,$FFLAGS,;t t
30246 s,@ac_ct_F77@,$ac_ct_F77,;t t
30247 s,@LIBTOOL@,$LIBTOOL,;t t
30248 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30249 s,@ALLOCA@,$ALLOCA,;t t
30250 s,@MMAP_FILE@,$MMAP_FILE,;t t
30251 s,@LLVMGCC@,$LLVMGCC,;t t
30252 s,@LLVMCC1@,$LLVMCC1,;t t
30253 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30254 s,@SHLIBEXT@,$SHLIBEXT,;t t
30255 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30256 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30257 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30258 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30259 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30260 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30261 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30262 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30263 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30264 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30265 s,@LIBOBJS@,$LIBOBJS,;t t
30266 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30271 cat >>$CONFIG_STATUS <<\_ACEOF
30272 # Split the substitutions into bite-sized pieces for seds with
30273 # small command number limits, like on Digital OSF/1 and HP-UX.
30274 ac_max_sed_lines=48
30275 ac_sed_frag=1 # Number of current file.
30276 ac_beg=1 # First line for current file.
30277 ac_end=$ac_max_sed_lines # Line after last line for current file.
30280 while $ac_more_lines; do
30281 if test $ac_beg -gt 1; then
30282 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30284 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30286 if test ! -s $tmp/subs.frag; then
30287 ac_more_lines=false
30289 # The purpose of the label and of the branching condition is to
30290 # speed up the sed processing (if there are no `@' at all, there
30291 # is no need to browse any of the substitutions).
30292 # These are the two extra sed commands mentioned above.
30294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30295 if test -z "$ac_sed_cmds"; then
30296 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30298 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30300 ac_sed_frag=`expr $ac_sed_frag + 1`
30302 ac_end=`expr $ac_end + $ac_max_sed_lines`
30305 if test -z "$ac_sed_cmds"; then
30308 fi # test -n "$CONFIG_FILES"
30311 cat >>$CONFIG_STATUS <<\_ACEOF
30312 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30315 - | *:- | *:-:* ) # input from stdin
30317 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30319 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30321 * ) ac_file_in=$ac_file.in ;;
30324 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30325 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30327 X"$ac_file" : 'X\(//\)[^/]' \| \
30328 X"$ac_file" : 'X\(//\)$' \| \
30329 X"$ac_file" : 'X\(/\)' \| \
30330 . : '\(.\)' 2>/dev/null ||
30332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30334 /^X\(\/\/\)$/{ s//\1/; q; }
30335 /^X\(\/\).*/{ s//\1/; q; }
30337 { if $as_mkdir_p; then
30342 while test ! -d "$as_dir"; do
30343 as_dirs="$as_dir $as_dirs"
30344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30346 X"$as_dir" : 'X\(//\)[^/]' \| \
30347 X"$as_dir" : 'X\(//\)$' \| \
30348 X"$as_dir" : 'X\(/\)' \| \
30349 . : '\(.\)' 2>/dev/null ||
30351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30353 /^X\(\/\/\)$/{ s//\1/; q; }
30354 /^X\(\/\).*/{ s//\1/; q; }
30357 test ! -n "$as_dirs" || mkdir $as_dirs
30358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30359 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30360 { (exit 1); exit 1; }; }; }
30364 if test "$ac_dir" != .; then
30365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30366 # A "../" for each directory in $ac_dir_suffix.
30367 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30369 ac_dir_suffix= ac_top_builddir=
30373 .) # No --srcdir option. We are building in place.
30375 if test -z "$ac_top_builddir"; then
30378 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30380 [\\/]* | ?:[\\/]* ) # Absolute path.
30381 ac_srcdir=$srcdir$ac_dir_suffix;
30382 ac_top_srcdir=$srcdir ;;
30383 *) # Relative path.
30384 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30385 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30388 # Do not use `cd foo && pwd` to compute absolute paths, because
30389 # the directories may not exist.
30391 .) ac_abs_builddir="$ac_dir";;
30394 .) ac_abs_builddir=`pwd`;;
30395 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30396 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30399 case $ac_abs_builddir in
30400 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30402 case ${ac_top_builddir}. in
30403 .) ac_abs_top_builddir=$ac_abs_builddir;;
30404 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30405 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30408 case $ac_abs_builddir in
30409 .) ac_abs_srcdir=$ac_srcdir;;
30412 .) ac_abs_srcdir=$ac_abs_builddir;;
30413 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30414 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30417 case $ac_abs_builddir in
30418 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30420 case $ac_top_srcdir in
30421 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30422 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30423 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30430 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30433 if test x"$ac_file" != x-; then
30434 { echo "$as_me:$LINENO: creating $ac_file" >&5
30435 echo "$as_me: creating $ac_file" >&6;}
30438 # Let's still pretend it is `configure' which instantiates (i.e., don't
30439 # use $as_me), people would be surprised to read:
30440 # /* config.h. Generated by config.status. */
30441 if test x"$ac_file" = x-; then
30444 configure_input="$ac_file. "
30446 configure_input=$configure_input"Generated from `echo $ac_file_in |
30447 sed 's,.*/,,'` by configure."
30449 # First look for the input files in the build tree, otherwise in the
30451 ac_file_inputs=`IFS=:
30452 for f in $ac_file_in; do
30454 -) echo $tmp/stdin ;;
30456 # Absolute (can't be DOS-style, as IFS=:)
30457 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30458 echo "$as_me: error: cannot find input file: $f" >&2;}
30459 { (exit 1); exit 1; }; }
30462 if test -f "$f"; then
30465 elif test -f "$srcdir/$f"; then
30470 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30471 echo "$as_me: error: cannot find input file: $f" >&2;}
30472 { (exit 1); exit 1; }; }
30475 done` || { (exit 1); exit 1; }
30477 cat >>$CONFIG_STATUS <<_ACEOF
30481 cat >>$CONFIG_STATUS <<\_ACEOF
30483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30484 s,@configure_input@,$configure_input,;t t
30485 s,@srcdir@,$ac_srcdir,;t t
30486 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30487 s,@top_srcdir@,$ac_top_srcdir,;t t
30488 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30489 s,@builddir@,$ac_builddir,;t t
30490 s,@abs_builddir@,$ac_abs_builddir,;t t
30491 s,@top_builddir@,$ac_top_builddir,;t t
30492 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30493 s,@INSTALL@,$ac_INSTALL,;t t
30494 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30496 if test x"$ac_file" != x-; then
30497 mv $tmp/out $ac_file
30505 cat >>$CONFIG_STATUS <<\_ACEOF
30508 # CONFIG_HEADER section.
30511 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30512 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30514 # ac_d sets the value in "#define NAME VALUE" lines.
30515 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30516 ac_dB='[ ].*$,\1#\2'
30519 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30520 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30521 ac_uB='$,\1#\2define\3'
30525 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30526 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30528 - | *:- | *:-:* ) # input from stdin
30530 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30532 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30534 * ) ac_file_in=$ac_file.in ;;
30537 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30538 echo "$as_me: creating $ac_file" >&6;}
30540 # First look for the input files in the build tree, otherwise in the
30542 ac_file_inputs=`IFS=:
30543 for f in $ac_file_in; do
30545 -) echo $tmp/stdin ;;
30547 # Absolute (can't be DOS-style, as IFS=:)
30548 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30549 echo "$as_me: error: cannot find input file: $f" >&2;}
30550 { (exit 1); exit 1; }; }
30551 # Do quote $f, to prevent DOS paths from being IFS'd.
30554 if test -f "$f"; then
30557 elif test -f "$srcdir/$f"; then
30562 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30563 echo "$as_me: error: cannot find input file: $f" >&2;}
30564 { (exit 1); exit 1; }; }
30567 done` || { (exit 1); exit 1; }
30568 # Remove the trailing spaces.
30569 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30573 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30574 # `conftest.undefs', that substitutes the proper values into
30575 # config.h.in to produce config.h. The first handles `#define'
30576 # templates, and the second `#undef' templates.
30577 # And first: Protect against being on the right side of a sed subst in
30578 # config.status. Protect against being in an unquoted here document
30579 # in config.status.
30580 rm -f conftest.defines conftest.undefs
30581 # Using a here document instead of a string reduces the quoting nightmare.
30582 # Putting comments in sed scripts is not portable.
30584 # `end' is used to avoid that the second main sed command (meant for
30585 # 0-ary CPP macros) applies to n-ary macro definitions.
30586 # See the Autoconf documentation for `clear'.
30587 cat >confdef2sed.sed <<\_ACEOF
30592 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30594 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30597 # If some macros were called several times there might be several times
30598 # the same #defines, which is useless. Nevertheless, we may not want to
30599 # sort them, since we want the *last* AC-DEFINE to be honored.
30600 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30601 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30602 rm -f confdef2sed.sed
30604 # This sed command replaces #undef with comments. This is necessary, for
30605 # example, in the case of _POSIX_SOURCE, which is predefined and required
30606 # on some systems where configure will not decide to define it.
30607 cat >>conftest.undefs <<\_ACEOF
30608 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30611 # Break up conftest.defines because some shells have a limit on the size
30612 # of here documents, and old seds have small limits too (100 cmds).
30613 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30614 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30615 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30616 echo ' :' >>$CONFIG_STATUS
30617 rm -f conftest.tail
30618 while grep . conftest.defines >/dev/null
30620 # Write a limited-size here document to $tmp/defines.sed.
30621 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30622 # Speed up: don't consider the non `#define' lines.
30623 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30624 # Work around the forget-to-reset-the-flag bug.
30625 echo 't clr' >>$CONFIG_STATUS
30626 echo ': clr' >>$CONFIG_STATUS
30627 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30629 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30631 mv $tmp/out $tmp/in
30633 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30634 rm -f conftest.defines
30635 mv conftest.tail conftest.defines
30637 rm -f conftest.defines
30638 echo ' fi # grep' >>$CONFIG_STATUS
30639 echo >>$CONFIG_STATUS
30641 # Break up conftest.undefs because some shells have a limit on the size
30642 # of here documents, and old seds have small limits too (100 cmds).
30643 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30644 rm -f conftest.tail
30645 while grep . conftest.undefs >/dev/null
30647 # Write a limited-size here document to $tmp/undefs.sed.
30648 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30649 # Speed up: don't consider the non `#undef'
30650 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30651 # Work around the forget-to-reset-the-flag bug.
30652 echo 't clr' >>$CONFIG_STATUS
30653 echo ': clr' >>$CONFIG_STATUS
30654 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30656 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30658 mv $tmp/out $tmp/in
30660 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30661 rm -f conftest.undefs
30662 mv conftest.tail conftest.undefs
30664 rm -f conftest.undefs
30666 cat >>$CONFIG_STATUS <<\_ACEOF
30667 # Let's still pretend it is `configure' which instantiates (i.e., don't
30668 # use $as_me), people would be surprised to read:
30669 # /* config.h. Generated by config.status. */
30670 if test x"$ac_file" = x-; then
30671 echo "/* Generated by configure. */" >$tmp/config.h
30673 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30675 cat $tmp/in >>$tmp/config.h
30677 if test x"$ac_file" != x-; then
30678 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30679 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30680 echo "$as_me: $ac_file is unchanged" >&6;}
30682 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30683 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30684 X"$ac_file" : 'X\(//\)[^/]' \| \
30685 X"$ac_file" : 'X\(//\)$' \| \
30686 X"$ac_file" : 'X\(/\)' \| \
30687 . : '\(.\)' 2>/dev/null ||
30689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30690 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30691 /^X\(\/\/\)$/{ s//\1/; q; }
30692 /^X\(\/\).*/{ s//\1/; q; }
30694 { if $as_mkdir_p; then
30699 while test ! -d "$as_dir"; do
30700 as_dirs="$as_dir $as_dirs"
30701 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30702 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30703 X"$as_dir" : 'X\(//\)[^/]' \| \
30704 X"$as_dir" : 'X\(//\)$' \| \
30705 X"$as_dir" : 'X\(/\)' \| \
30706 . : '\(.\)' 2>/dev/null ||
30708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30710 /^X\(\/\/\)$/{ s//\1/; q; }
30711 /^X\(\/\).*/{ s//\1/; q; }
30714 test ! -n "$as_dirs" || mkdir $as_dirs
30715 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30716 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30717 { (exit 1); exit 1; }; }; }
30720 mv $tmp/config.h $ac_file
30724 rm -f $tmp/config.h
30728 cat >>$CONFIG_STATUS <<\_ACEOF
30731 # CONFIG_LINKS section.
30734 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30735 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30736 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30738 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30739 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30741 if test ! -r $srcdir/$ac_source; then
30742 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30743 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30744 { (exit 1); exit 1; }; }
30748 # Make relative symlinks.
30749 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30750 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30751 X"$ac_dest" : 'X\(//\)[^/]' \| \
30752 X"$ac_dest" : 'X\(//\)$' \| \
30753 X"$ac_dest" : 'X\(/\)' \| \
30754 . : '\(.\)' 2>/dev/null ||
30756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30758 /^X\(\/\/\)$/{ s//\1/; q; }
30759 /^X\(\/\).*/{ s//\1/; q; }
30761 { if $as_mkdir_p; then
30762 mkdir -p "$ac_dest_dir"
30764 as_dir="$ac_dest_dir"
30766 while test ! -d "$as_dir"; do
30767 as_dirs="$as_dir $as_dirs"
30768 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30770 X"$as_dir" : 'X\(//\)[^/]' \| \
30771 X"$as_dir" : 'X\(//\)$' \| \
30772 X"$as_dir" : 'X\(/\)' \| \
30773 . : '\(.\)' 2>/dev/null ||
30775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30777 /^X\(\/\/\)$/{ s//\1/; q; }
30778 /^X\(\/\).*/{ s//\1/; q; }
30781 test ! -n "$as_dirs" || mkdir $as_dirs
30782 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30783 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30784 { (exit 1); exit 1; }; }; }
30788 if test "$ac_dest_dir" != .; then
30789 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30790 # A "../" for each directory in $ac_dir_suffix.
30791 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30793 ac_dir_suffix= ac_top_builddir=
30797 .) # No --srcdir option. We are building in place.
30799 if test -z "$ac_top_builddir"; then
30802 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30804 [\\/]* | ?:[\\/]* ) # Absolute path.
30805 ac_srcdir=$srcdir$ac_dir_suffix;
30806 ac_top_srcdir=$srcdir ;;
30807 *) # Relative path.
30808 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30809 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30812 # Do not use `cd foo && pwd` to compute absolute paths, because
30813 # the directories may not exist.
30815 .) ac_abs_builddir="$ac_dest_dir";;
30817 case "$ac_dest_dir" in
30818 .) ac_abs_builddir=`pwd`;;
30819 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30820 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30823 case $ac_abs_builddir in
30824 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30826 case ${ac_top_builddir}. in
30827 .) ac_abs_top_builddir=$ac_abs_builddir;;
30828 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30829 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30832 case $ac_abs_builddir in
30833 .) ac_abs_srcdir=$ac_srcdir;;
30836 .) ac_abs_srcdir=$ac_abs_builddir;;
30837 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30838 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30841 case $ac_abs_builddir in
30842 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30844 case $ac_top_srcdir in
30845 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30846 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30847 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30853 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30854 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30857 # Try a symlink, then a hard link, then a copy.
30858 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30859 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30860 cp -p $srcdir/$ac_source $ac_dest ||
30861 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30862 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30863 { (exit 1); exit 1; }; }
30866 cat >>$CONFIG_STATUS <<\_ACEOF
30869 # CONFIG_COMMANDS section.
30871 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30872 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30873 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30874 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30875 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30876 X"$ac_dest" : 'X\(//\)[^/]' \| \
30877 X"$ac_dest" : 'X\(//\)$' \| \
30878 X"$ac_dest" : 'X\(/\)' \| \
30879 . : '\(.\)' 2>/dev/null ||
30881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30883 /^X\(\/\/\)$/{ s//\1/; q; }
30884 /^X\(\/\).*/{ s//\1/; q; }
30886 { if $as_mkdir_p; then
30891 while test ! -d "$as_dir"; do
30892 as_dirs="$as_dir $as_dirs"
30893 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30895 X"$as_dir" : 'X\(//\)[^/]' \| \
30896 X"$as_dir" : 'X\(//\)$' \| \
30897 X"$as_dir" : 'X\(/\)' \| \
30898 . : '\(.\)' 2>/dev/null ||
30900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30902 /^X\(\/\/\)$/{ s//\1/; q; }
30903 /^X\(\/\).*/{ s//\1/; q; }
30906 test ! -n "$as_dirs" || mkdir $as_dirs
30907 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30908 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30909 { (exit 1); exit 1; }; }; }
30913 if test "$ac_dir" != .; then
30914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30915 # A "../" for each directory in $ac_dir_suffix.
30916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30918 ac_dir_suffix= ac_top_builddir=
30922 .) # No --srcdir option. We are building in place.
30924 if test -z "$ac_top_builddir"; then
30927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30929 [\\/]* | ?:[\\/]* ) # Absolute path.
30930 ac_srcdir=$srcdir$ac_dir_suffix;
30931 ac_top_srcdir=$srcdir ;;
30932 *) # Relative path.
30933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30937 # Do not use `cd foo && pwd` to compute absolute paths, because
30938 # the directories may not exist.
30940 .) ac_abs_builddir="$ac_dir";;
30943 .) ac_abs_builddir=`pwd`;;
30944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30948 case $ac_abs_builddir in
30949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30951 case ${ac_top_builddir}. in
30952 .) ac_abs_top_builddir=$ac_abs_builddir;;
30953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30957 case $ac_abs_builddir in
30958 .) ac_abs_srcdir=$ac_srcdir;;
30961 .) ac_abs_srcdir=$ac_abs_builddir;;
30962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30966 case $ac_abs_builddir in
30967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30969 case $ac_top_srcdir in
30970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30977 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30978 echo "$as_me: executing $ac_dest commands" >&6;}
30980 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
30981 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
30982 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
30983 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
30984 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
30985 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
30986 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
30987 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
30988 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
30989 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
30994 cat >>$CONFIG_STATUS <<\_ACEOF
30996 { (exit 0); exit 0; }
30998 chmod +x $CONFIG_STATUS
30999 ac_clean_files=$ac_clean_files_save
31002 # configure is writing to config.log, and then calls config.status.
31003 # config.status does its own redirection, appending to config.log.
31004 # Unfortunately, on DOS this fails, as config.log is still kept open
31005 # by configure, so config.status won't be able to write to it; its
31006 # output is simply discarded. So we exec the FD to /dev/null,
31007 # effectively closing config.log, so it can be properly (re)opened and
31008 # appended to by config.status. When coming back to configure, we
31009 # need to make the FD available again.
31010 if test "$no_create" != yes; then
31012 ac_config_status_args=
31013 test "$silent" = yes &&
31014 ac_config_status_args="$ac_config_status_args --quiet"
31016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31019 # would make configure fail if this is the last instruction.
31020 $ac_cs_success || { (exit 1); exit 1; }
31024 # CONFIG_SUBDIRS section.
31026 if test "$no_recursion" != yes; then
31028 # Remove --cache-file and --srcdir arguments so they do not pile up.
31029 ac_sub_configure_args=
31031 for ac_arg in $ac_configure_args; do
31032 if test -n "$ac_prev"; then
31037 -cache-file | --cache-file | --cache-fil | --cache-fi \
31038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31039 ac_prev=cache_file ;;
31040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31044 --config-cache | -C)
31046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31054 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31058 # Always prepend --prefix to ensure using the same prefix
31059 # in subdir configurations.
31060 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31063 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31065 # Do not complain, so a configure script can configure whichever
31066 # parts of a large source tree are present.
31067 test -d $srcdir/$ac_dir || continue
31069 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31070 echo "$as_me: configuring in $ac_dir" >&6;}
31071 { if $as_mkdir_p; then
31076 while test ! -d "$as_dir"; do
31077 as_dirs="$as_dir $as_dirs"
31078 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31080 X"$as_dir" : 'X\(//\)[^/]' \| \
31081 X"$as_dir" : 'X\(//\)$' \| \
31082 X"$as_dir" : 'X\(/\)' \| \
31083 . : '\(.\)' 2>/dev/null ||
31085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31087 /^X\(\/\/\)$/{ s//\1/; q; }
31088 /^X\(\/\).*/{ s//\1/; q; }
31091 test ! -n "$as_dirs" || mkdir $as_dirs
31092 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31093 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31094 { (exit 1); exit 1; }; }; }
31098 if test "$ac_dir" != .; then
31099 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31100 # A "../" for each directory in $ac_dir_suffix.
31101 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31103 ac_dir_suffix= ac_top_builddir=
31107 .) # No --srcdir option. We are building in place.
31109 if test -z "$ac_top_builddir"; then
31112 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31114 [\\/]* | ?:[\\/]* ) # Absolute path.
31115 ac_srcdir=$srcdir$ac_dir_suffix;
31116 ac_top_srcdir=$srcdir ;;
31117 *) # Relative path.
31118 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31119 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31122 # Do not use `cd foo && pwd` to compute absolute paths, because
31123 # the directories may not exist.
31125 .) ac_abs_builddir="$ac_dir";;
31128 .) ac_abs_builddir=`pwd`;;
31129 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31130 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31133 case $ac_abs_builddir in
31134 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31136 case ${ac_top_builddir}. in
31137 .) ac_abs_top_builddir=$ac_abs_builddir;;
31138 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31139 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31142 case $ac_abs_builddir in
31143 .) ac_abs_srcdir=$ac_srcdir;;
31146 .) ac_abs_srcdir=$ac_abs_builddir;;
31147 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31148 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31151 case $ac_abs_builddir in
31152 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31154 case $ac_top_srcdir in
31155 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31156 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31157 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31164 # Check for guested configure; otherwise get Cygnus style configure.
31165 if test -f $ac_srcdir/configure.gnu; then
31166 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31167 elif test -f $ac_srcdir/configure; then
31168 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31169 elif test -f $ac_srcdir/configure.in; then
31170 ac_sub_configure=$ac_configure
31172 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31173 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31177 # The recursion is here.
31178 if test -n "$ac_sub_configure"; then
31179 # Make the cache file name correct relative to the subdirectory.
31180 case $cache_file in
31181 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31182 *) # Relative path.
31183 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31186 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31187 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31188 # The eval makes quoting arguments work.
31189 eval $ac_sub_configure $ac_sub_configure_args \
31190 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31191 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31192 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31193 { (exit 1); exit 1; }; }
31201 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31202 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
31203 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
31204 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
31205 echo "$as_me: WARNING: ***** appear to be working." >&2;}
31206 { echo "$as_me:$LINENO: WARNING: ***** " >&5
31207 echo "$as_me: WARNING: ***** " >&2;}
31208 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
31209 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
31210 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
31211 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
31212 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
31213 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}