2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.1].
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.1]'
426 PACKAGE_STRING='[LLVM] [1.1]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_unique_file=""Makefile.config.in""
468 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 ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC SPEC95_ROOT USE_SPEC95 UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures [LLVM] [1.1] to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1017 if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of [LLVM] [1.1]:";;
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
1032 --disable-libtool-lock avoid locking (might break parallel builds)
1033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec2000 Compile SPEC 2000 benchmarks (default is NO)
1035 --enable-spec95 Compile SPEC 95 benchmarks (default is NO)
1036 --enable-precompiled_bytecode
1037 Use pre-compiled bytecode (default is NO)
1038 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1039 --enable-jit Enable Just In Time Compiling (default is YES)
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1048 include additional configurations [automatic]
1049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
1053 Some influential environment variables:
1054 CXX C++ compiler command
1055 CXXFLAGS C++ compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1060 CC C compiler command
1061 CFLAGS C compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1070 Report bugs to <llvmbugs@cs.uiuc.edu>.
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 ac_dir_suffix= ac_top_builddir=
1090 .) # No --srcdir option. We are building in place.
1092 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1107 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1108 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1109 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112 # Check for guested configure; otherwise get Cygnus style configure.
1113 if test -f $ac_srcdir/configure.gnu; then
1115 $SHELL $ac_srcdir/configure.gnu --help=recursive
1116 elif test -f $ac_srcdir/configure; then
1118 $SHELL $ac_srcdir/configure --help=recursive
1119 elif test -f $ac_srcdir/configure.ac ||
1120 test -f $ac_srcdir/configure.in; then
1122 $ac_configure --help
1124 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1130 test -n "$ac_init_help" && exit 0
1131 if $ac_init_version; then
1133 [LLVM] configure [1.1]
1134 generated by GNU Autoconf 2.57
1136 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1137 Free Software Foundation, Inc.
1138 This configure script is free software; the Free Software Foundation
1139 gives unlimited permission to copy, distribute and modify it.
1145 This file contains any messages produced by compilers while
1146 running configure, to aid debugging if configure makes a mistake.
1148 It was created by [LLVM] $as_me [1.1], which was
1149 generated by GNU Autoconf 2.57. Invocation command line was
1160 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1170 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1171 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1172 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1173 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1174 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1175 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 test -z "$as_dir" && as_dir=.
1184 echo "PATH: $as_dir"
1199 # Keep a trace of the command line.
1200 # Strip out --no-create and --no-recursion so they do not pile up.
1201 # Strip out --silent because we don't want to record it for future runs.
1202 # Also quote any args containing shell meta-characters.
1203 # Make two passes to allow for proper duplicate-argument suppression.
1208 ac_must_keep_next=false
1214 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225 if test $ac_must_keep_next = true; then
1226 ac_must_keep_next=false # Got value, back to normal.
1229 *=* | --config-cache | -C | -disable-* | --disable-* \
1230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232 | -with-* | --with-* | -without-* | --without-* | --x)
1233 case "$ac_configure_args0 " in
1234 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 -* ) ac_must_keep_next=true ;;
1240 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241 # Get rid of the leading space.
1247 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250 # When interrupted or exit'd, cleanup temporary files, and complete
1251 # config.log. We remove comments because anyway the quotes in there
1252 # would cause problems or look ugly.
1253 # WARNING: Be sure not to use single quotes in there, as some shells,
1254 # such as our DU 5.0 friend, will then `close' the trap.
1255 trap 'exit_status=$?
1256 # Save into config.log some information that might help in debugging.
1261 ## ---------------- ##
1262 ## Cache variables. ##
1263 ## ---------------- ##
1266 # The following way of writing the cache mishandles newlines in values,
1269 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284 ## ----------------- ##
1285 ## Output variables. ##
1286 ## ----------------- ##
1289 for ac_var in $ac_subst_vars
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1296 if test -n "$ac_subst_files"; then
1303 for ac_var in $ac_subst_files
1305 eval ac_val=$`echo $ac_var`
1306 echo "$ac_var='"'"'$ac_val'"'"'"
1311 if test -s confdefs.h; then
1318 sed "/^$/d" confdefs.h | sort
1321 test "$ac_signal" != 0 &&
1322 echo "$as_me: caught signal $ac_signal"
1323 echo "$as_me: exit $exit_status"
1325 rm -f core core.* *.core &&
1326 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 for ac_signal in 1 2 13 15; do
1330 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1335 rm -rf conftest* confdefs.h
1336 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 # Predefined preprocessor variables.
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 # Let the site file select an alternate cache file if it wants to.
1367 # Prefer explicitly selected file to automatically selected ones.
1368 if test -z "$CONFIG_SITE"; then
1369 if test "x$prefix" != xNONE; then
1370 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 for ac_site_file in $CONFIG_SITE; do
1376 if test -r "$ac_site_file"; then
1377 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378 echo "$as_me: loading site script $ac_site_file" >&6;}
1379 sed 's/^/| /' "$ac_site_file" >&5
1384 if test -r "$cache_file"; then
1385 # Some versions of bash will fail to source /dev/null (special
1386 # files actually), so we avoid doing that.
1387 if test -f "$cache_file"; then
1388 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389 echo "$as_me: loading cache $cache_file" >&6;}
1391 [\\/]* | ?:[\\/]* ) . $cache_file;;
1392 *) . ./$cache_file;;
1396 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397 echo "$as_me: creating cache $cache_file" >&6;}
1401 # Check that the precious variables saved in the cache have kept the same
1403 ac_cache_corrupted=false
1404 for ac_var in `(set) 2>&1 |
1405 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407 eval ac_new_set=\$ac_env_${ac_var}_set
1408 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409 eval ac_new_val="\$ac_env_${ac_var}_value"
1410 case $ac_old_set,$ac_new_set in
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1416 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1418 ac_cache_corrupted=: ;;
1421 if test "x$ac_old_val" != "x$ac_new_val"; then
1422 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1423 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1424 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1425 echo "$as_me: former value: $ac_old_val" >&2;}
1426 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1427 echo "$as_me: current value: $ac_new_val" >&2;}
1428 ac_cache_corrupted=:
1431 # Pass precious variables to config.status.
1432 if test "$ac_new_set" = set; then
1434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1435 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1436 *) ac_arg=$ac_var=$ac_new_val ;;
1438 case " $ac_configure_args " in
1439 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1440 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444 if $ac_cache_corrupted; then
1445 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1446 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1447 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1448 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1449 { (exit 1); exit 1; }; }
1453 ac_cpp='$CPP $CPPFLAGS'
1454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486 for ac_dir in autoconf $srcdir/autoconf; do
1487 if test -f $ac_dir/install-sh; then
1489 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 elif test -f $ac_dir/install.sh; then
1493 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 elif test -f $ac_dir/shtool; then
1497 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 if test -z "$ac_aux_dir"; then
1502 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1503 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1504 { (exit 1); exit 1; }; }
1506 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511 if test ${srcdir} != "."
1513 if test -f ${srcdir}/include/Config/config.h
1515 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1516 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1517 { (exit 1); exit 1; }; }
1521 for i in `ls ${srcdir}/projects`
1523 if test ${i} != "CVS"
1525 if test -f ${srcdir}/projects/${i}/configure
1529 subdirs="$subdirs projects/${i}"
1535 ac_config_headers="$ac_config_headers include/Config/config.h"
1537 ac_config_commands="$ac_config_commands Makefile"
1540 ac_config_commands="$ac_config_commands Makefile.common"
1543 ac_config_commands="$ac_config_commands lib/Makefile"
1546 ac_config_commands="$ac_config_commands runtime/Makefile"
1549 ac_config_commands="$ac_config_commands test/Makefile"
1552 ac_config_commands="$ac_config_commands test/Makefile.tests"
1555 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1558 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1561 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1564 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1567 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1570 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1573 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1576 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1579 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1582 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1585 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1588 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1591 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1594 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1597 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1600 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1603 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1606 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1609 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1612 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1615 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1618 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1621 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1624 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1627 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1630 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1633 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1636 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1639 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1642 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1645 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1648 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1651 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1654 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1657 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1660 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1663 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1666 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1669 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1672 ac_config_commands="$ac_config_commands tools/Makefile"
1675 ac_config_commands="$ac_config_commands utils/Makefile"
1678 ac_config_commands="$ac_config_commands projects/Makefile"
1682 # Find a good install program. We prefer a C program (faster),
1683 # so one script is as good as another. But avoid the broken or
1684 # incompatible versions:
1685 # SysV /etc/install, /usr/sbin/install
1686 # SunOS /usr/etc/install
1687 # IRIX /sbin/install
1689 # AmigaOS /C/install, which installs bootblocks on floppy discs
1690 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1691 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1692 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1693 # ./install, which can be erroneously created by make from ./install.sh.
1694 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1695 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1696 if test -z "$INSTALL"; then
1697 if test "${ac_cv_path_install+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 # Account for people who put trailing slashes in PATH elements.
1707 ./ | .// | /cC/* | \
1708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1711 # OSF1 and SCO ODT 3.0 have their own names for install.
1712 # Don't use installbsd from OSF since it installs stuff as root
1714 for ac_prog in ginstall scoinst install; do
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1717 if test $ac_prog = install &&
1718 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1719 # AIX install. It has an incompatible calling convention.
1721 elif test $ac_prog = install &&
1722 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723 # program-specific install script used by HP pwplus--don't use.
1726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1738 if test "${ac_cv_path_install+set}" = set; then
1739 INSTALL=$ac_cv_path_install
1741 # As a last resort, use the slow shell script. We don't cache a
1742 # path for INSTALL within a source directory, because that will
1743 # break other packages using the cache if that directory is
1744 # removed, or if the path is relative.
1745 INSTALL=$ac_install_sh
1748 echo "$as_me:$LINENO: result: $INSTALL" >&5
1749 echo "${ECHO_T}$INSTALL" >&6
1751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1752 # It thinks the first close brace ends the variable substitution.
1753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1760 # Make sure we can run config.sub.
1761 $ac_config_sub sun4 >/dev/null 2>&1 ||
1762 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1763 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1764 { (exit 1); exit 1; }; }
1766 echo "$as_me:$LINENO: checking build system type" >&5
1767 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1768 if test "${ac_cv_build+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 ac_cv_build_alias=$build_alias
1772 test -z "$ac_cv_build_alias" &&
1773 ac_cv_build_alias=`$ac_config_guess`
1774 test -z "$ac_cv_build_alias" &&
1775 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1776 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1777 { (exit 1); exit 1; }; }
1778 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1779 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1780 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1781 { (exit 1); exit 1; }; }
1784 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1785 echo "${ECHO_T}$ac_cv_build" >&6
1787 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1788 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1789 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1792 echo "$as_me:$LINENO: checking host system type" >&5
1793 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1794 if test "${ac_cv_host+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 ac_cv_host_alias=$host_alias
1798 test -z "$ac_cv_host_alias" &&
1799 ac_cv_host_alias=$ac_cv_build_alias
1800 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1801 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1802 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1803 { (exit 1); exit 1; }; }
1806 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1807 echo "${ECHO_T}$ac_cv_host" >&6
1809 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1810 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1811 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1814 echo "$as_me:$LINENO: checking target system type" >&5
1815 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1816 if test "${ac_cv_target+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 ac_cv_target_alias=$target_alias
1820 test "x$ac_cv_target_alias" = "x" &&
1821 ac_cv_target_alias=$ac_cv_host_alias
1822 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1823 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1824 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1825 { (exit 1); exit 1; }; }
1828 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1829 echo "${ECHO_T}$ac_cv_target" >&6
1830 target=$ac_cv_target
1831 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1832 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1833 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1836 # The aliases save the names the user supplied, while $host etc.
1837 # will get canonicalized.
1838 test -n "$target_alias" &&
1839 test "$program_prefix$program_suffix$program_transform_name" = \
1841 program_prefix=${target_alias}-
1847 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1849 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1857 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1859 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1875 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1884 sparc*-*) ARCH=Sparc
1887 powerpc*-*) ARCH=PowerPC
1896 ac_cpp='$CXXCPP $CPPFLAGS'
1897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1900 if test -n "$ac_tool_prefix"; then
1901 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CXX+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 if test -n "$CXX"; then
1911 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 if test -n "$CXX"; then
1931 echo "$as_me:$LINENO: result: $CXX" >&5
1932 echo "${ECHO_T}$CXX" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1938 test -n "$CXX" && break
1941 if test -z "$CXX"; then
1943 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1945 # Extract the first word of "$ac_prog", so it can be a program name with args.
1946 set dummy $ac_prog; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 if test -n "$ac_ct_CXX"; then
1953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CXX="$ac_prog"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1972 if test -n "$ac_ct_CXX"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1974 echo "${ECHO_T}$ac_ct_CXX" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1980 test -n "$ac_ct_CXX" && break
1982 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1988 # Provide some information about the compiler.
1989 echo "$as_me:$LINENO:" \
1990 "checking for C++ compiler version" >&5
1991 ac_compiler=`set X $ac_compile; echo $2`
1992 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1993 (eval $ac_compiler --version </dev/null >&5) 2>&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }
1997 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1998 (eval $ac_compiler -v </dev/null >&5) 2>&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }
2002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2003 (eval $ac_compiler -V </dev/null >&5) 2>&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }
2008 cat >conftest.$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2024 ac_clean_files_save=$ac_clean_files
2025 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2026 # Try to create an executable without -o first, disregard a.out.
2027 # It will help us diagnose broken compilers, and finding out an intuition
2029 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2030 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2031 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2032 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2033 (eval $ac_link_default) 2>&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; then
2037 # Find the output, starting from the most likely. This scheme is
2038 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2041 # Be careful to initialize this variable, since it used to be cached.
2042 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2044 # b.out is created by i960 compilers.
2045 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2047 test -f "$ac_file" || continue
2049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2052 # This is the source file.
2055 # We found the default executable, but exeext='' is most
2059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060 # FIXME: I believe we export ac_cv_exeext for Libtool,
2061 # but it would be cool to find out if it's true. Does anybody
2062 # maintain Libtool? --akim.
2070 echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2073 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: C++ compiler cannot create executables
2076 See \`config.log' for more details." >&2;}
2077 { (exit 77); exit 77; }; }
2080 ac_exeext=$ac_cv_exeext
2081 echo "$as_me:$LINENO: result: $ac_file" >&5
2082 echo "${ECHO_T}$ac_file" >&6
2084 # Check the compiler produces executables we can run. If not, either
2085 # the compiler is broken, or we cross compile.
2086 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2087 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2088 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2089 # If not cross compiling, check that we can run a simple program.
2090 if test "$cross_compiling" != yes; then
2091 if { ac_try='./$ac_file'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; }; then
2099 if test "$cross_compiling" = maybe; then
2102 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2103 If you meant to cross compile, use \`--host'.
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: cannot run C++ compiled programs.
2106 If you meant to cross compile, use \`--host'.
2107 See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2112 echo "$as_me:$LINENO: result: yes" >&5
2113 echo "${ECHO_T}yes" >&6
2115 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2116 ac_clean_files=$ac_clean_files_save
2117 # Check the compiler produces executables we can run. If not, either
2118 # the compiler is broken, or we cross compile.
2119 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2120 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2121 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2122 echo "${ECHO_T}$cross_compiling" >&6
2124 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2125 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2127 (eval $ac_link) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; then
2131 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2132 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2133 # work properly (i.e., refer to `conftest.exe'), while it won't with
2135 for ac_file in conftest.exe conftest conftest.*; do
2136 test -f "$ac_file" || continue
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2139 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2149 See \`config.log' for more details." >&2;}
2150 { (exit 1); exit 1; }; }
2153 rm -f conftest$ac_cv_exeext
2154 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2155 echo "${ECHO_T}$ac_cv_exeext" >&6
2157 rm -f conftest.$ac_ext
2158 EXEEXT=$ac_cv_exeext
2160 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2161 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2162 if test "${ac_cv_objext+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 cat >conftest.$ac_ext <<_ACEOF
2166 #line $LINENO "configure"
2169 cat confdefs.h >>conftest.$ac_ext
2170 cat >>conftest.$ac_ext <<_ACEOF
2171 /* end confdefs.h. */
2181 rm -f conftest.o conftest.obj
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
2187 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2198 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2201 See \`config.log' for more details." >&2;}
2202 { (exit 1); exit 1; }; }
2205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2207 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2208 echo "${ECHO_T}$ac_cv_objext" >&6
2209 OBJEXT=$ac_cv_objext
2211 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2212 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2213 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 cat >conftest.$ac_ext <<_ACEOF
2217 #line $LINENO "configure"
2220 cat confdefs.h >>conftest.$ac_ext
2221 cat >>conftest.$ac_ext <<_ACEOF
2222 /* end confdefs.h. */
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2254 rm -f conftest.$ac_objext conftest.$ac_ext
2255 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2258 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2259 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2260 GXX=`test $ac_compiler_gnu = yes && echo yes`
2261 ac_test_CXXFLAGS=${CXXFLAGS+set}
2262 ac_save_CXXFLAGS=$CXXFLAGS
2264 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2265 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2266 if test "${ac_cv_prog_cxx_g+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #line $LINENO "configure"
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -s conftest.$ac_objext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 ac_cv_prog_cxx_g=yes
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2304 rm -f conftest.$ac_objext conftest.$ac_ext
2306 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2308 if test "$ac_test_CXXFLAGS" = set; then
2309 CXXFLAGS=$ac_save_CXXFLAGS
2310 elif test $ac_cv_prog_cxx_g = yes; then
2311 if test "$GXX" = yes; then
2317 if test "$GXX" = yes; then
2323 for ac_declaration in \
2325 '#include <stdlib.h>' \
2326 'extern "C" void std::exit (int) throw (); using std::exit;' \
2327 'extern "C" void std::exit (int); using std::exit;' \
2328 'extern "C" void exit (int) throw ();' \
2329 'extern "C" void exit (int);' \
2332 cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2368 rm -f conftest.$ac_objext conftest.$ac_ext
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2403 rm -f conftest.$ac_objext conftest.$ac_ext
2406 if test -n "$ac_declaration"; then
2407 echo '#ifdef __cplusplus' >>confdefs.h
2408 echo $ac_declaration >>confdefs.h
2409 echo '#endif' >>confdefs.h
2413 ac_cpp='$CPP $CPPFLAGS'
2414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 if test -n "$CC"; then
2454 echo "$as_me:$LINENO: result: $CC" >&5
2455 echo "${ECHO_T}$CC" >&6
2457 echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2461 test -n "$CC" && break
2464 if test -z "$CC"; then
2468 # Extract the first word of "$ac_prog", so it can be a program name with args.
2469 set dummy $ac_prog; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 if test -n "$ac_ct_CC"; then
2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_ac_ct_CC="$ac_prog"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497 echo "${ECHO_T}$ac_ct_CC" >&6
2499 echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2503 test -n "$ac_ct_CC" && break
2510 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2511 See \`config.log' for more details." >&5
2512 echo "$as_me: error: no acceptable C compiler found in \$PATH
2513 See \`config.log' for more details." >&2;}
2514 { (exit 1); exit 1; }; }
2516 # Provide some information about the compiler.
2517 echo "$as_me:$LINENO:" \
2518 "checking for C compiler version" >&5
2519 ac_compiler=`set X $ac_compile; echo $2`
2520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2521 (eval $ac_compiler --version </dev/null >&5) 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2526 (eval $ac_compiler -v </dev/null >&5) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2531 (eval $ac_compiler -V </dev/null >&5) 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }
2536 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 cat >conftest.$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2579 rm -f conftest.$ac_objext conftest.$ac_ext
2580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2583 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2584 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2585 GCC=`test $ac_compiler_gnu = yes && echo yes`
2586 ac_test_CFLAGS=${CFLAGS+set}
2587 ac_save_CFLAGS=$CFLAGS
2589 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2590 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2591 if test "${ac_cv_prog_cc_g+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 cat >conftest.$ac_ext <<_ACEOF
2595 #line $LINENO "configure"
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2629 rm -f conftest.$ac_objext conftest.$ac_ext
2631 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2632 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2633 if test "$ac_test_CFLAGS" = set; then
2634 CFLAGS=$ac_save_CFLAGS
2635 elif test $ac_cv_prog_cc_g = yes; then
2636 if test "$GCC" = yes; then
2642 if test "$GCC" = yes; then
2648 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2649 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2650 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 ac_cv_prog_cc_stdc=no
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #line $LINENO "configure"
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2664 #include <sys/types.h>
2665 #include <sys/stat.h>
2666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2667 struct buf { int x; };
2668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669 static char *e (p, i)
2675 static char *f (char * (*g) (char **, int), char **p, ...)
2680 s = g (p, va_arg (v,int));
2684 int test (int i, double x);
2685 struct s1 {int (*f) (int a);};
2686 struct s2 {int (*f) (double a);};
2687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2693 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2698 # Don't try gcc -ansi; that turns off useful extensions and
2699 # breaks some systems' header files.
2700 # AIX -qlanglvl=ansi
2701 # Ultrix and OSF/1 -std1
2702 # HP-UX 10.20 and later -Ae
2703 # HP-UX older versions -Aa -D_HPUX_SOURCE
2704 # SVR4 -Xc -D__EXTENSIONS__
2705 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 ac_cv_prog_cc_stdc=$ac_arg
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f conftest.$ac_objext
2729 rm -f conftest.$ac_ext conftest.$ac_objext
2734 case "x$ac_cv_prog_cc_stdc" in
2736 echo "$as_me:$LINENO: result: none needed" >&5
2737 echo "${ECHO_T}none needed" >&6 ;;
2739 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2740 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2741 CC="$CC $ac_cv_prog_cc_stdc" ;;
2744 # Some people use a C++ compiler to compile C. Since we use `exit',
2745 # in C++ we need to declare it. In case someone uses the same compiler
2746 # for both compiling C and C++ we need to have the C++ compiler decide
2747 # the declaration of exit, since it's the most demanding environment.
2748 cat >conftest.$ac_ext <<_ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755 (eval $ac_compile) 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 for ac_declaration in \
2767 '#include <stdlib.h>' \
2768 'extern "C" void std::exit (int) throw (); using std::exit;' \
2769 'extern "C" void std::exit (int); using std::exit;' \
2770 'extern "C" void exit (int) throw ();' \
2771 'extern "C" void exit (int);' \
2774 cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2791 rm -f conftest.$ac_objext
2792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793 (eval $ac_compile) 2>&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f conftest.$ac_objext conftest.$ac_ext
2811 cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2845 rm -f conftest.$ac_objext conftest.$ac_ext
2848 if test -n "$ac_declaration"; then
2849 echo '#ifdef __cplusplus' >>confdefs.h
2850 echo $ac_declaration >>confdefs.h
2851 echo '#endif' >>confdefs.h
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f conftest.$ac_objext conftest.$ac_ext
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2872 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2873 # On Suns, sometimes $CPP names a directory.
2874 if test -n "$CPP" && test -d "$CPP"; then
2877 if test -z "$CPP"; then
2878 if test "${ac_cv_prog_CPP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 # Double quotes because CPP needs to be expanded
2882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2885 for ac_c_preproc_warn_flag in '' yes
2887 # Use a header file that comes with gcc, so configuring glibc
2888 # with a fresh cross-compiler works.
2889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2890 # <limits.h> exists even on freestanding compilers.
2891 # On the NeXT, cc -E runs the code through the compiler's parser,
2892 # not just through cpp. "Syntax error" is here to catch this case.
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line $LINENO "configure"
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2901 # include <limits.h>
2903 # include <assert.h>
2907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } >/dev/null; then
2915 if test -s conftest.err; then
2916 ac_cpp_err=$ac_c_preproc_warn_flag
2923 if test -z "$ac_cpp_err"; then
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 # Broken: fails on valid input.
2932 rm -f conftest.err conftest.$ac_ext
2934 # OK, works on sane cases. Now check whether non-existent headers
2935 # can be detected and how.
2936 cat >conftest.$ac_ext <<_ACEOF
2937 #line $LINENO "configure"
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2943 #include <ac_nonexistent.h>
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev/null; then
2953 if test -s conftest.err; then
2954 ac_cpp_err=$ac_c_preproc_warn_flag
2961 if test -z "$ac_cpp_err"; then
2962 # Broken: success on invalid input.
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 # Passes both tests.
2972 rm -f conftest.err conftest.$ac_ext
2975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2976 rm -f conftest.err conftest.$ac_ext
2977 if $ac_preproc_ok; then
2989 echo "$as_me:$LINENO: result: $CPP" >&5
2990 echo "${ECHO_T}$CPP" >&6
2992 for ac_c_preproc_warn_flag in '' yes
2994 # Use a header file that comes with gcc, so configuring glibc
2995 # with a fresh cross-compiler works.
2996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2997 # <limits.h> exists even on freestanding compilers.
2998 # On the NeXT, cc -E runs the code through the compiler's parser,
2999 # not just through cpp. "Syntax error" is here to catch this case.
3000 cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3008 # include <limits.h>
3010 # include <assert.h>
3014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017 grep -v '^ *+' conftest.er1 >conftest.err
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev/null; then
3022 if test -s conftest.err; then
3023 ac_cpp_err=$ac_c_preproc_warn_flag
3030 if test -z "$ac_cpp_err"; then
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 # Broken: fails on valid input.
3039 rm -f conftest.err conftest.$ac_ext
3041 # OK, works on sane cases. Now check whether non-existent headers
3042 # can be detected and how.
3043 cat >conftest.$ac_ext <<_ACEOF
3044 #line $LINENO "configure"
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3050 #include <ac_nonexistent.h>
3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } >/dev/null; then
3060 if test -s conftest.err; then
3061 ac_cpp_err=$ac_c_preproc_warn_flag
3068 if test -z "$ac_cpp_err"; then
3069 # Broken: success on invalid input.
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 # Passes both tests.
3079 rm -f conftest.err conftest.$ac_ext
3082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083 rm -f conftest.err conftest.$ac_ext
3084 if $ac_preproc_ok; then
3087 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 if test "$GCC" != "yes"
3103 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3104 echo "$as_me: error: gcc required but not found" >&2;}
3105 { (exit 1); exit 1; }; }
3107 if test "$GXX" != "yes"
3109 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3110 echo "$as_me: error: g++ required but not found" >&2;}
3111 { (exit 1); exit 1; }; }
3114 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3115 if test "$gccmajor" -lt "3"
3117 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3118 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3119 { (exit 1); exit 1; }; }
3122 echo "$as_me:$LINENO: checking for GNU make" >&5
3123 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3124 if test "${_cv_gnu_make_command+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 _cv_gnu_make_command='' ;
3128 for a in "$MAKE" make gmake gnumake ; do
3129 if test -z "$a" ; then continue ; fi ;
3130 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3131 _cv_gnu_make_command=$a ;
3137 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3138 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3139 if test "x$_cv_gnu_make_command" != "x" ; then
3143 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3144 echo "${ECHO_T}\"Not found\"" >&6;
3148 if test -z "$_cv_gnu_make_command"
3150 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3151 echo "$as_me: error: GNU Make required but not found" >&2;}
3152 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: checking " >&5
3157 echo $ECHO_N "checking ... $ECHO_C" >&6
3158 if test "${ac_cv_has_flex+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 for ac_prog in flex lex
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 echo "$as_me:$LINENO: checking for $ac_word" >&5
3166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167 if test "${ac_cv_prog_LEX+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 if test -n "$LEX"; then
3171 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_LEX="$ac_prog"
3181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 if test -n "$LEX"; then
3191 echo "$as_me:$LINENO: result: $LEX" >&5
3192 echo "${ECHO_T}$LEX" >&6
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3198 test -n "$LEX" && break
3200 test -n "$LEX" || LEX=":"
3202 if test -z "$LEXLIB"
3204 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3205 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3206 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_check_lib_save_LIBS=$LIBS
3211 cat >conftest.$ac_ext <<_ACEOF
3212 #line $LINENO "configure"
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3219 /* Override any gcc2 internal prototype to avoid an error. */
3223 /* We use char because int might match the return type of a gcc2
3224 builtin and then its argument prototype would still apply. */
3234 rm -f conftest.$ac_objext conftest$ac_exeext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3236 (eval $ac_link) 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -s conftest$ac_exeext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 ac_cv_lib_fl_yywrap=yes
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3251 ac_cv_lib_fl_yywrap=no
3253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3254 LIBS=$ac_check_lib_save_LIBS
3256 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3257 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3258 if test $ac_cv_lib_fl_yywrap = yes; then
3261 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3262 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3263 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 ac_check_lib_save_LIBS=$LIBS
3268 cat >conftest.$ac_ext <<_ACEOF
3269 #line $LINENO "configure"
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3276 /* Override any gcc2 internal prototype to avoid an error. */
3280 /* We use char because int might match the return type of a gcc2
3281 builtin and then its argument prototype would still apply. */
3291 rm -f conftest.$ac_objext conftest$ac_exeext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3293 (eval $ac_link) 2>&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -s conftest$ac_exeext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_cv_lib_l_yywrap=yes
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 ac_cv_lib_l_yywrap=no
3310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3311 LIBS=$ac_check_lib_save_LIBS
3313 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3314 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3315 if test $ac_cv_lib_l_yywrap = yes; then
3323 if test "x$LEX" != "x:"; then
3324 echo "$as_me:$LINENO: checking lex output file root" >&5
3325 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3326 if test "${ac_cv_prog_lex_root+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 # The minimal lex program is just a single line: %%. But some broken lexes
3330 # (Solaris, I think it was) want two %% lines, so accommodate them.
3331 cat >conftest.l <<_ACEOF
3335 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3336 (eval $LEX conftest.l) 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }
3340 if test -f lex.yy.c; then
3341 ac_cv_prog_lex_root=lex.yy
3342 elif test -f lexyy.c; then
3343 ac_cv_prog_lex_root=lexyy
3345 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3346 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3347 { (exit 1); exit 1; }; }
3350 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3351 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3353 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3355 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3356 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3357 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 # POSIX says lex can declare yytext either as a pointer or an array; the
3361 # default is implementation-dependent. Figure out which it is, since
3362 # not all implementations provide the %pointer and %array declarations.
3363 ac_cv_prog_lex_yytext_pointer=no
3364 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3366 LIBS="$LIBS $LEXLIB"
3367 cat >conftest.$ac_ext <<_ACEOF
3368 `cat $LEX_OUTPUT_ROOT.c`
3370 rm -f conftest.$ac_objext conftest$ac_exeext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3372 (eval $ac_link) 2>&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -s conftest$ac_exeext'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; }; then
3382 ac_cv_prog_lex_yytext_pointer=yes
3384 echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390 rm -f "${LEX_OUTPUT_ROOT}.c"
3393 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3394 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3395 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3397 cat >>confdefs.h <<\_ACEOF
3398 #define YYTEXT_POINTER 1
3406 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3407 echo "${ECHO_T}$ac_cv_has_flex" >&6
3408 if test "$LEX" != "flex"; then
3409 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3410 echo "$as_me: error: flex not found but required" >&2;}
3411 { (exit 1); exit 1; }; }
3414 echo "$as_me:$LINENO: checking " >&5
3415 echo $ECHO_N "checking ... $ECHO_C" >&6
3416 if test "${ac_cv_has_bison+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 for ac_prog in 'bison -y' byacc
3421 # Extract the first word of "$ac_prog", so it can be a program name with args.
3422 set dummy $ac_prog; ac_word=$2
3423 echo "$as_me:$LINENO: checking for $ac_word" >&5
3424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425 if test "${ac_cv_prog_YACC+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 if test -n "$YACC"; then
3429 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_YACC="$ac_prog"
3439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 YACC=$ac_cv_prog_YACC
3448 if test -n "$YACC"; then
3449 echo "$as_me:$LINENO: result: $YACC" >&5
3450 echo "${ECHO_T}$YACC" >&6
3452 echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3456 test -n "$YACC" && break
3458 test -n "$YACC" || YACC="yacc"
3462 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3463 echo "${ECHO_T}$ac_cv_has_bison" >&6
3464 if test "$YACC" != "bison -y"; then
3465 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3466 echo "$as_me: error: bison not found but required" >&2;}
3467 { (exit 1); exit 1; }; }
3473 # Check whether --enable-shared or --disable-shared was given.
3474 if test "${enable_shared+set}" = set; then
3475 enableval="$enable_shared"
3476 p=${PACKAGE-default}
3478 yes) enable_shared=yes ;;
3479 no) enable_shared=no ;;
3482 # Look at the argument we got. We use all the common list separators.
3483 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3484 for pkg in $enableval; do
3486 if test "X$pkg" = "X$p"; then
3497 # Check whether --enable-static or --disable-static was given.
3498 if test "${enable_static+set}" = set; then
3499 enableval="$enable_static"
3500 p=${PACKAGE-default}
3502 yes) enable_static=yes ;;
3503 no) enable_static=no ;;
3506 # Look at the argument we got. We use all the common list separators.
3507 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3508 for pkg in $enableval; do
3510 if test "X$pkg" = "X$p"; then
3521 # Check whether --enable-fast-install or --disable-fast-install was given.
3522 if test "${enable_fast_install+set}" = set; then
3523 enableval="$enable_fast_install"
3524 p=${PACKAGE-default}
3526 yes) enable_fast_install=yes ;;
3527 no) enable_fast_install=no ;;
3529 enable_fast_install=no
3530 # Look at the argument we got. We use all the common list separators.
3531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3532 for pkg in $enableval; do
3534 if test "X$pkg" = "X$p"; then
3535 enable_fast_install=yes
3542 enable_fast_install=yes
3545 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3546 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3547 if test "${lt_cv_path_SED+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 # Loop through the user's path and test for sed and gsed.
3551 # Then use that list of sed's as ones to test for truncation.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 for lt_ac_prog in sed gsed; do
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3560 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3567 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3568 # along with /bin/sed that truncates output.
3569 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3570 test ! -f $lt_ac_sed && break
3571 cat /dev/null > conftest.in
3573 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3574 # Check for GNU sed and select it if it is found.
3575 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3576 lt_cv_path_SED=$lt_ac_sed
3580 cat conftest.in conftest.in >conftest.tmp
3581 mv conftest.tmp conftest.in
3582 cp conftest.in conftest.nl
3584 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3585 cmp -s conftest.out conftest.nl || break
3586 # 10000 chars as input seems more than enough
3587 test $lt_ac_count -gt 10 && break
3588 lt_ac_count=`expr $lt_ac_count + 1`
3589 if test $lt_ac_count -gt $lt_ac_max; then
3590 lt_ac_max=$lt_ac_count
3591 lt_cv_path_SED=$lt_ac_sed
3599 echo "$as_me:$LINENO: result: $SED" >&5
3600 echo "${ECHO_T}$SED" >&6
3602 echo "$as_me:$LINENO: checking for egrep" >&5
3603 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3604 if test "${ac_cv_prog_egrep+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3608 then ac_cv_prog_egrep='grep -E'
3609 else ac_cv_prog_egrep='egrep'
3612 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3613 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3614 EGREP=$ac_cv_prog_egrep
3618 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3619 if test "${with_gnu_ld+set}" = set; then
3620 withval="$with_gnu_ld"
3621 test "$withval" = no || with_gnu_ld=yes
3626 if test "$GCC" = yes; then
3627 # Check if gcc -print-prog-name=ld gives a path.
3628 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3629 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3632 # gcc leaves a trailing carriage return which upsets mingw
3633 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3635 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3638 # Accept absolute paths.
3640 re_direlt='/[^/][^/]*/\.\./'
3641 # Canonicalize the path of ld
3642 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3643 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3644 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3646 test -z "$LD" && LD="$ac_prog"
3649 # If it fails, then pretend we aren't using GCC.
3653 # If it is relative, then search for the first ld in PATH.
3657 elif test "$with_gnu_ld" = yes; then
3658 echo "$as_me:$LINENO: checking for GNU ld" >&5
3659 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3661 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3662 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3664 if test "${lt_cv_path_LD+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 if test -z "$LD"; then
3668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3669 for ac_dir in $PATH; do
3671 test -z "$ac_dir" && ac_dir=.
3672 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3673 lt_cv_path_LD="$ac_dir/$ac_prog"
3674 # Check to see if the program is GNU ld. I'd rather use --version,
3675 # but apparently some GNU ld's only accept -v.
3676 # Break only if it was the GNU/non-GNU ld that we prefer.
3677 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3678 *GNU* | *'with BFD'*)
3679 test "$with_gnu_ld" != no && break
3682 test "$with_gnu_ld" != yes && break
3689 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3694 if test -n "$LD"; then
3695 echo "$as_me:$LINENO: result: $LD" >&5
3696 echo "${ECHO_T}$LD" >&6
3698 echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3701 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3702 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3703 { (exit 1); exit 1; }; }
3704 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3705 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3706 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3710 case `"$LD" -v 2>&1 </dev/null` in
3711 *GNU* | *'with BFD'*)
3712 lt_cv_prog_gnu_ld=yes
3715 lt_cv_prog_gnu_ld=no
3719 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3720 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3721 with_gnu_ld=$lt_cv_prog_gnu_ld
3724 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3725 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3726 if test "${lt_cv_ld_reload_flag+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 lt_cv_ld_reload_flag='-r'
3731 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3732 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3733 reload_flag=$lt_cv_ld_reload_flag
3734 case $reload_flag in
3736 *) reload_flag=" $reload_flag" ;;
3738 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3740 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3741 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3742 if test "${lt_cv_path_NM+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 if test -n "$NM"; then
3746 # Let the user override the test.
3749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3750 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3752 test -z "$ac_dir" && ac_dir=.
3753 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3754 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3755 # Check to see if the nm accepts a BSD-compat flag.
3756 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3757 # nm: unknown option "B" ignored
3758 # Tru64's nm complains that /dev/null is an invalid object file
3759 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3760 */dev/null* | *'Invalid file or object type'*)
3761 lt_cv_path_NM="$tmp_nm -B"
3765 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3767 lt_cv_path_NM="$tmp_nm -p"
3771 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3772 continue # so that we can try to find one that supports BSD flags
3779 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3782 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3783 echo "${ECHO_T}$lt_cv_path_NM" >&6
3786 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3787 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3789 if test "$LN_S" = "ln -s"; then
3790 echo "$as_me:$LINENO: result: yes" >&5
3791 echo "${ECHO_T}yes" >&6
3793 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3794 echo "${ECHO_T}no, using $LN_S" >&6
3797 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3798 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3799 if test "${lt_cv_deplibs_check_method+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 lt_cv_file_magic_cmd='$MAGIC_CMD'
3803 lt_cv_file_magic_test_file=
3804 lt_cv_deplibs_check_method='unknown'
3805 # Need to set the preceding variable on all platforms that support
3806 # interlibrary dependencies.
3807 # 'none' -- dependencies not supported.
3808 # `unknown' -- same as none, but documents that we really don't know.
3809 # 'pass_all' -- all dependencies passed with no checks.
3810 # 'test_compile' -- check by making test program.
3811 # 'file_magic [[regex]]' -- check by looking for files in library path
3812 # which responds to the $file_magic_cmd with a given extended regex.
3813 # If you have `file' or equivalent on your system and you're not sure
3814 # whether `pass_all' will *always* work, you probably want this one.
3818 lt_cv_deplibs_check_method=pass_all
3822 lt_cv_deplibs_check_method=pass_all
3826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3827 lt_cv_file_magic_cmd='/usr/bin/file -L'
3828 lt_cv_file_magic_test_file=/shlib/libc.so
3831 cygwin* | mingw* | pw32*)
3832 # win32_libid is a shell function defined in ltmain.sh
3833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3834 lt_cv_file_magic_cmd='win32_libid'
3837 darwin* | rhapsody*)
3838 # this will be overwritten by pass_all, but leave it in just in case
3839 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3840 lt_cv_file_magic_cmd='/usr/bin/file -L'
3842 rhapsody* | darwin1.[012])
3843 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3846 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3849 lt_cv_deplibs_check_method=pass_all
3853 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3856 # Not sure whether the presence of OpenBSD here was a mistake.
3857 # Let's accept both of them until this is cleared up.
3858 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3859 lt_cv_file_magic_cmd=/usr/bin/file
3860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3864 lt_cv_deplibs_check_method=pass_all
3869 lt_cv_deplibs_check_method=pass_all
3872 hpux10.20* | hpux11*)
3873 lt_cv_file_magic_cmd=/usr/bin/file
3876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3877 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3880 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]'
3881 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3884 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3885 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3890 irix5* | irix6* | nonstopux*)
3892 irix5* | nonstopux*)
3893 # this will be overridden with pass_all, but let us keep it just in case
3894 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3898 *-32|*"-32 ") libmagic=32-bit;;
3899 *-n32|*"-n32 ") libmagic=N32;;
3900 *-64|*"-64 ") libmagic=64-bit;;
3901 *) libmagic=never-match;;
3903 # this will be overridden with pass_all, but let us keep it just in case
3904 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3907 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3908 lt_cv_deplibs_check_method=pass_all
3911 # This must be Linux ELF.
3914 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3915 lt_cv_deplibs_check_method=pass_all ;;
3917 # glibc up to 2.1.1 does not perform some relocations on ARM
3918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3920 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3924 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3933 lt_cv_file_magic_cmd=/usr/bin/file
3934 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3938 lt_cv_deplibs_check_method=unknown
3942 lt_cv_file_magic_cmd=/usr/bin/file
3943 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3947 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3951 osf3* | osf4* | osf5*)
3952 # this will be overridden with pass_all, but let us keep it just in case
3953 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3954 lt_cv_file_magic_test_file=/shlib/libc.so
3955 lt_cv_deplibs_check_method=pass_all
3959 lt_cv_deplibs_check_method=pass_all
3963 lt_cv_deplibs_check_method=pass_all
3964 lt_cv_file_magic_test_file=/lib/libc.so
3967 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3968 case $host_vendor in
3970 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]'
3971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3974 lt_cv_deplibs_check_method=pass_all
3977 lt_cv_file_magic_cmd='/bin/file'
3978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3981 lt_cv_file_magic_cmd='/bin/file'
3982 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3983 lt_cv_file_magic_test_file=/lib/libc.so
3986 lt_cv_deplibs_check_method=pass_all
3991 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3992 lt_cv_deplibs_check_method=pass_all
3997 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3998 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3999 file_magic_cmd=$lt_cv_file_magic_cmd
4000 deplibs_check_method=$lt_cv_deplibs_check_method
4001 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4006 # If no C compiler was specified, use CC.
4009 # Allow CC to be a program name with arguments.
4012 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4013 if test "${enable_libtool_lock+set}" = set; then
4014 enableval="$enable_libtool_lock"
4017 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4019 # Some flags need to be propagated to the compiler or linker for good
4023 # Find out which ABI we are using.
4024 echo 'int i;' > conftest.$ac_ext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026 (eval $ac_compile) 2>&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; then
4030 case `/usr/bin/file conftest.$ac_objext` in
4042 # Find out which ABI we are using.
4043 echo '#line 4043 "configure"' > conftest.$ac_ext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; then
4049 if test "$lt_cv_prog_gnu_ld" = yes; then
4050 case `/usr/bin/file conftest.$ac_objext` in
4052 LD="${LD-ld} -melf32bsmip"
4055 LD="${LD-ld} -melf32bmipn32"
4058 LD="${LD-ld} -melf64bmip"
4062 case `/usr/bin/file conftest.$ac_objext` in
4078 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4079 # Find out which ABI we are using.
4080 echo 'int i;' > conftest.$ac_ext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; then
4086 case "`/usr/bin/file conftest.o`" in
4090 LD="${LD-ld} -m elf_i386"
4093 LD="${LD-ld} -m elf32ppclinux"
4096 LD="${LD-ld} -m elf_s390"
4099 LD="${LD-ld} -m elf32_sparc"
4106 LD="${LD-ld} -m elf_x86_64"
4108 ppc*-*linux*|powerpc*-*linux*)
4109 LD="${LD-ld} -m elf64ppc"
4112 LD="${LD-ld} -m elf64_s390"
4115 LD="${LD-ld} -m elf64_sparc"
4125 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4126 SAVE_CFLAGS="$CFLAGS"
4127 CFLAGS="$CFLAGS -belf"
4128 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4129 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4130 if test "${lt_cv_cc_needs_belf+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 cat >conftest.$ac_ext <<_ACEOF
4140 #line $LINENO "configure"
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4155 rm -f conftest.$ac_objext conftest$ac_exeext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4157 (eval $ac_link) 2>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -s conftest$ac_exeext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 lt_cv_cc_needs_belf=yes
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 lt_cv_cc_needs_belf=no
4174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4183 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4184 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4185 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4186 CFLAGS="$SAVE_CFLAGS"
4192 need_locks="$enable_libtool_lock"
4196 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4198 if test "${ac_cv_header_stdc+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 cat >conftest.$ac_ext <<_ACEOF
4202 #line $LINENO "configure"
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4221 rm -f conftest.$ac_objext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -s conftest.$ac_objext'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4233 ac_cv_header_stdc=yes
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4238 ac_cv_header_stdc=no
4240 rm -f conftest.$ac_objext conftest.$ac_ext
4242 if test $ac_cv_header_stdc = yes; then
4243 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4244 cat >conftest.$ac_ext <<_ACEOF
4245 #line $LINENO "configure"
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4255 $EGREP "memchr" >/dev/null 2>&1; then
4258 ac_cv_header_stdc=no
4264 if test $ac_cv_header_stdc = yes; then
4265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4266 cat >conftest.$ac_ext <<_ACEOF
4267 #line $LINENO "configure"
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4277 $EGREP "free" >/dev/null 2>&1; then
4280 ac_cv_header_stdc=no
4286 if test $ac_cv_header_stdc = yes; then
4287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4288 if test "$cross_compiling" = yes; then
4291 cat >conftest.$ac_ext <<_ACEOF
4292 #line $LINENO "configure"
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4299 #if ((' ' & 0x0FF) == 0x020)
4300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4303 # define ISLOWER(c) \
4304 (('a' <= (c) && (c) <= 'i') \
4305 || ('j' <= (c) && (c) <= 'r') \
4306 || ('s' <= (c) && (c) <= 'z'))
4307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4315 for (i = 0; i < 256; i++)
4316 if (XOR (islower (i), ISLOWER (i))
4317 || toupper (i) != TOUPPER (i))
4322 rm -f conftest$ac_exeext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4324 (eval $ac_link) 2>&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4335 echo "$as_me: program exited with status $ac_status" >&5
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4340 ac_cv_header_stdc=no
4342 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4347 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4348 if test $ac_cv_header_stdc = yes; then
4350 cat >>confdefs.h <<\_ACEOF
4351 #define STDC_HEADERS 1
4356 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4367 inttypes.h stdint.h unistd.h
4369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370 echo "$as_me:$LINENO: checking for $ac_header" >&5
4371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 cat >conftest.$ac_ext <<_ACEOF
4376 #line $LINENO "configure"
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 $ac_includes_default
4384 #include <$ac_header>
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 eval "$as_ac_Header=yes"
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 eval "$as_ac_Header=no"
4405 rm -f conftest.$ac_objext conftest.$ac_ext
4407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4410 cat >>confdefs.h <<_ACEOF
4411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4420 for ac_header in dlfcn.h
4422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4424 echo "$as_me:$LINENO: checking for $ac_header" >&5
4425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4432 # Is the header compilable?
4433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4435 cat >conftest.$ac_ext <<_ACEOF
4436 #line $LINENO "configure"
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 $ac_includes_default
4443 #include <$ac_header>
4445 rm -f conftest.$ac_objext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447 (eval $ac_compile) 2>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 ac_header_compiler=yes
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4462 ac_header_compiler=no
4464 rm -f conftest.$ac_objext conftest.$ac_ext
4465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4466 echo "${ECHO_T}$ac_header_compiler" >&6
4468 # Is the header present?
4469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4471 cat >conftest.$ac_ext <<_ACEOF
4472 #line $LINENO "configure"
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 #include <$ac_header>
4480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4483 grep -v '^ *+' conftest.er1 >conftest.err
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } >/dev/null; then
4488 if test -s conftest.err; then
4489 ac_cpp_err=$ac_c_preproc_warn_flag
4496 if test -z "$ac_cpp_err"; then
4497 ac_header_preproc=yes
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 ac_header_preproc=no
4504 rm -f conftest.err conftest.$ac_ext
4505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4506 echo "${ECHO_T}$ac_header_preproc" >&6
4508 # So? What about this header?
4509 case $ac_header_compiler:$ac_header_preproc in
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4517 ## ------------------------------------ ##
4518 ## Report this to bug-autoconf@gnu.org. ##
4519 ## ------------------------------------ ##
4522 sed "s/^/$as_me: WARNING: /" >&2
4525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4533 ## ------------------------------------ ##
4534 ## Report this to bug-autoconf@gnu.org. ##
4535 ## ------------------------------------ ##
4538 sed "s/^/$as_me: WARNING: /" >&2
4541 echo "$as_me:$LINENO: checking for $ac_header" >&5
4542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 eval "$as_ac_Header=$ac_header_preproc"
4548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4553 cat >>confdefs.h <<_ACEOF
4554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4562 ac_cpp='$CXXCPP $CPPFLAGS'
4563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4566 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4567 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4568 if test -z "$CXXCPP"; then
4569 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 # Double quotes because CXXCPP needs to be expanded
4573 for CXXCPP in "$CXX -E" "/lib/cpp"
4576 for ac_cxx_preproc_warn_flag in '' yes
4578 # Use a header file that comes with gcc, so configuring glibc
4579 # with a fresh cross-compiler works.
4580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581 # <limits.h> exists even on freestanding compilers.
4582 # On the NeXT, cc -E runs the code through the compiler's parser,
4583 # not just through cpp. "Syntax error" is here to catch this case.
4584 cat >conftest.$ac_ext <<_ACEOF
4585 #line $LINENO "configure"
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4592 # include <limits.h>
4594 # include <assert.h>
4598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } >/dev/null; then
4606 if test -s conftest.err; then
4607 ac_cpp_err=$ac_cxx_preproc_warn_flag
4614 if test -z "$ac_cpp_err"; then
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 # Broken: fails on valid input.
4623 rm -f conftest.err conftest.$ac_ext
4625 # OK, works on sane cases. Now check whether non-existent headers
4626 # can be detected and how.
4627 cat >conftest.$ac_ext <<_ACEOF
4628 #line $LINENO "configure"
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 #include <ac_nonexistent.h>
4636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4639 grep -v '^ *+' conftest.er1 >conftest.err
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } >/dev/null; then
4644 if test -s conftest.err; then
4645 ac_cpp_err=$ac_cxx_preproc_warn_flag
4652 if test -z "$ac_cpp_err"; then
4653 # Broken: success on invalid input.
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4659 # Passes both tests.
4663 rm -f conftest.err conftest.$ac_ext
4666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4667 rm -f conftest.err conftest.$ac_ext
4668 if $ac_preproc_ok; then
4673 ac_cv_prog_CXXCPP=$CXXCPP
4676 CXXCPP=$ac_cv_prog_CXXCPP
4678 ac_cv_prog_CXXCPP=$CXXCPP
4680 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4681 echo "${ECHO_T}$CXXCPP" >&6
4683 for ac_cxx_preproc_warn_flag in '' yes
4685 # Use a header file that comes with gcc, so configuring glibc
4686 # with a fresh cross-compiler works.
4687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4688 # <limits.h> exists even on freestanding compilers.
4689 # On the NeXT, cc -E runs the code through the compiler's parser,
4690 # not just through cpp. "Syntax error" is here to catch this case.
4691 cat >conftest.$ac_ext <<_ACEOF
4692 #line $LINENO "configure"
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4699 # include <limits.h>
4701 # include <assert.h>
4705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4708 grep -v '^ *+' conftest.er1 >conftest.err
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } >/dev/null; then
4713 if test -s conftest.err; then
4714 ac_cpp_err=$ac_cxx_preproc_warn_flag
4721 if test -z "$ac_cpp_err"; then
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 # Broken: fails on valid input.
4730 rm -f conftest.err conftest.$ac_ext
4732 # OK, works on sane cases. Now check whether non-existent headers
4733 # can be detected and how.
4734 cat >conftest.$ac_ext <<_ACEOF
4735 #line $LINENO "configure"
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4741 #include <ac_nonexistent.h>
4743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4746 grep -v '^ *+' conftest.er1 >conftest.err
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } >/dev/null; then
4751 if test -s conftest.err; then
4752 ac_cpp_err=$ac_cxx_preproc_warn_flag
4759 if test -z "$ac_cpp_err"; then
4760 # Broken: success on invalid input.
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 # Passes both tests.
4770 rm -f conftest.err conftest.$ac_ext
4773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4774 rm -f conftest.err conftest.$ac_ext
4775 if $ac_preproc_ok; then
4778 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4779 See \`config.log' for more details." >&5
4780 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4781 See \`config.log' for more details." >&2;}
4782 { (exit 1); exit 1; }; }
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4793 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4794 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4796 if test -n "$ac_tool_prefix"; then
4797 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4801 echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803 if test "${ac_cv_prog_F77+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 if test -n "$F77"; then
4807 ac_cv_prog_F77="$F77" # Let the user override the test.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 if test -n "$F77"; then
4827 echo "$as_me:$LINENO: result: $F77" >&5
4828 echo "${ECHO_T}$F77" >&6
4830 echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6
4834 test -n "$F77" && break
4837 if test -z "$F77"; then
4839 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 if test -n "$ac_ct_F77"; then
4849 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_F77="$ac_prog"
4859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4868 if test -n "$ac_ct_F77"; then
4869 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4870 echo "${ECHO_T}$ac_ct_F77" >&6
4872 echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4876 test -n "$ac_ct_F77" && break
4883 # Provide some information about the compiler.
4884 echo "$as_me:4884:" \
4885 "checking for Fortran 77 compiler version" >&5
4886 ac_compiler=`set X $ac_compile; echo $2`
4887 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4888 (eval $ac_compiler --version </dev/null >&5) 2>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }
4892 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4893 (eval $ac_compiler -v </dev/null >&5) 2>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }
4897 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4898 (eval $ac_compiler -V </dev/null >&5) 2>&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }
4903 # If we don't use `.F' as extension, the preprocessor is not run on the
4907 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4908 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4909 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 cat >conftest.$ac_ext <<_ACEOF
4920 rm -f conftest.$ac_objext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try='test -s conftest.$ac_objext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4939 rm -f conftest.$ac_objext conftest.$ac_ext
4940 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4943 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4944 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4946 G77=`test $ac_compiler_gnu = yes && echo yes`
4947 ac_test_FFLAGS=${FFLAGS+set}
4948 ac_save_FFLAGS=$FFLAGS
4950 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4951 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4952 if test "${ac_cv_prog_f77_g+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 cat >conftest.$ac_ext <<_ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 ac_cv_prog_f77_g=yes
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4980 rm -f conftest.$ac_objext conftest.$ac_ext
4983 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4984 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4985 if test "$ac_test_FFLAGS" = set; then
4986 FFLAGS=$ac_save_FFLAGS
4987 elif test $ac_cv_prog_f77_g = yes; then
4988 if test "$G77" = yes; then
4994 if test "$G77" = yes; then
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5010 # find the maximum length of command line arguments
5011 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5012 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5013 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 # On DJGPP, this test can blow up pretty badly due to problems in libc
5022 # (any single argument exceeding 2000 bytes causes a buffer overrun
5023 # during glob expansion). Even if it were fixed, the result of this
5024 # check would be larger than it should be.
5025 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5029 # Under GNU Hurd, this test is not required because there is
5030 # no limit to the length of command line arguments.
5031 # Libtool will interpret -1 as no limit whatsoever
5032 lt_cv_sys_max_cmd_len=-1;
5036 # On Win9x/ME, this test blows up -- it succeeds, but takes
5037 # about 5 minutes as the teststring grows exponentially.
5038 # Worse, since 9x/ME are not pre-emptively multitasking,
5039 # you end up with a "frozen" computer, even though with patience
5040 # the test eventually succeeds (with a max line length of 256k).
5041 # Instead, let's just punt: use the minimum linelength reported by
5042 # all of the supported platforms: 8192 (on NT/2K/XP).
5043 lt_cv_sys_max_cmd_len=8192;
5047 # If test is not a shell built-in, we'll probably end up computing a
5048 # maximum length that is only half of the actual maximum length, but
5050 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5051 = "XX$testring") >/dev/null 2>&1 &&
5052 new_result=`expr "X$testring" : ".*" 2>&1` &&
5053 lt_cv_sys_max_cmd_len=$new_result &&
5054 test $i != 17 # 1/2 MB should be enough
5057 testring=$testring$testring
5060 # Add a significant safety factor because C++ compilers can tack on massive
5061 # amounts of additional arguments before passing them to the linker.
5062 # It appears as though 1/2 is a usable value.
5063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5069 if test -n $lt_cv_sys_max_cmd_len ; then
5070 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5071 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5073 echo "$as_me:$LINENO: result: none" >&5
5074 echo "${ECHO_T}none" >&6
5080 # Check for command to grab the raw symbol name followed by C symbol from nm.
5081 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5082 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5083 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 # These are sane defaults that work on at least a few old systems.
5088 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5090 # Character class describing NM global symbol codes.
5091 symcode='[BCDEGRST]'
5093 # Regexp to match symbols that can be accessed directly from C.
5094 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5096 # Transform the above into a raw symbol and a C symbol.
5097 symxfrm='\1 \2\3 \3'
5099 # Transform an extracted symbol line into a proper C declaration
5100 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5102 # Transform an extracted symbol line into symbol name and symbol address
5103 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'"
5105 # Define system-specific variables.
5110 cygwin* | mingw* | pw32*)
5111 symcode='[ABCDGISTW]'
5113 hpux*) # Its linker distinguishes data from code symbols
5114 if test "$host_cpu" = ia64; then
5115 symcode='[ABCDEGRST]'
5117 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5118 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'"
5121 symcode='[BCDEGRST]'
5124 symcode='[BCDEGQRST]'
5134 # Handle CRLF in mingw tool chain
5138 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5142 # If we're using GNU nm, then use its standard symbol codes.
5143 case `$NM -V 2>&1` in
5144 *GNU* | *'with BFD'*)
5145 symcode='[ABCDGISTW]' ;;
5148 # Try without a prefix undercore, then with it.
5149 for ac_symprfx in "" "_"; do
5151 # Write the raw and C identifiers.
5152 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5154 # Check to see that the pipe works correctly.
5158 cat > conftest.$ac_ext <<EOF
5163 void nm_test_func(){}
5167 int main(){nm_test_var='a';nm_test_func();return(0);}
5170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171 (eval $ac_compile) 2>&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; then
5175 # Now try to grab the symbols.
5177 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5178 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } && test -s "$nlist"; then
5182 # Try sorting and uniquifying the output.
5183 if sort "$nlist" | uniq > "$nlist"T; then
5184 mv -f "$nlist"T "$nlist"
5189 # Make sure that we snagged all the symbols we need.
5190 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5191 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5192 cat <<EOF > conftest.$ac_ext
5198 # Now generate the symbol file.
5199 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5201 cat <<EOF >> conftest.$ac_ext
5202 #if defined (__STDC__) && __STDC__
5203 # define lt_ptr_t void *
5205 # define lt_ptr_t char *
5209 /* The mapping between symbol names and symbols. */
5214 lt_preloaded_symbols[] =
5217 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5218 cat <<\EOF >> conftest.$ac_ext
5226 # Now try linking the two files.
5227 mv conftest.$ac_objext conftstm.$ac_objext
5228 lt_save_LIBS="$LIBS"
5229 lt_save_CFLAGS="$CFLAGS"
5230 LIBS="conftstm.$ac_objext"
5231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5233 (eval $ac_link) 2>&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5239 LIBS="$lt_save_LIBS"
5240 CFLAGS="$lt_save_CFLAGS"
5242 echo "cannot find nm_test_func in $nlist" >&5
5245 echo "cannot find nm_test_var in $nlist" >&5
5248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5251 echo "$progname: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5254 rm -f conftest* conftst*
5256 # Do not use the global_symbol_pipe unless it works.
5257 if test "$pipe_works" = yes; then
5260 lt_cv_sys_global_symbol_pipe=
5266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5267 lt_cv_sys_global_symbol_to_cdecl=
5269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5270 echo "$as_me:$LINENO: result: failed" >&5
5271 echo "${ECHO_T}failed" >&6
5273 echo "$as_me:$LINENO: result: ok" >&5
5274 echo "${ECHO_T}ok" >&6
5277 echo "$as_me:$LINENO: checking for objdir" >&5
5278 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5279 if test "${lt_cv_objdir+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 rm -f .libs 2>/dev/null
5283 mkdir .libs 2>/dev/null
5284 if test -d .libs; then
5287 # MS-DOS does not allow filenames that begin with a dot.
5290 rmdir .libs 2>/dev/null
5292 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5293 echo "${ECHO_T}$lt_cv_objdir" >&6
5294 objdir=$lt_cv_objdir
5302 # AIX sometimes has problems with the GCC collect2 program. For some
5303 # reason, if we set the COLLECT_NAMES environment variable, the problems
5304 # vanish in a puff of smoke.
5305 if test "X${COLLECT_NAMES+set}" != Xset; then
5307 export COLLECT_NAMES
5312 # Sed substitution that helps us do robust quoting. It backslashifies
5313 # metacharacters that are still active within double-quoted strings.
5314 Xsed='sed -e s/^X//'
5315 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5317 # Same as above, but do not quote variable references.
5318 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5320 # Sed substitution to delay expansion of an escaped shell variable in a
5321 # double_quote_subst'ed string.
5322 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5324 # Sed substitution to avoid accidental globbing in evaled expressions
5325 no_glob_subst='s/\*/\\\*/g'
5332 can_build_shared=yes
5334 # All known linkers require a `.a' archive for static linking (except M$VC,
5335 # which needs '.lib').
5337 ltmain="$ac_aux_dir/ltmain.sh"
5338 ofile="$default_ofile"
5339 with_gnu_ld="$lt_cv_prog_gnu_ld"
5341 if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5343 set dummy ${ac_tool_prefix}ar; ac_word=$2
5344 echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346 if test "${ac_cv_prog_AR+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 if test -n "$AR"; then
5350 ac_cv_prog_AR="$AR" # Let the user override the test.
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_AR="${ac_tool_prefix}ar"
5360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 if test -n "$AR"; then
5370 echo "$as_me:$LINENO: result: $AR" >&5
5371 echo "${ECHO_T}$AR" >&6
5373 echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6
5378 if test -z "$ac_cv_prog_AR"; then
5380 # Extract the first word of "ar", so it can be a program name with args.
5381 set dummy ar; ac_word=$2
5382 echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 if test -n "$ac_ct_AR"; then
5388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_ac_ct_AR="ar"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5408 if test -n "$ac_ct_AR"; then
5409 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5410 echo "${ECHO_T}$ac_ct_AR" >&6
5412 echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6
5421 if test -n "$ac_tool_prefix"; then
5422 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5424 echo "$as_me:$LINENO: checking for $ac_word" >&5
5425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426 if test "${ac_cv_prog_RANLIB+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 if test -n "$RANLIB"; then
5430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 RANLIB=$ac_cv_prog_RANLIB
5449 if test -n "$RANLIB"; then
5450 echo "$as_me:$LINENO: result: $RANLIB" >&5
5451 echo "${ECHO_T}$RANLIB" >&6
5453 echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5458 if test -z "$ac_cv_prog_RANLIB"; then
5459 ac_ct_RANLIB=$RANLIB
5460 # Extract the first word of "ranlib", so it can be a program name with args.
5461 set dummy ranlib; ac_word=$2
5462 echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 if test -n "$ac_ct_RANLIB"; then
5468 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_RANLIB="ranlib"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5487 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5488 if test -n "$ac_ct_RANLIB"; then
5489 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5490 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5492 echo "$as_me:$LINENO: result: no" >&5
5493 echo "${ECHO_T}no" >&6
5496 RANLIB=$ac_ct_RANLIB
5498 RANLIB="$ac_cv_prog_RANLIB"
5501 if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5503 set dummy ${ac_tool_prefix}strip; ac_word=$2
5504 echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5506 if test "${ac_cv_prog_STRIP+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 if test -n "$STRIP"; then
5510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 STRIP=$ac_cv_prog_STRIP
5529 if test -n "$STRIP"; then
5530 echo "$as_me:$LINENO: result: $STRIP" >&5
5531 echo "${ECHO_T}$STRIP" >&6
5533 echo "$as_me:$LINENO: result: no" >&5
5534 echo "${ECHO_T}no" >&6
5538 if test -z "$ac_cv_prog_STRIP"; then
5540 # Extract the first word of "strip", so it can be a program name with args.
5541 set dummy strip; ac_word=$2
5542 echo "$as_me:$LINENO: checking for $ac_word" >&5
5543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 if test -n "$ac_ct_STRIP"; then
5548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_ac_ct_STRIP="strip"
5558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5568 if test -n "$ac_ct_STRIP"; then
5569 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5570 echo "${ECHO_T}$ac_ct_STRIP" >&6
5572 echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6
5578 STRIP="$ac_cv_prog_STRIP"
5583 old_CFLAGS="$CFLAGS"
5585 # Set sane defaults for various variables
5586 test -z "$AR" && AR=ar
5587 test -z "$AR_FLAGS" && AR_FLAGS=cru
5588 test -z "$AS" && AS=as
5589 test -z "$CC" && CC=cc
5590 test -z "$LTCC" && LTCC=$CC
5591 test -z "$DLLTOOL" && DLLTOOL=dlltool
5592 test -z "$LD" && LD=ld
5593 test -z "$LN_S" && LN_S="ln -s"
5594 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5595 test -z "$NM" && NM=nm
5596 test -z "$SED" && SED=sed
5597 test -z "$OBJDUMP" && OBJDUMP=objdump
5598 test -z "$RANLIB" && RANLIB=:
5599 test -z "$STRIP" && STRIP=:
5600 test -z "$ac_objext" && ac_objext=o
5602 # Determine commands to create old-style static archives.
5603 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5604 old_postinstall_cmds='chmod 644 $oldlib'
5605 old_postuninstall_cmds=
5607 if test -n "$RANLIB"; then
5610 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5613 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5616 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5619 # Only perform the check for file, if the check method requires it
5620 case $deplibs_check_method in
5622 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5623 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5624 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5625 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5633 lt_save_MAGIC_CMD="$MAGIC_CMD"
5634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5636 for ac_dir in $ac_dummy; do
5638 test -z "$ac_dir" && ac_dir=.
5639 if test -f $ac_dir/${ac_tool_prefix}file; then
5640 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5641 if test -n "$file_magic_test_file"; then
5642 case $deplibs_check_method in
5644 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5647 $EGREP "$file_magic_regex" > /dev/null; then
5652 *** Warning: the command libtool uses to detect shared libraries,
5653 *** $file_magic_cmd, produces output that libtool cannot recognize.
5654 *** The result is that libtool may fail to recognize shared libraries
5655 *** as such. This will affect the creation of libtool libraries that
5656 *** depend on shared libraries, but programs linked with such libtool
5657 *** libraries will work regardless of this problem. Nevertheless, you
5658 *** may want to report the problem to your system manager and/or to
5659 *** bug-libtool@gnu.org
5669 MAGIC_CMD="$lt_save_MAGIC_CMD"
5674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5675 if test -n "$MAGIC_CMD"; then
5676 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5677 echo "${ECHO_T}$MAGIC_CMD" >&6
5679 echo "$as_me:$LINENO: result: no" >&5
5680 echo "${ECHO_T}no" >&6
5683 if test -z "$lt_cv_path_MAGIC_CMD"; then
5684 if test -n "$ac_tool_prefix"; then
5685 echo "$as_me:$LINENO: checking for file" >&5
5686 echo $ECHO_N "checking for file... $ECHO_C" >&6
5687 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5695 lt_save_MAGIC_CMD="$MAGIC_CMD"
5696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5697 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5698 for ac_dir in $ac_dummy; do
5700 test -z "$ac_dir" && ac_dir=.
5701 if test -f $ac_dir/file; then
5702 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5703 if test -n "$file_magic_test_file"; then
5704 case $deplibs_check_method in
5706 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5708 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5709 $EGREP "$file_magic_regex" > /dev/null; then
5714 *** Warning: the command libtool uses to detect shared libraries,
5715 *** $file_magic_cmd, produces output that libtool cannot recognize.
5716 *** The result is that libtool may fail to recognize shared libraries
5717 *** as such. This will affect the creation of libtool libraries that
5718 *** depend on shared libraries, but programs linked with such libtool
5719 *** libraries will work regardless of this problem. Nevertheless, you
5720 *** may want to report the problem to your system manager and/or to
5721 *** bug-libtool@gnu.org
5731 MAGIC_CMD="$lt_save_MAGIC_CMD"
5736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5737 if test -n "$MAGIC_CMD"; then
5738 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5739 echo "${ECHO_T}$MAGIC_CMD" >&6
5741 echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6
5757 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5758 if test "${enable_libtool_lock+set}" = set; then
5759 enableval="$enable_libtool_lock"
5762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5765 # Check whether --with-pic or --without-pic was given.
5766 if test "${with_pic+set}" = set; then
5772 test -z "$pic_mode" && pic_mode=default
5774 # Use C for the default configuration in the libtool script
5778 ac_cpp='$CPP $CPPFLAGS'
5779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784 # Source file extension for C test sources.
5787 # Object file extension for compiled C test sources.
5791 # Code to be used in simple compile tests
5792 lt_simple_compile_test_code="int some_variable = 0;\n"
5794 # Code to be used in simple link tests
5795 lt_simple_link_test_code='int main(){return(0);}\n'
5798 # If no C compiler was specified, use CC.
5801 # Allow CC to be a program name with arguments.
5806 # Check for any special shared library compilation flags.
5809 if test "$GCC" = no; then
5812 lt_prog_cc_shlib='-belf'
5816 if test -n "$lt_prog_cc_shlib"; then
5817 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5818 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5819 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5821 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5822 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5823 lt_cv_prog_cc_can_build_shared=no
5829 # Check to make sure the static flag actually works.
5831 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5832 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5833 if test "${lt_prog_compiler_static_works+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 lt_prog_compiler_static_works=no
5837 save_LDFLAGS="$LDFLAGS"
5838 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5839 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5840 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5841 # The compiler can only warn and ignore the option if not recognized
5842 # So say no if there are warnings
5843 if test -s conftest.err; then
5844 # Append any errors to the config.log.
5845 cat conftest.err 1>&5
5847 lt_prog_compiler_static_works=yes
5851 LDFLAGS="$save_LDFLAGS"
5854 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5855 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5857 if test x"$lt_prog_compiler_static_works" = xyes; then
5860 lt_prog_compiler_static=
5866 lt_prog_compiler_no_builtin_flag=
5868 if test "$GCC" = yes; then
5869 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5871 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5872 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5873 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 lt_cv_prog_compiler_rtti_exceptions=no
5877 ac_outfile=conftest.$ac_objext
5878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5879 lt_compiler_flag="-fno-rtti -fno-exceptions"
5880 # Insert the option either (1) after the last *FLAGS variable, or
5881 # (2) before a word containing "conftest.", or (3) at the end.
5882 # Note that $ac_compile itself does not contain backslashes and begins
5883 # with a dollar sign (not a hyphen), so the echo should work correctly.
5884 # The option is referenced via a variable to avoid confusing sed.
5885 lt_compile=`echo "$ac_compile" | $SED \
5886 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5888 -e 's:$: $lt_compiler_flag:'`
5889 (eval echo "\"\$as_me:5889: $lt_compile\"" >&5)
5890 (eval "$lt_compile" 2>conftest.err)
5892 cat conftest.err >&5
5893 echo "$as_me:5893: \$? = $ac_status" >&5
5894 if (exit $ac_status) && test -s "$ac_outfile"; then
5895 # The compiler can only warn and ignore the option if not recognized
5896 # So say no if there are warnings
5897 if test ! -s conftest.err; then
5898 lt_cv_prog_compiler_rtti_exceptions=yes
5904 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5905 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5907 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5908 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5915 lt_prog_compiler_wl=
5916 lt_prog_compiler_pic=
5917 lt_prog_compiler_static=
5919 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5920 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5922 if test "$GCC" = yes; then
5923 lt_prog_compiler_wl='-Wl,'
5924 lt_prog_compiler_static='-static'
5928 # All AIX code is PIC.
5929 if test "$host_cpu" = ia64; then
5930 # AIX 5 now supports IA64 processor
5931 lt_prog_compiler_static='-Bstatic'
5936 # FIXME: we need at least 68020 code to build shared libraries, but
5937 # adding the `-m68020' flag to GCC prevents building anything better,
5939 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5942 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5943 # PIC is the default for these OSes.
5946 mingw* | pw32* | os2*)
5947 # This hack is so that the source file can tell whether it is being
5948 # built for inclusion in a dll (and should export symbols for example).
5949 lt_prog_compiler_pic='-DDLL_EXPORT'
5952 darwin* | rhapsody*)
5953 # PIC is the default on this platform
5954 # Common symbols not allowed in MH_DYLIB files
5955 lt_prog_compiler_pic='-fno-common'
5959 # Just because we use GCC doesn't mean we suddenly get shared libraries
5960 # on systems that don't support them.
5961 lt_prog_compiler_can_build_shared=no
5966 if test -d /usr/nec; then
5967 lt_prog_compiler_pic=-Kconform_pic
5972 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5979 lt_prog_compiler_pic='-fPIC'
5985 lt_prog_compiler_pic='-fPIC'
5989 # PORTME Check for flag to pass linker flags through the system compiler.
5992 lt_prog_compiler_wl='-Wl,'
5993 if test "$host_cpu" = ia64; then
5994 # AIX 5 now supports IA64 processor
5995 lt_prog_compiler_static='-Bstatic'
5997 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6001 mingw* | pw32* | os2*)
6002 # This hack is so that the source file can tell whether it is being
6003 # built for inclusion in a dll (and should export symbols for example).
6004 lt_prog_compiler_pic='-DDLL_EXPORT'
6007 hpux9* | hpux10* | hpux11*)
6008 lt_prog_compiler_wl='-Wl,'
6009 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6016 lt_prog_compiler_pic='+Z'
6019 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6020 lt_prog_compiler_static='${wl}-a ${wl}archive'
6023 irix5* | irix6* | nonstopux*)
6024 lt_prog_compiler_wl='-Wl,'
6025 # PIC (with -KPIC) is the default.
6026 lt_prog_compiler_static='-non_shared'
6030 lt_prog_compiler_pic='-KPIC'
6031 lt_prog_compiler_static='-Bstatic'
6037 lt_prog_compiler_wl='-Wl,'
6038 lt_prog_compiler_pic='-KPIC'
6039 lt_prog_compiler_static='-static'
6042 lt_prog_compiler_wl='-Wl,'
6043 # All Alpha code is PIC.
6044 lt_prog_compiler_static='-non_shared'
6049 osf3* | osf4* | osf5*)
6050 lt_prog_compiler_wl='-Wl,'
6051 # All OSF/1 code is PIC.
6052 lt_prog_compiler_static='-non_shared'
6056 lt_prog_compiler_pic='-Kpic'
6057 lt_prog_compiler_static='-dn'
6061 lt_prog_compiler_wl='-Wl,'
6062 lt_prog_compiler_pic='-KPIC'
6063 lt_prog_compiler_static='-Bstatic'
6067 lt_prog_compiler_wl='-Qoption ld '
6068 lt_prog_compiler_pic='-PIC'
6069 lt_prog_compiler_static='-Bstatic'
6072 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6073 lt_prog_compiler_wl='-Wl,'
6074 lt_prog_compiler_pic='-KPIC'
6075 lt_prog_compiler_static='-Bstatic'
6079 if test -d /usr/nec ;then
6080 lt_prog_compiler_pic='-Kconform_pic'
6081 lt_prog_compiler_static='-Bstatic'
6086 lt_prog_compiler_pic='-pic'
6087 lt_prog_compiler_static='-Bstatic'
6091 lt_prog_compiler_can_build_shared=no
6096 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6097 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6100 # Check to make sure the PIC flag actually works.
6102 if test -n "$lt_prog_compiler_pic"; then
6103 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6105 if test "${lt_prog_compiler_pic_works+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 lt_prog_compiler_pic_works=no
6109 ac_outfile=conftest.$ac_objext
6110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6112 # Insert the option either (1) after the last *FLAGS variable, or
6113 # (2) before a word containing "conftest.", or (3) at the end.
6114 # Note that $ac_compile itself does not contain backslashes and begins
6115 # with a dollar sign (not a hyphen), so the echo should work correctly.
6116 # The option is referenced via a variable to avoid confusing sed.
6117 lt_compile=`echo "$ac_compile" | $SED \
6118 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6120 -e 's:$: $lt_compiler_flag:'`
6121 (eval echo "\"\$as_me:6121: $lt_compile\"" >&5)
6122 (eval "$lt_compile" 2>conftest.err)
6124 cat conftest.err >&5
6125 echo "$as_me:6125: \$? = $ac_status" >&5
6126 if (exit $ac_status) && test -s "$ac_outfile"; then
6127 # The compiler can only warn and ignore the option if not recognized
6128 # So say no if there are warnings
6129 if test ! -s conftest.err; then
6130 lt_prog_compiler_pic_works=yes
6136 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6137 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6139 if test x"$lt_prog_compiler_pic_works" = xyes; then
6140 case $lt_prog_compiler_pic in
6142 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6145 lt_prog_compiler_pic=
6146 lt_prog_compiler_can_build_shared=no
6151 # For platforms which do not support PIC, -DPIC is meaningless:
6153 lt_prog_compiler_pic=
6156 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6160 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6161 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6162 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 lt_cv_prog_compiler_c_o=no
6166 $rm -r conftest 2>/dev/null
6170 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6172 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6173 # that will create temporary files in the current directory regardless of
6174 # the output directory. Thus, making CWD read-only will cause this test
6175 # to fail, enabling locking or at least warning the user not to do parallel
6179 lt_compiler_flag="-o out/conftest2.$ac_objext"
6180 # Insert the option either (1) after the last *FLAGS variable, or
6181 # (2) before a word containing "conftest.", or (3) at the end.
6182 # Note that $ac_compile itself does not contain backslashes and begins
6183 # with a dollar sign (not a hyphen), so the echo should work correctly.
6184 lt_compile=`echo "$ac_compile" | $SED \
6185 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6187 -e 's:$: $lt_compiler_flag:'`
6188 (eval echo "\"\$as_me:6188: $lt_compile\"" >&5)
6189 (eval "$lt_compile" 2>out/conftest.err)
6191 cat out/conftest.err >&5
6192 echo "$as_me:6192: \$? = $ac_status" >&5
6193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6195 # The compiler can only warn and ignore the option if not recognized
6196 # So say no if there are warnings
6197 if test ! -s out/conftest.err; then
6198 lt_cv_prog_compiler_c_o=yes
6209 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6210 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6213 hard_links="nottested"
6214 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6215 # do not overwrite the value of need_locks provided by the user
6216 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6217 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6222 ln conftest.a conftest.b 2>&5 || hard_links=no
6223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6224 echo "$as_me:$LINENO: result: $hard_links" >&5
6225 echo "${ECHO_T}$hard_links" >&6
6226 if test "$hard_links" = no; then
6227 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6228 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6235 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6236 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6239 allow_undefined_flag=
6240 enable_shared_with_static_runtimes=no
6242 archive_expsym_cmds=
6243 old_archive_From_new_cmds=
6244 old_archive_from_expsyms_cmds=
6245 export_dynamic_flag_spec=
6246 whole_archive_flag_spec=
6247 thread_safe_flag_spec=
6248 hardcode_libdir_flag_spec=
6249 hardcode_libdir_flag_spec_ld=
6250 hardcode_libdir_separator=
6253 hardcode_shlibpath_var=unsupported
6254 link_all_deplibs=unknown
6255 hardcode_automatic=no
6258 always_export_symbols=no
6259 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6260 # include_expsyms should be a list of space-separated symbols to be *always*
6261 # included in the symbol list
6263 # exclude_expsyms can be an extended regexp of symbols to exclude
6264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6266 # as well as any symbol that contains `d'.
6267 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6269 # platforms (ab)use it in PIC code, but their linkers get confused if
6270 # the symbol is explicitly referenced. Since portable code cannot
6271 # rely on this symbol name, it's probably fine to never include it in
6272 # preloaded symbol tables.
6273 extract_expsyms_cmds=
6276 cygwin* | mingw* | pw32*)
6277 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6278 # When not using gcc, we currently assume that we are using
6279 # Microsoft Visual C++.
6280 if test "$GCC" != yes; then
6290 if test "$with_gnu_ld" = yes; then
6291 # If archive_cmds runs LD, not CC, wlarc should be empty
6294 # See if GNU ld supports shared libraries.
6296 aix3* | aix4* | aix5*)
6297 # On AIX/PPC, the GNU linker is very broken
6298 if test "$host_cpu" != ia64; then
6302 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6303 *** to be unable to reliably create shared libraries on AIX.
6304 *** Therefore, libtool is disabling shared libraries support. If you
6305 *** really care for shared libraries, you may want to modify your PATH
6306 *** so that a non-GNU linker is found, and then restart.
6313 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)'
6314 hardcode_libdir_flag_spec='-L$libdir'
6315 hardcode_minus_L=yes
6317 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6318 # that the semantics of dynamic libraries on AmigaOS, at least up
6319 # to version 4, is to share data among multiple programs linked
6320 # with the same dynamic library. Since this doesn't match the
6321 # behavior of shared libraries on other platforms, we can't use
6327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6328 allow_undefined_flag=unsupported
6329 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6330 # support --undefined. This deserves some investigation. FIXME
6331 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6337 cygwin* | mingw* | pw32*)
6338 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6339 # as there is no search path for DLLs.
6340 hardcode_libdir_flag_spec='-L$libdir'
6341 allow_undefined_flag=unsupported
6342 always_export_symbols=no
6343 enable_shared_with_static_runtimes=yes
6344 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6346 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6348 # If the export-symbols file already is a .def file (1st line
6349 # is EXPORTS), use it as is; otherwise, prepend...
6350 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6351 cp $export_symbols $output_objdir/$soname.def;
6353 echo EXPORTS > $output_objdir/$soname.def;
6354 cat $export_symbols >> $output_objdir/$soname.def;
6356 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6363 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6364 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6373 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6377 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6378 *** create shared libraries on Solaris systems. Therefore, libtool
6379 *** is disabling shared libraries support. We urge you to upgrade GNU
6380 *** binutils to release 2.9.1 or newer. Another option is to modify
6381 *** your PATH or compiler configuration so that the native linker is
6382 *** used, and then restart.
6385 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6394 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6397 hardcode_shlibpath_var=no
6401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6410 if test "$ld_shlibs" = yes; then
6411 runpath_var=LD_RUN_PATH
6412 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6413 export_dynamic_flag_spec='${wl}--export-dynamic'
6414 # ancient GNU ld didn't support --whole-archive et. al.
6415 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6416 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6418 whole_archive_flag_spec=
6422 # PORTME fill in a description of your system's linker (not GNU ld)
6425 allow_undefined_flag=unsupported
6426 always_export_symbols=yes
6427 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'
6428 # Note: this linker hardcodes the directories in LIBPATH if there
6429 # are no directories specified by -L.
6430 hardcode_minus_L=yes
6431 if test "$GCC" = yes && test -z "$link_static_flag"; then
6432 # Neither direct hardcoding nor static linking is supported with a
6434 hardcode_direct=unsupported
6439 if test "$host_cpu" = ia64; then
6440 # On IA64, the linker does run time linking by default, so we don't
6441 # have to do anything special.
6442 aix_use_runtimelinking=no
6443 exp_sym_flag='-Bexport'
6446 # If we're using GNU nm, then we don't want the "-C" option.
6447 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6448 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6449 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'
6451 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'
6453 aix_use_runtimelinking=no
6455 # Test if we are trying to use run time linking or normal
6456 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6457 # need to do runtime linking.
6458 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6459 for ld_flag in $LDFLAGS; do
6460 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6461 aix_use_runtimelinking=yes
6467 exp_sym_flag='-bexport'
6468 no_entry_flag='-bnoentry'
6471 # When large executables or shared objects are built, AIX ld can
6472 # have problems creating the table of contents. If linking a library
6473 # or program results in "error TOC overflow" add -mminimal-toc to
6474 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6475 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6479 hardcode_libdir_separator=':'
6480 link_all_deplibs=yes
6482 if test "$GCC" = yes; then
6483 case $host_os in aix4.012|aix4.012.*)
6484 # We only want to do this on AIX 4.2 and lower, the check
6485 # below for broken collect2 doesn't work under 4.3+
6486 collect2name=`${CC} -print-prog-name=collect2`
6487 if test -f "$collect2name" && \
6488 strings "$collect2name" | grep resolve_lib_name >/dev/null
6490 # We have reworked collect2
6493 # We have old collect2
6494 hardcode_direct=unsupported
6495 # It fails to find uninstalled libraries when the uninstalled
6496 # path is not listed in the libpath. Setting hardcode_minus_L
6497 # to unsupported forces relinking
6498 hardcode_minus_L=yes
6499 hardcode_libdir_flag_spec='-L$libdir'
6500 hardcode_libdir_separator=
6503 shared_flag='-shared'
6506 if test "$host_cpu" = ia64; then
6507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6508 # chokes on -Wl,-G. The following line is correct:
6511 if test "$aix_use_runtimelinking" = yes; then
6512 shared_flag='${wl}-G'
6514 shared_flag='${wl}-bM:SRE'
6519 # It seems that -bexpall does not export symbols beginning with
6520 # underscore (_), so it is better to generate a list of symbols to export.
6521 always_export_symbols=yes
6522 if test "$aix_use_runtimelinking" = yes; then
6523 # Warning - without using the other runtime loading flags (-brtl),
6524 # -berok will link without error, but may produce a broken library.
6525 allow_undefined_flag='-berok'
6526 # Determine the default libpath from the value encoded in an empty executable.
6527 cat >conftest.$ac_ext <<_ACEOF
6528 #line $LINENO "configure"
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6543 rm -f conftest.$ac_objext conftest$ac_exeext
6544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6545 (eval $ac_link) 2>&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -s conftest$ac_exeext'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
6556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6558 # Check for a 64-bit object if we didn't find anything.
6559 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; }
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6569 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6570 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"
6572 if test "$host_cpu" = ia64; then
6573 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6574 allow_undefined_flag="-z nodefs"
6575 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"
6577 # Determine the default libpath from the value encoded in an empty executable.
6578 cat >conftest.$ac_ext <<_ACEOF
6579 #line $LINENO "configure"
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6594 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -s conftest$ac_exeext'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6607 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6609 # Check for a 64-bit object if we didn't find anything.
6610 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; }
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6618 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6620 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6621 # Warning - without using the other run time loading flags,
6622 # -berok will link without error, but may produce a broken library.
6623 no_undefined_flag=' ${wl}-bernotok'
6624 allow_undefined_flag=' ${wl}-berok'
6625 # -bexpall does not export symbols beginning with underscore (_)
6626 always_export_symbols=yes
6627 # Exported symbols can be pulled into shared objects from archives
6628 whole_archive_flag_spec=' '
6629 archive_cmds_need_lc=yes
6630 # This is similar to how AIX traditionally builds it's shared libraries.
6631 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'
6637 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)'
6638 hardcode_libdir_flag_spec='-L$libdir'
6639 hardcode_minus_L=yes
6640 # see comment about different semantics on the GNU ld section
6645 export_dynamic_flag_spec=-rdynamic
6648 cygwin* | mingw* | pw32*)
6649 # When not using gcc, we currently assume that we are using
6650 # Microsoft Visual C++.
6651 # hardcode_libdir_flag_spec is actually meaningless, as there is
6652 # no search path for DLLs.
6653 hardcode_libdir_flag_spec=' '
6654 allow_undefined_flag=unsupported
6655 # Tell ltmain to make .lib files, not .a files.
6657 # Tell ltmain to make .dll files, not .so files.
6659 # FIXME: Setting linknames here is a bad hack.
6660 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6661 # The linker will automatically build a .lib file if we build a DLL.
6662 old_archive_From_new_cmds='true'
6663 # FIXME: Should let the user specify the lib program.
6664 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6665 fix_srcfile_path='`cygpath -w "$srcfile"`'
6666 enable_shared_with_static_runtimes=yes
6669 darwin* | rhapsody*)
6670 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6671 archive_cmds_need_lc=no
6673 rhapsody* | darwin1.[012])
6674 allow_undefined_flag='-undefined suppress'
6677 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6680 # FIXME: Relying on posixy $() will cause problems for
6681 # cross-compilation, but unfortunately the echo tests do not
6682 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6683 # `"' quotes if we put them in here... so don't!
6684 lt_int_apple_cc_single_mod=no
6685 output_verbose_link_cmd='echo'
6686 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6687 lt_int_apple_cc_single_mod=yes
6689 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6690 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6692 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'
6694 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6695 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6696 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6697 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}'
6699 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}'
6701 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}'
6703 hardcode_automatic=yes
6704 hardcode_shlibpath_var=unsupported
6705 whole_archive_flag_spec='-all_load $convenience'
6706 link_all_deplibs=yes
6711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6712 hardcode_libdir_flag_spec='-L$libdir'
6713 hardcode_shlibpath_var=no
6720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6721 # support. Future versions do this automatically, but an explicit c++rt0.o
6722 # does not break anything, and helps significantly (at the cost of a little
6725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6726 hardcode_libdir_flag_spec='-R$libdir'
6728 hardcode_shlibpath_var=no
6731 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6735 hardcode_minus_L=yes
6736 hardcode_shlibpath_var=no
6739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6741 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6742 hardcode_libdir_flag_spec='-R$libdir'
6744 hardcode_shlibpath_var=no
6748 if test "$GCC" = yes; then
6749 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'
6751 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'
6753 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6754 hardcode_libdir_separator=:
6757 # hardcode_minus_L: Not really in the search PATH,
6758 # but as the default location of the library.
6759 hardcode_minus_L=yes
6760 export_dynamic_flag_spec='${wl}-E'
6764 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6767 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6770 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6776 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6779 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6783 if test "$with_gnu_ld" = no; then
6786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6787 hardcode_libdir_flag_spec_ld='+b $libdir'
6788 hardcode_libdir_separator=:
6790 hardcode_shlibpath_var=no
6793 hardcode_libdir_flag_spec='-L$libdir'
6795 hardcode_shlibpath_var=no
6797 # hardcode_minus_L: Not really in the search PATH,
6798 # but as the default location of the library.
6799 hardcode_minus_L=yes
6802 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6803 hardcode_libdir_separator=:
6805 export_dynamic_flag_spec='${wl}-E'
6807 # hardcode_minus_L: Not really in the search PATH,
6808 # but as the default location of the library.
6809 hardcode_minus_L=yes
6815 irix5* | irix6* | nonstopux*)
6816 if test "$GCC" = yes; then
6817 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'
6819 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'
6820 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6823 hardcode_libdir_separator=:
6824 link_all_deplibs=yes
6828 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6831 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6833 hardcode_libdir_flag_spec='-R$libdir'
6835 hardcode_shlibpath_var=no
6839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6842 hardcode_libdir_separator=:
6843 hardcode_shlibpath_var=no
6848 hardcode_shlibpath_var=no
6849 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6851 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6852 export_dynamic_flag_spec='${wl}-E'
6855 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6857 hardcode_libdir_flag_spec='-R$libdir'
6860 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6861 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6868 hardcode_libdir_flag_spec='-L$libdir'
6869 hardcode_minus_L=yes
6870 allow_undefined_flag=unsupported
6871 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'
6872 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6876 if test "$GCC" = yes; then
6877 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6878 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'
6880 allow_undefined_flag=' -expect_unresolved \*'
6881 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'
6883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6884 hardcode_libdir_separator=:
6887 osf4* | osf5*) # as osf3* with the addition of -msym flag
6888 if test "$GCC" = yes; then
6889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6890 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'
6891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6893 allow_undefined_flag=' -expect_unresolved \*'
6894 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'
6895 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6896 $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'
6898 # Both c and cxx compiler support -rpath directly
6899 hardcode_libdir_flag_spec='-rpath $libdir'
6901 hardcode_libdir_separator=:
6905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6906 hardcode_shlibpath_var=no
6907 export_dynamic_flag_spec='${wl}-Bexport'
6908 runpath_var=LD_RUN_PATH
6909 hardcode_runpath_var=yes
6913 no_undefined_flag=' -z text'
6914 if test "$GCC" = yes; then
6915 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6916 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6917 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6919 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6920 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6921 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6923 hardcode_libdir_flag_spec='-R$libdir'
6924 hardcode_shlibpath_var=no
6926 solaris2.[0-5] | solaris2.[0-5].*) ;;
6927 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6928 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6930 link_all_deplibs=yes
6934 if test "x$host_vendor" = xsequent; then
6935 # Use $CC to link under sequent, because it throws in some extra .o
6936 # files that make .init and .fini sections work.
6937 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6939 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6941 hardcode_libdir_flag_spec='-L$libdir'
6943 hardcode_minus_L=yes
6944 hardcode_shlibpath_var=no
6948 case $host_vendor in
6950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6951 hardcode_direct=yes # is this really true???
6954 ## LD is ld it makes a PLAMLIB
6955 ## CC just makes a GrossModule.
6956 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6957 reload_cmds='$CC -r -o $output$reload_objs'
6961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6962 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6965 runpath_var='LD_RUN_PATH'
6966 hardcode_shlibpath_var=no
6970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6971 hardcode_shlibpath_var=no
6972 export_dynamic_flag_spec='-Bexport'
6976 if test -d /usr/nec; then
6977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6978 hardcode_shlibpath_var=no
6979 runpath_var=LD_RUN_PATH
6980 hardcode_runpath_var=yes
6986 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6989 hardcode_shlibpath_var=no
6990 hardcode_runpath_var=yes
6991 runpath_var=LD_RUN_PATH
6994 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6995 no_undefined_flag='${wl}-z ${wl}text'
6996 if test "$GCC" = yes; then
6997 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6999 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7001 runpath_var='LD_RUN_PATH'
7002 hardcode_shlibpath_var=no
7006 no_undefined_flag=' -z text'
7007 # $CC -shared without GNU ld will not create a library from C++
7008 # object files and a static libstdc++, better avoid it by now
7009 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7010 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7011 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7012 hardcode_libdir_flag_spec=
7013 hardcode_shlibpath_var=no
7014 runpath_var='LD_RUN_PATH'
7018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7019 hardcode_libdir_flag_spec='-L$libdir'
7020 hardcode_shlibpath_var=no
7029 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7030 echo "${ECHO_T}$ld_shlibs" >&6
7031 test "$ld_shlibs" = no && can_build_shared=no
7033 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7034 if test "$GCC" = yes; then
7035 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7039 # Do we need to explicitly link libc?
7041 case "x$archive_cmds_need_lc" in
7043 # Assume -lc should be added
7044 archive_cmds_need_lc=yes
7046 if test "$enable_shared" = yes && test "$GCC" = yes; then
7047 case $archive_cmds in
7049 # FIXME: we may have to deal with multi-command sequences.
7052 # Test whether the compiler implicitly links with -lc since on some
7053 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7054 # to ld, don't add -lc before -lgcc.
7055 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7056 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061 (eval $ac_compile) 2>&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } 2>conftest.err; then
7067 libobjs=conftest.$ac_objext
7069 wl=$lt_prog_compiler_wl
7075 lt_save_allow_undefined_flag=$allow_undefined_flag
7076 allow_undefined_flag=
7077 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7078 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }
7083 archive_cmds_need_lc=no
7085 archive_cmds_need_lc=yes
7087 allow_undefined_flag=$lt_save_allow_undefined_flag
7089 cat conftest.err 1>&5
7092 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7093 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7100 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7101 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7103 if test -n "$hardcode_libdir_flag_spec" || \
7104 test -n "$runpath_var " || \
7105 test "X$hardcode_automatic"="Xyes" ; then
7107 # We can hardcode non-existant directories.
7108 if test "$hardcode_direct" != no &&
7109 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7110 # have to relink, otherwise we might link with an installed library
7111 # when we should be linking with a yet-to-be-installed one
7112 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7113 test "$hardcode_minus_L" != no; then
7114 # Linking always hardcodes the temporary library directory.
7115 hardcode_action=relink
7117 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7118 hardcode_action=immediate
7121 # We cannot hardcode anything, or else we can only hardcode existing
7123 hardcode_action=unsupported
7125 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7126 echo "${ECHO_T}$hardcode_action" >&6
7128 if test "$hardcode_action" = relink; then
7129 # Fast installation is not supported
7130 enable_fast_install=no
7131 elif test "$shlibpath_overrides_runpath" = yes ||
7132 test "$enable_shared" = no; then
7133 # Fast installation is not necessary
7134 enable_fast_install=needless
7139 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7140 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7141 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7142 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7143 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7144 echo "$as_me:$LINENO: result: yes" >&5
7145 echo "${ECHO_T}yes" >&6
7147 # FIXME - insert some real tests, host_os isn't really good enough
7150 if test -n "$STRIP" ; then
7151 striplib="$STRIP -x"
7152 echo "$as_me:$LINENO: result: yes" >&5
7153 echo "${ECHO_T}yes" >&6
7155 echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6
7160 echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6
7166 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7169 libname_spec='lib$name'
7177 shlibpath_overrides_runpath=unknown
7179 dynamic_linker="$host_os ld.so"
7180 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7181 if test "$GCC" = yes; then
7182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7183 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7184 # if the path contains ";" then we assume it to be the separator
7185 # otherwise default to the standard path separator (i.e. ":") - it is
7186 # assumed that no part of a normal pathname contains ";" but that should
7187 # okay in the real world where ";" in dirpaths is itself problematic.
7188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7193 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7195 need_lib_prefix=unknown
7196 hardcode_into_libs=no
7198 # when you set need_version to no, make sure it does not cause -set_version
7199 # flags to be left without arguments
7200 need_version=unknown
7205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7206 shlibpath_var=LIBPATH
7208 # AIX 3 has no versioning support, so we append a major version to the name.
7209 soname_spec='${libname}${release}${shared_ext}$major'
7216 hardcode_into_libs=yes
7217 if test "$host_cpu" = ia64; then
7218 # AIX 5 supports IA64
7219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7220 shlibpath_var=LD_LIBRARY_PATH
7222 # With GCC up to 2.95.x, collect2 would create an import file
7223 # for dependence libraries. The import file would start with
7224 # the line `#! .'. This would cause the generated library to
7225 # depend on `.', always an invalid library. This was fixed in
7226 # development snapshots of GCC prior to 3.0.
7228 aix4 | aix4.[01] | aix4.[01].*)
7229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7231 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7239 # soname into executable. Probably we can add versioning support to
7240 # collect2, so additional links can be useful in future.
7241 if test "$aix_use_runtimelinking" = yes; then
7242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7243 # instead of lib<name>.a to let people know that these are not
7244 # typical AIX shared libraries.
7245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7247 # We preserve .a as extension for shared libraries through AIX4.2
7248 # and later when we are not doing run time linking.
7249 library_names_spec='${libname}${release}.a $libname.a'
7250 soname_spec='${libname}${release}${shared_ext}$major'
7252 shlibpath_var=LIBPATH
7257 library_names_spec='$libname.ixlibrary $libname.a'
7258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7259 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'
7263 library_names_spec='${libname}${shared_ext}'
7264 dynamic_linker="$host_os ld.so"
7265 shlibpath_var=LIBRARY_PATH
7271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7272 soname_spec='${libname}${release}${shared_ext}$major'
7273 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7274 shlibpath_var=LD_LIBRARY_PATH
7275 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7276 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7277 # the default ld.so.conf also contains /usr/contrib/lib and
7278 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7279 # libtool to hard-code these into programs
7282 cygwin* | mingw* | pw32*)
7283 version_type=windows
7288 case $GCC,$host_os in
7289 yes,cygwin* | yes,mingw* | yes,pw32*)
7290 library_names_spec='$libname.dll.a'
7291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7292 postinstall_cmds='base_file=`basename \${file}`~
7293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7294 dldir=$destdir/`dirname \$dlpath`~
7295 test -d \$dldir || mkdir -p \$dldir~
7296 $install_prog $dir/$dlname \$dldir/$dlname'
7297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7298 dlpath=$dir/\$dldll~
7300 shlibpath_overrides_runpath=yes
7304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7305 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7306 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7309 # MinGW DLLs use traditional 'lib' prefix
7310 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7311 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7312 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7313 # It is most probably a Windows format PATH printed by
7314 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7315 # path with ; separators, and with drive letters. We can handle the
7316 # drive letters (cygwin fileutils understands them), so leave them,
7317 # especially as we might pass files found there to a mingw objdump,
7318 # which wouldn't understand a cygwinified path. Ahh.
7319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7325 # pw32 DLLs use 'pw' prefix rather than 'lib'
7326 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7332 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7335 dynamic_linker='Win32 ld.exe'
7336 # FIXME: first we should search . and the directory the executable is in
7340 darwin* | rhapsody*)
7341 dynamic_linker="$host_os dyld"
7345 # FIXME: Relying on posixy $() will cause problems for
7346 # cross-compilation, but unfortunately the echo tests do not
7347 # yet detect zsh echo's removal of \ escapes.
7348 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7349 soname_spec='${libname}${release}${major}$shared_ext'
7350 shlibpath_overrides_runpath=yes
7351 shlibpath_var=DYLD_LIBRARY_PATH
7352 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7353 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7354 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7355 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"`
7357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7365 soname_spec='${libname}${release}${shared_ext}$major'
7366 shlibpath_var=LD_LIBRARY_PATH
7374 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7375 version_type=freebsd-$objformat
7376 case $version_type in
7378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7383 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7387 shlibpath_var=LD_LIBRARY_PATH
7390 shlibpath_overrides_runpath=yes
7392 freebsd3.01* | freebsdelf3.01*)
7393 shlibpath_overrides_runpath=yes
7394 hardcode_into_libs=yes
7397 shlibpath_overrides_runpath=no
7398 hardcode_into_libs=yes
7407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7408 soname_spec='${libname}${release}${shared_ext}$major'
7409 shlibpath_var=LD_LIBRARY_PATH
7410 hardcode_into_libs=yes
7413 hpux9* | hpux10* | hpux11*)
7414 # Give a soname corresponding to the major version so that dld.sl refuses to
7415 # link against other versions.
7422 hardcode_into_libs=yes
7423 dynamic_linker="$host_os dld.so"
7424 shlibpath_var=LD_LIBRARY_PATH
7425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7427 soname_spec='${libname}${release}${shared_ext}$major'
7428 if test "X$HPUX_IA64_MODE" = X32; then
7429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7437 hardcode_into_libs=yes
7438 dynamic_linker="$host_os dld.sl"
7439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7442 soname_spec='${libname}${release}${shared_ext}$major'
7443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7448 dynamic_linker="$host_os dld.sl"
7449 shlibpath_var=SHLIB_PATH
7450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7452 soname_spec='${libname}${release}${shared_ext}$major'
7455 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7456 postinstall_cmds='chmod 555 $lib'
7459 irix5* | irix6* | nonstopux*)
7461 nonstopux*) version_type=nonstopux ;;
7463 if test "$lt_cv_prog_gnu_ld" = yes; then
7471 soname_spec='${libname}${release}${shared_ext}$major'
7472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7474 irix5* | nonstopux*)
7478 case $LD in # libtool.m4 will add one of these switches to LD
7479 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7480 libsuff= shlibsuff= libmagic=32-bit;;
7481 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7482 libsuff=32 shlibsuff=N32 libmagic=N32;;
7483 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7484 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7485 *) libsuff= shlibsuff= libmagic=never-match;;
7489 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7490 shlibpath_overrides_runpath=no
7491 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7492 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7493 hardcode_into_libs=yes
7496 # No shared lib support for Linux oldld, aout, or coff.
7497 linux*oldld* | linux*aout* | linux*coff*)
7501 # This must be Linux ELF.
7506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7507 soname_spec='${libname}${release}${shared_ext}$major'
7508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7509 shlibpath_var=LD_LIBRARY_PATH
7510 shlibpath_overrides_runpath=no
7511 # This implies no fast_install, which is unacceptable.
7512 # Some rework will be needed to allow for fast_install
7513 # before this can be enabled.
7514 hardcode_into_libs=yes
7516 # We used to test for /lib/ld.so.1 and disable shared libraries on
7517 # powerpc, because MkLinux only supported shared libraries with the
7518 # GNU dynamic linker. Since this was broken with cross compilers,
7519 # most powerpc-linux boxes support dynamic linking these days and
7520 # people can always --disable-shared, the test was removed, and we
7521 # assume the GNU/Linux dynamic linker is in use.
7522 dynamic_linker='GNU/Linux ld.so'
7529 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7532 dynamic_linker='NetBSD (a.out) ld.so'
7534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7535 soname_spec='${libname}${release}${shared_ext}$major'
7536 dynamic_linker='NetBSD ld.elf_so'
7538 shlibpath_var=LD_LIBRARY_PATH
7539 shlibpath_overrides_runpath=yes
7540 hardcode_into_libs=yes
7545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7546 shlibpath_var=LD_LIBRARY_PATH
7547 shlibpath_overrides_runpath=yes
7554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7555 soname_spec='${libname}${release}${shared_ext}$major'
7556 shlibpath_var=LD_LIBRARY_PATH
7557 shlibpath_overrides_runpath=yes
7564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7566 shlibpath_var=LD_LIBRARY_PATH
7567 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7569 openbsd2.[89] | openbsd2.[89].*)
7570 shlibpath_overrides_runpath=no
7573 shlibpath_overrides_runpath=yes
7577 shlibpath_overrides_runpath=yes
7582 libname_spec='$name'
7585 library_names_spec='$libname${shared_ext} $libname.a'
7586 dynamic_linker='OS/2 ld.exe'
7587 shlibpath_var=LIBPATH
7590 osf3* | osf4* | osf5*)
7594 soname_spec='${libname}${release}${shared_ext}$major'
7595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7596 shlibpath_var=LD_LIBRARY_PATH
7597 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7598 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7603 soname_spec='${libname}${release}${shared_ext}$major'
7604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7605 shlibpath_var=LD_LIBRARY_PATH
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613 soname_spec='${libname}${release}${shared_ext}$major'
7614 shlibpath_var=LD_LIBRARY_PATH
7615 shlibpath_overrides_runpath=yes
7616 hardcode_into_libs=yes
7617 # ldd complains unless libraries are executable
7618 postinstall_cmds='chmod +x $lib'
7623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7624 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7625 shlibpath_var=LD_LIBRARY_PATH
7626 shlibpath_overrides_runpath=yes
7627 if test "$with_gnu_ld" = yes; then
7633 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7636 soname_spec='${libname}${release}${shared_ext}$major'
7637 shlibpath_var=LD_LIBRARY_PATH
7638 case $host_vendor in
7640 shlibpath_overrides_runpath=no
7642 export_dynamic_flag_spec='${wl}-Blargedynsym'
7643 runpath_var=LD_RUN_PATH
7651 shlibpath_overrides_runpath=no
7652 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7658 if test -d /usr/nec ;then
7660 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7661 soname_spec='$libname${shared_ext}.$major'
7662 shlibpath_var=LD_LIBRARY_PATH
7668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669 soname_spec='${libname}${release}${shared_ext}$major'
7670 shlibpath_var=LD_LIBRARY_PATH
7677 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7678 echo "${ECHO_T}$dynamic_linker" >&6
7679 test "$dynamic_linker" = no && can_build_shared=no
7681 if test "x$enable_dlopen" != xyes; then
7682 enable_dlopen=unknown
7683 enable_dlopen_self=unknown
7684 enable_dlopen_self_static=unknown
7691 lt_cv_dlopen="load_add_on"
7693 lt_cv_dlopen_self=yes
7697 lt_cv_dlopen="LoadLibrary"
7702 lt_cv_dlopen="dlopen"
7707 # if libdl is installed we need to link against it
7708 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 ac_check_lib_save_LIBS=$LIBS
7715 cat >conftest.$ac_ext <<_ACEOF
7716 #line $LINENO "configure"
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7723 /* Override any gcc2 internal prototype to avoid an error. */
7727 /* We use char because int might match the return type of a gcc2
7728 builtin and then its argument prototype would still apply. */
7738 rm -f conftest.$ac_objext conftest$ac_exeext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7740 (eval $ac_link) 2>&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -s conftest$ac_exeext'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 ac_cv_lib_dl_dlopen=yes
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7755 ac_cv_lib_dl_dlopen=no
7757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758 LIBS=$ac_check_lib_save_LIBS
7760 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7761 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7762 if test $ac_cv_lib_dl_dlopen = yes; then
7763 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7768 lt_cv_dlopen_self=yes
7775 echo "$as_me:$LINENO: checking for shl_load" >&5
7776 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7777 if test "${ac_cv_func_shl_load+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 cat >conftest.$ac_ext <<_ACEOF
7781 #line $LINENO "configure"
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7787 /* System header to define __stub macros and hopefully few prototypes,
7788 which can conflict with char shl_load (); below.
7789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7790 <limits.h> exists even on freestanding compilers. */
7792 # include <limits.h>
7794 # include <assert.h>
7796 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7804 /* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7810 char (*f) () = shl_load;
7819 return f != shl_load;
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826 (eval $ac_link) 2>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try='test -s conftest$ac_exeext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_func_shl_load=yes
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7841 ac_cv_func_shl_load=no
7843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7845 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7846 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7847 if test $ac_cv_func_shl_load = yes; then
7848 lt_cv_dlopen="shl_load"
7850 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 ac_check_lib_save_LIBS=$LIBS
7857 cat >conftest.$ac_ext <<_ACEOF
7858 #line $LINENO "configure"
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7865 /* Override any gcc2 internal prototype to avoid an error. */
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_lib_dld_shl_load=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 ac_cv_lib_dld_shl_load=no
7899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7900 LIBS=$ac_check_lib_save_LIBS
7902 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7903 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7904 if test $ac_cv_lib_dld_shl_load = yes; then
7905 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7907 echo "$as_me:$LINENO: checking for dlopen" >&5
7908 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7909 if test "${ac_cv_func_dlopen+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 cat >conftest.$ac_ext <<_ACEOF
7913 #line $LINENO "configure"
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 /* System header to define __stub macros and hopefully few prototypes,
7920 which can conflict with char dlopen (); below.
7921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7922 <limits.h> exists even on freestanding compilers. */
7924 # include <limits.h>
7926 # include <assert.h>
7928 /* Override any gcc2 internal prototype to avoid an error. */
7933 /* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7936 /* The GNU C library defines this for functions which it implements
7937 to always fail with ENOSYS. Some functions are actually named
7938 something starting with __ and the normal name is an alias. */
7939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7942 char (*f) () = dlopen;
7956 rm -f conftest.$ac_objext conftest$ac_exeext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7958 (eval $ac_link) 2>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -s conftest$ac_exeext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_func_dlopen=yes
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_func_dlopen=no
7975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7977 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7978 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7979 if test $ac_cv_func_dlopen = yes; then
7980 lt_cv_dlopen="dlopen"
7982 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7983 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 ac_check_lib_save_LIBS=$LIBS
7989 cat >conftest.$ac_ext <<_ACEOF
7990 #line $LINENO "configure"
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7997 /* Override any gcc2 internal prototype to avoid an error. */
8001 /* We use char because int might match the return type of a gcc2
8002 builtin and then its argument prototype would still apply. */
8012 rm -f conftest.$ac_objext conftest$ac_exeext
8013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014 (eval $ac_link) 2>&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -s conftest$ac_exeext'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; }; then
8024 ac_cv_lib_dl_dlopen=yes
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8029 ac_cv_lib_dl_dlopen=no
8031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8032 LIBS=$ac_check_lib_save_LIBS
8034 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8035 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8036 if test $ac_cv_lib_dl_dlopen = yes; then
8037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8039 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8040 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8041 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 ac_check_lib_save_LIBS=$LIBS
8046 cat >conftest.$ac_ext <<_ACEOF
8047 #line $LINENO "configure"
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8054 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 ac_cv_lib_svld_dlopen=yes
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8086 ac_cv_lib_svld_dlopen=no
8088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8089 LIBS=$ac_check_lib_save_LIBS
8091 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8092 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8093 if test $ac_cv_lib_svld_dlopen = yes; then
8094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8096 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8097 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8098 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 ac_check_lib_save_LIBS=$LIBS
8103 cat >conftest.$ac_ext <<_ACEOF
8104 #line $LINENO "configure"
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8111 /* Override any gcc2 internal prototype to avoid an error. */
8115 /* We use char because int might match the return type of a gcc2
8116 builtin and then its argument prototype would still apply. */
8126 rm -f conftest.$ac_objext conftest$ac_exeext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8128 (eval $ac_link) 2>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -s conftest$ac_exeext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_cv_lib_dld_dld_link=yes
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8143 ac_cv_lib_dld_dld_link=no
8145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8146 LIBS=$ac_check_lib_save_LIBS
8148 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8149 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8150 if test $ac_cv_lib_dld_dld_link = yes; then
8151 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8172 if test "x$lt_cv_dlopen" != xno; then
8178 case $lt_cv_dlopen in
8180 save_CPPFLAGS="$CPPFLAGS"
8181 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8183 save_LDFLAGS="$LDFLAGS"
8184 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8187 LIBS="$lt_cv_dlopen_libs $LIBS"
8189 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8190 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8191 if test "${lt_cv_dlopen_self+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 if test "$cross_compiling" = yes; then :
8195 lt_cv_dlopen_self=cross
8197 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8198 lt_status=$lt_dlunknown
8199 cat > conftest.$ac_ext <<EOF
8200 #line 8200 "configure"
8201 #include "confdefs.h"
8210 # define LT_DLGLOBAL RTLD_GLOBAL
8213 # define LT_DLGLOBAL DL_GLOBAL
8215 # define LT_DLGLOBAL 0
8219 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8220 find out it does not work in some platform. */
8221 #ifndef LT_DLLAZY_OR_NOW
8223 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8226 # define LT_DLLAZY_OR_NOW DL_LAZY
8229 # define LT_DLLAZY_OR_NOW RTLD_NOW
8232 # define LT_DLLAZY_OR_NOW DL_NOW
8234 # define LT_DLLAZY_OR_NOW 0
8242 extern "C" void exit (int);
8245 void fnord() { int i=42;}
8248 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8249 int status = $lt_dlunknown;
8253 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8254 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8255 /* dlclose (self); */
8261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8262 (eval $ac_link) 2>&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8266 (./conftest; exit; ) 2>/dev/null
8269 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8270 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8271 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8274 # compilation failed
8275 lt_cv_dlopen_self=no
8282 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8283 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8285 if test "x$lt_cv_dlopen_self" = xyes; then
8286 LDFLAGS="$LDFLAGS $link_static_flag"
8287 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8288 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8289 if test "${lt_cv_dlopen_self_static+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 if test "$cross_compiling" = yes; then :
8293 lt_cv_dlopen_self_static=cross
8295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8296 lt_status=$lt_dlunknown
8297 cat > conftest.$ac_ext <<EOF
8298 #line 8298 "configure"
8299 #include "confdefs.h"
8308 # define LT_DLGLOBAL RTLD_GLOBAL
8311 # define LT_DLGLOBAL DL_GLOBAL
8313 # define LT_DLGLOBAL 0
8317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8318 find out it does not work in some platform. */
8319 #ifndef LT_DLLAZY_OR_NOW
8321 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8324 # define LT_DLLAZY_OR_NOW DL_LAZY
8327 # define LT_DLLAZY_OR_NOW RTLD_NOW
8330 # define LT_DLLAZY_OR_NOW DL_NOW
8332 # define LT_DLLAZY_OR_NOW 0
8340 extern "C" void exit (int);
8343 void fnord() { int i=42;}
8346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8347 int status = $lt_dlunknown;
8351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8352 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8353 /* dlclose (self); */
8359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360 (eval $ac_link) 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8364 (./conftest; exit; ) 2>/dev/null
8367 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8368 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8369 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8372 # compilation failed
8373 lt_cv_dlopen_self_static=no
8380 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8381 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8384 CPPFLAGS="$save_CPPFLAGS"
8385 LDFLAGS="$save_LDFLAGS"
8390 case $lt_cv_dlopen_self in
8391 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8392 *) enable_dlopen_self=unknown ;;
8395 case $lt_cv_dlopen_self_static in
8396 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8397 *) enable_dlopen_self_static=unknown ;;
8402 # Report which librarie types wil actually be built
8403 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8404 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8405 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8406 echo "${ECHO_T}$can_build_shared" >&6
8408 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8409 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8410 test "$can_build_shared" = "no" && enable_shared=no
8412 # On AIX, shared libraries and static libraries use the same namespace, and
8413 # are all built from PIC.
8416 test "$enable_shared" = yes && enable_static=no
8417 if test -n "$RANLIB"; then
8418 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8419 postinstall_cmds='$RANLIB $lib'
8424 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8425 test "$enable_shared" = yes && enable_static=no
8428 darwin* | rhapsody*)
8429 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8430 archive_cmds_need_lc=no
8432 rhapsody* | darwin1.[012])
8433 allow_undefined_flag='-undefined suppress'
8436 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8439 # FIXME: Relying on posixy $() will cause problems for
8440 # cross-compilation, but unfortunately the echo tests do not
8441 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8442 # `"' quotes if we put them in here... so don't!
8443 output_verbose_link_cmd='echo'
8444 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8445 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8447 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}'
8448 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}'
8450 hardcode_automatic=yes
8451 hardcode_shlibpath_var=unsupported
8452 whole_archive_flag_spec='-all_load $convenience'
8453 link_all_deplibs=yes
8457 echo "$as_me:$LINENO: result: $enable_shared" >&5
8458 echo "${ECHO_T}$enable_shared" >&6
8460 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8461 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8462 # Make sure either enable_shared or enable_static is yes.
8463 test "$enable_shared" = yes || enable_static=yes
8464 echo "$as_me:$LINENO: result: $enable_static" >&5
8465 echo "${ECHO_T}$enable_static" >&6
8467 # The else clause should only fire when bootstrapping the
8468 # libtool distribution, otherwise you forgot to ship ltmain.sh
8469 # with your package, and you will get complaints that there are
8470 # no rules to generate ltmain.sh.
8471 if test -f "$ltmain"; then
8472 # See if we are running on zsh, and set the options which allow our commands through
8473 # without removal of \ escapes.
8474 if test -n "${ZSH_VERSION+set}" ; then
8475 setopt NO_GLOB_SUBST
8477 # Now quote all the things that may contain metacharacters while being
8478 # careful not to overquote the AC_SUBSTed values. We take copies of the
8479 # variables and quote the copies for generation of the libtool script.
8480 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8481 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8482 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8483 deplibs_check_method reload_flag reload_cmds need_locks \
8484 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8485 lt_cv_sys_global_symbol_to_c_name_address \
8486 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8487 old_postinstall_cmds old_postuninstall_cmds \
8491 lt_prog_compiler_wl \
8492 lt_prog_compiler_pic \
8493 lt_prog_compiler_static \
8494 lt_prog_compiler_no_builtin_flag \
8495 export_dynamic_flag_spec \
8496 thread_safe_flag_spec \
8497 whole_archive_flag_spec \
8498 enable_shared_with_static_runtimes \
8500 old_archive_from_new_cmds \
8505 compiler_lib_search_path \
8507 archive_expsym_cmds \
8509 postuninstall_cmds \
8510 old_archive_from_expsyms_cmds \
8511 allow_undefined_flag \
8513 export_symbols_cmds \
8514 hardcode_libdir_flag_spec \
8515 hardcode_libdir_flag_spec_ld \
8516 hardcode_libdir_separator \
8517 hardcode_automatic \
8519 module_expsym_cmds \
8520 lt_cv_prog_compiler_c_o \
8525 old_archive_cmds | \
8526 old_archive_from_new_cmds | \
8528 archive_expsym_cmds | \
8530 module_expsym_cmds | \
8531 old_archive_from_expsyms_cmds | \
8532 export_symbols_cmds | \
8533 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8534 postinstall_cmds | postuninstall_cmds | \
8535 old_postinstall_cmds | old_postuninstall_cmds | \
8536 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8537 # Double-quote double-evaled strings.
8538 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8541 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8547 *'\$0 --fallback-echo"')
8548 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8553 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8555 { echo "$as_me:$LINENO: creating $ofile" >&5
8556 echo "$as_me: creating $ofile" >&6;}
8558 cat <<__EOF__ >> "$cfgfile"
8561 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8562 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8563 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8565 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8566 # Free Software Foundation, Inc.
8568 # This file is part of GNU Libtool:
8569 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8571 # This program is free software; you can redistribute it and/or modify
8572 # it under the terms of the GNU General Public License as published by
8573 # the Free Software Foundation; either version 2 of the License, or
8574 # (at your option) any later version.
8576 # This program is distributed in the hope that it will be useful, but
8577 # WITHOUT ANY WARRANTY; without even the implied warranty of
8578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8579 # General Public License for more details.
8581 # You should have received a copy of the GNU General Public License
8582 # along with this program; if not, write to the Free Software
8583 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8585 # As a special exception to the GNU General Public License, if you
8586 # distribute this file as part of a program that contains a
8587 # configuration script generated by Autoconf, you may include it under
8588 # the same distribution terms that you use for the rest of that program.
8590 # A sed program that does not truncate output.
8593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8594 Xsed="$SED -e s/^X//"
8596 # The HP-UX ksh and POSIX shell print the target directory to stdout
8598 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8600 # The names of the tagged configurations supported by this script.
8603 # ### BEGIN LIBTOOL CONFIG
8605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8607 # Shell to use when invoking shell scripts.
8610 # Whether or not to build shared libraries.
8611 build_libtool_libs=$enable_shared
8613 # Whether or not to build static libraries.
8614 build_old_libs=$enable_static
8616 # Whether or not to add -lc for building shared libraries.
8617 build_libtool_need_lc=$archive_cmds_need_lc
8619 # Whether or not to disallow shared libs when runtime libs are static
8620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8622 # Whether or not to optimize for fast installation.
8623 fast_install=$enable_fast_install
8626 host_alias=$host_alias
8629 # An echo program that does not interpret backslashes.
8634 AR_FLAGS=$lt_AR_FLAGS
8639 # A language-specific compiler.
8642 # Is the compiler the GNU C compiler?
8648 # The linker used to build libraries.
8651 # Whether we need hard or soft links.
8654 # A BSD-compatible nm program.
8657 # A symbol stripping program
8660 # Used to examine libraries when file_magic_cmd begins "file"
8661 MAGIC_CMD=$MAGIC_CMD
8663 # Used on cygwin: DLL creation program.
8666 # Used on cygwin: object dumper.
8669 # Used on cygwin: assembler.
8672 # The name of the directory that contains temporary libtool files.
8675 # How to create reloadable object files.
8676 reload_flag=$lt_reload_flag
8677 reload_cmds=$lt_reload_cmds
8679 # How to pass a linker flag through the compiler.
8680 wl=$lt_lt_prog_compiler_wl
8682 # Object file suffix (normally "o").
8685 # Old archive suffix (normally "a").
8688 # Shared library suffix (normally ".so").
8691 # Executable file suffix (normally "").
8694 # Additional compiler flags for building library objects.
8695 pic_flag=$lt_lt_prog_compiler_pic
8698 # What is the maximum length of a command?
8699 max_cmd_len=$lt_cv_sys_max_cmd_len
8701 # Does compiler simultaneously support -c and -o options?
8702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8704 # Must we lock files when doing compilation ?
8705 need_locks=$lt_need_locks
8707 # Do we need the lib prefix for modules?
8708 need_lib_prefix=$need_lib_prefix
8710 # Do we need a version for libraries?
8711 need_version=$need_version
8713 # Whether dlopen is supported.
8714 dlopen_support=$enable_dlopen
8716 # Whether dlopen of programs is supported.
8717 dlopen_self=$enable_dlopen_self
8719 # Whether dlopen of statically linked programs is supported.
8720 dlopen_self_static=$enable_dlopen_self_static
8722 # Compiler flag to prevent dynamic linking.
8723 link_static_flag=$lt_lt_prog_compiler_static
8725 # Compiler flag to turn off builtin functions.
8726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8728 # Compiler flag to allow reflexive dlopens.
8729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8731 # Compiler flag to generate shared objects directly from archives.
8732 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8734 # Compiler flag to generate thread-safe objects.
8735 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8737 # Library versioning type.
8738 version_type=$version_type
8740 # Format of library name prefix.
8741 libname_spec=$lt_libname_spec
8743 # List of archive names. First name is the real one, the rest are links.
8744 # The last name is the one that the linker finds with -lNAME.
8745 library_names_spec=$lt_library_names_spec
8747 # The coded name of the library, if different from the real name.
8748 soname_spec=$lt_soname_spec
8750 # Commands used to build and install an old-style archive.
8752 old_archive_cmds=$lt_old_archive_cmds
8753 old_postinstall_cmds=$lt_old_postinstall_cmds
8754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8756 # Create an old-style archive from a shared archive.
8757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8759 # Create a temporary old-style archive to link instead of a shared archive.
8760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8762 # Commands used to build and install a shared archive.
8763 archive_cmds=$lt_archive_cmds
8764 archive_expsym_cmds=$lt_archive_expsym_cmds
8765 postinstall_cmds=$lt_postinstall_cmds
8766 postuninstall_cmds=$lt_postuninstall_cmds
8768 # Commands used to build a loadable module (assumed same as above if empty)
8769 module_cmds=$lt_module_cmds
8770 module_expsym_cmds=$lt_module_expsym_cmds
8772 # Commands to strip libraries.
8773 old_striplib=$lt_old_striplib
8774 striplib=$lt_striplib
8776 # Dependencies to place before the objects being linked to create a
8778 predep_objects=$lt_predep_objects
8780 # Dependencies to place after the objects being linked to create a
8782 postdep_objects=$lt_postdep_objects
8784 # Dependencies to place before the objects being linked to create a
8788 # Dependencies to place after the objects being linked to create a
8790 postdeps=$lt_postdeps
8792 # The library search path used internally by the compiler when linking
8794 compiler_lib_search_path=$lt_compiler_lib_search_path
8796 # Method to check whether dependent libraries are shared objects.
8797 deplibs_check_method=$lt_deplibs_check_method
8799 # Command to use when deplibs_check_method == file_magic.
8800 file_magic_cmd=$lt_file_magic_cmd
8802 # Flag that allows shared libraries with undefined symbols to be built.
8803 allow_undefined_flag=$lt_allow_undefined_flag
8805 # Flag that forces no undefined symbols.
8806 no_undefined_flag=$lt_no_undefined_flag
8808 # Commands used to finish a libtool library installation in a directory.
8809 finish_cmds=$lt_finish_cmds
8811 # Same as above, but a single script fragment to be evaled but not shown.
8812 finish_eval=$lt_finish_eval
8814 # Take the output of nm and produce a listing of raw symbols and C names.
8815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8817 # Transform the output of nm in a proper C declaration
8818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8820 # Transform the output of nm in a C name address pair
8821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8823 # This is the shared library runtime path variable.
8824 runpath_var=$runpath_var
8826 # This is the shared library path variable.
8827 shlibpath_var=$shlibpath_var
8829 # Is shlibpath searched before the hard-coded library search path?
8830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8832 # How to hardcode a shared library path into an executable.
8833 hardcode_action=$hardcode_action
8835 # Whether we should hardcode library paths into libraries.
8836 hardcode_into_libs=$hardcode_into_libs
8838 # Flag to hardcode \$libdir into a binary during linking.
8839 # This must work even if \$libdir does not exist.
8840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8842 # If ld is used when linking, flag to hardcode \$libdir into
8843 # a binary during linking. This must work even if \$libdir does
8845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8847 # Whether we need a single -rpath flag with a separated argument.
8848 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8852 hardcode_direct=$hardcode_direct
8854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8856 hardcode_minus_L=$hardcode_minus_L
8858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8859 # the resulting binary.
8860 hardcode_shlibpath_var=$hardcode_shlibpath_var
8862 # Set to yes if building a shared library automatically hardcodes DIR into the library
8863 # and all subsequent libraries and executables linked against it.
8864 hardcode_automatic=$hardcode_automatic
8866 # Variables whose values should be saved in libtool wrapper scripts and
8867 # restored at relink time.
8868 variables_saved_for_relink="$variables_saved_for_relink"
8870 # Whether libtool must link a program against all its dependency libraries.
8871 link_all_deplibs=$link_all_deplibs
8873 # Compile-time system search path for libraries
8874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8876 # Run-time system search path for libraries
8877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8879 # Fix the shell variable \$srcfile for the compiler.
8880 fix_srcfile_path="$fix_srcfile_path"
8882 # Set to yes if exported symbols are required.
8883 always_export_symbols=$always_export_symbols
8885 # The commands to list exported symbols.
8886 export_symbols_cmds=$lt_export_symbols_cmds
8888 # The commands to extract the exported symbol list from a shared archive.
8889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8891 # Symbols that should not be listed in the preloaded symbols.
8892 exclude_expsyms=$lt_exclude_expsyms
8894 # Symbols that must always be exported.
8895 include_expsyms=$lt_include_expsyms
8897 # ### END LIBTOOL CONFIG
8904 cat <<\EOF >> "$cfgfile"
8906 # AIX sometimes has problems with the GCC collect2 program. For some
8907 # reason, if we set the COLLECT_NAMES environment variable, the problems
8908 # vanish in a puff of smoke.
8909 if test "X${COLLECT_NAMES+set}" != Xset; then
8911 export COLLECT_NAMES
8917 # We use sed instead of cat because bash on DJGPP gets confused if
8918 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8919 # text mode, it properly converts lines to CR/LF. This bash problem
8920 # is reportedly fixed, but why not run on old versions too?
8921 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8923 mv -f "$cfgfile" "$ofile" || \
8924 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8928 # If there is no Makefile yet, we rely on a make rule to execute
8929 # `config.status --recheck' to rerun these tests and create the
8930 # libtool script then.
8931 test -f Makefile && make "$ltmain"
8936 ac_cpp='$CPP $CPPFLAGS'
8937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8944 # Check whether --with-tags or --without-tags was given.
8945 if test "${with_tags+set}" = set; then
8946 withval="$with_tags"
8950 if test -f "$ltmain" && test -n "$tagnames"; then
8951 if test ! -f "${ofile}"; then
8952 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8953 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8956 if test -z "$LTCC"; then
8957 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8958 if test -z "$LTCC"; then
8959 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8960 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8963 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8967 # Extract list of available tagged configurations in $ofile.
8968 # Note that this assumes the entire list is on one line.
8969 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8972 for tagname in $tagnames; do
8974 # Check whether tagname contains only valid characters
8975 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8977 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8978 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8979 { (exit 1); exit 1; }; }
8983 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8985 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8986 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8987 { (exit 1); exit 1; }; }
8990 # Update the list of available tags.
8991 if test -n "$tagname"; then
8992 echo appending configuration tag \"$tagname\" to $ofile
8996 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8998 ac_cpp='$CXXCPP $CPPFLAGS'
8999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9006 archive_cmds_need_lc_CXX=no
9007 allow_undefined_flag_CXX=
9008 always_export_symbols_CXX=no
9009 archive_expsym_cmds_CXX=
9010 export_dynamic_flag_spec_CXX=
9011 hardcode_direct_CXX=no
9012 hardcode_libdir_flag_spec_CXX=
9013 hardcode_libdir_flag_spec_ld_CXX=
9014 hardcode_libdir_separator_CXX=
9015 hardcode_minus_L_CXX=no
9016 hardcode_automatic_CXX=no
9018 module_expsym_cmds_CXX=
9019 link_all_deplibs_CXX=unknown
9020 old_archive_cmds_CXX=$old_archive_cmds
9021 no_undefined_flag_CXX=
9022 whole_archive_flag_spec_CXX=
9023 enable_shared_with_static_runtimes_CXX=no
9025 # Dependencies to place before and after the object being linked:
9027 postdep_objects_CXX=
9030 compiler_lib_search_path_CXX=
9032 # Source file extension for C++ test sources.
9035 # Object file extension for compiled C++ test sources.
9039 # Code to be used in simple compile tests
9040 lt_simple_compile_test_code="int some_variable = 0;\n"
9042 # Code to be used in simple link tests
9043 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9045 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9047 # If no C compiler was specified, use CC.
9050 # Allow CC to be a program name with arguments.
9054 # Allow CC to be a program name with arguments.
9059 lt_save_with_gnu_ld=$with_gnu_ld
9060 lt_save_path_LD=$lt_cv_path_LD
9061 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9062 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9064 unset lt_cv_prog_gnu_ld
9066 if test -n "${lt_cv_path_LDCXX+set}"; then
9067 lt_cv_path_LD=$lt_cv_path_LDCXX
9071 test -z "${LDCXX+set}" || LD=$LDCXX
9075 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9077 # We don't want -fno-exception wen compiling C++ code, so set the
9078 # no_builtin_flag separately
9079 if test "$GXX" = yes; then
9080 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9082 lt_prog_compiler_no_builtin_flag_CXX=
9085 if test "$GXX" = yes; then
9086 # Set up default GNU C++ configuration
9089 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9090 if test "${with_gnu_ld+set}" = set; then
9091 withval="$with_gnu_ld"
9092 test "$withval" = no || with_gnu_ld=yes
9097 if test "$GCC" = yes; then
9098 # Check if gcc -print-prog-name=ld gives a path.
9099 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9100 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9103 # gcc leaves a trailing carriage return which upsets mingw
9104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9109 # Accept absolute paths.
9111 re_direlt='/[^/][^/]*/\.\./'
9112 # Canonicalize the path of ld
9113 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9114 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9115 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9117 test -z "$LD" && LD="$ac_prog"
9120 # If it fails, then pretend we aren't using GCC.
9124 # If it is relative, then search for the first ld in PATH.
9128 elif test "$with_gnu_ld" = yes; then
9129 echo "$as_me:$LINENO: checking for GNU ld" >&5
9130 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9132 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9133 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9135 if test "${lt_cv_path_LD+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 if test -z "$LD"; then
9139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9140 for ac_dir in $PATH; do
9142 test -z "$ac_dir" && ac_dir=.
9143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9144 lt_cv_path_LD="$ac_dir/$ac_prog"
9145 # Check to see if the program is GNU ld. I'd rather use --version,
9146 # but apparently some GNU ld's only accept -v.
9147 # Break only if it was the GNU/non-GNU ld that we prefer.
9148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9149 *GNU* | *'with BFD'*)
9150 test "$with_gnu_ld" != no && break
9153 test "$with_gnu_ld" != yes && break
9160 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9165 if test -n "$LD"; then
9166 echo "$as_me:$LINENO: result: $LD" >&5
9167 echo "${ECHO_T}$LD" >&6
9169 echo "$as_me:$LINENO: result: no" >&5
9170 echo "${ECHO_T}no" >&6
9172 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9173 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9174 { (exit 1); exit 1; }; }
9175 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9176 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9177 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9181 case `"$LD" -v 2>&1 </dev/null` in
9182 *GNU* | *'with BFD'*)
9183 lt_cv_prog_gnu_ld=yes
9186 lt_cv_prog_gnu_ld=no
9190 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9191 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9192 with_gnu_ld=$lt_cv_prog_gnu_ld
9196 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9197 # archiving commands below assume that GNU ld is being used.
9198 if test "$with_gnu_ld" = yes; then
9199 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200 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'
9202 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9205 # If archive_cmds runs LD, not CC, wlarc should be empty
9206 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9207 # investigate it a little bit more. (MM)
9210 # ancient GNU ld didn't support --whole-archive et. al.
9211 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9212 grep 'no-whole-archive' > /dev/null; then
9213 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9215 whole_archive_flag_spec_CXX=
9221 # A generic and very simple default shared library creation
9222 # command for GNU C++ for the case where it uses the native
9223 # linker, instead of GNU ld. If possible, this setting should
9224 # overridden to take advantage of the native linker features on
9225 # the platform it is being used on.
9226 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9229 # Commands to make compiler produce verbose output that lists
9230 # what "hidden" libraries, object files and flags are used when
9231 # linking a shared library.
9232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9240 # PORTME: fill in a description of your system's C++ link characteristics
9241 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9246 # FIXME: insert proper C++ library support
9250 if test "$host_cpu" = ia64; then
9251 # On IA64, the linker does run time linking by default, so we don't
9252 # have to do anything special.
9253 aix_use_runtimelinking=no
9254 exp_sym_flag='-Bexport'
9257 aix_use_runtimelinking=no
9259 # Test if we are trying to use run time linking or normal
9260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9261 # need to do runtime linking.
9262 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9263 for ld_flag in $LDFLAGS; do
9266 aix_use_runtimelinking=yes
9273 exp_sym_flag='-bexport'
9274 no_entry_flag='-bnoentry'
9277 # When large executables or shared objects are built, AIX ld can
9278 # have problems creating the table of contents. If linking a library
9279 # or program results in "error TOC overflow" add -mminimal-toc to
9280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9284 hardcode_direct_CXX=yes
9285 hardcode_libdir_separator_CXX=':'
9286 link_all_deplibs_CXX=yes
9288 if test "$GXX" = yes; then
9289 case $host_os in aix4.012|aix4.012.*)
9290 # We only want to do this on AIX 4.2 and lower, the check
9291 # below for broken collect2 doesn't work under 4.3+
9292 collect2name=`${CC} -print-prog-name=collect2`
9293 if test -f "$collect2name" && \
9294 strings "$collect2name" | grep resolve_lib_name >/dev/null
9296 # We have reworked collect2
9297 hardcode_direct_CXX=yes
9299 # We have old collect2
9300 hardcode_direct_CXX=unsupported
9301 # It fails to find uninstalled libraries when the uninstalled
9302 # path is not listed in the libpath. Setting hardcode_minus_L
9303 # to unsupported forces relinking
9304 hardcode_minus_L_CXX=yes
9305 hardcode_libdir_flag_spec_CXX='-L$libdir'
9306 hardcode_libdir_separator_CXX=
9309 shared_flag='-shared'
9312 if test "$host_cpu" = ia64; then
9313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9314 # chokes on -Wl,-G. The following line is correct:
9317 if test "$aix_use_runtimelinking" = yes; then
9318 shared_flag='${wl}-G'
9320 shared_flag='${wl}-bM:SRE'
9325 # It seems that -bexpall does not export symbols beginning with
9326 # underscore (_), so it is better to generate a list of symbols to export.
9327 always_export_symbols_CXX=yes
9328 if test "$aix_use_runtimelinking" = yes; then
9329 # Warning - without using the other runtime loading flags (-brtl),
9330 # -berok will link without error, but may produce a broken library.
9331 allow_undefined_flag_CXX='-berok'
9332 # Determine the default libpath from the value encoded in an empty executable.
9333 cat >conftest.$ac_ext <<_ACEOF
9334 #line $LINENO "configure"
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -s conftest$ac_exeext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9364 # Check for a 64-bit object if we didn't find anything.
9365 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; }
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9375 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9377 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"
9379 if test "$host_cpu" = ia64; then
9380 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9381 allow_undefined_flag_CXX="-z nodefs"
9382 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"
9384 # Determine the default libpath from the value encoded in an empty executable.
9385 cat >conftest.$ac_ext <<_ACEOF
9386 #line $LINENO "configure"
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9416 # Check for a 64-bit object if we didn't find anything.
9417 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; }
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9427 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9428 # Warning - without using the other run time loading flags,
9429 # -berok will link without error, but may produce a broken library.
9430 no_undefined_flag_CXX=' ${wl}-bernotok'
9431 allow_undefined_flag_CXX=' ${wl}-berok'
9432 # -bexpall does not export symbols beginning with underscore (_)
9433 always_export_symbols_CXX=yes
9434 # Exported symbols can be pulled into shared objects from archives
9435 whole_archive_flag_spec_CXX=' '
9436 archive_cmds_need_lc_CXX=yes
9437 # This is similar to how AIX traditionally builds it's shared libraries.
9438 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'
9443 case $cc_basename in
9445 # FIXME: insert proper C++ library support
9451 cygwin* | mingw* | pw32*)
9452 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9453 # as there is no search path for DLLs.
9454 hardcode_libdir_flag_spec_CXX='-L$libdir'
9455 allow_undefined_flag_CXX=unsupported
9456 always_export_symbols_CXX=no
9457 enable_shared_with_static_runtimes_CXX=yes
9459 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9460 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'
9461 # If the export-symbols file already is a .def file (1st line
9462 # is EXPORTS), use it as is; otherwise, prepend...
9463 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9464 cp $export_symbols $output_objdir/$soname.def;
9466 echo EXPORTS > $output_objdir/$soname.def;
9467 cat $export_symbols >> $output_objdir/$soname.def;
9469 $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'
9475 darwin* | rhapsody*)
9476 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9477 archive_cmds_need_lc_CXX=no
9479 rhapsody* | darwin1.[012])
9480 allow_undefined_flag_CXX='-undefined suppress'
9483 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9486 lt_int_apple_cc_single_mod=no
9487 output_verbose_link_cmd='echo'
9488 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9489 lt_int_apple_cc_single_mod=yes
9491 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9492 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9494 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'
9496 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9498 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9499 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9500 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}'
9502 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}'
9504 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}'
9505 hardcode_direct_CXX=no
9506 hardcode_automatic_CXX=yes
9507 hardcode_shlibpath_var_CXX=unsupported
9508 whole_archive_flag_spec_CXX='-all_load $convenience'
9509 link_all_deplibs_CXX=yes
9514 case $cc_basename in
9516 # FIXME: insert proper C++ library support
9520 # Green Hills C++ Compiler
9521 # FIXME: insert proper C++ library support
9525 # FIXME: insert proper C++ library support
9531 # C++ shared libraries reported to be fairly broken before switch to ELF
9535 archive_cmds_need_lc_CXX=no
9538 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9545 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9546 hardcode_libdir_separator_CXX=:
9547 export_dynamic_flag_spec_CXX='${wl}-E'
9548 hardcode_direct_CXX=yes
9549 hardcode_minus_L_CXX=yes # Not in the search PATH,
9550 # but as the default
9551 # location of the library.
9553 case $cc_basename in
9555 # FIXME: insert proper C++ library support
9559 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'
9560 # Commands to make compiler produce verbose output that lists
9561 # what "hidden" libraries, object files and flags are used when
9562 # linking a shared library.
9564 # There doesn't appear to be a way to prevent this compiler from
9565 # explicitly linking system object files so we need to strip them
9566 # from the output so that they don't get included in the library
9568 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'
9571 if test "$GXX" = yes; then
9572 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'
9574 # FIXME: insert proper C++ library support
9581 if test $with_gnu_ld = no; then
9584 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9585 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9586 hardcode_libdir_separator_CXX=:
9589 hardcode_libdir_flag_spec_CXX='-L$libdir'
9592 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9593 hardcode_libdir_separator_CXX=:
9594 export_dynamic_flag_spec_CXX='${wl}-E'
9600 hardcode_direct_CXX=no
9601 hardcode_shlibpath_var_CXX=no
9604 hardcode_direct_CXX=no
9605 hardcode_shlibpath_var_CXX=no
9606 hardcode_minus_L_CXX=yes # Not in the search PATH,
9607 # but as the default
9608 # location of the library.
9611 hardcode_direct_CXX=yes
9612 hardcode_minus_L_CXX=yes # Not in the search PATH,
9613 # but as the default
9614 # location of the library.
9618 case $cc_basename in
9620 # FIXME: insert proper C++ library support
9626 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9629 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9632 # Commands to make compiler produce verbose output that lists
9633 # what "hidden" libraries, object files and flags are used when
9634 # linking a shared library.
9636 # There doesn't appear to be a way to prevent this compiler from
9637 # explicitly linking system object files so we need to strip them
9638 # from the output so that they don't get included in the library
9640 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'
9643 if test "$GXX" = yes; then
9644 if test $with_gnu_ld = no; then
9647 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9650 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'
9655 # FIXME: insert proper C++ library support
9662 case $cc_basename in
9665 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'
9667 # Archives containing C++ object files must be created using
9668 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9669 # necessary to make sure instantiated templates are included
9671 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9674 if test "$GXX" = yes; then
9675 if test "$with_gnu_ld" = no; then
9676 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'
9678 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'
9681 link_all_deplibs_CXX=yes
9684 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9685 hardcode_libdir_separator_CXX=:
9688 case $cc_basename in
9690 # Kuck and Associates, Inc. (KAI) C++ Compiler
9692 # KCC will only create a shared library if the output file
9693 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9694 # to its proper name (with version) after linking.
9695 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'
9696 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'
9697 # Commands to make compiler produce verbose output that lists
9698 # what "hidden" libraries, object files and flags are used when
9699 # linking a shared library.
9701 # There doesn't appear to be a way to prevent this compiler from
9702 # explicitly linking system object files so we need to strip them
9703 # from the output so that they don't get included in the library
9705 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'
9707 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9708 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9710 # Archives containing C++ object files must be created using
9711 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9712 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9717 archive_cmds_need_lc_CXX=no
9718 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9719 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'
9720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9722 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9726 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727 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'
9729 runpath_var=LD_RUN_PATH
9730 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9731 hardcode_libdir_separator_CXX=:
9733 # Commands to make compiler produce verbose output that lists
9734 # what "hidden" libraries, object files and flags are used when
9735 # linking a shared library.
9737 # There doesn't appear to be a way to prevent this compiler from
9738 # explicitly linking system object files so we need to strip them
9739 # from the output so that they don't get included in the library
9741 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'
9746 # FIXME: insert proper C++ library support
9750 # FIXME: insert proper C++ library support
9754 case $cc_basename in
9756 # FIXME: insert proper C++ library support
9760 # FIXME: insert proper C++ library support
9766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9767 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9769 hardcode_libdir_flag_spec_CXX='-R$libdir'
9770 hardcode_direct_CXX=yes
9771 hardcode_shlibpath_var_CXX=no
9773 # Workaround some broken pre-1.5 toolchains
9774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9777 case $cc_basename in
9779 # Kuck and Associates, Inc. (KAI) C++ Compiler
9781 # KCC will only create a shared library if the output file
9782 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9783 # to its proper name (with version) after linking.
9784 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'
9786 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9787 hardcode_libdir_separator_CXX=:
9789 # Archives containing C++ object files must be created using
9790 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9791 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9795 # Rational C++ 2.4.1
9796 # FIXME: insert proper C++ library support
9800 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9801 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'
9803 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9804 hardcode_libdir_separator_CXX=:
9806 # Commands to make compiler produce verbose output that lists
9807 # what "hidden" libraries, object files and flags are used when
9808 # linking a shared library.
9810 # There doesn't appear to be a way to prevent this compiler from
9811 # explicitly linking system object files so we need to strip them
9812 # from the output so that they don't get included in the library
9814 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'
9817 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9818 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9819 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'
9821 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9822 hardcode_libdir_separator_CXX=:
9824 # Commands to make compiler produce verbose output that lists
9825 # what "hidden" libraries, object files and flags are used when
9826 # linking a shared library.
9827 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9830 # FIXME: insert proper C++ library support
9837 case $cc_basename in
9839 # Kuck and Associates, Inc. (KAI) C++ Compiler
9841 # KCC will only create a shared library if the output file
9842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9843 # to its proper name (with version) after linking.
9844 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'
9846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9847 hardcode_libdir_separator_CXX=:
9849 # Archives containing C++ object files must be created using
9850 # the KAI C++ compiler.
9851 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9854 # Rational C++ 2.4.1
9855 # FIXME: insert proper C++ library support
9859 allow_undefined_flag_CXX=' -expect_unresolved \*'
9860 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'
9861 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9862 echo "-hidden">> $lib.exp~
9863 $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~
9866 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9867 hardcode_libdir_separator_CXX=:
9869 # Commands to make compiler produce verbose output that lists
9870 # what "hidden" libraries, object files and flags are used when
9871 # linking a shared library.
9873 # There doesn't appear to be a way to prevent this compiler from
9874 # explicitly linking system object files so we need to strip them
9875 # from the output so that they don't get included in the library
9877 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'
9880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9881 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9882 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'
9884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9885 hardcode_libdir_separator_CXX=:
9887 # Commands to make compiler produce verbose output that lists
9888 # what "hidden" libraries, object files and flags are used when
9889 # linking a shared library.
9890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9893 # FIXME: insert proper C++ library support
9900 # FIXME: insert proper C++ library support
9904 archive_cmds_need_lc_CXX=no
9905 case $cc_basename in
9907 # FIXME: insert proper C++ library support
9911 # FIXME: insert proper C++ library support
9917 case $cc_basename in
9920 # FIXME: insert proper C++ library support
9925 # FIXME: insert proper C++ library support
9929 # FIXME: insert proper C++ library support
9935 case $cc_basename in
9937 # Sun C++ 4.2, 5.x and Centerline C++
9938 no_undefined_flag_CXX=' -zdefs'
9939 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9940 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9941 $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'
9943 hardcode_libdir_flag_spec_CXX='-R$libdir'
9944 hardcode_shlibpath_var_CXX=no
9946 solaris2.0-5 | solaris2.0-5.*) ;;
9948 # The C++ compiler is used as linker so we must use $wl
9949 # flag to pass the commands to the underlying system
9951 # Supported since Solaris 2.6 (maybe 2.5.1?)
9952 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9955 link_all_deplibs_CXX=yes
9957 # Commands to make compiler produce verbose output that lists
9958 # what "hidden" libraries, object files and flags are used when
9959 # linking a shared library.
9961 # There doesn't appear to be a way to prevent this compiler from
9962 # explicitly linking system object files so we need to strip them
9963 # from the output so that they don't get included in the library
9965 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'
9967 # Archives containing C++ object files must be created using
9968 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9969 # necessary to make sure instantiated templates are included
9971 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9974 # Green Hills C++ Compiler
9975 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9977 # The C++ compiler must be used to create the archive.
9978 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9981 # GNU C++ compiler with Solaris linker
9982 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9983 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9984 if $CC --version | grep -v '^2\.7' > /dev/null; then
9985 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9986 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9987 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9989 # Commands to make compiler produce verbose output that lists
9990 # what "hidden" libraries, object files and flags are used when
9991 # linking a shared library.
9992 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9994 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9996 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9997 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9998 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10000 # Commands to make compiler produce verbose output that lists
10001 # what "hidden" libraries, object files and flags are used when
10002 # linking a shared library.
10003 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10006 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10011 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10012 archive_cmds_need_lc_CXX=no
10015 case $cc_basename in
10017 # NonStop-UX NCC 3.20
10018 # FIXME: insert proper C++ library support
10022 # FIXME: insert proper C++ library support
10028 # FIXME: insert proper C++ library support
10032 # FIXME: insert proper C++ library support
10036 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10037 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10038 test "$ld_shlibs_CXX" = no && can_build_shared=no
10044 cat > conftest.$ac_ext <<EOF
10048 Foo (void) { a = 0; }
10054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; then
10059 # Parse the compiler output and extract the necessary
10060 # objects, libraries and library flags.
10062 # Sentinel used to keep track of whether or not we are before
10063 # the conftest object file.
10064 pre_test_object_deps_done=no
10066 # The `*' in the case matches for architectures that use `case' in
10067 # $output_verbose_cmd can trigger glob expansion during the loop
10068 # eval without this substitution.
10069 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10071 for p in `eval $output_verbose_link_cmd`; do
10075 # Some compilers place space between "-{L,R}" and the path.
10076 # Remove the space.
10077 if test $p = "-L" \
10078 || test $p = "-R"; then
10085 if test "$pre_test_object_deps_done" = no; then
10088 # Internal compiler library paths should come after those
10089 # provided the user. The postdeps already come after the
10090 # user supplied libs so there is no need to process them.
10091 if test -z "$compiler_lib_search_path_CXX"; then
10092 compiler_lib_search_path_CXX="${prev}${p}"
10094 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10097 # The "-l" case would never come before the object being
10098 # linked, so don't bother handling this case.
10101 if test -z "$postdeps_CXX"; then
10102 postdeps_CXX="${prev}${p}"
10104 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10110 # This assumes that the test object file only shows up
10111 # once in the compiler output.
10112 if test "$p" = "conftest.$objext"; then
10113 pre_test_object_deps_done=yes
10117 if test "$pre_test_object_deps_done" = no; then
10118 if test -z "$predep_objects_CXX"; then
10119 predep_objects_CXX="$p"
10121 predep_objects_CXX="$predep_objects_CXX $p"
10124 if test -z "$postdep_objects_CXX"; then
10125 postdep_objects_CXX="$p"
10127 postdep_objects_CXX="$postdep_objects_CXX $p"
10132 *) ;; # Ignore the rest.
10140 echo "libtool.m4: error: problem compiling CXX test program"
10143 $rm -f confest.$objext
10145 case " $postdeps_CXX " in
10146 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10149 lt_prog_compiler_wl_CXX=
10150 lt_prog_compiler_pic_CXX=
10151 lt_prog_compiler_static_CXX=
10153 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10154 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10156 # C++ specific cases for pic, static, wl, etc.
10157 if test "$GXX" = yes; then
10158 lt_prog_compiler_wl_CXX='-Wl,'
10159 lt_prog_compiler_static_CXX='-static'
10163 # All AIX code is PIC.
10164 if test "$host_cpu" = ia64; then
10165 # AIX 5 now supports IA64 processor
10166 lt_prog_compiler_static_CXX='-Bstatic'
10170 # FIXME: we need at least 68020 code to build shared libraries, but
10171 # adding the `-m68020' flag to GCC prevents building anything better,
10173 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10175 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10176 # PIC is the default for these OSes.
10178 mingw* | os2* | pw32*)
10179 # This hack is so that the source file can tell whether it is being
10180 # built for inclusion in a dll (and should export symbols for example).
10181 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10183 darwin* | rhapsody*)
10184 # PIC is the default on this platform
10185 # Common symbols not allowed in MH_DYLIB files
10186 lt_prog_compiler_pic_CXX='-fno-common'
10189 # DJGPP does not support shared libraries at all
10190 lt_prog_compiler_pic_CXX=
10193 if test -d /usr/nec; then
10194 lt_prog_compiler_pic_CXX=-Kconform_pic
10198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10199 # not for PA HP-UX.
10200 case "$host_cpu" in
10204 lt_prog_compiler_pic_CXX='-fPIC'
10209 lt_prog_compiler_pic_CXX='-fPIC'
10215 # All AIX code is PIC.
10216 if test "$host_cpu" = ia64; then
10217 # AIX 5 now supports IA64 processor
10218 lt_prog_compiler_static_CXX='-Bstatic'
10220 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10224 case $cc_basename in
10226 # Green Hills C++ Compiler
10227 # _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"
10232 case $cc_basename in
10234 lt_prog_compiler_pic_CXX='-KPIC'
10237 # Green Hills C++ Compiler
10238 lt_prog_compiler_pic_CXX='-pic'
10245 # FreeBSD uses GNU C++
10247 hpux9* | hpux10* | hpux11*)
10248 case $cc_basename in
10250 lt_prog_compiler_wl_CXX='-Wl,'
10251 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10252 if test "$host_cpu" != ia64; then
10253 lt_prog_compiler_pic_CXX='+Z'
10257 lt_prog_compiler_wl_CXX='-Wl,'
10258 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10259 case "$host_cpu" in
10264 lt_prog_compiler_pic_CXX='+Z'
10272 irix5* | irix6* | nonstopux*)
10273 case $cc_basename in
10275 lt_prog_compiler_wl_CXX='-Wl,'
10276 lt_prog_compiler_static_CXX='-non_shared'
10277 # CC pic flag -KPIC is the default.
10284 case $cc_basename in
10287 lt_prog_compiler_wl_CXX='--backend -Wl,'
10288 lt_prog_compiler_pic_CXX='-fPIC'
10292 lt_prog_compiler_wl_CXX='-Wl,'
10293 lt_prog_compiler_pic_CXX='-KPIC'
10294 lt_prog_compiler_static_CXX='-static'
10298 # Make sure the PIC flag is empty. It appears that all Alpha
10299 # Linux and Compaq Tru64 Unix objects are PIC.
10300 lt_prog_compiler_pic_CXX=
10301 lt_prog_compiler_static_CXX='-non_shared'
10312 case $cc_basename in
10314 lt_prog_compiler_pic_CXX='-W c,exportall'
10322 osf3* | osf4* | osf5*)
10323 case $cc_basename in
10325 lt_prog_compiler_wl_CXX='--backend -Wl,'
10328 # Rational C++ 2.4.1
10329 lt_prog_compiler_pic_CXX='-pic'
10332 # Digital/Compaq C++
10333 lt_prog_compiler_wl_CXX='-Wl,'
10334 # Make sure the PIC flag is empty. It appears that all Alpha
10335 # Linux and Compaq Tru64 Unix objects are PIC.
10336 lt_prog_compiler_pic_CXX=
10337 lt_prog_compiler_static_CXX='-non_shared'
10346 case $cc_basename in
10348 lt_prog_compiler_pic_CXX='-fPIC'
10355 case $cc_basename in
10357 # Sun C++ 4.2, 5.x and Centerline C++
10358 lt_prog_compiler_pic_CXX='-KPIC'
10359 lt_prog_compiler_static_CXX='-Bstatic'
10360 lt_prog_compiler_wl_CXX='-Qoption ld '
10363 # Green Hills C++ Compiler
10364 lt_prog_compiler_pic_CXX='-PIC'
10371 case $cc_basename in
10374 lt_prog_compiler_pic_CXX='-pic'
10375 lt_prog_compiler_static_CXX='-Bstatic'
10379 lt_prog_compiler_pic_CXX='-pic'
10386 case $cc_basename in
10388 # NonStop-UX NCC 3.20
10389 lt_prog_compiler_pic_CXX='-KPIC'
10400 lt_prog_compiler_can_build_shared_CXX=no
10405 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10406 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10409 # Check to make sure the PIC flag actually works.
10411 if test -n "$lt_prog_compiler_pic_CXX"; then
10412 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10413 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10414 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 lt_prog_compiler_pic_works_CXX=no
10418 ac_outfile=conftest.$ac_objext
10419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10420 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10421 # Insert the option either (1) after the last *FLAGS variable, or
10422 # (2) before a word containing "conftest.", or (3) at the end.
10423 # Note that $ac_compile itself does not contain backslashes and begins
10424 # with a dollar sign (not a hyphen), so the echo should work correctly.
10425 # The option is referenced via a variable to avoid confusing sed.
10426 lt_compile=`echo "$ac_compile" | $SED \
10427 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10429 -e 's:$: $lt_compiler_flag:'`
10430 (eval echo "\"\$as_me:10430: $lt_compile\"" >&5)
10431 (eval "$lt_compile" 2>conftest.err)
10433 cat conftest.err >&5
10434 echo "$as_me:10434: \$? = $ac_status" >&5
10435 if (exit $ac_status) && test -s "$ac_outfile"; then
10436 # The compiler can only warn and ignore the option if not recognized
10437 # So say no if there are warnings
10438 if test ! -s conftest.err; then
10439 lt_prog_compiler_pic_works_CXX=yes
10445 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10446 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10448 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10449 case $lt_prog_compiler_pic_CXX in
10451 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10454 lt_prog_compiler_pic_CXX=
10455 lt_prog_compiler_can_build_shared_CXX=no
10460 # For platforms which do not support PIC, -DPIC is meaningless:
10462 lt_prog_compiler_pic_CXX=
10465 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10469 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10470 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10471 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 lt_cv_prog_compiler_c_o_CXX=no
10475 $rm -r conftest 2>/dev/null
10479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10481 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10482 # that will create temporary files in the current directory regardless of
10483 # the output directory. Thus, making CWD read-only will cause this test
10484 # to fail, enabling locking or at least warning the user not to do parallel
10488 lt_compiler_flag="-o out/conftest2.$ac_objext"
10489 # Insert the option either (1) after the last *FLAGS variable, or
10490 # (2) before a word containing "conftest.", or (3) at the end.
10491 # Note that $ac_compile itself does not contain backslashes and begins
10492 # with a dollar sign (not a hyphen), so the echo should work correctly.
10493 lt_compile=`echo "$ac_compile" | $SED \
10494 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10496 -e 's:$: $lt_compiler_flag:'`
10497 (eval echo "\"\$as_me:10497: $lt_compile\"" >&5)
10498 (eval "$lt_compile" 2>out/conftest.err)
10500 cat out/conftest.err >&5
10501 echo "$as_me:10501: \$? = $ac_status" >&5
10502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10504 # The compiler can only warn and ignore the option if not recognized
10505 # So say no if there are warnings
10506 if test ! -s out/conftest.err; then
10507 lt_cv_prog_compiler_c_o_CXX=yes
10511 $rm conftest* out/*
10518 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10519 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10522 hard_links="nottested"
10523 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10524 # do not overwrite the value of need_locks provided by the user
10525 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10526 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10531 ln conftest.a conftest.b 2>&5 || hard_links=no
10532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10533 echo "$as_me:$LINENO: result: $hard_links" >&5
10534 echo "${ECHO_T}$hard_links" >&6
10535 if test "$hard_links" = no; then
10536 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10537 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10544 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10545 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10547 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10550 # If we're using GNU nm, then we don't want the "-C" option.
10551 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10552 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10553 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'
10555 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'
10559 export_symbols_cmds_CXX="$ltdll_cmds"
10562 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10565 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10569 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10570 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10571 test "$ld_shlibs_CXX" = no && can_build_shared=no
10573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10574 if test "$GCC" = yes; then
10575 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10579 # Do we need to explicitly link libc?
10581 case "x$archive_cmds_need_lc_CXX" in
10583 # Assume -lc should be added
10584 archive_cmds_need_lc_CXX=yes
10586 if test "$enable_shared" = yes && test "$GCC" = yes; then
10587 case $archive_cmds_CXX in
10589 # FIXME: we may have to deal with multi-command sequences.
10592 # Test whether the compiler implicitly links with -lc since on some
10593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10594 # to ld, don't add -lc before -lgcc.
10595 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601 (eval $ac_compile) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } 2>conftest.err; then
10607 libobjs=conftest.$ac_objext
10609 wl=$lt_prog_compiler_wl_CXX
10615 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10616 allow_undefined_flag_CXX=
10617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10618 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }
10623 archive_cmds_need_lc_CXX=no
10625 archive_cmds_need_lc_CXX=yes
10627 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10629 cat conftest.err 1>&5
10632 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10633 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10640 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10641 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10642 hardcode_action_CXX=
10643 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10644 test -n "$runpath_var CXX" || \
10645 test "X$hardcode_automatic_CXX"="Xyes" ; then
10647 # We can hardcode non-existant directories.
10648 if test "$hardcode_direct_CXX" != no &&
10649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10650 # have to relink, otherwise we might link with an installed library
10651 # when we should be linking with a yet-to-be-installed one
10652 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10653 test "$hardcode_minus_L_CXX" != no; then
10654 # Linking always hardcodes the temporary library directory.
10655 hardcode_action_CXX=relink
10657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10658 hardcode_action_CXX=immediate
10661 # We cannot hardcode anything, or else we can only hardcode existing
10663 hardcode_action_CXX=unsupported
10665 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10666 echo "${ECHO_T}$hardcode_action_CXX" >&6
10668 if test "$hardcode_action_CXX" = relink; then
10669 # Fast installation is not supported
10670 enable_fast_install=no
10671 elif test "$shlibpath_overrides_runpath" = yes ||
10672 test "$enable_shared" = no; then
10673 # Fast installation is not necessary
10674 enable_fast_install=needless
10679 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10680 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10681 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10682 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10683 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10684 echo "$as_me:$LINENO: result: yes" >&5
10685 echo "${ECHO_T}yes" >&6
10687 # FIXME - insert some real tests, host_os isn't really good enough
10690 if test -n "$STRIP" ; then
10691 striplib="$STRIP -x"
10692 echo "$as_me:$LINENO: result: yes" >&5
10693 echo "${ECHO_T}yes" >&6
10695 echo "$as_me:$LINENO: result: no" >&5
10696 echo "${ECHO_T}no" >&6
10700 echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6
10706 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10707 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10708 library_names_spec=
10709 libname_spec='lib$name'
10713 postuninstall_cmds=
10717 shlibpath_overrides_runpath=unknown
10719 dynamic_linker="$host_os ld.so"
10720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10721 if test "$GCC" = yes; then
10722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10723 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10724 # if the path contains ";" then we assume it to be the separator
10725 # otherwise default to the standard path separator (i.e. ":") - it is
10726 # assumed that no part of a normal pathname contains ";" but that should
10727 # okay in the real world where ";" in dirpaths is itself problematic.
10728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10735 need_lib_prefix=unknown
10736 hardcode_into_libs=no
10738 # when you set need_version to no, make sure it does not cause -set_version
10739 # flags to be left without arguments
10740 need_version=unknown
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10746 shlibpath_var=LIBPATH
10748 # AIX 3 has no versioning support, so we append a major version to the name.
10749 soname_spec='${libname}${release}${shared_ext}$major'
10756 hardcode_into_libs=yes
10757 if test "$host_cpu" = ia64; then
10758 # AIX 5 supports IA64
10759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10760 shlibpath_var=LD_LIBRARY_PATH
10762 # With GCC up to 2.95.x, collect2 would create an import file
10763 # for dependence libraries. The import file would start with
10764 # the line `#! .'. This would cause the generated library to
10765 # depend on `.', always an invalid library. This was fixed in
10766 # development snapshots of GCC prior to 3.0.
10768 aix4 | aix4.[01] | aix4.[01].*)
10769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10771 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10774 can_build_shared=no
10778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10779 # soname into executable. Probably we can add versioning support to
10780 # collect2, so additional links can be useful in future.
10781 if test "$aix_use_runtimelinking" = yes; then
10782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10783 # instead of lib<name>.a to let people know that these are not
10784 # typical AIX shared libraries.
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 # We preserve .a as extension for shared libraries through AIX4.2
10788 # and later when we are not doing run time linking.
10789 library_names_spec='${libname}${release}.a $libname.a'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LIBPATH
10797 library_names_spec='$libname.ixlibrary $libname.a'
10798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10799 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'
10803 library_names_spec='${libname}${shared_ext}'
10804 dynamic_linker="$host_os ld.so"
10805 shlibpath_var=LIBRARY_PATH
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10817 # the default ld.so.conf also contains /usr/contrib/lib and
10818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10819 # libtool to hard-code these into programs
10822 cygwin* | mingw* | pw32*)
10823 version_type=windows
10828 case $GCC,$host_os in
10829 yes,cygwin* | yes,mingw* | yes,pw32*)
10830 library_names_spec='$libname.dll.a'
10831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10832 postinstall_cmds='base_file=`basename \${file}`~
10833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10834 dldir=$destdir/`dirname \$dlpath`~
10835 test -d \$dldir || mkdir -p \$dldir~
10836 $install_prog $dir/$dlname \$dldir/$dlname'
10837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10838 dlpath=$dir/\$dldll~
10840 shlibpath_overrides_runpath=yes
10844 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10846 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10849 # MinGW DLLs use traditional 'lib' prefix
10850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10852 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10853 # It is most probably a Windows format PATH printed by
10854 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10855 # path with ; separators, and with drive letters. We can handle the
10856 # drive letters (cygwin fileutils understands them), so leave them,
10857 # especially as we might pass files found there to a mingw objdump,
10858 # which wouldn't understand a cygwinified path. Ahh.
10859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10865 # pw32 DLLs use 'pw' prefix rather than 'lib'
10866 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10872 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10875 dynamic_linker='Win32 ld.exe'
10876 # FIXME: first we should search . and the directory the executable is in
10880 darwin* | rhapsody*)
10881 dynamic_linker="$host_os dyld"
10882 version_type=darwin
10885 # FIXME: Relying on posixy $() will cause problems for
10886 # cross-compilation, but unfortunately the echo tests do not
10887 # yet detect zsh echo's removal of \ escapes.
10888 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10889 soname_spec='${libname}${release}${major}$shared_ext'
10890 shlibpath_overrides_runpath=yes
10891 shlibpath_var=DYLD_LIBRARY_PATH
10892 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10893 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10894 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10895 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"`
10897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10914 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10915 version_type=freebsd-$objformat
10916 case $version_type in
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10927 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=yes
10932 freebsd3.01* | freebsdelf3.01*)
10933 shlibpath_overrides_runpath=yes
10934 hardcode_into_libs=yes
10937 shlibpath_overrides_runpath=no
10938 hardcode_into_libs=yes
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 hardcode_into_libs=yes
10953 hpux9* | hpux10* | hpux11*)
10954 # Give a soname corresponding to the major version so that dld.sl refuses to
10955 # link against other versions.
10959 case "$host_cpu" in
10962 hardcode_into_libs=yes
10963 dynamic_linker="$host_os dld.so"
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 if test "X$HPUX_IA64_MODE" = X32; then
10969 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10977 hardcode_into_libs=yes
10978 dynamic_linker="$host_os dld.sl"
10979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10988 dynamic_linker="$host_os dld.sl"
10989 shlibpath_var=SHLIB_PATH
10990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10995 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10996 postinstall_cmds='chmod 555 $lib'
10999 irix5* | irix6* | nonstopux*)
11001 nonstopux*) version_type=nonstopux ;;
11003 if test "$lt_cv_prog_gnu_ld" = yes; then
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11014 irix5* | nonstopux*)
11015 libsuff= shlibsuff=
11018 case $LD in # libtool.m4 will add one of these switches to LD
11019 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11020 libsuff= shlibsuff= libmagic=32-bit;;
11021 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11022 libsuff=32 shlibsuff=N32 libmagic=N32;;
11023 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11024 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11025 *) libsuff= shlibsuff= libmagic=never-match;;
11029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11030 shlibpath_overrides_runpath=no
11031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11033 hardcode_into_libs=yes
11036 # No shared lib support for Linux oldld, aout, or coff.
11037 linux*oldld* | linux*aout* | linux*coff*)
11041 # This must be Linux ELF.
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=no
11051 # This implies no fast_install, which is unacceptable.
11052 # Some rework will be needed to allow for fast_install
11053 # before this can be enabled.
11054 hardcode_into_libs=yes
11056 # We used to test for /lib/ld.so.1 and disable shared libraries on
11057 # powerpc, because MkLinux only supported shared libraries with the
11058 # GNU dynamic linker. Since this was broken with cross compilers,
11059 # most powerpc-linux boxes support dynamic linking these days and
11060 # people can always --disable-shared, the test was removed, and we
11061 # assume the GNU/Linux dynamic linker is in use.
11062 dynamic_linker='GNU/Linux ld.so'
11069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11072 dynamic_linker='NetBSD (a.out) ld.so'
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11075 soname_spec='${libname}${release}${shared_ext}$major'
11076 dynamic_linker='NetBSD ld.elf_so'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=yes
11080 hardcode_into_libs=yes
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 soname_spec='${libname}${release}${shared_ext}$major'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11109 openbsd2.[89] | openbsd2.[89].*)
11110 shlibpath_overrides_runpath=no
11113 shlibpath_overrides_runpath=yes
11117 shlibpath_overrides_runpath=yes
11122 libname_spec='$name'
11125 library_names_spec='$libname${shared_ext} $libname.a'
11126 dynamic_linker='OS/2 ld.exe'
11127 shlibpath_var=LIBPATH
11130 osf3* | osf4* | osf5*)
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11138 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 shlibpath_var=LD_LIBRARY_PATH
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 hardcode_into_libs=yes
11157 # ldd complains unless libraries are executable
11158 postinstall_cmds='chmod +x $lib'
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11164 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=yes
11167 if test "$with_gnu_ld" = yes; then
11173 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 case $host_vendor in
11180 shlibpath_overrides_runpath=no
11182 export_dynamic_flag_spec='${wl}-Blargedynsym'
11183 runpath_var=LD_RUN_PATH
11191 shlibpath_overrides_runpath=no
11192 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11198 if test -d /usr/nec ;then
11200 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11201 soname_spec='$libname${shared_ext}.$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11217 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11218 echo "${ECHO_T}$dynamic_linker" >&6
11219 test "$dynamic_linker" = no && can_build_shared=no
11221 if test "x$enable_dlopen" != xyes; then
11222 enable_dlopen=unknown
11223 enable_dlopen_self=unknown
11224 enable_dlopen_self_static=unknown
11231 lt_cv_dlopen="load_add_on"
11233 lt_cv_dlopen_self=yes
11237 lt_cv_dlopen="LoadLibrary"
11242 lt_cv_dlopen="dlopen"
11247 # if libdl is installed we need to link against it
11248 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11249 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 ac_check_lib_save_LIBS=$LIBS
11255 cat >conftest.$ac_ext <<_ACEOF
11256 #line $LINENO "configure"
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11263 /* Override any gcc2 internal prototype to avoid an error. */
11267 /* We use char because int might match the return type of a gcc2
11268 builtin and then its argument prototype would still apply. */
11278 rm -f conftest.$ac_objext conftest$ac_exeext
11279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11280 (eval $ac_link) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } &&
11284 { ac_try='test -s conftest$ac_exeext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_cv_lib_dl_dlopen=yes
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11295 ac_cv_lib_dl_dlopen=no
11297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11298 LIBS=$ac_check_lib_save_LIBS
11300 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11301 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11302 if test $ac_cv_lib_dl_dlopen = yes; then
11303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11306 lt_cv_dlopen="dyld"
11308 lt_cv_dlopen_self=yes
11315 echo "$as_me:$LINENO: checking for shl_load" >&5
11316 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11317 if test "${ac_cv_func_shl_load+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 cat >conftest.$ac_ext <<_ACEOF
11321 #line $LINENO "configure"
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char shl_load (); below.
11329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11330 <limits.h> exists even on freestanding compilers. */
11332 # include <limits.h>
11334 # include <assert.h>
11336 /* Override any gcc2 internal prototype to avoid an error. */
11341 /* We use char because int might match the return type of a gcc2
11342 builtin and then its argument prototype would still apply. */
11344 /* The GNU C library defines this for functions which it implements
11345 to always fail with ENOSYS. Some functions are actually named
11346 something starting with __ and the normal name is an alias. */
11347 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11350 char (*f) () = shl_load;
11359 return f != shl_load;
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11366 (eval $ac_link) 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -s conftest$ac_exeext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_cv_func_shl_load=yes
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11381 ac_cv_func_shl_load=no
11383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11385 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11386 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11387 if test $ac_cv_func_shl_load = yes; then
11388 lt_cv_dlopen="shl_load"
11390 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11391 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11392 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 ac_check_lib_save_LIBS=$LIBS
11397 cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11405 /* Override any gcc2 internal prototype to avoid an error. */
11409 /* We use char because int might match the return type of a gcc2
11410 builtin and then its argument prototype would still apply. */
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422 (eval $ac_link) 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -s conftest$ac_exeext'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 ac_cv_lib_dld_shl_load=yes
11434 echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ac_cv_lib_dld_shl_load=no
11439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11440 LIBS=$ac_check_lib_save_LIBS
11442 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11443 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11444 if test $ac_cv_lib_dld_shl_load = yes; then
11445 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11447 echo "$as_me:$LINENO: checking for dlopen" >&5
11448 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11449 if test "${ac_cv_func_dlopen+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 cat >conftest.$ac_ext <<_ACEOF
11453 #line $LINENO "configure"
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 /* System header to define __stub macros and hopefully few prototypes,
11460 which can conflict with char dlopen (); below.
11461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11462 <limits.h> exists even on freestanding compilers. */
11464 # include <limits.h>
11466 # include <assert.h>
11468 /* Override any gcc2 internal prototype to avoid an error. */
11473 /* We use char because int might match the return type of a gcc2
11474 builtin and then its argument prototype would still apply. */
11476 /* The GNU C library defines this for functions which it implements
11477 to always fail with ENOSYS. Some functions are actually named
11478 something starting with __ and the normal name is an alias. */
11479 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11482 char (*f) () = dlopen;
11491 return f != dlopen;
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498 (eval $ac_link) 2>&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } &&
11502 { ac_try='test -s conftest$ac_exeext'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 ac_cv_func_dlopen=yes
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ac_cv_func_dlopen=no
11515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11517 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11518 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11519 if test $ac_cv_func_dlopen = yes; then
11520 lt_cv_dlopen="dlopen"
11522 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11523 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11524 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 ac_check_lib_save_LIBS=$LIBS
11529 cat >conftest.$ac_ext <<_ACEOF
11530 #line $LINENO "configure"
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11537 /* Override any gcc2 internal prototype to avoid an error. */
11541 /* We use char because int might match the return type of a gcc2
11542 builtin and then its argument prototype would still apply. */
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554 (eval $ac_link) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -s conftest$ac_exeext'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11564 ac_cv_lib_dl_dlopen=yes
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 ac_cv_lib_dl_dlopen=no
11571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_lib_save_LIBS
11574 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11575 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11576 if test $ac_cv_lib_dl_dlopen = yes; then
11577 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11579 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11580 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11581 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 ac_check_lib_save_LIBS=$LIBS
11585 LIBS="-lsvld $LIBS"
11586 cat >conftest.$ac_ext <<_ACEOF
11587 #line $LINENO "configure"
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11594 /* Override any gcc2 internal prototype to avoid an error. */
11598 /* We use char because int might match the return type of a gcc2
11599 builtin and then its argument prototype would still apply. */
11609 rm -f conftest.$ac_objext conftest$ac_exeext
11610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11611 (eval $ac_link) 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } &&
11615 { ac_try='test -s conftest$ac_exeext'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 ac_cv_lib_svld_dlopen=yes
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 ac_cv_lib_svld_dlopen=no
11628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11629 LIBS=$ac_check_lib_save_LIBS
11631 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11632 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11633 if test $ac_cv_lib_svld_dlopen = yes; then
11634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11636 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11637 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11638 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 ac_check_lib_save_LIBS=$LIBS
11643 cat >conftest.$ac_ext <<_ACEOF
11644 #line $LINENO "configure"
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11651 /* Override any gcc2 internal prototype to avoid an error. */
11655 /* We use char because int might match the return type of a gcc2
11656 builtin and then its argument prototype would still apply. */
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_lib_dld_dld_link=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11683 ac_cv_lib_dld_dld_link=no
11685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11686 LIBS=$ac_check_lib_save_LIBS
11688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11689 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11690 if test $ac_cv_lib_dld_dld_link = yes; then
11691 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11712 if test "x$lt_cv_dlopen" != xno; then
11718 case $lt_cv_dlopen in
11720 save_CPPFLAGS="$CPPFLAGS"
11721 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11723 save_LDFLAGS="$LDFLAGS"
11724 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11727 LIBS="$lt_cv_dlopen_libs $LIBS"
11729 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11730 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11731 if test "${lt_cv_dlopen_self+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 if test "$cross_compiling" = yes; then :
11735 lt_cv_dlopen_self=cross
11737 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11738 lt_status=$lt_dlunknown
11739 cat > conftest.$ac_ext <<EOF
11740 #line 11740 "configure"
11741 #include "confdefs.h"
11750 # define LT_DLGLOBAL RTLD_GLOBAL
11753 # define LT_DLGLOBAL DL_GLOBAL
11755 # define LT_DLGLOBAL 0
11759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11760 find out it does not work in some platform. */
11761 #ifndef LT_DLLAZY_OR_NOW
11763 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11766 # define LT_DLLAZY_OR_NOW DL_LAZY
11769 # define LT_DLLAZY_OR_NOW RTLD_NOW
11772 # define LT_DLLAZY_OR_NOW DL_NOW
11774 # define LT_DLLAZY_OR_NOW 0
11782 extern "C" void exit (int);
11785 void fnord() { int i=42;}
11788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11789 int status = $lt_dlunknown;
11793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11794 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11795 /* dlclose (self); */
11801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11802 (eval $ac_link) 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11806 (./conftest; exit; ) 2>/dev/null
11808 case x$lt_status in
11809 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11810 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11811 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11814 # compilation failed
11815 lt_cv_dlopen_self=no
11822 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11823 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11825 if test "x$lt_cv_dlopen_self" = xyes; then
11826 LDFLAGS="$LDFLAGS $link_static_flag"
11827 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11828 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11829 if test "${lt_cv_dlopen_self_static+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 if test "$cross_compiling" = yes; then :
11833 lt_cv_dlopen_self_static=cross
11835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11836 lt_status=$lt_dlunknown
11837 cat > conftest.$ac_ext <<EOF
11838 #line 11838 "configure"
11839 #include "confdefs.h"
11848 # define LT_DLGLOBAL RTLD_GLOBAL
11851 # define LT_DLGLOBAL DL_GLOBAL
11853 # define LT_DLGLOBAL 0
11857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11858 find out it does not work in some platform. */
11859 #ifndef LT_DLLAZY_OR_NOW
11861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11864 # define LT_DLLAZY_OR_NOW DL_LAZY
11867 # define LT_DLLAZY_OR_NOW RTLD_NOW
11870 # define LT_DLLAZY_OR_NOW DL_NOW
11872 # define LT_DLLAZY_OR_NOW 0
11880 extern "C" void exit (int);
11883 void fnord() { int i=42;}
11886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11887 int status = $lt_dlunknown;
11891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11892 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11893 /* dlclose (self); */
11899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900 (eval $ac_link) 2>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11904 (./conftest; exit; ) 2>/dev/null
11906 case x$lt_status in
11907 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11908 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11909 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11912 # compilation failed
11913 lt_cv_dlopen_self_static=no
11920 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11921 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11924 CPPFLAGS="$save_CPPFLAGS"
11925 LDFLAGS="$save_LDFLAGS"
11930 case $lt_cv_dlopen_self in
11931 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11932 *) enable_dlopen_self=unknown ;;
11935 case $lt_cv_dlopen_self_static in
11936 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11937 *) enable_dlopen_self_static=unknown ;;
11942 # The else clause should only fire when bootstrapping the
11943 # libtool distribution, otherwise you forgot to ship ltmain.sh
11944 # with your package, and you will get complaints that there are
11945 # no rules to generate ltmain.sh.
11946 if test -f "$ltmain"; then
11947 # See if we are running on zsh, and set the options which allow our commands through
11948 # without removal of \ escapes.
11949 if test -n "${ZSH_VERSION+set}" ; then
11950 setopt NO_GLOB_SUBST
11952 # Now quote all the things that may contain metacharacters while being
11953 # careful not to overquote the AC_SUBSTed values. We take copies of the
11954 # variables and quote the copies for generation of the libtool script.
11955 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11956 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11957 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11958 deplibs_check_method reload_flag reload_cmds need_locks \
11959 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11960 lt_cv_sys_global_symbol_to_c_name_address \
11961 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11962 old_postinstall_cmds old_postuninstall_cmds \
11966 lt_prog_compiler_wl_CXX \
11967 lt_prog_compiler_pic_CXX \
11968 lt_prog_compiler_static_CXX \
11969 lt_prog_compiler_no_builtin_flag_CXX \
11970 export_dynamic_flag_spec_CXX \
11971 thread_safe_flag_spec_CXX \
11972 whole_archive_flag_spec_CXX \
11973 enable_shared_with_static_runtimes_CXX \
11974 old_archive_cmds_CXX \
11975 old_archive_from_new_cmds_CXX \
11976 predep_objects_CXX \
11977 postdep_objects_CXX \
11980 compiler_lib_search_path_CXX \
11982 archive_expsym_cmds_CXX \
11983 postinstall_cmds_CXX \
11984 postuninstall_cmds_CXX \
11985 old_archive_from_expsyms_cmds_CXX \
11986 allow_undefined_flag_CXX \
11987 no_undefined_flag_CXX \
11988 export_symbols_cmds_CXX \
11989 hardcode_libdir_flag_spec_CXX \
11990 hardcode_libdir_flag_spec_ld_CXX \
11991 hardcode_libdir_separator_CXX \
11992 hardcode_automatic_CXX \
11994 module_expsym_cmds_CXX \
11995 lt_cv_prog_compiler_c_o_CXX \
11996 exclude_expsyms_CXX \
11997 include_expsyms_CXX; do
12000 old_archive_cmds_CXX | \
12001 old_archive_from_new_cmds_CXX | \
12002 archive_cmds_CXX | \
12003 archive_expsym_cmds_CXX | \
12004 module_cmds_CXX | \
12005 module_expsym_cmds_CXX | \
12006 old_archive_from_expsyms_cmds_CXX | \
12007 export_symbols_cmds_CXX | \
12008 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12009 postinstall_cmds | postuninstall_cmds | \
12010 old_postinstall_cmds | old_postuninstall_cmds | \
12011 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12012 # Double-quote double-evaled strings.
12013 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12016 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12022 *'\$0 --fallback-echo"')
12023 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12029 cat <<__EOF__ >> "$cfgfile"
12030 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12032 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12034 # Shell to use when invoking shell scripts.
12037 # Whether or not to build shared libraries.
12038 build_libtool_libs=$enable_shared
12040 # Whether or not to build static libraries.
12041 build_old_libs=$enable_static
12043 # Whether or not to add -lc for building shared libraries.
12044 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12046 # Whether or not to disallow shared libs when runtime libs are static
12047 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12049 # Whether or not to optimize for fast installation.
12050 fast_install=$enable_fast_install
12053 host_alias=$host_alias
12056 # An echo program that does not interpret backslashes.
12061 AR_FLAGS=$lt_AR_FLAGS
12066 # A language-specific compiler.
12067 CC=$lt_compiler_CXX
12069 # Is the compiler the GNU C compiler?
12075 # The linker used to build libraries.
12078 # Whether we need hard or soft links.
12081 # A BSD-compatible nm program.
12084 # A symbol stripping program
12087 # Used to examine libraries when file_magic_cmd begins "file"
12088 MAGIC_CMD=$MAGIC_CMD
12090 # Used on cygwin: DLL creation program.
12093 # Used on cygwin: object dumper.
12096 # Used on cygwin: assembler.
12099 # The name of the directory that contains temporary libtool files.
12102 # How to create reloadable object files.
12103 reload_flag=$lt_reload_flag
12104 reload_cmds=$lt_reload_cmds
12106 # How to pass a linker flag through the compiler.
12107 wl=$lt_lt_prog_compiler_wl_CXX
12109 # Object file suffix (normally "o").
12110 objext="$ac_objext"
12112 # Old archive suffix (normally "a").
12115 # Shared library suffix (normally ".so").
12118 # Executable file suffix (normally "").
12121 # Additional compiler flags for building library objects.
12122 pic_flag=$lt_lt_prog_compiler_pic_CXX
12125 # What is the maximum length of a command?
12126 max_cmd_len=$lt_cv_sys_max_cmd_len
12128 # Does compiler simultaneously support -c and -o options?
12129 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12131 # Must we lock files when doing compilation ?
12132 need_locks=$lt_need_locks
12134 # Do we need the lib prefix for modules?
12135 need_lib_prefix=$need_lib_prefix
12137 # Do we need a version for libraries?
12138 need_version=$need_version
12140 # Whether dlopen is supported.
12141 dlopen_support=$enable_dlopen
12143 # Whether dlopen of programs is supported.
12144 dlopen_self=$enable_dlopen_self
12146 # Whether dlopen of statically linked programs is supported.
12147 dlopen_self_static=$enable_dlopen_self_static
12149 # Compiler flag to prevent dynamic linking.
12150 link_static_flag=$lt_lt_prog_compiler_static_CXX
12152 # Compiler flag to turn off builtin functions.
12153 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12155 # Compiler flag to allow reflexive dlopens.
12156 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12158 # Compiler flag to generate shared objects directly from archives.
12159 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12161 # Compiler flag to generate thread-safe objects.
12162 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12164 # Library versioning type.
12165 version_type=$version_type
12167 # Format of library name prefix.
12168 libname_spec=$lt_libname_spec
12170 # List of archive names. First name is the real one, the rest are links.
12171 # The last name is the one that the linker finds with -lNAME.
12172 library_names_spec=$lt_library_names_spec
12174 # The coded name of the library, if different from the real name.
12175 soname_spec=$lt_soname_spec
12177 # Commands used to build and install an old-style archive.
12179 old_archive_cmds=$lt_old_archive_cmds_CXX
12180 old_postinstall_cmds=$lt_old_postinstall_cmds
12181 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12183 # Create an old-style archive from a shared archive.
12184 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12186 # Create a temporary old-style archive to link instead of a shared archive.
12187 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12189 # Commands used to build and install a shared archive.
12190 archive_cmds=$lt_archive_cmds_CXX
12191 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12192 postinstall_cmds=$lt_postinstall_cmds
12193 postuninstall_cmds=$lt_postuninstall_cmds
12195 # Commands used to build a loadable module (assumed same as above if empty)
12196 module_cmds=$lt_module_cmds_CXX
12197 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12199 # Commands to strip libraries.
12200 old_striplib=$lt_old_striplib
12201 striplib=$lt_striplib
12203 # Dependencies to place before the objects being linked to create a
12205 predep_objects=$lt_predep_objects_CXX
12207 # Dependencies to place after the objects being linked to create a
12209 postdep_objects=$lt_postdep_objects_CXX
12211 # Dependencies to place before the objects being linked to create a
12213 predeps=$lt_predeps_CXX
12215 # Dependencies to place after the objects being linked to create a
12217 postdeps=$lt_postdeps_CXX
12219 # The library search path used internally by the compiler when linking
12220 # a shared library.
12221 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12223 # Method to check whether dependent libraries are shared objects.
12224 deplibs_check_method=$lt_deplibs_check_method
12226 # Command to use when deplibs_check_method == file_magic.
12227 file_magic_cmd=$lt_file_magic_cmd
12229 # Flag that allows shared libraries with undefined symbols to be built.
12230 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12232 # Flag that forces no undefined symbols.
12233 no_undefined_flag=$lt_no_undefined_flag_CXX
12235 # Commands used to finish a libtool library installation in a directory.
12236 finish_cmds=$lt_finish_cmds
12238 # Same as above, but a single script fragment to be evaled but not shown.
12239 finish_eval=$lt_finish_eval
12241 # Take the output of nm and produce a listing of raw symbols and C names.
12242 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12244 # Transform the output of nm in a proper C declaration
12245 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12247 # Transform the output of nm in a C name address pair
12248 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12250 # This is the shared library runtime path variable.
12251 runpath_var=$runpath_var
12253 # This is the shared library path variable.
12254 shlibpath_var=$shlibpath_var
12256 # Is shlibpath searched before the hard-coded library search path?
12257 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12259 # How to hardcode a shared library path into an executable.
12260 hardcode_action=$hardcode_action_CXX
12262 # Whether we should hardcode library paths into libraries.
12263 hardcode_into_libs=$hardcode_into_libs
12265 # Flag to hardcode \$libdir into a binary during linking.
12266 # This must work even if \$libdir does not exist.
12267 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12269 # If ld is used when linking, flag to hardcode \$libdir into
12270 # a binary during linking. This must work even if \$libdir does
12272 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12274 # Whether we need a single -rpath flag with a separated argument.
12275 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12277 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12278 # resulting binary.
12279 hardcode_direct=$hardcode_direct_CXX
12281 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12282 # resulting binary.
12283 hardcode_minus_L=$hardcode_minus_L_CXX
12285 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12286 # the resulting binary.
12287 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12289 # Set to yes if building a shared library automatically hardcodes DIR into the library
12290 # and all subsequent libraries and executables linked against it.
12291 hardcode_automatic=$hardcode_automatic_CXX
12293 # Variables whose values should be saved in libtool wrapper scripts and
12294 # restored at relink time.
12295 variables_saved_for_relink="$variables_saved_for_relink"
12297 # Whether libtool must link a program against all its dependency libraries.
12298 link_all_deplibs=$link_all_deplibs_CXX
12300 # Compile-time system search path for libraries
12301 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12303 # Run-time system search path for libraries
12304 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12306 # Fix the shell variable \$srcfile for the compiler.
12307 fix_srcfile_path="$fix_srcfile_path_CXX"
12309 # Set to yes if exported symbols are required.
12310 always_export_symbols=$always_export_symbols_CXX
12312 # The commands to list exported symbols.
12313 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12315 # The commands to extract the exported symbol list from a shared archive.
12316 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12318 # Symbols that should not be listed in the preloaded symbols.
12319 exclude_expsyms=$lt_exclude_expsyms_CXX
12321 # Symbols that must always be exported.
12322 include_expsyms=$lt_include_expsyms_CXX
12324 # ### END LIBTOOL TAG CONFIG: $tagname
12330 # If there is no Makefile yet, we rely on a make rule to execute
12331 # `config.status --recheck' to rerun these tests and create the
12332 # libtool script then.
12333 test -f Makefile && make "$ltmain"
12338 ac_cpp='$CPP $CPPFLAGS'
12339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12347 with_gnu_ldcxx=$with_gnu_ld
12348 with_gnu_ld=$lt_save_with_gnu_ld
12349 lt_cv_path_LDCXX=$lt_cv_path_LD
12350 lt_cv_path_LD=$lt_save_path_LD
12351 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12352 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12360 if test -n "$F77" && test "X$F77" != "Xno"; then
12363 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12364 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12365 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12368 archive_cmds_need_lc_F77=no
12369 allow_undefined_flag_F77=
12370 always_export_symbols_F77=no
12371 archive_expsym_cmds_F77=
12372 export_dynamic_flag_spec_F77=
12373 hardcode_direct_F77=no
12374 hardcode_libdir_flag_spec_F77=
12375 hardcode_libdir_flag_spec_ld_F77=
12376 hardcode_libdir_separator_F77=
12377 hardcode_minus_L_F77=no
12378 hardcode_automatic_F77=no
12380 module_expsym_cmds_F77=
12381 link_all_deplibs_F77=unknown
12382 old_archive_cmds_F77=$old_archive_cmds
12383 no_undefined_flag_F77=
12384 whole_archive_flag_spec_F77=
12385 enable_shared_with_static_runtimes_F77=no
12387 # Source file extension for f77 test sources.
12390 # Object file extension for compiled f77 test sources.
12394 # Code to be used in simple compile tests
12395 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12397 # Code to be used in simple link tests
12398 lt_simple_link_test_code=" program t\n end\n"
12400 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12402 # If no C compiler was specified, use CC.
12405 # Allow CC to be a program name with arguments.
12409 # Allow CC to be a program name with arguments.
12414 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12416 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12417 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12418 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12419 echo "${ECHO_T}$can_build_shared" >&6
12421 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12422 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12423 test "$can_build_shared" = "no" && enable_shared=no
12425 # On AIX, shared libraries and static libraries use the same namespace, and
12426 # are all built from PIC.
12429 test "$enable_shared" = yes && enable_static=no
12430 if test -n "$RANLIB"; then
12431 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12432 postinstall_cmds='$RANLIB $lib'
12436 test "$enable_shared" = yes && enable_static=no
12439 echo "$as_me:$LINENO: result: $enable_shared" >&5
12440 echo "${ECHO_T}$enable_shared" >&6
12442 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12443 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12444 # Make sure either enable_shared or enable_static is yes.
12445 test "$enable_shared" = yes || enable_static=yes
12446 echo "$as_me:$LINENO: result: $enable_static" >&5
12447 echo "${ECHO_T}$enable_static" >&6
12449 test "$ld_shlibs_F77" = no && can_build_shared=no
12454 lt_prog_compiler_wl_F77=
12455 lt_prog_compiler_pic_F77=
12456 lt_prog_compiler_static_F77=
12458 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12459 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12461 if test "$GCC" = yes; then
12462 lt_prog_compiler_wl_F77='-Wl,'
12463 lt_prog_compiler_static_F77='-static'
12467 # All AIX code is PIC.
12468 if test "$host_cpu" = ia64; then
12469 # AIX 5 now supports IA64 processor
12470 lt_prog_compiler_static_F77='-Bstatic'
12475 # FIXME: we need at least 68020 code to build shared libraries, but
12476 # adding the `-m68020' flag to GCC prevents building anything better,
12478 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12481 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12482 # PIC is the default for these OSes.
12485 mingw* | pw32* | os2*)
12486 # This hack is so that the source file can tell whether it is being
12487 # built for inclusion in a dll (and should export symbols for example).
12488 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12491 darwin* | rhapsody*)
12492 # PIC is the default on this platform
12493 # Common symbols not allowed in MH_DYLIB files
12494 lt_prog_compiler_pic_F77='-fno-common'
12498 # Just because we use GCC doesn't mean we suddenly get shared libraries
12499 # on systems that don't support them.
12500 lt_prog_compiler_can_build_shared_F77=no
12505 if test -d /usr/nec; then
12506 lt_prog_compiler_pic_F77=-Kconform_pic
12511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12512 # not for PA HP-UX.
12513 case "$host_cpu" in
12518 lt_prog_compiler_pic_F77='-fPIC'
12524 lt_prog_compiler_pic_F77='-fPIC'
12528 # PORTME Check for flag to pass linker flags through the system compiler.
12531 lt_prog_compiler_wl_F77='-Wl,'
12532 if test "$host_cpu" = ia64; then
12533 # AIX 5 now supports IA64 processor
12534 lt_prog_compiler_static_F77='-Bstatic'
12536 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12540 mingw* | pw32* | os2*)
12541 # This hack is so that the source file can tell whether it is being
12542 # built for inclusion in a dll (and should export symbols for example).
12543 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12546 hpux9* | hpux10* | hpux11*)
12547 lt_prog_compiler_wl_F77='-Wl,'
12548 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12549 # not for PA HP-UX.
12550 case "$host_cpu" in
12555 lt_prog_compiler_pic_F77='+Z'
12558 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12559 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12562 irix5* | irix6* | nonstopux*)
12563 lt_prog_compiler_wl_F77='-Wl,'
12564 # PIC (with -KPIC) is the default.
12565 lt_prog_compiler_static_F77='-non_shared'
12569 lt_prog_compiler_pic_F77='-KPIC'
12570 lt_prog_compiler_static_F77='-Bstatic'
12576 lt_prog_compiler_wl_F77='-Wl,'
12577 lt_prog_compiler_pic_F77='-KPIC'
12578 lt_prog_compiler_static_F77='-static'
12581 lt_prog_compiler_wl_F77='-Wl,'
12582 # All Alpha code is PIC.
12583 lt_prog_compiler_static_F77='-non_shared'
12588 osf3* | osf4* | osf5*)
12589 lt_prog_compiler_wl_F77='-Wl,'
12590 # All OSF/1 code is PIC.
12591 lt_prog_compiler_static_F77='-non_shared'
12595 lt_prog_compiler_pic_F77='-Kpic'
12596 lt_prog_compiler_static_F77='-dn'
12600 lt_prog_compiler_wl_F77='-Wl,'
12601 lt_prog_compiler_pic_F77='-KPIC'
12602 lt_prog_compiler_static_F77='-Bstatic'
12606 lt_prog_compiler_wl_F77='-Qoption ld '
12607 lt_prog_compiler_pic_F77='-PIC'
12608 lt_prog_compiler_static_F77='-Bstatic'
12611 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12612 lt_prog_compiler_wl_F77='-Wl,'
12613 lt_prog_compiler_pic_F77='-KPIC'
12614 lt_prog_compiler_static_F77='-Bstatic'
12618 if test -d /usr/nec ;then
12619 lt_prog_compiler_pic_F77='-Kconform_pic'
12620 lt_prog_compiler_static_F77='-Bstatic'
12625 lt_prog_compiler_pic_F77='-pic'
12626 lt_prog_compiler_static_F77='-Bstatic'
12630 lt_prog_compiler_can_build_shared_F77=no
12635 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12636 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12639 # Check to make sure the PIC flag actually works.
12641 if test -n "$lt_prog_compiler_pic_F77"; then
12642 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12643 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12644 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 lt_prog_compiler_pic_works_F77=no
12648 ac_outfile=conftest.$ac_objext
12649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12650 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12651 # Insert the option either (1) after the last *FLAGS variable, or
12652 # (2) before a word containing "conftest.", or (3) at the end.
12653 # Note that $ac_compile itself does not contain backslashes and begins
12654 # with a dollar sign (not a hyphen), so the echo should work correctly.
12655 # The option is referenced via a variable to avoid confusing sed.
12656 lt_compile=`echo "$ac_compile" | $SED \
12657 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12659 -e 's:$: $lt_compiler_flag:'`
12660 (eval echo "\"\$as_me:12660: $lt_compile\"" >&5)
12661 (eval "$lt_compile" 2>conftest.err)
12663 cat conftest.err >&5
12664 echo "$as_me:12664: \$? = $ac_status" >&5
12665 if (exit $ac_status) && test -s "$ac_outfile"; then
12666 # The compiler can only warn and ignore the option if not recognized
12667 # So say no if there are warnings
12668 if test ! -s conftest.err; then
12669 lt_prog_compiler_pic_works_F77=yes
12675 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12676 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12678 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12679 case $lt_prog_compiler_pic_F77 in
12681 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12684 lt_prog_compiler_pic_F77=
12685 lt_prog_compiler_can_build_shared_F77=no
12690 # For platforms which do not support PIC, -DPIC is meaningless:
12692 lt_prog_compiler_pic_F77=
12695 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12699 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12700 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12701 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 lt_cv_prog_compiler_c_o_F77=no
12705 $rm -r conftest 2>/dev/null
12709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12711 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12712 # that will create temporary files in the current directory regardless of
12713 # the output directory. Thus, making CWD read-only will cause this test
12714 # to fail, enabling locking or at least warning the user not to do parallel
12718 lt_compiler_flag="-o out/conftest2.$ac_objext"
12719 # Insert the option either (1) after the last *FLAGS variable, or
12720 # (2) before a word containing "conftest.", or (3) at the end.
12721 # Note that $ac_compile itself does not contain backslashes and begins
12722 # with a dollar sign (not a hyphen), so the echo should work correctly.
12723 lt_compile=`echo "$ac_compile" | $SED \
12724 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12726 -e 's:$: $lt_compiler_flag:'`
12727 (eval echo "\"\$as_me:12727: $lt_compile\"" >&5)
12728 (eval "$lt_compile" 2>out/conftest.err)
12730 cat out/conftest.err >&5
12731 echo "$as_me:12731: \$? = $ac_status" >&5
12732 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12734 # The compiler can only warn and ignore the option if not recognized
12735 # So say no if there are warnings
12736 if test ! -s out/conftest.err; then
12737 lt_cv_prog_compiler_c_o_F77=yes
12741 $rm conftest* out/*
12748 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12749 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12752 hard_links="nottested"
12753 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12754 # do not overwrite the value of need_locks provided by the user
12755 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12756 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12759 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12761 ln conftest.a conftest.b 2>&5 || hard_links=no
12762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12763 echo "$as_me:$LINENO: result: $hard_links" >&5
12764 echo "${ECHO_T}$hard_links" >&6
12765 if test "$hard_links" = no; then
12766 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12767 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12774 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12775 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12778 allow_undefined_flag_F77=
12779 enable_shared_with_static_runtimes_F77=no
12781 archive_expsym_cmds_F77=
12782 old_archive_From_new_cmds_F77=
12783 old_archive_from_expsyms_cmds_F77=
12784 export_dynamic_flag_spec_F77=
12785 whole_archive_flag_spec_F77=
12786 thread_safe_flag_spec_F77=
12787 hardcode_libdir_flag_spec_F77=
12788 hardcode_libdir_flag_spec_ld_F77=
12789 hardcode_libdir_separator_F77=
12790 hardcode_direct_F77=no
12791 hardcode_minus_L_F77=no
12792 hardcode_shlibpath_var_F77=unsupported
12793 link_all_deplibs_F77=unknown
12794 hardcode_automatic_F77=no
12796 module_expsym_cmds_F77=
12797 always_export_symbols_F77=no
12798 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12799 # include_expsyms should be a list of space-separated symbols to be *always*
12800 # included in the symbol list
12801 include_expsyms_F77=
12802 # exclude_expsyms can be an extended regexp of symbols to exclude
12803 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12804 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12805 # as well as any symbol that contains `d'.
12806 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12807 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12808 # platforms (ab)use it in PIC code, but their linkers get confused if
12809 # the symbol is explicitly referenced. Since portable code cannot
12810 # rely on this symbol name, it's probably fine to never include it in
12811 # preloaded symbol tables.
12812 extract_expsyms_cmds=
12815 cygwin* | mingw* | pw32*)
12816 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12817 # When not using gcc, we currently assume that we are using
12818 # Microsoft Visual C++.
12819 if test "$GCC" != yes; then
12829 if test "$with_gnu_ld" = yes; then
12830 # If archive_cmds runs LD, not CC, wlarc should be empty
12833 # See if GNU ld supports shared libraries.
12835 aix3* | aix4* | aix5*)
12836 # On AIX/PPC, the GNU linker is very broken
12837 if test "$host_cpu" != ia64; then
12841 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12842 *** to be unable to reliably create shared libraries on AIX.
12843 *** Therefore, libtool is disabling shared libraries support. If you
12844 *** really care for shared libraries, you may want to modify your PATH
12845 *** so that a non-GNU linker is found, and then restart.
12852 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)'
12853 hardcode_libdir_flag_spec_F77='-L$libdir'
12854 hardcode_minus_L_F77=yes
12856 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12857 # that the semantics of dynamic libraries on AmigaOS, at least up
12858 # to version 4, is to share data among multiple programs linked
12859 # with the same dynamic library. Since this doesn't match the
12860 # behavior of shared libraries on other platforms, we can't use
12866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12867 allow_undefined_flag_F77=unsupported
12868 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12869 # support --undefined. This deserves some investigation. FIXME
12870 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12876 cygwin* | mingw* | pw32*)
12877 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12878 # as there is no search path for DLLs.
12879 hardcode_libdir_flag_spec_F77='-L$libdir'
12880 allow_undefined_flag_F77=unsupported
12881 always_export_symbols_F77=no
12882 enable_shared_with_static_runtimes_F77=yes
12883 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12885 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12886 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12887 # If the export-symbols file already is a .def file (1st line
12888 # is EXPORTS), use it as is; otherwise, prepend...
12889 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12890 cp $export_symbols $output_objdir/$soname.def;
12892 echo EXPORTS > $output_objdir/$soname.def;
12893 cat $export_symbols >> $output_objdir/$soname.def;
12895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12903 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12906 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12907 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12912 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12916 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12917 *** create shared libraries on Solaris systems. Therefore, libtool
12918 *** is disabling shared libraries support. We urge you to upgrade GNU
12919 *** binutils to release 2.9.1 or newer. Another option is to modify
12920 *** your PATH or compiler configuration so that the native linker is
12921 *** used, and then restart.
12924 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12925 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12926 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12933 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12935 hardcode_direct_F77=yes
12936 hardcode_shlibpath_var_F77=no
12940 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12941 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12949 if test "$ld_shlibs_F77" = yes; then
12950 runpath_var=LD_RUN_PATH
12951 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12952 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12953 # ancient GNU ld didn't support --whole-archive et. al.
12954 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12955 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12957 whole_archive_flag_spec_F77=
12961 # PORTME fill in a description of your system's linker (not GNU ld)
12964 allow_undefined_flag_F77=unsupported
12965 always_export_symbols_F77=yes
12966 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'
12967 # Note: this linker hardcodes the directories in LIBPATH if there
12968 # are no directories specified by -L.
12969 hardcode_minus_L_F77=yes
12970 if test "$GCC" = yes && test -z "$link_static_flag"; then
12971 # Neither direct hardcoding nor static linking is supported with a
12973 hardcode_direct_F77=unsupported
12978 if test "$host_cpu" = ia64; then
12979 # On IA64, the linker does run time linking by default, so we don't
12980 # have to do anything special.
12981 aix_use_runtimelinking=no
12982 exp_sym_flag='-Bexport'
12985 # If we're using GNU nm, then we don't want the "-C" option.
12986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12987 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12988 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'
12990 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'
12992 aix_use_runtimelinking=no
12994 # Test if we are trying to use run time linking or normal
12995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12996 # need to do runtime linking.
12997 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12998 for ld_flag in $LDFLAGS; do
12999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13000 aix_use_runtimelinking=yes
13006 exp_sym_flag='-bexport'
13007 no_entry_flag='-bnoentry'
13010 # When large executables or shared objects are built, AIX ld can
13011 # have problems creating the table of contents. If linking a library
13012 # or program results in "error TOC overflow" add -mminimal-toc to
13013 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13014 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13016 archive_cmds_F77=''
13017 hardcode_direct_F77=yes
13018 hardcode_libdir_separator_F77=':'
13019 link_all_deplibs_F77=yes
13021 if test "$GCC" = yes; then
13022 case $host_os in aix4.012|aix4.012.*)
13023 # We only want to do this on AIX 4.2 and lower, the check
13024 # below for broken collect2 doesn't work under 4.3+
13025 collect2name=`${CC} -print-prog-name=collect2`
13026 if test -f "$collect2name" && \
13027 strings "$collect2name" | grep resolve_lib_name >/dev/null
13029 # We have reworked collect2
13030 hardcode_direct_F77=yes
13032 # We have old collect2
13033 hardcode_direct_F77=unsupported
13034 # It fails to find uninstalled libraries when the uninstalled
13035 # path is not listed in the libpath. Setting hardcode_minus_L
13036 # to unsupported forces relinking
13037 hardcode_minus_L_F77=yes
13038 hardcode_libdir_flag_spec_F77='-L$libdir'
13039 hardcode_libdir_separator_F77=
13042 shared_flag='-shared'
13045 if test "$host_cpu" = ia64; then
13046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13047 # chokes on -Wl,-G. The following line is correct:
13050 if test "$aix_use_runtimelinking" = yes; then
13051 shared_flag='${wl}-G'
13053 shared_flag='${wl}-bM:SRE'
13058 # It seems that -bexpall does not export symbols beginning with
13059 # underscore (_), so it is better to generate a list of symbols to export.
13060 always_export_symbols_F77=yes
13061 if test "$aix_use_runtimelinking" = yes; then
13062 # Warning - without using the other runtime loading flags (-brtl),
13063 # -berok will link without error, but may produce a broken library.
13064 allow_undefined_flag_F77='-berok'
13065 # Determine the default libpath from the value encoded in an empty executable.
13066 cat >conftest.$ac_ext <<_ACEOF
13071 rm -f conftest.$ac_objext conftest$ac_exeext
13072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13073 (eval $ac_link) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -s conftest$ac_exeext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13086 # Check for a 64-bit object if we didn't find anything.
13087 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; }
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13097 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13098 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"
13100 if test "$host_cpu" = ia64; then
13101 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13102 allow_undefined_flag_F77="-z nodefs"
13103 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"
13105 # Determine the default libpath from the value encoded in an empty executable.
13106 cat >conftest.$ac_ext <<_ACEOF
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113 (eval $ac_link) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -s conftest$ac_exeext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13126 # Check for a 64-bit object if we didn't find anything.
13127 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; }
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13138 # Warning - without using the other run time loading flags,
13139 # -berok will link without error, but may produce a broken library.
13140 no_undefined_flag_F77=' ${wl}-bernotok'
13141 allow_undefined_flag_F77=' ${wl}-berok'
13142 # -bexpall does not export symbols beginning with underscore (_)
13143 always_export_symbols_F77=yes
13144 # Exported symbols can be pulled into shared objects from archives
13145 whole_archive_flag_spec_F77=' '
13146 archive_cmds_need_lc_F77=yes
13147 # This is similar to how AIX traditionally builds it's shared libraries.
13148 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'
13154 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)'
13155 hardcode_libdir_flag_spec_F77='-L$libdir'
13156 hardcode_minus_L_F77=yes
13157 # see comment about different semantics on the GNU ld section
13162 export_dynamic_flag_spec_F77=-rdynamic
13165 cygwin* | mingw* | pw32*)
13166 # When not using gcc, we currently assume that we are using
13167 # Microsoft Visual C++.
13168 # hardcode_libdir_flag_spec is actually meaningless, as there is
13169 # no search path for DLLs.
13170 hardcode_libdir_flag_spec_F77=' '
13171 allow_undefined_flag_F77=unsupported
13172 # Tell ltmain to make .lib files, not .a files.
13174 # Tell ltmain to make .dll files, not .so files.
13176 # FIXME: Setting linknames here is a bad hack.
13177 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13178 # The linker will automatically build a .lib file if we build a DLL.
13179 old_archive_From_new_cmds_F77='true'
13180 # FIXME: Should let the user specify the lib program.
13181 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13182 fix_srcfile_path='`cygpath -w "$srcfile"`'
13183 enable_shared_with_static_runtimes_F77=yes
13186 darwin* | rhapsody*)
13187 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13188 archive_cmds_need_lc_F77=no
13190 rhapsody* | darwin1.[012])
13191 allow_undefined_flag_F77='-undefined suppress'
13194 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13197 # FIXME: Relying on posixy $() will cause problems for
13198 # cross-compilation, but unfortunately the echo tests do not
13199 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13200 # `"' quotes if we put them in here... so don't!
13201 lt_int_apple_cc_single_mod=no
13202 output_verbose_link_cmd='echo'
13203 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13204 lt_int_apple_cc_single_mod=yes
13206 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13207 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13209 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'
13211 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13213 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13214 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}'
13216 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}'
13218 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}'
13219 hardcode_direct_F77=no
13220 hardcode_automatic_F77=yes
13221 hardcode_shlibpath_var_F77=unsupported
13222 whole_archive_flag_spec_F77='-all_load $convenience'
13223 link_all_deplibs_F77=yes
13228 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13229 hardcode_libdir_flag_spec_F77='-L$libdir'
13230 hardcode_shlibpath_var_F77=no
13237 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13238 # support. Future versions do this automatically, but an explicit c++rt0.o
13239 # does not break anything, and helps significantly (at the cost of a little
13242 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13243 hardcode_libdir_flag_spec_F77='-R$libdir'
13244 hardcode_direct_F77=yes
13245 hardcode_shlibpath_var_F77=no
13248 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13250 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_direct_F77=yes
13252 hardcode_minus_L_F77=yes
13253 hardcode_shlibpath_var_F77=no
13256 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13258 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13259 hardcode_libdir_flag_spec_F77='-R$libdir'
13260 hardcode_direct_F77=yes
13261 hardcode_shlibpath_var_F77=no
13265 if test "$GCC" = yes; then
13266 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'
13268 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'
13270 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13271 hardcode_libdir_separator_F77=:
13272 hardcode_direct_F77=yes
13274 # hardcode_minus_L: Not really in the search PATH,
13275 # but as the default location of the library.
13276 hardcode_minus_L_F77=yes
13277 export_dynamic_flag_spec_F77='${wl}-E'
13281 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13282 case "$host_cpu" in
13284 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13287 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13291 case "$host_cpu" in
13293 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13296 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13300 if test "$with_gnu_ld" = no; then
13301 case "$host_cpu" in
13303 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13304 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13305 hardcode_libdir_separator_F77=:
13306 hardcode_direct_F77=no
13307 hardcode_shlibpath_var_F77=no
13310 hardcode_libdir_flag_spec_F77='-L$libdir'
13311 hardcode_direct_F77=no
13312 hardcode_shlibpath_var_F77=no
13314 # hardcode_minus_L: Not really in the search PATH,
13315 # but as the default location of the library.
13316 hardcode_minus_L_F77=yes
13319 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13320 hardcode_libdir_separator_F77=:
13321 hardcode_direct_F77=yes
13322 export_dynamic_flag_spec_F77='${wl}-E'
13324 # hardcode_minus_L: Not really in the search PATH,
13325 # but as the default location of the library.
13326 hardcode_minus_L_F77=yes
13332 irix5* | irix6* | nonstopux*)
13333 if test "$GCC" = yes; then
13334 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'
13336 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'
13337 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13339 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13340 hardcode_libdir_separator_F77=:
13341 link_all_deplibs_F77=yes
13345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13346 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13348 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13350 hardcode_libdir_flag_spec_F77='-R$libdir'
13351 hardcode_direct_F77=yes
13352 hardcode_shlibpath_var_F77=no
13356 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13357 hardcode_direct_F77=yes
13358 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13359 hardcode_libdir_separator_F77=:
13360 hardcode_shlibpath_var_F77=no
13364 hardcode_direct_F77=yes
13365 hardcode_shlibpath_var_F77=no
13366 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13367 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13368 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13369 export_dynamic_flag_spec_F77='${wl}-E'
13372 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13373 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13374 hardcode_libdir_flag_spec_F77='-R$libdir'
13377 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13378 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13385 hardcode_libdir_flag_spec_F77='-L$libdir'
13386 hardcode_minus_L_F77=yes
13387 allow_undefined_flag_F77=unsupported
13388 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'
13389 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13393 if test "$GCC" = yes; then
13394 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13395 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'
13397 allow_undefined_flag_F77=' -expect_unresolved \*'
13398 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'
13400 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13401 hardcode_libdir_separator_F77=:
13404 osf4* | osf5*) # as osf3* with the addition of -msym flag
13405 if test "$GCC" = yes; then
13406 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13407 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'
13408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13410 allow_undefined_flag_F77=' -expect_unresolved \*'
13411 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'
13412 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~
13413 $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'
13415 # Both c and cxx compiler support -rpath directly
13416 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13418 hardcode_libdir_separator_F77=:
13422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13423 hardcode_shlibpath_var_F77=no
13424 export_dynamic_flag_spec_F77='${wl}-Bexport'
13425 runpath_var=LD_RUN_PATH
13426 hardcode_runpath_var=yes
13430 no_undefined_flag_F77=' -z text'
13431 if test "$GCC" = yes; then
13432 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13433 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13434 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13436 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13437 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13438 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13440 hardcode_libdir_flag_spec_F77='-R$libdir'
13441 hardcode_shlibpath_var_F77=no
13443 solaris2.[0-5] | solaris2.[0-5].*) ;;
13444 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13445 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13447 link_all_deplibs_F77=yes
13451 if test "x$host_vendor" = xsequent; then
13452 # Use $CC to link under sequent, because it throws in some extra .o
13453 # files that make .init and .fini sections work.
13454 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13456 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13458 hardcode_libdir_flag_spec_F77='-L$libdir'
13459 hardcode_direct_F77=yes
13460 hardcode_minus_L_F77=yes
13461 hardcode_shlibpath_var_F77=no
13465 case $host_vendor in
13467 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468 hardcode_direct_F77=yes # is this really true???
13471 ## LD is ld it makes a PLAMLIB
13472 ## CC just makes a GrossModule.
13473 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13474 reload_cmds_F77='$CC -r -o $output$reload_objs'
13475 hardcode_direct_F77=no
13478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13482 runpath_var='LD_RUN_PATH'
13483 hardcode_shlibpath_var_F77=no
13487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488 hardcode_shlibpath_var_F77=no
13489 export_dynamic_flag_spec_F77='-Bexport'
13493 if test -d /usr/nec; then
13494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495 hardcode_shlibpath_var_F77=no
13496 runpath_var=LD_RUN_PATH
13497 hardcode_runpath_var=yes
13503 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13504 hardcode_direct_F77=yes
13505 hardcode_minus_L_F77=no
13506 hardcode_shlibpath_var_F77=no
13507 hardcode_runpath_var=yes
13508 runpath_var=LD_RUN_PATH
13511 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13512 no_undefined_flag_F77='${wl}-z ${wl}text'
13513 if test "$GCC" = yes; then
13514 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13516 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13518 runpath_var='LD_RUN_PATH'
13519 hardcode_shlibpath_var_F77=no
13523 no_undefined_flag_F77=' -z text'
13524 # $CC -shared without GNU ld will not create a library from C++
13525 # object files and a static libstdc++, better avoid it by now
13526 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13527 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13528 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13529 hardcode_libdir_flag_spec_F77=
13530 hardcode_shlibpath_var_F77=no
13531 runpath_var='LD_RUN_PATH'
13535 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13536 hardcode_libdir_flag_spec_F77='-L$libdir'
13537 hardcode_shlibpath_var_F77=no
13546 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13547 echo "${ECHO_T}$ld_shlibs_F77" >&6
13548 test "$ld_shlibs_F77" = no && can_build_shared=no
13550 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13551 if test "$GCC" = yes; then
13552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13556 # Do we need to explicitly link libc?
13558 case "x$archive_cmds_need_lc_F77" in
13560 # Assume -lc should be added
13561 archive_cmds_need_lc_F77=yes
13563 if test "$enable_shared" = yes && test "$GCC" = yes; then
13564 case $archive_cmds_F77 in
13566 # FIXME: we may have to deal with multi-command sequences.
13569 # Test whether the compiler implicitly links with -lc since on some
13570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13571 # to ld, don't add -lc before -lgcc.
13572 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13573 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13575 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578 (eval $ac_compile) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } 2>conftest.err; then
13584 libobjs=conftest.$ac_objext
13586 wl=$lt_prog_compiler_wl_F77
13592 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13593 allow_undefined_flag_F77=
13594 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13595 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }
13600 archive_cmds_need_lc_F77=no
13602 archive_cmds_need_lc_F77=yes
13604 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13606 cat conftest.err 1>&5
13609 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13610 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13617 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13618 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13619 hardcode_action_F77=
13620 if test -n "$hardcode_libdir_flag_spec_F77" || \
13621 test -n "$runpath_var F77" || \
13622 test "X$hardcode_automatic_F77"="Xyes" ; then
13624 # We can hardcode non-existant directories.
13625 if test "$hardcode_direct_F77" != no &&
13626 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13627 # have to relink, otherwise we might link with an installed library
13628 # when we should be linking with a yet-to-be-installed one
13629 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13630 test "$hardcode_minus_L_F77" != no; then
13631 # Linking always hardcodes the temporary library directory.
13632 hardcode_action_F77=relink
13634 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13635 hardcode_action_F77=immediate
13638 # We cannot hardcode anything, or else we can only hardcode existing
13640 hardcode_action_F77=unsupported
13642 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13643 echo "${ECHO_T}$hardcode_action_F77" >&6
13645 if test "$hardcode_action_F77" = relink; then
13646 # Fast installation is not supported
13647 enable_fast_install=no
13648 elif test "$shlibpath_overrides_runpath" = yes ||
13649 test "$enable_shared" = no; then
13650 # Fast installation is not necessary
13651 enable_fast_install=needless
13656 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13657 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13658 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13659 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13660 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13661 echo "$as_me:$LINENO: result: yes" >&5
13662 echo "${ECHO_T}yes" >&6
13664 # FIXME - insert some real tests, host_os isn't really good enough
13667 if test -n "$STRIP" ; then
13668 striplib="$STRIP -x"
13669 echo "$as_me:$LINENO: result: yes" >&5
13670 echo "${ECHO_T}yes" >&6
13672 echo "$as_me:$LINENO: result: no" >&5
13673 echo "${ECHO_T}no" >&6
13677 echo "$as_me:$LINENO: result: no" >&5
13678 echo "${ECHO_T}no" >&6
13683 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13685 library_names_spec=
13686 libname_spec='lib$name'
13690 postuninstall_cmds=
13694 shlibpath_overrides_runpath=unknown
13696 dynamic_linker="$host_os ld.so"
13697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13698 if test "$GCC" = yes; then
13699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13700 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13701 # if the path contains ";" then we assume it to be the separator
13702 # otherwise default to the standard path separator (i.e. ":") - it is
13703 # assumed that no part of a normal pathname contains ";" but that should
13704 # okay in the real world where ";" in dirpaths is itself problematic.
13705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13710 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13712 need_lib_prefix=unknown
13713 hardcode_into_libs=no
13715 # when you set need_version to no, make sure it does not cause -set_version
13716 # flags to be left without arguments
13717 need_version=unknown
13722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13723 shlibpath_var=LIBPATH
13725 # AIX 3 has no versioning support, so we append a major version to the name.
13726 soname_spec='${libname}${release}${shared_ext}$major'
13733 hardcode_into_libs=yes
13734 if test "$host_cpu" = ia64; then
13735 # AIX 5 supports IA64
13736 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13737 shlibpath_var=LD_LIBRARY_PATH
13739 # With GCC up to 2.95.x, collect2 would create an import file
13740 # for dependence libraries. The import file would start with
13741 # the line `#! .'. This would cause the generated library to
13742 # depend on `.', always an invalid library. This was fixed in
13743 # development snapshots of GCC prior to 3.0.
13745 aix4 | aix4.[01] | aix4.[01].*)
13746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13748 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13751 can_build_shared=no
13755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13756 # soname into executable. Probably we can add versioning support to
13757 # collect2, so additional links can be useful in future.
13758 if test "$aix_use_runtimelinking" = yes; then
13759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13760 # instead of lib<name>.a to let people know that these are not
13761 # typical AIX shared libraries.
13762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764 # We preserve .a as extension for shared libraries through AIX4.2
13765 # and later when we are not doing run time linking.
13766 library_names_spec='${libname}${release}.a $libname.a'
13767 soname_spec='${libname}${release}${shared_ext}$major'
13769 shlibpath_var=LIBPATH
13774 library_names_spec='$libname.ixlibrary $libname.a'
13775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13776 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'
13780 library_names_spec='${libname}${shared_ext}'
13781 dynamic_linker="$host_os ld.so"
13782 shlibpath_var=LIBRARY_PATH
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789 soname_spec='${libname}${release}${shared_ext}$major'
13790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13791 shlibpath_var=LD_LIBRARY_PATH
13792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13794 # the default ld.so.conf also contains /usr/contrib/lib and
13795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13796 # libtool to hard-code these into programs
13799 cygwin* | mingw* | pw32*)
13800 version_type=windows
13805 case $GCC,$host_os in
13806 yes,cygwin* | yes,mingw* | yes,pw32*)
13807 library_names_spec='$libname.dll.a'
13808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13809 postinstall_cmds='base_file=`basename \${file}`~
13810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13811 dldir=$destdir/`dirname \$dlpath`~
13812 test -d \$dldir || mkdir -p \$dldir~
13813 $install_prog $dir/$dlname \$dldir/$dlname'
13814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13815 dlpath=$dir/\$dldll~
13817 shlibpath_overrides_runpath=yes
13821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13822 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13823 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13826 # MinGW DLLs use traditional 'lib' prefix
13827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13829 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13830 # It is most probably a Windows format PATH printed by
13831 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13832 # path with ; separators, and with drive letters. We can handle the
13833 # drive letters (cygwin fileutils understands them), so leave them,
13834 # especially as we might pass files found there to a mingw objdump,
13835 # which wouldn't understand a cygwinified path. Ahh.
13836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13842 # pw32 DLLs use 'pw' prefix rather than 'lib'
13843 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13849 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13852 dynamic_linker='Win32 ld.exe'
13853 # FIXME: first we should search . and the directory the executable is in
13857 darwin* | rhapsody*)
13858 dynamic_linker="$host_os dyld"
13859 version_type=darwin
13862 # FIXME: Relying on posixy $() will cause problems for
13863 # cross-compilation, but unfortunately the echo tests do not
13864 # yet detect zsh echo's removal of \ escapes.
13865 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13866 soname_spec='${libname}${release}${major}$shared_ext'
13867 shlibpath_overrides_runpath=yes
13868 shlibpath_var=DYLD_LIBRARY_PATH
13869 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13870 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13871 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13872 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"`
13874 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13882 soname_spec='${libname}${release}${shared_ext}$major'
13883 shlibpath_var=LD_LIBRARY_PATH
13891 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13892 version_type=freebsd-$objformat
13893 case $version_type in
13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13904 shlibpath_var=LD_LIBRARY_PATH
13907 shlibpath_overrides_runpath=yes
13909 freebsd3.01* | freebsdelf3.01*)
13910 shlibpath_overrides_runpath=yes
13911 hardcode_into_libs=yes
13914 shlibpath_overrides_runpath=no
13915 hardcode_into_libs=yes
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13925 soname_spec='${libname}${release}${shared_ext}$major'
13926 shlibpath_var=LD_LIBRARY_PATH
13927 hardcode_into_libs=yes
13930 hpux9* | hpux10* | hpux11*)
13931 # Give a soname corresponding to the major version so that dld.sl refuses to
13932 # link against other versions.
13936 case "$host_cpu" in
13939 hardcode_into_libs=yes
13940 dynamic_linker="$host_os dld.so"
13941 shlibpath_var=LD_LIBRARY_PATH
13942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 if test "X$HPUX_IA64_MODE" = X32; then
13946 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13948 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13954 hardcode_into_libs=yes
13955 dynamic_linker="$host_os dld.sl"
13956 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959 soname_spec='${libname}${release}${shared_ext}$major'
13960 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13965 dynamic_linker="$host_os dld.sl"
13966 shlibpath_var=SHLIB_PATH
13967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969 soname_spec='${libname}${release}${shared_ext}$major'
13972 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13973 postinstall_cmds='chmod 555 $lib'
13976 irix5* | irix6* | nonstopux*)
13978 nonstopux*) version_type=nonstopux ;;
13980 if test "$lt_cv_prog_gnu_ld" = yes; then
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13991 irix5* | nonstopux*)
13992 libsuff= shlibsuff=
13995 case $LD in # libtool.m4 will add one of these switches to LD
13996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13997 libsuff= shlibsuff= libmagic=32-bit;;
13998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13999 libsuff=32 shlibsuff=N32 libmagic=N32;;
14000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14002 *) libsuff= shlibsuff= libmagic=never-match;;
14006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14007 shlibpath_overrides_runpath=no
14008 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14009 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14010 hardcode_into_libs=yes
14013 # No shared lib support for Linux oldld, aout, or coff.
14014 linux*oldld* | linux*aout* | linux*coff*)
14018 # This must be Linux ELF.
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14024 soname_spec='${libname}${release}${shared_ext}$major'
14025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14026 shlibpath_var=LD_LIBRARY_PATH
14027 shlibpath_overrides_runpath=no
14028 # This implies no fast_install, which is unacceptable.
14029 # Some rework will be needed to allow for fast_install
14030 # before this can be enabled.
14031 hardcode_into_libs=yes
14033 # We used to test for /lib/ld.so.1 and disable shared libraries on
14034 # powerpc, because MkLinux only supported shared libraries with the
14035 # GNU dynamic linker. Since this was broken with cross compilers,
14036 # most powerpc-linux boxes support dynamic linking these days and
14037 # people can always --disable-shared, the test was removed, and we
14038 # assume the GNU/Linux dynamic linker is in use.
14039 dynamic_linker='GNU/Linux ld.so'
14046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14049 dynamic_linker='NetBSD (a.out) ld.so'
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14052 soname_spec='${libname}${release}${shared_ext}$major'
14053 dynamic_linker='NetBSD ld.elf_so'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 shlibpath_overrides_runpath=yes
14057 hardcode_into_libs=yes
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14063 shlibpath_var=LD_LIBRARY_PATH
14064 shlibpath_overrides_runpath=yes
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072 soname_spec='${libname}${release}${shared_ext}$major'
14073 shlibpath_var=LD_LIBRARY_PATH
14074 shlibpath_overrides_runpath=yes
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14083 shlibpath_var=LD_LIBRARY_PATH
14084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14086 openbsd2.[89] | openbsd2.[89].*)
14087 shlibpath_overrides_runpath=no
14090 shlibpath_overrides_runpath=yes
14094 shlibpath_overrides_runpath=yes
14099 libname_spec='$name'
14102 library_names_spec='$libname${shared_ext} $libname.a'
14103 dynamic_linker='OS/2 ld.exe'
14104 shlibpath_var=LIBPATH
14107 osf3* | osf4* | osf5*)
14111 soname_spec='${libname}${release}${shared_ext}$major'
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14115 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14120 soname_spec='${libname}${release}${shared_ext}$major'
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122 shlibpath_var=LD_LIBRARY_PATH
14129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130 soname_spec='${libname}${release}${shared_ext}$major'
14131 shlibpath_var=LD_LIBRARY_PATH
14132 shlibpath_overrides_runpath=yes
14133 hardcode_into_libs=yes
14134 # ldd complains unless libraries are executable
14135 postinstall_cmds='chmod +x $lib'
14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14141 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14142 shlibpath_var=LD_LIBRARY_PATH
14143 shlibpath_overrides_runpath=yes
14144 if test "$with_gnu_ld" = yes; then
14150 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153 soname_spec='${libname}${release}${shared_ext}$major'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 case $host_vendor in
14157 shlibpath_overrides_runpath=no
14159 export_dynamic_flag_spec='${wl}-Blargedynsym'
14160 runpath_var=LD_RUN_PATH
14168 shlibpath_overrides_runpath=no
14169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14175 if test -d /usr/nec ;then
14177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14178 soname_spec='$libname${shared_ext}.$major'
14179 shlibpath_var=LD_LIBRARY_PATH
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 shlibpath_var=LD_LIBRARY_PATH
14194 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14195 echo "${ECHO_T}$dynamic_linker" >&6
14196 test "$dynamic_linker" = no && can_build_shared=no
14199 # The else clause should only fire when bootstrapping the
14200 # libtool distribution, otherwise you forgot to ship ltmain.sh
14201 # with your package, and you will get complaints that there are
14202 # no rules to generate ltmain.sh.
14203 if test -f "$ltmain"; then
14204 # See if we are running on zsh, and set the options which allow our commands through
14205 # without removal of \ escapes.
14206 if test -n "${ZSH_VERSION+set}" ; then
14207 setopt NO_GLOB_SUBST
14209 # Now quote all the things that may contain metacharacters while being
14210 # careful not to overquote the AC_SUBSTed values. We take copies of the
14211 # variables and quote the copies for generation of the libtool script.
14212 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14213 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14214 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14215 deplibs_check_method reload_flag reload_cmds need_locks \
14216 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14217 lt_cv_sys_global_symbol_to_c_name_address \
14218 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14219 old_postinstall_cmds old_postuninstall_cmds \
14223 lt_prog_compiler_wl_F77 \
14224 lt_prog_compiler_pic_F77 \
14225 lt_prog_compiler_static_F77 \
14226 lt_prog_compiler_no_builtin_flag_F77 \
14227 export_dynamic_flag_spec_F77 \
14228 thread_safe_flag_spec_F77 \
14229 whole_archive_flag_spec_F77 \
14230 enable_shared_with_static_runtimes_F77 \
14231 old_archive_cmds_F77 \
14232 old_archive_from_new_cmds_F77 \
14233 predep_objects_F77 \
14234 postdep_objects_F77 \
14237 compiler_lib_search_path_F77 \
14239 archive_expsym_cmds_F77 \
14240 postinstall_cmds_F77 \
14241 postuninstall_cmds_F77 \
14242 old_archive_from_expsyms_cmds_F77 \
14243 allow_undefined_flag_F77 \
14244 no_undefined_flag_F77 \
14245 export_symbols_cmds_F77 \
14246 hardcode_libdir_flag_spec_F77 \
14247 hardcode_libdir_flag_spec_ld_F77 \
14248 hardcode_libdir_separator_F77 \
14249 hardcode_automatic_F77 \
14251 module_expsym_cmds_F77 \
14252 lt_cv_prog_compiler_c_o_F77 \
14253 exclude_expsyms_F77 \
14254 include_expsyms_F77; do
14257 old_archive_cmds_F77 | \
14258 old_archive_from_new_cmds_F77 | \
14259 archive_cmds_F77 | \
14260 archive_expsym_cmds_F77 | \
14261 module_cmds_F77 | \
14262 module_expsym_cmds_F77 | \
14263 old_archive_from_expsyms_cmds_F77 | \
14264 export_symbols_cmds_F77 | \
14265 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14266 postinstall_cmds | postuninstall_cmds | \
14267 old_postinstall_cmds | old_postuninstall_cmds | \
14268 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14269 # Double-quote double-evaled strings.
14270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14279 *'\$0 --fallback-echo"')
14280 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14286 cat <<__EOF__ >> "$cfgfile"
14287 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14291 # Shell to use when invoking shell scripts.
14294 # Whether or not to build shared libraries.
14295 build_libtool_libs=$enable_shared
14297 # Whether or not to build static libraries.
14298 build_old_libs=$enable_static
14300 # Whether or not to add -lc for building shared libraries.
14301 build_libtool_need_lc=$archive_cmds_need_lc_F77
14303 # Whether or not to disallow shared libs when runtime libs are static
14304 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14306 # Whether or not to optimize for fast installation.
14307 fast_install=$enable_fast_install
14310 host_alias=$host_alias
14313 # An echo program that does not interpret backslashes.
14318 AR_FLAGS=$lt_AR_FLAGS
14323 # A language-specific compiler.
14324 CC=$lt_compiler_F77
14326 # Is the compiler the GNU C compiler?
14332 # The linker used to build libraries.
14335 # Whether we need hard or soft links.
14338 # A BSD-compatible nm program.
14341 # A symbol stripping program
14344 # Used to examine libraries when file_magic_cmd begins "file"
14345 MAGIC_CMD=$MAGIC_CMD
14347 # Used on cygwin: DLL creation program.
14350 # Used on cygwin: object dumper.
14353 # Used on cygwin: assembler.
14356 # The name of the directory that contains temporary libtool files.
14359 # How to create reloadable object files.
14360 reload_flag=$lt_reload_flag
14361 reload_cmds=$lt_reload_cmds
14363 # How to pass a linker flag through the compiler.
14364 wl=$lt_lt_prog_compiler_wl_F77
14366 # Object file suffix (normally "o").
14367 objext="$ac_objext"
14369 # Old archive suffix (normally "a").
14372 # Shared library suffix (normally ".so").
14375 # Executable file suffix (normally "").
14378 # Additional compiler flags for building library objects.
14379 pic_flag=$lt_lt_prog_compiler_pic_F77
14382 # What is the maximum length of a command?
14383 max_cmd_len=$lt_cv_sys_max_cmd_len
14385 # Does compiler simultaneously support -c and -o options?
14386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14388 # Must we lock files when doing compilation ?
14389 need_locks=$lt_need_locks
14391 # Do we need the lib prefix for modules?
14392 need_lib_prefix=$need_lib_prefix
14394 # Do we need a version for libraries?
14395 need_version=$need_version
14397 # Whether dlopen is supported.
14398 dlopen_support=$enable_dlopen
14400 # Whether dlopen of programs is supported.
14401 dlopen_self=$enable_dlopen_self
14403 # Whether dlopen of statically linked programs is supported.
14404 dlopen_self_static=$enable_dlopen_self_static
14406 # Compiler flag to prevent dynamic linking.
14407 link_static_flag=$lt_lt_prog_compiler_static_F77
14409 # Compiler flag to turn off builtin functions.
14410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14412 # Compiler flag to allow reflexive dlopens.
14413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14415 # Compiler flag to generate shared objects directly from archives.
14416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14418 # Compiler flag to generate thread-safe objects.
14419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14421 # Library versioning type.
14422 version_type=$version_type
14424 # Format of library name prefix.
14425 libname_spec=$lt_libname_spec
14427 # List of archive names. First name is the real one, the rest are links.
14428 # The last name is the one that the linker finds with -lNAME.
14429 library_names_spec=$lt_library_names_spec
14431 # The coded name of the library, if different from the real name.
14432 soname_spec=$lt_soname_spec
14434 # Commands used to build and install an old-style archive.
14436 old_archive_cmds=$lt_old_archive_cmds_F77
14437 old_postinstall_cmds=$lt_old_postinstall_cmds
14438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14440 # Create an old-style archive from a shared archive.
14441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14443 # Create a temporary old-style archive to link instead of a shared archive.
14444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14446 # Commands used to build and install a shared archive.
14447 archive_cmds=$lt_archive_cmds_F77
14448 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14449 postinstall_cmds=$lt_postinstall_cmds
14450 postuninstall_cmds=$lt_postuninstall_cmds
14452 # Commands used to build a loadable module (assumed same as above if empty)
14453 module_cmds=$lt_module_cmds_F77
14454 module_expsym_cmds=$lt_module_expsym_cmds_F77
14456 # Commands to strip libraries.
14457 old_striplib=$lt_old_striplib
14458 striplib=$lt_striplib
14460 # Dependencies to place before the objects being linked to create a
14462 predep_objects=$lt_predep_objects_F77
14464 # Dependencies to place after the objects being linked to create a
14466 postdep_objects=$lt_postdep_objects_F77
14468 # Dependencies to place before the objects being linked to create a
14470 predeps=$lt_predeps_F77
14472 # Dependencies to place after the objects being linked to create a
14474 postdeps=$lt_postdeps_F77
14476 # The library search path used internally by the compiler when linking
14477 # a shared library.
14478 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14480 # Method to check whether dependent libraries are shared objects.
14481 deplibs_check_method=$lt_deplibs_check_method
14483 # Command to use when deplibs_check_method == file_magic.
14484 file_magic_cmd=$lt_file_magic_cmd
14486 # Flag that allows shared libraries with undefined symbols to be built.
14487 allow_undefined_flag=$lt_allow_undefined_flag_F77
14489 # Flag that forces no undefined symbols.
14490 no_undefined_flag=$lt_no_undefined_flag_F77
14492 # Commands used to finish a libtool library installation in a directory.
14493 finish_cmds=$lt_finish_cmds
14495 # Same as above, but a single script fragment to be evaled but not shown.
14496 finish_eval=$lt_finish_eval
14498 # Take the output of nm and produce a listing of raw symbols and C names.
14499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14501 # Transform the output of nm in a proper C declaration
14502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14504 # Transform the output of nm in a C name address pair
14505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14507 # This is the shared library runtime path variable.
14508 runpath_var=$runpath_var
14510 # This is the shared library path variable.
14511 shlibpath_var=$shlibpath_var
14513 # Is shlibpath searched before the hard-coded library search path?
14514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14516 # How to hardcode a shared library path into an executable.
14517 hardcode_action=$hardcode_action_F77
14519 # Whether we should hardcode library paths into libraries.
14520 hardcode_into_libs=$hardcode_into_libs
14522 # Flag to hardcode \$libdir into a binary during linking.
14523 # This must work even if \$libdir does not exist.
14524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14526 # If ld is used when linking, flag to hardcode \$libdir into
14527 # a binary during linking. This must work even if \$libdir does
14529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14531 # Whether we need a single -rpath flag with a separated argument.
14532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14535 # resulting binary.
14536 hardcode_direct=$hardcode_direct_F77
14538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14539 # resulting binary.
14540 hardcode_minus_L=$hardcode_minus_L_F77
14542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14543 # the resulting binary.
14544 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14546 # Set to yes if building a shared library automatically hardcodes DIR into the library
14547 # and all subsequent libraries and executables linked against it.
14548 hardcode_automatic=$hardcode_automatic_F77
14550 # Variables whose values should be saved in libtool wrapper scripts and
14551 # restored at relink time.
14552 variables_saved_for_relink="$variables_saved_for_relink"
14554 # Whether libtool must link a program against all its dependency libraries.
14555 link_all_deplibs=$link_all_deplibs_F77
14557 # Compile-time system search path for libraries
14558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14560 # Run-time system search path for libraries
14561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14563 # Fix the shell variable \$srcfile for the compiler.
14564 fix_srcfile_path="$fix_srcfile_path_F77"
14566 # Set to yes if exported symbols are required.
14567 always_export_symbols=$always_export_symbols_F77
14569 # The commands to list exported symbols.
14570 export_symbols_cmds=$lt_export_symbols_cmds_F77
14572 # The commands to extract the exported symbol list from a shared archive.
14573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14575 # Symbols that should not be listed in the preloaded symbols.
14576 exclude_expsyms=$lt_exclude_expsyms_F77
14578 # Symbols that must always be exported.
14579 include_expsyms=$lt_include_expsyms_F77
14581 # ### END LIBTOOL TAG CONFIG: $tagname
14587 # If there is no Makefile yet, we rely on a make rule to execute
14588 # `config.status --recheck' to rerun these tests and create the
14589 # libtool script then.
14590 test -f Makefile && make "$ltmain"
14595 ac_cpp='$CPP $CPPFLAGS'
14596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14608 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14612 # Source file extension for Java test sources.
14615 # Object file extension for compiled Java test sources.
14619 # Code to be used in simple compile tests
14620 lt_simple_compile_test_code="class foo {}\n"
14622 # Code to be used in simple link tests
14623 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14625 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14627 # If no C compiler was specified, use CC.
14630 # Allow CC to be a program name with arguments.
14634 # Allow CC to be a program name with arguments.
14640 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14641 archive_cmds_need_lc_GCJ=no
14644 lt_prog_compiler_no_builtin_flag_GCJ=
14646 if test "$GCC" = yes; then
14647 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14649 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14650 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14651 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 lt_cv_prog_compiler_rtti_exceptions=no
14655 ac_outfile=conftest.$ac_objext
14656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14657 lt_compiler_flag="-fno-rtti -fno-exceptions"
14658 # Insert the option either (1) after the last *FLAGS variable, or
14659 # (2) before a word containing "conftest.", or (3) at the end.
14660 # Note that $ac_compile itself does not contain backslashes and begins
14661 # with a dollar sign (not a hyphen), so the echo should work correctly.
14662 # The option is referenced via a variable to avoid confusing sed.
14663 lt_compile=`echo "$ac_compile" | $SED \
14664 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14666 -e 's:$: $lt_compiler_flag:'`
14667 (eval echo "\"\$as_me:14667: $lt_compile\"" >&5)
14668 (eval "$lt_compile" 2>conftest.err)
14670 cat conftest.err >&5
14671 echo "$as_me:14671: \$? = $ac_status" >&5
14672 if (exit $ac_status) && test -s "$ac_outfile"; then
14673 # The compiler can only warn and ignore the option if not recognized
14674 # So say no if there are warnings
14675 if test ! -s conftest.err; then
14676 lt_cv_prog_compiler_rtti_exceptions=yes
14682 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14683 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14685 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14686 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14693 lt_prog_compiler_wl_GCJ=
14694 lt_prog_compiler_pic_GCJ=
14695 lt_prog_compiler_static_GCJ=
14697 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14698 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14700 if test "$GCC" = yes; then
14701 lt_prog_compiler_wl_GCJ='-Wl,'
14702 lt_prog_compiler_static_GCJ='-static'
14706 # All AIX code is PIC.
14707 if test "$host_cpu" = ia64; then
14708 # AIX 5 now supports IA64 processor
14709 lt_prog_compiler_static_GCJ='-Bstatic'
14714 # FIXME: we need at least 68020 code to build shared libraries, but
14715 # adding the `-m68020' flag to GCC prevents building anything better,
14717 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14720 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14721 # PIC is the default for these OSes.
14724 mingw* | pw32* | os2*)
14725 # This hack is so that the source file can tell whether it is being
14726 # built for inclusion in a dll (and should export symbols for example).
14727 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14730 darwin* | rhapsody*)
14731 # PIC is the default on this platform
14732 # Common symbols not allowed in MH_DYLIB files
14733 lt_prog_compiler_pic_GCJ='-fno-common'
14737 # Just because we use GCC doesn't mean we suddenly get shared libraries
14738 # on systems that don't support them.
14739 lt_prog_compiler_can_build_shared_GCJ=no
14744 if test -d /usr/nec; then
14745 lt_prog_compiler_pic_GCJ=-Kconform_pic
14750 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14751 # not for PA HP-UX.
14752 case "$host_cpu" in
14757 lt_prog_compiler_pic_GCJ='-fPIC'
14763 lt_prog_compiler_pic_GCJ='-fPIC'
14767 # PORTME Check for flag to pass linker flags through the system compiler.
14770 lt_prog_compiler_wl_GCJ='-Wl,'
14771 if test "$host_cpu" = ia64; then
14772 # AIX 5 now supports IA64 processor
14773 lt_prog_compiler_static_GCJ='-Bstatic'
14775 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14779 mingw* | pw32* | os2*)
14780 # This hack is so that the source file can tell whether it is being
14781 # built for inclusion in a dll (and should export symbols for example).
14782 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14785 hpux9* | hpux10* | hpux11*)
14786 lt_prog_compiler_wl_GCJ='-Wl,'
14787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14788 # not for PA HP-UX.
14789 case "$host_cpu" in
14794 lt_prog_compiler_pic_GCJ='+Z'
14797 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14798 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14801 irix5* | irix6* | nonstopux*)
14802 lt_prog_compiler_wl_GCJ='-Wl,'
14803 # PIC (with -KPIC) is the default.
14804 lt_prog_compiler_static_GCJ='-non_shared'
14808 lt_prog_compiler_pic_GCJ='-KPIC'
14809 lt_prog_compiler_static_GCJ='-Bstatic'
14815 lt_prog_compiler_wl_GCJ='-Wl,'
14816 lt_prog_compiler_pic_GCJ='-KPIC'
14817 lt_prog_compiler_static_GCJ='-static'
14820 lt_prog_compiler_wl_GCJ='-Wl,'
14821 # All Alpha code is PIC.
14822 lt_prog_compiler_static_GCJ='-non_shared'
14827 osf3* | osf4* | osf5*)
14828 lt_prog_compiler_wl_GCJ='-Wl,'
14829 # All OSF/1 code is PIC.
14830 lt_prog_compiler_static_GCJ='-non_shared'
14834 lt_prog_compiler_pic_GCJ='-Kpic'
14835 lt_prog_compiler_static_GCJ='-dn'
14839 lt_prog_compiler_wl_GCJ='-Wl,'
14840 lt_prog_compiler_pic_GCJ='-KPIC'
14841 lt_prog_compiler_static_GCJ='-Bstatic'
14845 lt_prog_compiler_wl_GCJ='-Qoption ld '
14846 lt_prog_compiler_pic_GCJ='-PIC'
14847 lt_prog_compiler_static_GCJ='-Bstatic'
14850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14851 lt_prog_compiler_wl_GCJ='-Wl,'
14852 lt_prog_compiler_pic_GCJ='-KPIC'
14853 lt_prog_compiler_static_GCJ='-Bstatic'
14857 if test -d /usr/nec ;then
14858 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14859 lt_prog_compiler_static_GCJ='-Bstatic'
14864 lt_prog_compiler_pic_GCJ='-pic'
14865 lt_prog_compiler_static_GCJ='-Bstatic'
14869 lt_prog_compiler_can_build_shared_GCJ=no
14874 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14875 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14878 # Check to make sure the PIC flag actually works.
14880 if test -n "$lt_prog_compiler_pic_GCJ"; then
14881 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14882 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14883 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 lt_prog_compiler_pic_works_GCJ=no
14887 ac_outfile=conftest.$ac_objext
14888 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14889 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14890 # Insert the option either (1) after the last *FLAGS variable, or
14891 # (2) before a word containing "conftest.", or (3) at the end.
14892 # Note that $ac_compile itself does not contain backslashes and begins
14893 # with a dollar sign (not a hyphen), so the echo should work correctly.
14894 # The option is referenced via a variable to avoid confusing sed.
14895 lt_compile=`echo "$ac_compile" | $SED \
14896 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14898 -e 's:$: $lt_compiler_flag:'`
14899 (eval echo "\"\$as_me:14899: $lt_compile\"" >&5)
14900 (eval "$lt_compile" 2>conftest.err)
14902 cat conftest.err >&5
14903 echo "$as_me:14903: \$? = $ac_status" >&5
14904 if (exit $ac_status) && test -s "$ac_outfile"; then
14905 # The compiler can only warn and ignore the option if not recognized
14906 # So say no if there are warnings
14907 if test ! -s conftest.err; then
14908 lt_prog_compiler_pic_works_GCJ=yes
14914 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14915 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14917 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14918 case $lt_prog_compiler_pic_GCJ in
14920 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14923 lt_prog_compiler_pic_GCJ=
14924 lt_prog_compiler_can_build_shared_GCJ=no
14929 # For platforms which do not support PIC, -DPIC is meaningless:
14931 lt_prog_compiler_pic_GCJ=
14934 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14938 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14939 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14940 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 lt_cv_prog_compiler_c_o_GCJ=no
14944 $rm -r conftest 2>/dev/null
14948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14950 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14951 # that will create temporary files in the current directory regardless of
14952 # the output directory. Thus, making CWD read-only will cause this test
14953 # to fail, enabling locking or at least warning the user not to do parallel
14957 lt_compiler_flag="-o out/conftest2.$ac_objext"
14958 # Insert the option either (1) after the last *FLAGS variable, or
14959 # (2) before a word containing "conftest.", or (3) at the end.
14960 # Note that $ac_compile itself does not contain backslashes and begins
14961 # with a dollar sign (not a hyphen), so the echo should work correctly.
14962 lt_compile=`echo "$ac_compile" | $SED \
14963 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14965 -e 's:$: $lt_compiler_flag:'`
14966 (eval echo "\"\$as_me:14966: $lt_compile\"" >&5)
14967 (eval "$lt_compile" 2>out/conftest.err)
14969 cat out/conftest.err >&5
14970 echo "$as_me:14970: \$? = $ac_status" >&5
14971 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14973 # The compiler can only warn and ignore the option if not recognized
14974 # So say no if there are warnings
14975 if test ! -s out/conftest.err; then
14976 lt_cv_prog_compiler_c_o_GCJ=yes
14980 $rm conftest* out/*
14987 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14988 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14991 hard_links="nottested"
14992 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14993 # do not overwrite the value of need_locks provided by the user
14994 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14995 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15000 ln conftest.a conftest.b 2>&5 || hard_links=no
15001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15002 echo "$as_me:$LINENO: result: $hard_links" >&5
15003 echo "${ECHO_T}$hard_links" >&6
15004 if test "$hard_links" = no; then
15005 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15006 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15013 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15017 allow_undefined_flag_GCJ=
15018 enable_shared_with_static_runtimes_GCJ=no
15020 archive_expsym_cmds_GCJ=
15021 old_archive_From_new_cmds_GCJ=
15022 old_archive_from_expsyms_cmds_GCJ=
15023 export_dynamic_flag_spec_GCJ=
15024 whole_archive_flag_spec_GCJ=
15025 thread_safe_flag_spec_GCJ=
15026 hardcode_libdir_flag_spec_GCJ=
15027 hardcode_libdir_flag_spec_ld_GCJ=
15028 hardcode_libdir_separator_GCJ=
15029 hardcode_direct_GCJ=no
15030 hardcode_minus_L_GCJ=no
15031 hardcode_shlibpath_var_GCJ=unsupported
15032 link_all_deplibs_GCJ=unknown
15033 hardcode_automatic_GCJ=no
15035 module_expsym_cmds_GCJ=
15036 always_export_symbols_GCJ=no
15037 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15038 # include_expsyms should be a list of space-separated symbols to be *always*
15039 # included in the symbol list
15040 include_expsyms_GCJ=
15041 # exclude_expsyms can be an extended regexp of symbols to exclude
15042 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15043 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15044 # as well as any symbol that contains `d'.
15045 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15047 # platforms (ab)use it in PIC code, but their linkers get confused if
15048 # the symbol is explicitly referenced. Since portable code cannot
15049 # rely on this symbol name, it's probably fine to never include it in
15050 # preloaded symbol tables.
15051 extract_expsyms_cmds=
15054 cygwin* | mingw* | pw32*)
15055 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15056 # When not using gcc, we currently assume that we are using
15057 # Microsoft Visual C++.
15058 if test "$GCC" != yes; then
15068 if test "$with_gnu_ld" = yes; then
15069 # If archive_cmds runs LD, not CC, wlarc should be empty
15072 # See if GNU ld supports shared libraries.
15074 aix3* | aix4* | aix5*)
15075 # On AIX/PPC, the GNU linker is very broken
15076 if test "$host_cpu" != ia64; then
15080 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15081 *** to be unable to reliably create shared libraries on AIX.
15082 *** Therefore, libtool is disabling shared libraries support. If you
15083 *** really care for shared libraries, you may want to modify your PATH
15084 *** so that a non-GNU linker is found, and then restart.
15091 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)'
15092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15093 hardcode_minus_L_GCJ=yes
15095 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15096 # that the semantics of dynamic libraries on AmigaOS, at least up
15097 # to version 4, is to share data among multiple programs linked
15098 # with the same dynamic library. Since this doesn't match the
15099 # behavior of shared libraries on other platforms, we can't use
15105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15106 allow_undefined_flag_GCJ=unsupported
15107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15108 # support --undefined. This deserves some investigation. FIXME
15109 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15115 cygwin* | mingw* | pw32*)
15116 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15117 # as there is no search path for DLLs.
15118 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15119 allow_undefined_flag_GCJ=unsupported
15120 always_export_symbols_GCJ=no
15121 enable_shared_with_static_runtimes_GCJ=yes
15122 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15124 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15125 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15126 # If the export-symbols file already is a .def file (1st line
15127 # is EXPORTS), use it as is; otherwise, prepend...
15128 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15129 cp $export_symbols $output_objdir/$soname.def;
15131 echo EXPORTS > $output_objdir/$soname.def;
15132 cat $export_symbols >> $output_objdir/$soname.def;
15134 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15142 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15145 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15146 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15151 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15155 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15156 *** create shared libraries on Solaris systems. Therefore, libtool
15157 *** is disabling shared libraries support. We urge you to upgrade GNU
15158 *** binutils to release 2.9.1 or newer. Another option is to modify
15159 *** your PATH or compiler configuration so that the native linker is
15160 *** used, and then restart.
15163 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15164 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15165 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15172 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15174 hardcode_direct_GCJ=yes
15175 hardcode_shlibpath_var_GCJ=no
15179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15180 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15181 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15188 if test "$ld_shlibs_GCJ" = yes; then
15189 runpath_var=LD_RUN_PATH
15190 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15191 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15192 # ancient GNU ld didn't support --whole-archive et. al.
15193 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15194 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15196 whole_archive_flag_spec_GCJ=
15200 # PORTME fill in a description of your system's linker (not GNU ld)
15203 allow_undefined_flag_GCJ=unsupported
15204 always_export_symbols_GCJ=yes
15205 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'
15206 # Note: this linker hardcodes the directories in LIBPATH if there
15207 # are no directories specified by -L.
15208 hardcode_minus_L_GCJ=yes
15209 if test "$GCC" = yes && test -z "$link_static_flag"; then
15210 # Neither direct hardcoding nor static linking is supported with a
15212 hardcode_direct_GCJ=unsupported
15217 if test "$host_cpu" = ia64; then
15218 # On IA64, the linker does run time linking by default, so we don't
15219 # have to do anything special.
15220 aix_use_runtimelinking=no
15221 exp_sym_flag='-Bexport'
15224 # If we're using GNU nm, then we don't want the "-C" option.
15225 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15226 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15227 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'
15229 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'
15231 aix_use_runtimelinking=no
15233 # Test if we are trying to use run time linking or normal
15234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15235 # need to do runtime linking.
15236 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15237 for ld_flag in $LDFLAGS; do
15238 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15239 aix_use_runtimelinking=yes
15245 exp_sym_flag='-bexport'
15246 no_entry_flag='-bnoentry'
15249 # When large executables or shared objects are built, AIX ld can
15250 # have problems creating the table of contents. If linking a library
15251 # or program results in "error TOC overflow" add -mminimal-toc to
15252 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15253 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15255 archive_cmds_GCJ=''
15256 hardcode_direct_GCJ=yes
15257 hardcode_libdir_separator_GCJ=':'
15258 link_all_deplibs_GCJ=yes
15260 if test "$GCC" = yes; then
15261 case $host_os in aix4.012|aix4.012.*)
15262 # We only want to do this on AIX 4.2 and lower, the check
15263 # below for broken collect2 doesn't work under 4.3+
15264 collect2name=`${CC} -print-prog-name=collect2`
15265 if test -f "$collect2name" && \
15266 strings "$collect2name" | grep resolve_lib_name >/dev/null
15268 # We have reworked collect2
15269 hardcode_direct_GCJ=yes
15271 # We have old collect2
15272 hardcode_direct_GCJ=unsupported
15273 # It fails to find uninstalled libraries when the uninstalled
15274 # path is not listed in the libpath. Setting hardcode_minus_L
15275 # to unsupported forces relinking
15276 hardcode_minus_L_GCJ=yes
15277 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15278 hardcode_libdir_separator_GCJ=
15281 shared_flag='-shared'
15284 if test "$host_cpu" = ia64; then
15285 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15286 # chokes on -Wl,-G. The following line is correct:
15289 if test "$aix_use_runtimelinking" = yes; then
15290 shared_flag='${wl}-G'
15292 shared_flag='${wl}-bM:SRE'
15297 # It seems that -bexpall does not export symbols beginning with
15298 # underscore (_), so it is better to generate a list of symbols to export.
15299 always_export_symbols_GCJ=yes
15300 if test "$aix_use_runtimelinking" = yes; then
15301 # Warning - without using the other runtime loading flags (-brtl),
15302 # -berok will link without error, but may produce a broken library.
15303 allow_undefined_flag_GCJ='-berok'
15304 # Determine the default libpath from the value encoded in an empty executable.
15305 cat >conftest.$ac_ext <<_ACEOF
15306 #line $LINENO "configure"
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15321 rm -f conftest.$ac_objext conftest$ac_exeext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15323 (eval $ac_link) 2>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -s conftest$ac_exeext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15334 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15336 # Check for a 64-bit object if we didn't find anything.
15337 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; }
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15347 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15348 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"
15350 if test "$host_cpu" = ia64; then
15351 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15352 allow_undefined_flag_GCJ="-z nodefs"
15353 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"
15355 # Determine the default libpath from the value encoded in an empty executable.
15356 cat >conftest.$ac_ext <<_ACEOF
15357 #line $LINENO "configure"
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15372 rm -f conftest.$ac_objext conftest$ac_exeext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15374 (eval $ac_link) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15385 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15387 # Check for a 64-bit object if we didn't find anything.
15388 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; }
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15398 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15399 # Warning - without using the other run time loading flags,
15400 # -berok will link without error, but may produce a broken library.
15401 no_undefined_flag_GCJ=' ${wl}-bernotok'
15402 allow_undefined_flag_GCJ=' ${wl}-berok'
15403 # -bexpall does not export symbols beginning with underscore (_)
15404 always_export_symbols_GCJ=yes
15405 # Exported symbols can be pulled into shared objects from archives
15406 whole_archive_flag_spec_GCJ=' '
15407 archive_cmds_need_lc_GCJ=yes
15408 # This is similar to how AIX traditionally builds it's shared libraries.
15409 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'
15415 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)'
15416 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15417 hardcode_minus_L_GCJ=yes
15418 # see comment about different semantics on the GNU ld section
15423 export_dynamic_flag_spec_GCJ=-rdynamic
15426 cygwin* | mingw* | pw32*)
15427 # When not using gcc, we currently assume that we are using
15428 # Microsoft Visual C++.
15429 # hardcode_libdir_flag_spec is actually meaningless, as there is
15430 # no search path for DLLs.
15431 hardcode_libdir_flag_spec_GCJ=' '
15432 allow_undefined_flag_GCJ=unsupported
15433 # Tell ltmain to make .lib files, not .a files.
15435 # Tell ltmain to make .dll files, not .so files.
15437 # FIXME: Setting linknames here is a bad hack.
15438 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15439 # The linker will automatically build a .lib file if we build a DLL.
15440 old_archive_From_new_cmds_GCJ='true'
15441 # FIXME: Should let the user specify the lib program.
15442 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15443 fix_srcfile_path='`cygpath -w "$srcfile"`'
15444 enable_shared_with_static_runtimes_GCJ=yes
15447 darwin* | rhapsody*)
15448 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15449 archive_cmds_need_lc_GCJ=no
15451 rhapsody* | darwin1.[012])
15452 allow_undefined_flag_GCJ='-undefined suppress'
15455 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15458 # FIXME: Relying on posixy $() will cause problems for
15459 # cross-compilation, but unfortunately the echo tests do not
15460 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15461 # `"' quotes if we put them in here... so don't!
15462 lt_int_apple_cc_single_mod=no
15463 output_verbose_link_cmd='echo'
15464 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15465 lt_int_apple_cc_single_mod=yes
15467 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15468 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15470 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'
15472 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15473 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15474 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15475 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}'
15477 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}'
15479 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}'
15480 hardcode_direct_GCJ=no
15481 hardcode_automatic_GCJ=yes
15482 hardcode_shlibpath_var_GCJ=unsupported
15483 whole_archive_flag_spec_GCJ='-all_load $convenience'
15484 link_all_deplibs_GCJ=yes
15489 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15490 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15491 hardcode_shlibpath_var_GCJ=no
15498 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15499 # support. Future versions do this automatically, but an explicit c++rt0.o
15500 # does not break anything, and helps significantly (at the cost of a little
15503 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15504 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15505 hardcode_direct_GCJ=yes
15506 hardcode_shlibpath_var_GCJ=no
15509 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15511 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15512 hardcode_direct_GCJ=yes
15513 hardcode_minus_L_GCJ=yes
15514 hardcode_shlibpath_var_GCJ=no
15517 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15519 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15520 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15521 hardcode_direct_GCJ=yes
15522 hardcode_shlibpath_var_GCJ=no
15526 if test "$GCC" = yes; then
15527 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'
15529 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'
15531 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15532 hardcode_libdir_separator_GCJ=:
15533 hardcode_direct_GCJ=yes
15535 # hardcode_minus_L: Not really in the search PATH,
15536 # but as the default location of the library.
15537 hardcode_minus_L_GCJ=yes
15538 export_dynamic_flag_spec_GCJ='${wl}-E'
15542 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15543 case "$host_cpu" in
15545 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15548 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15552 case "$host_cpu" in
15554 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15557 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15561 if test "$with_gnu_ld" = no; then
15562 case "$host_cpu" in
15564 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15565 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15566 hardcode_libdir_separator_GCJ=:
15567 hardcode_direct_GCJ=no
15568 hardcode_shlibpath_var_GCJ=no
15571 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15572 hardcode_direct_GCJ=no
15573 hardcode_shlibpath_var_GCJ=no
15575 # hardcode_minus_L: Not really in the search PATH,
15576 # but as the default location of the library.
15577 hardcode_minus_L_GCJ=yes
15580 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15581 hardcode_libdir_separator_GCJ=:
15582 hardcode_direct_GCJ=yes
15583 export_dynamic_flag_spec_GCJ='${wl}-E'
15585 # hardcode_minus_L: Not really in the search PATH,
15586 # but as the default location of the library.
15587 hardcode_minus_L_GCJ=yes
15593 irix5* | irix6* | nonstopux*)
15594 if test "$GCC" = yes; then
15595 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'
15597 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'
15598 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15600 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15601 hardcode_libdir_separator_GCJ=:
15602 link_all_deplibs_GCJ=yes
15606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15607 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15609 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15611 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15612 hardcode_direct_GCJ=yes
15613 hardcode_shlibpath_var_GCJ=no
15617 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15618 hardcode_direct_GCJ=yes
15619 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15620 hardcode_libdir_separator_GCJ=:
15621 hardcode_shlibpath_var_GCJ=no
15625 hardcode_direct_GCJ=yes
15626 hardcode_shlibpath_var_GCJ=no
15627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15628 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15629 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15630 export_dynamic_flag_spec_GCJ='${wl}-E'
15633 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15634 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15635 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15638 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15646 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15647 hardcode_minus_L_GCJ=yes
15648 allow_undefined_flag_GCJ=unsupported
15649 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'
15650 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15654 if test "$GCC" = yes; then
15655 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15656 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'
15658 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15659 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'
15661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15662 hardcode_libdir_separator_GCJ=:
15665 osf4* | osf5*) # as osf3* with the addition of -msym flag
15666 if test "$GCC" = yes; then
15667 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15668 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'
15669 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15671 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15672 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'
15673 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~
15674 $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'
15676 # Both c and cxx compiler support -rpath directly
15677 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15679 hardcode_libdir_separator_GCJ=:
15683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15684 hardcode_shlibpath_var_GCJ=no
15685 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15686 runpath_var=LD_RUN_PATH
15687 hardcode_runpath_var=yes
15691 no_undefined_flag_GCJ=' -z text'
15692 if test "$GCC" = yes; then
15693 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15694 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15695 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15697 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15699 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15701 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15702 hardcode_shlibpath_var_GCJ=no
15704 solaris2.[0-5] | solaris2.[0-5].*) ;;
15705 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15706 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15708 link_all_deplibs_GCJ=yes
15712 if test "x$host_vendor" = xsequent; then
15713 # Use $CC to link under sequent, because it throws in some extra .o
15714 # files that make .init and .fini sections work.
15715 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15717 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15719 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15720 hardcode_direct_GCJ=yes
15721 hardcode_minus_L_GCJ=yes
15722 hardcode_shlibpath_var_GCJ=no
15726 case $host_vendor in
15728 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15729 hardcode_direct_GCJ=yes # is this really true???
15732 ## LD is ld it makes a PLAMLIB
15733 ## CC just makes a GrossModule.
15734 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15735 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15736 hardcode_direct_GCJ=no
15739 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15740 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15743 runpath_var='LD_RUN_PATH'
15744 hardcode_shlibpath_var_GCJ=no
15748 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749 hardcode_shlibpath_var_GCJ=no
15750 export_dynamic_flag_spec_GCJ='-Bexport'
15754 if test -d /usr/nec; then
15755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_shlibpath_var_GCJ=no
15757 runpath_var=LD_RUN_PATH
15758 hardcode_runpath_var=yes
15764 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_direct_GCJ=yes
15766 hardcode_minus_L_GCJ=no
15767 hardcode_shlibpath_var_GCJ=no
15768 hardcode_runpath_var=yes
15769 runpath_var=LD_RUN_PATH
15772 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15773 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15774 if test "$GCC" = yes; then
15775 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15779 runpath_var='LD_RUN_PATH'
15780 hardcode_shlibpath_var_GCJ=no
15784 no_undefined_flag_GCJ=' -z text'
15785 # $CC -shared without GNU ld will not create a library from C++
15786 # object files and a static libstdc++, better avoid it by now
15787 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15789 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15790 hardcode_libdir_flag_spec_GCJ=
15791 hardcode_shlibpath_var_GCJ=no
15792 runpath_var='LD_RUN_PATH'
15796 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15797 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15798 hardcode_shlibpath_var_GCJ=no
15807 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15808 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15809 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15811 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15812 if test "$GCC" = yes; then
15813 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15817 # Do we need to explicitly link libc?
15819 case "x$archive_cmds_need_lc_GCJ" in
15821 # Assume -lc should be added
15822 archive_cmds_need_lc_GCJ=yes
15824 if test "$enable_shared" = yes && test "$GCC" = yes; then
15825 case $archive_cmds_GCJ in
15827 # FIXME: we may have to deal with multi-command sequences.
15830 # Test whether the compiler implicitly links with -lc since on some
15831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15832 # to ld, don't add -lc before -lgcc.
15833 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15834 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15836 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15839 (eval $ac_compile) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } 2>conftest.err; then
15845 libobjs=conftest.$ac_objext
15847 wl=$lt_prog_compiler_wl_GCJ
15853 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15854 allow_undefined_flag_GCJ=
15855 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15856 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }
15861 archive_cmds_need_lc_GCJ=no
15863 archive_cmds_need_lc_GCJ=yes
15865 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15867 cat conftest.err 1>&5
15870 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15871 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15878 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15879 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15880 hardcode_action_GCJ=
15881 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15882 test -n "$runpath_var GCJ" || \
15883 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15885 # We can hardcode non-existant directories.
15886 if test "$hardcode_direct_GCJ" != no &&
15887 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15888 # have to relink, otherwise we might link with an installed library
15889 # when we should be linking with a yet-to-be-installed one
15890 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15891 test "$hardcode_minus_L_GCJ" != no; then
15892 # Linking always hardcodes the temporary library directory.
15893 hardcode_action_GCJ=relink
15895 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15896 hardcode_action_GCJ=immediate
15899 # We cannot hardcode anything, or else we can only hardcode existing
15901 hardcode_action_GCJ=unsupported
15903 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15904 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15906 if test "$hardcode_action_GCJ" = relink; then
15907 # Fast installation is not supported
15908 enable_fast_install=no
15909 elif test "$shlibpath_overrides_runpath" = yes ||
15910 test "$enable_shared" = no; then
15911 # Fast installation is not necessary
15912 enable_fast_install=needless
15917 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15918 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15919 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15920 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15921 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15922 echo "$as_me:$LINENO: result: yes" >&5
15923 echo "${ECHO_T}yes" >&6
15925 # FIXME - insert some real tests, host_os isn't really good enough
15928 if test -n "$STRIP" ; then
15929 striplib="$STRIP -x"
15930 echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6
15933 echo "$as_me:$LINENO: result: no" >&5
15934 echo "${ECHO_T}no" >&6
15938 echo "$as_me:$LINENO: result: no" >&5
15939 echo "${ECHO_T}no" >&6
15944 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15946 library_names_spec=
15947 libname_spec='lib$name'
15951 postuninstall_cmds=
15955 shlibpath_overrides_runpath=unknown
15957 dynamic_linker="$host_os ld.so"
15958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15959 if test "$GCC" = yes; then
15960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15961 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15962 # if the path contains ";" then we assume it to be the separator
15963 # otherwise default to the standard path separator (i.e. ":") - it is
15964 # assumed that no part of a normal pathname contains ";" but that should
15965 # okay in the real world where ";" in dirpaths is itself problematic.
15966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15971 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15973 need_lib_prefix=unknown
15974 hardcode_into_libs=no
15976 # when you set need_version to no, make sure it does not cause -set_version
15977 # flags to be left without arguments
15978 need_version=unknown
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15984 shlibpath_var=LIBPATH
15986 # AIX 3 has no versioning support, so we append a major version to the name.
15987 soname_spec='${libname}${release}${shared_ext}$major'
15994 hardcode_into_libs=yes
15995 if test "$host_cpu" = ia64; then
15996 # AIX 5 supports IA64
15997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15998 shlibpath_var=LD_LIBRARY_PATH
16000 # With GCC up to 2.95.x, collect2 would create an import file
16001 # for dependence libraries. The import file would start with
16002 # the line `#! .'. This would cause the generated library to
16003 # depend on `.', always an invalid library. This was fixed in
16004 # development snapshots of GCC prior to 3.0.
16006 aix4 | aix4.[01] | aix4.[01].*)
16007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16009 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16012 can_build_shared=no
16016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16017 # soname into executable. Probably we can add versioning support to
16018 # collect2, so additional links can be useful in future.
16019 if test "$aix_use_runtimelinking" = yes; then
16020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16021 # instead of lib<name>.a to let people know that these are not
16022 # typical AIX shared libraries.
16023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025 # We preserve .a as extension for shared libraries through AIX4.2
16026 # and later when we are not doing run time linking.
16027 library_names_spec='${libname}${release}.a $libname.a'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16030 shlibpath_var=LIBPATH
16035 library_names_spec='$libname.ixlibrary $libname.a'
16036 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16037 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'
16041 library_names_spec='${libname}${shared_ext}'
16042 dynamic_linker="$host_os ld.so"
16043 shlibpath_var=LIBRARY_PATH
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16055 # the default ld.so.conf also contains /usr/contrib/lib and
16056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16057 # libtool to hard-code these into programs
16060 cygwin* | mingw* | pw32*)
16061 version_type=windows
16066 case $GCC,$host_os in
16067 yes,cygwin* | yes,mingw* | yes,pw32*)
16068 library_names_spec='$libname.dll.a'
16069 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16070 postinstall_cmds='base_file=`basename \${file}`~
16071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16072 dldir=$destdir/`dirname \$dlpath`~
16073 test -d \$dldir || mkdir -p \$dldir~
16074 $install_prog $dir/$dlname \$dldir/$dlname'
16075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16076 dlpath=$dir/\$dldll~
16078 shlibpath_overrides_runpath=yes
16082 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16084 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16087 # MinGW DLLs use traditional 'lib' prefix
16088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16090 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16091 # It is most probably a Windows format PATH printed by
16092 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16093 # path with ; separators, and with drive letters. We can handle the
16094 # drive letters (cygwin fileutils understands them), so leave them,
16095 # especially as we might pass files found there to a mingw objdump,
16096 # which wouldn't understand a cygwinified path. Ahh.
16097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16103 # pw32 DLLs use 'pw' prefix rather than 'lib'
16104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16113 dynamic_linker='Win32 ld.exe'
16114 # FIXME: first we should search . and the directory the executable is in
16118 darwin* | rhapsody*)
16119 dynamic_linker="$host_os dyld"
16120 version_type=darwin
16123 # FIXME: Relying on posixy $() will cause problems for
16124 # cross-compilation, but unfortunately the echo tests do not
16125 # yet detect zsh echo's removal of \ escapes.
16126 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16127 soname_spec='${libname}${release}${major}$shared_ext'
16128 shlibpath_overrides_runpath=yes
16129 shlibpath_var=DYLD_LIBRARY_PATH
16130 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16131 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16132 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16133 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"`
16135 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 shlibpath_var=LD_LIBRARY_PATH
16152 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16153 version_type=freebsd-$objformat
16154 case $version_type in
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16165 shlibpath_var=LD_LIBRARY_PATH
16168 shlibpath_overrides_runpath=yes
16170 freebsd3.01* | freebsdelf3.01*)
16171 shlibpath_overrides_runpath=yes
16172 hardcode_into_libs=yes
16175 shlibpath_overrides_runpath=no
16176 hardcode_into_libs=yes
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16186 soname_spec='${libname}${release}${shared_ext}$major'
16187 shlibpath_var=LD_LIBRARY_PATH
16188 hardcode_into_libs=yes
16191 hpux9* | hpux10* | hpux11*)
16192 # Give a soname corresponding to the major version so that dld.sl refuses to
16193 # link against other versions.
16197 case "$host_cpu" in
16200 hardcode_into_libs=yes
16201 dynamic_linker="$host_os dld.so"
16202 shlibpath_var=LD_LIBRARY_PATH
16203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16205 soname_spec='${libname}${release}${shared_ext}$major'
16206 if test "X$HPUX_IA64_MODE" = X32; then
16207 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16209 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16215 hardcode_into_libs=yes
16216 dynamic_linker="$host_os dld.sl"
16217 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220 soname_spec='${libname}${release}${shared_ext}$major'
16221 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16226 dynamic_linker="$host_os dld.sl"
16227 shlibpath_var=SHLIB_PATH
16228 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16230 soname_spec='${libname}${release}${shared_ext}$major'
16233 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16234 postinstall_cmds='chmod 555 $lib'
16237 irix5* | irix6* | nonstopux*)
16239 nonstopux*) version_type=nonstopux ;;
16241 if test "$lt_cv_prog_gnu_ld" = yes; then
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16252 irix5* | nonstopux*)
16253 libsuff= shlibsuff=
16256 case $LD in # libtool.m4 will add one of these switches to LD
16257 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16258 libsuff= shlibsuff= libmagic=32-bit;;
16259 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16260 libsuff=32 shlibsuff=N32 libmagic=N32;;
16261 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16262 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16263 *) libsuff= shlibsuff= libmagic=never-match;;
16267 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16268 shlibpath_overrides_runpath=no
16269 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16270 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16271 hardcode_into_libs=yes
16274 # No shared lib support for Linux oldld, aout, or coff.
16275 linux*oldld* | linux*aout* | linux*coff*)
16279 # This must be Linux ELF.
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16287 shlibpath_var=LD_LIBRARY_PATH
16288 shlibpath_overrides_runpath=no
16289 # This implies no fast_install, which is unacceptable.
16290 # Some rework will be needed to allow for fast_install
16291 # before this can be enabled.
16292 hardcode_into_libs=yes
16294 # We used to test for /lib/ld.so.1 and disable shared libraries on
16295 # powerpc, because MkLinux only supported shared libraries with the
16296 # GNU dynamic linker. Since this was broken with cross compilers,
16297 # most powerpc-linux boxes support dynamic linking these days and
16298 # people can always --disable-shared, the test was removed, and we
16299 # assume the GNU/Linux dynamic linker is in use.
16300 dynamic_linker='GNU/Linux ld.so'
16307 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16310 dynamic_linker='NetBSD (a.out) ld.so'
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 dynamic_linker='NetBSD ld.elf_so'
16316 shlibpath_var=LD_LIBRARY_PATH
16317 shlibpath_overrides_runpath=yes
16318 hardcode_into_libs=yes
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324 shlibpath_var=LD_LIBRARY_PATH
16325 shlibpath_overrides_runpath=yes
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333 soname_spec='${libname}${release}${shared_ext}$major'
16334 shlibpath_var=LD_LIBRARY_PATH
16335 shlibpath_overrides_runpath=yes
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16347 openbsd2.[89] | openbsd2.[89].*)
16348 shlibpath_overrides_runpath=no
16351 shlibpath_overrides_runpath=yes
16355 shlibpath_overrides_runpath=yes
16360 libname_spec='$name'
16363 library_names_spec='$libname${shared_ext} $libname.a'
16364 dynamic_linker='OS/2 ld.exe'
16365 shlibpath_var=LIBPATH
16368 osf3* | osf4* | osf5*)
16372 soname_spec='${libname}${release}${shared_ext}$major'
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374 shlibpath_var=LD_LIBRARY_PATH
16375 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16376 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383 shlibpath_var=LD_LIBRARY_PATH
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 shlibpath_overrides_runpath=yes
16394 hardcode_into_libs=yes
16395 # ldd complains unless libraries are executable
16396 postinstall_cmds='chmod +x $lib'
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16402 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16403 shlibpath_var=LD_LIBRARY_PATH
16404 shlibpath_overrides_runpath=yes
16405 if test "$with_gnu_ld" = yes; then
16411 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 case $host_vendor in
16418 shlibpath_overrides_runpath=no
16420 export_dynamic_flag_spec='${wl}-Blargedynsym'
16421 runpath_var=LD_RUN_PATH
16429 shlibpath_overrides_runpath=no
16430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16436 if test -d /usr/nec ;then
16438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16439 soname_spec='$libname${shared_ext}.$major'
16440 shlibpath_var=LD_LIBRARY_PATH
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447 soname_spec='${libname}${release}${shared_ext}$major'
16448 shlibpath_var=LD_LIBRARY_PATH
16455 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16456 echo "${ECHO_T}$dynamic_linker" >&6
16457 test "$dynamic_linker" = no && can_build_shared=no
16459 if test "x$enable_dlopen" != xyes; then
16460 enable_dlopen=unknown
16461 enable_dlopen_self=unknown
16462 enable_dlopen_self_static=unknown
16469 lt_cv_dlopen="load_add_on"
16471 lt_cv_dlopen_self=yes
16475 lt_cv_dlopen="LoadLibrary"
16480 lt_cv_dlopen="dlopen"
16485 # if libdl is installed we need to link against it
16486 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16487 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16488 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 ac_check_lib_save_LIBS=$LIBS
16493 cat >conftest.$ac_ext <<_ACEOF
16494 #line $LINENO "configure"
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16501 /* Override any gcc2 internal prototype to avoid an error. */
16505 /* We use char because int might match the return type of a gcc2
16506 builtin and then its argument prototype would still apply. */
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16518 (eval $ac_link) 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } &&
16522 { ac_try='test -s conftest$ac_exeext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_lib_dl_dlopen=yes
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 ac_cv_lib_dl_dlopen=no
16535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16536 LIBS=$ac_check_lib_save_LIBS
16538 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16539 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16540 if test $ac_cv_lib_dl_dlopen = yes; then
16541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16544 lt_cv_dlopen="dyld"
16546 lt_cv_dlopen_self=yes
16553 echo "$as_me:$LINENO: checking for shl_load" >&5
16554 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16555 if test "${ac_cv_func_shl_load+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 cat >conftest.$ac_ext <<_ACEOF
16559 #line $LINENO "configure"
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 /* System header to define __stub macros and hopefully few prototypes,
16566 which can conflict with char shl_load (); below.
16567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16568 <limits.h> exists even on freestanding compilers. */
16570 # include <limits.h>
16572 # include <assert.h>
16574 /* Override any gcc2 internal prototype to avoid an error. */
16579 /* We use char because int might match the return type of a gcc2
16580 builtin and then its argument prototype would still apply. */
16582 /* The GNU C library defines this for functions which it implements
16583 to always fail with ENOSYS. Some functions are actually named
16584 something starting with __ and the normal name is an alias. */
16585 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16588 char (*f) () = shl_load;
16597 return f != shl_load;
16602 rm -f conftest.$ac_objext conftest$ac_exeext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16604 (eval $ac_link) 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -s conftest$ac_exeext'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_cv_func_shl_load=yes
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 ac_cv_func_shl_load=no
16621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16623 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16624 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16625 if test $ac_cv_func_shl_load = yes; then
16626 lt_cv_dlopen="shl_load"
16628 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16629 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16630 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 ac_check_lib_save_LIBS=$LIBS
16635 cat >conftest.$ac_ext <<_ACEOF
16636 #line $LINENO "configure"
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16643 /* Override any gcc2 internal prototype to avoid an error. */
16647 /* We use char because int might match the return type of a gcc2
16648 builtin and then its argument prototype would still apply. */
16658 rm -f conftest.$ac_objext conftest$ac_exeext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16660 (eval $ac_link) 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -s conftest$ac_exeext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_cv_lib_dld_shl_load=yes
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 ac_cv_lib_dld_shl_load=no
16677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16678 LIBS=$ac_check_lib_save_LIBS
16680 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16681 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16682 if test $ac_cv_lib_dld_shl_load = yes; then
16683 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16685 echo "$as_me:$LINENO: checking for dlopen" >&5
16686 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16687 if test "${ac_cv_func_dlopen+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16690 cat >conftest.$ac_ext <<_ACEOF
16691 #line $LINENO "configure"
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 /* System header to define __stub macros and hopefully few prototypes,
16698 which can conflict with char dlopen (); below.
16699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700 <limits.h> exists even on freestanding compilers. */
16702 # include <limits.h>
16704 # include <assert.h>
16706 /* Override any gcc2 internal prototype to avoid an error. */
16711 /* We use char because int might match the return type of a gcc2
16712 builtin and then its argument prototype would still apply. */
16714 /* The GNU C library defines this for functions which it implements
16715 to always fail with ENOSYS. Some functions are actually named
16716 something starting with __ and the normal name is an alias. */
16717 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16720 char (*f) () = dlopen;
16729 return f != dlopen;
16734 rm -f conftest.$ac_objext conftest$ac_exeext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16736 (eval $ac_link) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -s conftest$ac_exeext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_func_dlopen=yes
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_func_dlopen=no
16753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16755 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16756 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16757 if test $ac_cv_func_dlopen = yes; then
16758 lt_cv_dlopen="dlopen"
16760 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16761 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 ac_check_lib_save_LIBS=$LIBS
16767 cat >conftest.$ac_ext <<_ACEOF
16768 #line $LINENO "configure"
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16775 /* Override any gcc2 internal prototype to avoid an error. */
16779 /* We use char because int might match the return type of a gcc2
16780 builtin and then its argument prototype would still apply. */
16790 rm -f conftest.$ac_objext conftest$ac_exeext
16791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16792 (eval $ac_link) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
16796 { ac_try='test -s conftest$ac_exeext'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
16802 ac_cv_lib_dl_dlopen=yes
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16807 ac_cv_lib_dl_dlopen=no
16809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16810 LIBS=$ac_check_lib_save_LIBS
16812 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16813 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16814 if test $ac_cv_lib_dl_dlopen = yes; then
16815 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16817 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16818 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16819 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16822 ac_check_lib_save_LIBS=$LIBS
16823 LIBS="-lsvld $LIBS"
16824 cat >conftest.$ac_ext <<_ACEOF
16825 #line $LINENO "configure"
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16832 /* Override any gcc2 internal prototype to avoid an error. */
16836 /* We use char because int might match the return type of a gcc2
16837 builtin and then its argument prototype would still apply. */
16847 rm -f conftest.$ac_objext conftest$ac_exeext
16848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16849 (eval $ac_link) 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
16853 { ac_try='test -s conftest$ac_exeext'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_lib_svld_dlopen=yes
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16864 ac_cv_lib_svld_dlopen=no
16866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16867 LIBS=$ac_check_lib_save_LIBS
16869 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16870 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16871 if test $ac_cv_lib_svld_dlopen = yes; then
16872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16874 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16875 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16876 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16879 ac_check_lib_save_LIBS=$LIBS
16881 cat >conftest.$ac_ext <<_ACEOF
16882 #line $LINENO "configure"
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16889 /* Override any gcc2 internal prototype to avoid an error. */
16893 /* We use char because int might match the return type of a gcc2
16894 builtin and then its argument prototype would still apply. */
16904 rm -f conftest.$ac_objext conftest$ac_exeext
16905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16906 (eval $ac_link) 2>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -s conftest$ac_exeext'
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_cv_lib_dld_dld_link=yes
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 ac_cv_lib_dld_dld_link=no
16923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16924 LIBS=$ac_check_lib_save_LIBS
16926 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16927 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16928 if test $ac_cv_lib_dld_dld_link = yes; then
16929 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16950 if test "x$lt_cv_dlopen" != xno; then
16956 case $lt_cv_dlopen in
16958 save_CPPFLAGS="$CPPFLAGS"
16959 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16961 save_LDFLAGS="$LDFLAGS"
16962 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16965 LIBS="$lt_cv_dlopen_libs $LIBS"
16967 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16968 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16969 if test "${lt_cv_dlopen_self+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 if test "$cross_compiling" = yes; then :
16973 lt_cv_dlopen_self=cross
16975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16976 lt_status=$lt_dlunknown
16977 cat > conftest.$ac_ext <<EOF
16978 #line 16978 "configure"
16979 #include "confdefs.h"
16988 # define LT_DLGLOBAL RTLD_GLOBAL
16991 # define LT_DLGLOBAL DL_GLOBAL
16993 # define LT_DLGLOBAL 0
16997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16998 find out it does not work in some platform. */
16999 #ifndef LT_DLLAZY_OR_NOW
17001 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17004 # define LT_DLLAZY_OR_NOW DL_LAZY
17007 # define LT_DLLAZY_OR_NOW RTLD_NOW
17010 # define LT_DLLAZY_OR_NOW DL_NOW
17012 # define LT_DLLAZY_OR_NOW 0
17020 extern "C" void exit (int);
17023 void fnord() { int i=42;}
17026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17027 int status = $lt_dlunknown;
17031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17032 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17033 /* dlclose (self); */
17039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17040 (eval $ac_link) 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17044 (./conftest; exit; ) 2>/dev/null
17046 case x$lt_status in
17047 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17048 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17049 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17052 # compilation failed
17053 lt_cv_dlopen_self=no
17060 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17061 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17063 if test "x$lt_cv_dlopen_self" = xyes; then
17064 LDFLAGS="$LDFLAGS $link_static_flag"
17065 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17066 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17067 if test "${lt_cv_dlopen_self_static+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17070 if test "$cross_compiling" = yes; then :
17071 lt_cv_dlopen_self_static=cross
17073 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17074 lt_status=$lt_dlunknown
17075 cat > conftest.$ac_ext <<EOF
17076 #line 17076 "configure"
17077 #include "confdefs.h"
17086 # define LT_DLGLOBAL RTLD_GLOBAL
17089 # define LT_DLGLOBAL DL_GLOBAL
17091 # define LT_DLGLOBAL 0
17095 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17096 find out it does not work in some platform. */
17097 #ifndef LT_DLLAZY_OR_NOW
17099 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17102 # define LT_DLLAZY_OR_NOW DL_LAZY
17105 # define LT_DLLAZY_OR_NOW RTLD_NOW
17108 # define LT_DLLAZY_OR_NOW DL_NOW
17110 # define LT_DLLAZY_OR_NOW 0
17118 extern "C" void exit (int);
17121 void fnord() { int i=42;}
17124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17125 int status = $lt_dlunknown;
17129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17130 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17131 /* dlclose (self); */
17137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17142 (./conftest; exit; ) 2>/dev/null
17144 case x$lt_status in
17145 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17146 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17147 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17150 # compilation failed
17151 lt_cv_dlopen_self_static=no
17158 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17159 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17162 CPPFLAGS="$save_CPPFLAGS"
17163 LDFLAGS="$save_LDFLAGS"
17168 case $lt_cv_dlopen_self in
17169 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17170 *) enable_dlopen_self=unknown ;;
17173 case $lt_cv_dlopen_self_static in
17174 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17175 *) enable_dlopen_self_static=unknown ;;
17180 # The else clause should only fire when bootstrapping the
17181 # libtool distribution, otherwise you forgot to ship ltmain.sh
17182 # with your package, and you will get complaints that there are
17183 # no rules to generate ltmain.sh.
17184 if test -f "$ltmain"; then
17185 # See if we are running on zsh, and set the options which allow our commands through
17186 # without removal of \ escapes.
17187 if test -n "${ZSH_VERSION+set}" ; then
17188 setopt NO_GLOB_SUBST
17190 # Now quote all the things that may contain metacharacters while being
17191 # careful not to overquote the AC_SUBSTed values. We take copies of the
17192 # variables and quote the copies for generation of the libtool script.
17193 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17194 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17195 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17196 deplibs_check_method reload_flag reload_cmds need_locks \
17197 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17198 lt_cv_sys_global_symbol_to_c_name_address \
17199 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17200 old_postinstall_cmds old_postuninstall_cmds \
17204 lt_prog_compiler_wl_GCJ \
17205 lt_prog_compiler_pic_GCJ \
17206 lt_prog_compiler_static_GCJ \
17207 lt_prog_compiler_no_builtin_flag_GCJ \
17208 export_dynamic_flag_spec_GCJ \
17209 thread_safe_flag_spec_GCJ \
17210 whole_archive_flag_spec_GCJ \
17211 enable_shared_with_static_runtimes_GCJ \
17212 old_archive_cmds_GCJ \
17213 old_archive_from_new_cmds_GCJ \
17214 predep_objects_GCJ \
17215 postdep_objects_GCJ \
17218 compiler_lib_search_path_GCJ \
17220 archive_expsym_cmds_GCJ \
17221 postinstall_cmds_GCJ \
17222 postuninstall_cmds_GCJ \
17223 old_archive_from_expsyms_cmds_GCJ \
17224 allow_undefined_flag_GCJ \
17225 no_undefined_flag_GCJ \
17226 export_symbols_cmds_GCJ \
17227 hardcode_libdir_flag_spec_GCJ \
17228 hardcode_libdir_flag_spec_ld_GCJ \
17229 hardcode_libdir_separator_GCJ \
17230 hardcode_automatic_GCJ \
17232 module_expsym_cmds_GCJ \
17233 lt_cv_prog_compiler_c_o_GCJ \
17234 exclude_expsyms_GCJ \
17235 include_expsyms_GCJ; do
17238 old_archive_cmds_GCJ | \
17239 old_archive_from_new_cmds_GCJ | \
17240 archive_cmds_GCJ | \
17241 archive_expsym_cmds_GCJ | \
17242 module_cmds_GCJ | \
17243 module_expsym_cmds_GCJ | \
17244 old_archive_from_expsyms_cmds_GCJ | \
17245 export_symbols_cmds_GCJ | \
17246 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17247 postinstall_cmds | postuninstall_cmds | \
17248 old_postinstall_cmds | old_postuninstall_cmds | \
17249 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17250 # Double-quote double-evaled strings.
17251 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17254 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17260 *'\$0 --fallback-echo"')
17261 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17267 cat <<__EOF__ >> "$cfgfile"
17268 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17270 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17272 # Shell to use when invoking shell scripts.
17275 # Whether or not to build shared libraries.
17276 build_libtool_libs=$enable_shared
17278 # Whether or not to build static libraries.
17279 build_old_libs=$enable_static
17281 # Whether or not to add -lc for building shared libraries.
17282 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17284 # Whether or not to disallow shared libs when runtime libs are static
17285 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17287 # Whether or not to optimize for fast installation.
17288 fast_install=$enable_fast_install
17291 host_alias=$host_alias
17294 # An echo program that does not interpret backslashes.
17299 AR_FLAGS=$lt_AR_FLAGS
17304 # A language-specific compiler.
17305 CC=$lt_compiler_GCJ
17307 # Is the compiler the GNU C compiler?
17313 # The linker used to build libraries.
17316 # Whether we need hard or soft links.
17319 # A BSD-compatible nm program.
17322 # A symbol stripping program
17325 # Used to examine libraries when file_magic_cmd begins "file"
17326 MAGIC_CMD=$MAGIC_CMD
17328 # Used on cygwin: DLL creation program.
17331 # Used on cygwin: object dumper.
17334 # Used on cygwin: assembler.
17337 # The name of the directory that contains temporary libtool files.
17340 # How to create reloadable object files.
17341 reload_flag=$lt_reload_flag
17342 reload_cmds=$lt_reload_cmds
17344 # How to pass a linker flag through the compiler.
17345 wl=$lt_lt_prog_compiler_wl_GCJ
17347 # Object file suffix (normally "o").
17348 objext="$ac_objext"
17350 # Old archive suffix (normally "a").
17353 # Shared library suffix (normally ".so").
17356 # Executable file suffix (normally "").
17359 # Additional compiler flags for building library objects.
17360 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17363 # What is the maximum length of a command?
17364 max_cmd_len=$lt_cv_sys_max_cmd_len
17366 # Does compiler simultaneously support -c and -o options?
17367 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17369 # Must we lock files when doing compilation ?
17370 need_locks=$lt_need_locks
17372 # Do we need the lib prefix for modules?
17373 need_lib_prefix=$need_lib_prefix
17375 # Do we need a version for libraries?
17376 need_version=$need_version
17378 # Whether dlopen is supported.
17379 dlopen_support=$enable_dlopen
17381 # Whether dlopen of programs is supported.
17382 dlopen_self=$enable_dlopen_self
17384 # Whether dlopen of statically linked programs is supported.
17385 dlopen_self_static=$enable_dlopen_self_static
17387 # Compiler flag to prevent dynamic linking.
17388 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17390 # Compiler flag to turn off builtin functions.
17391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17393 # Compiler flag to allow reflexive dlopens.
17394 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17396 # Compiler flag to generate shared objects directly from archives.
17397 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17399 # Compiler flag to generate thread-safe objects.
17400 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17402 # Library versioning type.
17403 version_type=$version_type
17405 # Format of library name prefix.
17406 libname_spec=$lt_libname_spec
17408 # List of archive names. First name is the real one, the rest are links.
17409 # The last name is the one that the linker finds with -lNAME.
17410 library_names_spec=$lt_library_names_spec
17412 # The coded name of the library, if different from the real name.
17413 soname_spec=$lt_soname_spec
17415 # Commands used to build and install an old-style archive.
17417 old_archive_cmds=$lt_old_archive_cmds_GCJ
17418 old_postinstall_cmds=$lt_old_postinstall_cmds
17419 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17421 # Create an old-style archive from a shared archive.
17422 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17424 # Create a temporary old-style archive to link instead of a shared archive.
17425 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17427 # Commands used to build and install a shared archive.
17428 archive_cmds=$lt_archive_cmds_GCJ
17429 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17430 postinstall_cmds=$lt_postinstall_cmds
17431 postuninstall_cmds=$lt_postuninstall_cmds
17433 # Commands used to build a loadable module (assumed same as above if empty)
17434 module_cmds=$lt_module_cmds_GCJ
17435 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17437 # Commands to strip libraries.
17438 old_striplib=$lt_old_striplib
17439 striplib=$lt_striplib
17441 # Dependencies to place before the objects being linked to create a
17443 predep_objects=$lt_predep_objects_GCJ
17445 # Dependencies to place after the objects being linked to create a
17447 postdep_objects=$lt_postdep_objects_GCJ
17449 # Dependencies to place before the objects being linked to create a
17451 predeps=$lt_predeps_GCJ
17453 # Dependencies to place after the objects being linked to create a
17455 postdeps=$lt_postdeps_GCJ
17457 # The library search path used internally by the compiler when linking
17458 # a shared library.
17459 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17461 # Method to check whether dependent libraries are shared objects.
17462 deplibs_check_method=$lt_deplibs_check_method
17464 # Command to use when deplibs_check_method == file_magic.
17465 file_magic_cmd=$lt_file_magic_cmd
17467 # Flag that allows shared libraries with undefined symbols to be built.
17468 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17470 # Flag that forces no undefined symbols.
17471 no_undefined_flag=$lt_no_undefined_flag_GCJ
17473 # Commands used to finish a libtool library installation in a directory.
17474 finish_cmds=$lt_finish_cmds
17476 # Same as above, but a single script fragment to be evaled but not shown.
17477 finish_eval=$lt_finish_eval
17479 # Take the output of nm and produce a listing of raw symbols and C names.
17480 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17482 # Transform the output of nm in a proper C declaration
17483 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17485 # Transform the output of nm in a C name address pair
17486 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17488 # This is the shared library runtime path variable.
17489 runpath_var=$runpath_var
17491 # This is the shared library path variable.
17492 shlibpath_var=$shlibpath_var
17494 # Is shlibpath searched before the hard-coded library search path?
17495 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17497 # How to hardcode a shared library path into an executable.
17498 hardcode_action=$hardcode_action_GCJ
17500 # Whether we should hardcode library paths into libraries.
17501 hardcode_into_libs=$hardcode_into_libs
17503 # Flag to hardcode \$libdir into a binary during linking.
17504 # This must work even if \$libdir does not exist.
17505 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17507 # If ld is used when linking, flag to hardcode \$libdir into
17508 # a binary during linking. This must work even if \$libdir does
17510 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17512 # Whether we need a single -rpath flag with a separated argument.
17513 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17515 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17516 # resulting binary.
17517 hardcode_direct=$hardcode_direct_GCJ
17519 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17520 # resulting binary.
17521 hardcode_minus_L=$hardcode_minus_L_GCJ
17523 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17524 # the resulting binary.
17525 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17527 # Set to yes if building a shared library automatically hardcodes DIR into the library
17528 # and all subsequent libraries and executables linked against it.
17529 hardcode_automatic=$hardcode_automatic_GCJ
17531 # Variables whose values should be saved in libtool wrapper scripts and
17532 # restored at relink time.
17533 variables_saved_for_relink="$variables_saved_for_relink"
17535 # Whether libtool must link a program against all its dependency libraries.
17536 link_all_deplibs=$link_all_deplibs_GCJ
17538 # Compile-time system search path for libraries
17539 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17541 # Run-time system search path for libraries
17542 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17544 # Fix the shell variable \$srcfile for the compiler.
17545 fix_srcfile_path="$fix_srcfile_path_GCJ"
17547 # Set to yes if exported symbols are required.
17548 always_export_symbols=$always_export_symbols_GCJ
17550 # The commands to list exported symbols.
17551 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17553 # The commands to extract the exported symbol list from a shared archive.
17554 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17556 # Symbols that should not be listed in the preloaded symbols.
17557 exclude_expsyms=$lt_exclude_expsyms_GCJ
17559 # Symbols that must always be exported.
17560 include_expsyms=$lt_include_expsyms_GCJ
17562 # ### END LIBTOOL TAG CONFIG: $tagname
17568 # If there is no Makefile yet, we rely on a make rule to execute
17569 # `config.status --recheck' to rerun these tests and create the
17570 # libtool script then.
17571 test -f Makefile && make "$ltmain"
17576 ac_cpp='$CPP $CPPFLAGS'
17577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17592 # Source file extension for RC test sources.
17595 # Object file extension for compiled RC test sources.
17599 # Code to be used in simple compile tests
17600 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17602 # Code to be used in simple link tests
17603 lt_simple_link_test_code="$lt_simple_compile_test_code"
17605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17607 # If no C compiler was specified, use CC.
17610 # Allow CC to be a program name with arguments.
17614 # Allow CC to be a program name with arguments.
17619 lt_cv_prog_compiler_c_o_RC=yes
17621 # The else clause should only fire when bootstrapping the
17622 # libtool distribution, otherwise you forgot to ship ltmain.sh
17623 # with your package, and you will get complaints that there are
17624 # no rules to generate ltmain.sh.
17625 if test -f "$ltmain"; then
17626 # See if we are running on zsh, and set the options which allow our commands through
17627 # without removal of \ escapes.
17628 if test -n "${ZSH_VERSION+set}" ; then
17629 setopt NO_GLOB_SUBST
17631 # Now quote all the things that may contain metacharacters while being
17632 # careful not to overquote the AC_SUBSTed values. We take copies of the
17633 # variables and quote the copies for generation of the libtool script.
17634 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17635 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17636 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17637 deplibs_check_method reload_flag reload_cmds need_locks \
17638 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17639 lt_cv_sys_global_symbol_to_c_name_address \
17640 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17641 old_postinstall_cmds old_postuninstall_cmds \
17645 lt_prog_compiler_wl_RC \
17646 lt_prog_compiler_pic_RC \
17647 lt_prog_compiler_static_RC \
17648 lt_prog_compiler_no_builtin_flag_RC \
17649 export_dynamic_flag_spec_RC \
17650 thread_safe_flag_spec_RC \
17651 whole_archive_flag_spec_RC \
17652 enable_shared_with_static_runtimes_RC \
17653 old_archive_cmds_RC \
17654 old_archive_from_new_cmds_RC \
17655 predep_objects_RC \
17656 postdep_objects_RC \
17659 compiler_lib_search_path_RC \
17661 archive_expsym_cmds_RC \
17662 postinstall_cmds_RC \
17663 postuninstall_cmds_RC \
17664 old_archive_from_expsyms_cmds_RC \
17665 allow_undefined_flag_RC \
17666 no_undefined_flag_RC \
17667 export_symbols_cmds_RC \
17668 hardcode_libdir_flag_spec_RC \
17669 hardcode_libdir_flag_spec_ld_RC \
17670 hardcode_libdir_separator_RC \
17671 hardcode_automatic_RC \
17673 module_expsym_cmds_RC \
17674 lt_cv_prog_compiler_c_o_RC \
17675 exclude_expsyms_RC \
17676 include_expsyms_RC; do
17679 old_archive_cmds_RC | \
17680 old_archive_from_new_cmds_RC | \
17681 archive_cmds_RC | \
17682 archive_expsym_cmds_RC | \
17684 module_expsym_cmds_RC | \
17685 old_archive_from_expsyms_cmds_RC | \
17686 export_symbols_cmds_RC | \
17687 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17688 postinstall_cmds | postuninstall_cmds | \
17689 old_postinstall_cmds | old_postuninstall_cmds | \
17690 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17691 # Double-quote double-evaled strings.
17692 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17695 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17701 *'\$0 --fallback-echo"')
17702 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17708 cat <<__EOF__ >> "$cfgfile"
17709 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17711 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17713 # Shell to use when invoking shell scripts.
17716 # Whether or not to build shared libraries.
17717 build_libtool_libs=$enable_shared
17719 # Whether or not to build static libraries.
17720 build_old_libs=$enable_static
17722 # Whether or not to add -lc for building shared libraries.
17723 build_libtool_need_lc=$archive_cmds_need_lc_RC
17725 # Whether or not to disallow shared libs when runtime libs are static
17726 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17728 # Whether or not to optimize for fast installation.
17729 fast_install=$enable_fast_install
17732 host_alias=$host_alias
17735 # An echo program that does not interpret backslashes.
17740 AR_FLAGS=$lt_AR_FLAGS
17745 # A language-specific compiler.
17748 # Is the compiler the GNU C compiler?
17754 # The linker used to build libraries.
17757 # Whether we need hard or soft links.
17760 # A BSD-compatible nm program.
17763 # A symbol stripping program
17766 # Used to examine libraries when file_magic_cmd begins "file"
17767 MAGIC_CMD=$MAGIC_CMD
17769 # Used on cygwin: DLL creation program.
17772 # Used on cygwin: object dumper.
17775 # Used on cygwin: assembler.
17778 # The name of the directory that contains temporary libtool files.
17781 # How to create reloadable object files.
17782 reload_flag=$lt_reload_flag
17783 reload_cmds=$lt_reload_cmds
17785 # How to pass a linker flag through the compiler.
17786 wl=$lt_lt_prog_compiler_wl_RC
17788 # Object file suffix (normally "o").
17789 objext="$ac_objext"
17791 # Old archive suffix (normally "a").
17794 # Shared library suffix (normally ".so").
17797 # Executable file suffix (normally "").
17800 # Additional compiler flags for building library objects.
17801 pic_flag=$lt_lt_prog_compiler_pic_RC
17804 # What is the maximum length of a command?
17805 max_cmd_len=$lt_cv_sys_max_cmd_len
17807 # Does compiler simultaneously support -c and -o options?
17808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17810 # Must we lock files when doing compilation ?
17811 need_locks=$lt_need_locks
17813 # Do we need the lib prefix for modules?
17814 need_lib_prefix=$need_lib_prefix
17816 # Do we need a version for libraries?
17817 need_version=$need_version
17819 # Whether dlopen is supported.
17820 dlopen_support=$enable_dlopen
17822 # Whether dlopen of programs is supported.
17823 dlopen_self=$enable_dlopen_self
17825 # Whether dlopen of statically linked programs is supported.
17826 dlopen_self_static=$enable_dlopen_self_static
17828 # Compiler flag to prevent dynamic linking.
17829 link_static_flag=$lt_lt_prog_compiler_static_RC
17831 # Compiler flag to turn off builtin functions.
17832 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17834 # Compiler flag to allow reflexive dlopens.
17835 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17837 # Compiler flag to generate shared objects directly from archives.
17838 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17840 # Compiler flag to generate thread-safe objects.
17841 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17843 # Library versioning type.
17844 version_type=$version_type
17846 # Format of library name prefix.
17847 libname_spec=$lt_libname_spec
17849 # List of archive names. First name is the real one, the rest are links.
17850 # The last name is the one that the linker finds with -lNAME.
17851 library_names_spec=$lt_library_names_spec
17853 # The coded name of the library, if different from the real name.
17854 soname_spec=$lt_soname_spec
17856 # Commands used to build and install an old-style archive.
17858 old_archive_cmds=$lt_old_archive_cmds_RC
17859 old_postinstall_cmds=$lt_old_postinstall_cmds
17860 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17862 # Create an old-style archive from a shared archive.
17863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17865 # Create a temporary old-style archive to link instead of a shared archive.
17866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17868 # Commands used to build and install a shared archive.
17869 archive_cmds=$lt_archive_cmds_RC
17870 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17871 postinstall_cmds=$lt_postinstall_cmds
17872 postuninstall_cmds=$lt_postuninstall_cmds
17874 # Commands used to build a loadable module (assumed same as above if empty)
17875 module_cmds=$lt_module_cmds_RC
17876 module_expsym_cmds=$lt_module_expsym_cmds_RC
17878 # Commands to strip libraries.
17879 old_striplib=$lt_old_striplib
17880 striplib=$lt_striplib
17882 # Dependencies to place before the objects being linked to create a
17884 predep_objects=$lt_predep_objects_RC
17886 # Dependencies to place after the objects being linked to create a
17888 postdep_objects=$lt_postdep_objects_RC
17890 # Dependencies to place before the objects being linked to create a
17892 predeps=$lt_predeps_RC
17894 # Dependencies to place after the objects being linked to create a
17896 postdeps=$lt_postdeps_RC
17898 # The library search path used internally by the compiler when linking
17899 # a shared library.
17900 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17902 # Method to check whether dependent libraries are shared objects.
17903 deplibs_check_method=$lt_deplibs_check_method
17905 # Command to use when deplibs_check_method == file_magic.
17906 file_magic_cmd=$lt_file_magic_cmd
17908 # Flag that allows shared libraries with undefined symbols to be built.
17909 allow_undefined_flag=$lt_allow_undefined_flag_RC
17911 # Flag that forces no undefined symbols.
17912 no_undefined_flag=$lt_no_undefined_flag_RC
17914 # Commands used to finish a libtool library installation in a directory.
17915 finish_cmds=$lt_finish_cmds
17917 # Same as above, but a single script fragment to be evaled but not shown.
17918 finish_eval=$lt_finish_eval
17920 # Take the output of nm and produce a listing of raw symbols and C names.
17921 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17923 # Transform the output of nm in a proper C declaration
17924 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17926 # Transform the output of nm in a C name address pair
17927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17929 # This is the shared library runtime path variable.
17930 runpath_var=$runpath_var
17932 # This is the shared library path variable.
17933 shlibpath_var=$shlibpath_var
17935 # Is shlibpath searched before the hard-coded library search path?
17936 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17938 # How to hardcode a shared library path into an executable.
17939 hardcode_action=$hardcode_action_RC
17941 # Whether we should hardcode library paths into libraries.
17942 hardcode_into_libs=$hardcode_into_libs
17944 # Flag to hardcode \$libdir into a binary during linking.
17945 # This must work even if \$libdir does not exist.
17946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17948 # If ld is used when linking, flag to hardcode \$libdir into
17949 # a binary during linking. This must work even if \$libdir does
17951 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17953 # Whether we need a single -rpath flag with a separated argument.
17954 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17956 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17957 # resulting binary.
17958 hardcode_direct=$hardcode_direct_RC
17960 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17961 # resulting binary.
17962 hardcode_minus_L=$hardcode_minus_L_RC
17964 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17965 # the resulting binary.
17966 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17968 # Set to yes if building a shared library automatically hardcodes DIR into the library
17969 # and all subsequent libraries and executables linked against it.
17970 hardcode_automatic=$hardcode_automatic_RC
17972 # Variables whose values should be saved in libtool wrapper scripts and
17973 # restored at relink time.
17974 variables_saved_for_relink="$variables_saved_for_relink"
17976 # Whether libtool must link a program against all its dependency libraries.
17977 link_all_deplibs=$link_all_deplibs_RC
17979 # Compile-time system search path for libraries
17980 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17982 # Run-time system search path for libraries
17983 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17985 # Fix the shell variable \$srcfile for the compiler.
17986 fix_srcfile_path="$fix_srcfile_path_RC"
17988 # Set to yes if exported symbols are required.
17989 always_export_symbols=$always_export_symbols_RC
17991 # The commands to list exported symbols.
17992 export_symbols_cmds=$lt_export_symbols_cmds_RC
17994 # The commands to extract the exported symbol list from a shared archive.
17995 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17997 # Symbols that should not be listed in the preloaded symbols.
17998 exclude_expsyms=$lt_exclude_expsyms_RC
18000 # Symbols that must always be exported.
18001 include_expsyms=$lt_include_expsyms_RC
18003 # ### END LIBTOOL TAG CONFIG: $tagname
18009 # If there is no Makefile yet, we rely on a make rule to execute
18010 # `config.status --recheck' to rerun these tests and create the
18011 # libtool script then.
18012 test -f Makefile && make "$ltmain"
18017 ac_cpp='$CPP $CPPFLAGS'
18018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18027 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18028 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18029 { (exit 1); exit 1; }; }
18033 # Append the new tag name to the list of available tags.
18034 if test -n "$tagname" ; then
18035 available_tags="$available_tags $tagname"
18041 # Now substitute the updated list of available tags.
18042 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18043 mv "${ofile}T" "$ofile"
18047 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18048 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18049 { (exit 1); exit 1; }; }
18055 # This can be used to rebuild libtool when needed
18056 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18058 # Always use our own libtool.
18059 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18061 # Prevent multiple expansion
18083 # Extract the first word of "dot", so it can be a program name with args.
18084 set dummy dot; ac_word=$2
18085 echo "$as_me:$LINENO: checking for $ac_word" >&5
18086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18087 if test "${ac_cv_path_DOT+set}" = set; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18096 for as_dir in $PATH
18099 test -z "$as_dir" && as_dir=.
18100 for ac_exec_ext in '' $ac_executable_extensions; do
18101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18102 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18109 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18113 DOT=$ac_cv_path_DOT
18115 if test -n "$DOT"; then
18116 echo "$as_me:$LINENO: result: $DOT" >&5
18117 echo "${ECHO_T}$DOT" >&6
18119 echo "$as_me:$LINENO: result: no" >&5
18120 echo "${ECHO_T}no" >&6
18123 # Extract the first word of "etags", so it can be a program name with args.
18124 set dummy etags; ac_word=$2
18125 echo "$as_me:$LINENO: checking for $ac_word" >&5
18126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18127 if test "${ac_cv_path_ETAGS+set}" = set; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18136 for as_dir in $PATH
18139 test -z "$as_dir" && as_dir=.
18140 for ac_exec_ext in '' $ac_executable_extensions; do
18141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18142 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18149 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18153 ETAGS=$ac_cv_path_ETAGS
18155 if test -n "$ETAGS"; then
18156 echo "$as_me:$LINENO: result: $ETAGS" >&5
18157 echo "${ECHO_T}$ETAGS" >&6
18159 echo "$as_me:$LINENO: result: no" >&5
18160 echo "${ECHO_T}no" >&6
18163 etags_version=`$ETAGS --version 2>&1`
18164 case "$etags_version" in
18165 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18166 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18167 *) ETAGSFLAGS="" ;;
18169 ETAGSFLAGS=$ETAGSFLAGS
18171 # Extract the first word of "python", so it can be a program name with args.
18172 set dummy python; ac_word=$2
18173 echo "$as_me:$LINENO: checking for $ac_word" >&5
18174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18175 if test "${ac_cv_path_PYTHON+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18184 for as_dir in $PATH
18187 test -z "$as_dir" && as_dir=.
18188 for ac_exec_ext in '' $ac_executable_extensions; do
18189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18190 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18197 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18201 PYTHON=$ac_cv_path_PYTHON
18203 if test -n "$PYTHON"; then
18204 echo "$as_me:$LINENO: result: $PYTHON" >&5
18205 echo "${ECHO_T}$PYTHON" >&6
18207 echo "$as_me:$LINENO: result: no" >&5
18208 echo "${ECHO_T}no" >&6
18211 if test "$PYTHON" = "false"
18213 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18214 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18216 # Extract the first word of "qmtest", so it can be a program name with args.
18217 set dummy qmtest; ac_word=$2
18218 echo "$as_me:$LINENO: checking for $ac_word" >&5
18219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18220 if test "${ac_cv_path_QMTEST+set}" = set; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18229 for as_dir in $PATH
18232 test -z "$as_dir" && as_dir=.
18233 for ac_exec_ext in '' $ac_executable_extensions; do
18234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18235 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18242 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18246 QMTEST=$ac_cv_path_QMTEST
18248 if test -n "$QMTEST"; then
18249 echo "$as_me:$LINENO: result: $QMTEST" >&5
18250 echo "${ECHO_T}$QMTEST" >&6
18252 echo "$as_me:$LINENO: result: no" >&5
18253 echo "${ECHO_T}no" >&6
18256 if test "$QMTEST" = "false"
18258 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18259 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18262 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18263 pymajor=`echo $pyversion | cut -d. -f1`
18264 pyminor=`echo $pyversion | cut -d. -f2`
18266 if test "$pymajor" -ge "2"
18268 if test "$pymajor" -eq "2"
18270 if test "$pyminor" -lt "2"
18272 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18273 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18277 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18278 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18284 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18285 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18286 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 ac_check_lib_save_LIBS=$LIBS
18291 cat >conftest.$ac_ext <<_ACEOF
18292 #line $LINENO "configure"
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h. */
18299 /* Override any gcc2 internal prototype to avoid an error. */
18303 /* We use char because int might match the return type of a gcc2
18304 builtin and then its argument prototype would still apply. */
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316 (eval $ac_link) 2>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
18320 { ac_try='test -s conftest$ac_exeext'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 ac_cv_lib_elf_elf_begin=yes
18328 echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18331 ac_cv_lib_elf_elf_begin=no
18333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18334 LIBS=$ac_check_lib_save_LIBS
18336 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18337 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18338 if test $ac_cv_lib_elf_elf_begin = yes; then
18339 cat >>confdefs.h <<_ACEOF
18340 #define HAVE_LIBELF 1
18348 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18349 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18350 if test "${ac_cv_search_dlopen+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 ac_func_search_save_LIBS=$LIBS
18354 ac_cv_search_dlopen=no
18355 cat >conftest.$ac_ext <<_ACEOF
18356 #line $LINENO "configure"
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18363 /* Override any gcc2 internal prototype to avoid an error. */
18367 /* We use char because int might match the return type of a gcc2
18368 builtin and then its argument prototype would still apply. */
18378 rm -f conftest.$ac_objext conftest$ac_exeext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18380 (eval $ac_link) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_cv_search_dlopen="none required"
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18397 if test "$ac_cv_search_dlopen" = no; then
18398 for ac_lib in dl; do
18399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18400 cat >conftest.$ac_ext <<_ACEOF
18401 #line $LINENO "configure"
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18408 /* Override any gcc2 internal prototype to avoid an error. */
18412 /* We use char because int might match the return type of a gcc2
18413 builtin and then its argument prototype would still apply. */
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425 (eval $ac_link) 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
18429 { ac_try='test -s conftest$ac_exeext'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_cv_search_dlopen="-l$ac_lib"
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18445 LIBS=$ac_func_search_save_LIBS
18447 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18448 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18449 if test "$ac_cv_search_dlopen" != no; then
18450 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18452 cat >>confdefs.h <<\_ACEOF
18453 #define HAVE_DLOPEN 1
18457 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18458 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18462 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18463 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18464 if test "${ac_cv_search_mallinfo+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 ac_func_search_save_LIBS=$LIBS
18468 ac_cv_search_mallinfo=no
18469 cat >conftest.$ac_ext <<_ACEOF
18470 #line $LINENO "configure"
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18477 /* Override any gcc2 internal prototype to avoid an error. */
18481 /* We use char because int might match the return type of a gcc2
18482 builtin and then its argument prototype would still apply. */
18492 rm -f conftest.$ac_objext conftest$ac_exeext
18493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18494 (eval $ac_link) 2>&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
18498 { ac_try='test -s conftest$ac_exeext'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_search_mallinfo="none required"
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18511 if test "$ac_cv_search_mallinfo" = no; then
18512 for ac_lib in malloc; do
18513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18514 cat >conftest.$ac_ext <<_ACEOF
18515 #line $LINENO "configure"
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18522 /* Override any gcc2 internal prototype to avoid an error. */
18526 /* We use char because int might match the return type of a gcc2
18527 builtin and then its argument prototype would still apply. */
18537 rm -f conftest.$ac_objext conftest$ac_exeext
18538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18539 (eval $ac_link) 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -s conftest$ac_exeext'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18549 ac_cv_search_mallinfo="-l$ac_lib"
18552 echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18559 LIBS=$ac_func_search_save_LIBS
18561 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18562 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18563 if test "$ac_cv_search_mallinfo" != no; then
18564 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18566 cat >>confdefs.h <<\_ACEOF
18567 #define HAVE_MALLINFO 1
18573 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18574 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18575 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18578 ac_func_search_save_LIBS=$LIBS
18579 ac_cv_search_pthread_mutex_lock=no
18580 cat >conftest.$ac_ext <<_ACEOF
18581 #line $LINENO "configure"
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18588 /* Override any gcc2 internal prototype to avoid an error. */
18592 /* We use char because int might match the return type of a gcc2
18593 builtin and then its argument prototype would still apply. */
18594 char pthread_mutex_lock ();
18598 pthread_mutex_lock ();
18603 rm -f conftest.$ac_objext conftest$ac_exeext
18604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18605 (eval $ac_link) 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } &&
18609 { ac_try='test -s conftest$ac_exeext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 ac_cv_search_pthread_mutex_lock="none required"
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18622 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18623 for ac_lib in pthread; do
18624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18625 cat >conftest.$ac_ext <<_ACEOF
18626 #line $LINENO "configure"
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18633 /* Override any gcc2 internal prototype to avoid an error. */
18637 /* We use char because int might match the return type of a gcc2
18638 builtin and then its argument prototype would still apply. */
18639 char pthread_mutex_lock ();
18643 pthread_mutex_lock ();
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650 (eval $ac_link) 2>&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try='test -s conftest$ac_exeext'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; }; then
18660 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18663 echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18670 LIBS=$ac_func_search_save_LIBS
18672 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18673 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18674 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18675 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18677 cat >>confdefs.h <<\_ACEOF
18678 #define HAVE_PTHREAD_MUTEX_LOCK 1
18684 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18685 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18686 if test "${ac_cv_header_stdc+set}" = set; then
18687 echo $ECHO_N "(cached) $ECHO_C" >&6
18689 cat >conftest.$ac_ext <<_ACEOF
18690 #line $LINENO "configure"
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18696 #include <stdlib.h>
18697 #include <stdarg.h>
18698 #include <string.h>
18709 rm -f conftest.$ac_objext
18710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18711 (eval $ac_compile) 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -s conftest.$ac_objext'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 ac_cv_header_stdc=yes
18723 echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18726 ac_cv_header_stdc=no
18728 rm -f conftest.$ac_objext conftest.$ac_ext
18730 if test $ac_cv_header_stdc = yes; then
18731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18732 cat >conftest.$ac_ext <<_ACEOF
18733 #line $LINENO "configure"
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18739 #include <string.h>
18742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18743 $EGREP "memchr" >/dev/null 2>&1; then
18746 ac_cv_header_stdc=no
18752 if test $ac_cv_header_stdc = yes; then
18753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18754 cat >conftest.$ac_ext <<_ACEOF
18755 #line $LINENO "configure"
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18761 #include <stdlib.h>
18764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18765 $EGREP "free" >/dev/null 2>&1; then
18768 ac_cv_header_stdc=no
18774 if test $ac_cv_header_stdc = yes; then
18775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18776 if test "$cross_compiling" = yes; then
18779 cat >conftest.$ac_ext <<_ACEOF
18780 #line $LINENO "configure"
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18787 #if ((' ' & 0x0FF) == 0x020)
18788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18791 # define ISLOWER(c) \
18792 (('a' <= (c) && (c) <= 'i') \
18793 || ('j' <= (c) && (c) <= 'r') \
18794 || ('s' <= (c) && (c) <= 'z'))
18795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18803 for (i = 0; i < 256; i++)
18804 if (XOR (islower (i), ISLOWER (i))
18805 || toupper (i) != TOUPPER (i))
18810 rm -f conftest$ac_exeext
18811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18812 (eval $ac_link) 2>&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18823 echo "$as_me: program exited with status $ac_status" >&5
18824 echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18827 ( exit $ac_status )
18828 ac_cv_header_stdc=no
18830 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18834 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18835 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18836 if test $ac_cv_header_stdc = yes; then
18838 cat >>confdefs.h <<\_ACEOF
18839 #define STDC_HEADERS 1
18844 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18845 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18846 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18849 cat >conftest.$ac_ext <<_ACEOF
18850 #line $LINENO "configure"
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18856 #include <sys/types.h>
18857 #include <sys/wait.h>
18858 #ifndef WEXITSTATUS
18859 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18862 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18870 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18875 rm -f conftest.$ac_objext
18876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877 (eval $ac_compile) 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try='test -s conftest.$ac_objext'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_header_sys_wait_h=yes
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18892 ac_cv_header_sys_wait_h=no
18894 rm -f conftest.$ac_objext conftest.$ac_ext
18896 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18897 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18898 if test $ac_cv_header_sys_wait_h = yes; then
18900 cat >>confdefs.h <<\_ACEOF
18901 #define HAVE_SYS_WAIT_H 1
18917 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
18919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18921 echo "$as_me:$LINENO: checking for $ac_header" >&5
18922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18929 # Is the header compilable?
18930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18932 cat >conftest.$ac_ext <<_ACEOF
18933 #line $LINENO "configure"
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18939 $ac_includes_default
18940 #include <$ac_header>
18942 rm -f conftest.$ac_objext
18943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18944 (eval $ac_compile) 2>&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -s conftest.$ac_objext'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 ac_header_compiler=yes
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 ac_header_compiler=no
18961 rm -f conftest.$ac_objext conftest.$ac_ext
18962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18963 echo "${ECHO_T}$ac_header_compiler" >&6
18965 # Is the header present?
18966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18968 cat >conftest.$ac_ext <<_ACEOF
18969 #line $LINENO "configure"
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18975 #include <$ac_header>
18977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18980 grep -v '^ *+' conftest.er1 >conftest.err
18982 cat conftest.err >&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } >/dev/null; then
18985 if test -s conftest.err; then
18986 ac_cpp_err=$ac_c_preproc_warn_flag
18993 if test -z "$ac_cpp_err"; then
18994 ac_header_preproc=yes
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18999 ac_header_preproc=no
19001 rm -f conftest.err conftest.$ac_ext
19002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19003 echo "${ECHO_T}$ac_header_preproc" >&6
19005 # So? What about this header?
19006 case $ac_header_compiler:$ac_header_preproc in
19008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19014 ## ------------------------------------ ##
19015 ## Report this to bug-autoconf@gnu.org. ##
19016 ## ------------------------------------ ##
19019 sed "s/^/$as_me: WARNING: /" >&2
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19030 ## ------------------------------------ ##
19031 ## Report this to bug-autoconf@gnu.org. ##
19032 ## ------------------------------------ ##
19035 sed "s/^/$as_me: WARNING: /" >&2
19038 echo "$as_me:$LINENO: checking for $ac_header" >&5
19039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19043 eval "$as_ac_Header=$ac_header_preproc"
19045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19050 cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19059 echo "$as_me:$LINENO: checking for pid_t" >&5
19060 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19061 if test "${ac_cv_type_pid_t+set}" = set; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 cat >conftest.$ac_ext <<_ACEOF
19065 #line $LINENO "configure"
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19071 $ac_includes_default
19077 if (sizeof (pid_t))
19083 rm -f conftest.$ac_objext
19084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19085 (eval $ac_compile) 2>&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } &&
19089 { ac_try='test -s conftest.$ac_objext'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 ac_cv_type_pid_t=yes
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19100 ac_cv_type_pid_t=no
19102 rm -f conftest.$ac_objext conftest.$ac_ext
19104 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19105 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19106 if test $ac_cv_type_pid_t = yes; then
19110 cat >>confdefs.h <<_ACEOF
19116 echo "$as_me:$LINENO: checking for size_t" >&5
19117 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19118 if test "${ac_cv_type_size_t+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19121 cat >conftest.$ac_ext <<_ACEOF
19122 #line $LINENO "configure"
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h. */
19128 $ac_includes_default
19134 if (sizeof (size_t))
19140 rm -f conftest.$ac_objext
19141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19142 (eval $ac_compile) 2>&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
19146 { ac_try='test -s conftest.$ac_objext'
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_type_size_t=yes
19154 echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19157 ac_cv_type_size_t=no
19159 rm -f conftest.$ac_objext conftest.$ac_ext
19161 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19162 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19163 if test $ac_cv_type_size_t = yes; then
19167 cat >>confdefs.h <<_ACEOF
19168 #define size_t unsigned
19173 echo "$as_me:$LINENO: checking for int64_t" >&5
19174 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19175 if test "${ac_cv_type_int64_t+set}" = set; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19178 cat >conftest.$ac_ext <<_ACEOF
19179 #line $LINENO "configure"
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 $ac_includes_default
19191 if (sizeof (int64_t))
19197 rm -f conftest.$ac_objext
19198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19199 (eval $ac_compile) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } &&
19203 { ac_try='test -s conftest.$ac_objext'
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 ac_cv_type_int64_t=yes
19211 echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19214 ac_cv_type_int64_t=no
19216 rm -f conftest.$ac_objext conftest.$ac_ext
19218 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19219 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19220 if test $ac_cv_type_int64_t = yes; then
19222 cat >>confdefs.h <<_ACEOF
19223 #define HAVE_INT64_T 1
19228 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19229 echo "$as_me: error: Type int64_t required but not found" >&2;}
19230 { (exit 1); exit 1; }; }
19233 echo "$as_me:$LINENO: checking for uint64_t" >&5
19234 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19235 if test "${ac_cv_type_uint64_t+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 cat >conftest.$ac_ext <<_ACEOF
19239 #line $LINENO "configure"
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 $ac_includes_default
19249 if ((uint64_t *) 0)
19251 if (sizeof (uint64_t))
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
19263 { ac_try='test -s conftest.$ac_objext'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_cv_type_uint64_t=yes
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 ac_cv_type_uint64_t=no
19276 rm -f conftest.$ac_objext conftest.$ac_ext
19278 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19279 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19280 if test $ac_cv_type_uint64_t = yes; then
19282 cat >>confdefs.h <<_ACEOF
19283 #define HAVE_UINT64_T 1
19288 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19289 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19290 { (exit 1); exit 1; }; }
19293 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19294 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19295 if test "${ac_cv_header_time+set}" = set; then
19296 echo $ECHO_N "(cached) $ECHO_C" >&6
19298 cat >conftest.$ac_ext <<_ACEOF
19299 #line $LINENO "configure"
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 #include <sys/types.h>
19306 #include <sys/time.h>
19312 if ((struct tm *) 0)
19318 rm -f conftest.$ac_objext
19319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19320 (eval $ac_compile) 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
19324 { ac_try='test -s conftest.$ac_objext'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; }; then
19330 ac_cv_header_time=yes
19332 echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19335 ac_cv_header_time=no
19337 rm -f conftest.$ac_objext conftest.$ac_ext
19339 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19340 echo "${ECHO_T}$ac_cv_header_time" >&6
19341 if test $ac_cv_header_time = yes; then
19343 cat >>confdefs.h <<\_ACEOF
19344 #define TIME_WITH_SYS_TIME 1
19349 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19350 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19351 if test "${ac_cv_struct_tm+set}" = set; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19354 cat >conftest.$ac_ext <<_ACEOF
19355 #line $LINENO "configure"
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19361 #include <sys/types.h>
19367 struct tm *tp; tp->tm_sec;
19372 rm -f conftest.$ac_objext
19373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19374 (eval $ac_compile) 2>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -s conftest.$ac_objext'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_cv_struct_tm=time.h
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_cv_struct_tm=sys/time.h
19391 rm -f conftest.$ac_objext conftest.$ac_ext
19393 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19394 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19395 if test $ac_cv_struct_tm = sys/time.h; then
19397 cat >>confdefs.h <<\_ACEOF
19398 #define TM_IN_SYS_TIME 1
19408 ac_cpp='$CPP $CPPFLAGS'
19409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19413 if test "$cross_compiling" = yes; then
19414 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19415 See \`config.log' for more details." >&5
19416 echo "$as_me: error: cannot run test program while cross compiling
19417 See \`config.log' for more details." >&2;}
19418 { (exit 1); exit 1; }; }
19420 cat >conftest.$ac_ext <<_ACEOF
19421 #line $LINENO "configure"
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19428 #include <stdlib.h>
19433 volatile double A, B;
19437 sprintf(Buffer, "%a", A);
19441 if (A != 0x1.999999999999ap-4)
19448 rm -f conftest$ac_exeext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19450 (eval $ac_link) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
19461 echo "$as_me: program exited with status $ac_status" >&5
19462 echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19465 ( exit $ac_status )
19468 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19471 ac_cpp='$CPP $CPPFLAGS'
19472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19476 if test "$ac_c_printf_a" = "yes"; then
19478 cat >>confdefs.h <<\_ACEOF
19479 #define HAVE_PRINTF_A 1
19485 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19486 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19487 if test "${ac_cv_c_bigendian+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 # See if sys/param.h defines the BYTE_ORDER macro.
19491 cat >conftest.$ac_ext <<_ACEOF
19492 #line $LINENO "configure"
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19498 #include <sys/types.h>
19499 #include <sys/param.h>
19504 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19505 bogus endian macros
19512 rm -f conftest.$ac_objext
19513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19514 (eval $ac_compile) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 # It does; now see whether it defined to BIG_ENDIAN or not.
19525 cat >conftest.$ac_ext <<_ACEOF
19526 #line $LINENO "configure"
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19532 #include <sys/types.h>
19533 #include <sys/param.h>
19538 #if BYTE_ORDER != BIG_ENDIAN
19546 rm -f conftest.$ac_objext
19547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548 (eval $ac_compile) 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_cv_c_bigendian=yes
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 ac_cv_c_bigendian=no
19565 rm -f conftest.$ac_objext conftest.$ac_ext
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 # It does not; compile a test program.
19571 if test "$cross_compiling" = yes; then
19572 # try to guess the endianness by grepping values into an object file
19573 ac_cv_c_bigendian=unknown
19574 cat >conftest.$ac_ext <<_ACEOF
19575 #line $LINENO "configure"
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h. */
19581 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19582 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19583 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19584 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19585 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19586 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19590 _ascii (); _ebcdic ();
19595 rm -f conftest.$ac_objext
19596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19597 (eval $ac_compile) 2>&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -s conftest.$ac_objext'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
19607 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19608 ac_cv_c_bigendian=yes
19610 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19611 if test "$ac_cv_c_bigendian" = unknown; then
19612 ac_cv_c_bigendian=no
19614 # finding both strings is unlikely to happen, but who knows?
19615 ac_cv_c_bigendian=unknown
19619 echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19623 rm -f conftest.$ac_objext conftest.$ac_ext
19625 cat >conftest.$ac_ext <<_ACEOF
19626 #line $LINENO "configure"
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19635 /* Are we little or big endian? From Harbison&Steele. */
19639 char c[sizeof (long)];
19642 exit (u.c[sizeof (long) - 1] == 1);
19645 rm -f conftest$ac_exeext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19647 (eval $ac_link) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
19656 ac_cv_c_bigendian=no
19658 echo "$as_me: program exited with status $ac_status" >&5
19659 echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19662 ( exit $ac_status )
19663 ac_cv_c_bigendian=yes
19665 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19668 rm -f conftest.$ac_objext conftest.$ac_ext
19670 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19671 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19672 case $ac_cv_c_bigendian in
19680 { { echo "$as_me:$LINENO: error: unknown endianness
19681 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19682 echo "$as_me: error: unknown endianness
19683 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19684 { (exit 1); exit 1; }; } ;;
19688 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19689 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19690 if test "${ac_cv_cxx_namespaces+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 ac_cpp='$CXXCPP $CPPFLAGS'
19697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19701 cat >conftest.$ac_ext <<_ACEOF
19702 #line $LINENO "configure"
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 namespace Outer { namespace Inner { int i = 0; }}
19712 using namespace Outer::Inner; return i;
19717 rm -f conftest.$ac_objext
19718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19719 (eval $ac_compile) 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -s conftest.$ac_objext'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19729 ac_cv_cxx_namespaces=yes
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19734 ac_cv_cxx_namespaces=no
19736 rm -f conftest.$ac_objext conftest.$ac_ext
19738 ac_cpp='$CPP $CPPFLAGS'
19739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19745 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19746 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19747 if test "$ac_cv_cxx_namespaces" = yes; then
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_NAMESPACES
19755 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
19756 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
19757 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 ac_cpp='$CXXCPP $CPPFLAGS'
19765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19769 cat >conftest.$ac_ext <<_ACEOF
19770 #line $LINENO "configure"
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19776 #include <ext/hash_map>
19777 #ifdef HAVE_NAMESPACES
19778 using namespace std;
19783 hash_map<int, int> t;
19788 rm -f conftest.$ac_objext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19790 (eval $ac_compile) 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -s conftest.$ac_objext'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_cv_cxx_have_std_ext_hash_map=yes
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19805 ac_cv_cxx_have_std_ext_hash_map=no
19807 rm -f conftest.$ac_objext conftest.$ac_ext
19809 ac_cpp='$CPP $CPPFLAGS'
19810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19815 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
19816 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
19817 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
19819 cat >>confdefs.h <<\_ACEOF
19820 #define HAVE_STD_EXT_HASH_MAP
19824 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
19825 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
19826 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 ac_cpp='$CXXCPP $CPPFLAGS'
19834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19838 cat >conftest.$ac_ext <<_ACEOF
19839 #line $LINENO "configure"
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 #include <ext/hash_map>
19846 #ifdef HAVE_NAMESPACES
19847 using namespace __gnu_cxx;
19852 hash_map<int,int> t;
19857 rm -f conftest.$ac_objext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19859 (eval $ac_compile) 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
19863 { ac_try='test -s conftest.$ac_objext'
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 ac_cv_cxx_have_gnu_ext_hash_map=yes
19871 echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19874 ac_cv_cxx_have_gnu_ext_hash_map=no
19876 rm -f conftest.$ac_objext conftest.$ac_ext
19878 ac_cpp='$CPP $CPPFLAGS'
19879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19884 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
19885 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
19886 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE_GNU_EXT_HASH_MAP
19893 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
19894 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
19895 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19902 ac_cpp='$CXXCPP $CPPFLAGS'
19903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19907 cat >conftest.$ac_ext <<_ACEOF
19908 #line $LINENO "configure"
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19914 #include <hash_map>
19918 hash_map<int,int> t;
19923 rm -f conftest.$ac_objext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925 (eval $ac_compile) 2>&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } &&
19929 { ac_try='test -s conftest.$ac_objext'
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; }; then
19935 ac_cv_cxx_have_global_hash_map=yes
19937 echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19940 ac_cv_cxx_have_global_hash_map=no
19942 rm -f conftest.$ac_objext conftest.$ac_ext
19944 ac_cpp='$CPP $CPPFLAGS'
19945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19950 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
19951 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
19952 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
19954 cat >>confdefs.h <<\_ACEOF
19955 #define HAVE_GLOBAL_HASH_MAP
19959 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
19960 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
19961 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 ac_cpp='$CXXCPP $CPPFLAGS'
19969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19973 cat >conftest.$ac_ext <<_ACEOF
19974 #line $LINENO "configure"
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 #include <ext/hash_set>
19981 #ifdef HAVE_NAMESPACES
19982 using namespace std;
19992 rm -f conftest.$ac_objext
19993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19994 (eval $ac_compile) 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } &&
19998 { ac_try='test -s conftest.$ac_objext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 ac_cv_cxx_have_std_ext_hash_set=yes
20006 echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20009 ac_cv_cxx_have_std_ext_hash_set=no
20011 rm -f conftest.$ac_objext conftest.$ac_ext
20013 ac_cpp='$CPP $CPPFLAGS'
20014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20019 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20020 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20021 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20023 cat >>confdefs.h <<\_ACEOF
20024 #define HAVE_STD_EXT_HASH_SET
20028 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20029 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20030 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20037 ac_cpp='$CXXCPP $CPPFLAGS'
20038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20042 cat >conftest.$ac_ext <<_ACEOF
20043 #line $LINENO "configure"
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 #include <ext/hash_set>
20050 #ifdef HAVE_NAMESPACES
20051 using namespace __gnu_cxx;
20061 rm -f conftest.$ac_objext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063 (eval $ac_compile) 2>&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } &&
20067 { ac_try='test -s conftest.$ac_objext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_cxx_have_gnu_ext_hash_set=yes
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20078 ac_cv_cxx_have_gnu_ext_hash_set=no
20080 rm -f conftest.$ac_objext conftest.$ac_ext
20082 ac_cpp='$CPP $CPPFLAGS'
20083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20088 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20089 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20090 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20092 cat >>confdefs.h <<\_ACEOF
20093 #define HAVE_GNU_EXT_HASH_SET
20097 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20098 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20099 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 ac_cpp='$CXXCPP $CPPFLAGS'
20107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20111 cat >conftest.$ac_ext <<_ACEOF
20112 #line $LINENO "configure"
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 #include <hash_set>
20122 hash_set<int> t; return 0;
20127 rm -f conftest.$ac_objext
20128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20129 (eval $ac_compile) 2>&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } &&
20133 { ac_try='test -s conftest.$ac_objext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 ac_cv_cxx_have_global_hash_set=yes
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ac_cv_cxx_have_global_hash_set=no
20146 rm -f conftest.$ac_objext conftest.$ac_ext
20148 ac_cpp='$CPP $CPPFLAGS'
20149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20154 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20155 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20156 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE_GLOBAL_HASH_SET
20163 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20164 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20165 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 ac_cpp='$CXXCPP $CPPFLAGS'
20173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20177 cat >conftest.$ac_ext <<_ACEOF
20178 #line $LINENO "configure"
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20184 #include <ext/slist>
20185 #ifdef HAVE_NAMESPACES
20186 using namespace std;
20191 slist<int> s; return 0;
20196 rm -f conftest.$ac_objext
20197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20198 (eval $ac_compile) 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } &&
20202 { ac_try='test -s conftest.$ac_objext'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 ac_cv_cxx_have_ext_slist=std
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 ac_cv_cxx_have_ext_slist=no
20215 rm -f conftest.$ac_objext conftest.$ac_ext
20216 cat >conftest.$ac_ext <<_ACEOF
20217 #line $LINENO "configure"
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223 #include <ext/slist>
20224 #ifdef HAVE_NAMESPACES
20225 using namespace __gnu_cxx;
20230 slist<int> s; return 0;
20235 rm -f conftest.$ac_objext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237 (eval $ac_compile) 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_cxx_have_ext_slist=gnu
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ac_cv_cxx_have_ext_slist=no
20254 rm -f conftest.$ac_objext conftest.$ac_ext
20257 ac_cpp='$CPP $CPPFLAGS'
20258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20264 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20265 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20266 if test "$ac_cv_cxx_have_ext_slist" = std; then
20268 cat >>confdefs.h <<\_ACEOF
20269 #define HAVE_EXT_SLIST std
20273 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20275 cat >>confdefs.h <<\_ACEOF
20276 #define HAVE_EXT_SLIST gnu
20281 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20282 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20283 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 ac_cpp='$CXXCPP $CPPFLAGS'
20291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20295 cat >conftest.$ac_ext <<_ACEOF
20296 #line $LINENO "configure"
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302 #include <iterator>
20303 #ifdef HAVE_NAMESPACES
20304 using namespace std;
20309 iterator<int,int,int> t; return 0;
20314 rm -f conftest.$ac_objext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20316 (eval $ac_compile) 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try='test -s conftest.$ac_objext'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326 ac_cv_cxx_have_std_iterator=yes
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20331 ac_cv_cxx_have_std_iterator=no
20333 rm -f conftest.$ac_objext conftest.$ac_ext
20335 ac_cpp='$CPP $CPPFLAGS'
20336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20342 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20343 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20344 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20346 cat >>confdefs.h <<\_ACEOF
20347 #define HAVE_STD_ITERATOR
20352 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20353 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20354 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 ac_cpp='$CXXCPP $CPPFLAGS'
20362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20366 cat >conftest.$ac_ext <<_ACEOF
20367 #line $LINENO "configure"
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 #include <iterator>
20374 #ifdef HAVE_NAMESPACES
20375 using namespace std;
20380 bidirectional_iterator<int,int> t; return 0;
20385 rm -f conftest.$ac_objext
20386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20387 (eval $ac_compile) 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } &&
20391 { ac_try='test -s conftest.$ac_objext'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
20397 ac_cv_cxx_have_bi_iterator=yes
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 ac_cv_cxx_have_bi_iterator=no
20404 rm -f conftest.$ac_objext conftest.$ac_ext
20406 ac_cpp='$CPP $CPPFLAGS'
20407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20413 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20414 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20415 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20417 cat >>confdefs.h <<\_ACEOF
20418 #define HAVE_BI_ITERATOR
20423 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20424 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20425 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 ac_cpp='$CXXCPP $CPPFLAGS'
20433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20437 cat >conftest.$ac_ext <<_ACEOF
20438 #line $LINENO "configure"
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20444 #include <iterator>
20445 #ifdef HAVE_NAMESPACES
20446 using namespace std;
20451 forward_iterator<int,int> t; return 0;
20456 rm -f conftest.$ac_objext
20457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20458 (eval $ac_compile) 2>&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } &&
20462 { ac_try='test -s conftest.$ac_objext'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20468 ac_cv_cxx_have_fwd_iterator=yes
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20473 ac_cv_cxx_have_fwd_iterator=no
20475 rm -f conftest.$ac_objext conftest.$ac_ext
20477 ac_cpp='$CPP $CPPFLAGS'
20478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20484 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20485 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20486 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20488 cat >>confdefs.h <<\_ACEOF
20489 #define HAVE_FWD_ITERATOR
20495 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20496 # for constant arguments. Useless!
20497 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20498 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20499 if test "${ac_cv_working_alloca_h+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 cat >conftest.$ac_ext <<_ACEOF
20503 #line $LINENO "configure"
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 #include <alloca.h>
20513 char *p = (char *) alloca (2 * sizeof (int));
20518 rm -f conftest.$ac_objext conftest$ac_exeext
20519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20520 (eval $ac_link) 2>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
20524 { ac_try='test -s conftest$ac_exeext'
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; }; then
20530 ac_cv_working_alloca_h=yes
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20535 ac_cv_working_alloca_h=no
20537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20539 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20540 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20541 if test $ac_cv_working_alloca_h = yes; then
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_ALLOCA_H 1
20549 echo "$as_me:$LINENO: checking for alloca" >&5
20550 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20551 if test "${ac_cv_func_alloca_works+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20554 cat >conftest.$ac_ext <<_ACEOF
20555 #line $LINENO "configure"
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20562 # define alloca __builtin_alloca
20565 # include <malloc.h>
20566 # define alloca _alloca
20569 # include <alloca.h>
20574 # ifndef alloca /* predefined by HP cc +Olibcalls */
20585 char *p = (char *) alloca (1);
20590 rm -f conftest.$ac_objext conftest$ac_exeext
20591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20592 (eval $ac_link) 2>&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } &&
20596 { ac_try='test -s conftest$ac_exeext'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
20602 ac_cv_func_alloca_works=yes
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ac_cv_func_alloca_works=no
20609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20611 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20612 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20614 if test $ac_cv_func_alloca_works = yes; then
20616 cat >>confdefs.h <<\_ACEOF
20617 #define HAVE_ALLOCA 1
20621 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20622 # that cause trouble. Some versions do not even contain alloca or
20623 # contain a buggy version. If you still want to use their alloca,
20624 # use ar to extract alloca.o from them instead of compiling alloca.c.
20626 ALLOCA=alloca.$ac_objext
20628 cat >>confdefs.h <<\_ACEOF
20633 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20634 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20635 if test "${ac_cv_os_cray+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 cat >conftest.$ac_ext <<_ACEOF
20639 #line $LINENO "configure"
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20645 #if defined(CRAY) && ! defined(CRAY2)
20652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20653 $EGREP "webecray" >/dev/null 2>&1; then
20661 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20662 echo "${ECHO_T}$ac_cv_os_cray" >&6
20663 if test $ac_cv_os_cray = yes; then
20664 for ac_func in _getb67 GETB67 getb67; do
20665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20666 echo "$as_me:$LINENO: checking for $ac_func" >&5
20667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20668 if eval "test \"\${$as_ac_var+set}\" = set"; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 cat >conftest.$ac_ext <<_ACEOF
20672 #line $LINENO "configure"
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h. */
20678 /* System header to define __stub macros and hopefully few prototypes,
20679 which can conflict with char $ac_func (); below.
20680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20681 <limits.h> exists even on freestanding compilers. */
20683 # include <limits.h>
20685 # include <assert.h>
20687 /* Override any gcc2 internal prototype to avoid an error. */
20692 /* We use char because int might match the return type of a gcc2
20693 builtin and then its argument prototype would still apply. */
20695 /* The GNU C library defines this for functions which it implements
20696 to always fail with ENOSYS. Some functions are actually named
20697 something starting with __ and the normal name is an alias. */
20698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20701 char (*f) () = $ac_func;
20710 return f != $ac_func;
20715 rm -f conftest.$ac_objext conftest$ac_exeext
20716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20717 (eval $ac_link) 2>&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } &&
20721 { ac_try='test -s conftest$ac_exeext'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 eval "$as_ac_var=yes"
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20732 eval "$as_ac_var=no"
20734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20738 if test `eval echo '${'$as_ac_var'}'` = yes; then
20740 cat >>confdefs.h <<_ACEOF
20741 #define CRAY_STACKSEG_END $ac_func
20750 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20751 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20752 if test "${ac_cv_c_stack_direction+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 if test "$cross_compiling" = yes; then
20756 ac_cv_c_stack_direction=0
20758 cat >conftest.$ac_ext <<_ACEOF
20759 #line $LINENO "configure"
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20766 find_stack_direction ()
20768 static char *addr = 0;
20773 return find_stack_direction ();
20776 return (&dummy > addr) ? 1 : -1;
20782 exit (find_stack_direction () < 0);
20785 rm -f conftest$ac_exeext
20786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20787 (eval $ac_link) 2>&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792 (eval $ac_try) 2>&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; }; then
20796 ac_cv_c_stack_direction=1
20798 echo "$as_me: program exited with status $ac_status" >&5
20799 echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20802 ( exit $ac_status )
20803 ac_cv_c_stack_direction=-1
20805 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20808 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20809 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20811 cat >>confdefs.h <<_ACEOF
20812 #define STACK_DIRECTION $ac_cv_c_stack_direction
20820 for ac_header in stdlib.h unistd.h
20822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20824 echo "$as_me:$LINENO: checking for $ac_header" >&5
20825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20832 # Is the header compilable?
20833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20835 cat >conftest.$ac_ext <<_ACEOF
20836 #line $LINENO "configure"
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 $ac_includes_default
20843 #include <$ac_header>
20845 rm -f conftest.$ac_objext
20846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20847 (eval $ac_compile) 2>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } &&
20851 { ac_try='test -s conftest.$ac_objext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_header_compiler=yes
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20862 ac_header_compiler=no
20864 rm -f conftest.$ac_objext conftest.$ac_ext
20865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20866 echo "${ECHO_T}$ac_header_compiler" >&6
20868 # Is the header present?
20869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20871 cat >conftest.$ac_ext <<_ACEOF
20872 #line $LINENO "configure"
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878 #include <$ac_header>
20880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20883 grep -v '^ *+' conftest.er1 >conftest.err
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } >/dev/null; then
20888 if test -s conftest.err; then
20889 ac_cpp_err=$ac_c_preproc_warn_flag
20896 if test -z "$ac_cpp_err"; then
20897 ac_header_preproc=yes
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 ac_header_preproc=no
20904 rm -f conftest.err conftest.$ac_ext
20905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20906 echo "${ECHO_T}$ac_header_preproc" >&6
20908 # So? What about this header?
20909 case $ac_header_compiler:$ac_header_preproc in
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20917 ## ------------------------------------ ##
20918 ## Report this to bug-autoconf@gnu.org. ##
20919 ## ------------------------------------ ##
20922 sed "s/^/$as_me: WARNING: /" >&2
20925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20933 ## ------------------------------------ ##
20934 ## Report this to bug-autoconf@gnu.org. ##
20935 ## ------------------------------------ ##
20938 sed "s/^/$as_me: WARNING: /" >&2
20941 echo "$as_me:$LINENO: checking for $ac_header" >&5
20942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20944 echo $ECHO_N "(cached) $ECHO_C" >&6
20946 eval "$as_ac_Header=$ac_header_preproc"
20948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20953 cat >>confdefs.h <<_ACEOF
20954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20962 for ac_func in getpagesize
20964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20965 echo "$as_me:$LINENO: checking for $ac_func" >&5
20966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20967 if eval "test \"\${$as_ac_var+set}\" = set"; then
20968 echo $ECHO_N "(cached) $ECHO_C" >&6
20970 cat >conftest.$ac_ext <<_ACEOF
20971 #line $LINENO "configure"
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 /* System header to define __stub macros and hopefully few prototypes,
20978 which can conflict with char $ac_func (); below.
20979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20980 <limits.h> exists even on freestanding compilers. */
20982 # include <limits.h>
20984 # include <assert.h>
20986 /* Override any gcc2 internal prototype to avoid an error. */
20991 /* We use char because int might match the return type of a gcc2
20992 builtin and then its argument prototype would still apply. */
20994 /* The GNU C library defines this for functions which it implements
20995 to always fail with ENOSYS. Some functions are actually named
20996 something starting with __ and the normal name is an alias. */
20997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21000 char (*f) () = $ac_func;
21009 return f != $ac_func;
21014 rm -f conftest.$ac_objext conftest$ac_exeext
21015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21016 (eval $ac_link) 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } &&
21020 { ac_try='test -s conftest$ac_exeext'
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022 (eval $ac_try) 2>&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; }; then
21026 eval "$as_ac_var=yes"
21028 echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 eval "$as_ac_var=no"
21033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21037 if test `eval echo '${'$as_ac_var'}'` = yes; then
21038 cat >>confdefs.h <<_ACEOF
21039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21045 echo "$as_me:$LINENO: checking for working mmap" >&5
21046 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21047 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 if test "$cross_compiling" = yes; then
21051 ac_cv_func_mmap_fixed_mapped=no
21053 cat >conftest.$ac_ext <<_ACEOF
21054 #line $LINENO "configure"
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 $ac_includes_default
21061 /* malloc might have been renamed as rpl_malloc. */
21064 /* Thanks to Mike Haertel and Jim Avera for this test.
21065 Here is a matrix of mmap possibilities:
21066 mmap private not fixed
21067 mmap private fixed at somewhere currently unmapped
21068 mmap private fixed at somewhere already mapped
21069 mmap shared not fixed
21070 mmap shared fixed at somewhere currently unmapped
21071 mmap shared fixed at somewhere already mapped
21072 For private mappings, we should verify that changes cannot be read()
21073 back from the file, nor mmap's back from the file at a different
21074 address. (There have been systems where private was not correctly
21075 implemented like the infamous i386 svr4.0, and systems where the
21076 VM page cache was not coherent with the file system buffer cache
21077 like early versions of FreeBSD and possibly contemporary NetBSD.)
21078 For shared mappings, we should conversely verify that changes get
21079 propagated back to all the places they're supposed to be.
21081 Grep wants private fixed already mapped.
21082 The main things grep needs to know about mmap are:
21083 * does it exist and is it safe to write into the mmap'd area
21084 * how to use it (BSD variants) */
21087 #include <sys/mman.h>
21089 #if !STDC_HEADERS && !HAVE_STDLIB_H
21093 /* This mess was copied from the GNU getpagesize.h. */
21094 #if !HAVE_GETPAGESIZE
21095 /* Assume that all systems that can run configure have sys/param.h. */
21096 # if !HAVE_SYS_PARAM_H
21097 # define HAVE_SYS_PARAM_H 1
21100 # ifdef _SC_PAGESIZE
21101 # define getpagesize() sysconf(_SC_PAGESIZE)
21102 # else /* no _SC_PAGESIZE */
21103 # if HAVE_SYS_PARAM_H
21104 # include <sys/param.h>
21105 # ifdef EXEC_PAGESIZE
21106 # define getpagesize() EXEC_PAGESIZE
21107 # else /* no EXEC_PAGESIZE */
21109 # define getpagesize() NBPG * CLSIZE
21112 # endif /* no CLSIZE */
21113 # else /* no NBPG */
21115 # define getpagesize() NBPC
21116 # else /* no NBPC */
21118 # define getpagesize() PAGESIZE
21119 # endif /* PAGESIZE */
21120 # endif /* no NBPC */
21121 # endif /* no NBPG */
21122 # endif /* no EXEC_PAGESIZE */
21123 # else /* no HAVE_SYS_PARAM_H */
21124 # define getpagesize() 8192 /* punt totally */
21125 # endif /* no HAVE_SYS_PARAM_H */
21126 # endif /* no _SC_PAGESIZE */
21128 #endif /* no HAVE_GETPAGESIZE */
21133 char *data, *data2, *data3;
21137 pagesize = getpagesize ();
21139 /* First, make a file with some known garbage in it. */
21140 data = (char *) malloc (pagesize);
21143 for (i = 0; i < pagesize; ++i)
21144 *(data + i) = rand ();
21146 fd = creat ("conftest.mmap", 0600);
21149 if (write (fd, data, pagesize) != pagesize)
21153 /* Next, try to mmap the file at a fixed address which already has
21154 something else allocated at it. If we can, also make sure that
21155 we see the same garbage. */
21156 fd = open ("conftest.mmap", O_RDWR);
21159 data2 = (char *) malloc (2 * pagesize);
21162 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21163 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21164 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21166 for (i = 0; i < pagesize; ++i)
21167 if (*(data + i) != *(data2 + i))
21170 /* Finally, make sure that changes to the mapped area do not
21171 percolate back to the file as seen by read(). (This is a bug on
21172 some variants of i386 svr4.0.) */
21173 for (i = 0; i < pagesize; ++i)
21174 *(data2 + i) = *(data2 + i) + 1;
21175 data3 = (char *) malloc (pagesize);
21178 if (read (fd, data3, pagesize) != pagesize)
21180 for (i = 0; i < pagesize; ++i)
21181 if (*(data + i) != *(data3 + i))
21187 rm -f conftest$ac_exeext
21188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21189 (eval $ac_link) 2>&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194 (eval $ac_try) 2>&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); }; }; then
21198 ac_cv_func_mmap_fixed_mapped=yes
21200 echo "$as_me: program exited with status $ac_status" >&5
21201 echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21204 ( exit $ac_status )
21205 ac_cv_func_mmap_fixed_mapped=no
21207 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21210 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21211 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21212 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21214 cat >>confdefs.h <<\_ACEOF
21215 #define HAVE_MMAP 1
21219 rm -f conftest.mmap
21221 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21223 { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21224 echo "$as_me: error: mmap() required but not found" >&2;}
21225 { (exit 1); exit 1; }; }
21227 echo "$as_me:$LINENO: checking for mmap of files" >&5
21228 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21229 if test "${ac_cv_func_mmap_file+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21235 ac_cpp='$CPP $CPPFLAGS'
21236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21240 if test "$cross_compiling" = yes; then
21241 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21242 See \`config.log' for more details." >&5
21243 echo "$as_me: error: cannot run test program while cross compiling
21244 See \`config.log' for more details." >&2;}
21245 { (exit 1); exit 1; }; }
21247 cat >conftest.$ac_ext <<_ACEOF
21248 #line $LINENO "configure"
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21255 #ifdef HAVE_SYS_TYPES_H
21256 #include <sys/types.h>
21259 #ifdef HAVE_SYS_MMAN_H
21260 #include <sys/mman.h>
21263 #ifdef HAVE_FCNTL_H
21269 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21271 rm -f conftest$ac_exeext
21272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21273 (eval $ac_link) 2>&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 ac_cv_func_mmap_file=yes
21284 echo "$as_me: program exited with status $ac_status" >&5
21285 echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21288 ( exit $ac_status )
21289 ac_cv_func_mmap_file=no
21291 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21294 ac_cpp='$CPP $CPPFLAGS'
21295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21301 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21302 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21303 if test "$ac_cv_func_mmap_file" = yes; then
21305 cat >>confdefs.h <<\_ACEOF
21306 #define HAVE_MMAP_FILE
21313 if test "$ac_cv_func_mmap_file" = "no"
21315 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21316 echo "$as_me: error: mmap() of files required but not found" >&2;}
21317 { (exit 1); exit 1; }; }
21319 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21320 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21321 if test "${ac_cv_header_mmap_anon+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 ac_cpp='$CPP $CPPFLAGS'
21328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21332 cat >conftest.$ac_ext <<_ACEOF
21333 #line $LINENO "configure"
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 #include <sys/mman.h>
21340 #include <unistd.h>
21345 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21350 rm -f conftest.$ac_objext
21351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21352 (eval $ac_compile) 2>&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } &&
21356 { ac_try='test -s conftest.$ac_objext'
21357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358 (eval $ac_try) 2>&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; }; then
21362 ac_cv_header_mmap_anon=yes
21364 echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21367 ac_cv_header_mmap_anon=no
21369 rm -f conftest.$ac_objext conftest.$ac_ext
21371 ac_cpp='$CPP $CPPFLAGS'
21372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21378 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21379 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21380 if test "$ac_cv_header_mmap_anon" = yes; then
21382 cat >>confdefs.h <<\_ACEOF
21383 #define HAVE_MMAP_ANONYMOUS
21388 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21389 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21390 if test "${ac_cv_type_signal+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 cat >conftest.$ac_ext <<_ACEOF
21394 #line $LINENO "configure"
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21400 #include <sys/types.h>
21401 #include <signal.h>
21406 extern "C" void (*signal (int, void (*)(int)))(int);
21408 void (*signal ()) ();
21419 rm -f conftest.$ac_objext
21420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21421 (eval $ac_compile) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } &&
21425 { ac_try='test -s conftest.$ac_objext'
21426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427 (eval $ac_try) 2>&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; }; then
21431 ac_cv_type_signal=void
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_cv_type_signal=int
21438 rm -f conftest.$ac_objext conftest.$ac_ext
21440 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21441 echo "${ECHO_T}$ac_cv_type_signal" >&6
21443 cat >>confdefs.h <<_ACEOF
21444 #define RETSIGTYPE $ac_cv_type_signal
21454 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace
21456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21457 echo "$as_me:$LINENO: checking for $ac_func" >&5
21458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21459 if eval "test \"\${$as_ac_var+set}\" = set"; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 cat >conftest.$ac_ext <<_ACEOF
21463 #line $LINENO "configure"
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 /* System header to define __stub macros and hopefully few prototypes,
21470 which can conflict with char $ac_func (); below.
21471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21472 <limits.h> exists even on freestanding compilers. */
21474 # include <limits.h>
21476 # include <assert.h>
21478 /* Override any gcc2 internal prototype to avoid an error. */
21483 /* We use char because int might match the return type of a gcc2
21484 builtin and then its argument prototype would still apply. */
21486 /* The GNU C library defines this for functions which it implements
21487 to always fail with ENOSYS. Some functions are actually named
21488 something starting with __ and the normal name is an alias. */
21489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21492 char (*f) () = $ac_func;
21501 return f != $ac_func;
21506 rm -f conftest.$ac_objext conftest$ac_exeext
21507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21508 (eval $ac_link) 2>&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -s conftest$ac_exeext'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
21518 eval "$as_ac_var=yes"
21520 echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21523 eval "$as_ac_var=no"
21525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21529 if test `eval echo '${'$as_ac_var'}'` = yes; then
21530 cat >>confdefs.h <<_ACEOF
21531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21537 echo "$as_me:$LINENO: checking for mprotect" >&5
21538 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21539 if test "${ac_cv_func_mprotect+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 cat >conftest.$ac_ext <<_ACEOF
21543 #line $LINENO "configure"
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21549 /* System header to define __stub macros and hopefully few prototypes,
21550 which can conflict with char mprotect (); below.
21551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21552 <limits.h> exists even on freestanding compilers. */
21554 # include <limits.h>
21556 # include <assert.h>
21558 /* Override any gcc2 internal prototype to avoid an error. */
21563 /* We use char because int might match the return type of a gcc2
21564 builtin and then its argument prototype would still apply. */
21566 /* The GNU C library defines this for functions which it implements
21567 to always fail with ENOSYS. Some functions are actually named
21568 something starting with __ and the normal name is an alias. */
21569 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21572 char (*f) () = mprotect;
21581 return f != mprotect;
21586 rm -f conftest.$ac_objext conftest$ac_exeext
21587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21588 (eval $ac_link) 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } &&
21592 { ac_try='test -s conftest$ac_exeext'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; }; then
21598 ac_cv_func_mprotect=yes
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21603 ac_cv_func_mprotect=no
21605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21607 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21608 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21609 if test $ac_cv_func_mprotect = yes; then
21612 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21613 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21614 { (exit 1); exit 1; }; }
21622 ac_cpp='$CPP $CPPFLAGS'
21623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21627 oldcflags="$CFLAGS"
21628 CFLAGS="$CFLAGS -Wl,-R."
21629 cat >conftest.$ac_ext <<_ACEOF
21630 int main() { return 0; }
21632 rm -f conftest.$ac_objext conftest$ac_exeext
21633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21634 (eval $ac_link) 2>&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } &&
21638 { ac_try='test -s conftest$ac_exeext'
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; }; then
21644 ac_cv_link_use_r=yes
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 ac_cv_link_use_r=no
21651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21652 CFLAGS="$oldcflags"
21654 ac_cpp='$CPP $CPPFLAGS'
21655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21659 if test "$ac_cv_link_use_r" = yes
21662 cat >>confdefs.h <<\_ACEOF
21663 #define HAVE_LINK_R 1
21669 # Check whether --enable-optimized or --disable-optimized was given.
21670 if test "${enable_optimized+set}" = set; then
21671 enableval="$enable_optimized"
21676 if test ${enableval} = "no"
21681 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21685 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21686 if test "${enable_spec2000+set}" = set; then
21687 enableval="$enable_spec2000"
21692 if test ${enableval} = "no"
21694 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21696 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21698 USE_SPEC=USE_SPEC=1
21706 if test ${enableval} = ""
21708 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21711 SPEC_ROOT=${enableval}
21714 USE_SPEC=USE_SPEC=1
21718 # Check whether --enable-spec95 or --disable-spec95 was given.
21719 if test "${enable_spec95+set}" = set; then
21720 enableval="$enable_spec95"
21725 if test ${enableval} = "no"
21727 if test -d /home/vadve/shared/benchmarks/spec95/benchspec
21729 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21731 USE_SPEC95=USE_SPEC95=1
21739 if test ${enableval} = ""
21741 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21744 SPEC95_ROOT=${enableval}
21747 USE_SPEC95=USE_SPEC95=1
21751 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21752 if test "${enable_precompiled_bytecode+set}" = set; then
21753 enableval="$enable_precompiled_bytecode"
21758 if test ${enableval} = "no"
21763 UPB=USE_PRECOMPILED_BYTECODE=1
21767 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21768 if test "${enable_llc_diffs+set}" = set; then
21769 enableval="$enable_llc_diffs"
21774 if test ${enableval} = "no"
21776 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
21783 # Check whether --enable-jit or --disable-jit was given.
21784 if test "${enable_jit+set}" = set; then
21785 enableval="$enable_jit"
21790 if test ${enableval} = "no"
21797 JIT=TARGET_HAS_JIT=1
21801 JIT=TARGET_HAS_JIT=1
21812 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21813 if test "${with_llvmgccdir+set}" = set; then
21814 withval="$with_llvmgccdir"
21815 LLVMGCCDIR=$withval
21818 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21819 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21821 if test -d "$LLVMGCCDIR"
21823 if test -x "$LLVMGCCDIR/bin/gcc"
21825 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
21829 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
21830 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
21831 if test "$LLVM_GCC_CHECK" = "no"
21835 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21836 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
21838 if test -x "$LLVM_GCC_CHECK"
21840 cp /dev/null conftest.c
21841 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
21847 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
21848 LLVMCC1=$llvmcc1path
21850 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
21851 LLVMCC1PLUS=$llvmcc1pluspath
21854 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
21855 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
21856 if test "$LLVM_GCC_SANE" = "no"
21862 # Check whether --with-bcrepos or --without-bcrepos was given.
21863 if test "${with_bcrepos+set}" = set; then
21864 withval="$with_bcrepos"
21868 BCR=/home/vadve/lattner/LLVMPrograms
21873 # Check whether --with-papi or --without-papi was given.
21874 if test "${with_papi+set}" = set; then
21875 withval="$with_papi"
21879 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
21883 echo "$as_me:$LINENO: checking for shared library suffix" >&5
21884 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
21885 eval "SHLIBEXT=$shrext"
21886 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
21887 echo "${ECHO_T}$SHLIBEXT" >&6
21891 cat >>confdefs.h <<_ACEOF
21892 #define SHLIBEXT "$SHLIBEXT"
21896 ac_config_files="$ac_config_files Makefile.config"
21897 cat >confcache <<\_ACEOF
21898 # This file is a shell script that caches the results of configure
21899 # tests run on this system so they can be shared between configure
21900 # scripts and configure runs, see configure's option --config-cache.
21901 # It is not useful on other systems. If it contains results you don't
21902 # want to keep, you may remove or edit it.
21904 # config.status only pays attention to the cache file if you give it
21905 # the --recheck option to rerun configure.
21907 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21908 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21909 # following values.
21913 # The following way of writing the cache mishandles newlines in values,
21914 # but we know of no workaround that is simple, portable, and efficient.
21915 # So, don't put newlines in cache variables' values.
21916 # Ultrix sh set writes to stderr and can't be redirected directly,
21917 # and sets the high bit in the cache file unless we assign to the vars.
21920 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21922 # `set' does not quote correctly, so add quotes (double-quote
21923 # substitution turns \\\\ into \\, and sed turns \\ into \).
21926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21929 # `set' quotes correctly as required by POSIX, so do not add quotes.
21931 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21940 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21942 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21943 if test -w $cache_file; then
21944 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21945 cat confcache >$cache_file
21947 echo "not updating unwritable cache $cache_file"
21952 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21953 # Let make expand exec_prefix.
21954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21956 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21957 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21958 # trailing colons and then remove the whole line if VPATH becomes empty
21959 # (actually we leave an empty line to preserve line numbers).
21960 if test "x$srcdir" = x.; then
21961 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21962 s/:*\$(srcdir):*/:/;
21963 s/:*\${srcdir}:*/:/;
21965 s/^\([^=]*=[ ]*\):*/\1/;
21971 DEFS=-DHAVE_CONFIG_H
21975 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21976 # 1. Remove the extension, and $U if already installed.
21977 ac_i=`echo "$ac_i" |
21978 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21980 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21981 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21983 LIBOBJS=$ac_libobjs
21985 LTLIBOBJS=$ac_ltlibobjs
21989 : ${CONFIG_STATUS=./config.status}
21990 ac_clean_files_save=$ac_clean_files
21991 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21992 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21993 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21994 cat >$CONFIG_STATUS <<_ACEOF
21996 # Generated by $as_me.
21997 # Run this file to recreate the current configuration.
21998 # Compiler output produced by configure, useful for debugging
21999 # configure, is in config.log if it exists.
22002 ac_cs_recheck=false
22004 SHELL=\${CONFIG_SHELL-$SHELL}
22007 cat >>$CONFIG_STATUS <<\_ACEOF
22008 ## --------------------- ##
22009 ## M4sh Initialization. ##
22010 ## --------------------- ##
22012 # Be Bourne compatible
22013 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22016 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22017 # is contrary to our usage. Disable this feature.
22018 alias -g '${1+"$@"}'='"$@"'
22019 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22023 # Support unset when possible.
22024 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22031 # Work around bugs in pre-3.0 UWIN ksh.
22032 $as_unset ENV MAIL MAILPATH
22039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22041 LC_TELEPHONE LC_TIME
22043 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22044 eval $as_var=C; export $as_var
22050 # Required to use basename.
22051 if expr a : '\(a\)' >/dev/null 2>&1; then
22057 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22058 as_basename=basename
22064 # Name of the executable.
22065 as_me=`$as_basename "$0" ||
22066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22067 X"$0" : 'X\(//\)$' \| \
22068 X"$0" : 'X\(/\)$' \| \
22069 . : '\(.\)' 2>/dev/null ||
22071 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22072 /^X\/\(\/\/\)$/{ s//\1/; q; }
22073 /^X\/\(\/\).*/{ s//\1/; q; }
22077 # PATH needs CR, and LINENO needs CR and PATH.
22078 # Avoid depending upon Character Ranges.
22079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22082 as_cr_digits='0123456789'
22083 as_cr_alnum=$as_cr_Letters$as_cr_digits
22085 # The user is always right.
22086 if test "${PATH_SEPARATOR+set}" != set; then
22087 echo "#! /bin/sh" >conf$$.sh
22088 echo "exit 0" >>conf$$.sh
22090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22099 as_lineno_1=$LINENO
22100 as_lineno_2=$LINENO
22101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22102 test "x$as_lineno_1" != "x$as_lineno_2" &&
22103 test "x$as_lineno_3" = "x$as_lineno_2" || {
22104 # Find who we are. Look in the path if we contain no path at all
22107 *[\\/]* ) as_myself=$0 ;;
22108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22109 for as_dir in $PATH
22112 test -z "$as_dir" && as_dir=.
22113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22118 # We did not find ourselves, most probably we were run as `sh COMMAND'
22119 # in which case we are not to be found in the path.
22120 if test "x$as_myself" = x; then
22123 if test ! -f "$as_myself"; then
22124 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22125 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22126 { (exit 1); exit 1; }; }
22128 case $CONFIG_SHELL in
22130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22134 test -z "$as_dir" && as_dir=.
22135 for as_base in sh bash ksh sh5; do
22138 if ("$as_dir/$as_base" -c '
22139 as_lineno_1=$LINENO
22140 as_lineno_2=$LINENO
22141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22142 test "x$as_lineno_1" != "x$as_lineno_2" &&
22143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22146 CONFIG_SHELL=$as_dir/$as_base
22147 export CONFIG_SHELL
22148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22157 # uniformly replaced by the line number. The first 'sed' inserts a
22158 # line-number line before each line; the second 'sed' does the real
22159 # work. The second script uses 'N' to pair each line-number line
22160 # with the numbered line, and appends trailing '-' during
22161 # substitution so that $LINENO is not a special case at line end.
22162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22164 sed '=' <$as_myself |
22169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22172 s,^['$as_cr_digits']*\n,,
22173 ' >$as_me.lineno &&
22174 chmod +x $as_me.lineno ||
22175 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22176 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22177 { (exit 1); exit 1; }; }
22179 # Don't try to exec as it changes $[0], causing all sort of problems
22180 # (the dirname of $[0] is not the place where we might find the
22181 # original and so on. Autoconf is especially sensible to this).
22183 # Exit status is that of the last command.
22188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22189 *c*,-n*) ECHO_N= ECHO_C='
22191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22195 if expr a : '\(a\)' >/dev/null 2>&1; then
22201 rm -f conf$$ conf$$.exe conf$$.file
22203 if ln -s conf$$.file conf$$ 2>/dev/null; then
22204 # We could just check for DJGPP; but this test a) works b) is more generic
22205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22206 if test -f conf$$.exe; then
22207 # Don't use ln at all; we don't have any links
22212 elif ln conf$$.file conf$$ 2>/dev/null; then
22217 rm -f conf$$ conf$$.exe conf$$.file
22219 if mkdir -p . 2>/dev/null; then
22225 as_executable_p="test -f"
22227 # Sed expression to map a string onto a valid CPP name.
22228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22230 # Sed expression to map a string onto a valid variable name.
22231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22235 # We need space, tab and new line, in precisely that order.
22245 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22246 # report actual input values of CONFIG_FILES etc. instead of their
22247 # values after options handling. Logging --version etc. is OK.
22251 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22252 ## Running $as_me. ##
22257 This file was extended by [LLVM] $as_me [1.1], which was
22258 generated by GNU Autoconf 2.57. Invocation command line was
22260 CONFIG_FILES = $CONFIG_FILES
22261 CONFIG_HEADERS = $CONFIG_HEADERS
22262 CONFIG_LINKS = $CONFIG_LINKS
22263 CONFIG_COMMANDS = $CONFIG_COMMANDS
22267 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22271 # Files that config.status was made for.
22272 if test -n "$ac_config_files"; then
22273 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22276 if test -n "$ac_config_headers"; then
22277 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22280 if test -n "$ac_config_links"; then
22281 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22284 if test -n "$ac_config_commands"; then
22285 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22288 cat >>$CONFIG_STATUS <<\_ACEOF
22291 \`$as_me' instantiates files from templates according to the
22292 current configuration.
22294 Usage: $0 [OPTIONS] [FILE]...
22296 -h, --help print this help, then exit
22297 -V, --version print version number, then exit
22298 -q, --quiet do not print progress messages
22299 -d, --debug don't remove temporary files
22300 --recheck update $as_me by reconfiguring in the same conditions
22301 --file=FILE[:TEMPLATE]
22302 instantiate the configuration file FILE
22303 --header=FILE[:TEMPLATE]
22304 instantiate the configuration header FILE
22306 Configuration files:
22309 Configuration headers:
22312 Configuration commands:
22315 Report bugs to <bug-autoconf@gnu.org>."
22318 cat >>$CONFIG_STATUS <<_ACEOF
22320 [LLVM] config.status [1.1]
22321 configured by $0, generated by GNU Autoconf 2.57,
22322 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22324 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22325 Free Software Foundation, Inc.
22326 This config.status script is free software; the Free Software Foundation
22327 gives unlimited permission to copy, distribute and modify it."
22332 cat >>$CONFIG_STATUS <<\_ACEOF
22333 # If no file are specified by the user, then we need to provide default
22334 # value. By we need to know if files were specified by the user.
22340 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22341 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22349 *) # This is not an option, so the user has probably given explicit
22352 ac_need_defaults=false;;
22356 # Handling of the options.
22358 cat >>$CONFIG_STATUS <<\_ACEOF
22359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22361 --version | --vers* | -V )
22362 echo "$ac_cs_version"; exit 0 ;;
22364 # Conflict between --help and --header
22365 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22366 Try \`$0 --help' for more information." >&5
22367 echo "$as_me: error: ambiguous option: $1
22368 Try \`$0 --help' for more information." >&2;}
22369 { (exit 1); exit 1; }; };;
22370 --help | --hel | -h )
22371 echo "$ac_cs_usage"; exit 0 ;;
22372 --debug | --d* | -d )
22374 --file | --fil | --fi | --f )
22376 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22377 ac_need_defaults=false;;
22378 --header | --heade | --head | --hea )
22380 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22381 ac_need_defaults=false;;
22382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22383 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22386 # This is an error.
22387 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22388 Try \`$0 --help' for more information." >&5
22389 echo "$as_me: error: unrecognized option: $1
22390 Try \`$0 --help' for more information." >&2;}
22391 { (exit 1); exit 1; }; } ;;
22393 *) ac_config_targets="$ac_config_targets $1" ;;
22399 ac_configure_extra_args=
22401 if $ac_cs_silent; then
22403 ac_configure_extra_args="$ac_configure_extra_args --silent"
22407 cat >>$CONFIG_STATUS <<_ACEOF
22408 if \$ac_cs_recheck; then
22409 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22410 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22415 cat >>$CONFIG_STATUS <<_ACEOF
22417 # INIT-COMMANDS section.
22420 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22421 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22422 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22423 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22426 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22427 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22428 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22429 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22430 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22431 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22432 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22433 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22434 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22439 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22451 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22452 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22465 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22466 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22467 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22473 cat >>$CONFIG_STATUS <<\_ACEOF
22474 for ac_config_target in $ac_config_targets
22476 case "$ac_config_target" in
22477 # Handling of arguments.
22478 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22479 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22480 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22481 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22482 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22483 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22484 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22485 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22486 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22487 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22488 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22489 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22490 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22491 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22492 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22493 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22494 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22495 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22496 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22497 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22498 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22499 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22500 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22501 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22502 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
22503 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22504 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22505 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22506 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22507 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22508 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22509 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22510 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22511 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22512 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22513 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22514 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22515 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22516 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22517 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22518 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22519 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22520 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22521 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22522 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22523 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22524 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22525 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22526 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22527 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22528 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22529 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22530 { (exit 1); exit 1; }; };;
22534 # If the user did not use the arguments to specify the items to instantiate,
22535 # then the envvar interface is used. Set only those that are not.
22536 # We use the long form for the default assignment because of an extremely
22537 # bizarre bug on SunOS 4.1.3.
22538 if $ac_need_defaults; then
22539 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22540 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22541 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22544 # Have a temporary directory for convenience. Make it in the build tree
22545 # simply because there is no reason to put it here, and in addition,
22546 # creating and moving files from /tmp can sometimes cause problems.
22547 # Create a temporary directory, and hook for its removal unless debugging.
22550 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22551 trap '{ (exit 1); exit 1; }' 1 2 13 15
22554 # Create a (secure) tmp directory for tmp files.
22557 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22558 test -n "$tmp" && test -d "$tmp"
22561 tmp=./confstat$$-$RANDOM
22562 (umask 077 && mkdir $tmp)
22565 echo "$me: cannot create a temporary directory in ." >&2
22566 { (exit 1); exit 1; }
22571 cat >>$CONFIG_STATUS <<_ACEOF
22574 # CONFIG_FILES section.
22577 # No need to generate the scripts if there are no CONFIG_FILES.
22578 # This happens for instance when ./config.status config.h
22579 if test -n "\$CONFIG_FILES"; then
22580 # Protect against being on the right side of a sed subst in config.status.
22581 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22582 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22583 s,@SHELL@,$SHELL,;t t
22584 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22585 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22586 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22587 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22588 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22589 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22590 s,@exec_prefix@,$exec_prefix,;t t
22591 s,@prefix@,$prefix,;t t
22592 s,@program_transform_name@,$program_transform_name,;t t
22593 s,@bindir@,$bindir,;t t
22594 s,@sbindir@,$sbindir,;t t
22595 s,@libexecdir@,$libexecdir,;t t
22596 s,@datadir@,$datadir,;t t
22597 s,@sysconfdir@,$sysconfdir,;t t
22598 s,@sharedstatedir@,$sharedstatedir,;t t
22599 s,@localstatedir@,$localstatedir,;t t
22600 s,@libdir@,$libdir,;t t
22601 s,@includedir@,$includedir,;t t
22602 s,@oldincludedir@,$oldincludedir,;t t
22603 s,@infodir@,$infodir,;t t
22604 s,@mandir@,$mandir,;t t
22605 s,@build_alias@,$build_alias,;t t
22606 s,@host_alias@,$host_alias,;t t
22607 s,@target_alias@,$target_alias,;t t
22608 s,@DEFS@,$DEFS,;t t
22609 s,@ECHO_C@,$ECHO_C,;t t
22610 s,@ECHO_N@,$ECHO_N,;t t
22611 s,@ECHO_T@,$ECHO_T,;t t
22612 s,@LIBS@,$LIBS,;t t
22613 s,@subdirs@,$subdirs,;t t
22614 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22615 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22616 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22617 s,@build@,$build,;t t
22618 s,@build_cpu@,$build_cpu,;t t
22619 s,@build_vendor@,$build_vendor,;t t
22620 s,@build_os@,$build_os,;t t
22621 s,@host@,$host,;t t
22622 s,@host_cpu@,$host_cpu,;t t
22623 s,@host_vendor@,$host_vendor,;t t
22624 s,@host_os@,$host_os,;t t
22625 s,@target@,$target,;t t
22626 s,@target_cpu@,$target_cpu,;t t
22627 s,@target_vendor@,$target_vendor,;t t
22628 s,@target_os@,$target_os,;t t
22630 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22631 s,@ARCH@,$ARCH,;t t
22633 s,@CXXFLAGS@,$CXXFLAGS,;t t
22634 s,@LDFLAGS@,$LDFLAGS,;t t
22635 s,@CPPFLAGS@,$CPPFLAGS,;t t
22636 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22637 s,@EXEEXT@,$EXEEXT,;t t
22638 s,@OBJEXT@,$OBJEXT,;t t
22640 s,@CFLAGS@,$CFLAGS,;t t
22641 s,@ac_ct_CC@,$ac_ct_CC,;t t
22643 s,@ifGNUmake@,$ifGNUmake,;t t
22645 s,@LEXLIB@,$LEXLIB,;t t
22646 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22647 s,@YACC@,$YACC,;t t
22648 s,@BISON@,$BISON,;t t
22649 s,@EGREP@,$EGREP,;t t
22650 s,@LN_S@,$LN_S,;t t
22651 s,@ECHO@,$ECHO,;t t
22653 s,@ac_ct_AR@,$ac_ct_AR,;t t
22654 s,@RANLIB@,$RANLIB,;t t
22655 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22656 s,@STRIP@,$STRIP,;t t
22657 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22658 s,@CXXCPP@,$CXXCPP,;t t
22660 s,@FFLAGS@,$FFLAGS,;t t
22661 s,@ac_ct_F77@,$ac_ct_F77,;t t
22662 s,@LIBTOOL@,$LIBTOOL,;t t
22664 s,@ETAGS@,$ETAGS,;t t
22665 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22666 s,@PYTHON@,$PYTHON,;t t
22667 s,@QMTEST@,$QMTEST,;t t
22668 s,@ENDIAN@,$ENDIAN,;t t
22669 s,@ALLOCA@,$ALLOCA,;t t
22670 s,@MMAP_FILE@,$MMAP_FILE,;t t
22671 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22672 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22673 s,@USE_SPEC@,$USE_SPEC,;t t
22674 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22675 s,@USE_SPEC95@,$USE_SPEC95,;t t
22677 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22679 s,@LLVMCC1@,$LLVMCC1,;t t
22680 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22682 s,@PAPIDIR@,$PAPIDIR,;t t
22683 s,@SHLIBEXT@,$SHLIBEXT,;t t
22684 s,@LIBOBJS@,$LIBOBJS,;t t
22685 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22690 cat >>$CONFIG_STATUS <<\_ACEOF
22691 # Split the substitutions into bite-sized pieces for seds with
22692 # small command number limits, like on Digital OSF/1 and HP-UX.
22693 ac_max_sed_lines=48
22694 ac_sed_frag=1 # Number of current file.
22695 ac_beg=1 # First line for current file.
22696 ac_end=$ac_max_sed_lines # Line after last line for current file.
22699 while $ac_more_lines; do
22700 if test $ac_beg -gt 1; then
22701 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22703 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22705 if test ! -s $tmp/subs.frag; then
22706 ac_more_lines=false
22708 # The purpose of the label and of the branching condition is to
22709 # speed up the sed processing (if there are no `@' at all, there
22710 # is no need to browse any of the substitutions).
22711 # These are the two extra sed commands mentioned above.
22713 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22714 if test -z "$ac_sed_cmds"; then
22715 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22717 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22719 ac_sed_frag=`expr $ac_sed_frag + 1`
22721 ac_end=`expr $ac_end + $ac_max_sed_lines`
22724 if test -z "$ac_sed_cmds"; then
22727 fi # test -n "$CONFIG_FILES"
22730 cat >>$CONFIG_STATUS <<\_ACEOF
22731 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22732 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22734 - | *:- | *:-:* ) # input from stdin
22736 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22738 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22740 * ) ac_file_in=$ac_file.in ;;
22743 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22744 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22746 X"$ac_file" : 'X\(//\)[^/]' \| \
22747 X"$ac_file" : 'X\(//\)$' \| \
22748 X"$ac_file" : 'X\(/\)' \| \
22749 . : '\(.\)' 2>/dev/null ||
22751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22753 /^X\(\/\/\)$/{ s//\1/; q; }
22754 /^X\(\/\).*/{ s//\1/; q; }
22756 { if $as_mkdir_p; then
22761 while test ! -d "$as_dir"; do
22762 as_dirs="$as_dir $as_dirs"
22763 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22765 X"$as_dir" : 'X\(//\)[^/]' \| \
22766 X"$as_dir" : 'X\(//\)$' \| \
22767 X"$as_dir" : 'X\(/\)' \| \
22768 . : '\(.\)' 2>/dev/null ||
22770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22772 /^X\(\/\/\)$/{ s//\1/; q; }
22773 /^X\(\/\).*/{ s//\1/; q; }
22776 test ! -n "$as_dirs" || mkdir $as_dirs
22777 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22778 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22779 { (exit 1); exit 1; }; }; }
22783 if test "$ac_dir" != .; then
22784 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22785 # A "../" for each directory in $ac_dir_suffix.
22786 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22788 ac_dir_suffix= ac_top_builddir=
22792 .) # No --srcdir option. We are building in place.
22794 if test -z "$ac_top_builddir"; then
22797 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22799 [\\/]* | ?:[\\/]* ) # Absolute path.
22800 ac_srcdir=$srcdir$ac_dir_suffix;
22801 ac_top_srcdir=$srcdir ;;
22802 *) # Relative path.
22803 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22804 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22806 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22808 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22809 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22810 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22811 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22815 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22816 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22819 if test x"$ac_file" != x-; then
22820 { echo "$as_me:$LINENO: creating $ac_file" >&5
22821 echo "$as_me: creating $ac_file" >&6;}
22824 # Let's still pretend it is `configure' which instantiates (i.e., don't
22825 # use $as_me), people would be surprised to read:
22826 # /* config.h. Generated by config.status. */
22827 if test x"$ac_file" = x-; then
22830 configure_input="$ac_file. "
22832 configure_input=$configure_input"Generated from `echo $ac_file_in |
22833 sed 's,.*/,,'` by configure."
22835 # First look for the input files in the build tree, otherwise in the
22837 ac_file_inputs=`IFS=:
22838 for f in $ac_file_in; do
22840 -) echo $tmp/stdin ;;
22842 # Absolute (can't be DOS-style, as IFS=:)
22843 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22844 echo "$as_me: error: cannot find input file: $f" >&2;}
22845 { (exit 1); exit 1; }; }
22848 if test -f "$f"; then
22851 elif test -f "$srcdir/$f"; then
22856 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22857 echo "$as_me: error: cannot find input file: $f" >&2;}
22858 { (exit 1); exit 1; }; }
22861 done` || { (exit 1); exit 1; }
22863 cat >>$CONFIG_STATUS <<_ACEOF
22867 cat >>$CONFIG_STATUS <<\_ACEOF
22869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22870 s,@configure_input@,$configure_input,;t t
22871 s,@srcdir@,$ac_srcdir,;t t
22872 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22873 s,@top_srcdir@,$ac_top_srcdir,;t t
22874 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22875 s,@builddir@,$ac_builddir,;t t
22876 s,@abs_builddir@,$ac_abs_builddir,;t t
22877 s,@top_builddir@,$ac_top_builddir,;t t
22878 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22879 s,@INSTALL@,$ac_INSTALL,;t t
22880 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22882 if test x"$ac_file" != x-; then
22883 mv $tmp/out $ac_file
22891 cat >>$CONFIG_STATUS <<\_ACEOF
22894 # CONFIG_HEADER section.
22897 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22898 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22900 # ac_d sets the value in "#define NAME VALUE" lines.
22901 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22902 ac_dB='[ ].*$,\1#\2'
22905 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22906 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22907 ac_uB='$,\1#\2define\3'
22911 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22914 - | *:- | *:-:* ) # input from stdin
22916 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22918 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22919 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22920 * ) ac_file_in=$ac_file.in ;;
22923 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22924 echo "$as_me: creating $ac_file" >&6;}
22926 # First look for the input files in the build tree, otherwise in the
22928 ac_file_inputs=`IFS=:
22929 for f in $ac_file_in; do
22931 -) echo $tmp/stdin ;;
22933 # Absolute (can't be DOS-style, as IFS=:)
22934 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22935 echo "$as_me: error: cannot find input file: $f" >&2;}
22936 { (exit 1); exit 1; }; }
22939 if test -f "$f"; then
22942 elif test -f "$srcdir/$f"; then
22947 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22948 echo "$as_me: error: cannot find input file: $f" >&2;}
22949 { (exit 1); exit 1; }; }
22952 done` || { (exit 1); exit 1; }
22953 # Remove the trailing spaces.
22954 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22958 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22959 # `conftest.undefs', that substitutes the proper values into
22960 # config.h.in to produce config.h. The first handles `#define'
22961 # templates, and the second `#undef' templates.
22962 # And first: Protect against being on the right side of a sed subst in
22963 # config.status. Protect against being in an unquoted here document
22964 # in config.status.
22965 rm -f conftest.defines conftest.undefs
22966 # Using a here document instead of a string reduces the quoting nightmare.
22967 # Putting comments in sed scripts is not portable.
22969 # `end' is used to avoid that the second main sed command (meant for
22970 # 0-ary CPP macros) applies to n-ary macro definitions.
22971 # See the Autoconf documentation for `clear'.
22972 cat >confdef2sed.sed <<\_ACEOF
22977 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22979 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22982 # If some macros were called several times there might be several times
22983 # the same #defines, which is useless. Nevertheless, we may not want to
22984 # sort them, since we want the *last* AC-DEFINE to be honored.
22985 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22986 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22987 rm -f confdef2sed.sed
22989 # This sed command replaces #undef with comments. This is necessary, for
22990 # example, in the case of _POSIX_SOURCE, which is predefined and required
22991 # on some systems where configure will not decide to define it.
22992 cat >>conftest.undefs <<\_ACEOF
22993 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22996 # Break up conftest.defines because some shells have a limit on the size
22997 # of here documents, and old seds have small limits too (100 cmds).
22998 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22999 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23000 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23001 echo ' :' >>$CONFIG_STATUS
23002 rm -f conftest.tail
23003 while grep . conftest.defines >/dev/null
23005 # Write a limited-size here document to $tmp/defines.sed.
23006 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23007 # Speed up: don't consider the non `#define' lines.
23008 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23009 # Work around the forget-to-reset-the-flag bug.
23010 echo 't clr' >>$CONFIG_STATUS
23011 echo ': clr' >>$CONFIG_STATUS
23012 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23014 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23016 mv $tmp/out $tmp/in
23018 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23019 rm -f conftest.defines
23020 mv conftest.tail conftest.defines
23022 rm -f conftest.defines
23023 echo ' fi # grep' >>$CONFIG_STATUS
23024 echo >>$CONFIG_STATUS
23026 # Break up conftest.undefs because some shells have a limit on the size
23027 # of here documents, and old seds have small limits too (100 cmds).
23028 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23029 rm -f conftest.tail
23030 while grep . conftest.undefs >/dev/null
23032 # Write a limited-size here document to $tmp/undefs.sed.
23033 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23034 # Speed up: don't consider the non `#undef'
23035 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23036 # Work around the forget-to-reset-the-flag bug.
23037 echo 't clr' >>$CONFIG_STATUS
23038 echo ': clr' >>$CONFIG_STATUS
23039 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23041 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23043 mv $tmp/out $tmp/in
23045 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23046 rm -f conftest.undefs
23047 mv conftest.tail conftest.undefs
23049 rm -f conftest.undefs
23051 cat >>$CONFIG_STATUS <<\_ACEOF
23052 # Let's still pretend it is `configure' which instantiates (i.e., don't
23053 # use $as_me), people would be surprised to read:
23054 # /* config.h. Generated by config.status. */
23055 if test x"$ac_file" = x-; then
23056 echo "/* Generated by configure. */" >$tmp/config.h
23058 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23060 cat $tmp/in >>$tmp/config.h
23062 if test x"$ac_file" != x-; then
23063 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23064 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23065 echo "$as_me: $ac_file is unchanged" >&6;}
23067 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23069 X"$ac_file" : 'X\(//\)[^/]' \| \
23070 X"$ac_file" : 'X\(//\)$' \| \
23071 X"$ac_file" : 'X\(/\)' \| \
23072 . : '\(.\)' 2>/dev/null ||
23074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23076 /^X\(\/\/\)$/{ s//\1/; q; }
23077 /^X\(\/\).*/{ s//\1/; q; }
23079 { if $as_mkdir_p; then
23084 while test ! -d "$as_dir"; do
23085 as_dirs="$as_dir $as_dirs"
23086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23088 X"$as_dir" : 'X\(//\)[^/]' \| \
23089 X"$as_dir" : 'X\(//\)$' \| \
23090 X"$as_dir" : 'X\(/\)' \| \
23091 . : '\(.\)' 2>/dev/null ||
23093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23095 /^X\(\/\/\)$/{ s//\1/; q; }
23096 /^X\(\/\).*/{ s//\1/; q; }
23099 test ! -n "$as_dirs" || mkdir $as_dirs
23100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23102 { (exit 1); exit 1; }; }; }
23105 mv $tmp/config.h $ac_file
23109 rm -f $tmp/config.h
23113 cat >>$CONFIG_STATUS <<\_ACEOF
23116 # CONFIG_COMMANDS section.
23118 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23119 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23120 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23121 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23122 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23123 X"$ac_dest" : 'X\(//\)[^/]' \| \
23124 X"$ac_dest" : 'X\(//\)$' \| \
23125 X"$ac_dest" : 'X\(/\)' \| \
23126 . : '\(.\)' 2>/dev/null ||
23128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23130 /^X\(\/\/\)$/{ s//\1/; q; }
23131 /^X\(\/\).*/{ s//\1/; q; }
23135 if test "$ac_dir" != .; then
23136 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23137 # A "../" for each directory in $ac_dir_suffix.
23138 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23140 ac_dir_suffix= ac_top_builddir=
23144 .) # No --srcdir option. We are building in place.
23146 if test -z "$ac_top_builddir"; then
23149 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23151 [\\/]* | ?:[\\/]* ) # Absolute path.
23152 ac_srcdir=$srcdir$ac_dir_suffix;
23153 ac_top_srcdir=$srcdir ;;
23154 *) # Relative path.
23155 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23156 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23158 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23160 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23161 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23162 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23163 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23166 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23167 echo "$as_me: executing $ac_dest commands" >&6;}
23169 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23170 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23171 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23172 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23173 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23174 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23175 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23176 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23177 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23178 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23179 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23180 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23181 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
23182 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23183 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23184 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23185 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23186 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23187 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23188 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23189 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23190 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23191 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23192 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
23193 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23194 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23195 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 ;;
23196 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 ;;
23197 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23198 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23199 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 ;;
23200 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 ;;
23201 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 ;;
23202 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 ;;
23203 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 ;;
23204 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 ;;
23205 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 ;;
23206 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 ;;
23207 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 ;;
23208 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 ;;
23209 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 ;;
23210 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 ;;
23211 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 ;;
23212 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23213 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23214 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23215 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23216 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23221 cat >>$CONFIG_STATUS <<\_ACEOF
23223 { (exit 0); exit 0; }
23225 chmod +x $CONFIG_STATUS
23226 ac_clean_files=$ac_clean_files_save
23229 # configure is writing to config.log, and then calls config.status.
23230 # config.status does its own redirection, appending to config.log.
23231 # Unfortunately, on DOS this fails, as config.log is still kept open
23232 # by configure, so config.status won't be able to write to it; its
23233 # output is simply discarded. So we exec the FD to /dev/null,
23234 # effectively closing config.log, so it can be properly (re)opened and
23235 # appended to by config.status. When coming back to configure, we
23236 # need to make the FD available again.
23237 if test "$no_create" != yes; then
23239 ac_config_status_args=
23240 test "$silent" = yes &&
23241 ac_config_status_args="$ac_config_status_args --quiet"
23243 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23245 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23246 # would make configure fail if this is the last instruction.
23247 $ac_cs_success || { (exit 1); exit 1; }
23251 # CONFIG_SUBDIRS section.
23253 if test "$no_recursion" != yes; then
23255 # Remove --cache-file and --srcdir arguments so they do not pile up.
23256 ac_sub_configure_args=
23258 for ac_arg in $ac_configure_args; do
23259 if test -n "$ac_prev"; then
23264 -cache-file | --cache-file | --cache-fil | --cache-fi \
23265 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23266 ac_prev=cache_file ;;
23267 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23268 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23271 --config-cache | -C)
23273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23281 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23285 # Always prepend --prefix to ensure using the same prefix
23286 # in subdir configurations.
23287 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23290 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23292 # Do not complain, so a configure script can configure whichever
23293 # parts of a large source tree are present.
23294 test -d $srcdir/$ac_dir || continue
23296 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23297 echo "$as_me: configuring in $ac_dir" >&6;}
23298 { if $as_mkdir_p; then
23303 while test ! -d "$as_dir"; do
23304 as_dirs="$as_dir $as_dirs"
23305 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23307 X"$as_dir" : 'X\(//\)[^/]' \| \
23308 X"$as_dir" : 'X\(//\)$' \| \
23309 X"$as_dir" : 'X\(/\)' \| \
23310 . : '\(.\)' 2>/dev/null ||
23312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23314 /^X\(\/\/\)$/{ s//\1/; q; }
23315 /^X\(\/\).*/{ s//\1/; q; }
23318 test ! -n "$as_dirs" || mkdir $as_dirs
23319 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23321 { (exit 1); exit 1; }; }; }
23325 if test "$ac_dir" != .; then
23326 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23327 # A "../" for each directory in $ac_dir_suffix.
23328 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23330 ac_dir_suffix= ac_top_builddir=
23334 .) # No --srcdir option. We are building in place.
23336 if test -z "$ac_top_builddir"; then
23339 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23341 [\\/]* | ?:[\\/]* ) # Absolute path.
23342 ac_srcdir=$srcdir$ac_dir_suffix;
23343 ac_top_srcdir=$srcdir ;;
23344 *) # Relative path.
23345 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23346 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23348 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23350 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23351 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23352 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23353 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23358 # Check for guested configure; otherwise get Cygnus style configure.
23359 if test -f $ac_srcdir/configure.gnu; then
23360 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23361 elif test -f $ac_srcdir/configure; then
23362 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23363 elif test -f $ac_srcdir/configure.in; then
23364 ac_sub_configure=$ac_configure
23366 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23367 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23371 # The recursion is here.
23372 if test -n "$ac_sub_configure"; then
23373 # Make the cache file name correct relative to the subdirectory.
23374 case $cache_file in
23375 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23376 *) # Relative path.
23377 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23380 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23381 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23382 # The eval makes quoting arguments work.
23383 eval $ac_sub_configure $ac_sub_configure_args \
23384 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23385 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23386 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23387 { (exit 1); exit 1; }; }
23395 if test $llvmgccwarn = yes
23397 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23398 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23399 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23400 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23401 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23402 echo "$as_me: WARNING: ***** " >&2;}
23403 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23404 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23405 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23406 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23407 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23408 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}