2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LLVM 1.3.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.3'
427 PACKAGE_STRING='LLVM 1.3'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
430 ac_subdirs_all="$ac_subdirs_all projects/${i}"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_unique_file=""Makefile.config.in""
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CC_set=${CC+set}
928 ac_cv_env_CC_set=${CC+set}
929 ac_cv_env_CC_value=$CC
930 ac_env_CFLAGS_set=${CFLAGS+set}
931 ac_env_CFLAGS_value=$CFLAGS
932 ac_cv_env_CFLAGS_set=${CFLAGS+set}
933 ac_cv_env_CFLAGS_value=$CFLAGS
934 ac_env_CPP_set=${CPP+set}
935 ac_env_CPP_value=$CPP
936 ac_cv_env_CPP_set=${CPP+set}
937 ac_cv_env_CPP_value=$CPP
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
958 \`configure' configures LLVM 1.3 to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 --target=TARGET configure for building compilers for TARGET [HOST]
1018 if test -n "$ac_init_help"; then
1019 case $ac_init_help in
1020 short | recursive ) echo "Configuration of LLVM 1.3:";;
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
1033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --enable-optimized Compile with optimizations enabled (default is NO)
1035 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1036 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1037 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
1038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
1040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1041 --enable-jit Enable Just In Time Compiling (default is YES)
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
1055 Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 ac_dir_suffix= ac_top_builddir=
1092 .) # No --srcdir option. We are building in place.
1094 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1110 .) ac_abs_builddir="$ac_dir";;
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1157 $ac_configure --help
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1169 generated by GNU Autoconf 2.59
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by LLVM $as_me 1.3, which was
1183 generated by GNU Autoconf 2.59. Invocation command line was
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_must_keep_next=false
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
1260 ac_must_keep_next=false # Got value, back to normal.
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 -* ) ac_must_keep_next=true ;;
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log. We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1300 # The following way of writing the cache mishandles newlines in values,
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1323 for ac_var in $ac_subst_vars
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1330 if test -n "$ac_subst_files"; then
1337 for ac_var in $ac_subst_files
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -s confdefs.h; then
1352 sed "/^$/d" confdefs.h | sort
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1359 rm -f core *.core &&
1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1418 if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1435 # Check that the precious variables saved in the cache have kept the same
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459 echo "$as_me: former value: $ac_old_val" >&2;}
1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461 echo "$as_me: current value: $ac_new_val" >&2;}
1462 ac_cache_corrupted=:
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520 for ac_dir in autoconf $srcdir/autoconf; do
1521 if test -f $ac_dir/install-sh; then
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 elif test -f $ac_dir/install.sh; then
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 elif test -f $ac_dir/shtool; then
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1538 { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545 if test ${srcdir} != "."
1547 if test -f ${srcdir}/include/Config/config.h
1549 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1550 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1551 { (exit 1); exit 1; }; }
1555 for i in `ls ${srcdir}/projects`
1557 if test ${i} != "CVS"
1559 if test -f ${srcdir}/projects/${i}/configure
1563 subdirs="$subdirs projects/${i}"
1569 ac_config_headers="$ac_config_headers include/Config/config.h"
1572 ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
1575 ac_config_commands="$ac_config_commands Makefile"
1578 ac_config_commands="$ac_config_commands Makefile.common"
1581 ac_config_commands="$ac_config_commands lib/Makefile"
1584 ac_config_commands="$ac_config_commands runtime/Makefile"
1587 ac_config_commands="$ac_config_commands test/Makefile"
1590 ac_config_commands="$ac_config_commands test/Makefile.tests"
1593 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1596 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1599 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1602 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1605 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1608 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1611 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1614 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1617 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1620 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1623 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1626 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1629 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1632 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1635 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1638 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1641 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1644 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1647 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1650 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1653 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1656 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1659 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1662 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1665 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1668 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1671 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1674 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1677 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1680 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1683 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1686 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1689 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1692 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1695 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1698 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1701 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1704 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1707 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1710 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1713 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1716 ac_config_commands="$ac_config_commands tools/Makefile"
1719 ac_config_commands="$ac_config_commands utils/Makefile"
1722 ac_config_commands="$ac_config_commands projects/Makefile"
1726 # Find a good install program. We prefer a C program (faster),
1727 # so one script is as good as another. But avoid the broken or
1728 # incompatible versions:
1729 # SysV /etc/install, /usr/sbin/install
1730 # SunOS /usr/etc/install
1731 # IRIX /sbin/install
1733 # AmigaOS /C/install, which installs bootblocks on floppy discs
1734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1737 # OS/2's system install, which has a completely different semantic
1738 # ./install, which can be erroneously created by make from ./install.sh.
1739 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1740 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1741 if test -z "$INSTALL"; then
1742 if test "${ac_cv_path_install+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 test -z "$as_dir" && as_dir=.
1750 # Account for people who put trailing slashes in PATH elements.
1752 ./ | .// | /cC/* | \
1753 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1754 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1757 # OSF1 and SCO ODT 3.0 have their own names for install.
1758 # Don't use installbsd from OSF since it installs stuff as root
1760 for ac_prog in ginstall scoinst install; do
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1763 if test $ac_prog = install &&
1764 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1765 # AIX install. It has an incompatible calling convention.
1767 elif test $ac_prog = install &&
1768 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1769 # program-specific install script used by HP pwplus--don't use.
1772 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1784 if test "${ac_cv_path_install+set}" = set; then
1785 INSTALL=$ac_cv_path_install
1787 # As a last resort, use the slow shell script. We don't cache a
1788 # path for INSTALL within a source directory, because that will
1789 # break other packages using the cache if that directory is
1790 # removed, or if the path is relative.
1791 INSTALL=$ac_install_sh
1794 echo "$as_me:$LINENO: result: $INSTALL" >&5
1795 echo "${ECHO_T}$INSTALL" >&6
1797 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1798 # It thinks the first close brace ends the variable substitution.
1799 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1801 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1803 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1806 # Make sure we can run config.sub.
1807 $ac_config_sub sun4 >/dev/null 2>&1 ||
1808 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1809 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1810 { (exit 1); exit 1; }; }
1812 echo "$as_me:$LINENO: checking build system type" >&5
1813 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1814 if test "${ac_cv_build+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 ac_cv_build_alias=$build_alias
1818 test -z "$ac_cv_build_alias" &&
1819 ac_cv_build_alias=`$ac_config_guess`
1820 test -z "$ac_cv_build_alias" &&
1821 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1822 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1823 { (exit 1); exit 1; }; }
1824 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1825 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1826 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1827 { (exit 1); exit 1; }; }
1830 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1831 echo "${ECHO_T}$ac_cv_build" >&6
1833 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1834 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1835 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1838 echo "$as_me:$LINENO: checking host system type" >&5
1839 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1840 if test "${ac_cv_host+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 ac_cv_host_alias=$host_alias
1844 test -z "$ac_cv_host_alias" &&
1845 ac_cv_host_alias=$ac_cv_build_alias
1846 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1847 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1848 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1849 { (exit 1); exit 1; }; }
1852 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1853 echo "${ECHO_T}$ac_cv_host" >&6
1855 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1856 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1857 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1860 echo "$as_me:$LINENO: checking target system type" >&5
1861 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1862 if test "${ac_cv_target+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 ac_cv_target_alias=$target_alias
1866 test "x$ac_cv_target_alias" = "x" &&
1867 ac_cv_target_alias=$ac_cv_host_alias
1868 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1869 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1870 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1871 { (exit 1); exit 1; }; }
1874 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1875 echo "${ECHO_T}$ac_cv_target" >&6
1876 target=$ac_cv_target
1877 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1878 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1879 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1882 # The aliases save the names the user supplied, while $host etc.
1883 # will get canonicalized.
1884 test -n "$target_alias" &&
1885 test "$program_prefix$program_suffix$program_transform_name" = \
1887 program_prefix=${target_alias}-
1893 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1895 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1902 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1904 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1926 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1935 sparc*-*) ARCH=Sparc
1938 powerpc*-*) ARCH=PowerPC
1947 ac_cpp='$CXXCPP $CPPFLAGS'
1948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1951 if test -n "$ac_tool_prefix"; then
1952 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CXX+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$CXX"; then
1962 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 if test -n "$CXX"; then
1982 echo "$as_me:$LINENO: result: $CXX" >&5
1983 echo "${ECHO_T}$CXX" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 test -n "$CXX" && break
1992 if test -z "$CXX"; then
1994 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1996 # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$ac_ct_CXX"; then
2004 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_ac_ct_CXX="$ac_prog"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2023 if test -n "$ac_ct_CXX"; then
2024 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2025 echo "${ECHO_T}$ac_ct_CXX" >&6
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2031 test -n "$ac_ct_CXX" && break
2033 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2039 # Provide some information about the compiler.
2040 echo "$as_me:$LINENO:" \
2041 "checking for C++ compiler version" >&5
2042 ac_compiler=`set X $ac_compile; echo $2`
2043 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2044 (eval $ac_compiler --version </dev/null >&5) 2>&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }
2048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2049 (eval $ac_compiler -v </dev/null >&5) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2054 (eval $ac_compiler -V </dev/null >&5) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }
2059 cat >conftest.$ac_ext <<_ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h. */
2074 ac_clean_files_save=$ac_clean_files
2075 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2076 # Try to create an executable without -o first, disregard a.out.
2077 # It will help us diagnose broken compilers, and finding out an intuition
2079 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2080 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2081 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2083 (eval $ac_link_default) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2087 # Find the output, starting from the most likely. This scheme is
2088 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2091 # Be careful to initialize this variable, since it used to be cached.
2092 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2094 # b.out is created by i960 compilers.
2095 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2097 test -f "$ac_file" || continue
2099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2102 # This is the source file.
2105 # We found the default executable, but exeext='' is most
2109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110 # FIXME: I believe we export ac_cv_exeext for Libtool,
2111 # but it would be cool to find out if it's true. Does anybody
2112 # maintain Libtool? --akim.
2120 echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2123 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: C++ compiler cannot create executables
2126 See \`config.log' for more details." >&2;}
2127 { (exit 77); exit 77; }; }
2130 ac_exeext=$ac_cv_exeext
2131 echo "$as_me:$LINENO: result: $ac_file" >&5
2132 echo "${ECHO_T}$ac_file" >&6
2134 # Check the compiler produces executables we can run. If not, either
2135 # the compiler is broken, or we cross compile.
2136 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2137 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2138 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2139 # If not cross compiling, check that we can run a simple program.
2140 if test "$cross_compiling" != yes; then
2141 if { ac_try='./$ac_file'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2149 if test "$cross_compiling" = maybe; then
2152 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2153 If you meant to cross compile, use \`--host'.
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: cannot run C++ compiled programs.
2156 If you meant to cross compile, use \`--host'.
2157 See \`config.log' for more details." >&2;}
2158 { (exit 1); exit 1; }; }
2162 echo "$as_me:$LINENO: result: yes" >&5
2163 echo "${ECHO_T}yes" >&6
2165 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2166 ac_clean_files=$ac_clean_files_save
2167 # Check the compiler produces executables we can run. If not, either
2168 # the compiler is broken, or we cross compile.
2169 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2170 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2171 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2172 echo "${ECHO_T}$cross_compiling" >&6
2174 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2175 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177 (eval $ac_link) 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2182 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2183 # work properly (i.e., refer to `conftest.exe'), while it won't with
2185 for ac_file in conftest.exe conftest conftest.*; do
2186 test -f "$ac_file" || continue
2188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2189 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2203 rm -f conftest$ac_cv_exeext
2204 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2205 echo "${ECHO_T}$ac_cv_exeext" >&6
2207 rm -f conftest.$ac_ext
2208 EXEEXT=$ac_cv_exeext
2210 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2211 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2212 if test "${ac_cv_objext+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 cat >conftest.$ac_ext <<_ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h. */
2230 rm -f conftest.o conftest.obj
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; then
2236 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2239 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2247 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2254 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2256 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2257 echo "${ECHO_T}$ac_cv_objext" >&6
2258 OBJEXT=$ac_cv_objext
2260 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2261 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2262 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 cat >conftest.$ac_ext <<_ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2287 grep -v '^ *+' conftest.er1 >conftest.err
2289 cat conftest.err >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -z "$ac_cxx_werror_flag"
2293 || test ! -s conftest.err'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2316 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2317 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2318 GXX=`test $ac_compiler_gnu = yes && echo yes`
2319 ac_test_CXXFLAGS=${CXXFLAGS+set}
2320 ac_save_CXXFLAGS=$CXXFLAGS
2322 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2323 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cxx_g+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.$ac_ext <<_ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2346 grep -v '^ *+' conftest.er1 >conftest.err
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_cxx_werror_flag"
2352 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_cv_prog_cxx_g=yes
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2373 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2374 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2375 if test "$ac_test_CXXFLAGS" = set; then
2376 CXXFLAGS=$ac_save_CXXFLAGS
2377 elif test $ac_cv_prog_cxx_g = yes; then
2378 if test "$GXX" = yes; then
2384 if test "$GXX" = yes; then
2390 for ac_declaration in \
2392 'extern "C" void std::exit (int) throw (); using std::exit;' \
2393 'extern "C" void std::exit (int); using std::exit;' \
2394 'extern "C" void exit (int) throw ();' \
2395 'extern "C" void exit (int);' \
2398 cat >conftest.$ac_ext <<_ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2418 grep -v '^ *+' conftest.er1 >conftest.err
2420 cat conftest.err >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -z "$ac_cxx_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 cat >conftest.$ac_ext <<_ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>conftest.er1
2463 grep -v '^ *+' conftest.er1 >conftest.err
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -z "$ac_cxx_werror_flag"
2469 || test ! -s conftest.err'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try='test -s conftest.$ac_objext'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2490 if test -n "$ac_declaration"; then
2491 echo '#ifdef __cplusplus' >>confdefs.h
2492 echo $ac_declaration >>confdefs.h
2493 echo '#endif' >>confdefs.h
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2512 echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 if test -n "$CC"; then
2538 echo "$as_me:$LINENO: result: $CC" >&5
2539 echo "${ECHO_T}$CC" >&6
2541 echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2545 test -n "$CC" && break
2548 if test -z "$CC"; then
2552 # Extract the first word of "$ac_prog", so it can be a program name with args.
2553 set dummy $ac_prog; ac_word=$2
2554 echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 if test -n "$ac_ct_CC"; then
2560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_ac_ct_CC="$ac_prog"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579 if test -n "$ac_ct_CC"; then
2580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2581 echo "${ECHO_T}$ac_ct_CC" >&6
2583 echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6
2587 test -n "$ac_ct_CC" && break
2594 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2595 See \`config.log' for more details." >&5
2596 echo "$as_me: error: no acceptable C compiler found in \$PATH
2597 See \`config.log' for more details." >&2;}
2598 { (exit 1); exit 1; }; }
2600 # Provide some information about the compiler.
2601 echo "$as_me:$LINENO:" \
2602 "checking for C compiler version" >&5
2603 ac_compiler=`set X $ac_compile; echo $2`
2604 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2605 (eval $ac_compiler --version </dev/null >&5) 2>&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }
2609 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2610 (eval $ac_compiler -v </dev/null >&5) 2>&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }
2614 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2615 (eval $ac_compiler -V </dev/null >&5) 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }
2620 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2621 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2622 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2676 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2677 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2678 GCC=`test $ac_compiler_gnu = yes && echo yes`
2679 ac_test_CFLAGS=${CFLAGS+set}
2680 ac_save_CFLAGS=$CFLAGS
2682 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2684 if test "${ac_cv_prog_cc_g+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 cat >conftest.$ac_ext <<_ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2734 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2735 if test "$ac_test_CFLAGS" = set; then
2736 CFLAGS=$ac_save_CFLAGS
2737 elif test $ac_cv_prog_cc_g = yes; then
2738 if test "$GCC" = yes; then
2744 if test "$GCC" = yes; then
2750 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2751 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2752 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 ac_cv_prog_cc_stdc=no
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2765 #include <sys/types.h>
2766 #include <sys/stat.h>
2767 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2768 struct buf { int x; };
2769 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2770 static char *e (p, i)
2776 static char *f (char * (*g) (char **, int), char **p, ...)
2781 s = g (p, va_arg (v,int));
2786 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2787 function prototypes and stuff, but not '\xHH' hex character constants.
2788 These don't provoke an error unfortunately, instead are silently treated
2789 as 'x'. The following induces an error, until -std1 is added to get
2790 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2791 array size at least. It's necessary to write '\x00'==0 to get something
2792 that's true only with -std1. */
2793 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2795 int test (int i, double x);
2796 struct s1 {int (*f) (int a);};
2797 struct s2 {int (*f) (double a);};
2798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2809 # Don't try gcc -ansi; that turns off useful extensions and
2810 # breaks some systems' header files.
2811 # AIX -qlanglvl=ansi
2812 # Ultrix and OSF/1 -std1
2813 # HP-UX 10.20 and later -Ae
2814 # HP-UX older versions -Aa -D_HPUX_SOURCE
2815 # SVR4 -Xc -D__EXTENSIONS__
2816 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2818 CC="$ac_save_CC $ac_arg"
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 ac_cv_prog_cc_stdc=$ac_arg
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2848 rm -f conftest.err conftest.$ac_objext
2850 rm -f conftest.$ac_ext conftest.$ac_objext
2855 case "x$ac_cv_prog_cc_stdc" in
2857 echo "$as_me:$LINENO: result: none needed" >&5
2858 echo "${ECHO_T}none needed" >&6 ;;
2860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2862 CC="$CC $ac_cv_prog_cc_stdc" ;;
2865 # Some people use a C++ compiler to compile C. Since we use `exit',
2866 # in C++ we need to declare it. In case someone uses the same compiler
2867 # for both compiling C and C++ we need to have the C++ compiler decide
2868 # the declaration of exit, since it's the most demanding environment.
2869 cat >conftest.$ac_ext <<_ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>conftest.er1
2878 grep -v '^ *+' conftest.er1 >conftest.err
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 for ac_declaration in \
2898 'extern "C" void std::exit (int) throw (); using std::exit;' \
2899 'extern "C" void std::exit (int); using std::exit;' \
2900 'extern "C" void exit (int) throw ();' \
2901 'extern "C" void exit (int);' \
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2924 grep -v '^ *+' conftest.er1 >conftest.err
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_c_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950 cat >conftest.$ac_ext <<_ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2996 if test -n "$ac_declaration"; then
2997 echo '#ifdef __cplusplus' >>confdefs.h
2998 echo $ac_declaration >>confdefs.h
2999 echo '#endif' >>confdefs.h
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3020 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3021 # On Suns, sometimes $CPP names a directory.
3022 if test -n "$CPP" && test -d "$CPP"; then
3025 if test -z "$CPP"; then
3026 if test "${ac_cv_prog_CPP+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 # Double quotes because CPP needs to be expanded
3030 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3033 for ac_c_preproc_warn_flag in '' yes
3035 # Use a header file that comes with gcc, so configuring glibc
3036 # with a fresh cross-compiler works.
3037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038 # <limits.h> exists even on freestanding compilers.
3039 # On the NeXT, cc -E runs the code through the compiler's parser,
3040 # not just through cpp. "Syntax error" is here to catch this case.
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3048 # include <limits.h>
3050 # include <assert.h>
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057 grep -v '^ *+' conftest.er1 >conftest.err
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } >/dev/null; then
3062 if test -s conftest.err; then
3063 ac_cpp_err=$ac_c_preproc_warn_flag
3064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071 if test -z "$ac_cpp_err"; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 # Broken: fails on valid input.
3080 rm -f conftest.err conftest.$ac_ext
3082 # OK, works on sane cases. Now check whether non-existent headers
3083 # can be detected and how.
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 #include <ac_nonexistent.h>
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev/null; then
3100 if test -s conftest.err; then
3101 ac_cpp_err=$ac_c_preproc_warn_flag
3102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109 if test -z "$ac_cpp_err"; then
3110 # Broken: success on invalid input.
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 # Passes both tests.
3120 rm -f conftest.err conftest.$ac_ext
3123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124 rm -f conftest.err conftest.$ac_ext
3125 if $ac_preproc_ok; then
3137 echo "$as_me:$LINENO: result: $CPP" >&5
3138 echo "${ECHO_T}$CPP" >&6
3140 for ac_c_preproc_warn_flag in '' yes
3142 # Use a header file that comes with gcc, so configuring glibc
3143 # with a fresh cross-compiler works.
3144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3145 # <limits.h> exists even on freestanding compilers.
3146 # On the NeXT, cc -E runs the code through the compiler's parser,
3147 # not just through cpp. "Syntax error" is here to catch this case.
3148 cat >conftest.$ac_ext <<_ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3155 # include <limits.h>
3157 # include <assert.h>
3161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3164 grep -v '^ *+' conftest.er1 >conftest.err
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } >/dev/null; then
3169 if test -s conftest.err; then
3170 ac_cpp_err=$ac_c_preproc_warn_flag
3171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3178 if test -z "$ac_cpp_err"; then
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 # Broken: fails on valid input.
3187 rm -f conftest.err conftest.$ac_ext
3189 # OK, works on sane cases. Now check whether non-existent headers
3190 # can be detected and how.
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3197 #include <ac_nonexistent.h>
3199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3202 grep -v '^ *+' conftest.er1 >conftest.err
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } >/dev/null; then
3207 if test -s conftest.err; then
3208 ac_cpp_err=$ac_c_preproc_warn_flag
3209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3216 if test -z "$ac_cpp_err"; then
3217 # Broken: success on invalid input.
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 # Passes both tests.
3227 rm -f conftest.err conftest.$ac_ext
3230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3231 rm -f conftest.err conftest.$ac_ext
3232 if $ac_preproc_ok; then
3235 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3236 See \`config.log' for more details." >&5
3237 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3238 See \`config.log' for more details." >&2;}
3239 { (exit 1); exit 1; }; }
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249 if test "$GCC" != "yes"
3251 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3252 echo "$as_me: error: gcc required but not found" >&2;}
3253 { (exit 1); exit 1; }; }
3255 if test "$GXX" != "yes"
3257 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3258 echo "$as_me: error: g++ required but not found" >&2;}
3259 { (exit 1); exit 1; }; }
3262 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3263 if test "$gccmajor" -lt "3"
3265 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3266 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3267 { (exit 1); exit 1; }; }
3270 echo "$as_me:$LINENO: checking for GNU make" >&5
3271 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3272 if test "${_cv_gnu_make_command+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 _cv_gnu_make_command='' ;
3276 for a in "$MAKE" make gmake gnumake ; do
3277 if test -z "$a" ; then continue ; fi ;
3278 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3279 _cv_gnu_make_command=$a ;
3285 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3286 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3287 if test "x$_cv_gnu_make_command" != "x" ; then
3291 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3292 echo "${ECHO_T}\"Not found\"" >&6;
3296 if test -z "$_cv_gnu_make_command"
3298 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3299 echo "$as_me: error: GNU Make required but not found" >&2;}
3300 { (exit 1); exit 1; }; }
3304 echo "$as_me:$LINENO: checking " >&5
3305 echo $ECHO_N "checking ... $ECHO_C" >&6
3306 if test "${ac_cv_has_flex+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 for ac_prog in flex lex
3311 # Extract the first word of "$ac_prog", so it can be a program name with args.
3312 set dummy $ac_prog; ac_word=$2
3313 echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315 if test "${ac_cv_prog_LEX+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 if test -n "$LEX"; then
3319 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_LEX="$ac_prog"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 if test -n "$LEX"; then
3339 echo "$as_me:$LINENO: result: $LEX" >&5
3340 echo "${ECHO_T}$LEX" >&6
3342 echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3346 test -n "$LEX" && break
3348 test -n "$LEX" || LEX=":"
3350 if test -z "$LEXLIB"
3352 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3353 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3354 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 ac_check_lib_save_LIBS=$LIBS
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3366 /* Override any gcc2 internal prototype to avoid an error. */
3370 /* We use char because int might match the return type of a gcc2
3371 builtin and then its argument prototype would still apply. */
3381 rm -f conftest.$ac_objext conftest$ac_exeext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383 (eval $ac_link) 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest$ac_exeext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_cv_lib_fl_yywrap=yes
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 ac_cv_lib_fl_yywrap=no
3410 rm -f conftest.err conftest.$ac_objext \
3411 conftest$ac_exeext conftest.$ac_ext
3412 LIBS=$ac_check_lib_save_LIBS
3414 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3415 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3416 if test $ac_cv_lib_fl_yywrap = yes; then
3419 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3420 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3421 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 ac_check_lib_save_LIBS=$LIBS
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3433 /* Override any gcc2 internal prototype to avoid an error. */
3437 /* We use char because int might match the return type of a gcc2
3438 builtin and then its argument prototype would still apply. */
3448 rm -f conftest.$ac_objext conftest$ac_exeext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3450 (eval $ac_link) 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try='test -z "$ac_c_werror_flag"
3458 || test ! -s conftest.err'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; } &&
3464 { ac_try='test -s conftest$ac_exeext'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3470 ac_cv_lib_l_yywrap=yes
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3475 ac_cv_lib_l_yywrap=no
3477 rm -f conftest.err conftest.$ac_objext \
3478 conftest$ac_exeext conftest.$ac_ext
3479 LIBS=$ac_check_lib_save_LIBS
3481 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3482 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3483 if test $ac_cv_lib_l_yywrap = yes; then
3491 if test "x$LEX" != "x:"; then
3492 echo "$as_me:$LINENO: checking lex output file root" >&5
3493 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3494 if test "${ac_cv_prog_lex_root+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 # The minimal lex program is just a single line: %%. But some broken lexes
3498 # (Solaris, I think it was) want two %% lines, so accommodate them.
3499 cat >conftest.l <<_ACEOF
3503 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3504 (eval $LEX conftest.l) 2>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }
3508 if test -f lex.yy.c; then
3509 ac_cv_prog_lex_root=lex.yy
3510 elif test -f lexyy.c; then
3511 ac_cv_prog_lex_root=lexyy
3513 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3514 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3515 { (exit 1); exit 1; }; }
3518 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3519 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3521 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3523 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3524 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3525 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 # POSIX says lex can declare yytext either as a pointer or an array; the
3529 # default is implementation-dependent. Figure out which it is, since
3530 # not all implementations provide the %pointer and %array declarations.
3531 ac_cv_prog_lex_yytext_pointer=no
3532 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3534 LIBS="$LIBS $LEXLIB"
3535 cat >conftest.$ac_ext <<_ACEOF
3536 `cat $LEX_OUTPUT_ROOT.c`
3538 rm -f conftest.$ac_objext conftest$ac_exeext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3540 (eval $ac_link) 2>conftest.er1
3542 grep -v '^ *+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } &&
3547 { ac_try='test -z "$ac_c_werror_flag"
3548 || test ! -s conftest.err'
3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; } &&
3554 { ac_try='test -s conftest$ac_exeext'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3560 ac_cv_prog_lex_yytext_pointer=yes
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3566 rm -f conftest.err conftest.$ac_objext \
3567 conftest$ac_exeext conftest.$ac_ext
3569 rm -f "${LEX_OUTPUT_ROOT}.c"
3572 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3573 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3574 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3576 cat >>confdefs.h <<\_ACEOF
3577 #define YYTEXT_POINTER 1
3585 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3586 echo "${ECHO_T}$ac_cv_has_flex" >&6
3587 if test "$LEX" != "flex"; then
3588 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3589 echo "$as_me: error: flex not found but required" >&2;}
3590 { (exit 1); exit 1; }; }
3593 echo "$as_me:$LINENO: checking " >&5
3594 echo $ECHO_N "checking ... $ECHO_C" >&6
3595 if test "${ac_cv_has_bison+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 for ac_prog in 'bison -y' byacc
3600 # Extract the first word of "$ac_prog", so it can be a program name with args.
3601 set dummy $ac_prog; ac_word=$2
3602 echo "$as_me:$LINENO: checking for $ac_word" >&5
3603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3604 if test "${ac_cv_prog_YACC+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 if test -n "$YACC"; then
3608 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617 ac_cv_prog_YACC="$ac_prog"
3618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 YACC=$ac_cv_prog_YACC
3627 if test -n "$YACC"; then
3628 echo "$as_me:$LINENO: result: $YACC" >&5
3629 echo "${ECHO_T}$YACC" >&6
3631 echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6
3635 test -n "$YACC" && break
3637 test -n "$YACC" || YACC="yacc"
3641 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3642 echo "${ECHO_T}$ac_cv_has_bison" >&6
3643 if test "$YACC" != "bison -y"; then
3644 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3645 echo "$as_me: error: bison not found but required" >&2;}
3646 { (exit 1); exit 1; }; }
3652 # Check whether --enable-shared or --disable-shared was given.
3653 if test "${enable_shared+set}" = set; then
3654 enableval="$enable_shared"
3655 p=${PACKAGE-default}
3657 yes) enable_shared=yes ;;
3658 no) enable_shared=no ;;
3661 # Look at the argument we got. We use all the common list separators.
3662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3663 for pkg in $enableval; do
3665 if test "X$pkg" = "X$p"; then
3676 # Check whether --enable-static or --disable-static was given.
3677 if test "${enable_static+set}" = set; then
3678 enableval="$enable_static"
3679 p=${PACKAGE-default}
3681 yes) enable_static=yes ;;
3682 no) enable_static=no ;;
3685 # Look at the argument we got. We use all the common list separators.
3686 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3687 for pkg in $enableval; do
3689 if test "X$pkg" = "X$p"; then
3700 # Check whether --enable-fast-install or --disable-fast-install was given.
3701 if test "${enable_fast_install+set}" = set; then
3702 enableval="$enable_fast_install"
3703 p=${PACKAGE-default}
3705 yes) enable_fast_install=yes ;;
3706 no) enable_fast_install=no ;;
3708 enable_fast_install=no
3709 # Look at the argument we got. We use all the common list separators.
3710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3711 for pkg in $enableval; do
3713 if test "X$pkg" = "X$p"; then
3714 enable_fast_install=yes
3721 enable_fast_install=yes
3724 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3725 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3726 if test "${lt_cv_path_SED+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 # Loop through the user's path and test for sed and gsed.
3730 # Then use that list of sed's as ones to test for truncation.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 test -z "$as_dir" && as_dir=.
3736 for lt_ac_prog in sed gsed; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3739 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3746 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3747 # along with /bin/sed that truncates output.
3748 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3749 test ! -f $lt_ac_sed && break
3750 cat /dev/null > conftest.in
3752 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3753 # Check for GNU sed and select it if it is found.
3754 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3755 lt_cv_path_SED=$lt_ac_sed
3759 cat conftest.in conftest.in >conftest.tmp
3760 mv conftest.tmp conftest.in
3761 cp conftest.in conftest.nl
3763 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3764 cmp -s conftest.out conftest.nl || break
3765 # 10000 chars as input seems more than enough
3766 test $lt_ac_count -gt 10 && break
3767 lt_ac_count=`expr $lt_ac_count + 1`
3768 if test $lt_ac_count -gt $lt_ac_max; then
3769 lt_ac_max=$lt_ac_count
3770 lt_cv_path_SED=$lt_ac_sed
3778 echo "$as_me:$LINENO: result: $SED" >&5
3779 echo "${ECHO_T}$SED" >&6
3781 echo "$as_me:$LINENO: checking for egrep" >&5
3782 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3783 if test "${ac_cv_prog_egrep+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3787 then ac_cv_prog_egrep='grep -E'
3788 else ac_cv_prog_egrep='egrep'
3791 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3792 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3793 EGREP=$ac_cv_prog_egrep
3797 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3798 if test "${with_gnu_ld+set}" = set; then
3799 withval="$with_gnu_ld"
3800 test "$withval" = no || with_gnu_ld=yes
3805 if test "$GCC" = yes; then
3806 # Check if gcc -print-prog-name=ld gives a path.
3807 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3808 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3811 # gcc leaves a trailing carriage return which upsets mingw
3812 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3814 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3817 # Accept absolute paths.
3819 re_direlt='/[^/][^/]*/\.\./'
3820 # Canonicalize the path of ld
3821 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3822 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3823 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3825 test -z "$LD" && LD="$ac_prog"
3828 # If it fails, then pretend we aren't using GCC.
3832 # If it is relative, then search for the first ld in PATH.
3836 elif test "$with_gnu_ld" = yes; then
3837 echo "$as_me:$LINENO: checking for GNU ld" >&5
3838 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3840 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3841 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3843 if test "${lt_cv_path_LD+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 if test -z "$LD"; then
3847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3848 for ac_dir in $PATH; do
3850 test -z "$ac_dir" && ac_dir=.
3851 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3852 lt_cv_path_LD="$ac_dir/$ac_prog"
3853 # Check to see if the program is GNU ld. I'd rather use --version,
3854 # but apparently some GNU ld's only accept -v.
3855 # Break only if it was the GNU/non-GNU ld that we prefer.
3856 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3857 *GNU* | *'with BFD'*)
3858 test "$with_gnu_ld" != no && break
3861 test "$with_gnu_ld" != yes && break
3868 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3873 if test -n "$LD"; then
3874 echo "$as_me:$LINENO: result: $LD" >&5
3875 echo "${ECHO_T}$LD" >&6
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3880 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3881 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3882 { (exit 1); exit 1; }; }
3883 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3884 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3885 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3889 case `"$LD" -v 2>&1 </dev/null` in
3890 *GNU* | *'with BFD'*)
3891 lt_cv_prog_gnu_ld=yes
3894 lt_cv_prog_gnu_ld=no
3898 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3899 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3900 with_gnu_ld=$lt_cv_prog_gnu_ld
3903 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3904 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3905 if test "${lt_cv_ld_reload_flag+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 lt_cv_ld_reload_flag='-r'
3910 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3911 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3912 reload_flag=$lt_cv_ld_reload_flag
3913 case $reload_flag in
3915 *) reload_flag=" $reload_flag" ;;
3917 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3919 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3920 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3921 if test "${lt_cv_path_NM+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 if test -n "$NM"; then
3925 # Let the user override the test.
3928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3929 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3931 test -z "$ac_dir" && ac_dir=.
3932 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3933 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3934 # Check to see if the nm accepts a BSD-compat flag.
3935 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3936 # nm: unknown option "B" ignored
3937 # Tru64's nm complains that /dev/null is an invalid object file
3938 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3939 */dev/null* | *'Invalid file or object type'*)
3940 lt_cv_path_NM="$tmp_nm -B"
3944 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3946 lt_cv_path_NM="$tmp_nm -p"
3950 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3951 continue # so that we can try to find one that supports BSD flags
3958 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3961 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3962 echo "${ECHO_T}$lt_cv_path_NM" >&6
3965 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3966 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3968 if test "$LN_S" = "ln -s"; then
3969 echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6
3972 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3973 echo "${ECHO_T}no, using $LN_S" >&6
3976 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3977 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3978 if test "${lt_cv_deplibs_check_method+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 lt_cv_file_magic_cmd='$MAGIC_CMD'
3982 lt_cv_file_magic_test_file=
3983 lt_cv_deplibs_check_method='unknown'
3984 # Need to set the preceding variable on all platforms that support
3985 # interlibrary dependencies.
3986 # 'none' -- dependencies not supported.
3987 # `unknown' -- same as none, but documents that we really don't know.
3988 # 'pass_all' -- all dependencies passed with no checks.
3989 # 'test_compile' -- check by making test program.
3990 # 'file_magic [[regex]]' -- check by looking for files in library path
3991 # which responds to the $file_magic_cmd with a given extended regex.
3992 # If you have `file' or equivalent on your system and you're not sure
3993 # whether `pass_all' will *always* work, you probably want this one.
3997 lt_cv_deplibs_check_method=pass_all
4001 lt_cv_deplibs_check_method=pass_all
4005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4006 lt_cv_file_magic_cmd='/usr/bin/file -L'
4007 lt_cv_file_magic_test_file=/shlib/libc.so
4010 cygwin* | mingw* | pw32*)
4011 # win32_libid is a shell function defined in ltmain.sh
4012 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4013 lt_cv_file_magic_cmd='win32_libid'
4016 darwin* | rhapsody*)
4017 # this will be overwritten by pass_all, but leave it in just in case
4018 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4019 lt_cv_file_magic_cmd='/usr/bin/file -L'
4021 rhapsody* | darwin1.[012])
4022 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4025 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4028 lt_cv_deplibs_check_method=pass_all
4032 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4035 # Not sure whether the presence of OpenBSD here was a mistake.
4036 # Let's accept both of them until this is cleared up.
4037 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4038 lt_cv_file_magic_cmd=/usr/bin/file
4039 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4043 lt_cv_deplibs_check_method=pass_all
4048 lt_cv_deplibs_check_method=pass_all
4051 hpux10.20* | hpux11*)
4052 lt_cv_file_magic_cmd=/usr/bin/file
4055 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4056 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4059 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]'
4060 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4063 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4064 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4069 irix5* | irix6* | nonstopux*)
4071 irix5* | nonstopux*)
4072 # this will be overridden with pass_all, but let us keep it just in case
4073 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4077 *-32|*"-32 ") libmagic=32-bit;;
4078 *-n32|*"-n32 ") libmagic=N32;;
4079 *-64|*"-64 ") libmagic=64-bit;;
4080 *) libmagic=never-match;;
4082 # this will be overridden with pass_all, but let us keep it just in case
4083 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4086 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4087 lt_cv_deplibs_check_method=pass_all
4090 # This must be Linux ELF.
4093 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4094 lt_cv_deplibs_check_method=pass_all ;;
4096 # glibc up to 2.1.1 does not perform some relocations on ARM
4097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4099 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4103 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4112 lt_cv_file_magic_cmd=/usr/bin/file
4113 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4117 lt_cv_deplibs_check_method=unknown
4121 lt_cv_file_magic_cmd=/usr/bin/file
4122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4123 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4126 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4130 osf3* | osf4* | osf5*)
4131 # this will be overridden with pass_all, but let us keep it just in case
4132 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4133 lt_cv_file_magic_test_file=/shlib/libc.so
4134 lt_cv_deplibs_check_method=pass_all
4138 lt_cv_deplibs_check_method=pass_all
4142 lt_cv_deplibs_check_method=pass_all
4143 lt_cv_file_magic_test_file=/lib/libc.so
4146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4147 case $host_vendor in
4149 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]'
4150 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4153 lt_cv_deplibs_check_method=pass_all
4156 lt_cv_file_magic_cmd='/bin/file'
4157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4160 lt_cv_file_magic_cmd='/bin/file'
4161 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4162 lt_cv_file_magic_test_file=/lib/libc.so
4165 lt_cv_deplibs_check_method=pass_all
4170 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4171 lt_cv_deplibs_check_method=pass_all
4176 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4177 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4178 file_magic_cmd=$lt_cv_file_magic_cmd
4179 deplibs_check_method=$lt_cv_deplibs_check_method
4180 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4185 # If no C compiler was specified, use CC.
4188 # Allow CC to be a program name with arguments.
4191 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4192 if test "${enable_libtool_lock+set}" = set; then
4193 enableval="$enable_libtool_lock"
4196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4198 # Some flags need to be propagated to the compiler or linker for good
4202 # Find out which ABI we are using.
4203 echo 'int i;' > conftest.$ac_ext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4205 (eval $ac_compile) 2>&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; then
4209 case `/usr/bin/file conftest.$ac_objext` in
4221 # Find out which ABI we are using.
4222 echo '#line 4222 "configure"' > conftest.$ac_ext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224 (eval $ac_compile) 2>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; then
4228 if test "$lt_cv_prog_gnu_ld" = yes; then
4229 case `/usr/bin/file conftest.$ac_objext` in
4231 LD="${LD-ld} -melf32bsmip"
4234 LD="${LD-ld} -melf32bmipn32"
4237 LD="${LD-ld} -melf64bmip"
4241 case `/usr/bin/file conftest.$ac_objext` in
4257 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4258 # Find out which ABI we are using.
4259 echo 'int i;' > conftest.$ac_ext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; then
4265 case "`/usr/bin/file conftest.o`" in
4269 LD="${LD-ld} -m elf_i386"
4272 LD="${LD-ld} -m elf32ppclinux"
4275 LD="${LD-ld} -m elf_s390"
4278 LD="${LD-ld} -m elf32_sparc"
4285 LD="${LD-ld} -m elf_x86_64"
4287 ppc*-*linux*|powerpc*-*linux*)
4288 LD="${LD-ld} -m elf64ppc"
4291 LD="${LD-ld} -m elf64_s390"
4294 LD="${LD-ld} -m elf64_sparc"
4304 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4305 SAVE_CFLAGS="$CFLAGS"
4306 CFLAGS="$CFLAGS -belf"
4307 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4308 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4309 if test "${lt_cv_cc_needs_belf+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4333 rm -f conftest.$ac_objext conftest$ac_exeext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335 (eval $ac_link) 2>conftest.er1
4337 grep -v '^ *+' conftest.er1 >conftest.err
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -z "$ac_c_werror_flag"
4343 || test ! -s conftest.err'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try='test -s conftest$ac_exeext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 lt_cv_cc_needs_belf=yes
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 lt_cv_cc_needs_belf=no
4362 rm -f conftest.err conftest.$ac_objext \
4363 conftest$ac_exeext conftest.$ac_ext
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4372 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4373 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4374 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4375 CFLAGS="$SAVE_CFLAGS"
4381 need_locks="$enable_libtool_lock"
4385 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4386 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4387 if test "${ac_cv_header_stdc+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 cat >conftest.$ac_ext <<_ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4409 rm -f conftest.$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>conftest.er1
4413 grep -v '^ *+' conftest.er1 >conftest.err
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_c_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_header_stdc=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_cv_header_stdc=no
4438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4440 if test $ac_cv_header_stdc = yes; then
4441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4442 cat >conftest.$ac_ext <<_ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4452 $EGREP "memchr" >/dev/null 2>&1; then
4455 ac_cv_header_stdc=no
4461 if test $ac_cv_header_stdc = yes; then
4462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4463 cat >conftest.$ac_ext <<_ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473 $EGREP "free" >/dev/null 2>&1; then
4476 ac_cv_header_stdc=no
4482 if test $ac_cv_header_stdc = yes; then
4483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4484 if test "$cross_compiling" = yes; then
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4494 #if ((' ' & 0x0FF) == 0x020)
4495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4498 # define ISLOWER(c) \
4499 (('a' <= (c) && (c) <= 'i') \
4500 || ('j' <= (c) && (c) <= 'r') \
4501 || ('s' <= (c) && (c) <= 'z'))
4502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4510 for (i = 0; i < 256; i++)
4511 if (XOR (islower (i), ISLOWER (i))
4512 || toupper (i) != TOUPPER (i))
4517 rm -f conftest$ac_exeext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519 (eval $ac_link) 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4530 echo "$as_me: program exited with status $ac_status" >&5
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4535 ac_cv_header_stdc=no
4537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4541 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4542 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4543 if test $ac_cv_header_stdc = yes; then
4545 cat >>confdefs.h <<\_ACEOF
4546 #define STDC_HEADERS 1
4551 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4561 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4562 inttypes.h stdint.h unistd.h
4564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4565 echo "$as_me:$LINENO: checking for $ac_header" >&5
4566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 cat >conftest.$ac_ext <<_ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4576 $ac_includes_default
4578 #include <$ac_header>
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4584 grep -v '^ *+' conftest.er1 >conftest.err
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 eval "$as_ac_Header=yes"
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 eval "$as_ac_Header=no"
4609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4614 cat >>confdefs.h <<_ACEOF
4615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4624 for ac_header in dlfcn.h
4626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4628 echo "$as_me:$LINENO: checking for $ac_header" >&5
4629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4636 # Is the header compilable?
4637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 $ac_includes_default
4646 #include <$ac_header>
4648 rm -f conftest.$ac_objext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650 (eval $ac_compile) 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
4657 { ac_try='test -z "$ac_c_werror_flag"
4658 || test ! -s conftest.err'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try='test -s conftest.$ac_objext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 ac_header_compiler=yes
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 ac_header_compiler=no
4677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4679 echo "${ECHO_T}$ac_header_compiler" >&6
4681 # Is the header present?
4682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4684 cat >conftest.$ac_ext <<_ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 #include <$ac_header>
4692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } >/dev/null; then
4700 if test -s conftest.err; then
4701 ac_cpp_err=$ac_c_preproc_warn_flag
4702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4709 if test -z "$ac_cpp_err"; then
4710 ac_header_preproc=yes
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4715 ac_header_preproc=no
4717 rm -f conftest.err conftest.$ac_ext
4718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4719 echo "${ECHO_T}$ac_header_preproc" >&6
4721 # So? What about this header?
4722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4728 ac_header_preproc=yes
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4745 ## ----------------------------------- ##
4746 ## Report this to llvmbugs@cs.uiuc.edu ##
4747 ## ----------------------------------- ##
4750 sed "s/^/$as_me: WARNING: /" >&2
4753 echo "$as_me:$LINENO: checking for $ac_header" >&5
4754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 eval "$as_ac_Header=\$ac_header_preproc"
4760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4765 cat >>confdefs.h <<_ACEOF
4766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4774 ac_cpp='$CXXCPP $CPPFLAGS'
4775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4778 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4779 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4780 if test -z "$CXXCPP"; then
4781 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 # Double quotes because CXXCPP needs to be expanded
4785 for CXXCPP in "$CXX -E" "/lib/cpp"
4788 for ac_cxx_preproc_warn_flag in '' yes
4790 # Use a header file that comes with gcc, so configuring glibc
4791 # with a fresh cross-compiler works.
4792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4793 # <limits.h> exists even on freestanding compilers.
4794 # On the NeXT, cc -E runs the code through the compiler's parser,
4795 # not just through cpp. "Syntax error" is here to catch this case.
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4803 # include <limits.h>
4805 # include <assert.h>
4809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4812 grep -v '^ *+' conftest.er1 >conftest.err
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } >/dev/null; then
4817 if test -s conftest.err; then
4818 ac_cpp_err=$ac_cxx_preproc_warn_flag
4819 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4826 if test -z "$ac_cpp_err"; then
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4832 # Broken: fails on valid input.
4835 rm -f conftest.err conftest.$ac_ext
4837 # OK, works on sane cases. Now check whether non-existent headers
4838 # can be detected and how.
4839 cat >conftest.$ac_ext <<_ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845 #include <ac_nonexistent.h>
4847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4850 grep -v '^ *+' conftest.er1 >conftest.err
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null; then
4855 if test -s conftest.err; then
4856 ac_cpp_err=$ac_cxx_preproc_warn_flag
4857 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4864 if test -z "$ac_cpp_err"; then
4865 # Broken: success on invalid input.
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 # Passes both tests.
4875 rm -f conftest.err conftest.$ac_ext
4878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4879 rm -f conftest.err conftest.$ac_ext
4880 if $ac_preproc_ok; then
4885 ac_cv_prog_CXXCPP=$CXXCPP
4888 CXXCPP=$ac_cv_prog_CXXCPP
4890 ac_cv_prog_CXXCPP=$CXXCPP
4892 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4893 echo "${ECHO_T}$CXXCPP" >&6
4895 for ac_cxx_preproc_warn_flag in '' yes
4897 # Use a header file that comes with gcc, so configuring glibc
4898 # with a fresh cross-compiler works.
4899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4900 # <limits.h> exists even on freestanding compilers.
4901 # On the NeXT, cc -E runs the code through the compiler's parser,
4902 # not just through cpp. "Syntax error" is here to catch this case.
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4910 # include <limits.h>
4912 # include <assert.h>
4916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_cxx_preproc_warn_flag
4926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4933 if test -z "$ac_cpp_err"; then
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 # Broken: fails on valid input.
4942 rm -f conftest.err conftest.$ac_ext
4944 # OK, works on sane cases. Now check whether non-existent headers
4945 # can be detected and how.
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #include <ac_nonexistent.h>
4954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4957 grep -v '^ *+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } >/dev/null; then
4962 if test -s conftest.err; then
4963 ac_cpp_err=$ac_cxx_preproc_warn_flag
4964 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4971 if test -z "$ac_cpp_err"; then
4972 # Broken: success on invalid input.
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 # Passes both tests.
4982 rm -f conftest.err conftest.$ac_ext
4985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4986 rm -f conftest.err conftest.$ac_ext
4987 if $ac_preproc_ok; then
4990 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4991 See \`config.log' for more details." >&5
4992 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4993 See \`config.log' for more details." >&2;}
4994 { (exit 1); exit 1; }; }
4998 ac_cpp='$CXXCPP $CPPFLAGS'
4999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5005 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5006 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5008 if test -n "$ac_tool_prefix"; then
5009 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_prog_F77+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 if test -n "$F77"; then
5019 ac_cv_prog_F77="$F77" # Let the user override the test.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 if test -n "$F77"; then
5039 echo "$as_me:$LINENO: result: $F77" >&5
5040 echo "${ECHO_T}$F77" >&6
5042 echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6
5046 test -n "$F77" && break
5049 if test -z "$F77"; then
5051 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5053 # Extract the first word of "$ac_prog", so it can be a program name with args.
5054 set dummy $ac_prog; ac_word=$2
5055 echo "$as_me:$LINENO: checking for $ac_word" >&5
5056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5057 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 if test -n "$ac_ct_F77"; then
5061 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_ac_ct_F77="$ac_prog"
5071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5080 if test -n "$ac_ct_F77"; then
5081 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5082 echo "${ECHO_T}$ac_ct_F77" >&6
5084 echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6
5088 test -n "$ac_ct_F77" && break
5095 # Provide some information about the compiler.
5096 echo "$as_me:5096:" \
5097 "checking for Fortran 77 compiler version" >&5
5098 ac_compiler=`set X $ac_compile; echo $2`
5099 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5100 (eval $ac_compiler --version </dev/null >&5) 2>&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }
5104 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5105 (eval $ac_compiler -v </dev/null >&5) 2>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }
5109 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5110 (eval $ac_compiler -V </dev/null >&5) 2>&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }
5116 # If we don't use `.F' as extension, the preprocessor is not run on the
5117 # input file. (Note that this only needs to work for GNU compilers.)
5120 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5121 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5122 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5133 rm -f conftest.$ac_objext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135 (eval $ac_compile) 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -z "$ac_f77_werror_flag"
5143 || test ! -s conftest.err'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; } &&
5149 { ac_try='test -s conftest.$ac_objext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5163 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5166 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5167 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5169 ac_test_FFLAGS=${FFLAGS+set}
5170 ac_save_FFLAGS=$FFLAGS
5172 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5173 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5174 if test "${ac_cv_prog_f77_g+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 cat >conftest.$ac_ext <<_ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185 (eval $ac_compile) 2>conftest.er1
5187 grep -v '^ *+' conftest.er1 >conftest.err
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_f77_werror_flag"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest.$ac_objext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_prog_f77_g=yes
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5215 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5216 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5217 if test "$ac_test_FFLAGS" = set; then
5218 FFLAGS=$ac_save_FFLAGS
5219 elif test $ac_cv_prog_f77_g = yes; then
5220 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5226 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5233 G77=`test $ac_compiler_gnu = yes && echo yes`
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5242 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5244 # find the maximum length of command line arguments
5245 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5246 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5247 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 # On DJGPP, this test can blow up pretty badly due to problems in libc
5256 # (any single argument exceeding 2000 bytes causes a buffer overrun
5257 # during glob expansion). Even if it were fixed, the result of this
5258 # check would be larger than it should be.
5259 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5263 # Under GNU Hurd, this test is not required because there is
5264 # no limit to the length of command line arguments.
5265 # Libtool will interpret -1 as no limit whatsoever
5266 lt_cv_sys_max_cmd_len=-1;
5270 # On Win9x/ME, this test blows up -- it succeeds, but takes
5271 # about 5 minutes as the teststring grows exponentially.
5272 # Worse, since 9x/ME are not pre-emptively multitasking,
5273 # you end up with a "frozen" computer, even though with patience
5274 # the test eventually succeeds (with a max line length of 256k).
5275 # Instead, let's just punt: use the minimum linelength reported by
5276 # all of the supported platforms: 8192 (on NT/2K/XP).
5277 lt_cv_sys_max_cmd_len=8192;
5281 # If test is not a shell built-in, we'll probably end up computing a
5282 # maximum length that is only half of the actual maximum length, but
5284 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5285 = "XX$testring") >/dev/null 2>&1 &&
5286 new_result=`expr "X$testring" : ".*" 2>&1` &&
5287 lt_cv_sys_max_cmd_len=$new_result &&
5288 test $i != 17 # 1/2 MB should be enough
5291 testring=$testring$testring
5294 # Add a significant safety factor because C++ compilers can tack on massive
5295 # amounts of additional arguments before passing them to the linker.
5296 # It appears as though 1/2 is a usable value.
5297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5303 if test -n $lt_cv_sys_max_cmd_len ; then
5304 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5305 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5307 echo "$as_me:$LINENO: result: none" >&5
5308 echo "${ECHO_T}none" >&6
5314 # Check for command to grab the raw symbol name followed by C symbol from nm.
5315 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5316 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5317 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 # These are sane defaults that work on at least a few old systems.
5322 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5324 # Character class describing NM global symbol codes.
5325 symcode='[BCDEGRST]'
5327 # Regexp to match symbols that can be accessed directly from C.
5328 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5330 # Transform the above into a raw symbol and a C symbol.
5331 symxfrm='\1 \2\3 \3'
5333 # Transform an extracted symbol line into a proper C declaration
5334 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5336 # Transform an extracted symbol line into symbol name and symbol address
5337 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5339 # Define system-specific variables.
5344 cygwin* | mingw* | pw32*)
5345 symcode='[ABCDGISTW]'
5347 hpux*) # Its linker distinguishes data from code symbols
5348 if test "$host_cpu" = ia64; then
5349 symcode='[ABCDEGRST]'
5351 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5352 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'"
5355 symcode='[BCDEGRST]'
5358 symcode='[BCDEGQRST]'
5368 # Handle CRLF in mingw tool chain
5372 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5376 # If we're using GNU nm, then use its standard symbol codes.
5377 case `$NM -V 2>&1` in
5378 *GNU* | *'with BFD'*)
5379 symcode='[ABCDGISTW]' ;;
5382 # Try without a prefix undercore, then with it.
5383 for ac_symprfx in "" "_"; do
5385 # Write the raw and C identifiers.
5386 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5388 # Check to see that the pipe works correctly.
5392 cat > conftest.$ac_ext <<EOF
5397 void nm_test_func(){}
5401 int main(){nm_test_var='a';nm_test_func();return(0);}
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; then
5409 # Now try to grab the symbols.
5411 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5412 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } && test -s "$nlist"; then
5416 # Try sorting and uniquifying the output.
5417 if sort "$nlist" | uniq > "$nlist"T; then
5418 mv -f "$nlist"T "$nlist"
5423 # Make sure that we snagged all the symbols we need.
5424 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5425 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5426 cat <<EOF > conftest.$ac_ext
5432 # Now generate the symbol file.
5433 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5435 cat <<EOF >> conftest.$ac_ext
5436 #if defined (__STDC__) && __STDC__
5437 # define lt_ptr_t void *
5439 # define lt_ptr_t char *
5443 /* The mapping between symbol names and symbols. */
5448 lt_preloaded_symbols[] =
5451 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5452 cat <<\EOF >> conftest.$ac_ext
5460 # Now try linking the two files.
5461 mv conftest.$ac_objext conftstm.$ac_objext
5462 lt_save_LIBS="$LIBS"
5463 lt_save_CFLAGS="$CFLAGS"
5464 LIBS="conftstm.$ac_objext"
5465 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5467 (eval $ac_link) 2>&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5473 LIBS="$lt_save_LIBS"
5474 CFLAGS="$lt_save_CFLAGS"
5476 echo "cannot find nm_test_func in $nlist" >&5
5479 echo "cannot find nm_test_var in $nlist" >&5
5482 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5485 echo "$progname: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5488 rm -f conftest* conftst*
5490 # Do not use the global_symbol_pipe unless it works.
5491 if test "$pipe_works" = yes; then
5494 lt_cv_sys_global_symbol_pipe=
5500 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5501 lt_cv_sys_global_symbol_to_cdecl=
5503 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5504 echo "$as_me:$LINENO: result: failed" >&5
5505 echo "${ECHO_T}failed" >&6
5507 echo "$as_me:$LINENO: result: ok" >&5
5508 echo "${ECHO_T}ok" >&6
5511 echo "$as_me:$LINENO: checking for objdir" >&5
5512 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5513 if test "${lt_cv_objdir+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 rm -f .libs 2>/dev/null
5517 mkdir .libs 2>/dev/null
5518 if test -d .libs; then
5521 # MS-DOS does not allow filenames that begin with a dot.
5524 rmdir .libs 2>/dev/null
5526 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5527 echo "${ECHO_T}$lt_cv_objdir" >&6
5528 objdir=$lt_cv_objdir
5536 # AIX sometimes has problems with the GCC collect2 program. For some
5537 # reason, if we set the COLLECT_NAMES environment variable, the problems
5538 # vanish in a puff of smoke.
5539 if test "X${COLLECT_NAMES+set}" != Xset; then
5541 export COLLECT_NAMES
5546 # Sed substitution that helps us do robust quoting. It backslashifies
5547 # metacharacters that are still active within double-quoted strings.
5548 Xsed='sed -e s/^X//'
5549 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5551 # Same as above, but do not quote variable references.
5552 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5554 # Sed substitution to delay expansion of an escaped shell variable in a
5555 # double_quote_subst'ed string.
5556 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5558 # Sed substitution to avoid accidental globbing in evaled expressions
5559 no_glob_subst='s/\*/\\\*/g'
5566 can_build_shared=yes
5568 # All known linkers require a `.a' archive for static linking (except M$VC,
5569 # which needs '.lib').
5571 ltmain="$ac_aux_dir/ltmain.sh"
5572 ofile="$default_ofile"
5573 with_gnu_ld="$lt_cv_prog_gnu_ld"
5575 if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5577 set dummy ${ac_tool_prefix}ar; ac_word=$2
5578 echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5580 if test "${ac_cv_prog_AR+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 if test -n "$AR"; then
5584 ac_cv_prog_AR="$AR" # Let the user override the test.
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_AR="${ac_tool_prefix}ar"
5594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 if test -n "$AR"; then
5604 echo "$as_me:$LINENO: result: $AR" >&5
5605 echo "${ECHO_T}$AR" >&6
5607 echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6
5612 if test -z "$ac_cv_prog_AR"; then
5614 # Extract the first word of "ar", so it can be a program name with args.
5615 set dummy ar; ac_word=$2
5616 echo "$as_me:$LINENO: checking for $ac_word" >&5
5617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5618 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 if test -n "$ac_ct_AR"; then
5622 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631 ac_cv_prog_ac_ct_AR="ar"
5632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5641 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5642 if test -n "$ac_ct_AR"; then
5643 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5644 echo "${ECHO_T}$ac_ct_AR" >&6
5646 echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6
5655 if test -n "$ac_tool_prefix"; then
5656 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5658 echo "$as_me:$LINENO: checking for $ac_word" >&5
5659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660 if test "${ac_cv_prog_RANLIB+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 if test -n "$RANLIB"; then
5664 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 RANLIB=$ac_cv_prog_RANLIB
5683 if test -n "$RANLIB"; then
5684 echo "$as_me:$LINENO: result: $RANLIB" >&5
5685 echo "${ECHO_T}$RANLIB" >&6
5687 echo "$as_me:$LINENO: result: no" >&5
5688 echo "${ECHO_T}no" >&6
5692 if test -z "$ac_cv_prog_RANLIB"; then
5693 ac_ct_RANLIB=$RANLIB
5694 # Extract the first word of "ranlib", so it can be a program name with args.
5695 set dummy ranlib; ac_word=$2
5696 echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 if test -n "$ac_ct_RANLIB"; then
5702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_ac_ct_RANLIB="ranlib"
5712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5722 if test -n "$ac_ct_RANLIB"; then
5723 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5724 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5726 echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6
5730 RANLIB=$ac_ct_RANLIB
5732 RANLIB="$ac_cv_prog_RANLIB"
5735 if test -n "$ac_tool_prefix"; then
5736 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5737 set dummy ${ac_tool_prefix}strip; ac_word=$2
5738 echo "$as_me:$LINENO: checking for $ac_word" >&5
5739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740 if test "${ac_cv_prog_STRIP+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 if test -n "$STRIP"; then
5744 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 STRIP=$ac_cv_prog_STRIP
5763 if test -n "$STRIP"; then
5764 echo "$as_me:$LINENO: result: $STRIP" >&5
5765 echo "${ECHO_T}$STRIP" >&6
5767 echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6
5772 if test -z "$ac_cv_prog_STRIP"; then
5774 # Extract the first word of "strip", so it can be a program name with args.
5775 set dummy strip; ac_word=$2
5776 echo "$as_me:$LINENO: checking for $ac_word" >&5
5777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 if test -n "$ac_ct_STRIP"; then
5782 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_ac_ct_STRIP="strip"
5792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5801 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5802 if test -n "$ac_ct_STRIP"; then
5803 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5804 echo "${ECHO_T}$ac_ct_STRIP" >&6
5806 echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5812 STRIP="$ac_cv_prog_STRIP"
5817 old_CFLAGS="$CFLAGS"
5819 # Set sane defaults for various variables
5820 test -z "$AR" && AR=ar
5821 test -z "$AR_FLAGS" && AR_FLAGS=cru
5822 test -z "$AS" && AS=as
5823 test -z "$CC" && CC=cc
5824 test -z "$LTCC" && LTCC=$CC
5825 test -z "$DLLTOOL" && DLLTOOL=dlltool
5826 test -z "$LD" && LD=ld
5827 test -z "$LN_S" && LN_S="ln -s"
5828 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5829 test -z "$NM" && NM=nm
5830 test -z "$SED" && SED=sed
5831 test -z "$OBJDUMP" && OBJDUMP=objdump
5832 test -z "$RANLIB" && RANLIB=:
5833 test -z "$STRIP" && STRIP=:
5834 test -z "$ac_objext" && ac_objext=o
5836 # Determine commands to create old-style static archives.
5837 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5838 old_postinstall_cmds='chmod 644 $oldlib'
5839 old_postuninstall_cmds=
5841 if test -n "$RANLIB"; then
5844 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5847 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5850 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5853 # Only perform the check for file, if the check method requires it
5854 case $deplibs_check_method in
5856 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5857 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5858 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5859 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5867 lt_save_MAGIC_CMD="$MAGIC_CMD"
5868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5869 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5870 for ac_dir in $ac_dummy; do
5872 test -z "$ac_dir" && ac_dir=.
5873 if test -f $ac_dir/${ac_tool_prefix}file; then
5874 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5875 if test -n "$file_magic_test_file"; then
5876 case $deplibs_check_method in
5878 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5881 $EGREP "$file_magic_regex" > /dev/null; then
5886 *** Warning: the command libtool uses to detect shared libraries,
5887 *** $file_magic_cmd, produces output that libtool cannot recognize.
5888 *** The result is that libtool may fail to recognize shared libraries
5889 *** as such. This will affect the creation of libtool libraries that
5890 *** depend on shared libraries, but programs linked with such libtool
5891 *** libraries will work regardless of this problem. Nevertheless, you
5892 *** may want to report the problem to your system manager and/or to
5893 *** bug-libtool@gnu.org
5903 MAGIC_CMD="$lt_save_MAGIC_CMD"
5908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5909 if test -n "$MAGIC_CMD"; then
5910 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5911 echo "${ECHO_T}$MAGIC_CMD" >&6
5913 echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6
5917 if test -z "$lt_cv_path_MAGIC_CMD"; then
5918 if test -n "$ac_tool_prefix"; then
5919 echo "$as_me:$LINENO: checking for file" >&5
5920 echo $ECHO_N "checking for file... $ECHO_C" >&6
5921 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5929 lt_save_MAGIC_CMD="$MAGIC_CMD"
5930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5932 for ac_dir in $ac_dummy; do
5934 test -z "$ac_dir" && ac_dir=.
5935 if test -f $ac_dir/file; then
5936 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5937 if test -n "$file_magic_test_file"; then
5938 case $deplibs_check_method in
5940 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5943 $EGREP "$file_magic_regex" > /dev/null; then
5948 *** Warning: the command libtool uses to detect shared libraries,
5949 *** $file_magic_cmd, produces output that libtool cannot recognize.
5950 *** The result is that libtool may fail to recognize shared libraries
5951 *** as such. This will affect the creation of libtool libraries that
5952 *** depend on shared libraries, but programs linked with such libtool
5953 *** libraries will work regardless of this problem. Nevertheless, you
5954 *** may want to report the problem to your system manager and/or to
5955 *** bug-libtool@gnu.org
5965 MAGIC_CMD="$lt_save_MAGIC_CMD"
5970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5971 if test -n "$MAGIC_CMD"; then
5972 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5973 echo "${ECHO_T}$MAGIC_CMD" >&6
5975 echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6
5991 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5992 if test "${enable_libtool_lock+set}" = set; then
5993 enableval="$enable_libtool_lock"
5996 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5999 # Check whether --with-pic or --without-pic was given.
6000 if test "${with_pic+set}" = set; then
6006 test -z "$pic_mode" && pic_mode=default
6008 # Use C for the default configuration in the libtool script
6012 ac_cpp='$CPP $CPPFLAGS'
6013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018 # Source file extension for C test sources.
6021 # Object file extension for compiled C test sources.
6025 # Code to be used in simple compile tests
6026 lt_simple_compile_test_code="int some_variable = 0;\n"
6028 # Code to be used in simple link tests
6029 lt_simple_link_test_code='int main(){return(0);}\n'
6032 # If no C compiler was specified, use CC.
6035 # Allow CC to be a program name with arguments.
6040 # Check for any special shared library compilation flags.
6043 if test "$GCC" = no; then
6046 lt_prog_cc_shlib='-belf'
6050 if test -n "$lt_prog_cc_shlib"; then
6051 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6052 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6053 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6055 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6056 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6057 lt_cv_prog_cc_can_build_shared=no
6063 # Check to make sure the static flag actually works.
6065 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6066 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6067 if test "${lt_prog_compiler_static_works+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 lt_prog_compiler_static_works=no
6071 save_LDFLAGS="$LDFLAGS"
6072 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6073 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6075 # The compiler can only warn and ignore the option if not recognized
6076 # So say no if there are warnings
6077 if test -s conftest.err; then
6078 # Append any errors to the config.log.
6079 cat conftest.err 1>&5
6081 lt_prog_compiler_static_works=yes
6085 LDFLAGS="$save_LDFLAGS"
6088 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6089 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6091 if test x"$lt_prog_compiler_static_works" = xyes; then
6094 lt_prog_compiler_static=
6100 ## There is no encapsulation within the following macros, do not change
6101 ## the running order or otherwise move them around unless you know exactly
6102 ## what you are doing...
6104 lt_prog_compiler_no_builtin_flag=
6106 if test "$GCC" = yes; then
6107 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6109 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6110 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6111 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 lt_cv_prog_compiler_rtti_exceptions=no
6115 ac_outfile=conftest.$ac_objext
6116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6117 lt_compiler_flag="-fno-rtti -fno-exceptions"
6118 # Insert the option either (1) after the last *FLAGS variable, or
6119 # (2) before a word containing "conftest.", or (3) at the end.
6120 # Note that $ac_compile itself does not contain backslashes and begins
6121 # with a dollar sign (not a hyphen), so the echo should work correctly.
6122 # The option is referenced via a variable to avoid confusing sed.
6123 lt_compile=`echo "$ac_compile" | $SED \
6124 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6126 -e 's:$: $lt_compiler_flag:'`
6127 (eval echo "\"\$as_me:6127: $lt_compile\"" >&5)
6128 (eval "$lt_compile" 2>conftest.err)
6130 cat conftest.err >&5
6131 echo "$as_me:6131: \$? = $ac_status" >&5
6132 if (exit $ac_status) && test -s "$ac_outfile"; then
6133 # The compiler can only warn and ignore the option if not recognized
6134 # So say no if there are warnings
6135 if test ! -s conftest.err; then
6136 lt_cv_prog_compiler_rtti_exceptions=yes
6142 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6143 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6145 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6146 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6153 lt_prog_compiler_wl=
6154 lt_prog_compiler_pic=
6155 lt_prog_compiler_static=
6157 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6158 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6160 if test "$GCC" = yes; then
6161 lt_prog_compiler_wl='-Wl,'
6162 lt_prog_compiler_static='-static'
6166 # All AIX code is PIC.
6167 if test "$host_cpu" = ia64; then
6168 # AIX 5 now supports IA64 processor
6169 lt_prog_compiler_static='-Bstatic'
6174 # FIXME: we need at least 68020 code to build shared libraries, but
6175 # adding the `-m68020' flag to GCC prevents building anything better,
6177 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6180 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6181 # PIC is the default for these OSes.
6184 mingw* | pw32* | os2*)
6185 # This hack is so that the source file can tell whether it is being
6186 # built for inclusion in a dll (and should export symbols for example).
6187 lt_prog_compiler_pic='-DDLL_EXPORT'
6190 darwin* | rhapsody*)
6191 # PIC is the default on this platform
6192 # Common symbols not allowed in MH_DYLIB files
6193 lt_prog_compiler_pic='-fno-common'
6197 # Just because we use GCC doesn't mean we suddenly get shared libraries
6198 # on systems that don't support them.
6199 lt_prog_compiler_can_build_shared=no
6204 if test -d /usr/nec; then
6205 lt_prog_compiler_pic=-Kconform_pic
6210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6217 lt_prog_compiler_pic='-fPIC'
6223 lt_prog_compiler_pic='-fPIC'
6227 # PORTME Check for flag to pass linker flags through the system compiler.
6230 lt_prog_compiler_wl='-Wl,'
6231 if test "$host_cpu" = ia64; then
6232 # AIX 5 now supports IA64 processor
6233 lt_prog_compiler_static='-Bstatic'
6235 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6239 mingw* | pw32* | os2*)
6240 # This hack is so that the source file can tell whether it is being
6241 # built for inclusion in a dll (and should export symbols for example).
6242 lt_prog_compiler_pic='-DDLL_EXPORT'
6245 hpux9* | hpux10* | hpux11*)
6246 lt_prog_compiler_wl='-Wl,'
6247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6254 lt_prog_compiler_pic='+Z'
6257 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6258 lt_prog_compiler_static='${wl}-a ${wl}archive'
6261 irix5* | irix6* | nonstopux*)
6262 lt_prog_compiler_wl='-Wl,'
6263 # PIC (with -KPIC) is the default.
6264 lt_prog_compiler_static='-non_shared'
6268 lt_prog_compiler_pic='-KPIC'
6269 lt_prog_compiler_static='-Bstatic'
6275 lt_prog_compiler_wl='-Wl,'
6276 lt_prog_compiler_pic='-KPIC'
6277 lt_prog_compiler_static='-static'
6280 lt_prog_compiler_wl='-Wl,'
6281 # All Alpha code is PIC.
6282 lt_prog_compiler_static='-non_shared'
6287 osf3* | osf4* | osf5*)
6288 lt_prog_compiler_wl='-Wl,'
6289 # All OSF/1 code is PIC.
6290 lt_prog_compiler_static='-non_shared'
6294 lt_prog_compiler_pic='-Kpic'
6295 lt_prog_compiler_static='-dn'
6299 lt_prog_compiler_wl='-Wl,'
6300 lt_prog_compiler_pic='-KPIC'
6301 lt_prog_compiler_static='-Bstatic'
6305 lt_prog_compiler_wl='-Qoption ld '
6306 lt_prog_compiler_pic='-PIC'
6307 lt_prog_compiler_static='-Bstatic'
6310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6311 lt_prog_compiler_wl='-Wl,'
6312 lt_prog_compiler_pic='-KPIC'
6313 lt_prog_compiler_static='-Bstatic'
6317 if test -d /usr/nec ;then
6318 lt_prog_compiler_pic='-Kconform_pic'
6319 lt_prog_compiler_static='-Bstatic'
6324 lt_prog_compiler_pic='-pic'
6325 lt_prog_compiler_static='-Bstatic'
6329 lt_prog_compiler_can_build_shared=no
6334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6335 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6338 # Check to make sure the PIC flag actually works.
6340 if test -n "$lt_prog_compiler_pic"; then
6341 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6342 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6343 if test "${lt_prog_compiler_pic_works+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 lt_prog_compiler_pic_works=no
6347 ac_outfile=conftest.$ac_objext
6348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6349 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6350 # Insert the option either (1) after the last *FLAGS variable, or
6351 # (2) before a word containing "conftest.", or (3) at the end.
6352 # Note that $ac_compile itself does not contain backslashes and begins
6353 # with a dollar sign (not a hyphen), so the echo should work correctly.
6354 # The option is referenced via a variable to avoid confusing sed.
6355 lt_compile=`echo "$ac_compile" | $SED \
6356 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6358 -e 's:$: $lt_compiler_flag:'`
6359 (eval echo "\"\$as_me:6359: $lt_compile\"" >&5)
6360 (eval "$lt_compile" 2>conftest.err)
6362 cat conftest.err >&5
6363 echo "$as_me:6363: \$? = $ac_status" >&5
6364 if (exit $ac_status) && test -s "$ac_outfile"; then
6365 # The compiler can only warn and ignore the option if not recognized
6366 # So say no if there are warnings
6367 if test ! -s conftest.err; then
6368 lt_prog_compiler_pic_works=yes
6374 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6375 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6377 if test x"$lt_prog_compiler_pic_works" = xyes; then
6378 case $lt_prog_compiler_pic in
6380 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6383 lt_prog_compiler_pic=
6384 lt_prog_compiler_can_build_shared=no
6389 # For platforms which do not support PIC, -DPIC is meaningless:
6391 lt_prog_compiler_pic=
6394 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6398 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6399 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6400 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 lt_cv_prog_compiler_c_o=no
6404 $rm -r conftest 2>/dev/null
6408 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6410 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6411 # that will create temporary files in the current directory regardless of
6412 # the output directory. Thus, making CWD read-only will cause this test
6413 # to fail, enabling locking or at least warning the user not to do parallel
6417 lt_compiler_flag="-o out/conftest2.$ac_objext"
6418 # Insert the option either (1) after the last *FLAGS variable, or
6419 # (2) before a word containing "conftest.", or (3) at the end.
6420 # Note that $ac_compile itself does not contain backslashes and begins
6421 # with a dollar sign (not a hyphen), so the echo should work correctly.
6422 lt_compile=`echo "$ac_compile" | $SED \
6423 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6425 -e 's:$: $lt_compiler_flag:'`
6426 (eval echo "\"\$as_me:6426: $lt_compile\"" >&5)
6427 (eval "$lt_compile" 2>out/conftest.err)
6429 cat out/conftest.err >&5
6430 echo "$as_me:6430: \$? = $ac_status" >&5
6431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6433 # The compiler can only warn and ignore the option if not recognized
6434 # So say no if there are warnings
6435 if test ! -s out/conftest.err; then
6436 lt_cv_prog_compiler_c_o=yes
6447 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6448 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6451 hard_links="nottested"
6452 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6453 # do not overwrite the value of need_locks provided by the user
6454 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6455 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6460 ln conftest.a conftest.b 2>&5 || hard_links=no
6461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6462 echo "$as_me:$LINENO: result: $hard_links" >&5
6463 echo "${ECHO_T}$hard_links" >&6
6464 if test "$hard_links" = no; then
6465 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6466 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6473 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6474 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6477 allow_undefined_flag=
6478 enable_shared_with_static_runtimes=no
6480 archive_expsym_cmds=
6481 old_archive_From_new_cmds=
6482 old_archive_from_expsyms_cmds=
6483 export_dynamic_flag_spec=
6484 whole_archive_flag_spec=
6485 thread_safe_flag_spec=
6486 hardcode_libdir_flag_spec=
6487 hardcode_libdir_flag_spec_ld=
6488 hardcode_libdir_separator=
6491 hardcode_shlibpath_var=unsupported
6492 link_all_deplibs=unknown
6493 hardcode_automatic=no
6496 always_export_symbols=no
6497 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6498 # include_expsyms should be a list of space-separated symbols to be *always*
6499 # included in the symbol list
6501 # exclude_expsyms can be an extended regexp of symbols to exclude
6502 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6503 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6504 # as well as any symbol that contains `d'.
6505 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6507 # platforms (ab)use it in PIC code, but their linkers get confused if
6508 # the symbol is explicitly referenced. Since portable code cannot
6509 # rely on this symbol name, it's probably fine to never include it in
6510 # preloaded symbol tables.
6511 extract_expsyms_cmds=
6514 cygwin* | mingw* | pw32*)
6515 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6516 # When not using gcc, we currently assume that we are using
6517 # Microsoft Visual C++.
6518 if test "$GCC" != yes; then
6528 if test "$with_gnu_ld" = yes; then
6529 # If archive_cmds runs LD, not CC, wlarc should be empty
6532 # See if GNU ld supports shared libraries.
6534 aix3* | aix4* | aix5*)
6535 # On AIX/PPC, the GNU linker is very broken
6536 if test "$host_cpu" != ia64; then
6540 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6541 *** to be unable to reliably create shared libraries on AIX.
6542 *** Therefore, libtool is disabling shared libraries support. If you
6543 *** really care for shared libraries, you may want to modify your PATH
6544 *** so that a non-GNU linker is found, and then restart.
6551 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)'
6552 hardcode_libdir_flag_spec='-L$libdir'
6553 hardcode_minus_L=yes
6555 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6556 # that the semantics of dynamic libraries on AmigaOS, at least up
6557 # to version 4, is to share data among multiple programs linked
6558 # with the same dynamic library. Since this doesn't match the
6559 # behavior of shared libraries on other platforms, we can't use
6565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6566 allow_undefined_flag=unsupported
6567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6568 # support --undefined. This deserves some investigation. FIXME
6569 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6575 cygwin* | mingw* | pw32*)
6576 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6577 # as there is no search path for DLLs.
6578 hardcode_libdir_flag_spec='-L$libdir'
6579 allow_undefined_flag=unsupported
6580 always_export_symbols=no
6581 enable_shared_with_static_runtimes=yes
6582 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6584 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6586 # If the export-symbols file already is a .def file (1st line
6587 # is EXPORTS), use it as is; otherwise, prepend...
6588 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6589 cp $export_symbols $output_objdir/$soname.def;
6591 echo EXPORTS > $output_objdir/$soname.def;
6592 cat $export_symbols >> $output_objdir/$soname.def;
6594 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6602 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6606 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6611 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6615 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6616 *** create shared libraries on Solaris systems. Therefore, libtool
6617 *** is disabling shared libraries support. We urge you to upgrade GNU
6618 *** binutils to release 2.9.1 or newer. Another option is to modify
6619 *** your PATH or compiler configuration so that the native linker is
6620 *** used, and then restart.
6623 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6632 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6635 hardcode_shlibpath_var=no
6639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6648 if test "$ld_shlibs" = yes; then
6649 runpath_var=LD_RUN_PATH
6650 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6651 export_dynamic_flag_spec='${wl}--export-dynamic'
6652 # ancient GNU ld didn't support --whole-archive et. al.
6653 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6654 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6656 whole_archive_flag_spec=
6660 # PORTME fill in a description of your system's linker (not GNU ld)
6663 allow_undefined_flag=unsupported
6664 always_export_symbols=yes
6665 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'
6666 # Note: this linker hardcodes the directories in LIBPATH if there
6667 # are no directories specified by -L.
6668 hardcode_minus_L=yes
6669 if test "$GCC" = yes && test -z "$link_static_flag"; then
6670 # Neither direct hardcoding nor static linking is supported with a
6672 hardcode_direct=unsupported
6677 if test "$host_cpu" = ia64; then
6678 # On IA64, the linker does run time linking by default, so we don't
6679 # have to do anything special.
6680 aix_use_runtimelinking=no
6681 exp_sym_flag='-Bexport'
6684 # If we're using GNU nm, then we don't want the "-C" option.
6685 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6686 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6687 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'
6689 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'
6691 aix_use_runtimelinking=no
6693 # Test if we are trying to use run time linking or normal
6694 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6695 # need to do runtime linking.
6696 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6697 for ld_flag in $LDFLAGS; do
6698 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6699 aix_use_runtimelinking=yes
6705 exp_sym_flag='-bexport'
6706 no_entry_flag='-bnoentry'
6709 # When large executables or shared objects are built, AIX ld can
6710 # have problems creating the table of contents. If linking a library
6711 # or program results in "error TOC overflow" add -mminimal-toc to
6712 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6713 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6717 hardcode_libdir_separator=':'
6718 link_all_deplibs=yes
6720 if test "$GCC" = yes; then
6721 case $host_os in aix4.012|aix4.012.*)
6722 # We only want to do this on AIX 4.2 and lower, the check
6723 # below for broken collect2 doesn't work under 4.3+
6724 collect2name=`${CC} -print-prog-name=collect2`
6725 if test -f "$collect2name" && \
6726 strings "$collect2name" | grep resolve_lib_name >/dev/null
6728 # We have reworked collect2
6731 # We have old collect2
6732 hardcode_direct=unsupported
6733 # It fails to find uninstalled libraries when the uninstalled
6734 # path is not listed in the libpath. Setting hardcode_minus_L
6735 # to unsupported forces relinking
6736 hardcode_minus_L=yes
6737 hardcode_libdir_flag_spec='-L$libdir'
6738 hardcode_libdir_separator=
6741 shared_flag='-shared'
6744 if test "$host_cpu" = ia64; then
6745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6746 # chokes on -Wl,-G. The following line is correct:
6749 if test "$aix_use_runtimelinking" = yes; then
6750 shared_flag='${wl}-G'
6752 shared_flag='${wl}-bM:SRE'
6757 # It seems that -bexpall does not export symbols beginning with
6758 # underscore (_), so it is better to generate a list of symbols to export.
6759 always_export_symbols=yes
6760 if test "$aix_use_runtimelinking" = yes; then
6761 # Warning - without using the other runtime loading flags (-brtl),
6762 # -berok will link without error, but may produce a broken library.
6763 allow_undefined_flag='-berok'
6764 # Determine the default libpath from the value encoded in an empty executable.
6765 cat >conftest.$ac_ext <<_ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6780 rm -f conftest.$ac_objext conftest$ac_exeext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782 (eval $ac_link) 2>conftest.er1
6784 grep -v '^ *+' conftest.er1 >conftest.err
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -z "$ac_c_werror_flag"
6790 || test ! -s conftest.err'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; } &&
6796 { ac_try='test -s conftest$ac_exeext'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; }; then
6803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6805 # Check for a 64-bit object if we didn't find anything.
6806 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; }
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6813 rm -f conftest.err conftest.$ac_objext \
6814 conftest$ac_exeext conftest.$ac_ext
6815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6817 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6818 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"
6820 if test "$host_cpu" = ia64; then
6821 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6822 allow_undefined_flag="-z nodefs"
6823 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"
6825 # Determine the default libpath from the value encoded in an empty executable.
6826 cat >conftest.$ac_ext <<_ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6841 rm -f conftest.$ac_objext conftest$ac_exeext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6843 (eval $ac_link) 2>conftest.er1
6845 grep -v '^ *+' conftest.er1 >conftest.err
6847 cat conftest.err >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } &&
6850 { ac_try='test -z "$ac_c_werror_flag"
6851 || test ! -s conftest.err'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; } &&
6857 { ac_try='test -s conftest$ac_exeext'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6866 # Check for a 64-bit object if we didn't find anything.
6867 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; }
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6874 rm -f conftest.err conftest.$ac_objext \
6875 conftest$ac_exeext conftest.$ac_ext
6876 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6878 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6879 # Warning - without using the other run time loading flags,
6880 # -berok will link without error, but may produce a broken library.
6881 no_undefined_flag=' ${wl}-bernotok'
6882 allow_undefined_flag=' ${wl}-berok'
6883 # -bexpall does not export symbols beginning with underscore (_)
6884 always_export_symbols=yes
6885 # Exported symbols can be pulled into shared objects from archives
6886 whole_archive_flag_spec=' '
6887 archive_cmds_need_lc=yes
6888 # This is similar to how AIX traditionally builds it's shared libraries.
6889 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'
6895 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)'
6896 hardcode_libdir_flag_spec='-L$libdir'
6897 hardcode_minus_L=yes
6898 # see comment about different semantics on the GNU ld section
6903 export_dynamic_flag_spec=-rdynamic
6906 cygwin* | mingw* | pw32*)
6907 # When not using gcc, we currently assume that we are using
6908 # Microsoft Visual C++.
6909 # hardcode_libdir_flag_spec is actually meaningless, as there is
6910 # no search path for DLLs.
6911 hardcode_libdir_flag_spec=' '
6912 allow_undefined_flag=unsupported
6913 # Tell ltmain to make .lib files, not .a files.
6915 # Tell ltmain to make .dll files, not .so files.
6917 # FIXME: Setting linknames here is a bad hack.
6918 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6919 # The linker will automatically build a .lib file if we build a DLL.
6920 old_archive_From_new_cmds='true'
6921 # FIXME: Should let the user specify the lib program.
6922 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6923 fix_srcfile_path='`cygpath -w "$srcfile"`'
6924 enable_shared_with_static_runtimes=yes
6927 darwin* | rhapsody*)
6928 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6929 archive_cmds_need_lc=no
6931 rhapsody* | darwin1.[012])
6932 allow_undefined_flag='-undefined suppress'
6935 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6938 # FIXME: Relying on posixy $() will cause problems for
6939 # cross-compilation, but unfortunately the echo tests do not
6940 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6941 # `"' quotes if we put them in here... so don't!
6942 lt_int_apple_cc_single_mod=no
6943 output_verbose_link_cmd='echo'
6944 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6945 lt_int_apple_cc_single_mod=yes
6947 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6948 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6950 archive_cmds='$CC -r ${wl}-bind_at_load -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'
6952 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6953 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6954 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6955 archive_expsym_cmds='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}'
6957 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6959 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6961 hardcode_automatic=yes
6962 hardcode_shlibpath_var=unsupported
6963 whole_archive_flag_spec='-all_load $convenience'
6964 link_all_deplibs=yes
6969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6970 hardcode_libdir_flag_spec='-L$libdir'
6971 hardcode_shlibpath_var=no
6978 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6979 # support. Future versions do this automatically, but an explicit c++rt0.o
6980 # does not break anything, and helps significantly (at the cost of a little
6983 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6984 hardcode_libdir_flag_spec='-R$libdir'
6986 hardcode_shlibpath_var=no
6989 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6993 hardcode_minus_L=yes
6994 hardcode_shlibpath_var=no
6997 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6999 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7000 hardcode_libdir_flag_spec='-R$libdir'
7002 hardcode_shlibpath_var=no
7006 if test "$GCC" = yes; then
7007 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'
7009 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'
7011 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7012 hardcode_libdir_separator=:
7015 # hardcode_minus_L: Not really in the search PATH,
7016 # but as the default location of the library.
7017 hardcode_minus_L=yes
7018 export_dynamic_flag_spec='${wl}-E'
7022 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7025 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7028 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7034 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7037 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7041 if test "$with_gnu_ld" = no; then
7044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7045 hardcode_libdir_flag_spec_ld='+b $libdir'
7046 hardcode_libdir_separator=:
7048 hardcode_shlibpath_var=no
7051 hardcode_libdir_flag_spec='-L$libdir'
7053 hardcode_shlibpath_var=no
7055 # hardcode_minus_L: Not really in the search PATH,
7056 # but as the default location of the library.
7057 hardcode_minus_L=yes
7060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7061 hardcode_libdir_separator=:
7063 export_dynamic_flag_spec='${wl}-E'
7065 # hardcode_minus_L: Not really in the search PATH,
7066 # but as the default location of the library.
7067 hardcode_minus_L=yes
7073 irix5* | irix6* | nonstopux*)
7074 if test "$GCC" = yes; then
7075 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'
7077 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'
7078 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7080 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7081 hardcode_libdir_separator=:
7082 link_all_deplibs=yes
7086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7089 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7091 hardcode_libdir_flag_spec='-R$libdir'
7093 hardcode_shlibpath_var=no
7097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7100 hardcode_libdir_separator=:
7101 hardcode_shlibpath_var=no
7106 hardcode_shlibpath_var=no
7107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7110 export_dynamic_flag_spec='${wl}-E'
7113 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7115 hardcode_libdir_flag_spec='-R$libdir'
7118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7119 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7126 hardcode_libdir_flag_spec='-L$libdir'
7127 hardcode_minus_L=yes
7128 allow_undefined_flag=unsupported
7129 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'
7130 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7134 if test "$GCC" = yes; then
7135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7136 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'
7138 allow_undefined_flag=' -expect_unresolved \*'
7139 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'
7141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7142 hardcode_libdir_separator=:
7145 osf4* | osf5*) # as osf3* with the addition of -msym flag
7146 if test "$GCC" = yes; then
7147 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7148 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'
7149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7151 allow_undefined_flag=' -expect_unresolved \*'
7152 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'
7153 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7154 $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'
7156 # Both c and cxx compiler support -rpath directly
7157 hardcode_libdir_flag_spec='-rpath $libdir'
7159 hardcode_libdir_separator=:
7163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7164 hardcode_shlibpath_var=no
7165 export_dynamic_flag_spec='${wl}-Bexport'
7166 runpath_var=LD_RUN_PATH
7167 hardcode_runpath_var=yes
7171 no_undefined_flag=' -z text'
7172 if test "$GCC" = yes; then
7173 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7174 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7175 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7177 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7178 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7179 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7181 hardcode_libdir_flag_spec='-R$libdir'
7182 hardcode_shlibpath_var=no
7184 solaris2.[0-5] | solaris2.[0-5].*) ;;
7185 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7186 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7188 link_all_deplibs=yes
7192 if test "x$host_vendor" = xsequent; then
7193 # Use $CC to link under sequent, because it throws in some extra .o
7194 # files that make .init and .fini sections work.
7195 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7197 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7199 hardcode_libdir_flag_spec='-L$libdir'
7201 hardcode_minus_L=yes
7202 hardcode_shlibpath_var=no
7206 case $host_vendor in
7208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7209 hardcode_direct=yes # is this really true???
7212 ## LD is ld it makes a PLAMLIB
7213 ## CC just makes a GrossModule.
7214 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7215 reload_cmds='$CC -r -o $output$reload_objs'
7219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7220 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7223 runpath_var='LD_RUN_PATH'
7224 hardcode_shlibpath_var=no
7228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7229 hardcode_shlibpath_var=no
7230 export_dynamic_flag_spec='-Bexport'
7234 if test -d /usr/nec; then
7235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7236 hardcode_shlibpath_var=no
7237 runpath_var=LD_RUN_PATH
7238 hardcode_runpath_var=yes
7244 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7247 hardcode_shlibpath_var=no
7248 hardcode_runpath_var=yes
7249 runpath_var=LD_RUN_PATH
7252 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7253 no_undefined_flag='${wl}-z ${wl}text'
7254 if test "$GCC" = yes; then
7255 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7257 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7259 runpath_var='LD_RUN_PATH'
7260 hardcode_shlibpath_var=no
7264 no_undefined_flag=' -z text'
7265 # $CC -shared without GNU ld will not create a library from C++
7266 # object files and a static libstdc++, better avoid it by now
7267 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7269 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7270 hardcode_libdir_flag_spec=
7271 hardcode_shlibpath_var=no
7272 runpath_var='LD_RUN_PATH'
7276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277 hardcode_libdir_flag_spec='-L$libdir'
7278 hardcode_shlibpath_var=no
7287 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7288 echo "${ECHO_T}$ld_shlibs" >&6
7289 test "$ld_shlibs" = no && can_build_shared=no
7291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7292 if test "$GCC" = yes; then
7293 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7297 # Do we need to explicitly link libc?
7299 case "x$archive_cmds_need_lc" in
7301 # Assume -lc should be added
7302 archive_cmds_need_lc=yes
7304 if test "$enable_shared" = yes && test "$GCC" = yes; then
7305 case $archive_cmds in
7307 # FIXME: we may have to deal with multi-command sequences.
7310 # Test whether the compiler implicitly links with -lc since on some
7311 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7312 # to ld, don't add -lc before -lgcc.
7313 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7314 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7319 (eval $ac_compile) 2>&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } 2>conftest.err; then
7325 libobjs=conftest.$ac_objext
7327 wl=$lt_prog_compiler_wl
7333 lt_save_allow_undefined_flag=$allow_undefined_flag
7334 allow_undefined_flag=
7335 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7336 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }
7341 archive_cmds_need_lc=no
7343 archive_cmds_need_lc=yes
7345 allow_undefined_flag=$lt_save_allow_undefined_flag
7347 cat conftest.err 1>&5
7350 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7351 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7358 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7359 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7361 if test -n "$hardcode_libdir_flag_spec" || \
7362 test -n "$runpath_var " || \
7363 test "X$hardcode_automatic"="Xyes" ; then
7365 # We can hardcode non-existant directories.
7366 if test "$hardcode_direct" != no &&
7367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7368 # have to relink, otherwise we might link with an installed library
7369 # when we should be linking with a yet-to-be-installed one
7370 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7371 test "$hardcode_minus_L" != no; then
7372 # Linking always hardcodes the temporary library directory.
7373 hardcode_action=relink
7375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7376 hardcode_action=immediate
7379 # We cannot hardcode anything, or else we can only hardcode existing
7381 hardcode_action=unsupported
7383 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7384 echo "${ECHO_T}$hardcode_action" >&6
7386 if test "$hardcode_action" = relink; then
7387 # Fast installation is not supported
7388 enable_fast_install=no
7389 elif test "$shlibpath_overrides_runpath" = yes ||
7390 test "$enable_shared" = no; then
7391 # Fast installation is not necessary
7392 enable_fast_install=needless
7397 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7398 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7399 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7402 echo "$as_me:$LINENO: result: yes" >&5
7403 echo "${ECHO_T}yes" >&6
7405 # FIXME - insert some real tests, host_os isn't really good enough
7408 if test -n "$STRIP" ; then
7409 striplib="$STRIP -x"
7410 echo "$as_me:$LINENO: result: yes" >&5
7411 echo "${ECHO_T}yes" >&6
7413 echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7418 echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6
7424 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7425 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7427 libname_spec='lib$name'
7435 shlibpath_overrides_runpath=unknown
7437 dynamic_linker="$host_os ld.so"
7438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7439 if test "$GCC" = yes; then
7440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7441 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7442 # if the path contains ";" then we assume it to be the separator
7443 # otherwise default to the standard path separator (i.e. ":") - it is
7444 # assumed that no part of a normal pathname contains ";" but that should
7445 # okay in the real world where ";" in dirpaths is itself problematic.
7446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7453 need_lib_prefix=unknown
7454 hardcode_into_libs=no
7456 # when you set need_version to no, make sure it does not cause -set_version
7457 # flags to be left without arguments
7458 need_version=unknown
7463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7464 shlibpath_var=LIBPATH
7466 # AIX 3 has no versioning support, so we append a major version to the name.
7467 soname_spec='${libname}${release}${shared_ext}$major'
7474 hardcode_into_libs=yes
7475 if test "$host_cpu" = ia64; then
7476 # AIX 5 supports IA64
7477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7478 shlibpath_var=LD_LIBRARY_PATH
7480 # With GCC up to 2.95.x, collect2 would create an import file
7481 # for dependence libraries. The import file would start with
7482 # the line `#! .'. This would cause the generated library to
7483 # depend on `.', always an invalid library. This was fixed in
7484 # development snapshots of GCC prior to 3.0.
7486 aix4 | aix4.[01] | aix4.[01].*)
7487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7489 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7497 # soname into executable. Probably we can add versioning support to
7498 # collect2, so additional links can be useful in future.
7499 if test "$aix_use_runtimelinking" = yes; then
7500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7501 # instead of lib<name>.a to let people know that these are not
7502 # typical AIX shared libraries.
7503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7505 # We preserve .a as extension for shared libraries through AIX4.2
7506 # and later when we are not doing run time linking.
7507 library_names_spec='${libname}${release}.a $libname.a'
7508 soname_spec='${libname}${release}${shared_ext}$major'
7510 shlibpath_var=LIBPATH
7515 library_names_spec='$libname.ixlibrary $libname.a'
7516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7517 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'
7521 library_names_spec='${libname}${shared_ext}'
7522 dynamic_linker="$host_os ld.so"
7523 shlibpath_var=LIBRARY_PATH
7529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7530 soname_spec='${libname}${release}${shared_ext}$major'
7531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7532 shlibpath_var=LD_LIBRARY_PATH
7533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7535 # the default ld.so.conf also contains /usr/contrib/lib and
7536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7537 # libtool to hard-code these into programs
7540 cygwin* | mingw* | pw32*)
7541 version_type=windows
7546 case $GCC,$host_os in
7547 yes,cygwin* | yes,mingw* | yes,pw32*)
7548 library_names_spec='$libname.dll.a'
7549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7550 postinstall_cmds='base_file=`basename \${file}`~
7551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7552 dldir=$destdir/`dirname \$dlpath`~
7553 test -d \$dldir || mkdir -p \$dldir~
7554 $install_prog $dir/$dlname \$dldir/$dlname'
7555 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7556 dlpath=$dir/\$dldll~
7558 shlibpath_overrides_runpath=yes
7562 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7563 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7564 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7567 # MinGW DLLs use traditional 'lib' prefix
7568 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7569 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7570 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7571 # It is most probably a Windows format PATH printed by
7572 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7573 # path with ; separators, and with drive letters. We can handle the
7574 # drive letters (cygwin fileutils understands them), so leave them,
7575 # especially as we might pass files found there to a mingw objdump,
7576 # which wouldn't understand a cygwinified path. Ahh.
7577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7583 # pw32 DLLs use 'pw' prefix rather than 'lib'
7584 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7590 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7593 dynamic_linker='Win32 ld.exe'
7594 # FIXME: first we should search . and the directory the executable is in
7598 darwin* | rhapsody*)
7599 dynamic_linker="$host_os dyld"
7603 # FIXME: Relying on posixy $() will cause problems for
7604 # cross-compilation, but unfortunately the echo tests do not
7605 # yet detect zsh echo's removal of \ escapes.
7606 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7607 soname_spec='${libname}${release}${major}$shared_ext'
7608 shlibpath_overrides_runpath=yes
7609 shlibpath_var=DYLD_LIBRARY_PATH
7610 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7611 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7612 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7613 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"`
7615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7623 soname_spec='${libname}${release}${shared_ext}$major'
7624 shlibpath_var=LD_LIBRARY_PATH
7632 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7633 version_type=freebsd-$objformat
7634 case $version_type in
7636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7645 shlibpath_var=LD_LIBRARY_PATH
7648 shlibpath_overrides_runpath=yes
7650 freebsd3.01* | freebsdelf3.01*)
7651 shlibpath_overrides_runpath=yes
7652 hardcode_into_libs=yes
7655 shlibpath_overrides_runpath=no
7656 hardcode_into_libs=yes
7665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7666 soname_spec='${libname}${release}${shared_ext}$major'
7667 shlibpath_var=LD_LIBRARY_PATH
7668 hardcode_into_libs=yes
7671 hpux9* | hpux10* | hpux11*)
7672 # Give a soname corresponding to the major version so that dld.sl refuses to
7673 # link against other versions.
7680 hardcode_into_libs=yes
7681 dynamic_linker="$host_os dld.so"
7682 shlibpath_var=LD_LIBRARY_PATH
7683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7685 soname_spec='${libname}${release}${shared_ext}$major'
7686 if test "X$HPUX_IA64_MODE" = X32; then
7687 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7689 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7695 hardcode_into_libs=yes
7696 dynamic_linker="$host_os dld.sl"
7697 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7700 soname_spec='${libname}${release}${shared_ext}$major'
7701 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7706 dynamic_linker="$host_os dld.sl"
7707 shlibpath_var=SHLIB_PATH
7708 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7710 soname_spec='${libname}${release}${shared_ext}$major'
7713 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7714 postinstall_cmds='chmod 555 $lib'
7717 irix5* | irix6* | nonstopux*)
7719 nonstopux*) version_type=nonstopux ;;
7721 if test "$lt_cv_prog_gnu_ld" = yes; then
7729 soname_spec='${libname}${release}${shared_ext}$major'
7730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7732 irix5* | nonstopux*)
7736 case $LD in # libtool.m4 will add one of these switches to LD
7737 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7738 libsuff= shlibsuff= libmagic=32-bit;;
7739 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7740 libsuff=32 shlibsuff=N32 libmagic=N32;;
7741 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7742 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7743 *) libsuff= shlibsuff= libmagic=never-match;;
7747 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7748 shlibpath_overrides_runpath=no
7749 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7750 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7751 hardcode_into_libs=yes
7754 # No shared lib support for Linux oldld, aout, or coff.
7755 linux*oldld* | linux*aout* | linux*coff*)
7759 # This must be Linux ELF.
7764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7765 soname_spec='${libname}${release}${shared_ext}$major'
7766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7767 shlibpath_var=LD_LIBRARY_PATH
7768 shlibpath_overrides_runpath=no
7769 # This implies no fast_install, which is unacceptable.
7770 # Some rework will be needed to allow for fast_install
7771 # before this can be enabled.
7772 hardcode_into_libs=yes
7774 # We used to test for /lib/ld.so.1 and disable shared libraries on
7775 # powerpc, because MkLinux only supported shared libraries with the
7776 # GNU dynamic linker. Since this was broken with cross compilers,
7777 # most powerpc-linux boxes support dynamic linking these days and
7778 # people can always --disable-shared, the test was removed, and we
7779 # assume the GNU/Linux dynamic linker is in use.
7780 dynamic_linker='GNU/Linux ld.so'
7787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7790 dynamic_linker='NetBSD (a.out) ld.so'
7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7793 soname_spec='${libname}${release}${shared_ext}$major'
7794 dynamic_linker='NetBSD ld.elf_so'
7796 shlibpath_var=LD_LIBRARY_PATH
7797 shlibpath_overrides_runpath=yes
7798 hardcode_into_libs=yes
7803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7804 shlibpath_var=LD_LIBRARY_PATH
7805 shlibpath_overrides_runpath=yes
7812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7813 soname_spec='${libname}${release}${shared_ext}$major'
7814 shlibpath_var=LD_LIBRARY_PATH
7815 shlibpath_overrides_runpath=yes
7822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7824 shlibpath_var=LD_LIBRARY_PATH
7825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7827 openbsd2.[89] | openbsd2.[89].*)
7828 shlibpath_overrides_runpath=no
7831 shlibpath_overrides_runpath=yes
7835 shlibpath_overrides_runpath=yes
7840 libname_spec='$name'
7843 library_names_spec='$libname${shared_ext} $libname.a'
7844 dynamic_linker='OS/2 ld.exe'
7845 shlibpath_var=LIBPATH
7848 osf3* | osf4* | osf5*)
7852 soname_spec='${libname}${release}${shared_ext}$major'
7853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854 shlibpath_var=LD_LIBRARY_PATH
7855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7861 soname_spec='${libname}${release}${shared_ext}$major'
7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863 shlibpath_var=LD_LIBRARY_PATH
7870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7871 soname_spec='${libname}${release}${shared_ext}$major'
7872 shlibpath_var=LD_LIBRARY_PATH
7873 shlibpath_overrides_runpath=yes
7874 hardcode_into_libs=yes
7875 # ldd complains unless libraries are executable
7876 postinstall_cmds='chmod +x $lib'
7881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7883 shlibpath_var=LD_LIBRARY_PATH
7884 shlibpath_overrides_runpath=yes
7885 if test "$with_gnu_ld" = yes; then
7891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7894 soname_spec='${libname}${release}${shared_ext}$major'
7895 shlibpath_var=LD_LIBRARY_PATH
7896 case $host_vendor in
7898 shlibpath_overrides_runpath=no
7900 export_dynamic_flag_spec='${wl}-Blargedynsym'
7901 runpath_var=LD_RUN_PATH
7909 shlibpath_overrides_runpath=no
7910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7916 if test -d /usr/nec ;then
7918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7919 soname_spec='$libname${shared_ext}.$major'
7920 shlibpath_var=LD_LIBRARY_PATH
7926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7927 soname_spec='${libname}${release}${shared_ext}$major'
7928 shlibpath_var=LD_LIBRARY_PATH
7935 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7936 echo "${ECHO_T}$dynamic_linker" >&6
7937 test "$dynamic_linker" = no && can_build_shared=no
7939 if test "x$enable_dlopen" != xyes; then
7940 enable_dlopen=unknown
7941 enable_dlopen_self=unknown
7942 enable_dlopen_self_static=unknown
7949 lt_cv_dlopen="load_add_on"
7951 lt_cv_dlopen_self=yes
7955 lt_cv_dlopen="LoadLibrary"
7960 lt_cv_dlopen="dlopen"
7965 # if libdl is installed we need to link against it
7966 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7967 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7968 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 ac_check_lib_save_LIBS=$LIBS
7973 cat >conftest.$ac_ext <<_ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7980 /* Override any gcc2 internal prototype to avoid an error. */
7984 /* We use char because int might match the return type of a gcc2
7985 builtin and then its argument prototype would still apply. */
7995 rm -f conftest.$ac_objext conftest$ac_exeext
7996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7997 (eval $ac_link) 2>conftest.er1
7999 grep -v '^ *+' conftest.er1 >conftest.err
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } &&
8004 { ac_try='test -z "$ac_c_werror_flag"
8005 || test ! -s conftest.err'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; } &&
8011 { ac_try='test -s conftest$ac_exeext'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 ac_cv_lib_dl_dlopen=yes
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 ac_cv_lib_dl_dlopen=no
8024 rm -f conftest.err conftest.$ac_objext \
8025 conftest$ac_exeext conftest.$ac_ext
8026 LIBS=$ac_check_lib_save_LIBS
8028 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8029 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8030 if test $ac_cv_lib_dl_dlopen = yes; then
8031 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8036 lt_cv_dlopen_self=yes
8043 echo "$as_me:$LINENO: checking for shl_load" >&5
8044 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8045 if test "${ac_cv_func_shl_load+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 cat >conftest.$ac_ext <<_ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8056 #define shl_load innocuous_shl_load
8058 /* System header to define __stub macros and hopefully few prototypes,
8059 which can conflict with char shl_load (); below.
8060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8061 <limits.h> exists even on freestanding compilers. */
8064 # include <limits.h>
8066 # include <assert.h>
8071 /* Override any gcc2 internal prototype to avoid an error. */
8076 /* We use char because int might match the return type of a gcc2
8077 builtin and then its argument prototype would still apply. */
8079 /* The GNU C library defines this for functions which it implements
8080 to always fail with ENOSYS. Some functions are actually named
8081 something starting with __ and the normal name is an alias. */
8082 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8085 char (*f) () = shl_load;
8094 return f != shl_load;
8099 rm -f conftest.$ac_objext conftest$ac_exeext
8100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8101 (eval $ac_link) 2>conftest.er1
8103 grep -v '^ *+' conftest.er1 >conftest.err
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -z "$ac_c_werror_flag"
8109 || test ! -s conftest.err'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; } &&
8115 { ac_try='test -s conftest$ac_exeext'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 ac_cv_func_shl_load=yes
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 ac_cv_func_shl_load=no
8128 rm -f conftest.err conftest.$ac_objext \
8129 conftest$ac_exeext conftest.$ac_ext
8131 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8132 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8133 if test $ac_cv_func_shl_load = yes; then
8134 lt_cv_dlopen="shl_load"
8136 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8137 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8138 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 ac_check_lib_save_LIBS=$LIBS
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8150 /* Override any gcc2 internal prototype to avoid an error. */
8154 /* We use char because int might match the return type of a gcc2
8155 builtin and then its argument prototype would still apply. */
8165 rm -f conftest.$ac_objext conftest$ac_exeext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167 (eval $ac_link) 2>conftest.er1
8169 grep -v '^ *+' conftest.er1 >conftest.err
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -z "$ac_c_werror_flag"
8175 || test ! -s conftest.err'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; } &&
8181 { ac_try='test -s conftest$ac_exeext'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8187 ac_cv_lib_dld_shl_load=yes
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_cv_lib_dld_shl_load=no
8194 rm -f conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
8196 LIBS=$ac_check_lib_save_LIBS
8198 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8199 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8200 if test $ac_cv_lib_dld_shl_load = yes; then
8201 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8203 echo "$as_me:$LINENO: checking for dlopen" >&5
8204 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8205 if test "${ac_cv_func_dlopen+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 cat >conftest.$ac_ext <<_ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8216 #define dlopen innocuous_dlopen
8218 /* System header to define __stub macros and hopefully few prototypes,
8219 which can conflict with char dlopen (); below.
8220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8221 <limits.h> exists even on freestanding compilers. */
8224 # include <limits.h>
8226 # include <assert.h>
8231 /* Override any gcc2 internal prototype to avoid an error. */
8236 /* We use char because int might match the return type of a gcc2
8237 builtin and then its argument prototype would still apply. */
8239 /* The GNU C library defines this for functions which it implements
8240 to always fail with ENOSYS. Some functions are actually named
8241 something starting with __ and the normal name is an alias. */
8242 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8245 char (*f) () = dlopen;
8259 rm -f conftest.$ac_objext conftest$ac_exeext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8261 (eval $ac_link) 2>conftest.er1
8263 grep -v '^ *+' conftest.er1 >conftest.err
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -z "$ac_c_werror_flag"
8269 || test ! -s conftest.err'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; } &&
8275 { ac_try='test -s conftest$ac_exeext'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
8281 ac_cv_func_dlopen=yes
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8286 ac_cv_func_dlopen=no
8288 rm -f conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8291 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8292 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8293 if test $ac_cv_func_dlopen = yes; then
8294 lt_cv_dlopen="dlopen"
8296 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8297 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8298 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 ac_check_lib_save_LIBS=$LIBS
8303 cat >conftest.$ac_ext <<_ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8310 /* Override any gcc2 internal prototype to avoid an error. */
8314 /* We use char because int might match the return type of a gcc2
8315 builtin and then its argument prototype would still apply. */
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327 (eval $ac_link) 2>conftest.er1
8329 grep -v '^ *+' conftest.er1 >conftest.err
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -z "$ac_c_werror_flag"
8335 || test ! -s conftest.err'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try='test -s conftest$ac_exeext'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 ac_cv_lib_dl_dlopen=yes
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 ac_cv_lib_dl_dlopen=no
8354 rm -f conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
8356 LIBS=$ac_check_lib_save_LIBS
8358 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8359 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8360 if test $ac_cv_lib_dl_dlopen = yes; then
8361 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8363 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8364 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8365 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8368 ac_check_lib_save_LIBS=$LIBS
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8377 /* Override any gcc2 internal prototype to avoid an error. */
8381 /* We use char because int might match the return type of a gcc2
8382 builtin and then its argument prototype would still apply. */
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394 (eval $ac_link) 2>conftest.er1
8396 grep -v '^ *+' conftest.er1 >conftest.err
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try='test -z "$ac_c_werror_flag"
8402 || test ! -s conftest.err'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; } &&
8408 { ac_try='test -s conftest$ac_exeext'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 ac_cv_lib_svld_dlopen=yes
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 ac_cv_lib_svld_dlopen=no
8421 rm -f conftest.err conftest.$ac_objext \
8422 conftest$ac_exeext conftest.$ac_ext
8423 LIBS=$ac_check_lib_save_LIBS
8425 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8426 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8427 if test $ac_cv_lib_svld_dlopen = yes; then
8428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8430 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8431 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8432 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 ac_check_lib_save_LIBS=$LIBS
8437 cat >conftest.$ac_ext <<_ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8444 /* Override any gcc2 internal prototype to avoid an error. */
8448 /* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>conftest.er1
8463 grep -v '^ *+' conftest.er1 >conftest.err
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag"
8469 || test ! -s conftest.err'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; } &&
8475 { ac_try='test -s conftest$ac_exeext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 ac_cv_lib_dld_dld_link=yes
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 ac_cv_lib_dld_dld_link=no
8488 rm -f conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8490 LIBS=$ac_check_lib_save_LIBS
8492 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8493 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8494 if test $ac_cv_lib_dld_dld_link = yes; then
8495 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8516 if test "x$lt_cv_dlopen" != xno; then
8522 case $lt_cv_dlopen in
8524 save_CPPFLAGS="$CPPFLAGS"
8525 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8527 save_LDFLAGS="$LDFLAGS"
8528 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8531 LIBS="$lt_cv_dlopen_libs $LIBS"
8533 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8534 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8535 if test "${lt_cv_dlopen_self+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 if test "$cross_compiling" = yes; then :
8539 lt_cv_dlopen_self=cross
8541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8542 lt_status=$lt_dlunknown
8543 cat > conftest.$ac_ext <<EOF
8544 #line 8544 "configure"
8545 #include "confdefs.h"
8554 # define LT_DLGLOBAL RTLD_GLOBAL
8557 # define LT_DLGLOBAL DL_GLOBAL
8559 # define LT_DLGLOBAL 0
8563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8564 find out it does not work in some platform. */
8565 #ifndef LT_DLLAZY_OR_NOW
8567 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8570 # define LT_DLLAZY_OR_NOW DL_LAZY
8573 # define LT_DLLAZY_OR_NOW RTLD_NOW
8576 # define LT_DLLAZY_OR_NOW DL_NOW
8578 # define LT_DLLAZY_OR_NOW 0
8586 extern "C" void exit (int);
8589 void fnord() { int i=42;}
8592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8593 int status = $lt_dlunknown;
8597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8598 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8599 /* dlclose (self); */
8605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606 (eval $ac_link) 2>&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8610 (./conftest; exit; ) 2>/dev/null
8613 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8614 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8615 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8618 # compilation failed
8619 lt_cv_dlopen_self=no
8626 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8627 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8629 if test "x$lt_cv_dlopen_self" = xyes; then
8630 LDFLAGS="$LDFLAGS $link_static_flag"
8631 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8632 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8633 if test "${lt_cv_dlopen_self_static+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 if test "$cross_compiling" = yes; then :
8637 lt_cv_dlopen_self_static=cross
8639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8640 lt_status=$lt_dlunknown
8641 cat > conftest.$ac_ext <<EOF
8642 #line 8642 "configure"
8643 #include "confdefs.h"
8652 # define LT_DLGLOBAL RTLD_GLOBAL
8655 # define LT_DLGLOBAL DL_GLOBAL
8657 # define LT_DLGLOBAL 0
8661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8662 find out it does not work in some platform. */
8663 #ifndef LT_DLLAZY_OR_NOW
8665 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8668 # define LT_DLLAZY_OR_NOW DL_LAZY
8671 # define LT_DLLAZY_OR_NOW RTLD_NOW
8674 # define LT_DLLAZY_OR_NOW DL_NOW
8676 # define LT_DLLAZY_OR_NOW 0
8684 extern "C" void exit (int);
8687 void fnord() { int i=42;}
8690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8691 int status = $lt_dlunknown;
8695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8697 /* dlclose (self); */
8703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704 (eval $ac_link) 2>&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8708 (./conftest; exit; ) 2>/dev/null
8711 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8712 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8713 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8716 # compilation failed
8717 lt_cv_dlopen_self_static=no
8724 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8725 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8728 CPPFLAGS="$save_CPPFLAGS"
8729 LDFLAGS="$save_LDFLAGS"
8734 case $lt_cv_dlopen_self in
8735 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8736 *) enable_dlopen_self=unknown ;;
8739 case $lt_cv_dlopen_self_static in
8740 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8741 *) enable_dlopen_self_static=unknown ;;
8746 # Report which librarie types wil actually be built
8747 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8748 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8749 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8750 echo "${ECHO_T}$can_build_shared" >&6
8752 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8753 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8754 test "$can_build_shared" = "no" && enable_shared=no
8756 # On AIX, shared libraries and static libraries use the same namespace, and
8757 # are all built from PIC.
8760 test "$enable_shared" = yes && enable_static=no
8761 if test -n "$RANLIB"; then
8762 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8763 postinstall_cmds='$RANLIB $lib'
8768 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8769 test "$enable_shared" = yes && enable_static=no
8772 darwin* | rhapsody*)
8773 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8774 archive_cmds_need_lc=no
8776 rhapsody* | darwin1.[012])
8777 allow_undefined_flag='-undefined suppress'
8780 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8783 # FIXME: Relying on posixy $() will cause problems for
8784 # cross-compilation, but unfortunately the echo tests do not
8785 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8786 # `"' quotes if we put them in here... so don't!
8787 output_verbose_link_cmd='echo'
8788 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8789 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8790 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8791 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}'
8792 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8794 hardcode_automatic=yes
8795 hardcode_shlibpath_var=unsupported
8796 whole_archive_flag_spec='-all_load $convenience'
8797 link_all_deplibs=yes
8801 echo "$as_me:$LINENO: result: $enable_shared" >&5
8802 echo "${ECHO_T}$enable_shared" >&6
8804 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8805 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8806 # Make sure either enable_shared or enable_static is yes.
8807 test "$enable_shared" = yes || enable_static=yes
8808 echo "$as_me:$LINENO: result: $enable_static" >&5
8809 echo "${ECHO_T}$enable_static" >&6
8811 # The else clause should only fire when bootstrapping the
8812 # libtool distribution, otherwise you forgot to ship ltmain.sh
8813 # with your package, and you will get complaints that there are
8814 # no rules to generate ltmain.sh.
8815 if test -f "$ltmain"; then
8816 # See if we are running on zsh, and set the options which allow our commands through
8817 # without removal of \ escapes.
8818 if test -n "${ZSH_VERSION+set}" ; then
8819 setopt NO_GLOB_SUBST
8821 # Now quote all the things that may contain metacharacters while being
8822 # careful not to overquote the AC_SUBSTed values. We take copies of the
8823 # variables and quote the copies for generation of the libtool script.
8824 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8825 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8826 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8827 deplibs_check_method reload_flag reload_cmds need_locks \
8828 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8829 lt_cv_sys_global_symbol_to_c_name_address \
8830 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8831 old_postinstall_cmds old_postuninstall_cmds \
8835 lt_prog_compiler_wl \
8836 lt_prog_compiler_pic \
8837 lt_prog_compiler_static \
8838 lt_prog_compiler_no_builtin_flag \
8839 export_dynamic_flag_spec \
8840 thread_safe_flag_spec \
8841 whole_archive_flag_spec \
8842 enable_shared_with_static_runtimes \
8844 old_archive_from_new_cmds \
8849 compiler_lib_search_path \
8851 archive_expsym_cmds \
8853 postuninstall_cmds \
8854 old_archive_from_expsyms_cmds \
8855 allow_undefined_flag \
8857 export_symbols_cmds \
8858 hardcode_libdir_flag_spec \
8859 hardcode_libdir_flag_spec_ld \
8860 hardcode_libdir_separator \
8861 hardcode_automatic \
8863 module_expsym_cmds \
8864 lt_cv_prog_compiler_c_o \
8869 old_archive_cmds | \
8870 old_archive_from_new_cmds | \
8872 archive_expsym_cmds | \
8874 module_expsym_cmds | \
8875 old_archive_from_expsyms_cmds | \
8876 export_symbols_cmds | \
8877 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8878 postinstall_cmds | postuninstall_cmds | \
8879 old_postinstall_cmds | old_postuninstall_cmds | \
8880 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8881 # Double-quote double-evaled strings.
8882 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8891 *'\$0 --fallback-echo"')
8892 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8897 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8899 { echo "$as_me:$LINENO: creating $ofile" >&5
8900 echo "$as_me: creating $ofile" >&6;}
8902 cat <<__EOF__ >> "$cfgfile"
8905 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8906 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8907 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8909 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8910 # Free Software Foundation, Inc.
8912 # This file is part of GNU Libtool:
8913 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8915 # This program is free software; you can redistribute it and/or modify
8916 # it under the terms of the GNU General Public License as published by
8917 # the Free Software Foundation; either version 2 of the License, or
8918 # (at your option) any later version.
8920 # This program is distributed in the hope that it will be useful, but
8921 # WITHOUT ANY WARRANTY; without even the implied warranty of
8922 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8923 # General Public License for more details.
8925 # You should have received a copy of the GNU General Public License
8926 # along with this program; if not, write to the Free Software
8927 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8929 # As a special exception to the GNU General Public License, if you
8930 # distribute this file as part of a program that contains a
8931 # configuration script generated by Autoconf, you may include it under
8932 # the same distribution terms that you use for the rest of that program.
8934 # A sed program that does not truncate output.
8937 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8938 Xsed="$SED -e s/^X//"
8940 # The HP-UX ksh and POSIX shell print the target directory to stdout
8942 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8944 # The names of the tagged configurations supported by this script.
8947 # ### BEGIN LIBTOOL CONFIG
8949 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8951 # Shell to use when invoking shell scripts.
8954 # Whether or not to build shared libraries.
8955 build_libtool_libs=$enable_shared
8957 # Whether or not to build static libraries.
8958 build_old_libs=$enable_static
8960 # Whether or not to add -lc for building shared libraries.
8961 build_libtool_need_lc=$archive_cmds_need_lc
8963 # Whether or not to disallow shared libs when runtime libs are static
8964 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8966 # Whether or not to optimize for fast installation.
8967 fast_install=$enable_fast_install
8970 host_alias=$host_alias
8973 # An echo program that does not interpret backslashes.
8978 AR_FLAGS=$lt_AR_FLAGS
8983 # A language-specific compiler.
8986 # Is the compiler the GNU C compiler?
8992 # The linker used to build libraries.
8995 # Whether we need hard or soft links.
8998 # A BSD-compatible nm program.
9001 # A symbol stripping program
9004 # Used to examine libraries when file_magic_cmd begins "file"
9005 MAGIC_CMD=$MAGIC_CMD
9007 # Used on cygwin: DLL creation program.
9010 # Used on cygwin: object dumper.
9013 # Used on cygwin: assembler.
9016 # The name of the directory that contains temporary libtool files.
9019 # How to create reloadable object files.
9020 reload_flag=$lt_reload_flag
9021 reload_cmds=$lt_reload_cmds
9023 # How to pass a linker flag through the compiler.
9024 wl=$lt_lt_prog_compiler_wl
9026 # Object file suffix (normally "o").
9029 # Old archive suffix (normally "a").
9032 # Shared library suffix (normally ".so").
9035 # Executable file suffix (normally "").
9038 # Additional compiler flags for building library objects.
9039 pic_flag=$lt_lt_prog_compiler_pic
9042 # What is the maximum length of a command?
9043 max_cmd_len=$lt_cv_sys_max_cmd_len
9045 # Does compiler simultaneously support -c and -o options?
9046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9048 # Must we lock files when doing compilation ?
9049 need_locks=$lt_need_locks
9051 # Do we need the lib prefix for modules?
9052 need_lib_prefix=$need_lib_prefix
9054 # Do we need a version for libraries?
9055 need_version=$need_version
9057 # Whether dlopen is supported.
9058 dlopen_support=$enable_dlopen
9060 # Whether dlopen of programs is supported.
9061 dlopen_self=$enable_dlopen_self
9063 # Whether dlopen of statically linked programs is supported.
9064 dlopen_self_static=$enable_dlopen_self_static
9066 # Compiler flag to prevent dynamic linking.
9067 link_static_flag=$lt_lt_prog_compiler_static
9069 # Compiler flag to turn off builtin functions.
9070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9072 # Compiler flag to allow reflexive dlopens.
9073 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9075 # Compiler flag to generate shared objects directly from archives.
9076 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9078 # Compiler flag to generate thread-safe objects.
9079 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9081 # Library versioning type.
9082 version_type=$version_type
9084 # Format of library name prefix.
9085 libname_spec=$lt_libname_spec
9087 # List of archive names. First name is the real one, the rest are links.
9088 # The last name is the one that the linker finds with -lNAME.
9089 library_names_spec=$lt_library_names_spec
9091 # The coded name of the library, if different from the real name.
9092 soname_spec=$lt_soname_spec
9094 # Commands used to build and install an old-style archive.
9096 old_archive_cmds=$lt_old_archive_cmds
9097 old_postinstall_cmds=$lt_old_postinstall_cmds
9098 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9100 # Create an old-style archive from a shared archive.
9101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9103 # Create a temporary old-style archive to link instead of a shared archive.
9104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9106 # Commands used to build and install a shared archive.
9107 archive_cmds=$lt_archive_cmds
9108 archive_expsym_cmds=$lt_archive_expsym_cmds
9109 postinstall_cmds=$lt_postinstall_cmds
9110 postuninstall_cmds=$lt_postuninstall_cmds
9112 # Commands used to build a loadable module (assumed same as above if empty)
9113 module_cmds=$lt_module_cmds
9114 module_expsym_cmds=$lt_module_expsym_cmds
9116 # Commands to strip libraries.
9117 old_striplib=$lt_old_striplib
9118 striplib=$lt_striplib
9120 # Dependencies to place before the objects being linked to create a
9122 predep_objects=$lt_predep_objects
9124 # Dependencies to place after the objects being linked to create a
9126 postdep_objects=$lt_postdep_objects
9128 # Dependencies to place before the objects being linked to create a
9132 # Dependencies to place after the objects being linked to create a
9134 postdeps=$lt_postdeps
9136 # The library search path used internally by the compiler when linking
9138 compiler_lib_search_path=$lt_compiler_lib_search_path
9140 # Method to check whether dependent libraries are shared objects.
9141 deplibs_check_method=$lt_deplibs_check_method
9143 # Command to use when deplibs_check_method == file_magic.
9144 file_magic_cmd=$lt_file_magic_cmd
9146 # Flag that allows shared libraries with undefined symbols to be built.
9147 allow_undefined_flag=$lt_allow_undefined_flag
9149 # Flag that forces no undefined symbols.
9150 no_undefined_flag=$lt_no_undefined_flag
9152 # Commands used to finish a libtool library installation in a directory.
9153 finish_cmds=$lt_finish_cmds
9155 # Same as above, but a single script fragment to be evaled but not shown.
9156 finish_eval=$lt_finish_eval
9158 # Take the output of nm and produce a listing of raw symbols and C names.
9159 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9161 # Transform the output of nm in a proper C declaration
9162 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9164 # Transform the output of nm in a C name address pair
9165 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9167 # This is the shared library runtime path variable.
9168 runpath_var=$runpath_var
9170 # This is the shared library path variable.
9171 shlibpath_var=$shlibpath_var
9173 # Is shlibpath searched before the hard-coded library search path?
9174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9176 # How to hardcode a shared library path into an executable.
9177 hardcode_action=$hardcode_action
9179 # Whether we should hardcode library paths into libraries.
9180 hardcode_into_libs=$hardcode_into_libs
9182 # Flag to hardcode \$libdir into a binary during linking.
9183 # This must work even if \$libdir does not exist.
9184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9186 # If ld is used when linking, flag to hardcode \$libdir into
9187 # a binary during linking. This must work even if \$libdir does
9189 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9191 # Whether we need a single -rpath flag with a separated argument.
9192 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9194 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9196 hardcode_direct=$hardcode_direct
9198 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9200 hardcode_minus_L=$hardcode_minus_L
9202 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9203 # the resulting binary.
9204 hardcode_shlibpath_var=$hardcode_shlibpath_var
9206 # Set to yes if building a shared library automatically hardcodes DIR into the library
9207 # and all subsequent libraries and executables linked against it.
9208 hardcode_automatic=$hardcode_automatic
9210 # Variables whose values should be saved in libtool wrapper scripts and
9211 # restored at relink time.
9212 variables_saved_for_relink="$variables_saved_for_relink"
9214 # Whether libtool must link a program against all its dependency libraries.
9215 link_all_deplibs=$link_all_deplibs
9217 # Compile-time system search path for libraries
9218 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9220 # Run-time system search path for libraries
9221 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9223 # Fix the shell variable \$srcfile for the compiler.
9224 fix_srcfile_path="$fix_srcfile_path"
9226 # Set to yes if exported symbols are required.
9227 always_export_symbols=$always_export_symbols
9229 # The commands to list exported symbols.
9230 export_symbols_cmds=$lt_export_symbols_cmds
9232 # The commands to extract the exported symbol list from a shared archive.
9233 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9235 # Symbols that should not be listed in the preloaded symbols.
9236 exclude_expsyms=$lt_exclude_expsyms
9238 # Symbols that must always be exported.
9239 include_expsyms=$lt_include_expsyms
9241 # ### END LIBTOOL CONFIG
9248 cat <<\EOF >> "$cfgfile"
9250 # AIX sometimes has problems with the GCC collect2 program. For some
9251 # reason, if we set the COLLECT_NAMES environment variable, the problems
9252 # vanish in a puff of smoke.
9253 if test "X${COLLECT_NAMES+set}" != Xset; then
9255 export COLLECT_NAMES
9261 # We use sed instead of cat because bash on DJGPP gets confused if
9262 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9263 # text mode, it properly converts lines to CR/LF. This bash problem
9264 # is reportedly fixed, but why not run on old versions too?
9265 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9267 mv -f "$cfgfile" "$ofile" || \
9268 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9272 # If there is no Makefile yet, we rely on a make rule to execute
9273 # `config.status --recheck' to rerun these tests and create the
9274 # libtool script then.
9275 test -f Makefile && make "$ltmain"
9280 ac_cpp='$CPP $CPPFLAGS'
9281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9288 # Check whether --with-tags or --without-tags was given.
9289 if test "${with_tags+set}" = set; then
9290 withval="$with_tags"
9294 if test -f "$ltmain" && test -n "$tagnames"; then
9295 if test ! -f "${ofile}"; then
9296 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9297 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9300 if test -z "$LTCC"; then
9301 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9302 if test -z "$LTCC"; then
9303 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9304 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9307 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9311 # Extract list of available tagged configurations in $ofile.
9312 # Note that this assumes the entire list is on one line.
9313 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9315 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9316 for tagname in $tagnames; do
9318 # Check whether tagname contains only valid characters
9319 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9321 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9322 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9323 { (exit 1); exit 1; }; }
9327 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9329 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9330 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9331 { (exit 1); exit 1; }; }
9334 # Update the list of available tags.
9335 if test -n "$tagname"; then
9336 echo appending configuration tag \"$tagname\" to $ofile
9340 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9342 ac_cpp='$CXXCPP $CPPFLAGS'
9343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9350 archive_cmds_need_lc_CXX=no
9351 allow_undefined_flag_CXX=
9352 always_export_symbols_CXX=no
9353 archive_expsym_cmds_CXX=
9354 export_dynamic_flag_spec_CXX=
9355 hardcode_direct_CXX=no
9356 hardcode_libdir_flag_spec_CXX=
9357 hardcode_libdir_flag_spec_ld_CXX=
9358 hardcode_libdir_separator_CXX=
9359 hardcode_minus_L_CXX=no
9360 hardcode_automatic_CXX=no
9362 module_expsym_cmds_CXX=
9363 link_all_deplibs_CXX=unknown
9364 old_archive_cmds_CXX=$old_archive_cmds
9365 no_undefined_flag_CXX=
9366 whole_archive_flag_spec_CXX=
9367 enable_shared_with_static_runtimes_CXX=no
9369 # Dependencies to place before and after the object being linked:
9371 postdep_objects_CXX=
9374 compiler_lib_search_path_CXX=
9376 # Source file extension for C++ test sources.
9379 # Object file extension for compiled C++ test sources.
9383 # Code to be used in simple compile tests
9384 lt_simple_compile_test_code="int some_variable = 0;\n"
9386 # Code to be used in simple link tests
9387 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9389 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9391 # If no C compiler was specified, use CC.
9394 # Allow CC to be a program name with arguments.
9398 # Allow CC to be a program name with arguments.
9403 lt_save_with_gnu_ld=$with_gnu_ld
9404 lt_save_path_LD=$lt_cv_path_LD
9405 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9406 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9408 unset lt_cv_prog_gnu_ld
9410 if test -n "${lt_cv_path_LDCXX+set}"; then
9411 lt_cv_path_LD=$lt_cv_path_LDCXX
9415 test -z "${LDCXX+set}" || LD=$LDCXX
9419 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9421 # We don't want -fno-exception wen compiling C++ code, so set the
9422 # no_builtin_flag separately
9423 if test "$GXX" = yes; then
9424 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9426 lt_prog_compiler_no_builtin_flag_CXX=
9429 if test "$GXX" = yes; then
9430 # Set up default GNU C++ configuration
9433 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9434 if test "${with_gnu_ld+set}" = set; then
9435 withval="$with_gnu_ld"
9436 test "$withval" = no || with_gnu_ld=yes
9441 if test "$GCC" = yes; then
9442 # Check if gcc -print-prog-name=ld gives a path.
9443 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9444 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9447 # gcc leaves a trailing carriage return which upsets mingw
9448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9453 # Accept absolute paths.
9455 re_direlt='/[^/][^/]*/\.\./'
9456 # Canonicalize the path of ld
9457 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9458 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9459 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9461 test -z "$LD" && LD="$ac_prog"
9464 # If it fails, then pretend we aren't using GCC.
9468 # If it is relative, then search for the first ld in PATH.
9472 elif test "$with_gnu_ld" = yes; then
9473 echo "$as_me:$LINENO: checking for GNU ld" >&5
9474 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9476 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9477 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9479 if test "${lt_cv_path_LD+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 if test -z "$LD"; then
9483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9484 for ac_dir in $PATH; do
9486 test -z "$ac_dir" && ac_dir=.
9487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9488 lt_cv_path_LD="$ac_dir/$ac_prog"
9489 # Check to see if the program is GNU ld. I'd rather use --version,
9490 # but apparently some GNU ld's only accept -v.
9491 # Break only if it was the GNU/non-GNU ld that we prefer.
9492 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9493 *GNU* | *'with BFD'*)
9494 test "$with_gnu_ld" != no && break
9497 test "$with_gnu_ld" != yes && break
9504 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9509 if test -n "$LD"; then
9510 echo "$as_me:$LINENO: result: $LD" >&5
9511 echo "${ECHO_T}$LD" >&6
9513 echo "$as_me:$LINENO: result: no" >&5
9514 echo "${ECHO_T}no" >&6
9516 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9517 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9518 { (exit 1); exit 1; }; }
9519 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9520 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9521 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9525 case `"$LD" -v 2>&1 </dev/null` in
9526 *GNU* | *'with BFD'*)
9527 lt_cv_prog_gnu_ld=yes
9530 lt_cv_prog_gnu_ld=no
9534 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9535 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9536 with_gnu_ld=$lt_cv_prog_gnu_ld
9540 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9541 # archiving commands below assume that GNU ld is being used.
9542 if test "$with_gnu_ld" = yes; then
9543 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544 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'
9546 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9547 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9549 # If archive_cmds runs LD, not CC, wlarc should be empty
9550 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9551 # investigate it a little bit more. (MM)
9554 # ancient GNU ld didn't support --whole-archive et. al.
9555 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9556 grep 'no-whole-archive' > /dev/null; then
9557 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9559 whole_archive_flag_spec_CXX=
9565 # A generic and very simple default shared library creation
9566 # command for GNU C++ for the case where it uses the native
9567 # linker, instead of GNU ld. If possible, this setting should
9568 # overridden to take advantage of the native linker features on
9569 # the platform it is being used on.
9570 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9573 # Commands to make compiler produce verbose output that lists
9574 # what "hidden" libraries, object files and flags are used when
9575 # linking a shared library.
9576 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9584 # PORTME: fill in a description of your system's C++ link characteristics
9585 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9586 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9590 # FIXME: insert proper C++ library support
9594 if test "$host_cpu" = ia64; then
9595 # On IA64, the linker does run time linking by default, so we don't
9596 # have to do anything special.
9597 aix_use_runtimelinking=no
9598 exp_sym_flag='-Bexport'
9601 aix_use_runtimelinking=no
9603 # Test if we are trying to use run time linking or normal
9604 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9605 # need to do runtime linking.
9606 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9607 for ld_flag in $LDFLAGS; do
9610 aix_use_runtimelinking=yes
9617 exp_sym_flag='-bexport'
9618 no_entry_flag='-bnoentry'
9621 # When large executables or shared objects are built, AIX ld can
9622 # have problems creating the table of contents. If linking a library
9623 # or program results in "error TOC overflow" add -mminimal-toc to
9624 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9625 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9628 hardcode_direct_CXX=yes
9629 hardcode_libdir_separator_CXX=':'
9630 link_all_deplibs_CXX=yes
9632 if test "$GXX" = yes; then
9633 case $host_os in aix4.012|aix4.012.*)
9634 # We only want to do this on AIX 4.2 and lower, the check
9635 # below for broken collect2 doesn't work under 4.3+
9636 collect2name=`${CC} -print-prog-name=collect2`
9637 if test -f "$collect2name" && \
9638 strings "$collect2name" | grep resolve_lib_name >/dev/null
9640 # We have reworked collect2
9641 hardcode_direct_CXX=yes
9643 # We have old collect2
9644 hardcode_direct_CXX=unsupported
9645 # It fails to find uninstalled libraries when the uninstalled
9646 # path is not listed in the libpath. Setting hardcode_minus_L
9647 # to unsupported forces relinking
9648 hardcode_minus_L_CXX=yes
9649 hardcode_libdir_flag_spec_CXX='-L$libdir'
9650 hardcode_libdir_separator_CXX=
9653 shared_flag='-shared'
9656 if test "$host_cpu" = ia64; then
9657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9658 # chokes on -Wl,-G. The following line is correct:
9661 if test "$aix_use_runtimelinking" = yes; then
9662 shared_flag='${wl}-G'
9664 shared_flag='${wl}-bM:SRE'
9669 # It seems that -bexpall does not export symbols beginning with
9670 # underscore (_), so it is better to generate a list of symbols to export.
9671 always_export_symbols_CXX=yes
9672 if test "$aix_use_runtimelinking" = yes; then
9673 # Warning - without using the other runtime loading flags (-brtl),
9674 # -berok will link without error, but may produce a broken library.
9675 allow_undefined_flag_CXX='-berok'
9676 # Determine the default libpath from the value encoded in an empty executable.
9677 cat >conftest.$ac_ext <<_ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>conftest.er1
9696 grep -v '^ *+' conftest.er1 >conftest.err
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_cxx_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9717 # Check for a 64-bit object if we didn't find anything.
9718 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; }
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9725 rm -f conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9729 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9731 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"
9733 if test "$host_cpu" = ia64; then
9734 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9735 allow_undefined_flag_CXX="-z nodefs"
9736 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"
9738 # Determine the default libpath from the value encoded in an empty executable.
9739 cat >conftest.$ac_ext <<_ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_cxx_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9777 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9779 # Check for a 64-bit object if we didn't find anything.
9780 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; }
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9787 rm -f conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9791 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9792 # Warning - without using the other run time loading flags,
9793 # -berok will link without error, but may produce a broken library.
9794 no_undefined_flag_CXX=' ${wl}-bernotok'
9795 allow_undefined_flag_CXX=' ${wl}-berok'
9796 # -bexpall does not export symbols beginning with underscore (_)
9797 always_export_symbols_CXX=yes
9798 # Exported symbols can be pulled into shared objects from archives
9799 whole_archive_flag_spec_CXX=' '
9800 archive_cmds_need_lc_CXX=yes
9801 # This is similar to how AIX traditionally builds it's shared libraries.
9802 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'
9807 case $cc_basename in
9809 # FIXME: insert proper C++ library support
9815 cygwin* | mingw* | pw32*)
9816 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9817 # as there is no search path for DLLs.
9818 hardcode_libdir_flag_spec_CXX='-L$libdir'
9819 allow_undefined_flag_CXX=unsupported
9820 always_export_symbols_CXX=no
9821 enable_shared_with_static_runtimes_CXX=yes
9823 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9824 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'
9825 # If the export-symbols file already is a .def file (1st line
9826 # is EXPORTS), use it as is; otherwise, prepend...
9827 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9828 cp $export_symbols $output_objdir/$soname.def;
9830 echo EXPORTS > $output_objdir/$soname.def;
9831 cat $export_symbols >> $output_objdir/$soname.def;
9833 $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'
9839 darwin* | rhapsody*)
9840 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9841 archive_cmds_need_lc_CXX=no
9843 rhapsody* | darwin1.[012])
9844 allow_undefined_flag_CXX='-undefined suppress'
9847 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9850 lt_int_apple_cc_single_mod=no
9851 output_verbose_link_cmd='echo'
9852 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9853 lt_int_apple_cc_single_mod=yes
9855 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9856 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9858 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9860 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9862 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9863 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9864 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}'
9866 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9868 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9869 hardcode_direct_CXX=no
9870 hardcode_automatic_CXX=yes
9871 hardcode_shlibpath_var_CXX=unsupported
9872 whole_archive_flag_spec_CXX='-all_load $convenience'
9873 link_all_deplibs_CXX=yes
9878 case $cc_basename in
9880 # FIXME: insert proper C++ library support
9884 # Green Hills C++ Compiler
9885 # FIXME: insert proper C++ library support
9889 # FIXME: insert proper C++ library support
9895 # C++ shared libraries reported to be fairly broken before switch to ELF
9899 archive_cmds_need_lc_CXX=no
9902 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9909 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9910 hardcode_libdir_separator_CXX=:
9911 export_dynamic_flag_spec_CXX='${wl}-E'
9912 hardcode_direct_CXX=yes
9913 hardcode_minus_L_CXX=yes # Not in the search PATH,
9914 # but as the default
9915 # location of the library.
9917 case $cc_basename in
9919 # FIXME: insert proper C++ library support
9923 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'
9924 # Commands to make compiler produce verbose output that lists
9925 # what "hidden" libraries, object files and flags are used when
9926 # linking a shared library.
9928 # There doesn't appear to be a way to prevent this compiler from
9929 # explicitly linking system object files so we need to strip them
9930 # from the output so that they don't get included in the library
9932 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9935 if test "$GXX" = yes; then
9936 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'
9938 # FIXME: insert proper C++ library support
9945 if test $with_gnu_ld = no; then
9948 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9949 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9950 hardcode_libdir_separator_CXX=:
9953 hardcode_libdir_flag_spec_CXX='-L$libdir'
9956 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9957 hardcode_libdir_separator_CXX=:
9958 export_dynamic_flag_spec_CXX='${wl}-E'
9964 hardcode_direct_CXX=no
9965 hardcode_shlibpath_var_CXX=no
9968 hardcode_direct_CXX=no
9969 hardcode_shlibpath_var_CXX=no
9970 hardcode_minus_L_CXX=yes # Not in the search PATH,
9971 # but as the default
9972 # location of the library.
9975 hardcode_direct_CXX=yes
9976 hardcode_minus_L_CXX=yes # Not in the search PATH,
9977 # but as the default
9978 # location of the library.
9982 case $cc_basename in
9984 # FIXME: insert proper C++ library support
9990 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9993 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9996 # Commands to make compiler produce verbose output that lists
9997 # what "hidden" libraries, object files and flags are used when
9998 # linking a shared library.
10000 # There doesn't appear to be a way to prevent this compiler from
10001 # explicitly linking system object files so we need to strip them
10002 # from the output so that they don't get included in the library
10004 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'
10007 if test "$GXX" = yes; then
10008 if test $with_gnu_ld = no; then
10009 case "$host_cpu" in
10011 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10014 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'
10019 # FIXME: insert proper C++ library support
10026 case $cc_basename in
10029 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'
10031 # Archives containing C++ object files must be created using
10032 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10033 # necessary to make sure instantiated templates are included
10035 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10038 if test "$GXX" = yes; then
10039 if test "$with_gnu_ld" = no; then
10040 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'
10042 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'
10045 link_all_deplibs_CXX=yes
10048 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10049 hardcode_libdir_separator_CXX=:
10052 case $cc_basename in
10054 # Kuck and Associates, Inc. (KAI) C++ Compiler
10056 # KCC will only create a shared library if the output file
10057 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10058 # to its proper name (with version) after linking.
10059 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'
10060 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'
10061 # Commands to make compiler produce verbose output that lists
10062 # what "hidden" libraries, object files and flags are used when
10063 # linking a shared library.
10065 # There doesn't appear to be a way to prevent this compiler from
10066 # explicitly linking system object files so we need to strip them
10067 # from the output so that they don't get included in the library
10069 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'
10071 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10074 # Archives containing C++ object files must be created using
10075 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10076 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10081 archive_cmds_need_lc_CXX=no
10082 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10083 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'
10084 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10085 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10086 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10090 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10091 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'
10093 runpath_var=LD_RUN_PATH
10094 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10095 hardcode_libdir_separator_CXX=:
10097 # Commands to make compiler produce verbose output that lists
10098 # what "hidden" libraries, object files and flags are used when
10099 # linking a shared library.
10101 # There doesn't appear to be a way to prevent this compiler from
10102 # explicitly linking system object files so we need to strip them
10103 # from the output so that they don't get included in the library
10105 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'
10110 # FIXME: insert proper C++ library support
10114 # FIXME: insert proper C++ library support
10118 case $cc_basename in
10120 # FIXME: insert proper C++ library support
10124 # FIXME: insert proper C++ library support
10130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10131 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10133 hardcode_libdir_flag_spec_CXX='-R$libdir'
10134 hardcode_direct_CXX=yes
10135 hardcode_shlibpath_var_CXX=no
10137 # Workaround some broken pre-1.5 toolchains
10138 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10141 case $cc_basename in
10143 # Kuck and Associates, Inc. (KAI) C++ Compiler
10145 # KCC will only create a shared library if the output file
10146 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10147 # to its proper name (with version) after linking.
10148 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'
10150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10151 hardcode_libdir_separator_CXX=:
10153 # Archives containing C++ object files must be created using
10154 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10155 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10159 # Rational C++ 2.4.1
10160 # FIXME: insert proper C++ library support
10164 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10165 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'
10167 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10168 hardcode_libdir_separator_CXX=:
10170 # Commands to make compiler produce verbose output that lists
10171 # what "hidden" libraries, object files and flags are used when
10172 # linking a shared library.
10174 # There doesn't appear to be a way to prevent this compiler from
10175 # explicitly linking system object files so we need to strip them
10176 # from the output so that they don't get included in the library
10178 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'
10181 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10182 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10183 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'
10185 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10186 hardcode_libdir_separator_CXX=:
10188 # Commands to make compiler produce verbose output that lists
10189 # what "hidden" libraries, object files and flags are used when
10190 # linking a shared library.
10191 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10194 # FIXME: insert proper C++ library support
10201 case $cc_basename in
10203 # Kuck and Associates, Inc. (KAI) C++ Compiler
10205 # KCC will only create a shared library if the output file
10206 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10207 # to its proper name (with version) after linking.
10208 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'
10210 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10211 hardcode_libdir_separator_CXX=:
10213 # Archives containing C++ object files must be created using
10214 # the KAI C++ compiler.
10215 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10218 # Rational C++ 2.4.1
10219 # FIXME: insert proper C++ library support
10223 allow_undefined_flag_CXX=' -expect_unresolved \*'
10224 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'
10225 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10226 echo "-hidden">> $lib.exp~
10227 $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~
10230 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10231 hardcode_libdir_separator_CXX=:
10233 # Commands to make compiler produce verbose output that lists
10234 # what "hidden" libraries, object files and flags are used when
10235 # linking a shared library.
10237 # There doesn't appear to be a way to prevent this compiler from
10238 # explicitly linking system object files so we need to strip them
10239 # from the output so that they don't get included in the library
10241 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'
10244 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10245 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10246 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'
10248 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10249 hardcode_libdir_separator_CXX=:
10251 # Commands to make compiler produce verbose output that lists
10252 # what "hidden" libraries, object files and flags are used when
10253 # linking a shared library.
10254 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10257 # FIXME: insert proper C++ library support
10264 # FIXME: insert proper C++ library support
10268 archive_cmds_need_lc_CXX=no
10269 case $cc_basename in
10271 # FIXME: insert proper C++ library support
10275 # FIXME: insert proper C++ library support
10281 case $cc_basename in
10284 # FIXME: insert proper C++ library support
10289 # FIXME: insert proper C++ library support
10293 # FIXME: insert proper C++ library support
10299 case $cc_basename in
10301 # Sun C++ 4.2, 5.x and Centerline C++
10302 no_undefined_flag_CXX=' -zdefs'
10303 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10304 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10305 $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'
10307 hardcode_libdir_flag_spec_CXX='-R$libdir'
10308 hardcode_shlibpath_var_CXX=no
10310 solaris2.0-5 | solaris2.0-5.*) ;;
10312 # The C++ compiler is used as linker so we must use $wl
10313 # flag to pass the commands to the underlying system
10315 # Supported since Solaris 2.6 (maybe 2.5.1?)
10316 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10319 link_all_deplibs_CXX=yes
10321 # Commands to make compiler produce verbose output that lists
10322 # what "hidden" libraries, object files and flags are used when
10323 # linking a shared library.
10325 # There doesn't appear to be a way to prevent this compiler from
10326 # explicitly linking system object files so we need to strip them
10327 # from the output so that they don't get included in the library
10329 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'
10331 # Archives containing C++ object files must be created using
10332 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10333 # necessary to make sure instantiated templates are included
10335 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10338 # Green Hills C++ Compiler
10339 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10341 # The C++ compiler must be used to create the archive.
10342 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10345 # GNU C++ compiler with Solaris linker
10346 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10347 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10348 if $CC --version | grep -v '^2\.7' > /dev/null; then
10349 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10350 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10351 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10353 # Commands to make compiler produce verbose output that lists
10354 # what "hidden" libraries, object files and flags are used when
10355 # linking a shared library.
10356 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10358 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10360 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10361 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10362 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10364 # Commands to make compiler produce verbose output that lists
10365 # what "hidden" libraries, object files and flags are used when
10366 # linking a shared library.
10367 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10370 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10375 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10376 archive_cmds_need_lc_CXX=no
10379 case $cc_basename in
10381 # NonStop-UX NCC 3.20
10382 # FIXME: insert proper C++ library support
10386 # FIXME: insert proper C++ library support
10392 # FIXME: insert proper C++ library support
10396 # FIXME: insert proper C++ library support
10400 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10401 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10402 test "$ld_shlibs_CXX" = no && can_build_shared=no
10408 ## There is no encapsulation within the following macros, do not change
10409 ## the running order or otherwise move them around unless you know exactly
10410 ## what you are doing...
10412 cat > conftest.$ac_ext <<EOF
10416 Foo (void) { a = 0; }
10422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423 (eval $ac_compile) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; then
10427 # Parse the compiler output and extract the necessary
10428 # objects, libraries and library flags.
10430 # Sentinel used to keep track of whether or not we are before
10431 # the conftest object file.
10432 pre_test_object_deps_done=no
10434 # The `*' in the case matches for architectures that use `case' in
10435 # $output_verbose_cmd can trigger glob expansion during the loop
10436 # eval without this substitution.
10437 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10439 for p in `eval $output_verbose_link_cmd`; do
10443 # Some compilers place space between "-{L,R}" and the path.
10444 # Remove the space.
10445 if test $p = "-L" \
10446 || test $p = "-R"; then
10453 if test "$pre_test_object_deps_done" = no; then
10456 # Internal compiler library paths should come after those
10457 # provided the user. The postdeps already come after the
10458 # user supplied libs so there is no need to process them.
10459 if test -z "$compiler_lib_search_path_CXX"; then
10460 compiler_lib_search_path_CXX="${prev}${p}"
10462 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10465 # The "-l" case would never come before the object being
10466 # linked, so don't bother handling this case.
10469 if test -z "$postdeps_CXX"; then
10470 postdeps_CXX="${prev}${p}"
10472 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10478 # This assumes that the test object file only shows up
10479 # once in the compiler output.
10480 if test "$p" = "conftest.$objext"; then
10481 pre_test_object_deps_done=yes
10485 if test "$pre_test_object_deps_done" = no; then
10486 if test -z "$predep_objects_CXX"; then
10487 predep_objects_CXX="$p"
10489 predep_objects_CXX="$predep_objects_CXX $p"
10492 if test -z "$postdep_objects_CXX"; then
10493 postdep_objects_CXX="$p"
10495 postdep_objects_CXX="$postdep_objects_CXX $p"
10500 *) ;; # Ignore the rest.
10508 echo "libtool.m4: error: problem compiling CXX test program"
10511 $rm -f confest.$objext
10513 case " $postdeps_CXX " in
10514 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10517 lt_prog_compiler_wl_CXX=
10518 lt_prog_compiler_pic_CXX=
10519 lt_prog_compiler_static_CXX=
10521 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10522 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10524 # C++ specific cases for pic, static, wl, etc.
10525 if test "$GXX" = yes; then
10526 lt_prog_compiler_wl_CXX='-Wl,'
10527 lt_prog_compiler_static_CXX='-static'
10531 # All AIX code is PIC.
10532 if test "$host_cpu" = ia64; then
10533 # AIX 5 now supports IA64 processor
10534 lt_prog_compiler_static_CXX='-Bstatic'
10538 # FIXME: we need at least 68020 code to build shared libraries, but
10539 # adding the `-m68020' flag to GCC prevents building anything better,
10541 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10543 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10544 # PIC is the default for these OSes.
10546 mingw* | os2* | pw32*)
10547 # This hack is so that the source file can tell whether it is being
10548 # built for inclusion in a dll (and should export symbols for example).
10549 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10551 darwin* | rhapsody*)
10552 # PIC is the default on this platform
10553 # Common symbols not allowed in MH_DYLIB files
10554 lt_prog_compiler_pic_CXX='-fno-common'
10557 # DJGPP does not support shared libraries at all
10558 lt_prog_compiler_pic_CXX=
10561 if test -d /usr/nec; then
10562 lt_prog_compiler_pic_CXX=-Kconform_pic
10566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10567 # not for PA HP-UX.
10568 case "$host_cpu" in
10572 lt_prog_compiler_pic_CXX='-fPIC'
10577 lt_prog_compiler_pic_CXX='-fPIC'
10583 # All AIX code is PIC.
10584 if test "$host_cpu" = ia64; then
10585 # AIX 5 now supports IA64 processor
10586 lt_prog_compiler_static_CXX='-Bstatic'
10588 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10592 case $cc_basename in
10594 # Green Hills C++ Compiler
10595 # _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"
10600 case $cc_basename in
10602 lt_prog_compiler_pic_CXX='-KPIC'
10605 # Green Hills C++ Compiler
10606 lt_prog_compiler_pic_CXX='-pic'
10613 # FreeBSD uses GNU C++
10615 hpux9* | hpux10* | hpux11*)
10616 case $cc_basename in
10618 lt_prog_compiler_wl_CXX='-Wl,'
10619 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10620 if test "$host_cpu" != ia64; then
10621 lt_prog_compiler_pic_CXX='+Z'
10625 lt_prog_compiler_wl_CXX='-Wl,'
10626 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10627 case "$host_cpu" in
10632 lt_prog_compiler_pic_CXX='+Z'
10640 irix5* | irix6* | nonstopux*)
10641 case $cc_basename in
10643 lt_prog_compiler_wl_CXX='-Wl,'
10644 lt_prog_compiler_static_CXX='-non_shared'
10645 # CC pic flag -KPIC is the default.
10652 case $cc_basename in
10655 lt_prog_compiler_wl_CXX='--backend -Wl,'
10656 lt_prog_compiler_pic_CXX='-fPIC'
10660 lt_prog_compiler_wl_CXX='-Wl,'
10661 lt_prog_compiler_pic_CXX='-KPIC'
10662 lt_prog_compiler_static_CXX='-static'
10666 # Make sure the PIC flag is empty. It appears that all Alpha
10667 # Linux and Compaq Tru64 Unix objects are PIC.
10668 lt_prog_compiler_pic_CXX=
10669 lt_prog_compiler_static_CXX='-non_shared'
10680 case $cc_basename in
10682 lt_prog_compiler_pic_CXX='-W c,exportall'
10690 osf3* | osf4* | osf5*)
10691 case $cc_basename in
10693 lt_prog_compiler_wl_CXX='--backend -Wl,'
10696 # Rational C++ 2.4.1
10697 lt_prog_compiler_pic_CXX='-pic'
10700 # Digital/Compaq C++
10701 lt_prog_compiler_wl_CXX='-Wl,'
10702 # Make sure the PIC flag is empty. It appears that all Alpha
10703 # Linux and Compaq Tru64 Unix objects are PIC.
10704 lt_prog_compiler_pic_CXX=
10705 lt_prog_compiler_static_CXX='-non_shared'
10714 case $cc_basename in
10716 lt_prog_compiler_pic_CXX='-fPIC'
10723 case $cc_basename in
10725 # Sun C++ 4.2, 5.x and Centerline C++
10726 lt_prog_compiler_pic_CXX='-KPIC'
10727 lt_prog_compiler_static_CXX='-Bstatic'
10728 lt_prog_compiler_wl_CXX='-Qoption ld '
10731 # Green Hills C++ Compiler
10732 lt_prog_compiler_pic_CXX='-PIC'
10739 case $cc_basename in
10742 lt_prog_compiler_pic_CXX='-pic'
10743 lt_prog_compiler_static_CXX='-Bstatic'
10747 lt_prog_compiler_pic_CXX='-pic'
10754 case $cc_basename in
10756 # NonStop-UX NCC 3.20
10757 lt_prog_compiler_pic_CXX='-KPIC'
10768 lt_prog_compiler_can_build_shared_CXX=no
10773 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10774 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10777 # Check to make sure the PIC flag actually works.
10779 if test -n "$lt_prog_compiler_pic_CXX"; then
10780 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10782 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 lt_prog_compiler_pic_works_CXX=no
10786 ac_outfile=conftest.$ac_objext
10787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10788 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10789 # Insert the option either (1) after the last *FLAGS variable, or
10790 # (2) before a word containing "conftest.", or (3) at the end.
10791 # Note that $ac_compile itself does not contain backslashes and begins
10792 # with a dollar sign (not a hyphen), so the echo should work correctly.
10793 # The option is referenced via a variable to avoid confusing sed.
10794 lt_compile=`echo "$ac_compile" | $SED \
10795 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10797 -e 's:$: $lt_compiler_flag:'`
10798 (eval echo "\"\$as_me:10798: $lt_compile\"" >&5)
10799 (eval "$lt_compile" 2>conftest.err)
10801 cat conftest.err >&5
10802 echo "$as_me:10802: \$? = $ac_status" >&5
10803 if (exit $ac_status) && test -s "$ac_outfile"; then
10804 # The compiler can only warn and ignore the option if not recognized
10805 # So say no if there are warnings
10806 if test ! -s conftest.err; then
10807 lt_prog_compiler_pic_works_CXX=yes
10813 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10814 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10816 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10817 case $lt_prog_compiler_pic_CXX in
10819 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10822 lt_prog_compiler_pic_CXX=
10823 lt_prog_compiler_can_build_shared_CXX=no
10828 # For platforms which do not support PIC, -DPIC is meaningless:
10830 lt_prog_compiler_pic_CXX=
10833 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10837 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10839 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 lt_cv_prog_compiler_c_o_CXX=no
10843 $rm -r conftest 2>/dev/null
10847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10849 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10850 # that will create temporary files in the current directory regardless of
10851 # the output directory. Thus, making CWD read-only will cause this test
10852 # to fail, enabling locking or at least warning the user not to do parallel
10856 lt_compiler_flag="-o out/conftest2.$ac_objext"
10857 # Insert the option either (1) after the last *FLAGS variable, or
10858 # (2) before a word containing "conftest.", or (3) at the end.
10859 # Note that $ac_compile itself does not contain backslashes and begins
10860 # with a dollar sign (not a hyphen), so the echo should work correctly.
10861 lt_compile=`echo "$ac_compile" | $SED \
10862 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10864 -e 's:$: $lt_compiler_flag:'`
10865 (eval echo "\"\$as_me:10865: $lt_compile\"" >&5)
10866 (eval "$lt_compile" 2>out/conftest.err)
10868 cat out/conftest.err >&5
10869 echo "$as_me:10869: \$? = $ac_status" >&5
10870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10872 # The compiler can only warn and ignore the option if not recognized
10873 # So say no if there are warnings
10874 if test ! -s out/conftest.err; then
10875 lt_cv_prog_compiler_c_o_CXX=yes
10879 $rm conftest* out/*
10886 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10890 hard_links="nottested"
10891 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10892 # do not overwrite the value of need_locks provided by the user
10893 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10899 ln conftest.a conftest.b 2>&5 || hard_links=no
10900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10901 echo "$as_me:$LINENO: result: $hard_links" >&5
10902 echo "${ECHO_T}$hard_links" >&6
10903 if test "$hard_links" = no; then
10904 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10912 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10915 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10918 # If we're using GNU nm, then we don't want the "-C" option.
10919 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10920 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10921 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'
10923 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'
10927 export_symbols_cmds_CXX="$ltdll_cmds"
10930 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10933 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10937 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10938 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10939 test "$ld_shlibs_CXX" = no && can_build_shared=no
10941 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10942 if test "$GCC" = yes; then
10943 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10947 # Do we need to explicitly link libc?
10949 case "x$archive_cmds_need_lc_CXX" in
10951 # Assume -lc should be added
10952 archive_cmds_need_lc_CXX=yes
10954 if test "$enable_shared" = yes && test "$GCC" = yes; then
10955 case $archive_cmds_CXX in
10957 # FIXME: we may have to deal with multi-command sequences.
10960 # Test whether the compiler implicitly links with -lc since on some
10961 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10962 # to ld, don't add -lc before -lgcc.
10963 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10964 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10966 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969 (eval $ac_compile) 2>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } 2>conftest.err; then
10975 libobjs=conftest.$ac_objext
10977 wl=$lt_prog_compiler_wl_CXX
10983 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10984 allow_undefined_flag_CXX=
10985 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10986 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }
10991 archive_cmds_need_lc_CXX=no
10993 archive_cmds_need_lc_CXX=yes
10995 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10997 cat conftest.err 1>&5
11000 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11001 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11008 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11009 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11010 hardcode_action_CXX=
11011 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11012 test -n "$runpath_var CXX" || \
11013 test "X$hardcode_automatic_CXX"="Xyes" ; then
11015 # We can hardcode non-existant directories.
11016 if test "$hardcode_direct_CXX" != no &&
11017 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11018 # have to relink, otherwise we might link with an installed library
11019 # when we should be linking with a yet-to-be-installed one
11020 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11021 test "$hardcode_minus_L_CXX" != no; then
11022 # Linking always hardcodes the temporary library directory.
11023 hardcode_action_CXX=relink
11025 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11026 hardcode_action_CXX=immediate
11029 # We cannot hardcode anything, or else we can only hardcode existing
11031 hardcode_action_CXX=unsupported
11033 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11034 echo "${ECHO_T}$hardcode_action_CXX" >&6
11036 if test "$hardcode_action_CXX" = relink; then
11037 # Fast installation is not supported
11038 enable_fast_install=no
11039 elif test "$shlibpath_overrides_runpath" = yes ||
11040 test "$enable_shared" = no; then
11041 # Fast installation is not necessary
11042 enable_fast_install=needless
11047 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11048 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11049 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11050 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11051 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11052 echo "$as_me:$LINENO: result: yes" >&5
11053 echo "${ECHO_T}yes" >&6
11055 # FIXME - insert some real tests, host_os isn't really good enough
11058 if test -n "$STRIP" ; then
11059 striplib="$STRIP -x"
11060 echo "$as_me:$LINENO: result: yes" >&5
11061 echo "${ECHO_T}yes" >&6
11063 echo "$as_me:$LINENO: result: no" >&5
11064 echo "${ECHO_T}no" >&6
11068 echo "$as_me:$LINENO: result: no" >&5
11069 echo "${ECHO_T}no" >&6
11074 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11075 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11076 library_names_spec=
11077 libname_spec='lib$name'
11081 postuninstall_cmds=
11085 shlibpath_overrides_runpath=unknown
11087 dynamic_linker="$host_os ld.so"
11088 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11089 if test "$GCC" = yes; then
11090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11091 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11092 # if the path contains ";" then we assume it to be the separator
11093 # otherwise default to the standard path separator (i.e. ":") - it is
11094 # assumed that no part of a normal pathname contains ";" but that should
11095 # okay in the real world where ";" in dirpaths is itself problematic.
11096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11103 need_lib_prefix=unknown
11104 hardcode_into_libs=no
11106 # when you set need_version to no, make sure it does not cause -set_version
11107 # flags to be left without arguments
11108 need_version=unknown
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11114 shlibpath_var=LIBPATH
11116 # AIX 3 has no versioning support, so we append a major version to the name.
11117 soname_spec='${libname}${release}${shared_ext}$major'
11124 hardcode_into_libs=yes
11125 if test "$host_cpu" = ia64; then
11126 # AIX 5 supports IA64
11127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11128 shlibpath_var=LD_LIBRARY_PATH
11130 # With GCC up to 2.95.x, collect2 would create an import file
11131 # for dependence libraries. The import file would start with
11132 # the line `#! .'. This would cause the generated library to
11133 # depend on `.', always an invalid library. This was fixed in
11134 # development snapshots of GCC prior to 3.0.
11136 aix4 | aix4.[01] | aix4.[01].*)
11137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11139 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11142 can_build_shared=no
11146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11147 # soname into executable. Probably we can add versioning support to
11148 # collect2, so additional links can be useful in future.
11149 if test "$aix_use_runtimelinking" = yes; then
11150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11151 # instead of lib<name>.a to let people know that these are not
11152 # typical AIX shared libraries.
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 # We preserve .a as extension for shared libraries through AIX4.2
11156 # and later when we are not doing run time linking.
11157 library_names_spec='${libname}${release}.a $libname.a'
11158 soname_spec='${libname}${release}${shared_ext}$major'
11160 shlibpath_var=LIBPATH
11165 library_names_spec='$libname.ixlibrary $libname.a'
11166 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11167 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'
11171 library_names_spec='${libname}${shared_ext}'
11172 dynamic_linker="$host_os ld.so"
11173 shlibpath_var=LIBRARY_PATH
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11185 # the default ld.so.conf also contains /usr/contrib/lib and
11186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11187 # libtool to hard-code these into programs
11190 cygwin* | mingw* | pw32*)
11191 version_type=windows
11196 case $GCC,$host_os in
11197 yes,cygwin* | yes,mingw* | yes,pw32*)
11198 library_names_spec='$libname.dll.a'
11199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11200 postinstall_cmds='base_file=`basename \${file}`~
11201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11202 dldir=$destdir/`dirname \$dlpath`~
11203 test -d \$dldir || mkdir -p \$dldir~
11204 $install_prog $dir/$dlname \$dldir/$dlname'
11205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11206 dlpath=$dir/\$dldll~
11208 shlibpath_overrides_runpath=yes
11212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11214 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11217 # MinGW DLLs use traditional 'lib' prefix
11218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11220 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11221 # It is most probably a Windows format PATH printed by
11222 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11223 # path with ; separators, and with drive letters. We can handle the
11224 # drive letters (cygwin fileutils understands them), so leave them,
11225 # especially as we might pass files found there to a mingw objdump,
11226 # which wouldn't understand a cygwinified path. Ahh.
11227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11233 # pw32 DLLs use 'pw' prefix rather than 'lib'
11234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11243 dynamic_linker='Win32 ld.exe'
11244 # FIXME: first we should search . and the directory the executable is in
11248 darwin* | rhapsody*)
11249 dynamic_linker="$host_os dyld"
11250 version_type=darwin
11253 # FIXME: Relying on posixy $() will cause problems for
11254 # cross-compilation, but unfortunately the echo tests do not
11255 # yet detect zsh echo's removal of \ escapes.
11256 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11257 soname_spec='${libname}${release}${major}$shared_ext'
11258 shlibpath_overrides_runpath=yes
11259 shlibpath_var=DYLD_LIBRARY_PATH
11260 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11261 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11262 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11263 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"`
11265 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11282 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11283 version_type=freebsd-$objformat
11284 case $version_type in
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11295 shlibpath_var=LD_LIBRARY_PATH
11298 shlibpath_overrides_runpath=yes
11300 freebsd3.01* | freebsdelf3.01*)
11301 shlibpath_overrides_runpath=yes
11302 hardcode_into_libs=yes
11305 shlibpath_overrides_runpath=no
11306 hardcode_into_libs=yes
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 hardcode_into_libs=yes
11321 hpux9* | hpux10* | hpux11*)
11322 # Give a soname corresponding to the major version so that dld.sl refuses to
11323 # link against other versions.
11327 case "$host_cpu" in
11330 hardcode_into_libs=yes
11331 dynamic_linker="$host_os dld.so"
11332 shlibpath_var=LD_LIBRARY_PATH
11333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 if test "X$HPUX_IA64_MODE" = X32; then
11337 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11339 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11345 hardcode_into_libs=yes
11346 dynamic_linker="$host_os dld.sl"
11347 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11348 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11356 dynamic_linker="$host_os dld.sl"
11357 shlibpath_var=SHLIB_PATH
11358 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11363 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11364 postinstall_cmds='chmod 555 $lib'
11367 irix5* | irix6* | nonstopux*)
11369 nonstopux*) version_type=nonstopux ;;
11371 if test "$lt_cv_prog_gnu_ld" = yes; then
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11382 irix5* | nonstopux*)
11383 libsuff= shlibsuff=
11386 case $LD in # libtool.m4 will add one of these switches to LD
11387 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11388 libsuff= shlibsuff= libmagic=32-bit;;
11389 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11390 libsuff=32 shlibsuff=N32 libmagic=N32;;
11391 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11392 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11393 *) libsuff= shlibsuff= libmagic=never-match;;
11397 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11398 shlibpath_overrides_runpath=no
11399 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11400 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11401 hardcode_into_libs=yes
11404 # No shared lib support for Linux oldld, aout, or coff.
11405 linux*oldld* | linux*aout* | linux*coff*)
11409 # This must be Linux ELF.
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11417 shlibpath_var=LD_LIBRARY_PATH
11418 shlibpath_overrides_runpath=no
11419 # This implies no fast_install, which is unacceptable.
11420 # Some rework will be needed to allow for fast_install
11421 # before this can be enabled.
11422 hardcode_into_libs=yes
11424 # We used to test for /lib/ld.so.1 and disable shared libraries on
11425 # powerpc, because MkLinux only supported shared libraries with the
11426 # GNU dynamic linker. Since this was broken with cross compilers,
11427 # most powerpc-linux boxes support dynamic linking these days and
11428 # people can always --disable-shared, the test was removed, and we
11429 # assume the GNU/Linux dynamic linker is in use.
11430 dynamic_linker='GNU/Linux ld.so'
11437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11440 dynamic_linker='NetBSD (a.out) ld.so'
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 dynamic_linker='NetBSD ld.elf_so'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 shlibpath_overrides_runpath=yes
11448 hardcode_into_libs=yes
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=yes
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11474 shlibpath_var=LD_LIBRARY_PATH
11475 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11477 openbsd2.[89] | openbsd2.[89].*)
11478 shlibpath_overrides_runpath=no
11481 shlibpath_overrides_runpath=yes
11485 shlibpath_overrides_runpath=yes
11490 libname_spec='$name'
11493 library_names_spec='$libname${shared_ext} $libname.a'
11494 dynamic_linker='OS/2 ld.exe'
11495 shlibpath_var=LIBPATH
11498 osf3* | osf4* | osf5*)
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11511 soname_spec='${libname}${release}${shared_ext}$major'
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 shlibpath_var=LD_LIBRARY_PATH
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 shlibpath_overrides_runpath=yes
11524 hardcode_into_libs=yes
11525 # ldd complains unless libraries are executable
11526 postinstall_cmds='chmod +x $lib'
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11532 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=yes
11535 if test "$with_gnu_ld" = yes; then
11541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 case $host_vendor in
11548 shlibpath_overrides_runpath=no
11550 export_dynamic_flag_spec='${wl}-Blargedynsym'
11551 runpath_var=LD_RUN_PATH
11559 shlibpath_overrides_runpath=no
11560 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11566 if test -d /usr/nec ;then
11568 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11569 soname_spec='$libname${shared_ext}.$major'
11570 shlibpath_var=LD_LIBRARY_PATH
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577 soname_spec='${libname}${release}${shared_ext}$major'
11578 shlibpath_var=LD_LIBRARY_PATH
11585 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11586 echo "${ECHO_T}$dynamic_linker" >&6
11587 test "$dynamic_linker" = no && can_build_shared=no
11589 if test "x$enable_dlopen" != xyes; then
11590 enable_dlopen=unknown
11591 enable_dlopen_self=unknown
11592 enable_dlopen_self_static=unknown
11599 lt_cv_dlopen="load_add_on"
11601 lt_cv_dlopen_self=yes
11605 lt_cv_dlopen="LoadLibrary"
11610 lt_cv_dlopen="dlopen"
11615 # if libdl is installed we need to link against it
11616 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11617 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11618 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 ac_check_lib_save_LIBS=$LIBS
11623 cat >conftest.$ac_ext <<_ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11630 /* Override any gcc2 internal prototype to avoid an error. */
11634 /* We use char because int might match the return type of a gcc2
11635 builtin and then its argument prototype would still apply. */
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647 (eval $ac_link) 2>conftest.er1
11649 grep -v '^ *+' conftest.er1 >conftest.err
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
11654 { ac_try='test -z "$ac_cxx_werror_flag"
11655 || test ! -s conftest.err'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 ac_cv_lib_dl_dlopen=yes
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11672 ac_cv_lib_dl_dlopen=no
11674 rm -f conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11678 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11679 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11680 if test $ac_cv_lib_dl_dlopen = yes; then
11681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11684 lt_cv_dlopen="dyld"
11686 lt_cv_dlopen_self=yes
11693 echo "$as_me:$LINENO: checking for shl_load" >&5
11694 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11695 if test "${ac_cv_func_shl_load+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 cat >conftest.$ac_ext <<_ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11706 #define shl_load innocuous_shl_load
11708 /* System header to define __stub macros and hopefully few prototypes,
11709 which can conflict with char shl_load (); below.
11710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11711 <limits.h> exists even on freestanding compilers. */
11714 # include <limits.h>
11716 # include <assert.h>
11721 /* Override any gcc2 internal prototype to avoid an error. */
11726 /* We use char because int might match the return type of a gcc2
11727 builtin and then its argument prototype would still apply. */
11729 /* The GNU C library defines this for functions which it implements
11730 to always fail with ENOSYS. Some functions are actually named
11731 something starting with __ and the normal name is an alias. */
11732 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11735 char (*f) () = shl_load;
11744 return f != shl_load;
11749 rm -f conftest.$ac_objext conftest$ac_exeext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11751 (eval $ac_link) 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -z "$ac_cxx_werror_flag"
11759 || test ! -s conftest.err'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest$ac_exeext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_func_shl_load=yes
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 ac_cv_func_shl_load=no
11778 rm -f conftest.err conftest.$ac_objext \
11779 conftest$ac_exeext conftest.$ac_ext
11781 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11782 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11783 if test $ac_cv_func_shl_load = yes; then
11784 lt_cv_dlopen="shl_load"
11786 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11787 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 ac_check_lib_save_LIBS=$LIBS
11793 cat >conftest.$ac_ext <<_ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11800 /* Override any gcc2 internal prototype to avoid an error. */
11804 /* We use char because int might match the return type of a gcc2
11805 builtin and then its argument prototype would still apply. */
11815 rm -f conftest.$ac_objext conftest$ac_exeext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11817 (eval $ac_link) 2>conftest.er1
11819 grep -v '^ *+' conftest.er1 >conftest.err
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -z "$ac_cxx_werror_flag"
11825 || test ! -s conftest.err'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest$ac_exeext'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 ac_cv_lib_dld_shl_load=yes
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11842 ac_cv_lib_dld_shl_load=no
11844 rm -f conftest.err conftest.$ac_objext \
11845 conftest$ac_exeext conftest.$ac_ext
11846 LIBS=$ac_check_lib_save_LIBS
11848 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11849 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11850 if test $ac_cv_lib_dld_shl_load = yes; then
11851 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11853 echo "$as_me:$LINENO: checking for dlopen" >&5
11854 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11855 if test "${ac_cv_func_dlopen+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 cat >conftest.$ac_ext <<_ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11866 #define dlopen innocuous_dlopen
11868 /* System header to define __stub macros and hopefully few prototypes,
11869 which can conflict with char dlopen (); below.
11870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11871 <limits.h> exists even on freestanding compilers. */
11874 # include <limits.h>
11876 # include <assert.h>
11881 /* Override any gcc2 internal prototype to avoid an error. */
11886 /* We use char because int might match the return type of a gcc2
11887 builtin and then its argument prototype would still apply. */
11889 /* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11895 char (*f) () = dlopen;
11904 return f != dlopen;
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11911 (eval $ac_link) 2>conftest.er1
11913 grep -v '^ *+' conftest.er1 >conftest.err
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_cxx_werror_flag"
11919 || test ! -s conftest.err'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_cv_func_dlopen=yes
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_cv_func_dlopen=no
11938 rm -f conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11941 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11942 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11943 if test $ac_cv_func_dlopen = yes; then
11944 lt_cv_dlopen="dlopen"
11946 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11947 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 ac_check_lib_save_LIBS=$LIBS
11953 cat >conftest.$ac_ext <<_ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11960 /* Override any gcc2 internal prototype to avoid an error. */
11964 /* We use char because int might match the return type of a gcc2
11965 builtin and then its argument prototype would still apply. */
11975 rm -f conftest.$ac_objext conftest$ac_exeext
11976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977 (eval $ac_link) 2>conftest.er1
11979 grep -v '^ *+' conftest.er1 >conftest.err
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
11984 { ac_try='test -z "$ac_cxx_werror_flag"
11985 || test ! -s conftest.err'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; } &&
11991 { ac_try='test -s conftest$ac_exeext'
11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; }; then
11997 ac_cv_lib_dl_dlopen=yes
11999 echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12002 ac_cv_lib_dl_dlopen=no
12004 rm -f conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12008 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12009 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12010 if test $ac_cv_lib_dl_dlopen = yes; then
12011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12013 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12014 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12015 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 ac_check_lib_save_LIBS=$LIBS
12019 LIBS="-lsvld $LIBS"
12020 cat >conftest.$ac_ext <<_ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12027 /* Override any gcc2 internal prototype to avoid an error. */
12031 /* We use char because int might match the return type of a gcc2
12032 builtin and then its argument prototype would still apply. */
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044 (eval $ac_link) 2>conftest.er1
12046 grep -v '^ *+' conftest.er1 >conftest.err
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_cxx_werror_flag"
12052 || test ! -s conftest.err'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest$ac_exeext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_lib_svld_dlopen=yes
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_cv_lib_svld_dlopen=no
12071 rm -f conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12073 LIBS=$ac_check_lib_save_LIBS
12075 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12076 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12077 if test $ac_cv_lib_svld_dlopen = yes; then
12078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12080 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12081 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12082 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 ac_check_lib_save_LIBS=$LIBS
12087 cat >conftest.$ac_ext <<_ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12094 /* Override any gcc2 internal prototype to avoid an error. */
12098 /* We use char because int might match the return type of a gcc2
12099 builtin and then its argument prototype would still apply. */
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111 (eval $ac_link) 2>conftest.er1
12113 grep -v '^ *+' conftest.er1 >conftest.err
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -z "$ac_cxx_werror_flag"
12119 || test ! -s conftest.err'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; } &&
12125 { ac_try='test -s conftest$ac_exeext'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 ac_cv_lib_dld_dld_link=yes
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12136 ac_cv_lib_dld_dld_link=no
12138 rm -f conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140 LIBS=$ac_check_lib_save_LIBS
12142 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12143 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12144 if test $ac_cv_lib_dld_dld_link = yes; then
12145 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12166 if test "x$lt_cv_dlopen" != xno; then
12172 case $lt_cv_dlopen in
12174 save_CPPFLAGS="$CPPFLAGS"
12175 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12177 save_LDFLAGS="$LDFLAGS"
12178 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12181 LIBS="$lt_cv_dlopen_libs $LIBS"
12183 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12184 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12185 if test "${lt_cv_dlopen_self+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 if test "$cross_compiling" = yes; then :
12189 lt_cv_dlopen_self=cross
12191 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12192 lt_status=$lt_dlunknown
12193 cat > conftest.$ac_ext <<EOF
12194 #line 12194 "configure"
12195 #include "confdefs.h"
12204 # define LT_DLGLOBAL RTLD_GLOBAL
12207 # define LT_DLGLOBAL DL_GLOBAL
12209 # define LT_DLGLOBAL 0
12213 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12214 find out it does not work in some platform. */
12215 #ifndef LT_DLLAZY_OR_NOW
12217 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12220 # define LT_DLLAZY_OR_NOW DL_LAZY
12223 # define LT_DLLAZY_OR_NOW RTLD_NOW
12226 # define LT_DLLAZY_OR_NOW DL_NOW
12228 # define LT_DLLAZY_OR_NOW 0
12236 extern "C" void exit (int);
12239 void fnord() { int i=42;}
12242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12243 int status = $lt_dlunknown;
12247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12248 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12249 /* dlclose (self); */
12255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12256 (eval $ac_link) 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12260 (./conftest; exit; ) 2>/dev/null
12262 case x$lt_status in
12263 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12264 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12265 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12268 # compilation failed
12269 lt_cv_dlopen_self=no
12276 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12277 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12279 if test "x$lt_cv_dlopen_self" = xyes; then
12280 LDFLAGS="$LDFLAGS $link_static_flag"
12281 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12282 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12283 if test "${lt_cv_dlopen_self_static+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 if test "$cross_compiling" = yes; then :
12287 lt_cv_dlopen_self_static=cross
12289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12290 lt_status=$lt_dlunknown
12291 cat > conftest.$ac_ext <<EOF
12292 #line 12292 "configure"
12293 #include "confdefs.h"
12302 # define LT_DLGLOBAL RTLD_GLOBAL
12305 # define LT_DLGLOBAL DL_GLOBAL
12307 # define LT_DLGLOBAL 0
12311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12312 find out it does not work in some platform. */
12313 #ifndef LT_DLLAZY_OR_NOW
12315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12318 # define LT_DLLAZY_OR_NOW DL_LAZY
12321 # define LT_DLLAZY_OR_NOW RTLD_NOW
12324 # define LT_DLLAZY_OR_NOW DL_NOW
12326 # define LT_DLLAZY_OR_NOW 0
12334 extern "C" void exit (int);
12337 void fnord() { int i=42;}
12340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12341 int status = $lt_dlunknown;
12345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12347 /* dlclose (self); */
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12358 (./conftest; exit; ) 2>/dev/null
12360 case x$lt_status in
12361 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12362 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12363 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12366 # compilation failed
12367 lt_cv_dlopen_self_static=no
12374 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12375 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12378 CPPFLAGS="$save_CPPFLAGS"
12379 LDFLAGS="$save_LDFLAGS"
12384 case $lt_cv_dlopen_self in
12385 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12386 *) enable_dlopen_self=unknown ;;
12389 case $lt_cv_dlopen_self_static in
12390 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12391 *) enable_dlopen_self_static=unknown ;;
12396 # The else clause should only fire when bootstrapping the
12397 # libtool distribution, otherwise you forgot to ship ltmain.sh
12398 # with your package, and you will get complaints that there are
12399 # no rules to generate ltmain.sh.
12400 if test -f "$ltmain"; then
12401 # See if we are running on zsh, and set the options which allow our commands through
12402 # without removal of \ escapes.
12403 if test -n "${ZSH_VERSION+set}" ; then
12404 setopt NO_GLOB_SUBST
12406 # Now quote all the things that may contain metacharacters while being
12407 # careful not to overquote the AC_SUBSTed values. We take copies of the
12408 # variables and quote the copies for generation of the libtool script.
12409 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12410 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12411 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12412 deplibs_check_method reload_flag reload_cmds need_locks \
12413 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12414 lt_cv_sys_global_symbol_to_c_name_address \
12415 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12416 old_postinstall_cmds old_postuninstall_cmds \
12420 lt_prog_compiler_wl_CXX \
12421 lt_prog_compiler_pic_CXX \
12422 lt_prog_compiler_static_CXX \
12423 lt_prog_compiler_no_builtin_flag_CXX \
12424 export_dynamic_flag_spec_CXX \
12425 thread_safe_flag_spec_CXX \
12426 whole_archive_flag_spec_CXX \
12427 enable_shared_with_static_runtimes_CXX \
12428 old_archive_cmds_CXX \
12429 old_archive_from_new_cmds_CXX \
12430 predep_objects_CXX \
12431 postdep_objects_CXX \
12434 compiler_lib_search_path_CXX \
12436 archive_expsym_cmds_CXX \
12437 postinstall_cmds_CXX \
12438 postuninstall_cmds_CXX \
12439 old_archive_from_expsyms_cmds_CXX \
12440 allow_undefined_flag_CXX \
12441 no_undefined_flag_CXX \
12442 export_symbols_cmds_CXX \
12443 hardcode_libdir_flag_spec_CXX \
12444 hardcode_libdir_flag_spec_ld_CXX \
12445 hardcode_libdir_separator_CXX \
12446 hardcode_automatic_CXX \
12448 module_expsym_cmds_CXX \
12449 lt_cv_prog_compiler_c_o_CXX \
12450 exclude_expsyms_CXX \
12451 include_expsyms_CXX; do
12454 old_archive_cmds_CXX | \
12455 old_archive_from_new_cmds_CXX | \
12456 archive_cmds_CXX | \
12457 archive_expsym_cmds_CXX | \
12458 module_cmds_CXX | \
12459 module_expsym_cmds_CXX | \
12460 old_archive_from_expsyms_cmds_CXX | \
12461 export_symbols_cmds_CXX | \
12462 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12463 postinstall_cmds | postuninstall_cmds | \
12464 old_postinstall_cmds | old_postuninstall_cmds | \
12465 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12466 # Double-quote double-evaled strings.
12467 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12470 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12476 *'\$0 --fallback-echo"')
12477 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12483 cat <<__EOF__ >> "$cfgfile"
12484 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12488 # Shell to use when invoking shell scripts.
12491 # Whether or not to build shared libraries.
12492 build_libtool_libs=$enable_shared
12494 # Whether or not to build static libraries.
12495 build_old_libs=$enable_static
12497 # Whether or not to add -lc for building shared libraries.
12498 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12500 # Whether or not to disallow shared libs when runtime libs are static
12501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12503 # Whether or not to optimize for fast installation.
12504 fast_install=$enable_fast_install
12507 host_alias=$host_alias
12510 # An echo program that does not interpret backslashes.
12515 AR_FLAGS=$lt_AR_FLAGS
12520 # A language-specific compiler.
12521 CC=$lt_compiler_CXX
12523 # Is the compiler the GNU C compiler?
12529 # The linker used to build libraries.
12532 # Whether we need hard or soft links.
12535 # A BSD-compatible nm program.
12538 # A symbol stripping program
12541 # Used to examine libraries when file_magic_cmd begins "file"
12542 MAGIC_CMD=$MAGIC_CMD
12544 # Used on cygwin: DLL creation program.
12547 # Used on cygwin: object dumper.
12550 # Used on cygwin: assembler.
12553 # The name of the directory that contains temporary libtool files.
12556 # How to create reloadable object files.
12557 reload_flag=$lt_reload_flag
12558 reload_cmds=$lt_reload_cmds
12560 # How to pass a linker flag through the compiler.
12561 wl=$lt_lt_prog_compiler_wl_CXX
12563 # Object file suffix (normally "o").
12564 objext="$ac_objext"
12566 # Old archive suffix (normally "a").
12569 # Shared library suffix (normally ".so").
12572 # Executable file suffix (normally "").
12575 # Additional compiler flags for building library objects.
12576 pic_flag=$lt_lt_prog_compiler_pic_CXX
12579 # What is the maximum length of a command?
12580 max_cmd_len=$lt_cv_sys_max_cmd_len
12582 # Does compiler simultaneously support -c and -o options?
12583 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12585 # Must we lock files when doing compilation ?
12586 need_locks=$lt_need_locks
12588 # Do we need the lib prefix for modules?
12589 need_lib_prefix=$need_lib_prefix
12591 # Do we need a version for libraries?
12592 need_version=$need_version
12594 # Whether dlopen is supported.
12595 dlopen_support=$enable_dlopen
12597 # Whether dlopen of programs is supported.
12598 dlopen_self=$enable_dlopen_self
12600 # Whether dlopen of statically linked programs is supported.
12601 dlopen_self_static=$enable_dlopen_self_static
12603 # Compiler flag to prevent dynamic linking.
12604 link_static_flag=$lt_lt_prog_compiler_static_CXX
12606 # Compiler flag to turn off builtin functions.
12607 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12609 # Compiler flag to allow reflexive dlopens.
12610 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12612 # Compiler flag to generate shared objects directly from archives.
12613 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12615 # Compiler flag to generate thread-safe objects.
12616 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12618 # Library versioning type.
12619 version_type=$version_type
12621 # Format of library name prefix.
12622 libname_spec=$lt_libname_spec
12624 # List of archive names. First name is the real one, the rest are links.
12625 # The last name is the one that the linker finds with -lNAME.
12626 library_names_spec=$lt_library_names_spec
12628 # The coded name of the library, if different from the real name.
12629 soname_spec=$lt_soname_spec
12631 # Commands used to build and install an old-style archive.
12633 old_archive_cmds=$lt_old_archive_cmds_CXX
12634 old_postinstall_cmds=$lt_old_postinstall_cmds
12635 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12637 # Create an old-style archive from a shared archive.
12638 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12640 # Create a temporary old-style archive to link instead of a shared archive.
12641 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12643 # Commands used to build and install a shared archive.
12644 archive_cmds=$lt_archive_cmds_CXX
12645 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12646 postinstall_cmds=$lt_postinstall_cmds
12647 postuninstall_cmds=$lt_postuninstall_cmds
12649 # Commands used to build a loadable module (assumed same as above if empty)
12650 module_cmds=$lt_module_cmds_CXX
12651 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12653 # Commands to strip libraries.
12654 old_striplib=$lt_old_striplib
12655 striplib=$lt_striplib
12657 # Dependencies to place before the objects being linked to create a
12659 predep_objects=$lt_predep_objects_CXX
12661 # Dependencies to place after the objects being linked to create a
12663 postdep_objects=$lt_postdep_objects_CXX
12665 # Dependencies to place before the objects being linked to create a
12667 predeps=$lt_predeps_CXX
12669 # Dependencies to place after the objects being linked to create a
12671 postdeps=$lt_postdeps_CXX
12673 # The library search path used internally by the compiler when linking
12674 # a shared library.
12675 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12677 # Method to check whether dependent libraries are shared objects.
12678 deplibs_check_method=$lt_deplibs_check_method
12680 # Command to use when deplibs_check_method == file_magic.
12681 file_magic_cmd=$lt_file_magic_cmd
12683 # Flag that allows shared libraries with undefined symbols to be built.
12684 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12686 # Flag that forces no undefined symbols.
12687 no_undefined_flag=$lt_no_undefined_flag_CXX
12689 # Commands used to finish a libtool library installation in a directory.
12690 finish_cmds=$lt_finish_cmds
12692 # Same as above, but a single script fragment to be evaled but not shown.
12693 finish_eval=$lt_finish_eval
12695 # Take the output of nm and produce a listing of raw symbols and C names.
12696 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12698 # Transform the output of nm in a proper C declaration
12699 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12701 # Transform the output of nm in a C name address pair
12702 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12704 # This is the shared library runtime path variable.
12705 runpath_var=$runpath_var
12707 # This is the shared library path variable.
12708 shlibpath_var=$shlibpath_var
12710 # Is shlibpath searched before the hard-coded library search path?
12711 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12713 # How to hardcode a shared library path into an executable.
12714 hardcode_action=$hardcode_action_CXX
12716 # Whether we should hardcode library paths into libraries.
12717 hardcode_into_libs=$hardcode_into_libs
12719 # Flag to hardcode \$libdir into a binary during linking.
12720 # This must work even if \$libdir does not exist.
12721 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12723 # If ld is used when linking, flag to hardcode \$libdir into
12724 # a binary during linking. This must work even if \$libdir does
12726 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12728 # Whether we need a single -rpath flag with a separated argument.
12729 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12731 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12732 # resulting binary.
12733 hardcode_direct=$hardcode_direct_CXX
12735 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12736 # resulting binary.
12737 hardcode_minus_L=$hardcode_minus_L_CXX
12739 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12740 # the resulting binary.
12741 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12743 # Set to yes if building a shared library automatically hardcodes DIR into the library
12744 # and all subsequent libraries and executables linked against it.
12745 hardcode_automatic=$hardcode_automatic_CXX
12747 # Variables whose values should be saved in libtool wrapper scripts and
12748 # restored at relink time.
12749 variables_saved_for_relink="$variables_saved_for_relink"
12751 # Whether libtool must link a program against all its dependency libraries.
12752 link_all_deplibs=$link_all_deplibs_CXX
12754 # Compile-time system search path for libraries
12755 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12757 # Run-time system search path for libraries
12758 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12760 # Fix the shell variable \$srcfile for the compiler.
12761 fix_srcfile_path="$fix_srcfile_path_CXX"
12763 # Set to yes if exported symbols are required.
12764 always_export_symbols=$always_export_symbols_CXX
12766 # The commands to list exported symbols.
12767 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12769 # The commands to extract the exported symbol list from a shared archive.
12770 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12772 # Symbols that should not be listed in the preloaded symbols.
12773 exclude_expsyms=$lt_exclude_expsyms_CXX
12775 # Symbols that must always be exported.
12776 include_expsyms=$lt_include_expsyms_CXX
12778 # ### END LIBTOOL TAG CONFIG: $tagname
12784 # If there is no Makefile yet, we rely on a make rule to execute
12785 # `config.status --recheck' to rerun these tests and create the
12786 # libtool script then.
12787 test -f Makefile && make "$ltmain"
12792 ac_cpp='$CPP $CPPFLAGS'
12793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12801 with_gnu_ldcxx=$with_gnu_ld
12802 with_gnu_ld=$lt_save_with_gnu_ld
12803 lt_cv_path_LDCXX=$lt_cv_path_LD
12804 lt_cv_path_LD=$lt_save_path_LD
12805 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12806 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12814 if test -n "$F77" && test "X$F77" != "Xno"; then
12817 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12818 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12822 archive_cmds_need_lc_F77=no
12823 allow_undefined_flag_F77=
12824 always_export_symbols_F77=no
12825 archive_expsym_cmds_F77=
12826 export_dynamic_flag_spec_F77=
12827 hardcode_direct_F77=no
12828 hardcode_libdir_flag_spec_F77=
12829 hardcode_libdir_flag_spec_ld_F77=
12830 hardcode_libdir_separator_F77=
12831 hardcode_minus_L_F77=no
12832 hardcode_automatic_F77=no
12834 module_expsym_cmds_F77=
12835 link_all_deplibs_F77=unknown
12836 old_archive_cmds_F77=$old_archive_cmds
12837 no_undefined_flag_F77=
12838 whole_archive_flag_spec_F77=
12839 enable_shared_with_static_runtimes_F77=no
12841 # Source file extension for f77 test sources.
12844 # Object file extension for compiled f77 test sources.
12848 # Code to be used in simple compile tests
12849 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12851 # Code to be used in simple link tests
12852 lt_simple_link_test_code=" program t\n end\n"
12854 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12856 # If no C compiler was specified, use CC.
12859 # Allow CC to be a program name with arguments.
12863 # Allow CC to be a program name with arguments.
12868 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12870 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12871 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12872 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12873 echo "${ECHO_T}$can_build_shared" >&6
12875 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12876 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12877 test "$can_build_shared" = "no" && enable_shared=no
12879 # On AIX, shared libraries and static libraries use the same namespace, and
12880 # are all built from PIC.
12883 test "$enable_shared" = yes && enable_static=no
12884 if test -n "$RANLIB"; then
12885 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12886 postinstall_cmds='$RANLIB $lib'
12890 test "$enable_shared" = yes && enable_static=no
12893 echo "$as_me:$LINENO: result: $enable_shared" >&5
12894 echo "${ECHO_T}$enable_shared" >&6
12896 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12897 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12898 # Make sure either enable_shared or enable_static is yes.
12899 test "$enable_shared" = yes || enable_static=yes
12900 echo "$as_me:$LINENO: result: $enable_static" >&5
12901 echo "${ECHO_T}$enable_static" >&6
12903 test "$ld_shlibs_F77" = no && can_build_shared=no
12908 lt_prog_compiler_wl_F77=
12909 lt_prog_compiler_pic_F77=
12910 lt_prog_compiler_static_F77=
12912 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12913 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12915 if test "$GCC" = yes; then
12916 lt_prog_compiler_wl_F77='-Wl,'
12917 lt_prog_compiler_static_F77='-static'
12921 # All AIX code is PIC.
12922 if test "$host_cpu" = ia64; then
12923 # AIX 5 now supports IA64 processor
12924 lt_prog_compiler_static_F77='-Bstatic'
12929 # FIXME: we need at least 68020 code to build shared libraries, but
12930 # adding the `-m68020' flag to GCC prevents building anything better,
12932 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12935 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12936 # PIC is the default for these OSes.
12939 mingw* | pw32* | os2*)
12940 # This hack is so that the source file can tell whether it is being
12941 # built for inclusion in a dll (and should export symbols for example).
12942 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12945 darwin* | rhapsody*)
12946 # PIC is the default on this platform
12947 # Common symbols not allowed in MH_DYLIB files
12948 lt_prog_compiler_pic_F77='-fno-common'
12952 # Just because we use GCC doesn't mean we suddenly get shared libraries
12953 # on systems that don't support them.
12954 lt_prog_compiler_can_build_shared_F77=no
12959 if test -d /usr/nec; then
12960 lt_prog_compiler_pic_F77=-Kconform_pic
12965 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12966 # not for PA HP-UX.
12967 case "$host_cpu" in
12972 lt_prog_compiler_pic_F77='-fPIC'
12978 lt_prog_compiler_pic_F77='-fPIC'
12982 # PORTME Check for flag to pass linker flags through the system compiler.
12985 lt_prog_compiler_wl_F77='-Wl,'
12986 if test "$host_cpu" = ia64; then
12987 # AIX 5 now supports IA64 processor
12988 lt_prog_compiler_static_F77='-Bstatic'
12990 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12994 mingw* | pw32* | os2*)
12995 # This hack is so that the source file can tell whether it is being
12996 # built for inclusion in a dll (and should export symbols for example).
12997 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13000 hpux9* | hpux10* | hpux11*)
13001 lt_prog_compiler_wl_F77='-Wl,'
13002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13003 # not for PA HP-UX.
13004 case "$host_cpu" in
13009 lt_prog_compiler_pic_F77='+Z'
13012 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13013 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13016 irix5* | irix6* | nonstopux*)
13017 lt_prog_compiler_wl_F77='-Wl,'
13018 # PIC (with -KPIC) is the default.
13019 lt_prog_compiler_static_F77='-non_shared'
13023 lt_prog_compiler_pic_F77='-KPIC'
13024 lt_prog_compiler_static_F77='-Bstatic'
13030 lt_prog_compiler_wl_F77='-Wl,'
13031 lt_prog_compiler_pic_F77='-KPIC'
13032 lt_prog_compiler_static_F77='-static'
13035 lt_prog_compiler_wl_F77='-Wl,'
13036 # All Alpha code is PIC.
13037 lt_prog_compiler_static_F77='-non_shared'
13042 osf3* | osf4* | osf5*)
13043 lt_prog_compiler_wl_F77='-Wl,'
13044 # All OSF/1 code is PIC.
13045 lt_prog_compiler_static_F77='-non_shared'
13049 lt_prog_compiler_pic_F77='-Kpic'
13050 lt_prog_compiler_static_F77='-dn'
13054 lt_prog_compiler_wl_F77='-Wl,'
13055 lt_prog_compiler_pic_F77='-KPIC'
13056 lt_prog_compiler_static_F77='-Bstatic'
13060 lt_prog_compiler_wl_F77='-Qoption ld '
13061 lt_prog_compiler_pic_F77='-PIC'
13062 lt_prog_compiler_static_F77='-Bstatic'
13065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13066 lt_prog_compiler_wl_F77='-Wl,'
13067 lt_prog_compiler_pic_F77='-KPIC'
13068 lt_prog_compiler_static_F77='-Bstatic'
13072 if test -d /usr/nec ;then
13073 lt_prog_compiler_pic_F77='-Kconform_pic'
13074 lt_prog_compiler_static_F77='-Bstatic'
13079 lt_prog_compiler_pic_F77='-pic'
13080 lt_prog_compiler_static_F77='-Bstatic'
13084 lt_prog_compiler_can_build_shared_F77=no
13089 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13090 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13093 # Check to make sure the PIC flag actually works.
13095 if test -n "$lt_prog_compiler_pic_F77"; then
13096 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13097 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13098 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 lt_prog_compiler_pic_works_F77=no
13102 ac_outfile=conftest.$ac_objext
13103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13104 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13105 # Insert the option either (1) after the last *FLAGS variable, or
13106 # (2) before a word containing "conftest.", or (3) at the end.
13107 # Note that $ac_compile itself does not contain backslashes and begins
13108 # with a dollar sign (not a hyphen), so the echo should work correctly.
13109 # The option is referenced via a variable to avoid confusing sed.
13110 lt_compile=`echo "$ac_compile" | $SED \
13111 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13113 -e 's:$: $lt_compiler_flag:'`
13114 (eval echo "\"\$as_me:13114: $lt_compile\"" >&5)
13115 (eval "$lt_compile" 2>conftest.err)
13117 cat conftest.err >&5
13118 echo "$as_me:13118: \$? = $ac_status" >&5
13119 if (exit $ac_status) && test -s "$ac_outfile"; then
13120 # The compiler can only warn and ignore the option if not recognized
13121 # So say no if there are warnings
13122 if test ! -s conftest.err; then
13123 lt_prog_compiler_pic_works_F77=yes
13129 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13130 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13132 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13133 case $lt_prog_compiler_pic_F77 in
13135 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13138 lt_prog_compiler_pic_F77=
13139 lt_prog_compiler_can_build_shared_F77=no
13144 # For platforms which do not support PIC, -DPIC is meaningless:
13146 lt_prog_compiler_pic_F77=
13149 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13153 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13154 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13155 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 lt_cv_prog_compiler_c_o_F77=no
13159 $rm -r conftest 2>/dev/null
13163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13165 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13166 # that will create temporary files in the current directory regardless of
13167 # the output directory. Thus, making CWD read-only will cause this test
13168 # to fail, enabling locking or at least warning the user not to do parallel
13172 lt_compiler_flag="-o out/conftest2.$ac_objext"
13173 # Insert the option either (1) after the last *FLAGS variable, or
13174 # (2) before a word containing "conftest.", or (3) at the end.
13175 # Note that $ac_compile itself does not contain backslashes and begins
13176 # with a dollar sign (not a hyphen), so the echo should work correctly.
13177 lt_compile=`echo "$ac_compile" | $SED \
13178 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13180 -e 's:$: $lt_compiler_flag:'`
13181 (eval echo "\"\$as_me:13181: $lt_compile\"" >&5)
13182 (eval "$lt_compile" 2>out/conftest.err)
13184 cat out/conftest.err >&5
13185 echo "$as_me:13185: \$? = $ac_status" >&5
13186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13188 # The compiler can only warn and ignore the option if not recognized
13189 # So say no if there are warnings
13190 if test ! -s out/conftest.err; then
13191 lt_cv_prog_compiler_c_o_F77=yes
13195 $rm conftest* out/*
13202 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13203 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13206 hard_links="nottested"
13207 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13208 # do not overwrite the value of need_locks provided by the user
13209 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13210 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13215 ln conftest.a conftest.b 2>&5 || hard_links=no
13216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13217 echo "$as_me:$LINENO: result: $hard_links" >&5
13218 echo "${ECHO_T}$hard_links" >&6
13219 if test "$hard_links" = no; then
13220 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13221 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13228 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13229 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13232 allow_undefined_flag_F77=
13233 enable_shared_with_static_runtimes_F77=no
13235 archive_expsym_cmds_F77=
13236 old_archive_From_new_cmds_F77=
13237 old_archive_from_expsyms_cmds_F77=
13238 export_dynamic_flag_spec_F77=
13239 whole_archive_flag_spec_F77=
13240 thread_safe_flag_spec_F77=
13241 hardcode_libdir_flag_spec_F77=
13242 hardcode_libdir_flag_spec_ld_F77=
13243 hardcode_libdir_separator_F77=
13244 hardcode_direct_F77=no
13245 hardcode_minus_L_F77=no
13246 hardcode_shlibpath_var_F77=unsupported
13247 link_all_deplibs_F77=unknown
13248 hardcode_automatic_F77=no
13250 module_expsym_cmds_F77=
13251 always_export_symbols_F77=no
13252 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13253 # include_expsyms should be a list of space-separated symbols to be *always*
13254 # included in the symbol list
13255 include_expsyms_F77=
13256 # exclude_expsyms can be an extended regexp of symbols to exclude
13257 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13258 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13259 # as well as any symbol that contains `d'.
13260 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13262 # platforms (ab)use it in PIC code, but their linkers get confused if
13263 # the symbol is explicitly referenced. Since portable code cannot
13264 # rely on this symbol name, it's probably fine to never include it in
13265 # preloaded symbol tables.
13266 extract_expsyms_cmds=
13269 cygwin* | mingw* | pw32*)
13270 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13271 # When not using gcc, we currently assume that we are using
13272 # Microsoft Visual C++.
13273 if test "$GCC" != yes; then
13283 if test "$with_gnu_ld" = yes; then
13284 # If archive_cmds runs LD, not CC, wlarc should be empty
13287 # See if GNU ld supports shared libraries.
13289 aix3* | aix4* | aix5*)
13290 # On AIX/PPC, the GNU linker is very broken
13291 if test "$host_cpu" != ia64; then
13295 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13296 *** to be unable to reliably create shared libraries on AIX.
13297 *** Therefore, libtool is disabling shared libraries support. If you
13298 *** really care for shared libraries, you may want to modify your PATH
13299 *** so that a non-GNU linker is found, and then restart.
13306 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)'
13307 hardcode_libdir_flag_spec_F77='-L$libdir'
13308 hardcode_minus_L_F77=yes
13310 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13311 # that the semantics of dynamic libraries on AmigaOS, at least up
13312 # to version 4, is to share data among multiple programs linked
13313 # with the same dynamic library. Since this doesn't match the
13314 # behavior of shared libraries on other platforms, we can't use
13320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13321 allow_undefined_flag_F77=unsupported
13322 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13323 # support --undefined. This deserves some investigation. FIXME
13324 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13330 cygwin* | mingw* | pw32*)
13331 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13332 # as there is no search path for DLLs.
13333 hardcode_libdir_flag_spec_F77='-L$libdir'
13334 allow_undefined_flag_F77=unsupported
13335 always_export_symbols_F77=no
13336 enable_shared_with_static_runtimes_F77=yes
13337 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13339 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13340 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13341 # If the export-symbols file already is a .def file (1st line
13342 # is EXPORTS), use it as is; otherwise, prepend...
13343 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13344 cp $export_symbols $output_objdir/$soname.def;
13346 echo EXPORTS > $output_objdir/$soname.def;
13347 cat $export_symbols >> $output_objdir/$soname.def;
13349 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13357 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13360 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13361 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13366 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13370 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13371 *** create shared libraries on Solaris systems. Therefore, libtool
13372 *** is disabling shared libraries support. We urge you to upgrade GNU
13373 *** binutils to release 2.9.1 or newer. Another option is to modify
13374 *** your PATH or compiler configuration so that the native linker is
13375 *** used, and then restart.
13378 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13379 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13387 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13389 hardcode_direct_F77=yes
13390 hardcode_shlibpath_var_F77=no
13394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13395 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13396 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13403 if test "$ld_shlibs_F77" = yes; then
13404 runpath_var=LD_RUN_PATH
13405 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13406 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13407 # ancient GNU ld didn't support --whole-archive et. al.
13408 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13409 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13411 whole_archive_flag_spec_F77=
13415 # PORTME fill in a description of your system's linker (not GNU ld)
13418 allow_undefined_flag_F77=unsupported
13419 always_export_symbols_F77=yes
13420 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'
13421 # Note: this linker hardcodes the directories in LIBPATH if there
13422 # are no directories specified by -L.
13423 hardcode_minus_L_F77=yes
13424 if test "$GCC" = yes && test -z "$link_static_flag"; then
13425 # Neither direct hardcoding nor static linking is supported with a
13427 hardcode_direct_F77=unsupported
13432 if test "$host_cpu" = ia64; then
13433 # On IA64, the linker does run time linking by default, so we don't
13434 # have to do anything special.
13435 aix_use_runtimelinking=no
13436 exp_sym_flag='-Bexport'
13439 # If we're using GNU nm, then we don't want the "-C" option.
13440 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13441 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13442 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'
13444 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'
13446 aix_use_runtimelinking=no
13448 # Test if we are trying to use run time linking or normal
13449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13450 # need to do runtime linking.
13451 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13452 for ld_flag in $LDFLAGS; do
13453 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13454 aix_use_runtimelinking=yes
13460 exp_sym_flag='-bexport'
13461 no_entry_flag='-bnoentry'
13464 # When large executables or shared objects are built, AIX ld can
13465 # have problems creating the table of contents. If linking a library
13466 # or program results in "error TOC overflow" add -mminimal-toc to
13467 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13468 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13470 archive_cmds_F77=''
13471 hardcode_direct_F77=yes
13472 hardcode_libdir_separator_F77=':'
13473 link_all_deplibs_F77=yes
13475 if test "$GCC" = yes; then
13476 case $host_os in aix4.012|aix4.012.*)
13477 # We only want to do this on AIX 4.2 and lower, the check
13478 # below for broken collect2 doesn't work under 4.3+
13479 collect2name=`${CC} -print-prog-name=collect2`
13480 if test -f "$collect2name" && \
13481 strings "$collect2name" | grep resolve_lib_name >/dev/null
13483 # We have reworked collect2
13484 hardcode_direct_F77=yes
13486 # We have old collect2
13487 hardcode_direct_F77=unsupported
13488 # It fails to find uninstalled libraries when the uninstalled
13489 # path is not listed in the libpath. Setting hardcode_minus_L
13490 # to unsupported forces relinking
13491 hardcode_minus_L_F77=yes
13492 hardcode_libdir_flag_spec_F77='-L$libdir'
13493 hardcode_libdir_separator_F77=
13496 shared_flag='-shared'
13499 if test "$host_cpu" = ia64; then
13500 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13501 # chokes on -Wl,-G. The following line is correct:
13504 if test "$aix_use_runtimelinking" = yes; then
13505 shared_flag='${wl}-G'
13507 shared_flag='${wl}-bM:SRE'
13512 # It seems that -bexpall does not export symbols beginning with
13513 # underscore (_), so it is better to generate a list of symbols to export.
13514 always_export_symbols_F77=yes
13515 if test "$aix_use_runtimelinking" = yes; then
13516 # Warning - without using the other runtime loading flags (-brtl),
13517 # -berok will link without error, but may produce a broken library.
13518 allow_undefined_flag_F77='-berok'
13519 # Determine the default libpath from the value encoded in an empty executable.
13520 cat >conftest.$ac_ext <<_ACEOF
13525 rm -f conftest.$ac_objext conftest$ac_exeext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13527 (eval $ac_link) 2>conftest.er1
13529 grep -v '^ *+' conftest.er1 >conftest.err
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } &&
13534 { ac_try='test -z "$ac_f77_werror_flag"
13535 || test ! -s conftest.err'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; } &&
13541 { ac_try='test -s conftest$ac_exeext'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13548 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13550 # Check for a 64-bit object if we didn't find anything.
13551 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; }
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13558 rm -f conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13560 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13562 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13563 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"
13565 if test "$host_cpu" = ia64; then
13566 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13567 allow_undefined_flag_F77="-z nodefs"
13568 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"
13570 # Determine the default libpath from the value encoded in an empty executable.
13571 cat >conftest.$ac_ext <<_ACEOF
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578 (eval $ac_link) 2>conftest.er1
13580 grep -v '^ *+' conftest.er1 >conftest.err
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -z "$ac_f77_werror_flag"
13586 || test ! -s conftest.err'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; } &&
13592 { ac_try='test -s conftest$ac_exeext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13601 # Check for a 64-bit object if we didn't find anything.
13602 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; }
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13609 rm -f conftest.err conftest.$ac_objext \
13610 conftest$ac_exeext conftest.$ac_ext
13611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13613 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13614 # Warning - without using the other run time loading flags,
13615 # -berok will link without error, but may produce a broken library.
13616 no_undefined_flag_F77=' ${wl}-bernotok'
13617 allow_undefined_flag_F77=' ${wl}-berok'
13618 # -bexpall does not export symbols beginning with underscore (_)
13619 always_export_symbols_F77=yes
13620 # Exported symbols can be pulled into shared objects from archives
13621 whole_archive_flag_spec_F77=' '
13622 archive_cmds_need_lc_F77=yes
13623 # This is similar to how AIX traditionally builds it's shared libraries.
13624 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'
13630 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)'
13631 hardcode_libdir_flag_spec_F77='-L$libdir'
13632 hardcode_minus_L_F77=yes
13633 # see comment about different semantics on the GNU ld section
13638 export_dynamic_flag_spec_F77=-rdynamic
13641 cygwin* | mingw* | pw32*)
13642 # When not using gcc, we currently assume that we are using
13643 # Microsoft Visual C++.
13644 # hardcode_libdir_flag_spec is actually meaningless, as there is
13645 # no search path for DLLs.
13646 hardcode_libdir_flag_spec_F77=' '
13647 allow_undefined_flag_F77=unsupported
13648 # Tell ltmain to make .lib files, not .a files.
13650 # Tell ltmain to make .dll files, not .so files.
13652 # FIXME: Setting linknames here is a bad hack.
13653 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13654 # The linker will automatically build a .lib file if we build a DLL.
13655 old_archive_From_new_cmds_F77='true'
13656 # FIXME: Should let the user specify the lib program.
13657 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13658 fix_srcfile_path='`cygpath -w "$srcfile"`'
13659 enable_shared_with_static_runtimes_F77=yes
13662 darwin* | rhapsody*)
13663 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13664 archive_cmds_need_lc_F77=no
13666 rhapsody* | darwin1.[012])
13667 allow_undefined_flag_F77='-undefined suppress'
13670 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13673 # FIXME: Relying on posixy $() will cause problems for
13674 # cross-compilation, but unfortunately the echo tests do not
13675 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13676 # `"' quotes if we put them in here... so don't!
13677 lt_int_apple_cc_single_mod=no
13678 output_verbose_link_cmd='echo'
13679 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13680 lt_int_apple_cc_single_mod=yes
13682 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13683 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13685 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13687 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13688 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13689 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13690 archive_expsym_cmds_F77='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}'
13692 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13694 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13695 hardcode_direct_F77=no
13696 hardcode_automatic_F77=yes
13697 hardcode_shlibpath_var_F77=unsupported
13698 whole_archive_flag_spec_F77='-all_load $convenience'
13699 link_all_deplibs_F77=yes
13704 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13705 hardcode_libdir_flag_spec_F77='-L$libdir'
13706 hardcode_shlibpath_var_F77=no
13713 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13714 # support. Future versions do this automatically, but an explicit c++rt0.o
13715 # does not break anything, and helps significantly (at the cost of a little
13718 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13719 hardcode_libdir_flag_spec_F77='-R$libdir'
13720 hardcode_direct_F77=yes
13721 hardcode_shlibpath_var_F77=no
13724 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13726 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13727 hardcode_direct_F77=yes
13728 hardcode_minus_L_F77=yes
13729 hardcode_shlibpath_var_F77=no
13732 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13734 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13735 hardcode_libdir_flag_spec_F77='-R$libdir'
13736 hardcode_direct_F77=yes
13737 hardcode_shlibpath_var_F77=no
13741 if test "$GCC" = yes; then
13742 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'
13744 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'
13746 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13747 hardcode_libdir_separator_F77=:
13748 hardcode_direct_F77=yes
13750 # hardcode_minus_L: Not really in the search PATH,
13751 # but as the default location of the library.
13752 hardcode_minus_L_F77=yes
13753 export_dynamic_flag_spec_F77='${wl}-E'
13757 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13758 case "$host_cpu" in
13760 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13767 case "$host_cpu" in
13769 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13772 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13776 if test "$with_gnu_ld" = no; then
13777 case "$host_cpu" in
13779 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13780 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13781 hardcode_libdir_separator_F77=:
13782 hardcode_direct_F77=no
13783 hardcode_shlibpath_var_F77=no
13786 hardcode_libdir_flag_spec_F77='-L$libdir'
13787 hardcode_direct_F77=no
13788 hardcode_shlibpath_var_F77=no
13790 # hardcode_minus_L: Not really in the search PATH,
13791 # but as the default location of the library.
13792 hardcode_minus_L_F77=yes
13795 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13796 hardcode_libdir_separator_F77=:
13797 hardcode_direct_F77=yes
13798 export_dynamic_flag_spec_F77='${wl}-E'
13800 # hardcode_minus_L: Not really in the search PATH,
13801 # but as the default location of the library.
13802 hardcode_minus_L_F77=yes
13808 irix5* | irix6* | nonstopux*)
13809 if test "$GCC" = yes; then
13810 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'
13812 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'
13813 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13815 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13816 hardcode_libdir_separator_F77=:
13817 link_all_deplibs_F77=yes
13821 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13822 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13824 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13826 hardcode_libdir_flag_spec_F77='-R$libdir'
13827 hardcode_direct_F77=yes
13828 hardcode_shlibpath_var_F77=no
13832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13833 hardcode_direct_F77=yes
13834 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13835 hardcode_libdir_separator_F77=:
13836 hardcode_shlibpath_var_F77=no
13840 hardcode_direct_F77=yes
13841 hardcode_shlibpath_var_F77=no
13842 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13843 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13844 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13845 export_dynamic_flag_spec_F77='${wl}-E'
13848 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13849 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13850 hardcode_libdir_flag_spec_F77='-R$libdir'
13853 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13854 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13861 hardcode_libdir_flag_spec_F77='-L$libdir'
13862 hardcode_minus_L_F77=yes
13863 allow_undefined_flag_F77=unsupported
13864 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'
13865 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13869 if test "$GCC" = yes; then
13870 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13871 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'
13873 allow_undefined_flag_F77=' -expect_unresolved \*'
13874 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'
13876 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13877 hardcode_libdir_separator_F77=:
13880 osf4* | osf5*) # as osf3* with the addition of -msym flag
13881 if test "$GCC" = yes; then
13882 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13883 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'
13884 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13886 allow_undefined_flag_F77=' -expect_unresolved \*'
13887 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'
13888 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~
13889 $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'
13891 # Both c and cxx compiler support -rpath directly
13892 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13894 hardcode_libdir_separator_F77=:
13898 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13899 hardcode_shlibpath_var_F77=no
13900 export_dynamic_flag_spec_F77='${wl}-Bexport'
13901 runpath_var=LD_RUN_PATH
13902 hardcode_runpath_var=yes
13906 no_undefined_flag_F77=' -z text'
13907 if test "$GCC" = yes; then
13908 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13909 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13910 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13912 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13913 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13916 hardcode_libdir_flag_spec_F77='-R$libdir'
13917 hardcode_shlibpath_var_F77=no
13919 solaris2.[0-5] | solaris2.[0-5].*) ;;
13920 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13921 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13923 link_all_deplibs_F77=yes
13927 if test "x$host_vendor" = xsequent; then
13928 # Use $CC to link under sequent, because it throws in some extra .o
13929 # files that make .init and .fini sections work.
13930 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13932 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13934 hardcode_libdir_flag_spec_F77='-L$libdir'
13935 hardcode_direct_F77=yes
13936 hardcode_minus_L_F77=yes
13937 hardcode_shlibpath_var_F77=no
13941 case $host_vendor in
13943 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13944 hardcode_direct_F77=yes # is this really true???
13947 ## LD is ld it makes a PLAMLIB
13948 ## CC just makes a GrossModule.
13949 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13950 reload_cmds_F77='$CC -r -o $output$reload_objs'
13951 hardcode_direct_F77=no
13954 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13955 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13958 runpath_var='LD_RUN_PATH'
13959 hardcode_shlibpath_var_F77=no
13963 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13964 hardcode_shlibpath_var_F77=no
13965 export_dynamic_flag_spec_F77='-Bexport'
13969 if test -d /usr/nec; then
13970 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971 hardcode_shlibpath_var_F77=no
13972 runpath_var=LD_RUN_PATH
13973 hardcode_runpath_var=yes
13979 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13980 hardcode_direct_F77=yes
13981 hardcode_minus_L_F77=no
13982 hardcode_shlibpath_var_F77=no
13983 hardcode_runpath_var=yes
13984 runpath_var=LD_RUN_PATH
13987 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13988 no_undefined_flag_F77='${wl}-z ${wl}text'
13989 if test "$GCC" = yes; then
13990 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13992 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13994 runpath_var='LD_RUN_PATH'
13995 hardcode_shlibpath_var_F77=no
13999 no_undefined_flag_F77=' -z text'
14000 # $CC -shared without GNU ld will not create a library from C++
14001 # object files and a static libstdc++, better avoid it by now
14002 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14003 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14004 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14005 hardcode_libdir_flag_spec_F77=
14006 hardcode_shlibpath_var_F77=no
14007 runpath_var='LD_RUN_PATH'
14011 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012 hardcode_libdir_flag_spec_F77='-L$libdir'
14013 hardcode_shlibpath_var_F77=no
14022 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14023 echo "${ECHO_T}$ld_shlibs_F77" >&6
14024 test "$ld_shlibs_F77" = no && can_build_shared=no
14026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14027 if test "$GCC" = yes; then
14028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14032 # Do we need to explicitly link libc?
14034 case "x$archive_cmds_need_lc_F77" in
14036 # Assume -lc should be added
14037 archive_cmds_need_lc_F77=yes
14039 if test "$enable_shared" = yes && test "$GCC" = yes; then
14040 case $archive_cmds_F77 in
14042 # FIXME: we may have to deal with multi-command sequences.
14045 # Test whether the compiler implicitly links with -lc since on some
14046 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14047 # to ld, don't add -lc before -lgcc.
14048 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14049 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14054 (eval $ac_compile) 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } 2>conftest.err; then
14060 libobjs=conftest.$ac_objext
14062 wl=$lt_prog_compiler_wl_F77
14068 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14069 allow_undefined_flag_F77=
14070 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14071 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }
14076 archive_cmds_need_lc_F77=no
14078 archive_cmds_need_lc_F77=yes
14080 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14082 cat conftest.err 1>&5
14085 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14086 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14093 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14094 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14095 hardcode_action_F77=
14096 if test -n "$hardcode_libdir_flag_spec_F77" || \
14097 test -n "$runpath_var F77" || \
14098 test "X$hardcode_automatic_F77"="Xyes" ; then
14100 # We can hardcode non-existant directories.
14101 if test "$hardcode_direct_F77" != no &&
14102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14103 # have to relink, otherwise we might link with an installed library
14104 # when we should be linking with a yet-to-be-installed one
14105 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14106 test "$hardcode_minus_L_F77" != no; then
14107 # Linking always hardcodes the temporary library directory.
14108 hardcode_action_F77=relink
14110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14111 hardcode_action_F77=immediate
14114 # We cannot hardcode anything, or else we can only hardcode existing
14116 hardcode_action_F77=unsupported
14118 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14119 echo "${ECHO_T}$hardcode_action_F77" >&6
14121 if test "$hardcode_action_F77" = relink; then
14122 # Fast installation is not supported
14123 enable_fast_install=no
14124 elif test "$shlibpath_overrides_runpath" = yes ||
14125 test "$enable_shared" = no; then
14126 # Fast installation is not necessary
14127 enable_fast_install=needless
14132 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14133 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14134 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14135 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14136 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14137 echo "$as_me:$LINENO: result: yes" >&5
14138 echo "${ECHO_T}yes" >&6
14140 # FIXME - insert some real tests, host_os isn't really good enough
14143 if test -n "$STRIP" ; then
14144 striplib="$STRIP -x"
14145 echo "$as_me:$LINENO: result: yes" >&5
14146 echo "${ECHO_T}yes" >&6
14148 echo "$as_me:$LINENO: result: no" >&5
14149 echo "${ECHO_T}no" >&6
14153 echo "$as_me:$LINENO: result: no" >&5
14154 echo "${ECHO_T}no" >&6
14159 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14160 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14161 library_names_spec=
14162 libname_spec='lib$name'
14166 postuninstall_cmds=
14170 shlibpath_overrides_runpath=unknown
14172 dynamic_linker="$host_os ld.so"
14173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14174 if test "$GCC" = yes; then
14175 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14176 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14177 # if the path contains ";" then we assume it to be the separator
14178 # otherwise default to the standard path separator (i.e. ":") - it is
14179 # assumed that no part of a normal pathname contains ";" but that should
14180 # okay in the real world where ";" in dirpaths is itself problematic.
14181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14186 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14188 need_lib_prefix=unknown
14189 hardcode_into_libs=no
14191 # when you set need_version to no, make sure it does not cause -set_version
14192 # flags to be left without arguments
14193 need_version=unknown
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14199 shlibpath_var=LIBPATH
14201 # AIX 3 has no versioning support, so we append a major version to the name.
14202 soname_spec='${libname}${release}${shared_ext}$major'
14209 hardcode_into_libs=yes
14210 if test "$host_cpu" = ia64; then
14211 # AIX 5 supports IA64
14212 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14213 shlibpath_var=LD_LIBRARY_PATH
14215 # With GCC up to 2.95.x, collect2 would create an import file
14216 # for dependence libraries. The import file would start with
14217 # the line `#! .'. This would cause the generated library to
14218 # depend on `.', always an invalid library. This was fixed in
14219 # development snapshots of GCC prior to 3.0.
14221 aix4 | aix4.[01] | aix4.[01].*)
14222 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14224 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14227 can_build_shared=no
14231 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14232 # soname into executable. Probably we can add versioning support to
14233 # collect2, so additional links can be useful in future.
14234 if test "$aix_use_runtimelinking" = yes; then
14235 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14236 # instead of lib<name>.a to let people know that these are not
14237 # typical AIX shared libraries.
14238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14240 # We preserve .a as extension for shared libraries through AIX4.2
14241 # and later when we are not doing run time linking.
14242 library_names_spec='${libname}${release}.a $libname.a'
14243 soname_spec='${libname}${release}${shared_ext}$major'
14245 shlibpath_var=LIBPATH
14250 library_names_spec='$libname.ixlibrary $libname.a'
14251 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14252 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'
14256 library_names_spec='${libname}${shared_ext}'
14257 dynamic_linker="$host_os ld.so"
14258 shlibpath_var=LIBRARY_PATH
14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265 soname_spec='${libname}${release}${shared_ext}$major'
14266 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14267 shlibpath_var=LD_LIBRARY_PATH
14268 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14269 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14270 # the default ld.so.conf also contains /usr/contrib/lib and
14271 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14272 # libtool to hard-code these into programs
14275 cygwin* | mingw* | pw32*)
14276 version_type=windows
14281 case $GCC,$host_os in
14282 yes,cygwin* | yes,mingw* | yes,pw32*)
14283 library_names_spec='$libname.dll.a'
14284 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14285 postinstall_cmds='base_file=`basename \${file}`~
14286 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14287 dldir=$destdir/`dirname \$dlpath`~
14288 test -d \$dldir || mkdir -p \$dldir~
14289 $install_prog $dir/$dlname \$dldir/$dlname'
14290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14291 dlpath=$dir/\$dldll~
14293 shlibpath_overrides_runpath=yes
14297 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14298 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14299 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14302 # MinGW DLLs use traditional 'lib' prefix
14303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14305 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14306 # It is most probably a Windows format PATH printed by
14307 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14308 # path with ; separators, and with drive letters. We can handle the
14309 # drive letters (cygwin fileutils understands them), so leave them,
14310 # especially as we might pass files found there to a mingw objdump,
14311 # which wouldn't understand a cygwinified path. Ahh.
14312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14314 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14318 # pw32 DLLs use 'pw' prefix rather than 'lib'
14319 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14325 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14328 dynamic_linker='Win32 ld.exe'
14329 # FIXME: first we should search . and the directory the executable is in
14333 darwin* | rhapsody*)
14334 dynamic_linker="$host_os dyld"
14335 version_type=darwin
14338 # FIXME: Relying on posixy $() will cause problems for
14339 # cross-compilation, but unfortunately the echo tests do not
14340 # yet detect zsh echo's removal of \ escapes.
14341 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14342 soname_spec='${libname}${release}${major}$shared_ext'
14343 shlibpath_overrides_runpath=yes
14344 shlibpath_var=DYLD_LIBRARY_PATH
14345 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14346 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14347 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14348 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"`
14350 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14358 soname_spec='${libname}${release}${shared_ext}$major'
14359 shlibpath_var=LD_LIBRARY_PATH
14367 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14368 version_type=freebsd-$objformat
14369 case $version_type in
14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14380 shlibpath_var=LD_LIBRARY_PATH
14383 shlibpath_overrides_runpath=yes
14385 freebsd3.01* | freebsdelf3.01*)
14386 shlibpath_overrides_runpath=yes
14387 hardcode_into_libs=yes
14390 shlibpath_overrides_runpath=no
14391 hardcode_into_libs=yes
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14401 soname_spec='${libname}${release}${shared_ext}$major'
14402 shlibpath_var=LD_LIBRARY_PATH
14403 hardcode_into_libs=yes
14406 hpux9* | hpux10* | hpux11*)
14407 # Give a soname corresponding to the major version so that dld.sl refuses to
14408 # link against other versions.
14412 case "$host_cpu" in
14415 hardcode_into_libs=yes
14416 dynamic_linker="$host_os dld.so"
14417 shlibpath_var=LD_LIBRARY_PATH
14418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420 soname_spec='${libname}${release}${shared_ext}$major'
14421 if test "X$HPUX_IA64_MODE" = X32; then
14422 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14430 hardcode_into_libs=yes
14431 dynamic_linker="$host_os dld.sl"
14432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435 soname_spec='${libname}${release}${shared_ext}$major'
14436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14441 dynamic_linker="$host_os dld.sl"
14442 shlibpath_var=SHLIB_PATH
14443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445 soname_spec='${libname}${release}${shared_ext}$major'
14448 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14449 postinstall_cmds='chmod 555 $lib'
14452 irix5* | irix6* | nonstopux*)
14454 nonstopux*) version_type=nonstopux ;;
14456 if test "$lt_cv_prog_gnu_ld" = yes; then
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14467 irix5* | nonstopux*)
14468 libsuff= shlibsuff=
14471 case $LD in # libtool.m4 will add one of these switches to LD
14472 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14473 libsuff= shlibsuff= libmagic=32-bit;;
14474 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14475 libsuff=32 shlibsuff=N32 libmagic=N32;;
14476 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14477 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14478 *) libsuff= shlibsuff= libmagic=never-match;;
14482 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14483 shlibpath_overrides_runpath=no
14484 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14485 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14486 hardcode_into_libs=yes
14489 # No shared lib support for Linux oldld, aout, or coff.
14490 linux*oldld* | linux*aout* | linux*coff*)
14494 # This must be Linux ELF.
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500 soname_spec='${libname}${release}${shared_ext}$major'
14501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14502 shlibpath_var=LD_LIBRARY_PATH
14503 shlibpath_overrides_runpath=no
14504 # This implies no fast_install, which is unacceptable.
14505 # Some rework will be needed to allow for fast_install
14506 # before this can be enabled.
14507 hardcode_into_libs=yes
14509 # We used to test for /lib/ld.so.1 and disable shared libraries on
14510 # powerpc, because MkLinux only supported shared libraries with the
14511 # GNU dynamic linker. Since this was broken with cross compilers,
14512 # most powerpc-linux boxes support dynamic linking these days and
14513 # people can always --disable-shared, the test was removed, and we
14514 # assume the GNU/Linux dynamic linker is in use.
14515 dynamic_linker='GNU/Linux ld.so'
14522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14525 dynamic_linker='NetBSD (a.out) ld.so'
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14529 dynamic_linker='NetBSD ld.elf_so'
14531 shlibpath_var=LD_LIBRARY_PATH
14532 shlibpath_overrides_runpath=yes
14533 hardcode_into_libs=yes
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 shlibpath_var=LD_LIBRARY_PATH
14540 shlibpath_overrides_runpath=yes
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548 soname_spec='${libname}${release}${shared_ext}$major'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 shlibpath_overrides_runpath=yes
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14562 openbsd2.[89] | openbsd2.[89].*)
14563 shlibpath_overrides_runpath=no
14566 shlibpath_overrides_runpath=yes
14570 shlibpath_overrides_runpath=yes
14575 libname_spec='$name'
14578 library_names_spec='$libname${shared_ext} $libname.a'
14579 dynamic_linker='OS/2 ld.exe'
14580 shlibpath_var=LIBPATH
14583 osf3* | osf4* | osf5*)
14587 soname_spec='${libname}${release}${shared_ext}$major'
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589 shlibpath_var=LD_LIBRARY_PATH
14590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598 shlibpath_var=LD_LIBRARY_PATH
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606 soname_spec='${libname}${release}${shared_ext}$major'
14607 shlibpath_var=LD_LIBRARY_PATH
14608 shlibpath_overrides_runpath=yes
14609 hardcode_into_libs=yes
14610 # ldd complains unless libraries are executable
14611 postinstall_cmds='chmod +x $lib'
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 shlibpath_overrides_runpath=yes
14620 if test "$with_gnu_ld" = yes; then
14626 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14630 shlibpath_var=LD_LIBRARY_PATH
14631 case $host_vendor in
14633 shlibpath_overrides_runpath=no
14635 export_dynamic_flag_spec='${wl}-Blargedynsym'
14636 runpath_var=LD_RUN_PATH
14644 shlibpath_overrides_runpath=no
14645 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14651 if test -d /usr/nec ;then
14653 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14654 soname_spec='$libname${shared_ext}.$major'
14655 shlibpath_var=LD_LIBRARY_PATH
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 soname_spec='${libname}${release}${shared_ext}$major'
14663 shlibpath_var=LD_LIBRARY_PATH
14670 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14671 echo "${ECHO_T}$dynamic_linker" >&6
14672 test "$dynamic_linker" = no && can_build_shared=no
14675 # The else clause should only fire when bootstrapping the
14676 # libtool distribution, otherwise you forgot to ship ltmain.sh
14677 # with your package, and you will get complaints that there are
14678 # no rules to generate ltmain.sh.
14679 if test -f "$ltmain"; then
14680 # See if we are running on zsh, and set the options which allow our commands through
14681 # without removal of \ escapes.
14682 if test -n "${ZSH_VERSION+set}" ; then
14683 setopt NO_GLOB_SUBST
14685 # Now quote all the things that may contain metacharacters while being
14686 # careful not to overquote the AC_SUBSTed values. We take copies of the
14687 # variables and quote the copies for generation of the libtool script.
14688 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14689 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14690 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14691 deplibs_check_method reload_flag reload_cmds need_locks \
14692 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14693 lt_cv_sys_global_symbol_to_c_name_address \
14694 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14695 old_postinstall_cmds old_postuninstall_cmds \
14699 lt_prog_compiler_wl_F77 \
14700 lt_prog_compiler_pic_F77 \
14701 lt_prog_compiler_static_F77 \
14702 lt_prog_compiler_no_builtin_flag_F77 \
14703 export_dynamic_flag_spec_F77 \
14704 thread_safe_flag_spec_F77 \
14705 whole_archive_flag_spec_F77 \
14706 enable_shared_with_static_runtimes_F77 \
14707 old_archive_cmds_F77 \
14708 old_archive_from_new_cmds_F77 \
14709 predep_objects_F77 \
14710 postdep_objects_F77 \
14713 compiler_lib_search_path_F77 \
14715 archive_expsym_cmds_F77 \
14716 postinstall_cmds_F77 \
14717 postuninstall_cmds_F77 \
14718 old_archive_from_expsyms_cmds_F77 \
14719 allow_undefined_flag_F77 \
14720 no_undefined_flag_F77 \
14721 export_symbols_cmds_F77 \
14722 hardcode_libdir_flag_spec_F77 \
14723 hardcode_libdir_flag_spec_ld_F77 \
14724 hardcode_libdir_separator_F77 \
14725 hardcode_automatic_F77 \
14727 module_expsym_cmds_F77 \
14728 lt_cv_prog_compiler_c_o_F77 \
14729 exclude_expsyms_F77 \
14730 include_expsyms_F77; do
14733 old_archive_cmds_F77 | \
14734 old_archive_from_new_cmds_F77 | \
14735 archive_cmds_F77 | \
14736 archive_expsym_cmds_F77 | \
14737 module_cmds_F77 | \
14738 module_expsym_cmds_F77 | \
14739 old_archive_from_expsyms_cmds_F77 | \
14740 export_symbols_cmds_F77 | \
14741 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14742 postinstall_cmds | postuninstall_cmds | \
14743 old_postinstall_cmds | old_postuninstall_cmds | \
14744 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14745 # Double-quote double-evaled strings.
14746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14755 *'\$0 --fallback-echo"')
14756 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14762 cat <<__EOF__ >> "$cfgfile"
14763 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14767 # Shell to use when invoking shell scripts.
14770 # Whether or not to build shared libraries.
14771 build_libtool_libs=$enable_shared
14773 # Whether or not to build static libraries.
14774 build_old_libs=$enable_static
14776 # Whether or not to add -lc for building shared libraries.
14777 build_libtool_need_lc=$archive_cmds_need_lc_F77
14779 # Whether or not to disallow shared libs when runtime libs are static
14780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14782 # Whether or not to optimize for fast installation.
14783 fast_install=$enable_fast_install
14786 host_alias=$host_alias
14789 # An echo program that does not interpret backslashes.
14794 AR_FLAGS=$lt_AR_FLAGS
14799 # A language-specific compiler.
14800 CC=$lt_compiler_F77
14802 # Is the compiler the GNU C compiler?
14808 # The linker used to build libraries.
14811 # Whether we need hard or soft links.
14814 # A BSD-compatible nm program.
14817 # A symbol stripping program
14820 # Used to examine libraries when file_magic_cmd begins "file"
14821 MAGIC_CMD=$MAGIC_CMD
14823 # Used on cygwin: DLL creation program.
14826 # Used on cygwin: object dumper.
14829 # Used on cygwin: assembler.
14832 # The name of the directory that contains temporary libtool files.
14835 # How to create reloadable object files.
14836 reload_flag=$lt_reload_flag
14837 reload_cmds=$lt_reload_cmds
14839 # How to pass a linker flag through the compiler.
14840 wl=$lt_lt_prog_compiler_wl_F77
14842 # Object file suffix (normally "o").
14843 objext="$ac_objext"
14845 # Old archive suffix (normally "a").
14848 # Shared library suffix (normally ".so").
14851 # Executable file suffix (normally "").
14854 # Additional compiler flags for building library objects.
14855 pic_flag=$lt_lt_prog_compiler_pic_F77
14858 # What is the maximum length of a command?
14859 max_cmd_len=$lt_cv_sys_max_cmd_len
14861 # Does compiler simultaneously support -c and -o options?
14862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14864 # Must we lock files when doing compilation ?
14865 need_locks=$lt_need_locks
14867 # Do we need the lib prefix for modules?
14868 need_lib_prefix=$need_lib_prefix
14870 # Do we need a version for libraries?
14871 need_version=$need_version
14873 # Whether dlopen is supported.
14874 dlopen_support=$enable_dlopen
14876 # Whether dlopen of programs is supported.
14877 dlopen_self=$enable_dlopen_self
14879 # Whether dlopen of statically linked programs is supported.
14880 dlopen_self_static=$enable_dlopen_self_static
14882 # Compiler flag to prevent dynamic linking.
14883 link_static_flag=$lt_lt_prog_compiler_static_F77
14885 # Compiler flag to turn off builtin functions.
14886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14888 # Compiler flag to allow reflexive dlopens.
14889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14891 # Compiler flag to generate shared objects directly from archives.
14892 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14894 # Compiler flag to generate thread-safe objects.
14895 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14897 # Library versioning type.
14898 version_type=$version_type
14900 # Format of library name prefix.
14901 libname_spec=$lt_libname_spec
14903 # List of archive names. First name is the real one, the rest are links.
14904 # The last name is the one that the linker finds with -lNAME.
14905 library_names_spec=$lt_library_names_spec
14907 # The coded name of the library, if different from the real name.
14908 soname_spec=$lt_soname_spec
14910 # Commands used to build and install an old-style archive.
14912 old_archive_cmds=$lt_old_archive_cmds_F77
14913 old_postinstall_cmds=$lt_old_postinstall_cmds
14914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14916 # Create an old-style archive from a shared archive.
14917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14919 # Create a temporary old-style archive to link instead of a shared archive.
14920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14922 # Commands used to build and install a shared archive.
14923 archive_cmds=$lt_archive_cmds_F77
14924 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14925 postinstall_cmds=$lt_postinstall_cmds
14926 postuninstall_cmds=$lt_postuninstall_cmds
14928 # Commands used to build a loadable module (assumed same as above if empty)
14929 module_cmds=$lt_module_cmds_F77
14930 module_expsym_cmds=$lt_module_expsym_cmds_F77
14932 # Commands to strip libraries.
14933 old_striplib=$lt_old_striplib
14934 striplib=$lt_striplib
14936 # Dependencies to place before the objects being linked to create a
14938 predep_objects=$lt_predep_objects_F77
14940 # Dependencies to place after the objects being linked to create a
14942 postdep_objects=$lt_postdep_objects_F77
14944 # Dependencies to place before the objects being linked to create a
14946 predeps=$lt_predeps_F77
14948 # Dependencies to place after the objects being linked to create a
14950 postdeps=$lt_postdeps_F77
14952 # The library search path used internally by the compiler when linking
14953 # a shared library.
14954 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14956 # Method to check whether dependent libraries are shared objects.
14957 deplibs_check_method=$lt_deplibs_check_method
14959 # Command to use when deplibs_check_method == file_magic.
14960 file_magic_cmd=$lt_file_magic_cmd
14962 # Flag that allows shared libraries with undefined symbols to be built.
14963 allow_undefined_flag=$lt_allow_undefined_flag_F77
14965 # Flag that forces no undefined symbols.
14966 no_undefined_flag=$lt_no_undefined_flag_F77
14968 # Commands used to finish a libtool library installation in a directory.
14969 finish_cmds=$lt_finish_cmds
14971 # Same as above, but a single script fragment to be evaled but not shown.
14972 finish_eval=$lt_finish_eval
14974 # Take the output of nm and produce a listing of raw symbols and C names.
14975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14977 # Transform the output of nm in a proper C declaration
14978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14980 # Transform the output of nm in a C name address pair
14981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14983 # This is the shared library runtime path variable.
14984 runpath_var=$runpath_var
14986 # This is the shared library path variable.
14987 shlibpath_var=$shlibpath_var
14989 # Is shlibpath searched before the hard-coded library search path?
14990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14992 # How to hardcode a shared library path into an executable.
14993 hardcode_action=$hardcode_action_F77
14995 # Whether we should hardcode library paths into libraries.
14996 hardcode_into_libs=$hardcode_into_libs
14998 # Flag to hardcode \$libdir into a binary during linking.
14999 # This must work even if \$libdir does not exist.
15000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15002 # If ld is used when linking, flag to hardcode \$libdir into
15003 # a binary during linking. This must work even if \$libdir does
15005 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15007 # Whether we need a single -rpath flag with a separated argument.
15008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15010 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15011 # resulting binary.
15012 hardcode_direct=$hardcode_direct_F77
15014 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15015 # resulting binary.
15016 hardcode_minus_L=$hardcode_minus_L_F77
15018 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15019 # the resulting binary.
15020 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15022 # Set to yes if building a shared library automatically hardcodes DIR into the library
15023 # and all subsequent libraries and executables linked against it.
15024 hardcode_automatic=$hardcode_automatic_F77
15026 # Variables whose values should be saved in libtool wrapper scripts and
15027 # restored at relink time.
15028 variables_saved_for_relink="$variables_saved_for_relink"
15030 # Whether libtool must link a program against all its dependency libraries.
15031 link_all_deplibs=$link_all_deplibs_F77
15033 # Compile-time system search path for libraries
15034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15036 # Run-time system search path for libraries
15037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15039 # Fix the shell variable \$srcfile for the compiler.
15040 fix_srcfile_path="$fix_srcfile_path_F77"
15042 # Set to yes if exported symbols are required.
15043 always_export_symbols=$always_export_symbols_F77
15045 # The commands to list exported symbols.
15046 export_symbols_cmds=$lt_export_symbols_cmds_F77
15048 # The commands to extract the exported symbol list from a shared archive.
15049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15051 # Symbols that should not be listed in the preloaded symbols.
15052 exclude_expsyms=$lt_exclude_expsyms_F77
15054 # Symbols that must always be exported.
15055 include_expsyms=$lt_include_expsyms_F77
15057 # ### END LIBTOOL TAG CONFIG: $tagname
15063 # If there is no Makefile yet, we rely on a make rule to execute
15064 # `config.status --recheck' to rerun these tests and create the
15065 # libtool script then.
15066 test -f Makefile && make "$ltmain"
15071 ac_cpp='$CPP $CPPFLAGS'
15072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15084 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15088 # Source file extension for Java test sources.
15091 # Object file extension for compiled Java test sources.
15095 # Code to be used in simple compile tests
15096 lt_simple_compile_test_code="class foo {}\n"
15098 # Code to be used in simple link tests
15099 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15101 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15103 # If no C compiler was specified, use CC.
15106 # Allow CC to be a program name with arguments.
15110 # Allow CC to be a program name with arguments.
15116 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15117 archive_cmds_need_lc_GCJ=no
15120 ## There is no encapsulation within the following macros, do not change
15121 ## the running order or otherwise move them around unless you know exactly
15122 ## what you are doing...
15124 lt_prog_compiler_no_builtin_flag_GCJ=
15126 if test "$GCC" = yes; then
15127 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15129 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15130 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15131 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 lt_cv_prog_compiler_rtti_exceptions=no
15135 ac_outfile=conftest.$ac_objext
15136 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15137 lt_compiler_flag="-fno-rtti -fno-exceptions"
15138 # Insert the option either (1) after the last *FLAGS variable, or
15139 # (2) before a word containing "conftest.", or (3) at the end.
15140 # Note that $ac_compile itself does not contain backslashes and begins
15141 # with a dollar sign (not a hyphen), so the echo should work correctly.
15142 # The option is referenced via a variable to avoid confusing sed.
15143 lt_compile=`echo "$ac_compile" | $SED \
15144 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15146 -e 's:$: $lt_compiler_flag:'`
15147 (eval echo "\"\$as_me:15147: $lt_compile\"" >&5)
15148 (eval "$lt_compile" 2>conftest.err)
15150 cat conftest.err >&5
15151 echo "$as_me:15151: \$? = $ac_status" >&5
15152 if (exit $ac_status) && test -s "$ac_outfile"; then
15153 # The compiler can only warn and ignore the option if not recognized
15154 # So say no if there are warnings
15155 if test ! -s conftest.err; then
15156 lt_cv_prog_compiler_rtti_exceptions=yes
15162 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15163 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15165 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15166 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15173 lt_prog_compiler_wl_GCJ=
15174 lt_prog_compiler_pic_GCJ=
15175 lt_prog_compiler_static_GCJ=
15177 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15178 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15180 if test "$GCC" = yes; then
15181 lt_prog_compiler_wl_GCJ='-Wl,'
15182 lt_prog_compiler_static_GCJ='-static'
15186 # All AIX code is PIC.
15187 if test "$host_cpu" = ia64; then
15188 # AIX 5 now supports IA64 processor
15189 lt_prog_compiler_static_GCJ='-Bstatic'
15194 # FIXME: we need at least 68020 code to build shared libraries, but
15195 # adding the `-m68020' flag to GCC prevents building anything better,
15197 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15200 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15201 # PIC is the default for these OSes.
15204 mingw* | pw32* | os2*)
15205 # This hack is so that the source file can tell whether it is being
15206 # built for inclusion in a dll (and should export symbols for example).
15207 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15210 darwin* | rhapsody*)
15211 # PIC is the default on this platform
15212 # Common symbols not allowed in MH_DYLIB files
15213 lt_prog_compiler_pic_GCJ='-fno-common'
15217 # Just because we use GCC doesn't mean we suddenly get shared libraries
15218 # on systems that don't support them.
15219 lt_prog_compiler_can_build_shared_GCJ=no
15224 if test -d /usr/nec; then
15225 lt_prog_compiler_pic_GCJ=-Kconform_pic
15230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15231 # not for PA HP-UX.
15232 case "$host_cpu" in
15237 lt_prog_compiler_pic_GCJ='-fPIC'
15243 lt_prog_compiler_pic_GCJ='-fPIC'
15247 # PORTME Check for flag to pass linker flags through the system compiler.
15250 lt_prog_compiler_wl_GCJ='-Wl,'
15251 if test "$host_cpu" = ia64; then
15252 # AIX 5 now supports IA64 processor
15253 lt_prog_compiler_static_GCJ='-Bstatic'
15255 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15259 mingw* | pw32* | os2*)
15260 # This hack is so that the source file can tell whether it is being
15261 # built for inclusion in a dll (and should export symbols for example).
15262 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15265 hpux9* | hpux10* | hpux11*)
15266 lt_prog_compiler_wl_GCJ='-Wl,'
15267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15268 # not for PA HP-UX.
15269 case "$host_cpu" in
15274 lt_prog_compiler_pic_GCJ='+Z'
15277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15278 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15281 irix5* | irix6* | nonstopux*)
15282 lt_prog_compiler_wl_GCJ='-Wl,'
15283 # PIC (with -KPIC) is the default.
15284 lt_prog_compiler_static_GCJ='-non_shared'
15288 lt_prog_compiler_pic_GCJ='-KPIC'
15289 lt_prog_compiler_static_GCJ='-Bstatic'
15295 lt_prog_compiler_wl_GCJ='-Wl,'
15296 lt_prog_compiler_pic_GCJ='-KPIC'
15297 lt_prog_compiler_static_GCJ='-static'
15300 lt_prog_compiler_wl_GCJ='-Wl,'
15301 # All Alpha code is PIC.
15302 lt_prog_compiler_static_GCJ='-non_shared'
15307 osf3* | osf4* | osf5*)
15308 lt_prog_compiler_wl_GCJ='-Wl,'
15309 # All OSF/1 code is PIC.
15310 lt_prog_compiler_static_GCJ='-non_shared'
15314 lt_prog_compiler_pic_GCJ='-Kpic'
15315 lt_prog_compiler_static_GCJ='-dn'
15319 lt_prog_compiler_wl_GCJ='-Wl,'
15320 lt_prog_compiler_pic_GCJ='-KPIC'
15321 lt_prog_compiler_static_GCJ='-Bstatic'
15325 lt_prog_compiler_wl_GCJ='-Qoption ld '
15326 lt_prog_compiler_pic_GCJ='-PIC'
15327 lt_prog_compiler_static_GCJ='-Bstatic'
15330 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15331 lt_prog_compiler_wl_GCJ='-Wl,'
15332 lt_prog_compiler_pic_GCJ='-KPIC'
15333 lt_prog_compiler_static_GCJ='-Bstatic'
15337 if test -d /usr/nec ;then
15338 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15339 lt_prog_compiler_static_GCJ='-Bstatic'
15344 lt_prog_compiler_pic_GCJ='-pic'
15345 lt_prog_compiler_static_GCJ='-Bstatic'
15349 lt_prog_compiler_can_build_shared_GCJ=no
15354 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15355 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15358 # Check to make sure the PIC flag actually works.
15360 if test -n "$lt_prog_compiler_pic_GCJ"; then
15361 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15362 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15363 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 lt_prog_compiler_pic_works_GCJ=no
15367 ac_outfile=conftest.$ac_objext
15368 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15369 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15370 # Insert the option either (1) after the last *FLAGS variable, or
15371 # (2) before a word containing "conftest.", or (3) at the end.
15372 # Note that $ac_compile itself does not contain backslashes and begins
15373 # with a dollar sign (not a hyphen), so the echo should work correctly.
15374 # The option is referenced via a variable to avoid confusing sed.
15375 lt_compile=`echo "$ac_compile" | $SED \
15376 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15378 -e 's:$: $lt_compiler_flag:'`
15379 (eval echo "\"\$as_me:15379: $lt_compile\"" >&5)
15380 (eval "$lt_compile" 2>conftest.err)
15382 cat conftest.err >&5
15383 echo "$as_me:15383: \$? = $ac_status" >&5
15384 if (exit $ac_status) && test -s "$ac_outfile"; then
15385 # The compiler can only warn and ignore the option if not recognized
15386 # So say no if there are warnings
15387 if test ! -s conftest.err; then
15388 lt_prog_compiler_pic_works_GCJ=yes
15394 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15395 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15397 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15398 case $lt_prog_compiler_pic_GCJ in
15400 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15403 lt_prog_compiler_pic_GCJ=
15404 lt_prog_compiler_can_build_shared_GCJ=no
15409 # For platforms which do not support PIC, -DPIC is meaningless:
15411 lt_prog_compiler_pic_GCJ=
15414 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15418 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15419 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15420 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 lt_cv_prog_compiler_c_o_GCJ=no
15424 $rm -r conftest 2>/dev/null
15428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15430 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15431 # that will create temporary files in the current directory regardless of
15432 # the output directory. Thus, making CWD read-only will cause this test
15433 # to fail, enabling locking or at least warning the user not to do parallel
15437 lt_compiler_flag="-o out/conftest2.$ac_objext"
15438 # Insert the option either (1) after the last *FLAGS variable, or
15439 # (2) before a word containing "conftest.", or (3) at the end.
15440 # Note that $ac_compile itself does not contain backslashes and begins
15441 # with a dollar sign (not a hyphen), so the echo should work correctly.
15442 lt_compile=`echo "$ac_compile" | $SED \
15443 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15445 -e 's:$: $lt_compiler_flag:'`
15446 (eval echo "\"\$as_me:15446: $lt_compile\"" >&5)
15447 (eval "$lt_compile" 2>out/conftest.err)
15449 cat out/conftest.err >&5
15450 echo "$as_me:15450: \$? = $ac_status" >&5
15451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15453 # The compiler can only warn and ignore the option if not recognized
15454 # So say no if there are warnings
15455 if test ! -s out/conftest.err; then
15456 lt_cv_prog_compiler_c_o_GCJ=yes
15460 $rm conftest* out/*
15467 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15468 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15471 hard_links="nottested"
15472 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15473 # do not overwrite the value of need_locks provided by the user
15474 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15480 ln conftest.a conftest.b 2>&5 || hard_links=no
15481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15482 echo "$as_me:$LINENO: result: $hard_links" >&5
15483 echo "${ECHO_T}$hard_links" >&6
15484 if test "$hard_links" = no; then
15485 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15493 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15494 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15497 allow_undefined_flag_GCJ=
15498 enable_shared_with_static_runtimes_GCJ=no
15500 archive_expsym_cmds_GCJ=
15501 old_archive_From_new_cmds_GCJ=
15502 old_archive_from_expsyms_cmds_GCJ=
15503 export_dynamic_flag_spec_GCJ=
15504 whole_archive_flag_spec_GCJ=
15505 thread_safe_flag_spec_GCJ=
15506 hardcode_libdir_flag_spec_GCJ=
15507 hardcode_libdir_flag_spec_ld_GCJ=
15508 hardcode_libdir_separator_GCJ=
15509 hardcode_direct_GCJ=no
15510 hardcode_minus_L_GCJ=no
15511 hardcode_shlibpath_var_GCJ=unsupported
15512 link_all_deplibs_GCJ=unknown
15513 hardcode_automatic_GCJ=no
15515 module_expsym_cmds_GCJ=
15516 always_export_symbols_GCJ=no
15517 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15518 # include_expsyms should be a list of space-separated symbols to be *always*
15519 # included in the symbol list
15520 include_expsyms_GCJ=
15521 # exclude_expsyms can be an extended regexp of symbols to exclude
15522 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15523 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15524 # as well as any symbol that contains `d'.
15525 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15526 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15527 # platforms (ab)use it in PIC code, but their linkers get confused if
15528 # the symbol is explicitly referenced. Since portable code cannot
15529 # rely on this symbol name, it's probably fine to never include it in
15530 # preloaded symbol tables.
15531 extract_expsyms_cmds=
15534 cygwin* | mingw* | pw32*)
15535 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15536 # When not using gcc, we currently assume that we are using
15537 # Microsoft Visual C++.
15538 if test "$GCC" != yes; then
15548 if test "$with_gnu_ld" = yes; then
15549 # If archive_cmds runs LD, not CC, wlarc should be empty
15552 # See if GNU ld supports shared libraries.
15554 aix3* | aix4* | aix5*)
15555 # On AIX/PPC, the GNU linker is very broken
15556 if test "$host_cpu" != ia64; then
15560 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15561 *** to be unable to reliably create shared libraries on AIX.
15562 *** Therefore, libtool is disabling shared libraries support. If you
15563 *** really care for shared libraries, you may want to modify your PATH
15564 *** so that a non-GNU linker is found, and then restart.
15571 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)'
15572 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15573 hardcode_minus_L_GCJ=yes
15575 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15576 # that the semantics of dynamic libraries on AmigaOS, at least up
15577 # to version 4, is to share data among multiple programs linked
15578 # with the same dynamic library. Since this doesn't match the
15579 # behavior of shared libraries on other platforms, we can't use
15585 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15586 allow_undefined_flag_GCJ=unsupported
15587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15588 # support --undefined. This deserves some investigation. FIXME
15589 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15595 cygwin* | mingw* | pw32*)
15596 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15597 # as there is no search path for DLLs.
15598 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15599 allow_undefined_flag_GCJ=unsupported
15600 always_export_symbols_GCJ=no
15601 enable_shared_with_static_runtimes_GCJ=yes
15602 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15604 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15605 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15606 # If the export-symbols file already is a .def file (1st line
15607 # is EXPORTS), use it as is; otherwise, prepend...
15608 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15609 cp $export_symbols $output_objdir/$soname.def;
15611 echo EXPORTS > $output_objdir/$soname.def;
15612 cat $export_symbols >> $output_objdir/$soname.def;
15614 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15622 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15625 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15626 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15631 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15635 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15636 *** create shared libraries on Solaris systems. Therefore, libtool
15637 *** is disabling shared libraries support. We urge you to upgrade GNU
15638 *** binutils to release 2.9.1 or newer. Another option is to modify
15639 *** your PATH or compiler configuration so that the native linker is
15640 *** used, and then restart.
15643 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15644 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15645 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15652 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15654 hardcode_direct_GCJ=yes
15655 hardcode_shlibpath_var_GCJ=no
15659 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15660 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15661 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15668 if test "$ld_shlibs_GCJ" = yes; then
15669 runpath_var=LD_RUN_PATH
15670 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15671 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15672 # ancient GNU ld didn't support --whole-archive et. al.
15673 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15674 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15676 whole_archive_flag_spec_GCJ=
15680 # PORTME fill in a description of your system's linker (not GNU ld)
15683 allow_undefined_flag_GCJ=unsupported
15684 always_export_symbols_GCJ=yes
15685 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'
15686 # Note: this linker hardcodes the directories in LIBPATH if there
15687 # are no directories specified by -L.
15688 hardcode_minus_L_GCJ=yes
15689 if test "$GCC" = yes && test -z "$link_static_flag"; then
15690 # Neither direct hardcoding nor static linking is supported with a
15692 hardcode_direct_GCJ=unsupported
15697 if test "$host_cpu" = ia64; then
15698 # On IA64, the linker does run time linking by default, so we don't
15699 # have to do anything special.
15700 aix_use_runtimelinking=no
15701 exp_sym_flag='-Bexport'
15704 # If we're using GNU nm, then we don't want the "-C" option.
15705 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15706 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15707 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'
15709 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'
15711 aix_use_runtimelinking=no
15713 # Test if we are trying to use run time linking or normal
15714 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15715 # need to do runtime linking.
15716 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15717 for ld_flag in $LDFLAGS; do
15718 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15719 aix_use_runtimelinking=yes
15725 exp_sym_flag='-bexport'
15726 no_entry_flag='-bnoentry'
15729 # When large executables or shared objects are built, AIX ld can
15730 # have problems creating the table of contents. If linking a library
15731 # or program results in "error TOC overflow" add -mminimal-toc to
15732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15735 archive_cmds_GCJ=''
15736 hardcode_direct_GCJ=yes
15737 hardcode_libdir_separator_GCJ=':'
15738 link_all_deplibs_GCJ=yes
15740 if test "$GCC" = yes; then
15741 case $host_os in aix4.012|aix4.012.*)
15742 # We only want to do this on AIX 4.2 and lower, the check
15743 # below for broken collect2 doesn't work under 4.3+
15744 collect2name=`${CC} -print-prog-name=collect2`
15745 if test -f "$collect2name" && \
15746 strings "$collect2name" | grep resolve_lib_name >/dev/null
15748 # We have reworked collect2
15749 hardcode_direct_GCJ=yes
15751 # We have old collect2
15752 hardcode_direct_GCJ=unsupported
15753 # It fails to find uninstalled libraries when the uninstalled
15754 # path is not listed in the libpath. Setting hardcode_minus_L
15755 # to unsupported forces relinking
15756 hardcode_minus_L_GCJ=yes
15757 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15758 hardcode_libdir_separator_GCJ=
15761 shared_flag='-shared'
15764 if test "$host_cpu" = ia64; then
15765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15766 # chokes on -Wl,-G. The following line is correct:
15769 if test "$aix_use_runtimelinking" = yes; then
15770 shared_flag='${wl}-G'
15772 shared_flag='${wl}-bM:SRE'
15777 # It seems that -bexpall does not export symbols beginning with
15778 # underscore (_), so it is better to generate a list of symbols to export.
15779 always_export_symbols_GCJ=yes
15780 if test "$aix_use_runtimelinking" = yes; then
15781 # Warning - without using the other runtime loading flags (-brtl),
15782 # -berok will link without error, but may produce a broken library.
15783 allow_undefined_flag_GCJ='-berok'
15784 # Determine the default libpath from the value encoded in an empty executable.
15785 cat >conftest.$ac_ext <<_ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15800 rm -f conftest.$ac_objext conftest$ac_exeext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15802 (eval $ac_link) 2>conftest.er1
15804 grep -v '^ *+' conftest.er1 >conftest.err
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
15809 { ac_try='test -z "$ac_c_werror_flag"
15810 || test ! -s conftest.err'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest$ac_exeext'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15825 # Check for a 64-bit object if we didn't find anything.
15826 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; }
15829 echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15833 rm -f conftest.err conftest.$ac_objext \
15834 conftest$ac_exeext conftest.$ac_ext
15835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15837 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15838 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"
15840 if test "$host_cpu" = ia64; then
15841 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15842 allow_undefined_flag_GCJ="-z nodefs"
15843 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"
15845 # Determine the default libpath from the value encoded in an empty executable.
15846 cat >conftest.$ac_ext <<_ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15863 (eval $ac_link) 2>conftest.er1
15865 grep -v '^ *+' conftest.er1 >conftest.err
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -z "$ac_c_werror_flag"
15871 || test ! -s conftest.err'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; } &&
15877 { ac_try='test -s conftest$ac_exeext'
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; }; then
15884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15886 # Check for a 64-bit object if we didn't find anything.
15887 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; }
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15894 rm -f conftest.err conftest.$ac_objext \
15895 conftest$ac_exeext conftest.$ac_ext
15896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15898 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15899 # Warning - without using the other run time loading flags,
15900 # -berok will link without error, but may produce a broken library.
15901 no_undefined_flag_GCJ=' ${wl}-bernotok'
15902 allow_undefined_flag_GCJ=' ${wl}-berok'
15903 # -bexpall does not export symbols beginning with underscore (_)
15904 always_export_symbols_GCJ=yes
15905 # Exported symbols can be pulled into shared objects from archives
15906 whole_archive_flag_spec_GCJ=' '
15907 archive_cmds_need_lc_GCJ=yes
15908 # This is similar to how AIX traditionally builds it's shared libraries.
15909 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'
15915 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)'
15916 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15917 hardcode_minus_L_GCJ=yes
15918 # see comment about different semantics on the GNU ld section
15923 export_dynamic_flag_spec_GCJ=-rdynamic
15926 cygwin* | mingw* | pw32*)
15927 # When not using gcc, we currently assume that we are using
15928 # Microsoft Visual C++.
15929 # hardcode_libdir_flag_spec is actually meaningless, as there is
15930 # no search path for DLLs.
15931 hardcode_libdir_flag_spec_GCJ=' '
15932 allow_undefined_flag_GCJ=unsupported
15933 # Tell ltmain to make .lib files, not .a files.
15935 # Tell ltmain to make .dll files, not .so files.
15937 # FIXME: Setting linknames here is a bad hack.
15938 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15939 # The linker will automatically build a .lib file if we build a DLL.
15940 old_archive_From_new_cmds_GCJ='true'
15941 # FIXME: Should let the user specify the lib program.
15942 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15943 fix_srcfile_path='`cygpath -w "$srcfile"`'
15944 enable_shared_with_static_runtimes_GCJ=yes
15947 darwin* | rhapsody*)
15948 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15949 archive_cmds_need_lc_GCJ=no
15951 rhapsody* | darwin1.[012])
15952 allow_undefined_flag_GCJ='-undefined suppress'
15955 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15958 # FIXME: Relying on posixy $() will cause problems for
15959 # cross-compilation, but unfortunately the echo tests do not
15960 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15961 # `"' quotes if we put them in here... so don't!
15962 lt_int_apple_cc_single_mod=no
15963 output_verbose_link_cmd='echo'
15964 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15965 lt_int_apple_cc_single_mod=yes
15967 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15968 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15970 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15972 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15973 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15974 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15975 archive_expsym_cmds_GCJ='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}'
15977 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15979 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15980 hardcode_direct_GCJ=no
15981 hardcode_automatic_GCJ=yes
15982 hardcode_shlibpath_var_GCJ=unsupported
15983 whole_archive_flag_spec_GCJ='-all_load $convenience'
15984 link_all_deplibs_GCJ=yes
15989 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15990 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15991 hardcode_shlibpath_var_GCJ=no
15998 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15999 # support. Future versions do this automatically, but an explicit c++rt0.o
16000 # does not break anything, and helps significantly (at the cost of a little
16003 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16004 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16005 hardcode_direct_GCJ=yes
16006 hardcode_shlibpath_var_GCJ=no
16009 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16011 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16012 hardcode_direct_GCJ=yes
16013 hardcode_minus_L_GCJ=yes
16014 hardcode_shlibpath_var_GCJ=no
16017 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16019 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16020 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16021 hardcode_direct_GCJ=yes
16022 hardcode_shlibpath_var_GCJ=no
16026 if test "$GCC" = yes; then
16027 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'
16029 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'
16031 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16032 hardcode_libdir_separator_GCJ=:
16033 hardcode_direct_GCJ=yes
16035 # hardcode_minus_L: Not really in the search PATH,
16036 # but as the default location of the library.
16037 hardcode_minus_L_GCJ=yes
16038 export_dynamic_flag_spec_GCJ='${wl}-E'
16042 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16043 case "$host_cpu" in
16045 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16048 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16052 case "$host_cpu" in
16054 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16057 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16061 if test "$with_gnu_ld" = no; then
16062 case "$host_cpu" in
16064 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16065 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16066 hardcode_libdir_separator_GCJ=:
16067 hardcode_direct_GCJ=no
16068 hardcode_shlibpath_var_GCJ=no
16071 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16072 hardcode_direct_GCJ=no
16073 hardcode_shlibpath_var_GCJ=no
16075 # hardcode_minus_L: Not really in the search PATH,
16076 # but as the default location of the library.
16077 hardcode_minus_L_GCJ=yes
16080 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16081 hardcode_libdir_separator_GCJ=:
16082 hardcode_direct_GCJ=yes
16083 export_dynamic_flag_spec_GCJ='${wl}-E'
16085 # hardcode_minus_L: Not really in the search PATH,
16086 # but as the default location of the library.
16087 hardcode_minus_L_GCJ=yes
16093 irix5* | irix6* | nonstopux*)
16094 if test "$GCC" = yes; then
16095 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'
16097 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'
16098 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16100 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16101 hardcode_libdir_separator_GCJ=:
16102 link_all_deplibs_GCJ=yes
16106 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16107 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16109 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16111 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16112 hardcode_direct_GCJ=yes
16113 hardcode_shlibpath_var_GCJ=no
16117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16118 hardcode_direct_GCJ=yes
16119 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16120 hardcode_libdir_separator_GCJ=:
16121 hardcode_shlibpath_var_GCJ=no
16125 hardcode_direct_GCJ=yes
16126 hardcode_shlibpath_var_GCJ=no
16127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16128 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16129 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16130 export_dynamic_flag_spec_GCJ='${wl}-E'
16133 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16134 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16138 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16139 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16146 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16147 hardcode_minus_L_GCJ=yes
16148 allow_undefined_flag_GCJ=unsupported
16149 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'
16150 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16154 if test "$GCC" = yes; then
16155 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16156 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'
16158 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16159 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'
16161 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16162 hardcode_libdir_separator_GCJ=:
16165 osf4* | osf5*) # as osf3* with the addition of -msym flag
16166 if test "$GCC" = yes; then
16167 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16168 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'
16169 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16171 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16172 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'
16173 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~
16174 $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'
16176 # Both c and cxx compiler support -rpath directly
16177 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16179 hardcode_libdir_separator_GCJ=:
16183 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16184 hardcode_shlibpath_var_GCJ=no
16185 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16186 runpath_var=LD_RUN_PATH
16187 hardcode_runpath_var=yes
16191 no_undefined_flag_GCJ=' -z text'
16192 if test "$GCC" = yes; then
16193 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16194 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16195 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16197 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16198 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16199 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16201 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16202 hardcode_shlibpath_var_GCJ=no
16204 solaris2.[0-5] | solaris2.[0-5].*) ;;
16205 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16206 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16208 link_all_deplibs_GCJ=yes
16212 if test "x$host_vendor" = xsequent; then
16213 # Use $CC to link under sequent, because it throws in some extra .o
16214 # files that make .init and .fini sections work.
16215 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16217 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16219 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16220 hardcode_direct_GCJ=yes
16221 hardcode_minus_L_GCJ=yes
16222 hardcode_shlibpath_var_GCJ=no
16226 case $host_vendor in
16228 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16229 hardcode_direct_GCJ=yes # is this really true???
16232 ## LD is ld it makes a PLAMLIB
16233 ## CC just makes a GrossModule.
16234 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16235 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16236 hardcode_direct_GCJ=no
16239 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16243 runpath_var='LD_RUN_PATH'
16244 hardcode_shlibpath_var_GCJ=no
16248 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16249 hardcode_shlibpath_var_GCJ=no
16250 export_dynamic_flag_spec_GCJ='-Bexport'
16254 if test -d /usr/nec; then
16255 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256 hardcode_shlibpath_var_GCJ=no
16257 runpath_var=LD_RUN_PATH
16258 hardcode_runpath_var=yes
16264 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16265 hardcode_direct_GCJ=yes
16266 hardcode_minus_L_GCJ=no
16267 hardcode_shlibpath_var_GCJ=no
16268 hardcode_runpath_var=yes
16269 runpath_var=LD_RUN_PATH
16272 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16273 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16274 if test "$GCC" = yes; then
16275 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16277 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16279 runpath_var='LD_RUN_PATH'
16280 hardcode_shlibpath_var_GCJ=no
16284 no_undefined_flag_GCJ=' -z text'
16285 # $CC -shared without GNU ld will not create a library from C++
16286 # object files and a static libstdc++, better avoid it by now
16287 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16288 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16289 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16290 hardcode_libdir_flag_spec_GCJ=
16291 hardcode_shlibpath_var_GCJ=no
16292 runpath_var='LD_RUN_PATH'
16296 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16297 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16298 hardcode_shlibpath_var_GCJ=no
16307 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16308 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16309 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16311 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16312 if test "$GCC" = yes; then
16313 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16317 # Do we need to explicitly link libc?
16319 case "x$archive_cmds_need_lc_GCJ" in
16321 # Assume -lc should be added
16322 archive_cmds_need_lc_GCJ=yes
16324 if test "$enable_shared" = yes && test "$GCC" = yes; then
16325 case $archive_cmds_GCJ in
16327 # FIXME: we may have to deal with multi-command sequences.
16330 # Test whether the compiler implicitly links with -lc since on some
16331 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16332 # to ld, don't add -lc before -lgcc.
16333 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16334 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16336 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16339 (eval $ac_compile) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } 2>conftest.err; then
16345 libobjs=conftest.$ac_objext
16347 wl=$lt_prog_compiler_wl_GCJ
16353 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16354 allow_undefined_flag_GCJ=
16355 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16356 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }
16361 archive_cmds_need_lc_GCJ=no
16363 archive_cmds_need_lc_GCJ=yes
16365 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16367 cat conftest.err 1>&5
16370 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16371 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16378 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16379 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16380 hardcode_action_GCJ=
16381 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16382 test -n "$runpath_var GCJ" || \
16383 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16385 # We can hardcode non-existant directories.
16386 if test "$hardcode_direct_GCJ" != no &&
16387 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16388 # have to relink, otherwise we might link with an installed library
16389 # when we should be linking with a yet-to-be-installed one
16390 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16391 test "$hardcode_minus_L_GCJ" != no; then
16392 # Linking always hardcodes the temporary library directory.
16393 hardcode_action_GCJ=relink
16395 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16396 hardcode_action_GCJ=immediate
16399 # We cannot hardcode anything, or else we can only hardcode existing
16401 hardcode_action_GCJ=unsupported
16403 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16404 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16406 if test "$hardcode_action_GCJ" = relink; then
16407 # Fast installation is not supported
16408 enable_fast_install=no
16409 elif test "$shlibpath_overrides_runpath" = yes ||
16410 test "$enable_shared" = no; then
16411 # Fast installation is not necessary
16412 enable_fast_install=needless
16417 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16418 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16419 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16420 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16421 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16422 echo "$as_me:$LINENO: result: yes" >&5
16423 echo "${ECHO_T}yes" >&6
16425 # FIXME - insert some real tests, host_os isn't really good enough
16428 if test -n "$STRIP" ; then
16429 striplib="$STRIP -x"
16430 echo "$as_me:$LINENO: result: yes" >&5
16431 echo "${ECHO_T}yes" >&6
16433 echo "$as_me:$LINENO: result: no" >&5
16434 echo "${ECHO_T}no" >&6
16438 echo "$as_me:$LINENO: result: no" >&5
16439 echo "${ECHO_T}no" >&6
16444 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16445 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16446 library_names_spec=
16447 libname_spec='lib$name'
16451 postuninstall_cmds=
16455 shlibpath_overrides_runpath=unknown
16457 dynamic_linker="$host_os ld.so"
16458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16459 if test "$GCC" = yes; then
16460 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16461 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16462 # if the path contains ";" then we assume it to be the separator
16463 # otherwise default to the standard path separator (i.e. ":") - it is
16464 # assumed that no part of a normal pathname contains ";" but that should
16465 # okay in the real world where ";" in dirpaths is itself problematic.
16466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16471 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16473 need_lib_prefix=unknown
16474 hardcode_into_libs=no
16476 # when you set need_version to no, make sure it does not cause -set_version
16477 # flags to be left without arguments
16478 need_version=unknown
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16484 shlibpath_var=LIBPATH
16486 # AIX 3 has no versioning support, so we append a major version to the name.
16487 soname_spec='${libname}${release}${shared_ext}$major'
16494 hardcode_into_libs=yes
16495 if test "$host_cpu" = ia64; then
16496 # AIX 5 supports IA64
16497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16498 shlibpath_var=LD_LIBRARY_PATH
16500 # With GCC up to 2.95.x, collect2 would create an import file
16501 # for dependence libraries. The import file would start with
16502 # the line `#! .'. This would cause the generated library to
16503 # depend on `.', always an invalid library. This was fixed in
16504 # development snapshots of GCC prior to 3.0.
16506 aix4 | aix4.[01] | aix4.[01].*)
16507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16509 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16512 can_build_shared=no
16516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16517 # soname into executable. Probably we can add versioning support to
16518 # collect2, so additional links can be useful in future.
16519 if test "$aix_use_runtimelinking" = yes; then
16520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16521 # instead of lib<name>.a to let people know that these are not
16522 # typical AIX shared libraries.
16523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16525 # We preserve .a as extension for shared libraries through AIX4.2
16526 # and later when we are not doing run time linking.
16527 library_names_spec='${libname}${release}.a $libname.a'
16528 soname_spec='${libname}${release}${shared_ext}$major'
16530 shlibpath_var=LIBPATH
16535 library_names_spec='$libname.ixlibrary $libname.a'
16536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16537 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'
16541 library_names_spec='${libname}${shared_ext}'
16542 dynamic_linker="$host_os ld.so"
16543 shlibpath_var=LIBRARY_PATH
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16552 shlibpath_var=LD_LIBRARY_PATH
16553 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16554 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16555 # the default ld.so.conf also contains /usr/contrib/lib and
16556 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16557 # libtool to hard-code these into programs
16560 cygwin* | mingw* | pw32*)
16561 version_type=windows
16566 case $GCC,$host_os in
16567 yes,cygwin* | yes,mingw* | yes,pw32*)
16568 library_names_spec='$libname.dll.a'
16569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16570 postinstall_cmds='base_file=`basename \${file}`~
16571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16572 dldir=$destdir/`dirname \$dlpath`~
16573 test -d \$dldir || mkdir -p \$dldir~
16574 $install_prog $dir/$dlname \$dldir/$dlname'
16575 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16576 dlpath=$dir/\$dldll~
16578 shlibpath_overrides_runpath=yes
16582 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16583 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16584 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16587 # MinGW DLLs use traditional 'lib' prefix
16588 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16589 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16590 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16591 # It is most probably a Windows format PATH printed by
16592 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16593 # path with ; separators, and with drive letters. We can handle the
16594 # drive letters (cygwin fileutils understands them), so leave them,
16595 # especially as we might pass files found there to a mingw objdump,
16596 # which wouldn't understand a cygwinified path. Ahh.
16597 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16599 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16603 # pw32 DLLs use 'pw' prefix rather than 'lib'
16604 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16610 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16613 dynamic_linker='Win32 ld.exe'
16614 # FIXME: first we should search . and the directory the executable is in
16618 darwin* | rhapsody*)
16619 dynamic_linker="$host_os dyld"
16620 version_type=darwin
16623 # FIXME: Relying on posixy $() will cause problems for
16624 # cross-compilation, but unfortunately the echo tests do not
16625 # yet detect zsh echo's removal of \ escapes.
16626 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16627 soname_spec='${libname}${release}${major}$shared_ext'
16628 shlibpath_overrides_runpath=yes
16629 shlibpath_var=DYLD_LIBRARY_PATH
16630 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16631 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16632 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16633 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"`
16635 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 shlibpath_var=LD_LIBRARY_PATH
16652 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16653 version_type=freebsd-$objformat
16654 case $version_type in
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16665 shlibpath_var=LD_LIBRARY_PATH
16668 shlibpath_overrides_runpath=yes
16670 freebsd3.01* | freebsdelf3.01*)
16671 shlibpath_overrides_runpath=yes
16672 hardcode_into_libs=yes
16675 shlibpath_overrides_runpath=no
16676 hardcode_into_libs=yes
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16686 soname_spec='${libname}${release}${shared_ext}$major'
16687 shlibpath_var=LD_LIBRARY_PATH
16688 hardcode_into_libs=yes
16691 hpux9* | hpux10* | hpux11*)
16692 # Give a soname corresponding to the major version so that dld.sl refuses to
16693 # link against other versions.
16697 case "$host_cpu" in
16700 hardcode_into_libs=yes
16701 dynamic_linker="$host_os dld.so"
16702 shlibpath_var=LD_LIBRARY_PATH
16703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16706 if test "X$HPUX_IA64_MODE" = X32; then
16707 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16709 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16715 hardcode_into_libs=yes
16716 dynamic_linker="$host_os dld.sl"
16717 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16720 soname_spec='${libname}${release}${shared_ext}$major'
16721 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16726 dynamic_linker="$host_os dld.sl"
16727 shlibpath_var=SHLIB_PATH
16728 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730 soname_spec='${libname}${release}${shared_ext}$major'
16733 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16734 postinstall_cmds='chmod 555 $lib'
16737 irix5* | irix6* | nonstopux*)
16739 nonstopux*) version_type=nonstopux ;;
16741 if test "$lt_cv_prog_gnu_ld" = yes; then
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16752 irix5* | nonstopux*)
16753 libsuff= shlibsuff=
16756 case $LD in # libtool.m4 will add one of these switches to LD
16757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16758 libsuff= shlibsuff= libmagic=32-bit;;
16759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16760 libsuff=32 shlibsuff=N32 libmagic=N32;;
16761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16763 *) libsuff= shlibsuff= libmagic=never-match;;
16767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16768 shlibpath_overrides_runpath=no
16769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16771 hardcode_into_libs=yes
16774 # No shared lib support for Linux oldld, aout, or coff.
16775 linux*oldld* | linux*aout* | linux*coff*)
16779 # This must be Linux ELF.
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785 soname_spec='${libname}${release}${shared_ext}$major'
16786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16787 shlibpath_var=LD_LIBRARY_PATH
16788 shlibpath_overrides_runpath=no
16789 # This implies no fast_install, which is unacceptable.
16790 # Some rework will be needed to allow for fast_install
16791 # before this can be enabled.
16792 hardcode_into_libs=yes
16794 # We used to test for /lib/ld.so.1 and disable shared libraries on
16795 # powerpc, because MkLinux only supported shared libraries with the
16796 # GNU dynamic linker. Since this was broken with cross compilers,
16797 # most powerpc-linux boxes support dynamic linking these days and
16798 # people can always --disable-shared, the test was removed, and we
16799 # assume the GNU/Linux dynamic linker is in use.
16800 dynamic_linker='GNU/Linux ld.so'
16807 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16810 dynamic_linker='NetBSD (a.out) ld.so'
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 dynamic_linker='NetBSD ld.elf_so'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 shlibpath_overrides_runpath=yes
16818 hardcode_into_libs=yes
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824 shlibpath_var=LD_LIBRARY_PATH
16825 shlibpath_overrides_runpath=yes
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 shlibpath_overrides_runpath=yes
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16844 shlibpath_var=LD_LIBRARY_PATH
16845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16847 openbsd2.[89] | openbsd2.[89].*)
16848 shlibpath_overrides_runpath=no
16851 shlibpath_overrides_runpath=yes
16855 shlibpath_overrides_runpath=yes
16860 libname_spec='$name'
16863 library_names_spec='$libname${shared_ext} $libname.a'
16864 dynamic_linker='OS/2 ld.exe'
16865 shlibpath_var=LIBPATH
16868 osf3* | osf4* | osf5*)
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 shlibpath_var=LD_LIBRARY_PATH
16875 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16876 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16881 soname_spec='${libname}${release}${shared_ext}$major'
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883 shlibpath_var=LD_LIBRARY_PATH
16890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16891 soname_spec='${libname}${release}${shared_ext}$major'
16892 shlibpath_var=LD_LIBRARY_PATH
16893 shlibpath_overrides_runpath=yes
16894 hardcode_into_libs=yes
16895 # ldd complains unless libraries are executable
16896 postinstall_cmds='chmod +x $lib'
16901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16902 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16903 shlibpath_var=LD_LIBRARY_PATH
16904 shlibpath_overrides_runpath=yes
16905 if test "$with_gnu_ld" = yes; then
16911 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914 soname_spec='${libname}${release}${shared_ext}$major'
16915 shlibpath_var=LD_LIBRARY_PATH
16916 case $host_vendor in
16918 shlibpath_overrides_runpath=no
16920 export_dynamic_flag_spec='${wl}-Blargedynsym'
16921 runpath_var=LD_RUN_PATH
16929 shlibpath_overrides_runpath=no
16930 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16936 if test -d /usr/nec ;then
16938 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16939 soname_spec='$libname${shared_ext}.$major'
16940 shlibpath_var=LD_LIBRARY_PATH
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947 soname_spec='${libname}${release}${shared_ext}$major'
16948 shlibpath_var=LD_LIBRARY_PATH
16955 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16956 echo "${ECHO_T}$dynamic_linker" >&6
16957 test "$dynamic_linker" = no && can_build_shared=no
16959 if test "x$enable_dlopen" != xyes; then
16960 enable_dlopen=unknown
16961 enable_dlopen_self=unknown
16962 enable_dlopen_self_static=unknown
16969 lt_cv_dlopen="load_add_on"
16971 lt_cv_dlopen_self=yes
16975 lt_cv_dlopen="LoadLibrary"
16980 lt_cv_dlopen="dlopen"
16985 # if libdl is installed we need to link against it
16986 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16987 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 ac_check_lib_save_LIBS=$LIBS
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
17000 /* Override any gcc2 internal prototype to avoid an error. */
17004 /* We use char because int might match the return type of a gcc2
17005 builtin and then its argument prototype would still apply. */
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17017 (eval $ac_link) 2>conftest.er1
17019 grep -v '^ *+' conftest.er1 >conftest.err
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_c_werror_flag"
17025 || test ! -s conftest.err'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest$ac_exeext'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 ac_cv_lib_dl_dlopen=yes
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17042 ac_cv_lib_dl_dlopen=no
17044 rm -f conftest.err conftest.$ac_objext \
17045 conftest$ac_exeext conftest.$ac_ext
17046 LIBS=$ac_check_lib_save_LIBS
17048 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17049 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17050 if test $ac_cv_lib_dl_dlopen = yes; then
17051 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17054 lt_cv_dlopen="dyld"
17056 lt_cv_dlopen_self=yes
17063 echo "$as_me:$LINENO: checking for shl_load" >&5
17064 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17065 if test "${ac_cv_func_shl_load+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 cat >conftest.$ac_ext <<_ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17076 #define shl_load innocuous_shl_load
17078 /* System header to define __stub macros and hopefully few prototypes,
17079 which can conflict with char shl_load (); below.
17080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17081 <limits.h> exists even on freestanding compilers. */
17084 # include <limits.h>
17086 # include <assert.h>
17091 /* Override any gcc2 internal prototype to avoid an error. */
17096 /* We use char because int might match the return type of a gcc2
17097 builtin and then its argument prototype would still apply. */
17099 /* The GNU C library defines this for functions which it implements
17100 to always fail with ENOSYS. Some functions are actually named
17101 something starting with __ and the normal name is an alias. */
17102 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17105 char (*f) () = shl_load;
17114 return f != shl_load;
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121 (eval $ac_link) 2>conftest.er1
17123 grep -v '^ *+' conftest.er1 >conftest.err
17125 cat conftest.err >&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try='test -z "$ac_c_werror_flag"
17129 || test ! -s conftest.err'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest$ac_exeext'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 ac_cv_func_shl_load=yes
17143 echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17146 ac_cv_func_shl_load=no
17148 rm -f conftest.err conftest.$ac_objext \
17149 conftest$ac_exeext conftest.$ac_ext
17151 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17152 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17153 if test $ac_cv_func_shl_load = yes; then
17154 lt_cv_dlopen="shl_load"
17156 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17157 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17158 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 ac_check_lib_save_LIBS=$LIBS
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17170 /* Override any gcc2 internal prototype to avoid an error. */
17174 /* We use char because int might match the return type of a gcc2
17175 builtin and then its argument prototype would still apply. */
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>conftest.er1
17189 grep -v '^ *+' conftest.er1 >conftest.err
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -z "$ac_c_werror_flag"
17195 || test ! -s conftest.err'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; } &&
17201 { ac_try='test -s conftest$ac_exeext'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
17207 ac_cv_lib_dld_shl_load=yes
17209 echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17212 ac_cv_lib_dld_shl_load=no
17214 rm -f conftest.err conftest.$ac_objext \
17215 conftest$ac_exeext conftest.$ac_ext
17216 LIBS=$ac_check_lib_save_LIBS
17218 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17219 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17220 if test $ac_cv_lib_dld_shl_load = yes; then
17221 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17223 echo "$as_me:$LINENO: checking for dlopen" >&5
17224 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17225 if test "${ac_cv_func_dlopen+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 cat >conftest.$ac_ext <<_ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17236 #define dlopen innocuous_dlopen
17238 /* System header to define __stub macros and hopefully few prototypes,
17239 which can conflict with char dlopen (); below.
17240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17241 <limits.h> exists even on freestanding compilers. */
17244 # include <limits.h>
17246 # include <assert.h>
17251 /* Override any gcc2 internal prototype to avoid an error. */
17256 /* We use char because int might match the return type of a gcc2
17257 builtin and then its argument prototype would still apply. */
17259 /* The GNU C library defines this for functions which it implements
17260 to always fail with ENOSYS. Some functions are actually named
17261 something starting with __ and the normal name is an alias. */
17262 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17265 char (*f) () = dlopen;
17274 return f != dlopen;
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17281 (eval $ac_link) 2>conftest.er1
17283 grep -v '^ *+' conftest.er1 >conftest.err
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
17288 { ac_try='test -z "$ac_c_werror_flag"
17289 || test ! -s conftest.err'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_func_dlopen=yes
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_cv_func_dlopen=no
17308 rm -f conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
17311 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17312 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17313 if test $ac_cv_func_dlopen = yes; then
17314 lt_cv_dlopen="dlopen"
17316 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17317 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17318 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17321 ac_check_lib_save_LIBS=$LIBS
17323 cat >conftest.$ac_ext <<_ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17330 /* Override any gcc2 internal prototype to avoid an error. */
17334 /* We use char because int might match the return type of a gcc2
17335 builtin and then its argument prototype would still apply. */
17345 rm -f conftest.$ac_objext conftest$ac_exeext
17346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17347 (eval $ac_link) 2>conftest.er1
17349 grep -v '^ *+' conftest.er1 >conftest.err
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try='test -z "$ac_c_werror_flag"
17355 || test ! -s conftest.err'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try='test -s conftest$ac_exeext'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_cv_lib_dl_dlopen=yes
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 ac_cv_lib_dl_dlopen=no
17374 rm -f conftest.err conftest.$ac_objext \
17375 conftest$ac_exeext conftest.$ac_ext
17376 LIBS=$ac_check_lib_save_LIBS
17378 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17379 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17380 if test $ac_cv_lib_dl_dlopen = yes; then
17381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17383 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17384 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17385 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17388 ac_check_lib_save_LIBS=$LIBS
17389 LIBS="-lsvld $LIBS"
17390 cat >conftest.$ac_ext <<_ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17397 /* Override any gcc2 internal prototype to avoid an error. */
17401 /* We use char because int might match the return type of a gcc2
17402 builtin and then its argument prototype would still apply. */
17412 rm -f conftest.$ac_objext conftest$ac_exeext
17413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17414 (eval $ac_link) 2>conftest.er1
17416 grep -v '^ *+' conftest.er1 >conftest.err
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } &&
17421 { ac_try='test -z "$ac_c_werror_flag"
17422 || test ! -s conftest.err'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest$ac_exeext'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 ac_cv_lib_svld_dlopen=yes
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 ac_cv_lib_svld_dlopen=no
17441 rm -f conftest.err conftest.$ac_objext \
17442 conftest$ac_exeext conftest.$ac_ext
17443 LIBS=$ac_check_lib_save_LIBS
17445 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17446 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17447 if test $ac_cv_lib_svld_dlopen = yes; then
17448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17450 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17451 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17452 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
17455 ac_check_lib_save_LIBS=$LIBS
17457 cat >conftest.$ac_ext <<_ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17464 /* Override any gcc2 internal prototype to avoid an error. */
17468 /* We use char because int might match the return type of a gcc2
17469 builtin and then its argument prototype would still apply. */
17479 rm -f conftest.$ac_objext conftest$ac_exeext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481 (eval $ac_link) 2>conftest.er1
17483 grep -v '^ *+' conftest.er1 >conftest.err
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -z "$ac_c_werror_flag"
17489 || test ! -s conftest.err'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; } &&
17495 { ac_try='test -s conftest$ac_exeext'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; }; then
17501 ac_cv_lib_dld_dld_link=yes
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 ac_cv_lib_dld_dld_link=no
17508 rm -f conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17510 LIBS=$ac_check_lib_save_LIBS
17512 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17513 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17514 if test $ac_cv_lib_dld_dld_link = yes; then
17515 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17536 if test "x$lt_cv_dlopen" != xno; then
17542 case $lt_cv_dlopen in
17544 save_CPPFLAGS="$CPPFLAGS"
17545 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17547 save_LDFLAGS="$LDFLAGS"
17548 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17551 LIBS="$lt_cv_dlopen_libs $LIBS"
17553 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17554 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17555 if test "${lt_cv_dlopen_self+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 if test "$cross_compiling" = yes; then :
17559 lt_cv_dlopen_self=cross
17561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17562 lt_status=$lt_dlunknown
17563 cat > conftest.$ac_ext <<EOF
17564 #line 17564 "configure"
17565 #include "confdefs.h"
17574 # define LT_DLGLOBAL RTLD_GLOBAL
17577 # define LT_DLGLOBAL DL_GLOBAL
17579 # define LT_DLGLOBAL 0
17583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17584 find out it does not work in some platform. */
17585 #ifndef LT_DLLAZY_OR_NOW
17587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17590 # define LT_DLLAZY_OR_NOW DL_LAZY
17593 # define LT_DLLAZY_OR_NOW RTLD_NOW
17596 # define LT_DLLAZY_OR_NOW DL_NOW
17598 # define LT_DLLAZY_OR_NOW 0
17606 extern "C" void exit (int);
17609 void fnord() { int i=42;}
17612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17613 int status = $lt_dlunknown;
17617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17619 /* dlclose (self); */
17625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17626 (eval $ac_link) 2>&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17630 (./conftest; exit; ) 2>/dev/null
17632 case x$lt_status in
17633 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17634 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17635 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17638 # compilation failed
17639 lt_cv_dlopen_self=no
17646 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17647 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17649 if test "x$lt_cv_dlopen_self" = xyes; then
17650 LDFLAGS="$LDFLAGS $link_static_flag"
17651 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17652 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17653 if test "${lt_cv_dlopen_self_static+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 if test "$cross_compiling" = yes; then :
17657 lt_cv_dlopen_self_static=cross
17659 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17660 lt_status=$lt_dlunknown
17661 cat > conftest.$ac_ext <<EOF
17662 #line 17662 "configure"
17663 #include "confdefs.h"
17672 # define LT_DLGLOBAL RTLD_GLOBAL
17675 # define LT_DLGLOBAL DL_GLOBAL
17677 # define LT_DLGLOBAL 0
17681 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17682 find out it does not work in some platform. */
17683 #ifndef LT_DLLAZY_OR_NOW
17685 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17688 # define LT_DLLAZY_OR_NOW DL_LAZY
17691 # define LT_DLLAZY_OR_NOW RTLD_NOW
17694 # define LT_DLLAZY_OR_NOW DL_NOW
17696 # define LT_DLLAZY_OR_NOW 0
17704 extern "C" void exit (int);
17707 void fnord() { int i=42;}
17710 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17711 int status = $lt_dlunknown;
17715 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17716 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17717 /* dlclose (self); */
17723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17724 (eval $ac_link) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17728 (./conftest; exit; ) 2>/dev/null
17730 case x$lt_status in
17731 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17732 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17733 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17736 # compilation failed
17737 lt_cv_dlopen_self_static=no
17744 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17745 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17748 CPPFLAGS="$save_CPPFLAGS"
17749 LDFLAGS="$save_LDFLAGS"
17754 case $lt_cv_dlopen_self in
17755 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17756 *) enable_dlopen_self=unknown ;;
17759 case $lt_cv_dlopen_self_static in
17760 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17761 *) enable_dlopen_self_static=unknown ;;
17766 # The else clause should only fire when bootstrapping the
17767 # libtool distribution, otherwise you forgot to ship ltmain.sh
17768 # with your package, and you will get complaints that there are
17769 # no rules to generate ltmain.sh.
17770 if test -f "$ltmain"; then
17771 # See if we are running on zsh, and set the options which allow our commands through
17772 # without removal of \ escapes.
17773 if test -n "${ZSH_VERSION+set}" ; then
17774 setopt NO_GLOB_SUBST
17776 # Now quote all the things that may contain metacharacters while being
17777 # careful not to overquote the AC_SUBSTed values. We take copies of the
17778 # variables and quote the copies for generation of the libtool script.
17779 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17780 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17781 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17782 deplibs_check_method reload_flag reload_cmds need_locks \
17783 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17784 lt_cv_sys_global_symbol_to_c_name_address \
17785 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17786 old_postinstall_cmds old_postuninstall_cmds \
17790 lt_prog_compiler_wl_GCJ \
17791 lt_prog_compiler_pic_GCJ \
17792 lt_prog_compiler_static_GCJ \
17793 lt_prog_compiler_no_builtin_flag_GCJ \
17794 export_dynamic_flag_spec_GCJ \
17795 thread_safe_flag_spec_GCJ \
17796 whole_archive_flag_spec_GCJ \
17797 enable_shared_with_static_runtimes_GCJ \
17798 old_archive_cmds_GCJ \
17799 old_archive_from_new_cmds_GCJ \
17800 predep_objects_GCJ \
17801 postdep_objects_GCJ \
17804 compiler_lib_search_path_GCJ \
17806 archive_expsym_cmds_GCJ \
17807 postinstall_cmds_GCJ \
17808 postuninstall_cmds_GCJ \
17809 old_archive_from_expsyms_cmds_GCJ \
17810 allow_undefined_flag_GCJ \
17811 no_undefined_flag_GCJ \
17812 export_symbols_cmds_GCJ \
17813 hardcode_libdir_flag_spec_GCJ \
17814 hardcode_libdir_flag_spec_ld_GCJ \
17815 hardcode_libdir_separator_GCJ \
17816 hardcode_automatic_GCJ \
17818 module_expsym_cmds_GCJ \
17819 lt_cv_prog_compiler_c_o_GCJ \
17820 exclude_expsyms_GCJ \
17821 include_expsyms_GCJ; do
17824 old_archive_cmds_GCJ | \
17825 old_archive_from_new_cmds_GCJ | \
17826 archive_cmds_GCJ | \
17827 archive_expsym_cmds_GCJ | \
17828 module_cmds_GCJ | \
17829 module_expsym_cmds_GCJ | \
17830 old_archive_from_expsyms_cmds_GCJ | \
17831 export_symbols_cmds_GCJ | \
17832 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17833 postinstall_cmds | postuninstall_cmds | \
17834 old_postinstall_cmds | old_postuninstall_cmds | \
17835 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17836 # Double-quote double-evaled strings.
17837 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17840 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17846 *'\$0 --fallback-echo"')
17847 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17853 cat <<__EOF__ >> "$cfgfile"
17854 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17856 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17858 # Shell to use when invoking shell scripts.
17861 # Whether or not to build shared libraries.
17862 build_libtool_libs=$enable_shared
17864 # Whether or not to build static libraries.
17865 build_old_libs=$enable_static
17867 # Whether or not to add -lc for building shared libraries.
17868 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17870 # Whether or not to disallow shared libs when runtime libs are static
17871 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17873 # Whether or not to optimize for fast installation.
17874 fast_install=$enable_fast_install
17877 host_alias=$host_alias
17880 # An echo program that does not interpret backslashes.
17885 AR_FLAGS=$lt_AR_FLAGS
17890 # A language-specific compiler.
17891 CC=$lt_compiler_GCJ
17893 # Is the compiler the GNU C compiler?
17899 # The linker used to build libraries.
17902 # Whether we need hard or soft links.
17905 # A BSD-compatible nm program.
17908 # A symbol stripping program
17911 # Used to examine libraries when file_magic_cmd begins "file"
17912 MAGIC_CMD=$MAGIC_CMD
17914 # Used on cygwin: DLL creation program.
17917 # Used on cygwin: object dumper.
17920 # Used on cygwin: assembler.
17923 # The name of the directory that contains temporary libtool files.
17926 # How to create reloadable object files.
17927 reload_flag=$lt_reload_flag
17928 reload_cmds=$lt_reload_cmds
17930 # How to pass a linker flag through the compiler.
17931 wl=$lt_lt_prog_compiler_wl_GCJ
17933 # Object file suffix (normally "o").
17934 objext="$ac_objext"
17936 # Old archive suffix (normally "a").
17939 # Shared library suffix (normally ".so").
17942 # Executable file suffix (normally "").
17945 # Additional compiler flags for building library objects.
17946 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17949 # What is the maximum length of a command?
17950 max_cmd_len=$lt_cv_sys_max_cmd_len
17952 # Does compiler simultaneously support -c and -o options?
17953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17955 # Must we lock files when doing compilation ?
17956 need_locks=$lt_need_locks
17958 # Do we need the lib prefix for modules?
17959 need_lib_prefix=$need_lib_prefix
17961 # Do we need a version for libraries?
17962 need_version=$need_version
17964 # Whether dlopen is supported.
17965 dlopen_support=$enable_dlopen
17967 # Whether dlopen of programs is supported.
17968 dlopen_self=$enable_dlopen_self
17970 # Whether dlopen of statically linked programs is supported.
17971 dlopen_self_static=$enable_dlopen_self_static
17973 # Compiler flag to prevent dynamic linking.
17974 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17976 # Compiler flag to turn off builtin functions.
17977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17979 # Compiler flag to allow reflexive dlopens.
17980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17982 # Compiler flag to generate shared objects directly from archives.
17983 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17985 # Compiler flag to generate thread-safe objects.
17986 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17988 # Library versioning type.
17989 version_type=$version_type
17991 # Format of library name prefix.
17992 libname_spec=$lt_libname_spec
17994 # List of archive names. First name is the real one, the rest are links.
17995 # The last name is the one that the linker finds with -lNAME.
17996 library_names_spec=$lt_library_names_spec
17998 # The coded name of the library, if different from the real name.
17999 soname_spec=$lt_soname_spec
18001 # Commands used to build and install an old-style archive.
18003 old_archive_cmds=$lt_old_archive_cmds_GCJ
18004 old_postinstall_cmds=$lt_old_postinstall_cmds
18005 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18007 # Create an old-style archive from a shared archive.
18008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18010 # Create a temporary old-style archive to link instead of a shared archive.
18011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18013 # Commands used to build and install a shared archive.
18014 archive_cmds=$lt_archive_cmds_GCJ
18015 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18016 postinstall_cmds=$lt_postinstall_cmds
18017 postuninstall_cmds=$lt_postuninstall_cmds
18019 # Commands used to build a loadable module (assumed same as above if empty)
18020 module_cmds=$lt_module_cmds_GCJ
18021 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18023 # Commands to strip libraries.
18024 old_striplib=$lt_old_striplib
18025 striplib=$lt_striplib
18027 # Dependencies to place before the objects being linked to create a
18029 predep_objects=$lt_predep_objects_GCJ
18031 # Dependencies to place after the objects being linked to create a
18033 postdep_objects=$lt_postdep_objects_GCJ
18035 # Dependencies to place before the objects being linked to create a
18037 predeps=$lt_predeps_GCJ
18039 # Dependencies to place after the objects being linked to create a
18041 postdeps=$lt_postdeps_GCJ
18043 # The library search path used internally by the compiler when linking
18044 # a shared library.
18045 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18047 # Method to check whether dependent libraries are shared objects.
18048 deplibs_check_method=$lt_deplibs_check_method
18050 # Command to use when deplibs_check_method == file_magic.
18051 file_magic_cmd=$lt_file_magic_cmd
18053 # Flag that allows shared libraries with undefined symbols to be built.
18054 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18056 # Flag that forces no undefined symbols.
18057 no_undefined_flag=$lt_no_undefined_flag_GCJ
18059 # Commands used to finish a libtool library installation in a directory.
18060 finish_cmds=$lt_finish_cmds
18062 # Same as above, but a single script fragment to be evaled but not shown.
18063 finish_eval=$lt_finish_eval
18065 # Take the output of nm and produce a listing of raw symbols and C names.
18066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18068 # Transform the output of nm in a proper C declaration
18069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18071 # Transform the output of nm in a C name address pair
18072 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18074 # This is the shared library runtime path variable.
18075 runpath_var=$runpath_var
18077 # This is the shared library path variable.
18078 shlibpath_var=$shlibpath_var
18080 # Is shlibpath searched before the hard-coded library search path?
18081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18083 # How to hardcode a shared library path into an executable.
18084 hardcode_action=$hardcode_action_GCJ
18086 # Whether we should hardcode library paths into libraries.
18087 hardcode_into_libs=$hardcode_into_libs
18089 # Flag to hardcode \$libdir into a binary during linking.
18090 # This must work even if \$libdir does not exist.
18091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18093 # If ld is used when linking, flag to hardcode \$libdir into
18094 # a binary during linking. This must work even if \$libdir does
18096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18098 # Whether we need a single -rpath flag with a separated argument.
18099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18101 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18102 # resulting binary.
18103 hardcode_direct=$hardcode_direct_GCJ
18105 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18106 # resulting binary.
18107 hardcode_minus_L=$hardcode_minus_L_GCJ
18109 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18110 # the resulting binary.
18111 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18113 # Set to yes if building a shared library automatically hardcodes DIR into the library
18114 # and all subsequent libraries and executables linked against it.
18115 hardcode_automatic=$hardcode_automatic_GCJ
18117 # Variables whose values should be saved in libtool wrapper scripts and
18118 # restored at relink time.
18119 variables_saved_for_relink="$variables_saved_for_relink"
18121 # Whether libtool must link a program against all its dependency libraries.
18122 link_all_deplibs=$link_all_deplibs_GCJ
18124 # Compile-time system search path for libraries
18125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18127 # Run-time system search path for libraries
18128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18130 # Fix the shell variable \$srcfile for the compiler.
18131 fix_srcfile_path="$fix_srcfile_path_GCJ"
18133 # Set to yes if exported symbols are required.
18134 always_export_symbols=$always_export_symbols_GCJ
18136 # The commands to list exported symbols.
18137 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18139 # The commands to extract the exported symbol list from a shared archive.
18140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18142 # Symbols that should not be listed in the preloaded symbols.
18143 exclude_expsyms=$lt_exclude_expsyms_GCJ
18145 # Symbols that must always be exported.
18146 include_expsyms=$lt_include_expsyms_GCJ
18148 # ### END LIBTOOL TAG CONFIG: $tagname
18154 # If there is no Makefile yet, we rely on a make rule to execute
18155 # `config.status --recheck' to rerun these tests and create the
18156 # libtool script then.
18157 test -f Makefile && make "$ltmain"
18162 ac_cpp='$CPP $CPPFLAGS'
18163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18178 # Source file extension for RC test sources.
18181 # Object file extension for compiled RC test sources.
18185 # Code to be used in simple compile tests
18186 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18188 # Code to be used in simple link tests
18189 lt_simple_link_test_code="$lt_simple_compile_test_code"
18191 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18193 # If no C compiler was specified, use CC.
18196 # Allow CC to be a program name with arguments.
18200 # Allow CC to be a program name with arguments.
18205 lt_cv_prog_compiler_c_o_RC=yes
18207 # The else clause should only fire when bootstrapping the
18208 # libtool distribution, otherwise you forgot to ship ltmain.sh
18209 # with your package, and you will get complaints that there are
18210 # no rules to generate ltmain.sh.
18211 if test -f "$ltmain"; then
18212 # See if we are running on zsh, and set the options which allow our commands through
18213 # without removal of \ escapes.
18214 if test -n "${ZSH_VERSION+set}" ; then
18215 setopt NO_GLOB_SUBST
18217 # Now quote all the things that may contain metacharacters while being
18218 # careful not to overquote the AC_SUBSTed values. We take copies of the
18219 # variables and quote the copies for generation of the libtool script.
18220 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18223 deplibs_check_method reload_flag reload_cmds need_locks \
18224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18225 lt_cv_sys_global_symbol_to_c_name_address \
18226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18227 old_postinstall_cmds old_postuninstall_cmds \
18231 lt_prog_compiler_wl_RC \
18232 lt_prog_compiler_pic_RC \
18233 lt_prog_compiler_static_RC \
18234 lt_prog_compiler_no_builtin_flag_RC \
18235 export_dynamic_flag_spec_RC \
18236 thread_safe_flag_spec_RC \
18237 whole_archive_flag_spec_RC \
18238 enable_shared_with_static_runtimes_RC \
18239 old_archive_cmds_RC \
18240 old_archive_from_new_cmds_RC \
18241 predep_objects_RC \
18242 postdep_objects_RC \
18245 compiler_lib_search_path_RC \
18247 archive_expsym_cmds_RC \
18248 postinstall_cmds_RC \
18249 postuninstall_cmds_RC \
18250 old_archive_from_expsyms_cmds_RC \
18251 allow_undefined_flag_RC \
18252 no_undefined_flag_RC \
18253 export_symbols_cmds_RC \
18254 hardcode_libdir_flag_spec_RC \
18255 hardcode_libdir_flag_spec_ld_RC \
18256 hardcode_libdir_separator_RC \
18257 hardcode_automatic_RC \
18259 module_expsym_cmds_RC \
18260 lt_cv_prog_compiler_c_o_RC \
18261 exclude_expsyms_RC \
18262 include_expsyms_RC; do
18265 old_archive_cmds_RC | \
18266 old_archive_from_new_cmds_RC | \
18267 archive_cmds_RC | \
18268 archive_expsym_cmds_RC | \
18270 module_expsym_cmds_RC | \
18271 old_archive_from_expsyms_cmds_RC | \
18272 export_symbols_cmds_RC | \
18273 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18274 postinstall_cmds | postuninstall_cmds | \
18275 old_postinstall_cmds | old_postuninstall_cmds | \
18276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18277 # Double-quote double-evaled strings.
18278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18287 *'\$0 --fallback-echo"')
18288 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18294 cat <<__EOF__ >> "$cfgfile"
18295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18299 # Shell to use when invoking shell scripts.
18302 # Whether or not to build shared libraries.
18303 build_libtool_libs=$enable_shared
18305 # Whether or not to build static libraries.
18306 build_old_libs=$enable_static
18308 # Whether or not to add -lc for building shared libraries.
18309 build_libtool_need_lc=$archive_cmds_need_lc_RC
18311 # Whether or not to disallow shared libs when runtime libs are static
18312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18314 # Whether or not to optimize for fast installation.
18315 fast_install=$enable_fast_install
18318 host_alias=$host_alias
18321 # An echo program that does not interpret backslashes.
18326 AR_FLAGS=$lt_AR_FLAGS
18331 # A language-specific compiler.
18334 # Is the compiler the GNU C compiler?
18340 # The linker used to build libraries.
18343 # Whether we need hard or soft links.
18346 # A BSD-compatible nm program.
18349 # A symbol stripping program
18352 # Used to examine libraries when file_magic_cmd begins "file"
18353 MAGIC_CMD=$MAGIC_CMD
18355 # Used on cygwin: DLL creation program.
18358 # Used on cygwin: object dumper.
18361 # Used on cygwin: assembler.
18364 # The name of the directory that contains temporary libtool files.
18367 # How to create reloadable object files.
18368 reload_flag=$lt_reload_flag
18369 reload_cmds=$lt_reload_cmds
18371 # How to pass a linker flag through the compiler.
18372 wl=$lt_lt_prog_compiler_wl_RC
18374 # Object file suffix (normally "o").
18375 objext="$ac_objext"
18377 # Old archive suffix (normally "a").
18380 # Shared library suffix (normally ".so").
18383 # Executable file suffix (normally "").
18386 # Additional compiler flags for building library objects.
18387 pic_flag=$lt_lt_prog_compiler_pic_RC
18390 # What is the maximum length of a command?
18391 max_cmd_len=$lt_cv_sys_max_cmd_len
18393 # Does compiler simultaneously support -c and -o options?
18394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18396 # Must we lock files when doing compilation ?
18397 need_locks=$lt_need_locks
18399 # Do we need the lib prefix for modules?
18400 need_lib_prefix=$need_lib_prefix
18402 # Do we need a version for libraries?
18403 need_version=$need_version
18405 # Whether dlopen is supported.
18406 dlopen_support=$enable_dlopen
18408 # Whether dlopen of programs is supported.
18409 dlopen_self=$enable_dlopen_self
18411 # Whether dlopen of statically linked programs is supported.
18412 dlopen_self_static=$enable_dlopen_self_static
18414 # Compiler flag to prevent dynamic linking.
18415 link_static_flag=$lt_lt_prog_compiler_static_RC
18417 # Compiler flag to turn off builtin functions.
18418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18420 # Compiler flag to allow reflexive dlopens.
18421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18423 # Compiler flag to generate shared objects directly from archives.
18424 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18426 # Compiler flag to generate thread-safe objects.
18427 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18429 # Library versioning type.
18430 version_type=$version_type
18432 # Format of library name prefix.
18433 libname_spec=$lt_libname_spec
18435 # List of archive names. First name is the real one, the rest are links.
18436 # The last name is the one that the linker finds with -lNAME.
18437 library_names_spec=$lt_library_names_spec
18439 # The coded name of the library, if different from the real name.
18440 soname_spec=$lt_soname_spec
18442 # Commands used to build and install an old-style archive.
18444 old_archive_cmds=$lt_old_archive_cmds_RC
18445 old_postinstall_cmds=$lt_old_postinstall_cmds
18446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18448 # Create an old-style archive from a shared archive.
18449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18451 # Create a temporary old-style archive to link instead of a shared archive.
18452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18454 # Commands used to build and install a shared archive.
18455 archive_cmds=$lt_archive_cmds_RC
18456 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18457 postinstall_cmds=$lt_postinstall_cmds
18458 postuninstall_cmds=$lt_postuninstall_cmds
18460 # Commands used to build a loadable module (assumed same as above if empty)
18461 module_cmds=$lt_module_cmds_RC
18462 module_expsym_cmds=$lt_module_expsym_cmds_RC
18464 # Commands to strip libraries.
18465 old_striplib=$lt_old_striplib
18466 striplib=$lt_striplib
18468 # Dependencies to place before the objects being linked to create a
18470 predep_objects=$lt_predep_objects_RC
18472 # Dependencies to place after the objects being linked to create a
18474 postdep_objects=$lt_postdep_objects_RC
18476 # Dependencies to place before the objects being linked to create a
18478 predeps=$lt_predeps_RC
18480 # Dependencies to place after the objects being linked to create a
18482 postdeps=$lt_postdeps_RC
18484 # The library search path used internally by the compiler when linking
18485 # a shared library.
18486 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18488 # Method to check whether dependent libraries are shared objects.
18489 deplibs_check_method=$lt_deplibs_check_method
18491 # Command to use when deplibs_check_method == file_magic.
18492 file_magic_cmd=$lt_file_magic_cmd
18494 # Flag that allows shared libraries with undefined symbols to be built.
18495 allow_undefined_flag=$lt_allow_undefined_flag_RC
18497 # Flag that forces no undefined symbols.
18498 no_undefined_flag=$lt_no_undefined_flag_RC
18500 # Commands used to finish a libtool library installation in a directory.
18501 finish_cmds=$lt_finish_cmds
18503 # Same as above, but a single script fragment to be evaled but not shown.
18504 finish_eval=$lt_finish_eval
18506 # Take the output of nm and produce a listing of raw symbols and C names.
18507 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18509 # Transform the output of nm in a proper C declaration
18510 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18512 # Transform the output of nm in a C name address pair
18513 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18515 # This is the shared library runtime path variable.
18516 runpath_var=$runpath_var
18518 # This is the shared library path variable.
18519 shlibpath_var=$shlibpath_var
18521 # Is shlibpath searched before the hard-coded library search path?
18522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18524 # How to hardcode a shared library path into an executable.
18525 hardcode_action=$hardcode_action_RC
18527 # Whether we should hardcode library paths into libraries.
18528 hardcode_into_libs=$hardcode_into_libs
18530 # Flag to hardcode \$libdir into a binary during linking.
18531 # This must work even if \$libdir does not exist.
18532 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18534 # If ld is used when linking, flag to hardcode \$libdir into
18535 # a binary during linking. This must work even if \$libdir does
18537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18539 # Whether we need a single -rpath flag with a separated argument.
18540 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18542 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18543 # resulting binary.
18544 hardcode_direct=$hardcode_direct_RC
18546 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18547 # resulting binary.
18548 hardcode_minus_L=$hardcode_minus_L_RC
18550 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18551 # the resulting binary.
18552 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18554 # Set to yes if building a shared library automatically hardcodes DIR into the library
18555 # and all subsequent libraries and executables linked against it.
18556 hardcode_automatic=$hardcode_automatic_RC
18558 # Variables whose values should be saved in libtool wrapper scripts and
18559 # restored at relink time.
18560 variables_saved_for_relink="$variables_saved_for_relink"
18562 # Whether libtool must link a program against all its dependency libraries.
18563 link_all_deplibs=$link_all_deplibs_RC
18565 # Compile-time system search path for libraries
18566 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18568 # Run-time system search path for libraries
18569 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18571 # Fix the shell variable \$srcfile for the compiler.
18572 fix_srcfile_path="$fix_srcfile_path_RC"
18574 # Set to yes if exported symbols are required.
18575 always_export_symbols=$always_export_symbols_RC
18577 # The commands to list exported symbols.
18578 export_symbols_cmds=$lt_export_symbols_cmds_RC
18580 # The commands to extract the exported symbol list from a shared archive.
18581 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18583 # Symbols that should not be listed in the preloaded symbols.
18584 exclude_expsyms=$lt_exclude_expsyms_RC
18586 # Symbols that must always be exported.
18587 include_expsyms=$lt_include_expsyms_RC
18589 # ### END LIBTOOL TAG CONFIG: $tagname
18595 # If there is no Makefile yet, we rely on a make rule to execute
18596 # `config.status --recheck' to rerun these tests and create the
18597 # libtool script then.
18598 test -f Makefile && make "$ltmain"
18603 ac_cpp='$CPP $CPPFLAGS'
18604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18613 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18614 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18615 { (exit 1); exit 1; }; }
18619 # Append the new tag name to the list of available tags.
18620 if test -n "$tagname" ; then
18621 available_tags="$available_tags $tagname"
18627 # Now substitute the updated list of available tags.
18628 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18629 mv "${ofile}T" "$ofile"
18633 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18634 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18635 { (exit 1); exit 1; }; }
18641 # This can be used to rebuild libtool when needed
18642 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18644 # Always use our own libtool.
18645 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18647 # Prevent multiple expansion
18669 # Extract the first word of "dot", so it can be a program name with args.
18670 set dummy dot; ac_word=$2
18671 echo "$as_me:$LINENO: checking for $ac_word" >&5
18672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18673 if test "${ac_cv_path_DOT+set}" = set; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18682 for as_dir in $PATH
18685 test -z "$as_dir" && as_dir=.
18686 for ac_exec_ext in '' $ac_executable_extensions; do
18687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18688 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18695 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18699 DOT=$ac_cv_path_DOT
18701 if test -n "$DOT"; then
18702 echo "$as_me:$LINENO: result: $DOT" >&5
18703 echo "${ECHO_T}$DOT" >&6
18705 echo "$as_me:$LINENO: result: no" >&5
18706 echo "${ECHO_T}no" >&6
18709 # Extract the first word of "etags", so it can be a program name with args.
18710 set dummy etags; ac_word=$2
18711 echo "$as_me:$LINENO: checking for $ac_word" >&5
18712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18713 if test "${ac_cv_path_ETAGS+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18718 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18722 for as_dir in $PATH
18725 test -z "$as_dir" && as_dir=.
18726 for ac_exec_ext in '' $ac_executable_extensions; do
18727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18728 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18735 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18739 ETAGS=$ac_cv_path_ETAGS
18741 if test -n "$ETAGS"; then
18742 echo "$as_me:$LINENO: result: $ETAGS" >&5
18743 echo "${ECHO_T}$ETAGS" >&6
18745 echo "$as_me:$LINENO: result: no" >&5
18746 echo "${ECHO_T}no" >&6
18749 etags_version=`$ETAGS --version 2>&1`
18750 case "$etags_version" in
18751 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18752 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18753 *) ETAGSFLAGS="" ;;
18755 ETAGSFLAGS=$ETAGSFLAGS
18757 # Extract the first word of "python", so it can be a program name with args.
18758 set dummy python; ac_word=$2
18759 echo "$as_me:$LINENO: checking for $ac_word" >&5
18760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18761 if test "${ac_cv_path_PYTHON+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770 for as_dir in $PATH
18773 test -z "$as_dir" && as_dir=.
18774 for ac_exec_ext in '' $ac_executable_extensions; do
18775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18783 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18787 PYTHON=$ac_cv_path_PYTHON
18789 if test -n "$PYTHON"; then
18790 echo "$as_me:$LINENO: result: $PYTHON" >&5
18791 echo "${ECHO_T}$PYTHON" >&6
18793 echo "$as_me:$LINENO: result: no" >&5
18794 echo "${ECHO_T}no" >&6
18797 if test "$PYTHON" = "false"
18799 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18800 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18802 # Extract the first word of "qmtest", so it can be a program name with args.
18803 set dummy qmtest; ac_word=$2
18804 echo "$as_me:$LINENO: checking for $ac_word" >&5
18805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18806 if test "${ac_cv_path_QMTEST+set}" = set; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18815 for as_dir in $PATH
18818 test -z "$as_dir" && as_dir=.
18819 for ac_exec_ext in '' $ac_executable_extensions; do
18820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18821 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18828 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18832 QMTEST=$ac_cv_path_QMTEST
18834 if test -n "$QMTEST"; then
18835 echo "$as_me:$LINENO: result: $QMTEST" >&5
18836 echo "${ECHO_T}$QMTEST" >&6
18838 echo "$as_me:$LINENO: result: no" >&5
18839 echo "${ECHO_T}no" >&6
18842 if test "$QMTEST" = "false"
18844 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18845 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18848 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18849 pymajor=`echo $pyversion | cut -d. -f1`
18850 pyminor=`echo $pyversion | cut -d. -f2`
18852 if test "$pymajor" -ge "2"
18854 if test "$pymajor" -eq "2"
18856 if test "$pyminor" -lt "2"
18858 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18859 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18863 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18864 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18870 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18871 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18872 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18873 echo $ECHO_N "(cached) $ECHO_C" >&6
18875 ac_check_lib_save_LIBS=$LIBS
18877 cat >conftest.$ac_ext <<_ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18884 /* Override any gcc2 internal prototype to avoid an error. */
18888 /* We use char because int might match the return type of a gcc2
18889 builtin and then its argument prototype would still apply. */
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18901 (eval $ac_link) 2>conftest.er1
18903 grep -v '^ *+' conftest.er1 >conftest.err
18905 cat conftest.err >&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } &&
18908 { ac_try='test -z "$ac_c_werror_flag"
18909 || test ! -s conftest.err'
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; } &&
18915 { ac_try='test -s conftest$ac_exeext'
18916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917 (eval $ac_try) 2>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; }; then
18921 ac_cv_lib_elf_elf_begin=yes
18923 echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18926 ac_cv_lib_elf_elf_begin=no
18928 rm -f conftest.err conftest.$ac_objext \
18929 conftest$ac_exeext conftest.$ac_ext
18930 LIBS=$ac_check_lib_save_LIBS
18932 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18933 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18934 if test $ac_cv_lib_elf_elf_begin = yes; then
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_LIBELF 1
18944 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18945 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18946 if test "${ac_cv_search_dlopen+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 ac_func_search_save_LIBS=$LIBS
18950 ac_cv_search_dlopen=no
18951 cat >conftest.$ac_ext <<_ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18958 /* Override any gcc2 internal prototype to avoid an error. */
18962 /* We use char because int might match the return type of a gcc2
18963 builtin and then its argument prototype would still apply. */
18973 rm -f conftest.$ac_objext conftest$ac_exeext
18974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18975 (eval $ac_link) 2>conftest.er1
18977 grep -v '^ *+' conftest.er1 >conftest.err
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
18982 { ac_try='test -z "$ac_c_werror_flag"
18983 || test ! -s conftest.err'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; } &&
18989 { ac_try='test -s conftest$ac_exeext'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 ac_cv_search_dlopen="none required"
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19001 rm -f conftest.err conftest.$ac_objext \
19002 conftest$ac_exeext conftest.$ac_ext
19003 if test "$ac_cv_search_dlopen" = no; then
19004 for ac_lib in dl; do
19005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19006 cat >conftest.$ac_ext <<_ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19013 /* Override any gcc2 internal prototype to avoid an error. */
19017 /* We use char because int might match the return type of a gcc2
19018 builtin and then its argument prototype would still apply. */
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19030 (eval $ac_link) 2>conftest.er1
19032 grep -v '^ *+' conftest.er1 >conftest.err
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag"
19038 || test ! -s conftest.err'
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest$ac_exeext'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_cv_search_dlopen="-l$ac_lib"
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19057 rm -f conftest.err conftest.$ac_objext \
19058 conftest$ac_exeext conftest.$ac_ext
19061 LIBS=$ac_func_search_save_LIBS
19063 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19064 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19065 if test "$ac_cv_search_dlopen" != no; then
19066 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19068 cat >>confdefs.h <<\_ACEOF
19069 #define HAVE_DLOPEN 1
19073 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19074 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19078 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19079 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19080 if test "${ac_cv_search_mallinfo+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 ac_func_search_save_LIBS=$LIBS
19084 ac_cv_search_mallinfo=no
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19092 /* Override any gcc2 internal prototype to avoid an error. */
19096 /* We use char because int might match the return type of a gcc2
19097 builtin and then its argument prototype would still apply. */
19107 rm -f conftest.$ac_objext conftest$ac_exeext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19109 (eval $ac_link) 2>conftest.er1
19111 grep -v '^ *+' conftest.er1 >conftest.err
19113 cat conftest.err >&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
19116 { ac_try='test -z "$ac_c_werror_flag"
19117 || test ! -s conftest.err'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try='test -s conftest$ac_exeext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_cv_search_mallinfo="none required"
19131 echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19135 rm -f conftest.err conftest.$ac_objext \
19136 conftest$ac_exeext conftest.$ac_ext
19137 if test "$ac_cv_search_mallinfo" = no; then
19138 for ac_lib in malloc; do
19139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19140 cat >conftest.$ac_ext <<_ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19147 /* Override any gcc2 internal prototype to avoid an error. */
19151 /* We use char because int might match the return type of a gcc2
19152 builtin and then its argument prototype would still apply. */
19162 rm -f conftest.$ac_objext conftest$ac_exeext
19163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19164 (eval $ac_link) 2>conftest.er1
19166 grep -v '^ *+' conftest.er1 >conftest.err
19168 cat conftest.err >&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } &&
19171 { ac_try='test -z "$ac_c_werror_flag"
19172 || test ! -s conftest.err'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; } &&
19178 { ac_try='test -s conftest$ac_exeext'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184 ac_cv_search_mallinfo="-l$ac_lib"
19187 echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19191 rm -f conftest.err conftest.$ac_objext \
19192 conftest$ac_exeext conftest.$ac_ext
19195 LIBS=$ac_func_search_save_LIBS
19197 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19198 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19199 if test "$ac_cv_search_mallinfo" != no; then
19200 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE_MALLINFO 1
19209 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19210 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19211 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19214 ac_func_search_save_LIBS=$LIBS
19215 ac_cv_search_pthread_mutex_lock=no
19216 cat >conftest.$ac_ext <<_ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19223 /* Override any gcc2 internal prototype to avoid an error. */
19227 /* We use char because int might match the return type of a gcc2
19228 builtin and then its argument prototype would still apply. */
19229 char pthread_mutex_lock ();
19233 pthread_mutex_lock ();
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19240 (eval $ac_link) 2>conftest.er1
19242 grep -v '^ *+' conftest.er1 >conftest.err
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest$ac_exeext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_search_pthread_mutex_lock="none required"
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19266 rm -f conftest.err conftest.$ac_objext \
19267 conftest$ac_exeext conftest.$ac_ext
19268 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19269 for ac_lib in pthread; do
19270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19278 /* Override any gcc2 internal prototype to avoid an error. */
19282 /* We use char because int might match the return type of a gcc2
19283 builtin and then its argument prototype would still apply. */
19284 char pthread_mutex_lock ();
19288 pthread_mutex_lock ();
19293 rm -f conftest.$ac_objext conftest$ac_exeext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295 (eval $ac_link) 2>conftest.er1
19297 grep -v '^ *+' conftest.er1 >conftest.err
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
19302 { ac_try='test -z "$ac_c_werror_flag"
19303 || test ! -s conftest.err'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; } &&
19309 { ac_try='test -s conftest$ac_exeext'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; }; then
19315 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19318 echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19322 rm -f conftest.err conftest.$ac_objext \
19323 conftest$ac_exeext conftest.$ac_ext
19326 LIBS=$ac_func_search_save_LIBS
19328 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19329 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19330 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19331 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19332 HAVE_PTHREAD_MUTEX_LOCK=1
19334 HAVE_PTHREAD_MUTEX_LOCK=0
19339 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19340 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19341 if test "${ac_cv_header_stdc+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19344 cat >conftest.$ac_ext <<_ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19350 #include <stdlib.h>
19351 #include <stdarg.h>
19352 #include <string.h>
19363 rm -f conftest.$ac_objext
19364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19365 (eval $ac_compile) 2>conftest.er1
19367 grep -v '^ *+' conftest.er1 >conftest.err
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_c_werror_flag"
19373 || test ! -s conftest.err'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try='test -s conftest.$ac_objext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_cv_header_stdc=yes
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19390 ac_cv_header_stdc=no
19392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19394 if test $ac_cv_header_stdc = yes; then
19395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19396 cat >conftest.$ac_ext <<_ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19402 #include <string.h>
19405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19406 $EGREP "memchr" >/dev/null 2>&1; then
19409 ac_cv_header_stdc=no
19415 if test $ac_cv_header_stdc = yes; then
19416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19417 cat >conftest.$ac_ext <<_ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19423 #include <stdlib.h>
19426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19427 $EGREP "free" >/dev/null 2>&1; then
19430 ac_cv_header_stdc=no
19436 if test $ac_cv_header_stdc = yes; then
19437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19438 if test "$cross_compiling" = yes; then
19441 cat >conftest.$ac_ext <<_ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19448 #if ((' ' & 0x0FF) == 0x020)
19449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19452 # define ISLOWER(c) \
19453 (('a' <= (c) && (c) <= 'i') \
19454 || ('j' <= (c) && (c) <= 'r') \
19455 || ('s' <= (c) && (c) <= 'z'))
19456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19464 for (i = 0; i < 256; i++)
19465 if (XOR (islower (i), ISLOWER (i))
19466 || toupper (i) != TOUPPER (i))
19471 rm -f conftest$ac_exeext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473 (eval $ac_link) 2>&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19484 echo "$as_me: program exited with status $ac_status" >&5
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 ( exit $ac_status )
19489 ac_cv_header_stdc=no
19491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19495 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19496 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19497 if test $ac_cv_header_stdc = yes; then
19499 cat >>confdefs.h <<\_ACEOF
19500 #define STDC_HEADERS 1
19505 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19506 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19507 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 cat >conftest.$ac_ext <<_ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19516 #include <sys/types.h>
19517 #include <sys/wait.h>
19518 #ifndef WEXITSTATUS
19519 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19522 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19530 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19535 rm -f conftest.$ac_objext
19536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19537 (eval $ac_compile) 2>conftest.er1
19539 grep -v '^ *+' conftest.er1 >conftest.err
19541 cat conftest.err >&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } &&
19544 { ac_try='test -z "$ac_c_werror_flag"
19545 || test ! -s conftest.err'
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; } &&
19551 { ac_try='test -s conftest.$ac_objext'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557 ac_cv_header_sys_wait_h=yes
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19562 ac_cv_header_sys_wait_h=no
19564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19566 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19567 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19568 if test $ac_cv_header_sys_wait_h = yes; then
19570 cat >>confdefs.h <<\_ACEOF
19571 #define HAVE_SYS_WAIT_H 1
19588 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
19590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19592 echo "$as_me:$LINENO: checking for $ac_header" >&5
19593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19600 # Is the header compilable?
19601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 $ac_includes_default
19610 #include <$ac_header>
19612 rm -f conftest.$ac_objext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19614 (eval $ac_compile) 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } &&
19621 { ac_try='test -z "$ac_c_werror_flag"
19622 || test ! -s conftest.err'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; } &&
19628 { ac_try='test -s conftest.$ac_objext'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 ac_header_compiler=yes
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ac_header_compiler=no
19641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19643 echo "${ECHO_T}$ac_header_compiler" >&6
19645 # Is the header present?
19646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19654 #include <$ac_header>
19656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19659 grep -v '^ *+' conftest.er1 >conftest.err
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } >/dev/null; then
19664 if test -s conftest.err; then
19665 ac_cpp_err=$ac_c_preproc_warn_flag
19666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19673 if test -z "$ac_cpp_err"; then
19674 ac_header_preproc=yes
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19679 ac_header_preproc=no
19681 rm -f conftest.err conftest.$ac_ext
19682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19683 echo "${ECHO_T}$ac_header_preproc" >&6
19685 # So? What about this header?
19686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19692 ac_header_preproc=yes
19695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19709 ## ----------------------------------- ##
19710 ## Report this to llvmbugs@cs.uiuc.edu ##
19711 ## ----------------------------------- ##
19714 sed "s/^/$as_me: WARNING: /" >&2
19717 echo "$as_me:$LINENO: checking for $ac_header" >&5
19718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19722 eval "$as_ac_Header=\$ac_header_preproc"
19724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19729 cat >>confdefs.h <<_ACEOF
19730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19738 if test "${ac_cv_header_sys_types_h+set}" = set; then
19739 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19740 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19741 if test "${ac_cv_header_sys_types_h+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19745 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19747 # Is the header compilable?
19748 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19749 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19750 cat >conftest.$ac_ext <<_ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19756 $ac_includes_default
19757 #include <sys/types.h>
19759 rm -f conftest.$ac_objext
19760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761 (eval $ac_compile) 2>conftest.er1
19763 grep -v '^ *+' conftest.er1 >conftest.err
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
19768 { ac_try='test -z "$ac_c_werror_flag"
19769 || test ! -s conftest.err'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 ac_header_compiler=yes
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19786 ac_header_compiler=no
19788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19790 echo "${ECHO_T}$ac_header_compiler" >&6
19792 # Is the header present?
19793 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19794 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 #include <sys/types.h>
19803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19806 grep -v '^ *+' conftest.er1 >conftest.err
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } >/dev/null; then
19811 if test -s conftest.err; then
19812 ac_cpp_err=$ac_c_preproc_warn_flag
19813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19820 if test -z "$ac_cpp_err"; then
19821 ac_header_preproc=yes
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_header_preproc=no
19828 rm -f conftest.err conftest.$ac_ext
19829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19830 echo "${ECHO_T}$ac_header_preproc" >&6
19832 # So? What about this header?
19833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19835 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19836 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19838 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19839 ac_header_preproc=yes
19842 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19843 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19844 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19845 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19846 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19847 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19849 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
19850 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19851 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19852 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19853 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19856 ## ----------------------------------- ##
19857 ## Report this to llvmbugs@cs.uiuc.edu ##
19858 ## ----------------------------------- ##
19861 sed "s/^/$as_me: WARNING: /" >&2
19864 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19865 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19866 if test "${ac_cv_header_sys_types_h+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 ac_cv_header_sys_types_h=$ac_header_preproc
19871 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19872 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19875 if test $ac_cv_header_sys_types_h = yes; then
19876 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19878 INCLUDE_SYS_TYPES_H=''
19883 if test "${ac_cv_header_inttypes_h+set}" = set; then
19884 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19885 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19886 if test "${ac_cv_header_inttypes_h+set}" = set; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19889 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19890 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19892 # Is the header compilable?
19893 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19894 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19895 cat >conftest.$ac_ext <<_ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 $ac_includes_default
19902 #include <inttypes.h>
19904 rm -f conftest.$ac_objext
19905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19906 (eval $ac_compile) 2>conftest.er1
19908 grep -v '^ *+' conftest.er1 >conftest.err
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } &&
19913 { ac_try='test -z "$ac_c_werror_flag"
19914 || test ! -s conftest.err'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; } &&
19920 { ac_try='test -s conftest.$ac_objext'
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; }; then
19926 ac_header_compiler=yes
19928 echo "$as_me: failed program was:" >&5
19929 sed 's/^/| /' conftest.$ac_ext >&5
19931 ac_header_compiler=no
19933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19935 echo "${ECHO_T}$ac_header_compiler" >&6
19937 # Is the header present?
19938 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19939 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 #include <inttypes.h>
19948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19951 grep -v '^ *+' conftest.er1 >conftest.err
19953 cat conftest.err >&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } >/dev/null; then
19956 if test -s conftest.err; then
19957 ac_cpp_err=$ac_c_preproc_warn_flag
19958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19965 if test -z "$ac_cpp_err"; then
19966 ac_header_preproc=yes
19968 echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19971 ac_header_preproc=no
19973 rm -f conftest.err conftest.$ac_ext
19974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19975 echo "${ECHO_T}$ac_header_preproc" >&6
19977 # So? What about this header?
19978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19980 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19981 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19982 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19983 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19984 ac_header_preproc=yes
19987 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19988 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19989 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19990 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19991 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19992 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19993 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
19994 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
19995 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19996 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19997 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
19998 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20001 ## ----------------------------------- ##
20002 ## Report this to llvmbugs@cs.uiuc.edu ##
20003 ## ----------------------------------- ##
20006 sed "s/^/$as_me: WARNING: /" >&2
20009 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20010 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20011 if test "${ac_cv_header_inttypes_h+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 ac_cv_header_inttypes_h=$ac_header_preproc
20016 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20017 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20020 if test $ac_cv_header_inttypes_h = yes; then
20021 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20023 INCLUDE_INTTYPES_H=''
20028 if test "${ac_cv_header_stdint_h+set}" = set; then
20029 echo "$as_me:$LINENO: checking for stdint.h" >&5
20030 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20031 if test "${ac_cv_header_stdint_h+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20035 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20037 # Is the header compilable?
20038 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20039 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046 $ac_includes_default
20047 #include <stdint.h>
20049 rm -f conftest.$ac_objext
20050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051 (eval $ac_compile) 2>conftest.er1
20053 grep -v '^ *+' conftest.er1 >conftest.err
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
20058 { ac_try='test -z "$ac_c_werror_flag"
20059 || test ! -s conftest.err'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; } &&
20065 { ac_try='test -s conftest.$ac_objext'
20066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067 (eval $ac_try) 2>&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); }; }; then
20071 ac_header_compiler=yes
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20076 ac_header_compiler=no
20078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20080 echo "${ECHO_T}$ac_header_compiler" >&6
20082 # Is the header present?
20083 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20084 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20085 cat >conftest.$ac_ext <<_ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20091 #include <stdint.h>
20093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20096 grep -v '^ *+' conftest.er1 >conftest.err
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } >/dev/null; then
20101 if test -s conftest.err; then
20102 ac_cpp_err=$ac_c_preproc_warn_flag
20103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20110 if test -z "$ac_cpp_err"; then
20111 ac_header_preproc=yes
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 ac_header_preproc=no
20118 rm -f conftest.err conftest.$ac_ext
20119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20120 echo "${ECHO_T}$ac_header_preproc" >&6
20122 # So? What about this header?
20123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20125 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20126 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20127 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20128 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20129 ac_header_preproc=yes
20132 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20133 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20134 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20135 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20136 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20137 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20138 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20139 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20140 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20141 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20142 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20143 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20146 ## ----------------------------------- ##
20147 ## Report this to llvmbugs@cs.uiuc.edu ##
20148 ## ----------------------------------- ##
20151 sed "s/^/$as_me: WARNING: /" >&2
20154 echo "$as_me:$LINENO: checking for stdint.h" >&5
20155 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20156 if test "${ac_cv_header_stdint_h+set}" = set; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 ac_cv_header_stdint_h=$ac_header_preproc
20161 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20162 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20165 if test $ac_cv_header_stdint_h = yes; then
20166 INCLUDE_STDINT_H='#include <stdint.h>'
20168 INCLUDE_STDINT_H=''
20175 echo "$as_me:$LINENO: checking for pid_t" >&5
20176 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20177 if test "${ac_cv_type_pid_t+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20180 cat >conftest.$ac_ext <<_ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h. */
20186 $ac_includes_default
20192 if (sizeof (pid_t))
20198 rm -f conftest.$ac_objext
20199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20200 (eval $ac_compile) 2>conftest.er1
20202 grep -v '^ *+' conftest.er1 >conftest.err
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } &&
20207 { ac_try='test -z "$ac_c_werror_flag"
20208 || test ! -s conftest.err'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; } &&
20214 { ac_try='test -s conftest.$ac_objext'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; }; then
20220 ac_cv_type_pid_t=yes
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 ac_cv_type_pid_t=no
20227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20229 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20230 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20231 if test $ac_cv_type_pid_t = yes; then
20235 cat >>confdefs.h <<_ACEOF
20241 echo "$as_me:$LINENO: checking for size_t" >&5
20242 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20243 if test "${ac_cv_type_size_t+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20246 cat >conftest.$ac_ext <<_ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 $ac_includes_default
20258 if (sizeof (size_t))
20264 rm -f conftest.$ac_objext
20265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20266 (eval $ac_compile) 2>conftest.er1
20268 grep -v '^ *+' conftest.er1 >conftest.err
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
20273 { ac_try='test -z "$ac_c_werror_flag"
20274 || test ! -s conftest.err'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; } &&
20280 { ac_try='test -s conftest.$ac_objext'
20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 ac_cv_type_size_t=yes
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291 ac_cv_type_size_t=no
20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20295 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20296 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20297 if test $ac_cv_type_size_t = yes; then
20301 cat >>confdefs.h <<_ACEOF
20302 #define size_t unsigned
20307 echo "$as_me:$LINENO: checking for int64_t" >&5
20308 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20309 if test "${ac_cv_type_int64_t+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 $ac_includes_default
20324 if (sizeof (int64_t))
20330 rm -f conftest.$ac_objext
20331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20332 (eval $ac_compile) 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
20339 { ac_try='test -z "$ac_c_werror_flag"
20340 || test ! -s conftest.err'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; } &&
20346 { ac_try='test -s conftest.$ac_objext'
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; }; then
20352 ac_cv_type_int64_t=yes
20354 echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20357 ac_cv_type_int64_t=no
20359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20361 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20362 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20363 if test $ac_cv_type_int64_t = yes; then
20365 cat >>confdefs.h <<_ACEOF
20366 #define HAVE_INT64_T 1
20371 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20372 echo "$as_me: error: Type int64_t required but not found" >&2;}
20373 { (exit 1); exit 1; }; }
20376 echo "$as_me:$LINENO: checking for uint64_t" >&5
20377 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20378 if test "${ac_cv_type_uint64_t+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 cat >conftest.$ac_ext <<_ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 $ac_includes_default
20391 if ((uint64_t *) 0)
20393 if (sizeof (uint64_t))
20399 rm -f conftest.$ac_objext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401 (eval $ac_compile) 2>conftest.er1
20403 grep -v '^ *+' conftest.er1 >conftest.err
20405 cat conftest.err >&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
20408 { ac_try='test -z "$ac_c_werror_flag"
20409 || test ! -s conftest.err'
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; } &&
20415 { ac_try='test -s conftest.$ac_objext'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 ac_cv_type_uint64_t=yes
20423 echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20426 ac_cv_type_uint64_t=no
20428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20430 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20431 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20432 if test $ac_cv_type_uint64_t = yes; then
20434 cat >>confdefs.h <<_ACEOF
20435 #define HAVE_UINT64_T 1
20440 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20441 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20442 { (exit 1); exit 1; }; }
20445 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20446 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20447 if test "${ac_cv_header_time+set}" = set; then
20448 echo $ECHO_N "(cached) $ECHO_C" >&6
20450 cat >conftest.$ac_ext <<_ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 #include <sys/types.h>
20457 #include <sys/time.h>
20463 if ((struct tm *) 0)
20469 rm -f conftest.$ac_objext
20470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20471 (eval $ac_compile) 2>conftest.er1
20473 grep -v '^ *+' conftest.er1 >conftest.err
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
20478 { ac_try='test -z "$ac_c_werror_flag"
20479 || test ! -s conftest.err'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try='test -s conftest.$ac_objext'
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 ac_cv_header_time=yes
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20496 ac_cv_header_time=no
20498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20500 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20501 echo "${ECHO_T}$ac_cv_header_time" >&6
20502 if test $ac_cv_header_time = yes; then
20504 cat >>confdefs.h <<\_ACEOF
20505 #define TIME_WITH_SYS_TIME 1
20510 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20511 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20512 if test "${ac_cv_struct_tm+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 cat >conftest.$ac_ext <<_ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20521 #include <sys/types.h>
20527 struct tm *tp; tp->tm_sec;
20532 rm -f conftest.$ac_objext
20533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20534 (eval $ac_compile) 2>conftest.er1
20536 grep -v '^ *+' conftest.er1 >conftest.err
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } &&
20541 { ac_try='test -z "$ac_c_werror_flag"
20542 || test ! -s conftest.err'
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; } &&
20548 { ac_try='test -s conftest.$ac_objext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_struct_tm=time.h
20556 echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20559 ac_cv_struct_tm=sys/time.h
20561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20563 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20564 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20565 if test $ac_cv_struct_tm = sys/time.h; then
20567 cat >>confdefs.h <<\_ACEOF
20568 #define TM_IN_SYS_TIME 1
20575 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20576 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20580 ac_cpp='$CPP $CPPFLAGS'
20581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20585 if test "$cross_compiling" = yes; then
20586 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20587 See \`config.log' for more details." >&5
20588 echo "$as_me: error: cannot run test program while cross compiling
20589 See \`config.log' for more details." >&2;}
20590 { (exit 1); exit 1; }; }
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20599 #include <stdlib.h>
20604 volatile double A, B;
20608 sprintf(Buffer, "%a", A);
20612 if (A != 0x1.999999999999ap-4)
20619 rm -f conftest$ac_exeext
20620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20621 (eval $ac_link) 2>&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; }; then
20632 echo "$as_me: program exited with status $ac_status" >&5
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ( exit $ac_status )
20639 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20642 ac_cpp='$CPP $CPPFLAGS'
20643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20647 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20648 echo "${ECHO_T}$ac_c_printf_a" >&6
20649 if test "$ac_c_printf_a" = "yes"; then
20651 cat >>confdefs.h <<\_ACEOF
20652 #define HAVE_PRINTF_A 1
20658 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20659 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20660 if test "${ac_cv_c_bigendian+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20663 # See if sys/param.h defines the BYTE_ORDER macro.
20664 cat >conftest.$ac_ext <<_ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20670 #include <sys/types.h>
20671 #include <sys/param.h>
20676 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20677 bogus endian macros
20684 rm -f conftest.$ac_objext
20685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20686 (eval $ac_compile) 2>conftest.er1
20688 grep -v '^ *+' conftest.er1 >conftest.err
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } &&
20693 { ac_try='test -z "$ac_c_werror_flag"
20694 || test ! -s conftest.err'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; } &&
20700 { ac_try='test -s conftest.$ac_objext'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 # It does; now see whether it defined to BIG_ENDIAN or not.
20707 cat >conftest.$ac_ext <<_ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20713 #include <sys/types.h>
20714 #include <sys/param.h>
20719 #if BYTE_ORDER != BIG_ENDIAN
20727 rm -f conftest.$ac_objext
20728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20729 (eval $ac_compile) 2>conftest.er1
20731 grep -v '^ *+' conftest.er1 >conftest.err
20733 cat conftest.err >&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } &&
20736 { ac_try='test -z "$ac_c_werror_flag"
20737 || test ! -s conftest.err'
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739 (eval $ac_try) 2>&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; } &&
20743 { ac_try='test -s conftest.$ac_objext'
20744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745 (eval $ac_try) 2>&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); }; }; then
20749 ac_cv_c_bigendian=yes
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20754 ac_cv_c_bigendian=no
20756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 # It does not; compile a test program.
20762 if test "$cross_compiling" = yes; then
20763 # try to guess the endianness by grepping values into an object file
20764 ac_cv_c_bigendian=unknown
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20772 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20773 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20774 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20775 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20776 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20780 _ascii (); _ebcdic ();
20785 rm -f conftest.$ac_objext
20786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20787 (eval $ac_compile) 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -z "$ac_c_werror_flag"
20795 || test ! -s conftest.err'
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest.$ac_objext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20808 ac_cv_c_bigendian=yes
20810 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20811 if test "$ac_cv_c_bigendian" = unknown; then
20812 ac_cv_c_bigendian=no
20814 # finding both strings is unlikely to happen, but who knows?
20815 ac_cv_c_bigendian=unknown
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20825 cat >conftest.$ac_ext <<_ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20834 /* Are we little or big endian? From Harbison&Steele. */
20838 char c[sizeof (long)];
20841 exit (u.c[sizeof (long) - 1] == 1);
20844 rm -f conftest$ac_exeext
20845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20846 (eval $ac_link) 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; }; then
20855 ac_cv_c_bigendian=no
20857 echo "$as_me: program exited with status $ac_status" >&5
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ( exit $ac_status )
20862 ac_cv_c_bigendian=yes
20864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20869 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20870 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20871 case $ac_cv_c_bigendian in
20879 { { echo "$as_me:$LINENO: error: unknown endianness
20880 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20881 echo "$as_me: error: unknown endianness
20882 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20883 { (exit 1); exit 1; }; } ;;
20887 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20888 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20889 if test "${ac_cv_cxx_namespaces+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20895 ac_cpp='$CXXCPP $CPPFLAGS'
20896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20900 cat >conftest.$ac_ext <<_ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 namespace Outer { namespace Inner { int i = 0; }}
20910 using namespace Outer::Inner; return i;
20915 rm -f conftest.$ac_objext
20916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20917 (eval $ac_compile) 2>conftest.er1
20919 grep -v '^ *+' conftest.er1 >conftest.err
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } &&
20924 { ac_try='test -z "$ac_cxx_werror_flag"
20925 || test ! -s conftest.err'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; } &&
20931 { ac_try='test -s conftest.$ac_objext'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; }; then
20937 ac_cv_cxx_namespaces=yes
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 ac_cv_cxx_namespaces=no
20944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20946 ac_cpp='$CPP $CPPFLAGS'
20947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20953 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20954 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20955 if test "$ac_cv_cxx_namespaces" = yes; then
20957 cat >>confdefs.h <<\_ACEOF
20958 #define HAVE_NAMESPACES
20963 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20964 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20965 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20972 ac_cpp='$CXXCPP $CPPFLAGS'
20973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20977 cat >conftest.$ac_ext <<_ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20983 #include <ext/hash_map>
20984 #ifdef HAVE_NAMESPACES
20985 using namespace std;
20990 hash_map<int, int> t;
20995 rm -f conftest.$ac_objext
20996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997 (eval $ac_compile) 2>conftest.er1
20999 grep -v '^ *+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
21004 { ac_try='test -z "$ac_cxx_werror_flag"
21005 || test ! -s conftest.err'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; } &&
21011 { ac_try='test -s conftest.$ac_objext'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; }; then
21017 ac_cv_cxx_have_std_ext_hash_map=yes
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 ac_cv_cxx_have_std_ext_hash_map=no
21024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21026 ac_cpp='$CPP $CPPFLAGS'
21027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21032 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21033 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21034 HAVE_STD_EXT_HASH_MAP=0
21035 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21037 HAVE_STD_EXT_HASH_MAP=1
21040 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21041 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21042 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 ac_cpp='$CXXCPP $CPPFLAGS'
21050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21054 cat >conftest.$ac_ext <<_ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 #include <ext/hash_map>
21061 #ifdef HAVE_NAMESPACES
21062 using namespace __gnu_cxx;
21067 hash_map<int,int> t;
21072 rm -f conftest.$ac_objext
21073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21074 (eval $ac_compile) 2>conftest.er1
21076 grep -v '^ *+' conftest.er1 >conftest.err
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } &&
21081 { ac_try='test -z "$ac_cxx_werror_flag"
21082 || test ! -s conftest.err'
21083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084 (eval $ac_try) 2>&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; } &&
21088 { ac_try='test -s conftest.$ac_objext'
21089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; }; then
21094 ac_cv_cxx_have_gnu_ext_hash_map=yes
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 ac_cv_cxx_have_gnu_ext_hash_map=no
21101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21103 ac_cpp='$CPP $CPPFLAGS'
21104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21109 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21110 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21111 HAVE_GNU_EXT_HASH_MAP=0
21112 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21114 HAVE_GNU_EXT_HASH_MAP=1
21117 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21118 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21119 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21126 ac_cpp='$CXXCPP $CPPFLAGS'
21127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <hash_map>
21141 hash_map<int,int> t;
21146 rm -f conftest.$ac_objext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21148 (eval $ac_compile) 2>conftest.er1
21150 grep -v '^ *+' conftest.er1 >conftest.err
21152 cat conftest.err >&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } &&
21155 { ac_try='test -z "$ac_cxx_werror_flag"
21156 || test ! -s conftest.err'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; } &&
21162 { ac_try='test -s conftest.$ac_objext'
21163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164 (eval $ac_try) 2>&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; }; then
21168 ac_cv_cxx_have_global_hash_map=yes
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ac_cv_cxx_have_global_hash_map=no
21175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21177 ac_cpp='$CPP $CPPFLAGS'
21178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21183 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21184 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21185 HAVE_GLOBAL_HASH_MAP=0
21186 if test "$ac_cv_cxx_have_global_hash_map" = yes
21188 HAVE_GLOBAL_HASH_MAP=1
21191 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21192 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21193 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21200 ac_cpp='$CXXCPP $CPPFLAGS'
21201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21205 cat >conftest.$ac_ext <<_ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21211 #include <ext/hash_set>
21212 #ifdef HAVE_NAMESPACES
21213 using namespace std;
21223 rm -f conftest.$ac_objext
21224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21225 (eval $ac_compile) 2>conftest.er1
21227 grep -v '^ *+' conftest.er1 >conftest.err
21229 cat conftest.err >&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } &&
21232 { ac_try='test -z "$ac_cxx_werror_flag"
21233 || test ! -s conftest.err'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; } &&
21239 { ac_try='test -s conftest.$ac_objext'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21245 ac_cv_cxx_have_std_ext_hash_set=yes
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ac_cv_cxx_have_std_ext_hash_set=no
21252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21254 ac_cpp='$CPP $CPPFLAGS'
21255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21260 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21261 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21262 HAVE_STD_EXT_HASH_SET=0
21263 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21265 HAVE_STD_EXT_HASH_SET=1
21268 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21269 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21270 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 ac_cpp='$CXXCPP $CPPFLAGS'
21278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21282 cat >conftest.$ac_ext <<_ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21288 #include <ext/hash_set>
21289 #ifdef HAVE_NAMESPACES
21290 using namespace __gnu_cxx;
21300 rm -f conftest.$ac_objext
21301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21302 (eval $ac_compile) 2>conftest.er1
21304 grep -v '^ *+' conftest.er1 >conftest.err
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
21309 { ac_try='test -z "$ac_cxx_werror_flag"
21310 || test ! -s conftest.err'
21311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; } &&
21316 { ac_try='test -s conftest.$ac_objext'
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; }; then
21322 ac_cv_cxx_have_gnu_ext_hash_set=yes
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21327 ac_cv_cxx_have_gnu_ext_hash_set=no
21329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21331 ac_cpp='$CPP $CPPFLAGS'
21332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21337 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21338 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21339 HAVE_GNU_EXT_HASH_SET=0
21340 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21342 HAVE_GNU_EXT_HASH_SET=1
21345 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21346 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21347 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21348 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 ac_cpp='$CXXCPP $CPPFLAGS'
21355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21359 cat >conftest.$ac_ext <<_ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h. */
21365 #include <hash_set>
21369 hash_set<int> t; return 0;
21374 rm -f conftest.$ac_objext
21375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21376 (eval $ac_compile) 2>conftest.er1
21378 grep -v '^ *+' conftest.er1 >conftest.err
21380 cat conftest.err >&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } &&
21383 { ac_try='test -z "$ac_cxx_werror_flag"
21384 || test ! -s conftest.err'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; } &&
21390 { ac_try='test -s conftest.$ac_objext'
21391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392 (eval $ac_try) 2>&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; }; then
21396 ac_cv_cxx_have_global_hash_set=yes
21398 echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 ac_cv_cxx_have_global_hash_set=no
21403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21405 ac_cpp='$CPP $CPPFLAGS'
21406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21411 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21412 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21413 HAVE_GLOBAL_HASH_SET=0
21414 if test "$ac_cv_cxx_have_global_hash_set" = yes
21416 HAVE_GLOBAL_HASH_SET=1
21419 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21420 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21421 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 ac_cpp='$CXXCPP $CPPFLAGS'
21429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21433 cat >conftest.$ac_ext <<_ACEOF
21436 cat confdefs.h >>conftest.$ac_ext
21437 cat >>conftest.$ac_ext <<_ACEOF
21438 /* end confdefs.h. */
21439 #include <iterator>
21440 #ifdef HAVE_NAMESPACES
21441 using namespace std;
21446 iterator<int,int,int> t; return 0;
21451 rm -f conftest.$ac_objext
21452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21453 (eval $ac_compile) 2>conftest.er1
21455 grep -v '^ *+' conftest.er1 >conftest.err
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } &&
21460 { ac_try='test -z "$ac_cxx_werror_flag"
21461 || test ! -s conftest.err'
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; } &&
21467 { ac_try='test -s conftest.$ac_objext'
21468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469 (eval $ac_try) 2>&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; }; then
21473 ac_cv_cxx_have_std_iterator=yes
21475 echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21478 ac_cv_cxx_have_std_iterator=no
21480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21482 ac_cpp='$CPP $CPPFLAGS'
21483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21489 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21490 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21491 HAVE_STD_ITERATOR=0
21492 if test "$ac_cv_cxx_have_std_iterator" = yes
21494 HAVE_STD_ITERATOR=1
21497 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21498 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21499 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 ac_cpp='$CXXCPP $CPPFLAGS'
21507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21511 cat >conftest.$ac_ext <<_ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21517 #include <iterator>
21518 #ifdef HAVE_NAMESPACES
21519 using namespace std;
21524 bidirectional_iterator<int,int> t; return 0;
21529 rm -f conftest.$ac_objext
21530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21531 (eval $ac_compile) 2>conftest.er1
21533 grep -v '^ *+' conftest.er1 >conftest.err
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } &&
21538 { ac_try='test -z "$ac_cxx_werror_flag"
21539 || test ! -s conftest.err'
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; } &&
21545 { ac_try='test -s conftest.$ac_objext'
21546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547 (eval $ac_try) 2>&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); }; }; then
21551 ac_cv_cxx_have_bi_iterator=yes
21553 echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21556 ac_cv_cxx_have_bi_iterator=no
21558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21560 ac_cpp='$CPP $CPPFLAGS'
21561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21567 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21568 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21570 if test "$ac_cv_cxx_have_bi_iterator" = yes
21575 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21576 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21577 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21584 ac_cpp='$CXXCPP $CPPFLAGS'
21585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21589 cat >conftest.$ac_ext <<_ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 #include <iterator>
21596 #ifdef HAVE_NAMESPACES
21597 using namespace std;
21602 forward_iterator<int,int> t; return 0;
21607 rm -f conftest.$ac_objext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>conftest.er1
21611 grep -v '^ *+' conftest.er1 >conftest.err
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
21616 { ac_try='test -z "$ac_cxx_werror_flag"
21617 || test ! -s conftest.err'
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; } &&
21623 { ac_try='test -s conftest.$ac_objext'
21624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625 (eval $ac_try) 2>&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; }; then
21629 ac_cv_cxx_have_fwd_iterator=yes
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_cv_cxx_have_fwd_iterator=no
21636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21638 ac_cpp='$CPP $CPPFLAGS'
21639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21645 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21646 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21647 HAVE_FWD_ITERATOR=0
21648 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21650 HAVE_FWD_ITERATOR=1
21655 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21656 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21657 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 ac_cpp='$CXXCPP $CPPFLAGS'
21662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21666 cat >conftest.$ac_ext <<_ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21673 int foo(float f) {return isnan(f);}
21675 rm -f conftest.$ac_objext
21676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21677 (eval $ac_compile) 2>conftest.er1
21679 grep -v '^ *+' conftest.er1 >conftest.err
21681 cat conftest.err >&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); } &&
21684 { ac_try='test -z "$ac_cxx_werror_flag"
21685 || test ! -s conftest.err'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; } &&
21691 { ac_try='test -s conftest.$ac_objext'
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; }; then
21697 ac_cv_func_isnan_in_math_h=yes
21699 echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ac_cv_func_isnan_in_math_h=no
21704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21706 ac_cpp='$CPP $CPPFLAGS'
21707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21712 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21713 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21714 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21717 cat >>confdefs.h <<\_ACEOF
21718 #define HAVE_ISNAN_IN_MATH_H 1
21722 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21723 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21724 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
21728 ac_cpp='$CXXCPP $CPPFLAGS'
21729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21733 cat >conftest.$ac_ext <<_ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h. */
21740 int foo(float f) {return isnan(f);}
21742 rm -f conftest.$ac_objext
21743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21744 (eval $ac_compile) 2>conftest.er1
21746 grep -v '^ *+' conftest.er1 >conftest.err
21748 cat conftest.err >&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } &&
21751 { ac_try='test -z "$ac_cxx_werror_flag"
21752 || test ! -s conftest.err'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; } &&
21758 { ac_try='test -s conftest.$ac_objext'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; }; then
21764 ac_cv_func_isnan_in_cmath=yes
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769 ac_cv_func_isnan_in_cmath=no
21771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21773 ac_cpp='$CPP $CPPFLAGS'
21774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21779 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21780 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21781 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21784 cat >>confdefs.h <<\_ACEOF
21785 #define HAVE_ISNAN_IN_CMATH 1
21789 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21790 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21791 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21795 ac_cpp='$CXXCPP $CPPFLAGS'
21796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21800 cat >conftest.$ac_ext <<_ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21807 using std::isnan; int foo(float f) {return isnan(f);}
21809 rm -f conftest.$ac_objext
21810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21811 (eval $ac_compile) 2>conftest.er1
21813 grep -v '^ *+' conftest.er1 >conftest.err
21815 cat conftest.err >&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); } &&
21818 { ac_try='test -z "$ac_cxx_werror_flag"
21819 || test ! -s conftest.err'
21820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821 (eval $ac_try) 2>&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; } &&
21825 { ac_try='test -s conftest.$ac_objext'
21826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827 (eval $ac_try) 2>&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 ac_cv_func_std_isnan_in_cmath=yes
21833 echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21836 ac_cv_func_std_isnan_in_cmath=no
21838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21840 ac_cpp='$CPP $CPPFLAGS'
21841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21846 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21847 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21848 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21851 cat >>confdefs.h <<\_ACEOF
21852 #define HAVE_STD_ISNAN_IN_CMATH 1
21858 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21859 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21860 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 ac_cpp='$CXXCPP $CPPFLAGS'
21865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21869 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21876 int foo(float f) {return isinf(f);}
21878 rm -f conftest.$ac_objext
21879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21880 (eval $ac_compile) 2>conftest.er1
21882 grep -v '^ *+' conftest.er1 >conftest.err
21884 cat conftest.err >&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } &&
21887 { ac_try='test -z "$ac_cxx_werror_flag"
21888 || test ! -s conftest.err'
21889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890 (eval $ac_try) 2>&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; } &&
21894 { ac_try='test -s conftest.$ac_objext'
21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896 (eval $ac_try) 2>&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; }; then
21900 ac_cv_func_isinf_in_math_h=yes
21902 echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_cv_func_isinf_in_math_h=no
21907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21909 ac_cpp='$CPP $CPPFLAGS'
21910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21915 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21916 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21917 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21920 cat >>confdefs.h <<\_ACEOF
21921 #define HAVE_ISINF_IN_MATH_H 1
21925 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21926 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21927 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21931 ac_cpp='$CXXCPP $CPPFLAGS'
21932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21936 cat >conftest.$ac_ext <<_ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21943 int foo(float f) {return isinf(f);}
21945 rm -f conftest.$ac_objext
21946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21947 (eval $ac_compile) 2>conftest.er1
21949 grep -v '^ *+' conftest.er1 >conftest.err
21951 cat conftest.err >&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); } &&
21954 { ac_try='test -z "$ac_cxx_werror_flag"
21955 || test ! -s conftest.err'
21956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957 (eval $ac_try) 2>&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; } &&
21961 { ac_try='test -s conftest.$ac_objext'
21962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; }; then
21967 ac_cv_func_isinf_in_cmath=yes
21969 echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21972 ac_cv_func_isinf_in_cmath=no
21974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21976 ac_cpp='$CPP $CPPFLAGS'
21977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21982 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21983 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21984 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21987 cat >>confdefs.h <<\_ACEOF
21988 #define HAVE_ISINF_IN_CMATH 1
21992 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21993 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21994 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21995 echo $ECHO_N "(cached) $ECHO_C" >&6
21998 ac_cpp='$CXXCPP $CPPFLAGS'
21999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22003 cat >conftest.$ac_ext <<_ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h. */
22010 using std::isinf; int foo(float f) {return isinf(f);}
22012 rm -f conftest.$ac_objext
22013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22014 (eval $ac_compile) 2>conftest.er1
22016 grep -v '^ *+' conftest.er1 >conftest.err
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } &&
22021 { ac_try='test -z "$ac_cxx_werror_flag"
22022 || test ! -s conftest.err'
22023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22024 (eval $ac_try) 2>&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); }; } &&
22028 { ac_try='test -s conftest.$ac_objext'
22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030 (eval $ac_try) 2>&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; }; then
22034 ac_cv_func_std_isinf_in_cmath=yes
22036 echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22039 ac_cv_func_std_isinf_in_cmath=no
22041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22043 ac_cpp='$CPP $CPPFLAGS'
22044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22049 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22050 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22051 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22054 cat >>confdefs.h <<\_ACEOF
22055 #define HAVE_STD_ISINF_IN_CMATH 1
22059 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22060 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22061 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22065 ac_cpp='$CXXCPP $CPPFLAGS'
22066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22070 cat >conftest.$ac_ext <<_ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 #include <ieeefp.h>
22077 int foo(float f) {return finite(f);}
22079 rm -f conftest.$ac_objext
22080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22081 (eval $ac_compile) 2>conftest.er1
22083 grep -v '^ *+' conftest.er1 >conftest.err
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } &&
22088 { ac_try='test -z "$ac_cxx_werror_flag"
22089 || test ! -s conftest.err'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; } &&
22095 { ac_try='test -s conftest.$ac_objext'
22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097 (eval $ac_try) 2>&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; }; then
22101 ac_cv_func_finite_in_ieeefp_h=yes
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ac_cv_func_finite_in_ieeefp_h=no
22108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22110 ac_cpp='$CPP $CPPFLAGS'
22111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22116 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22117 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22118 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22121 cat >>confdefs.h <<\_ACEOF
22122 #define HAVE_FINITE_IN_IEEEFP_H 1
22128 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22129 # for constant arguments. Useless!
22130 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22131 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22132 if test "${ac_cv_working_alloca_h+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 cat >conftest.$ac_ext <<_ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h. */
22141 #include <alloca.h>
22145 char *p = (char *) alloca (2 * sizeof (int));
22150 rm -f conftest.$ac_objext conftest$ac_exeext
22151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22152 (eval $ac_link) 2>conftest.er1
22154 grep -v '^ *+' conftest.er1 >conftest.err
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } &&
22159 { ac_try='test -z "$ac_c_werror_flag"
22160 || test ! -s conftest.err'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; } &&
22166 { ac_try='test -s conftest$ac_exeext'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
22172 ac_cv_working_alloca_h=yes
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22177 ac_cv_working_alloca_h=no
22179 rm -f conftest.err conftest.$ac_objext \
22180 conftest$ac_exeext conftest.$ac_ext
22182 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22183 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22184 if test $ac_cv_working_alloca_h = yes; then
22186 cat >>confdefs.h <<\_ACEOF
22187 #define HAVE_ALLOCA_H 1
22192 echo "$as_me:$LINENO: checking for alloca" >&5
22193 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22194 if test "${ac_cv_func_alloca_works+set}" = set; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22197 cat >conftest.$ac_ext <<_ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22204 # define alloca __builtin_alloca
22207 # include <malloc.h>
22208 # define alloca _alloca
22211 # include <alloca.h>
22216 # ifndef alloca /* predefined by HP cc +Olibcalls */
22227 char *p = (char *) alloca (1);
22232 rm -f conftest.$ac_objext conftest$ac_exeext
22233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22234 (eval $ac_link) 2>conftest.er1
22236 grep -v '^ *+' conftest.er1 >conftest.err
22238 cat conftest.err >&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } &&
22241 { ac_try='test -z "$ac_c_werror_flag"
22242 || test ! -s conftest.err'
22243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22244 (eval $ac_try) 2>&5
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; } &&
22248 { ac_try='test -s conftest$ac_exeext'
22249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250 (eval $ac_try) 2>&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }; }; then
22254 ac_cv_func_alloca_works=yes
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_cv_func_alloca_works=no
22261 rm -f conftest.err conftest.$ac_objext \
22262 conftest$ac_exeext conftest.$ac_ext
22264 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22265 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22267 if test $ac_cv_func_alloca_works = yes; then
22269 cat >>confdefs.h <<\_ACEOF
22270 #define HAVE_ALLOCA 1
22274 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22275 # that cause trouble. Some versions do not even contain alloca or
22276 # contain a buggy version. If you still want to use their alloca,
22277 # use ar to extract alloca.o from them instead of compiling alloca.c.
22279 ALLOCA=alloca.$ac_objext
22281 cat >>confdefs.h <<\_ACEOF
22286 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22287 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22288 if test "${ac_cv_os_cray+set}" = set; then
22289 echo $ECHO_N "(cached) $ECHO_C" >&6
22291 cat >conftest.$ac_ext <<_ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 #if defined(CRAY) && ! defined(CRAY2)
22304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22305 $EGREP "webecray" >/dev/null 2>&1; then
22313 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22314 echo "${ECHO_T}$ac_cv_os_cray" >&6
22315 if test $ac_cv_os_cray = yes; then
22316 for ac_func in _getb67 GETB67 getb67; do
22317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22318 echo "$as_me:$LINENO: checking for $ac_func" >&5
22319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22320 if eval "test \"\${$as_ac_var+set}\" = set"; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22323 cat >conftest.$ac_ext <<_ACEOF
22326 cat confdefs.h >>conftest.$ac_ext
22327 cat >>conftest.$ac_ext <<_ACEOF
22328 /* end confdefs.h. */
22329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22331 #define $ac_func innocuous_$ac_func
22333 /* System header to define __stub macros and hopefully few prototypes,
22334 which can conflict with char $ac_func (); below.
22335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22336 <limits.h> exists even on freestanding compilers. */
22339 # include <limits.h>
22341 # include <assert.h>
22346 /* Override any gcc2 internal prototype to avoid an error. */
22351 /* We use char because int might match the return type of a gcc2
22352 builtin and then its argument prototype would still apply. */
22354 /* The GNU C library defines this for functions which it implements
22355 to always fail with ENOSYS. Some functions are actually named
22356 something starting with __ and the normal name is an alias. */
22357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22360 char (*f) () = $ac_func;
22369 return f != $ac_func;
22374 rm -f conftest.$ac_objext conftest$ac_exeext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22376 (eval $ac_link) 2>conftest.er1
22378 grep -v '^ *+' conftest.er1 >conftest.err
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } &&
22383 { ac_try='test -z "$ac_c_werror_flag"
22384 || test ! -s conftest.err'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; } &&
22390 { ac_try='test -s conftest$ac_exeext'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; }; then
22396 eval "$as_ac_var=yes"
22398 echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22401 eval "$as_ac_var=no"
22403 rm -f conftest.err conftest.$ac_objext \
22404 conftest$ac_exeext conftest.$ac_ext
22406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22408 if test `eval echo '${'$as_ac_var'}'` = yes; then
22410 cat >>confdefs.h <<_ACEOF
22411 #define CRAY_STACKSEG_END $ac_func
22420 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22421 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22422 if test "${ac_cv_c_stack_direction+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 if test "$cross_compiling" = yes; then
22426 ac_cv_c_stack_direction=0
22428 cat >conftest.$ac_ext <<_ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22435 find_stack_direction ()
22437 static char *addr = 0;
22442 return find_stack_direction ();
22445 return (&dummy > addr) ? 1 : -1;
22451 exit (find_stack_direction () < 0);
22454 rm -f conftest$ac_exeext
22455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22456 (eval $ac_link) 2>&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461 (eval $ac_try) 2>&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); }; }; then
22465 ac_cv_c_stack_direction=1
22467 echo "$as_me: program exited with status $ac_status" >&5
22468 echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22471 ( exit $ac_status )
22472 ac_cv_c_stack_direction=-1
22474 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22477 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22478 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22480 cat >>confdefs.h <<_ACEOF
22481 #define STACK_DIRECTION $ac_cv_c_stack_direction
22489 for ac_header in stdlib.h unistd.h
22491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22493 echo "$as_me:$LINENO: checking for $ac_header" >&5
22494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22501 # Is the header compilable?
22502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22504 cat >conftest.$ac_ext <<_ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 $ac_includes_default
22511 #include <$ac_header>
22513 rm -f conftest.$ac_objext
22514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22515 (eval $ac_compile) 2>conftest.er1
22517 grep -v '^ *+' conftest.er1 >conftest.err
22519 cat conftest.err >&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } &&
22522 { ac_try='test -z "$ac_c_werror_flag"
22523 || test ! -s conftest.err'
22524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22525 (eval $ac_try) 2>&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); }; } &&
22529 { ac_try='test -s conftest.$ac_objext'
22530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22531 (eval $ac_try) 2>&5
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; }; then
22535 ac_header_compiler=yes
22537 echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22540 ac_header_compiler=no
22542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22544 echo "${ECHO_T}$ac_header_compiler" >&6
22546 # Is the header present?
22547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22549 cat >conftest.$ac_ext <<_ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h. */
22555 #include <$ac_header>
22557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22560 grep -v '^ *+' conftest.er1 >conftest.err
22562 cat conftest.err >&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); } >/dev/null; then
22565 if test -s conftest.err; then
22566 ac_cpp_err=$ac_c_preproc_warn_flag
22567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22574 if test -z "$ac_cpp_err"; then
22575 ac_header_preproc=yes
22577 echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22580 ac_header_preproc=no
22582 rm -f conftest.err conftest.$ac_ext
22583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22584 echo "${ECHO_T}$ac_header_preproc" >&6
22586 # So? What about this header?
22587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22593 ac_header_preproc=yes
22596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22610 ## ----------------------------------- ##
22611 ## Report this to llvmbugs@cs.uiuc.edu ##
22612 ## ----------------------------------- ##
22615 sed "s/^/$as_me: WARNING: /" >&2
22618 echo "$as_me:$LINENO: checking for $ac_header" >&5
22619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22621 echo $ECHO_N "(cached) $ECHO_C" >&6
22623 eval "$as_ac_Header=\$ac_header_preproc"
22625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22630 cat >>confdefs.h <<_ACEOF
22631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22639 for ac_func in getpagesize
22641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22642 echo "$as_me:$LINENO: checking for $ac_func" >&5
22643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22644 if eval "test \"\${$as_ac_var+set}\" = set"; then
22645 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 cat >conftest.$ac_ext <<_ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h. */
22653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22655 #define $ac_func innocuous_$ac_func
22657 /* System header to define __stub macros and hopefully few prototypes,
22658 which can conflict with char $ac_func (); below.
22659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22660 <limits.h> exists even on freestanding compilers. */
22663 # include <limits.h>
22665 # include <assert.h>
22670 /* Override any gcc2 internal prototype to avoid an error. */
22675 /* We use char because int might match the return type of a gcc2
22676 builtin and then its argument prototype would still apply. */
22678 /* The GNU C library defines this for functions which it implements
22679 to always fail with ENOSYS. Some functions are actually named
22680 something starting with __ and the normal name is an alias. */
22681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22684 char (*f) () = $ac_func;
22693 return f != $ac_func;
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22700 (eval $ac_link) 2>conftest.er1
22702 grep -v '^ *+' conftest.er1 >conftest.err
22704 cat conftest.err >&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } &&
22707 { ac_try='test -z "$ac_c_werror_flag"
22708 || test ! -s conftest.err'
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; } &&
22714 { ac_try='test -s conftest$ac_exeext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 eval "$as_ac_var=yes"
22722 echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22725 eval "$as_ac_var=no"
22727 rm -f conftest.err conftest.$ac_objext \
22728 conftest$ac_exeext conftest.$ac_ext
22730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22732 if test `eval echo '${'$as_ac_var'}'` = yes; then
22733 cat >>confdefs.h <<_ACEOF
22734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22740 echo "$as_me:$LINENO: checking for working mmap" >&5
22741 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22742 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22743 echo $ECHO_N "(cached) $ECHO_C" >&6
22745 if test "$cross_compiling" = yes; then
22746 ac_cv_func_mmap_fixed_mapped=no
22748 cat >conftest.$ac_ext <<_ACEOF
22751 cat confdefs.h >>conftest.$ac_ext
22752 cat >>conftest.$ac_ext <<_ACEOF
22753 /* end confdefs.h. */
22754 $ac_includes_default
22755 /* malloc might have been renamed as rpl_malloc. */
22758 /* Thanks to Mike Haertel and Jim Avera for this test.
22759 Here is a matrix of mmap possibilities:
22760 mmap private not fixed
22761 mmap private fixed at somewhere currently unmapped
22762 mmap private fixed at somewhere already mapped
22763 mmap shared not fixed
22764 mmap shared fixed at somewhere currently unmapped
22765 mmap shared fixed at somewhere already mapped
22766 For private mappings, we should verify that changes cannot be read()
22767 back from the file, nor mmap's back from the file at a different
22768 address. (There have been systems where private was not correctly
22769 implemented like the infamous i386 svr4.0, and systems where the
22770 VM page cache was not coherent with the file system buffer cache
22771 like early versions of FreeBSD and possibly contemporary NetBSD.)
22772 For shared mappings, we should conversely verify that changes get
22773 propagated back to all the places they're supposed to be.
22775 Grep wants private fixed already mapped.
22776 The main things grep needs to know about mmap are:
22777 * does it exist and is it safe to write into the mmap'd area
22778 * how to use it (BSD variants) */
22781 #include <sys/mman.h>
22783 #if !STDC_HEADERS && !HAVE_STDLIB_H
22787 /* This mess was copied from the GNU getpagesize.h. */
22788 #if !HAVE_GETPAGESIZE
22789 /* Assume that all systems that can run configure have sys/param.h. */
22790 # if !HAVE_SYS_PARAM_H
22791 # define HAVE_SYS_PARAM_H 1
22794 # ifdef _SC_PAGESIZE
22795 # define getpagesize() sysconf(_SC_PAGESIZE)
22796 # else /* no _SC_PAGESIZE */
22797 # if HAVE_SYS_PARAM_H
22798 # include <sys/param.h>
22799 # ifdef EXEC_PAGESIZE
22800 # define getpagesize() EXEC_PAGESIZE
22801 # else /* no EXEC_PAGESIZE */
22803 # define getpagesize() NBPG * CLSIZE
22806 # endif /* no CLSIZE */
22807 # else /* no NBPG */
22809 # define getpagesize() NBPC
22810 # else /* no NBPC */
22812 # define getpagesize() PAGESIZE
22813 # endif /* PAGESIZE */
22814 # endif /* no NBPC */
22815 # endif /* no NBPG */
22816 # endif /* no EXEC_PAGESIZE */
22817 # else /* no HAVE_SYS_PARAM_H */
22818 # define getpagesize() 8192 /* punt totally */
22819 # endif /* no HAVE_SYS_PARAM_H */
22820 # endif /* no _SC_PAGESIZE */
22822 #endif /* no HAVE_GETPAGESIZE */
22827 char *data, *data2, *data3;
22831 pagesize = getpagesize ();
22833 /* First, make a file with some known garbage in it. */
22834 data = (char *) malloc (pagesize);
22837 for (i = 0; i < pagesize; ++i)
22838 *(data + i) = rand ();
22840 fd = creat ("conftest.mmap", 0600);
22843 if (write (fd, data, pagesize) != pagesize)
22847 /* Next, try to mmap the file at a fixed address which already has
22848 something else allocated at it. If we can, also make sure that
22849 we see the same garbage. */
22850 fd = open ("conftest.mmap", O_RDWR);
22853 data2 = (char *) malloc (2 * pagesize);
22856 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22857 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22858 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22860 for (i = 0; i < pagesize; ++i)
22861 if (*(data + i) != *(data2 + i))
22864 /* Finally, make sure that changes to the mapped area do not
22865 percolate back to the file as seen by read(). (This is a bug on
22866 some variants of i386 svr4.0.) */
22867 for (i = 0; i < pagesize; ++i)
22868 *(data2 + i) = *(data2 + i) + 1;
22869 data3 = (char *) malloc (pagesize);
22872 if (read (fd, data3, pagesize) != pagesize)
22874 for (i = 0; i < pagesize; ++i)
22875 if (*(data + i) != *(data3 + i))
22881 rm -f conftest$ac_exeext
22882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22883 (eval $ac_link) 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; }; then
22892 ac_cv_func_mmap_fixed_mapped=yes
22894 echo "$as_me: program exited with status $ac_status" >&5
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 ( exit $ac_status )
22899 ac_cv_func_mmap_fixed_mapped=no
22901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22904 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22905 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22906 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22908 cat >>confdefs.h <<\_ACEOF
22909 #define HAVE_MMAP 1
22913 rm -f conftest.mmap
22915 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22917 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22918 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22920 echo "$as_me:$LINENO: checking for mmap of files" >&5
22921 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22922 if test "${ac_cv_func_mmap_file+set}" = set; then
22923 echo $ECHO_N "(cached) $ECHO_C" >&6
22928 ac_cpp='$CPP $CPPFLAGS'
22929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22933 if test "$cross_compiling" = yes; then
22934 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22935 See \`config.log' for more details." >&5
22936 echo "$as_me: error: cannot run test program while cross compiling
22937 See \`config.log' for more details." >&2;}
22938 { (exit 1); exit 1; }; }
22940 cat >conftest.$ac_ext <<_ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22947 #ifdef HAVE_SYS_TYPES_H
22948 #include <sys/types.h>
22951 #ifdef HAVE_SYS_MMAN_H
22952 #include <sys/mman.h>
22955 #ifdef HAVE_FCNTL_H
22961 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22963 rm -f conftest$ac_exeext
22964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22965 (eval $ac_link) 2>&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22970 (eval $ac_try) 2>&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }; }; then
22974 ac_cv_func_mmap_file=yes
22976 echo "$as_me: program exited with status $ac_status" >&5
22977 echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22980 ( exit $ac_status )
22981 ac_cv_func_mmap_file=no
22983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22986 ac_cpp='$CPP $CPPFLAGS'
22987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22993 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22994 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22995 if test "$ac_cv_func_mmap_file" = yes; then
22997 cat >>confdefs.h <<\_ACEOF
22998 #define HAVE_MMAP_FILE
23005 if test "$ac_cv_func_mmap_file" = "no"
23007 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23008 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23010 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23011 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23012 if test "${ac_cv_header_mmap_anon+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
23018 ac_cpp='$CPP $CPPFLAGS'
23019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23023 cat >conftest.$ac_ext <<_ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 #include <sys/mman.h>
23030 #include <unistd.h>
23035 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23040 rm -f conftest.$ac_objext
23041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23042 (eval $ac_compile) 2>conftest.er1
23044 grep -v '^ *+' conftest.er1 >conftest.err
23046 cat conftest.err >&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } &&
23049 { ac_try='test -z "$ac_c_werror_flag"
23050 || test ! -s conftest.err'
23051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23052 (eval $ac_try) 2>&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); }; } &&
23056 { ac_try='test -s conftest.$ac_objext'
23057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23058 (eval $ac_try) 2>&5
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061 (exit $ac_status); }; }; then
23062 ac_cv_header_mmap_anon=yes
23064 echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23067 ac_cv_header_mmap_anon=no
23069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23071 ac_cpp='$CPP $CPPFLAGS'
23072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23078 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23079 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23080 if test "$ac_cv_header_mmap_anon" = yes; then
23082 cat >>confdefs.h <<\_ACEOF
23083 #define HAVE_MMAP_ANONYMOUS
23088 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23089 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23090 if test "${ac_cv_type_signal+set}" = set; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23093 cat >conftest.$ac_ext <<_ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23099 #include <sys/types.h>
23100 #include <signal.h>
23105 extern "C" void (*signal (int, void (*)(int)))(int);
23107 void (*signal ()) ();
23118 rm -f conftest.$ac_objext
23119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23120 (eval $ac_compile) 2>conftest.er1
23122 grep -v '^ *+' conftest.er1 >conftest.err
23124 cat conftest.err >&5
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); } &&
23127 { ac_try='test -z "$ac_c_werror_flag"
23128 || test ! -s conftest.err'
23129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23130 (eval $ac_try) 2>&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); }; } &&
23134 { ac_try='test -s conftest.$ac_objext'
23135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136 (eval $ac_try) 2>&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); }; }; then
23140 ac_cv_type_signal=void
23142 echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23145 ac_cv_type_signal=int
23147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23149 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23150 echo "${ECHO_T}$ac_cv_type_signal" >&6
23152 cat >>confdefs.h <<_ACEOF
23153 #define RETSIGTYPE $ac_cv_type_signal
23166 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23169 echo "$as_me:$LINENO: checking for $ac_func" >&5
23170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23171 if eval "test \"\${$as_ac_var+set}\" = set"; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23174 cat >conftest.$ac_ext <<_ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h. */
23180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23182 #define $ac_func innocuous_$ac_func
23184 /* System header to define __stub macros and hopefully few prototypes,
23185 which can conflict with char $ac_func (); below.
23186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23187 <limits.h> exists even on freestanding compilers. */
23190 # include <limits.h>
23192 # include <assert.h>
23197 /* Override any gcc2 internal prototype to avoid an error. */
23202 /* We use char because int might match the return type of a gcc2
23203 builtin and then its argument prototype would still apply. */
23205 /* The GNU C library defines this for functions which it implements
23206 to always fail with ENOSYS. Some functions are actually named
23207 something starting with __ and the normal name is an alias. */
23208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23211 char (*f) () = $ac_func;
23220 return f != $ac_func;
23225 rm -f conftest.$ac_objext conftest$ac_exeext
23226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23227 (eval $ac_link) 2>conftest.er1
23229 grep -v '^ *+' conftest.er1 >conftest.err
23231 cat conftest.err >&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); } &&
23234 { ac_try='test -z "$ac_c_werror_flag"
23235 || test ! -s conftest.err'
23236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237 (eval $ac_try) 2>&5
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; } &&
23241 { ac_try='test -s conftest$ac_exeext'
23242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243 (eval $ac_try) 2>&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); }; }; then
23247 eval "$as_ac_var=yes"
23249 echo "$as_me: failed program was:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23252 eval "$as_ac_var=no"
23254 rm -f conftest.err conftest.$ac_objext \
23255 conftest$ac_exeext conftest.$ac_ext
23257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23259 if test `eval echo '${'$as_ac_var'}'` = yes; then
23260 cat >>confdefs.h <<_ACEOF
23261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23267 echo "$as_me:$LINENO: checking for mprotect" >&5
23268 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23269 if test "${ac_cv_func_mprotect+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23272 cat >conftest.$ac_ext <<_ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h. */
23278 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23280 #define mprotect innocuous_mprotect
23282 /* System header to define __stub macros and hopefully few prototypes,
23283 which can conflict with char mprotect (); below.
23284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23285 <limits.h> exists even on freestanding compilers. */
23288 # include <limits.h>
23290 # include <assert.h>
23295 /* Override any gcc2 internal prototype to avoid an error. */
23300 /* We use char because int might match the return type of a gcc2
23301 builtin and then its argument prototype would still apply. */
23303 /* The GNU C library defines this for functions which it implements
23304 to always fail with ENOSYS. Some functions are actually named
23305 something starting with __ and the normal name is an alias. */
23306 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23309 char (*f) () = mprotect;
23318 return f != mprotect;
23323 rm -f conftest.$ac_objext conftest$ac_exeext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23325 (eval $ac_link) 2>conftest.er1
23327 grep -v '^ *+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } &&
23332 { ac_try='test -z "$ac_c_werror_flag"
23333 || test ! -s conftest.err'
23334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335 (eval $ac_try) 2>&5
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; } &&
23339 { ac_try='test -s conftest$ac_exeext'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; }; then
23345 ac_cv_func_mprotect=yes
23347 echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23350 ac_cv_func_mprotect=no
23352 rm -f conftest.err conftest.$ac_objext \
23353 conftest$ac_exeext conftest.$ac_ext
23355 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23356 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23357 if test $ac_cv_func_mprotect = yes; then
23360 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23361 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23362 { (exit 1); exit 1; }; }
23367 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23368 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23372 ac_cpp='$CPP $CPPFLAGS'
23373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23377 oldcflags="$CFLAGS"
23378 CFLAGS="$CFLAGS -Wl,-R."
23379 cat >conftest.$ac_ext <<_ACEOF
23380 int main() { return 0; }
23382 rm -f conftest.$ac_objext conftest$ac_exeext
23383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23384 (eval $ac_link) 2>conftest.er1
23386 grep -v '^ *+' conftest.er1 >conftest.err
23388 cat conftest.err >&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } &&
23391 { ac_try='test -z "$ac_c_werror_flag"
23392 || test ! -s conftest.err'
23393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394 (eval $ac_try) 2>&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); }; } &&
23398 { ac_try='test -s conftest$ac_exeext'
23399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400 (eval $ac_try) 2>&5
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); }; }; then
23404 ac_cv_link_use_r=yes
23406 echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23409 ac_cv_link_use_r=no
23411 rm -f conftest.err conftest.$ac_objext \
23412 conftest$ac_exeext conftest.$ac_ext
23413 CFLAGS="$oldcflags"
23415 ac_cpp='$CPP $CPPFLAGS'
23416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23420 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23421 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23422 if test "$ac_cv_link_use_r" = yes
23425 cat >>confdefs.h <<\_ACEOF
23426 #define HAVE_LINK_R 1
23432 # Check whether --enable-optimized or --disable-optimized was given.
23433 if test "${enable_optimized+set}" = set; then
23434 enableval="$enable_optimized"
23439 if test ${enableval} = "no"
23444 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23451 # Check whether --enable-spec95 or --disable-spec95 was given.
23452 if test "${enable_spec95+set}" = set; then
23453 enableval="$enable_spec95"
23454 checkresult=$enableval
23458 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23459 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23460 case "$checkresult" in
23462 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23463 if test -d "$defaultdir"
23465 SPEC95_ROOT=$defaultdir
23467 USE_SPEC95=USE_SPEC95=1
23469 checkresult="yes, found in $defaultdir"
23479 *) if test -d "$checkresult"
23481 SPEC95_ROOT="$checkresult"
23483 USE_SPEC95=USE_SPEC95=1
23485 checkresult="yes, in $checkresult"
23489 checkresult="no, not found in $checkresult"
23493 echo "$as_me:$LINENO: result: $checkresult" >&5
23494 echo "${ECHO_T}$checkresult" >&6
23498 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23499 if test "${enable_spec2000+set}" = set; then
23500 enableval="$enable_spec2000"
23501 checkresult=$enableval
23505 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23506 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23507 case "$checkresult" in
23509 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23510 if test -d "$defaultdir"
23512 SPEC2000_ROOT=$defaultdir
23514 USE_SPEC2000=USE_SPEC2000=1
23516 checkresult="yes, found in $defaultdir"
23526 *) if test -d "$checkresult"
23528 SPEC2000_ROOT="$checkresult"
23530 USE_SPEC2000=USE_SPEC2000=1
23532 checkresult="yes, in $checkresult"
23536 checkresult="no, not found in $checkresult"
23540 echo "$as_me:$LINENO: result: $checkresult" >&5
23541 echo "${ECHO_T}$checkresult" >&6
23545 # Check whether --enable-povray or --disable-povray was given.
23546 if test "${enable_povray+set}" = set; then
23547 enableval="$enable_povray"
23548 checkresult=$enableval
23552 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23553 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23554 case "$checkresult" in
23556 defaultdir=/home/vadve/shared/benchmarks/povray31
23557 if test -d "$defaultdir"
23559 POVRAY_ROOT=$defaultdir
23561 USE_POVRAY=USE_POVRAY=1
23563 checkresult="yes, found in $defaultdir"
23573 *) if test -d "$checkresult"
23575 POVRAY_ROOT="$checkresult"
23577 USE_POVRAY=USE_POVRAY=1
23579 checkresult="yes, in $checkresult"
23583 checkresult="no, not found in $checkresult"
23587 echo "$as_me:$LINENO: result: $checkresult" >&5
23588 echo "${ECHO_T}$checkresult" >&6
23592 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23593 if test "${enable_precompiled_bytecode+set}" = set; then
23594 enableval="$enable_precompiled_bytecode"
23599 if test ${enableval} = "no"
23604 UPB=USE_PRECOMPILED_BYTECODE=1
23608 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23609 if test "${enable_llc_diffs+set}" = set; then
23610 enableval="$enable_llc_diffs"
23615 if test ${enableval} = "no"
23617 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23624 # Check whether --enable-jit or --disable-jit was given.
23625 if test "${enable_jit+set}" = set; then
23626 enableval="$enable_jit"
23631 if test ${enableval} = "no"
23638 JIT=TARGET_HAS_JIT=1
23642 JIT=TARGET_HAS_JIT=1
23653 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23654 if test "${with_llvmgccdir+set}" = set; then
23655 withval="$with_llvmgccdir"
23656 LLVMGCCDIR=$withval
23659 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23660 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23662 if test -d "$LLVMGCCDIR"
23664 if test -x "$LLVMGCCDIR/bin/gcc"
23666 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23670 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23671 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23672 if test "$LLVM_GCC_CHECK" = "no"
23676 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23677 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23679 if test -x "$LLVM_GCC_CHECK"
23681 cp /dev/null conftest.c
23682 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23688 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23689 LLVMCC1=$llvmcc1path
23691 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23692 LLVMCC1PLUS=$llvmcc1pluspath
23695 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23696 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23697 if test "$LLVM_GCC_SANE" = "no"
23703 # Check whether --with-bcrepos or --without-bcrepos was given.
23704 if test "${with_bcrepos+set}" = set; then
23705 withval="$with_bcrepos"
23709 BCR=/home/vadve/lattner/LLVMPrograms
23714 # Check whether --with-papi or --without-papi was given.
23715 if test "${with_papi+set}" = set; then
23716 withval="$with_papi"
23720 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23724 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23725 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23726 eval "SHLIBEXT=$shrext"
23727 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23728 echo "${ECHO_T}$SHLIBEXT" >&6
23732 cat >>confdefs.h <<_ACEOF
23733 #define SHLIBEXT "$SHLIBEXT"
23737 cat >confcache <<\_ACEOF
23738 # This file is a shell script that caches the results of configure
23739 # tests run on this system so they can be shared between configure
23740 # scripts and configure runs, see configure's option --config-cache.
23741 # It is not useful on other systems. If it contains results you don't
23742 # want to keep, you may remove or edit it.
23744 # config.status only pays attention to the cache file if you give it
23745 # the --recheck option to rerun configure.
23747 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23748 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23749 # following values.
23753 # The following way of writing the cache mishandles newlines in values,
23754 # but we know of no workaround that is simple, portable, and efficient.
23755 # So, don't put newlines in cache variables' values.
23756 # Ultrix sh set writes to stderr and can't be redirected directly,
23757 # and sets the high bit in the cache file unless we assign to the vars.
23760 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23762 # `set' does not quote correctly, so add quotes (double-quote
23763 # substitution turns \\\\ into \\, and sed turns \\ into \).
23766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23769 # `set' quotes correctly as required by POSIX, so do not add quotes.
23771 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23780 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23782 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23783 if test -w $cache_file; then
23784 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23785 cat confcache >$cache_file
23787 echo "not updating unwritable cache $cache_file"
23792 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23793 # Let make expand exec_prefix.
23794 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23796 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23797 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23798 # trailing colons and then remove the whole line if VPATH becomes empty
23799 # (actually we leave an empty line to preserve line numbers).
23800 if test "x$srcdir" = x.; then
23801 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23802 s/:*\$(srcdir):*/:/;
23803 s/:*\${srcdir}:*/:/;
23805 s/^\([^=]*=[ ]*\):*/\1/;
23811 DEFS=-DHAVE_CONFIG_H
23815 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23816 # 1. Remove the extension, and $U if already installed.
23817 ac_i=`echo "$ac_i" |
23818 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23820 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23821 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23823 LIBOBJS=$ac_libobjs
23825 LTLIBOBJS=$ac_ltlibobjs
23829 : ${CONFIG_STATUS=./config.status}
23830 ac_clean_files_save=$ac_clean_files
23831 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23832 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23833 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23834 cat >$CONFIG_STATUS <<_ACEOF
23836 # Generated by $as_me.
23837 # Run this file to recreate the current configuration.
23838 # Compiler output produced by configure, useful for debugging
23839 # configure, is in config.log if it exists.
23842 ac_cs_recheck=false
23844 SHELL=\${CONFIG_SHELL-$SHELL}
23847 cat >>$CONFIG_STATUS <<\_ACEOF
23848 ## --------------------- ##
23849 ## M4sh Initialization. ##
23850 ## --------------------- ##
23852 # Be Bourne compatible
23853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23856 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23857 # is contrary to our usage. Disable this feature.
23858 alias -g '${1+"$@"}'='"$@"'
23859 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23862 DUALCASE=1; export DUALCASE # for MKS sh
23864 # Support unset when possible.
23865 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23872 # Work around bugs in pre-3.0 UWIN ksh.
23873 $as_unset ENV MAIL MAILPATH
23880 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23881 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23882 LC_TELEPHONE LC_TIME
23884 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23885 eval $as_var=C; export $as_var
23891 # Required to use basename.
23892 if expr a : '\(a\)' >/dev/null 2>&1; then
23898 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23899 as_basename=basename
23905 # Name of the executable.
23906 as_me=`$as_basename "$0" ||
23907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23908 X"$0" : 'X\(//\)$' \| \
23909 X"$0" : 'X\(/\)$' \| \
23910 . : '\(.\)' 2>/dev/null ||
23912 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23913 /^X\/\(\/\/\)$/{ s//\1/; q; }
23914 /^X\/\(\/\).*/{ s//\1/; q; }
23918 # PATH needs CR, and LINENO needs CR and PATH.
23919 # Avoid depending upon Character Ranges.
23920 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23921 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23922 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23923 as_cr_digits='0123456789'
23924 as_cr_alnum=$as_cr_Letters$as_cr_digits
23926 # The user is always right.
23927 if test "${PATH_SEPARATOR+set}" != set; then
23928 echo "#! /bin/sh" >conf$$.sh
23929 echo "exit 0" >>conf$$.sh
23931 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23940 as_lineno_1=$LINENO
23941 as_lineno_2=$LINENO
23942 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23943 test "x$as_lineno_1" != "x$as_lineno_2" &&
23944 test "x$as_lineno_3" = "x$as_lineno_2" || {
23945 # Find who we are. Look in the path if we contain no path at all
23948 *[\\/]* ) as_myself=$0 ;;
23949 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23950 for as_dir in $PATH
23953 test -z "$as_dir" && as_dir=.
23954 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23959 # We did not find ourselves, most probably we were run as `sh COMMAND'
23960 # in which case we are not to be found in the path.
23961 if test "x$as_myself" = x; then
23964 if test ! -f "$as_myself"; then
23965 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23966 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23967 { (exit 1); exit 1; }; }
23969 case $CONFIG_SHELL in
23971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23972 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23975 test -z "$as_dir" && as_dir=.
23976 for as_base in sh bash ksh sh5; do
23979 if ("$as_dir/$as_base" -c '
23980 as_lineno_1=$LINENO
23981 as_lineno_2=$LINENO
23982 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23983 test "x$as_lineno_1" != "x$as_lineno_2" &&
23984 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23985 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23986 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23987 CONFIG_SHELL=$as_dir/$as_base
23988 export CONFIG_SHELL
23989 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23997 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23998 # uniformly replaced by the line number. The first 'sed' inserts a
23999 # line-number line before each line; the second 'sed' does the real
24000 # work. The second script uses 'N' to pair each line-number line
24001 # with the numbered line, and appends trailing '-' during
24002 # substitution so that $LINENO is not a special case at line end.
24003 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24004 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24005 sed '=' <$as_myself |
24010 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24013 s,^['$as_cr_digits']*\n,,
24014 ' >$as_me.lineno &&
24015 chmod +x $as_me.lineno ||
24016 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24017 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24018 { (exit 1); exit 1; }; }
24020 # Don't try to exec as it changes $[0], causing all sort of problems
24021 # (the dirname of $[0] is not the place where we might find the
24022 # original and so on. Autoconf is especially sensible to this).
24024 # Exit status is that of the last command.
24029 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24030 *c*,-n*) ECHO_N= ECHO_C='
24032 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24033 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24036 if expr a : '\(a\)' >/dev/null 2>&1; then
24042 rm -f conf$$ conf$$.exe conf$$.file
24044 if ln -s conf$$.file conf$$ 2>/dev/null; then
24045 # We could just check for DJGPP; but this test a) works b) is more generic
24046 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24047 if test -f conf$$.exe; then
24048 # Don't use ln at all; we don't have any links
24053 elif ln conf$$.file conf$$ 2>/dev/null; then
24058 rm -f conf$$ conf$$.exe conf$$.file
24060 if mkdir -p . 2>/dev/null; then
24063 test -d ./-p && rmdir ./-p
24067 as_executable_p="test -f"
24069 # Sed expression to map a string onto a valid CPP name.
24070 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24072 # Sed expression to map a string onto a valid variable name.
24073 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24077 # We need space, tab and new line, in precisely that order.
24087 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24088 # report actual input values of CONFIG_FILES etc. instead of their
24089 # values after options handling. Logging --version etc. is OK.
24093 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24094 ## Running $as_me. ##
24099 This file was extended by LLVM $as_me 1.3, which was
24100 generated by GNU Autoconf 2.59. Invocation command line was
24102 CONFIG_FILES = $CONFIG_FILES
24103 CONFIG_HEADERS = $CONFIG_HEADERS
24104 CONFIG_LINKS = $CONFIG_LINKS
24105 CONFIG_COMMANDS = $CONFIG_COMMANDS
24109 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24113 # Files that config.status was made for.
24114 if test -n "$ac_config_files"; then
24115 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24118 if test -n "$ac_config_headers"; then
24119 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24122 if test -n "$ac_config_links"; then
24123 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24126 if test -n "$ac_config_commands"; then
24127 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24130 cat >>$CONFIG_STATUS <<\_ACEOF
24133 \`$as_me' instantiates files from templates according to the
24134 current configuration.
24136 Usage: $0 [OPTIONS] [FILE]...
24138 -h, --help print this help, then exit
24139 -V, --version print version number, then exit
24140 -q, --quiet do not print progress messages
24141 -d, --debug don't remove temporary files
24142 --recheck update $as_me by reconfiguring in the same conditions
24143 --file=FILE[:TEMPLATE]
24144 instantiate the configuration file FILE
24145 --header=FILE[:TEMPLATE]
24146 instantiate the configuration header FILE
24148 Configuration files:
24151 Configuration headers:
24154 Configuration commands:
24157 Report bugs to <bug-autoconf@gnu.org>."
24160 cat >>$CONFIG_STATUS <<_ACEOF
24162 LLVM config.status 1.3
24163 configured by $0, generated by GNU Autoconf 2.59,
24164 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24166 Copyright (C) 2003 Free Software Foundation, Inc.
24167 This config.status script is free software; the Free Software Foundation
24168 gives unlimited permission to copy, distribute and modify it."
24173 cat >>$CONFIG_STATUS <<\_ACEOF
24174 # If no file are specified by the user, then we need to provide default
24175 # value. By we need to know if files were specified by the user.
24181 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24182 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24190 *) # This is not an option, so the user has probably given explicit
24193 ac_need_defaults=false;;
24197 # Handling of the options.
24199 cat >>$CONFIG_STATUS <<\_ACEOF
24200 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24202 --version | --vers* | -V )
24203 echo "$ac_cs_version"; exit 0 ;;
24205 # Conflict between --help and --header
24206 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24207 Try \`$0 --help' for more information." >&5
24208 echo "$as_me: error: ambiguous option: $1
24209 Try \`$0 --help' for more information." >&2;}
24210 { (exit 1); exit 1; }; };;
24211 --help | --hel | -h )
24212 echo "$ac_cs_usage"; exit 0 ;;
24213 --debug | --d* | -d )
24215 --file | --fil | --fi | --f )
24217 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24218 ac_need_defaults=false;;
24219 --header | --heade | --head | --hea )
24221 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24222 ac_need_defaults=false;;
24223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24224 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24227 # This is an error.
24228 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24229 Try \`$0 --help' for more information." >&5
24230 echo "$as_me: error: unrecognized option: $1
24231 Try \`$0 --help' for more information." >&2;}
24232 { (exit 1); exit 1; }; } ;;
24234 *) ac_config_targets="$ac_config_targets $1" ;;
24240 ac_configure_extra_args=
24242 if $ac_cs_silent; then
24244 ac_configure_extra_args="$ac_configure_extra_args --silent"
24248 cat >>$CONFIG_STATUS <<_ACEOF
24249 if \$ac_cs_recheck; then
24250 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24251 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24256 cat >>$CONFIG_STATUS <<_ACEOF
24258 # INIT-COMMANDS section.
24261 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24262 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24263 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24264 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24265 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24266 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24267 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24268 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24269 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24270 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
24271 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
24272 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24273 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
24274 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24275 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24276 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24277 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24278 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24279 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24280 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24281 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24282 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24283 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
24284 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
24285 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24286 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
24287 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
24288 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
24289 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
24290 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24291 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
24292 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24293 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24294 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24295 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24296 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24297 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24298 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24299 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24300 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24301 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24302 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24303 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24304 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
24305 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24306 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
24307 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
24308 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24309 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24310 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24316 cat >>$CONFIG_STATUS <<\_ACEOF
24317 for ac_config_target in $ac_config_targets
24319 case "$ac_config_target" in
24320 # Handling of arguments.
24321 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24322 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24323 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
24324 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24325 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
24326 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
24327 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24328 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24329 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24330 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24331 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24332 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24333 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24334 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24335 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24336 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24337 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
24338 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24339 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24340 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24341 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24342 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24343 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24344 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24345 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24346 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24347 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24348 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24349 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24350 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
24351 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24352 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24353 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24354 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
24355 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
24356 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24357 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24358 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24359 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24360 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24361 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24362 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24363 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24364 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24365 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24366 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24367 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24368 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24369 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24370 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24371 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24372 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24373 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24374 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24375 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24376 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24377 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24378 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24379 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24380 { (exit 1); exit 1; }; };;
24384 # If the user did not use the arguments to specify the items to instantiate,
24385 # then the envvar interface is used. Set only those that are not.
24386 # We use the long form for the default assignment because of an extremely
24387 # bizarre bug on SunOS 4.1.3.
24388 if $ac_need_defaults; then
24389 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24390 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24391 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24394 # Have a temporary directory for convenience. Make it in the build tree
24395 # simply because there is no reason to put it here, and in addition,
24396 # creating and moving files from /tmp can sometimes cause problems.
24397 # Create a temporary directory, and hook for its removal unless debugging.
24400 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24401 trap '{ (exit 1); exit 1; }' 1 2 13 15
24404 # Create a (secure) tmp directory for tmp files.
24407 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24408 test -n "$tmp" && test -d "$tmp"
24411 tmp=./confstat$$-$RANDOM
24412 (umask 077 && mkdir $tmp)
24415 echo "$me: cannot create a temporary directory in ." >&2
24416 { (exit 1); exit 1; }
24421 cat >>$CONFIG_STATUS <<_ACEOF
24424 # CONFIG_FILES section.
24427 # No need to generate the scripts if there are no CONFIG_FILES.
24428 # This happens for instance when ./config.status config.h
24429 if test -n "\$CONFIG_FILES"; then
24430 # Protect against being on the right side of a sed subst in config.status.
24431 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24432 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24433 s,@SHELL@,$SHELL,;t t
24434 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24435 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24436 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24437 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24438 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24439 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24440 s,@exec_prefix@,$exec_prefix,;t t
24441 s,@prefix@,$prefix,;t t
24442 s,@program_transform_name@,$program_transform_name,;t t
24443 s,@bindir@,$bindir,;t t
24444 s,@sbindir@,$sbindir,;t t
24445 s,@libexecdir@,$libexecdir,;t t
24446 s,@datadir@,$datadir,;t t
24447 s,@sysconfdir@,$sysconfdir,;t t
24448 s,@sharedstatedir@,$sharedstatedir,;t t
24449 s,@localstatedir@,$localstatedir,;t t
24450 s,@libdir@,$libdir,;t t
24451 s,@includedir@,$includedir,;t t
24452 s,@oldincludedir@,$oldincludedir,;t t
24453 s,@infodir@,$infodir,;t t
24454 s,@mandir@,$mandir,;t t
24455 s,@build_alias@,$build_alias,;t t
24456 s,@host_alias@,$host_alias,;t t
24457 s,@target_alias@,$target_alias,;t t
24458 s,@DEFS@,$DEFS,;t t
24459 s,@ECHO_C@,$ECHO_C,;t t
24460 s,@ECHO_N@,$ECHO_N,;t t
24461 s,@ECHO_T@,$ECHO_T,;t t
24462 s,@LIBS@,$LIBS,;t t
24463 s,@subdirs@,$subdirs,;t t
24464 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24465 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24466 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24467 s,@build@,$build,;t t
24468 s,@build_cpu@,$build_cpu,;t t
24469 s,@build_vendor@,$build_vendor,;t t
24470 s,@build_os@,$build_os,;t t
24471 s,@host@,$host,;t t
24472 s,@host_cpu@,$host_cpu,;t t
24473 s,@host_vendor@,$host_vendor,;t t
24474 s,@host_os@,$host_os,;t t
24475 s,@target@,$target,;t t
24476 s,@target_cpu@,$target_cpu,;t t
24477 s,@target_vendor@,$target_vendor,;t t
24478 s,@target_os@,$target_os,;t t
24480 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24481 s,@ARCH@,$ARCH,;t t
24483 s,@CXXFLAGS@,$CXXFLAGS,;t t
24484 s,@LDFLAGS@,$LDFLAGS,;t t
24485 s,@CPPFLAGS@,$CPPFLAGS,;t t
24486 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24487 s,@EXEEXT@,$EXEEXT,;t t
24488 s,@OBJEXT@,$OBJEXT,;t t
24490 s,@CFLAGS@,$CFLAGS,;t t
24491 s,@ac_ct_CC@,$ac_ct_CC,;t t
24493 s,@ifGNUmake@,$ifGNUmake,;t t
24495 s,@LEXLIB@,$LEXLIB,;t t
24496 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24497 s,@YACC@,$YACC,;t t
24498 s,@BISON@,$BISON,;t t
24499 s,@EGREP@,$EGREP,;t t
24500 s,@LN_S@,$LN_S,;t t
24501 s,@ECHO@,$ECHO,;t t
24503 s,@ac_ct_AR@,$ac_ct_AR,;t t
24504 s,@RANLIB@,$RANLIB,;t t
24505 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24506 s,@STRIP@,$STRIP,;t t
24507 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24508 s,@CXXCPP@,$CXXCPP,;t t
24510 s,@FFLAGS@,$FFLAGS,;t t
24511 s,@ac_ct_F77@,$ac_ct_F77,;t t
24512 s,@LIBTOOL@,$LIBTOOL,;t t
24514 s,@ETAGS@,$ETAGS,;t t
24515 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24516 s,@PYTHON@,$PYTHON,;t t
24517 s,@QMTEST@,$QMTEST,;t t
24518 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24519 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24520 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24521 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24522 s,@ENDIAN@,$ENDIAN,;t t
24523 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24524 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24525 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24526 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24527 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24528 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24529 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24530 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24531 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24532 s,@ALLOCA@,$ALLOCA,;t t
24533 s,@MMAP_FILE@,$MMAP_FILE,;t t
24534 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24535 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24536 s,@USE_SPEC95@,$USE_SPEC95,;t t
24537 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24538 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
24539 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24540 s,@USE_POVRAY@,$USE_POVRAY,;t t
24542 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24544 s,@LLVMCC1@,$LLVMCC1,;t t
24545 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24547 s,@PAPIDIR@,$PAPIDIR,;t t
24548 s,@SHLIBEXT@,$SHLIBEXT,;t t
24549 s,@LIBOBJS@,$LIBOBJS,;t t
24550 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24555 cat >>$CONFIG_STATUS <<\_ACEOF
24556 # Split the substitutions into bite-sized pieces for seds with
24557 # small command number limits, like on Digital OSF/1 and HP-UX.
24558 ac_max_sed_lines=48
24559 ac_sed_frag=1 # Number of current file.
24560 ac_beg=1 # First line for current file.
24561 ac_end=$ac_max_sed_lines # Line after last line for current file.
24564 while $ac_more_lines; do
24565 if test $ac_beg -gt 1; then
24566 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24568 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24570 if test ! -s $tmp/subs.frag; then
24571 ac_more_lines=false
24573 # The purpose of the label and of the branching condition is to
24574 # speed up the sed processing (if there are no `@' at all, there
24575 # is no need to browse any of the substitutions).
24576 # These are the two extra sed commands mentioned above.
24578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24579 if test -z "$ac_sed_cmds"; then
24580 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24582 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24584 ac_sed_frag=`expr $ac_sed_frag + 1`
24586 ac_end=`expr $ac_end + $ac_max_sed_lines`
24589 if test -z "$ac_sed_cmds"; then
24592 fi # test -n "$CONFIG_FILES"
24595 cat >>$CONFIG_STATUS <<\_ACEOF
24596 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24599 - | *:- | *:-:* ) # input from stdin
24601 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24603 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24605 * ) ac_file_in=$ac_file.in ;;
24608 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24609 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24611 X"$ac_file" : 'X\(//\)[^/]' \| \
24612 X"$ac_file" : 'X\(//\)$' \| \
24613 X"$ac_file" : 'X\(/\)' \| \
24614 . : '\(.\)' 2>/dev/null ||
24616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24618 /^X\(\/\/\)$/{ s//\1/; q; }
24619 /^X\(\/\).*/{ s//\1/; q; }
24621 { if $as_mkdir_p; then
24626 while test ! -d "$as_dir"; do
24627 as_dirs="$as_dir $as_dirs"
24628 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24630 X"$as_dir" : 'X\(//\)[^/]' \| \
24631 X"$as_dir" : 'X\(//\)$' \| \
24632 X"$as_dir" : 'X\(/\)' \| \
24633 . : '\(.\)' 2>/dev/null ||
24635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24637 /^X\(\/\/\)$/{ s//\1/; q; }
24638 /^X\(\/\).*/{ s//\1/; q; }
24641 test ! -n "$as_dirs" || mkdir $as_dirs
24642 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24643 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24644 { (exit 1); exit 1; }; }; }
24648 if test "$ac_dir" != .; then
24649 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24650 # A "../" for each directory in $ac_dir_suffix.
24651 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24653 ac_dir_suffix= ac_top_builddir=
24657 .) # No --srcdir option. We are building in place.
24659 if test -z "$ac_top_builddir"; then
24662 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24664 [\\/]* | ?:[\\/]* ) # Absolute path.
24665 ac_srcdir=$srcdir$ac_dir_suffix;
24666 ac_top_srcdir=$srcdir ;;
24667 *) # Relative path.
24668 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24669 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24672 # Do not use `cd foo && pwd` to compute absolute paths, because
24673 # the directories may not exist.
24675 .) ac_abs_builddir="$ac_dir";;
24678 .) ac_abs_builddir=`pwd`;;
24679 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24680 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24683 case $ac_abs_builddir in
24684 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24686 case ${ac_top_builddir}. in
24687 .) ac_abs_top_builddir=$ac_abs_builddir;;
24688 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24689 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24692 case $ac_abs_builddir in
24693 .) ac_abs_srcdir=$ac_srcdir;;
24696 .) ac_abs_srcdir=$ac_abs_builddir;;
24697 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24698 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24701 case $ac_abs_builddir in
24702 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24704 case $ac_top_srcdir in
24705 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24706 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24707 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24714 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24717 if test x"$ac_file" != x-; then
24718 { echo "$as_me:$LINENO: creating $ac_file" >&5
24719 echo "$as_me: creating $ac_file" >&6;}
24722 # Let's still pretend it is `configure' which instantiates (i.e., don't
24723 # use $as_me), people would be surprised to read:
24724 # /* config.h. Generated by config.status. */
24725 if test x"$ac_file" = x-; then
24728 configure_input="$ac_file. "
24730 configure_input=$configure_input"Generated from `echo $ac_file_in |
24731 sed 's,.*/,,'` by configure."
24733 # First look for the input files in the build tree, otherwise in the
24735 ac_file_inputs=`IFS=:
24736 for f in $ac_file_in; do
24738 -) echo $tmp/stdin ;;
24740 # Absolute (can't be DOS-style, as IFS=:)
24741 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24742 echo "$as_me: error: cannot find input file: $f" >&2;}
24743 { (exit 1); exit 1; }; }
24746 if test -f "$f"; then
24749 elif test -f "$srcdir/$f"; then
24754 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24755 echo "$as_me: error: cannot find input file: $f" >&2;}
24756 { (exit 1); exit 1; }; }
24759 done` || { (exit 1); exit 1; }
24761 cat >>$CONFIG_STATUS <<_ACEOF
24765 cat >>$CONFIG_STATUS <<\_ACEOF
24767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24768 s,@configure_input@,$configure_input,;t t
24769 s,@srcdir@,$ac_srcdir,;t t
24770 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24771 s,@top_srcdir@,$ac_top_srcdir,;t t
24772 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24773 s,@builddir@,$ac_builddir,;t t
24774 s,@abs_builddir@,$ac_abs_builddir,;t t
24775 s,@top_builddir@,$ac_top_builddir,;t t
24776 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24777 s,@INSTALL@,$ac_INSTALL,;t t
24778 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24780 if test x"$ac_file" != x-; then
24781 mv $tmp/out $ac_file
24789 cat >>$CONFIG_STATUS <<\_ACEOF
24792 # CONFIG_HEADER section.
24795 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24796 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24798 # ac_d sets the value in "#define NAME VALUE" lines.
24799 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24800 ac_dB='[ ].*$,\1#\2'
24803 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24804 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24805 ac_uB='$,\1#\2define\3'
24809 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24812 - | *:- | *:-:* ) # input from stdin
24814 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24816 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24817 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24818 * ) ac_file_in=$ac_file.in ;;
24821 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24822 echo "$as_me: creating $ac_file" >&6;}
24824 # First look for the input files in the build tree, otherwise in the
24826 ac_file_inputs=`IFS=:
24827 for f in $ac_file_in; do
24829 -) echo $tmp/stdin ;;
24831 # Absolute (can't be DOS-style, as IFS=:)
24832 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24833 echo "$as_me: error: cannot find input file: $f" >&2;}
24834 { (exit 1); exit 1; }; }
24835 # Do quote $f, to prevent DOS paths from being IFS'd.
24838 if test -f "$f"; then
24841 elif test -f "$srcdir/$f"; then
24846 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24847 echo "$as_me: error: cannot find input file: $f" >&2;}
24848 { (exit 1); exit 1; }; }
24851 done` || { (exit 1); exit 1; }
24852 # Remove the trailing spaces.
24853 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24857 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24858 # `conftest.undefs', that substitutes the proper values into
24859 # config.h.in to produce config.h. The first handles `#define'
24860 # templates, and the second `#undef' templates.
24861 # And first: Protect against being on the right side of a sed subst in
24862 # config.status. Protect against being in an unquoted here document
24863 # in config.status.
24864 rm -f conftest.defines conftest.undefs
24865 # Using a here document instead of a string reduces the quoting nightmare.
24866 # Putting comments in sed scripts is not portable.
24868 # `end' is used to avoid that the second main sed command (meant for
24869 # 0-ary CPP macros) applies to n-ary macro definitions.
24870 # See the Autoconf documentation for `clear'.
24871 cat >confdef2sed.sed <<\_ACEOF
24876 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24878 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24881 # If some macros were called several times there might be several times
24882 # the same #defines, which is useless. Nevertheless, we may not want to
24883 # sort them, since we want the *last* AC-DEFINE to be honored.
24884 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24885 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24886 rm -f confdef2sed.sed
24888 # This sed command replaces #undef with comments. This is necessary, for
24889 # example, in the case of _POSIX_SOURCE, which is predefined and required
24890 # on some systems where configure will not decide to define it.
24891 cat >>conftest.undefs <<\_ACEOF
24892 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24895 # Break up conftest.defines because some shells have a limit on the size
24896 # of here documents, and old seds have small limits too (100 cmds).
24897 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24898 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24899 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24900 echo ' :' >>$CONFIG_STATUS
24901 rm -f conftest.tail
24902 while grep . conftest.defines >/dev/null
24904 # Write a limited-size here document to $tmp/defines.sed.
24905 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24906 # Speed up: don't consider the non `#define' lines.
24907 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24908 # Work around the forget-to-reset-the-flag bug.
24909 echo 't clr' >>$CONFIG_STATUS
24910 echo ': clr' >>$CONFIG_STATUS
24911 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24913 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24915 mv $tmp/out $tmp/in
24917 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24918 rm -f conftest.defines
24919 mv conftest.tail conftest.defines
24921 rm -f conftest.defines
24922 echo ' fi # grep' >>$CONFIG_STATUS
24923 echo >>$CONFIG_STATUS
24925 # Break up conftest.undefs because some shells have a limit on the size
24926 # of here documents, and old seds have small limits too (100 cmds).
24927 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24928 rm -f conftest.tail
24929 while grep . conftest.undefs >/dev/null
24931 # Write a limited-size here document to $tmp/undefs.sed.
24932 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24933 # Speed up: don't consider the non `#undef'
24934 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24935 # Work around the forget-to-reset-the-flag bug.
24936 echo 't clr' >>$CONFIG_STATUS
24937 echo ': clr' >>$CONFIG_STATUS
24938 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24940 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24942 mv $tmp/out $tmp/in
24944 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24945 rm -f conftest.undefs
24946 mv conftest.tail conftest.undefs
24948 rm -f conftest.undefs
24950 cat >>$CONFIG_STATUS <<\_ACEOF
24951 # Let's still pretend it is `configure' which instantiates (i.e., don't
24952 # use $as_me), people would be surprised to read:
24953 # /* config.h. Generated by config.status. */
24954 if test x"$ac_file" = x-; then
24955 echo "/* Generated by configure. */" >$tmp/config.h
24957 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24959 cat $tmp/in >>$tmp/config.h
24961 if test x"$ac_file" != x-; then
24962 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24963 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24964 echo "$as_me: $ac_file is unchanged" >&6;}
24966 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24968 X"$ac_file" : 'X\(//\)[^/]' \| \
24969 X"$ac_file" : 'X\(//\)$' \| \
24970 X"$ac_file" : 'X\(/\)' \| \
24971 . : '\(.\)' 2>/dev/null ||
24973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24975 /^X\(\/\/\)$/{ s//\1/; q; }
24976 /^X\(\/\).*/{ s//\1/; q; }
24978 { if $as_mkdir_p; then
24983 while test ! -d "$as_dir"; do
24984 as_dirs="$as_dir $as_dirs"
24985 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24987 X"$as_dir" : 'X\(//\)[^/]' \| \
24988 X"$as_dir" : 'X\(//\)$' \| \
24989 X"$as_dir" : 'X\(/\)' \| \
24990 . : '\(.\)' 2>/dev/null ||
24992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24994 /^X\(\/\/\)$/{ s//\1/; q; }
24995 /^X\(\/\).*/{ s//\1/; q; }
24998 test ! -n "$as_dirs" || mkdir $as_dirs
24999 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25000 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25001 { (exit 1); exit 1; }; }; }
25004 mv $tmp/config.h $ac_file
25008 rm -f $tmp/config.h
25012 cat >>$CONFIG_STATUS <<\_ACEOF
25015 # CONFIG_COMMANDS section.
25017 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25018 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25019 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25020 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25021 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25022 X"$ac_dest" : 'X\(//\)[^/]' \| \
25023 X"$ac_dest" : 'X\(//\)$' \| \
25024 X"$ac_dest" : 'X\(/\)' \| \
25025 . : '\(.\)' 2>/dev/null ||
25027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25029 /^X\(\/\/\)$/{ s//\1/; q; }
25030 /^X\(\/\).*/{ s//\1/; q; }
25032 { if $as_mkdir_p; then
25037 while test ! -d "$as_dir"; do
25038 as_dirs="$as_dir $as_dirs"
25039 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25041 X"$as_dir" : 'X\(//\)[^/]' \| \
25042 X"$as_dir" : 'X\(//\)$' \| \
25043 X"$as_dir" : 'X\(/\)' \| \
25044 . : '\(.\)' 2>/dev/null ||
25046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25048 /^X\(\/\/\)$/{ s//\1/; q; }
25049 /^X\(\/\).*/{ s//\1/; q; }
25052 test ! -n "$as_dirs" || mkdir $as_dirs
25053 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25054 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25055 { (exit 1); exit 1; }; }; }
25059 if test "$ac_dir" != .; then
25060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25061 # A "../" for each directory in $ac_dir_suffix.
25062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25064 ac_dir_suffix= ac_top_builddir=
25068 .) # No --srcdir option. We are building in place.
25070 if test -z "$ac_top_builddir"; then
25073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25075 [\\/]* | ?:[\\/]* ) # Absolute path.
25076 ac_srcdir=$srcdir$ac_dir_suffix;
25077 ac_top_srcdir=$srcdir ;;
25078 *) # Relative path.
25079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25083 # Do not use `cd foo && pwd` to compute absolute paths, because
25084 # the directories may not exist.
25086 .) ac_abs_builddir="$ac_dir";;
25089 .) ac_abs_builddir=`pwd`;;
25090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25094 case $ac_abs_builddir in
25095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25097 case ${ac_top_builddir}. in
25098 .) ac_abs_top_builddir=$ac_abs_builddir;;
25099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25103 case $ac_abs_builddir in
25104 .) ac_abs_srcdir=$ac_srcdir;;
25107 .) ac_abs_srcdir=$ac_abs_builddir;;
25108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25112 case $ac_abs_builddir in
25113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25115 case $ac_top_srcdir in
25116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25123 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25124 echo "$as_me: executing $ac_dest commands" >&6;}
25126 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25127 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25128 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25129 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25130 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25131 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25132 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25133 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25134 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25135 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
25136 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
25137 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25138 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
25139 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25140 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25141 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25142 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25143 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25144 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25145 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25146 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25147 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25148 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
25149 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
25150 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25151 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
25152 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
25153 test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
25154 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
25155 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25156 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
25157 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
25158 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
25159 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
25160 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
25161 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
25162 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
25163 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
25164 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
25165 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
25166 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
25167 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
25168 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
25169 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
25170 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25171 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
25172 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
25173 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25174 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25175 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25180 cat >>$CONFIG_STATUS <<\_ACEOF
25182 { (exit 0); exit 0; }
25184 chmod +x $CONFIG_STATUS
25185 ac_clean_files=$ac_clean_files_save
25188 # configure is writing to config.log, and then calls config.status.
25189 # config.status does its own redirection, appending to config.log.
25190 # Unfortunately, on DOS this fails, as config.log is still kept open
25191 # by configure, so config.status won't be able to write to it; its
25192 # output is simply discarded. So we exec the FD to /dev/null,
25193 # effectively closing config.log, so it can be properly (re)opened and
25194 # appended to by config.status. When coming back to configure, we
25195 # need to make the FD available again.
25196 if test "$no_create" != yes; then
25198 ac_config_status_args=
25199 test "$silent" = yes &&
25200 ac_config_status_args="$ac_config_status_args --quiet"
25202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25205 # would make configure fail if this is the last instruction.
25206 $ac_cs_success || { (exit 1); exit 1; }
25210 # CONFIG_SUBDIRS section.
25212 if test "$no_recursion" != yes; then
25214 # Remove --cache-file and --srcdir arguments so they do not pile up.
25215 ac_sub_configure_args=
25217 for ac_arg in $ac_configure_args; do
25218 if test -n "$ac_prev"; then
25223 -cache-file | --cache-file | --cache-fil | --cache-fi \
25224 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25225 ac_prev=cache_file ;;
25226 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25227 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25230 --config-cache | -C)
25232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25236 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25238 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25240 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25244 # Always prepend --prefix to ensure using the same prefix
25245 # in subdir configurations.
25246 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25249 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25251 # Do not complain, so a configure script can configure whichever
25252 # parts of a large source tree are present.
25253 test -d $srcdir/$ac_dir || continue
25255 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25256 echo "$as_me: configuring in $ac_dir" >&6;}
25257 { if $as_mkdir_p; then
25262 while test ! -d "$as_dir"; do
25263 as_dirs="$as_dir $as_dirs"
25264 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25266 X"$as_dir" : 'X\(//\)[^/]' \| \
25267 X"$as_dir" : 'X\(//\)$' \| \
25268 X"$as_dir" : 'X\(/\)' \| \
25269 . : '\(.\)' 2>/dev/null ||
25271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25273 /^X\(\/\/\)$/{ s//\1/; q; }
25274 /^X\(\/\).*/{ s//\1/; q; }
25277 test ! -n "$as_dirs" || mkdir $as_dirs
25278 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25279 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25280 { (exit 1); exit 1; }; }; }
25284 if test "$ac_dir" != .; then
25285 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25286 # A "../" for each directory in $ac_dir_suffix.
25287 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25289 ac_dir_suffix= ac_top_builddir=
25293 .) # No --srcdir option. We are building in place.
25295 if test -z "$ac_top_builddir"; then
25298 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25300 [\\/]* | ?:[\\/]* ) # Absolute path.
25301 ac_srcdir=$srcdir$ac_dir_suffix;
25302 ac_top_srcdir=$srcdir ;;
25303 *) # Relative path.
25304 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25305 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25308 # Do not use `cd foo && pwd` to compute absolute paths, because
25309 # the directories may not exist.
25311 .) ac_abs_builddir="$ac_dir";;
25314 .) ac_abs_builddir=`pwd`;;
25315 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25316 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25319 case $ac_abs_builddir in
25320 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25322 case ${ac_top_builddir}. in
25323 .) ac_abs_top_builddir=$ac_abs_builddir;;
25324 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25325 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25328 case $ac_abs_builddir in
25329 .) ac_abs_srcdir=$ac_srcdir;;
25332 .) ac_abs_srcdir=$ac_abs_builddir;;
25333 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25334 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25337 case $ac_abs_builddir in
25338 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25340 case $ac_top_srcdir in
25341 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25342 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25343 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25350 # Check for guested configure; otherwise get Cygnus style configure.
25351 if test -f $ac_srcdir/configure.gnu; then
25352 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25353 elif test -f $ac_srcdir/configure; then
25354 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25355 elif test -f $ac_srcdir/configure.in; then
25356 ac_sub_configure=$ac_configure
25358 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25359 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25363 # The recursion is here.
25364 if test -n "$ac_sub_configure"; then
25365 # Make the cache file name correct relative to the subdirectory.
25366 case $cache_file in
25367 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25368 *) # Relative path.
25369 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25372 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25373 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25374 # The eval makes quoting arguments work.
25375 eval $ac_sub_configure $ac_sub_configure_args \
25376 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25377 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25378 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25379 { (exit 1); exit 1; }; }
25387 if test $llvmgccwarn = yes
25389 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25390 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25392 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25393 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25394 echo "$as_me: WARNING: ***** " >&2;}
25395 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25396 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25397 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25398 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25399 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25400 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}