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 ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC 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-precompiled_bytecode
1036 Use pre-compiled bytecode (default is NO)
1037 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1038 --enable-jit Enable Just In Time Compiling (default is YES)
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1047 include additional configurations [automatic]
1048 --with-llvmgccdir Location of LLVM GCC front-end
1049 --with-bcrepos Location of Bytecode Repository
1050 --with-papi Location of PAPI
1052 Some influential environment variables:
1053 CXX C++ compiler command
1054 CXXFLAGS C++ compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
1059 CC C compiler command
1060 CFLAGS C compiler flags
1062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1069 Report bugs to <llvmbugs@cs.uiuc.edu>.
1073 if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1080 if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 ac_dir_suffix= ac_top_builddir=
1089 .) # No --srcdir option. We are building in place.
1091 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1105 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1106 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1107 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1108 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111 # Check for guested configure; otherwise get Cygnus style configure.
1112 if test -f $ac_srcdir/configure.gnu; then
1114 $SHELL $ac_srcdir/configure.gnu --help=recursive
1115 elif test -f $ac_srcdir/configure; then
1117 $SHELL $ac_srcdir/configure --help=recursive
1118 elif test -f $ac_srcdir/configure.ac ||
1119 test -f $ac_srcdir/configure.in; then
1121 $ac_configure --help
1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129 test -n "$ac_init_help" && exit 0
1130 if $ac_init_version; then
1132 [LLVM] configure [1.1]
1133 generated by GNU Autoconf 2.57
1135 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1136 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1147 It was created by [LLVM] $as_me [1.1], which was
1148 generated by GNU Autoconf 2.57. Invocation command line was
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_must_keep_next=false
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 -* ) ac_must_keep_next=true ;;
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1265 # The following way of writing the cache mishandles newlines in values,
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1288 for ac_var in $ac_subst_vars
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1295 if test -n "$ac_subst_files"; then
1302 for ac_var in $ac_subst_files
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1310 if test -s confdefs.h; then
1317 sed "/^$/d" confdefs.h | sort
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1324 rm -f core core.* *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 # Predefined preprocessor variables.
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1400 # Check that the precious variables saved in the cache have kept the same
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1424 echo "$as_me: former value: $ac_old_val" >&2;}
1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1426 echo "$as_me: current value: $ac_new_val" >&2;}
1427 ac_cache_corrupted=:
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443 if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485 for ac_dir in autoconf $srcdir/autoconf; do
1486 if test -f $ac_dir/install-sh; then
1488 ac_install_sh="$ac_aux_dir/install-sh -c"
1490 elif test -f $ac_dir/install.sh; then
1492 ac_install_sh="$ac_aux_dir/install.sh -c"
1494 elif test -f $ac_dir/shtool; then
1496 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 if test -z "$ac_aux_dir"; then
1501 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1502 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1503 { (exit 1); exit 1; }; }
1505 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1506 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1507 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510 if test ${srcdir} != "."
1512 if test -f ${srcdir}/include/Config/config.h
1514 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1515 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1516 { (exit 1); exit 1; }; }
1520 for i in `ls ${srcdir}/projects`
1522 if test ${i} != "CVS"
1524 if test -f ${srcdir}/projects/${i}/configure
1528 subdirs="$subdirs projects/${i}"
1534 ac_config_headers="$ac_config_headers include/Config/config.h"
1536 ac_config_commands="$ac_config_commands Makefile"
1539 ac_config_commands="$ac_config_commands Makefile.common"
1542 ac_config_commands="$ac_config_commands lib/Makefile"
1545 ac_config_commands="$ac_config_commands runtime/Makefile"
1548 ac_config_commands="$ac_config_commands test/Makefile"
1551 ac_config_commands="$ac_config_commands test/Makefile.tests"
1554 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1560 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1563 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1566 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1569 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1572 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1575 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1578 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1581 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1584 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1587 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1590 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1593 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1596 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1599 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1602 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1605 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1608 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1611 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1614 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1617 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1620 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1623 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1626 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1629 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1632 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1635 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1638 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1641 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1644 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1647 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1650 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1653 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1656 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1659 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1662 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1665 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1668 ac_config_commands="$ac_config_commands tools/Makefile"
1671 ac_config_commands="$ac_config_commands utils/Makefile"
1674 ac_config_commands="$ac_config_commands projects/Makefile"
1678 # Find a good install program. We prefer a C program (faster),
1679 # so one script is as good as another. But avoid the broken or
1680 # incompatible versions:
1681 # SysV /etc/install, /usr/sbin/install
1682 # SunOS /usr/etc/install
1683 # IRIX /sbin/install
1685 # AmigaOS /C/install, which installs bootblocks on floppy discs
1686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1689 # ./install, which can be erroneously created by make from ./install.sh.
1690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692 if test -z "$INSTALL"; then
1693 if test "${ac_cv_path_install+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 # Account for people who put trailing slashes in PATH elements.
1703 ./ | .// | /cC/* | \
1704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1707 # OSF1 and SCO ODT 3.0 have their own names for install.
1708 # Don't use installbsd from OSF since it installs stuff as root
1710 for ac_prog in ginstall scoinst install; do
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1713 if test $ac_prog = install &&
1714 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1715 # AIX install. It has an incompatible calling convention.
1717 elif test $ac_prog = install &&
1718 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1719 # program-specific install script used by HP pwplus--don't use.
1722 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1734 if test "${ac_cv_path_install+set}" = set; then
1735 INSTALL=$ac_cv_path_install
1737 # As a last resort, use the slow shell script. We don't cache a
1738 # path for INSTALL within a source directory, because that will
1739 # break other packages using the cache if that directory is
1740 # removed, or if the path is relative.
1741 INSTALL=$ac_install_sh
1744 echo "$as_me:$LINENO: result: $INSTALL" >&5
1745 echo "${ECHO_T}$INSTALL" >&6
1747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1748 # It thinks the first close brace ends the variable substitution.
1749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1756 # Make sure we can run config.sub.
1757 $ac_config_sub sun4 >/dev/null 2>&1 ||
1758 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1759 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1760 { (exit 1); exit 1; }; }
1762 echo "$as_me:$LINENO: checking build system type" >&5
1763 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1764 if test "${ac_cv_build+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 ac_cv_build_alias=$build_alias
1768 test -z "$ac_cv_build_alias" &&
1769 ac_cv_build_alias=`$ac_config_guess`
1770 test -z "$ac_cv_build_alias" &&
1771 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1772 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1773 { (exit 1); exit 1; }; }
1774 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1775 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1776 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1777 { (exit 1); exit 1; }; }
1780 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1781 echo "${ECHO_T}$ac_cv_build" >&6
1783 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1784 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1785 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1788 echo "$as_me:$LINENO: checking host system type" >&5
1789 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1790 if test "${ac_cv_host+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 ac_cv_host_alias=$host_alias
1794 test -z "$ac_cv_host_alias" &&
1795 ac_cv_host_alias=$ac_cv_build_alias
1796 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1797 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1798 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1799 { (exit 1); exit 1; }; }
1802 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1803 echo "${ECHO_T}$ac_cv_host" >&6
1805 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1806 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1807 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1810 echo "$as_me:$LINENO: checking target system type" >&5
1811 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1812 if test "${ac_cv_target+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 ac_cv_target_alias=$target_alias
1816 test "x$ac_cv_target_alias" = "x" &&
1817 ac_cv_target_alias=$ac_cv_host_alias
1818 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1819 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1820 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1821 { (exit 1); exit 1; }; }
1824 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1825 echo "${ECHO_T}$ac_cv_target" >&6
1826 target=$ac_cv_target
1827 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1828 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1829 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1832 # The aliases save the names the user supplied, while $host etc.
1833 # will get canonicalized.
1834 test -n "$target_alias" &&
1835 test "$program_prefix$program_suffix$program_transform_name" = \
1837 program_prefix=${target_alias}-
1843 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1845 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1853 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1855 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1871 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1880 sparc*-*) ARCH=Sparc
1883 powerpc*-*) ARCH=PowerPC
1892 ac_cpp='$CXXCPP $CPPFLAGS'
1893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1896 if test -n "$ac_tool_prefix"; then
1897 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_CXX+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 if test -n "$CXX"; then
1907 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 test -z "$as_dir" && as_dir=.
1914 for ac_exec_ext in '' $ac_executable_extensions; do
1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 if test -n "$CXX"; then
1927 echo "$as_me:$LINENO: result: $CXX" >&5
1928 echo "${ECHO_T}$CXX" >&6
1930 echo "$as_me:$LINENO: result: no" >&5
1931 echo "${ECHO_T}no" >&6
1934 test -n "$CXX" && break
1937 if test -z "$CXX"; then
1939 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1941 # Extract the first word of "$ac_prog", so it can be a program name with args.
1942 set dummy $ac_prog; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 if test -n "$ac_ct_CXX"; then
1949 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958 ac_cv_prog_ac_ct_CXX="$ac_prog"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1968 if test -n "$ac_ct_CXX"; then
1969 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1970 echo "${ECHO_T}$ac_ct_CXX" >&6
1972 echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1976 test -n "$ac_ct_CXX" && break
1978 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1984 # Provide some information about the compiler.
1985 echo "$as_me:$LINENO:" \
1986 "checking for C++ compiler version" >&5
1987 ac_compiler=`set X $ac_compile; echo $2`
1988 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1989 (eval $ac_compiler --version </dev/null >&5) 2>&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }
1993 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1994 (eval $ac_compiler -v </dev/null >&5) 2>&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }
1998 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1999 (eval $ac_compiler -V </dev/null >&5) 2>&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }
2004 cat >conftest.$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h. */
2020 ac_clean_files_save=$ac_clean_files
2021 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2022 # Try to create an executable without -o first, disregard a.out.
2023 # It will help us diagnose broken compilers, and finding out an intuition
2025 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2026 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2027 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2028 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2029 (eval $ac_link_default) 2>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 # Find the output, starting from the most likely. This scheme is
2034 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2037 # Be careful to initialize this variable, since it used to be cached.
2038 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2040 # b.out is created by i960 compilers.
2041 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2043 test -f "$ac_file" || continue
2045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2048 # This is the source file.
2051 # We found the default executable, but exeext='' is most
2055 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2056 # FIXME: I believe we export ac_cv_exeext for Libtool,
2057 # but it would be cool to find out if it's true. Does anybody
2058 # maintain Libtool? --akim.
2066 echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2069 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: C++ compiler cannot create executables
2072 See \`config.log' for more details." >&2;}
2073 { (exit 77); exit 77; }; }
2076 ac_exeext=$ac_cv_exeext
2077 echo "$as_me:$LINENO: result: $ac_file" >&5
2078 echo "${ECHO_T}$ac_file" >&6
2080 # Check the compiler produces executables we can run. If not, either
2081 # the compiler is broken, or we cross compile.
2082 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2083 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2084 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2085 # If not cross compiling, check that we can run a simple program.
2086 if test "$cross_compiling" != yes; then
2087 if { ac_try='./$ac_file'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2095 if test "$cross_compiling" = maybe; then
2098 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2099 If you meant to cross compile, use \`--host'.
2100 See \`config.log' for more details." >&5
2101 echo "$as_me: error: cannot run C++ compiled programs.
2102 If you meant to cross compile, use \`--host'.
2103 See \`config.log' for more details." >&2;}
2104 { (exit 1); exit 1; }; }
2108 echo "$as_me:$LINENO: result: yes" >&5
2109 echo "${ECHO_T}yes" >&6
2111 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2112 ac_clean_files=$ac_clean_files_save
2113 # Check the compiler produces executables we can run. If not, either
2114 # the compiler is broken, or we cross compile.
2115 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2116 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2117 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2118 echo "${ECHO_T}$cross_compiling" >&6
2120 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2121 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2123 (eval $ac_link) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2128 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2129 # work properly (i.e., refer to `conftest.exe'), while it won't with
2131 for ac_file in conftest.exe conftest conftest.*; do
2132 test -f "$ac_file" || continue
2134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }
2149 rm -f conftest$ac_cv_exeext
2150 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2151 echo "${ECHO_T}$ac_cv_exeext" >&6
2153 rm -f conftest.$ac_ext
2154 EXEEXT=$ac_cv_exeext
2156 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2157 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2158 if test "${ac_cv_objext+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 cat >conftest.$ac_ext <<_ACEOF
2162 #line $LINENO "configure"
2165 cat confdefs.h >>conftest.$ac_ext
2166 cat >>conftest.$ac_ext <<_ACEOF
2167 /* end confdefs.h. */
2177 rm -f conftest.o conftest.obj
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; then
2183 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2186 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2194 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2203 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2204 echo "${ECHO_T}$ac_cv_objext" >&6
2205 OBJEXT=$ac_cv_objext
2207 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2208 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2209 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 cat >conftest.$ac_ext <<_ACEOF
2213 #line $LINENO "configure"
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2231 rm -f conftest.$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233 (eval $ac_compile) 2>&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -s conftest.$ac_objext'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2245 echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2250 rm -f conftest.$ac_objext conftest.$ac_ext
2251 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2254 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2255 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2256 GXX=`test $ac_compiler_gnu = yes && echo yes`
2257 ac_test_CXXFLAGS=${CXXFLAGS+set}
2258 ac_save_CXXFLAGS=$CXXFLAGS
2260 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2261 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2262 if test "${ac_cv_prog_cxx_g+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 cat >conftest.$ac_ext <<_ACEOF
2266 #line $LINENO "configure"
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2293 ac_cv_prog_cxx_g=yes
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2300 rm -f conftest.$ac_objext conftest.$ac_ext
2302 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2303 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2304 if test "$ac_test_CXXFLAGS" = set; then
2305 CXXFLAGS=$ac_save_CXXFLAGS
2306 elif test $ac_cv_prog_cxx_g = yes; then
2307 if test "$GXX" = yes; then
2313 if test "$GXX" = yes; then
2319 for ac_declaration in \
2321 '#include <stdlib.h>' \
2322 'extern "C" void std::exit (int) throw (); using std::exit;' \
2323 'extern "C" void std::exit (int); using std::exit;' \
2324 'extern "C" void exit (int) throw ();' \
2325 'extern "C" void exit (int);' \
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line $LINENO "configure"
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -s conftest.$ac_objext'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2364 rm -f conftest.$ac_objext conftest.$ac_ext
2365 cat >conftest.$ac_ext <<_ACEOF
2366 #line $LINENO "configure"
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; }; then
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2399 rm -f conftest.$ac_objext conftest.$ac_ext
2402 if test -n "$ac_declaration"; then
2403 echo '#ifdef __cplusplus' >>confdefs.h
2404 echo $ac_declaration >>confdefs.h
2405 echo '#endif' >>confdefs.h
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2423 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2424 echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2426 if test "${ac_cv_prog_CC+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2439 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 if test -n "$CC"; then
2450 echo "$as_me:$LINENO: result: $CC" >&5
2451 echo "${ECHO_T}$CC" >&6
2453 echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2457 test -n "$CC" && break
2460 if test -z "$CC"; then
2464 # Extract the first word of "$ac_prog", so it can be a program name with args.
2465 set dummy $ac_prog; ac_word=$2
2466 echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$ac_ct_CC"; then
2472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481 ac_cv_prog_ac_ct_CC="$ac_prog"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493 echo "${ECHO_T}$ac_ct_CC" >&6
2495 echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6
2499 test -n "$ac_ct_CC" && break
2506 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: no acceptable C compiler found in \$PATH
2509 See \`config.log' for more details." >&2;}
2510 { (exit 1); exit 1; }; }
2512 # Provide some information about the compiler.
2513 echo "$as_me:$LINENO:" \
2514 "checking for C compiler version" >&5
2515 ac_compiler=`set X $ac_compile; echo $2`
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2517 (eval $ac_compiler --version </dev/null >&5) 2>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2522 (eval $ac_compiler -v </dev/null >&5) 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2527 (eval $ac_compiler -V </dev/null >&5) 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2532 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 cat >conftest.$ac_ext <<_ACEOF
2538 #line $LINENO "configure"
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2575 rm -f conftest.$ac_objext conftest.$ac_ext
2576 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2579 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2580 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2581 GCC=`test $ac_compiler_gnu = yes && echo yes`
2582 ac_test_CFLAGS=${CFLAGS+set}
2583 ac_save_CFLAGS=$CFLAGS
2585 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2586 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2587 if test "${ac_cv_prog_cc_g+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608 (eval $ac_compile) 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2625 rm -f conftest.$ac_objext conftest.$ac_ext
2627 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2628 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2629 if test "$ac_test_CFLAGS" = set; then
2630 CFLAGS=$ac_save_CFLAGS
2631 elif test $ac_cv_prog_cc_g = yes; then
2632 if test "$GCC" = yes; then
2638 if test "$GCC" = yes; then
2644 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2645 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2646 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 ac_cv_prog_cc_stdc=no
2651 cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2660 #include <sys/types.h>
2661 #include <sys/stat.h>
2662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2663 struct buf { int x; };
2664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2665 static char *e (p, i)
2671 static char *f (char * (*g) (char **, int), char **p, ...)
2676 s = g (p, va_arg (v,int));
2680 int test (int i, double x);
2681 struct s1 {int (*f) (int a);};
2682 struct s2 {int (*f) (double a);};
2683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2694 # Don't try gcc -ansi; that turns off useful extensions and
2695 # breaks some systems' header files.
2696 # AIX -qlanglvl=ansi
2697 # Ultrix and OSF/1 -std1
2698 # HP-UX 10.20 and later -Ae
2699 # HP-UX older versions -Aa -D_HPUX_SOURCE
2700 # SVR4 -Xc -D__EXTENSIONS__
2701 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706 (eval $ac_compile) 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2716 ac_cv_prog_cc_stdc=$ac_arg
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.$ac_objext
2725 rm -f conftest.$ac_ext conftest.$ac_objext
2730 case "x$ac_cv_prog_cc_stdc" in
2732 echo "$as_me:$LINENO: result: none needed" >&5
2733 echo "${ECHO_T}none needed" >&6 ;;
2735 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2736 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2737 CC="$CC $ac_cv_prog_cc_stdc" ;;
2740 # Some people use a C++ compiler to compile C. Since we use `exit',
2741 # in C++ we need to declare it. In case someone uses the same compiler
2742 # for both compiling C and C++ we need to have the C++ compiler decide
2743 # the declaration of exit, since it's the most demanding environment.
2744 cat >conftest.$ac_ext <<_ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 for ac_declaration in \
2763 '#include <stdlib.h>' \
2764 'extern "C" void std::exit (int) throw (); using std::exit;' \
2765 'extern "C" void std::exit (int); using std::exit;' \
2766 'extern "C" void exit (int) throw ();' \
2767 'extern "C" void exit (int);' \
2770 cat >conftest.$ac_ext <<_ACEOF
2771 #line $LINENO "configure"
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2806 rm -f conftest.$ac_objext conftest.$ac_ext
2807 cat >conftest.$ac_ext <<_ACEOF
2808 #line $LINENO "configure"
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2823 rm -f conftest.$ac_objext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -s conftest.$ac_objext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2841 rm -f conftest.$ac_objext conftest.$ac_ext
2844 if test -n "$ac_declaration"; then
2845 echo '#ifdef __cplusplus' >>confdefs.h
2846 echo $ac_declaration >>confdefs.h
2847 echo '#endif' >>confdefs.h
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2855 rm -f conftest.$ac_objext conftest.$ac_ext
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2868 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2869 # On Suns, sometimes $CPP names a directory.
2870 if test -n "$CPP" && test -d "$CPP"; then
2873 if test -z "$CPP"; then
2874 if test "${ac_cv_prog_CPP+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 # Double quotes because CPP needs to be expanded
2878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2881 for ac_c_preproc_warn_flag in '' yes
2883 # Use a header file that comes with gcc, so configuring glibc
2884 # with a fresh cross-compiler works.
2885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2886 # <limits.h> exists even on freestanding compilers.
2887 # On the NeXT, cc -E runs the code through the compiler's parser,
2888 # not just through cpp. "Syntax error" is here to catch this case.
2889 cat >conftest.$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2897 # include <limits.h>
2899 # include <assert.h>
2903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2906 grep -v '^ *+' conftest.er1 >conftest.err
2908 cat conftest.err >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } >/dev/null; then
2911 if test -s conftest.err; then
2912 ac_cpp_err=$ac_c_preproc_warn_flag
2919 if test -z "$ac_cpp_err"; then
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2925 # Broken: fails on valid input.
2928 rm -f conftest.err conftest.$ac_ext
2930 # OK, works on sane cases. Now check whether non-existent headers
2931 # can be detected and how.
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2939 #include <ac_nonexistent.h>
2941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2944 grep -v '^ *+' conftest.er1 >conftest.err
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } >/dev/null; then
2949 if test -s conftest.err; then
2950 ac_cpp_err=$ac_c_preproc_warn_flag
2957 if test -z "$ac_cpp_err"; then
2958 # Broken: success on invalid input.
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 # Passes both tests.
2968 rm -f conftest.err conftest.$ac_ext
2971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2972 rm -f conftest.err conftest.$ac_ext
2973 if $ac_preproc_ok; then
2985 echo "$as_me:$LINENO: result: $CPP" >&5
2986 echo "${ECHO_T}$CPP" >&6
2988 for ac_c_preproc_warn_flag in '' yes
2990 # Use a header file that comes with gcc, so configuring glibc
2991 # with a fresh cross-compiler works.
2992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993 # <limits.h> exists even on freestanding compilers.
2994 # On the NeXT, cc -E runs the code through the compiler's parser,
2995 # not just through cpp. "Syntax error" is here to catch this case.
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3004 # include <limits.h>
3006 # include <assert.h>
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013 grep -v '^ *+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev/null; then
3018 if test -s conftest.err; then
3019 ac_cpp_err=$ac_c_preproc_warn_flag
3026 if test -z "$ac_cpp_err"; then
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3032 # Broken: fails on valid input.
3035 rm -f conftest.err conftest.$ac_ext
3037 # OK, works on sane cases. Now check whether non-existent headers
3038 # can be detected and how.
3039 cat >conftest.$ac_ext <<_ACEOF
3040 #line $LINENO "configure"
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046 #include <ac_nonexistent.h>
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev/null; then
3056 if test -s conftest.err; then
3057 ac_cpp_err=$ac_c_preproc_warn_flag
3064 if test -z "$ac_cpp_err"; then
3065 # Broken: success on invalid input.
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 # Passes both tests.
3075 rm -f conftest.err conftest.$ac_ext
3078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079 rm -f conftest.err conftest.$ac_ext
3080 if $ac_preproc_ok; then
3083 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3086 See \`config.log' for more details." >&2;}
3087 { (exit 1); exit 1; }; }
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 if test "$GCC" != "yes"
3099 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3100 echo "$as_me: error: gcc required but not found" >&2;}
3101 { (exit 1); exit 1; }; }
3103 if test "$GXX" != "yes"
3105 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3106 echo "$as_me: error: g++ required but not found" >&2;}
3107 { (exit 1); exit 1; }; }
3110 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3111 if test "$gccmajor" -lt "3"
3113 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3114 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3115 { (exit 1); exit 1; }; }
3118 echo "$as_me:$LINENO: checking for GNU make" >&5
3119 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3120 if test "${_cv_gnu_make_command+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 _cv_gnu_make_command='' ;
3124 for a in "$MAKE" make gmake gnumake ; do
3125 if test -z "$a" ; then continue ; fi ;
3126 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3127 _cv_gnu_make_command=$a ;
3133 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3134 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3135 if test "x$_cv_gnu_make_command" != "x" ; then
3139 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3140 echo "${ECHO_T}\"Not found\"" >&6;
3144 if test -z "$_cv_gnu_make_command"
3146 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3147 echo "$as_me: error: GNU Make required but not found" >&2;}
3148 { (exit 1); exit 1; }; }
3152 echo "$as_me:$LINENO: checking " >&5
3153 echo $ECHO_N "checking ... $ECHO_C" >&6
3154 if test "${ac_cv_has_flex+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 for ac_prog in flex lex
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_LEX+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 if test -n "$LEX"; then
3167 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_LEX="$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 if test -n "$LEX"; then
3187 echo "$as_me:$LINENO: result: $LEX" >&5
3188 echo "${ECHO_T}$LEX" >&6
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3194 test -n "$LEX" && break
3196 test -n "$LEX" || LEX=":"
3198 if test -z "$LEXLIB"
3200 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3201 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3202 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 ac_check_lib_save_LIBS=$LIBS
3207 cat >conftest.$ac_ext <<_ACEOF
3208 #line $LINENO "configure"
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3215 /* Override any gcc2 internal prototype to avoid an error. */
3219 /* We use char because int might match the return type of a gcc2
3220 builtin and then its argument prototype would still apply. */
3230 rm -f conftest.$ac_objext conftest$ac_exeext
3231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3232 (eval $ac_link) 2>&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -s conftest$ac_exeext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_lib_fl_yywrap=yes
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 ac_cv_lib_fl_yywrap=no
3249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3250 LIBS=$ac_check_lib_save_LIBS
3252 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3253 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3254 if test $ac_cv_lib_fl_yywrap = yes; then
3257 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3258 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3259 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 ac_check_lib_save_LIBS=$LIBS
3264 cat >conftest.$ac_ext <<_ACEOF
3265 #line $LINENO "configure"
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3272 /* Override any gcc2 internal prototype to avoid an error. */
3276 /* We use char because int might match the return type of a gcc2
3277 builtin and then its argument prototype would still apply. */
3287 rm -f conftest.$ac_objext conftest$ac_exeext
3288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3289 (eval $ac_link) 2>&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } &&
3293 { ac_try='test -s conftest$ac_exeext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_cv_lib_l_yywrap=yes
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 ac_cv_lib_l_yywrap=no
3306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3307 LIBS=$ac_check_lib_save_LIBS
3309 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3310 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3311 if test $ac_cv_lib_l_yywrap = yes; then
3319 if test "x$LEX" != "x:"; then
3320 echo "$as_me:$LINENO: checking lex output file root" >&5
3321 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3322 if test "${ac_cv_prog_lex_root+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 # The minimal lex program is just a single line: %%. But some broken lexes
3326 # (Solaris, I think it was) want two %% lines, so accommodate them.
3327 cat >conftest.l <<_ACEOF
3331 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3332 (eval $LEX conftest.l) 2>&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }
3336 if test -f lex.yy.c; then
3337 ac_cv_prog_lex_root=lex.yy
3338 elif test -f lexyy.c; then
3339 ac_cv_prog_lex_root=lexyy
3341 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3342 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3343 { (exit 1); exit 1; }; }
3346 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3347 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3349 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3351 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3352 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3353 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 # POSIX says lex can declare yytext either as a pointer or an array; the
3357 # default is implementation-dependent. Figure out which it is, since
3358 # not all implementations provide the %pointer and %array declarations.
3359 ac_cv_prog_lex_yytext_pointer=no
3360 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3362 LIBS="$LIBS $LEXLIB"
3363 cat >conftest.$ac_ext <<_ACEOF
3364 `cat $LEX_OUTPUT_ROOT.c`
3366 rm -f conftest.$ac_objext conftest$ac_exeext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368 (eval $ac_link) 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -s conftest$ac_exeext'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 ac_cv_prog_lex_yytext_pointer=yes
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3386 rm -f "${LEX_OUTPUT_ROOT}.c"
3389 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3390 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3391 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3393 cat >>confdefs.h <<\_ACEOF
3394 #define YYTEXT_POINTER 1
3402 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3403 echo "${ECHO_T}$ac_cv_has_flex" >&6
3404 if test "$LEX" != "flex"; then
3405 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3406 echo "$as_me: error: flex not found but required" >&2;}
3407 { (exit 1); exit 1; }; }
3410 echo "$as_me:$LINENO: checking " >&5
3411 echo $ECHO_N "checking ... $ECHO_C" >&6
3412 if test "${ac_cv_has_bison+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 for ac_prog in 'bison -y' byacc
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421 if test "${ac_cv_prog_YACC+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 if test -n "$YACC"; then
3425 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_YACC="$ac_prog"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 YACC=$ac_cv_prog_YACC
3444 if test -n "$YACC"; then
3445 echo "$as_me:$LINENO: result: $YACC" >&5
3446 echo "${ECHO_T}$YACC" >&6
3448 echo "$as_me:$LINENO: result: no" >&5
3449 echo "${ECHO_T}no" >&6
3452 test -n "$YACC" && break
3454 test -n "$YACC" || YACC="yacc"
3458 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3459 echo "${ECHO_T}$ac_cv_has_bison" >&6
3460 if test "$YACC" != "bison -y"; then
3461 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3462 echo "$as_me: error: bison not found but required" >&2;}
3463 { (exit 1); exit 1; }; }
3469 # Check whether --enable-shared or --disable-shared was given.
3470 if test "${enable_shared+set}" = set; then
3471 enableval="$enable_shared"
3472 p=${PACKAGE-default}
3474 yes) enable_shared=yes ;;
3475 no) enable_shared=no ;;
3478 # Look at the argument we got. We use all the common list separators.
3479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3480 for pkg in $enableval; do
3482 if test "X$pkg" = "X$p"; then
3493 # Check whether --enable-static or --disable-static was given.
3494 if test "${enable_static+set}" = set; then
3495 enableval="$enable_static"
3496 p=${PACKAGE-default}
3498 yes) enable_static=yes ;;
3499 no) enable_static=no ;;
3502 # Look at the argument we got. We use all the common list separators.
3503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3504 for pkg in $enableval; do
3506 if test "X$pkg" = "X$p"; then
3517 # Check whether --enable-fast-install or --disable-fast-install was given.
3518 if test "${enable_fast_install+set}" = set; then
3519 enableval="$enable_fast_install"
3520 p=${PACKAGE-default}
3522 yes) enable_fast_install=yes ;;
3523 no) enable_fast_install=no ;;
3525 enable_fast_install=no
3526 # Look at the argument we got. We use all the common list separators.
3527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3528 for pkg in $enableval; do
3530 if test "X$pkg" = "X$p"; then
3531 enable_fast_install=yes
3538 enable_fast_install=yes
3541 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3542 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3543 if test "${lt_cv_path_SED+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 # Loop through the user's path and test for sed and gsed.
3547 # Then use that list of sed's as ones to test for truncation.
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir=.
3553 for lt_ac_prog in sed gsed; do
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3556 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3563 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3564 # along with /bin/sed that truncates output.
3565 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3566 test ! -f $lt_ac_sed && break
3567 cat /dev/null > conftest.in
3569 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3570 # Check for GNU sed and select it if it is found.
3571 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3572 lt_cv_path_SED=$lt_ac_sed
3576 cat conftest.in conftest.in >conftest.tmp
3577 mv conftest.tmp conftest.in
3578 cp conftest.in conftest.nl
3580 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3581 cmp -s conftest.out conftest.nl || break
3582 # 10000 chars as input seems more than enough
3583 test $lt_ac_count -gt 10 && break
3584 lt_ac_count=`expr $lt_ac_count + 1`
3585 if test $lt_ac_count -gt $lt_ac_max; then
3586 lt_ac_max=$lt_ac_count
3587 lt_cv_path_SED=$lt_ac_sed
3595 echo "$as_me:$LINENO: result: $SED" >&5
3596 echo "${ECHO_T}$SED" >&6
3598 echo "$as_me:$LINENO: checking for egrep" >&5
3599 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3600 if test "${ac_cv_prog_egrep+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3604 then ac_cv_prog_egrep='grep -E'
3605 else ac_cv_prog_egrep='egrep'
3608 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3609 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3610 EGREP=$ac_cv_prog_egrep
3614 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3615 if test "${with_gnu_ld+set}" = set; then
3616 withval="$with_gnu_ld"
3617 test "$withval" = no || with_gnu_ld=yes
3622 if test "$GCC" = yes; then
3623 # Check if gcc -print-prog-name=ld gives a path.
3624 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3625 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3628 # gcc leaves a trailing carriage return which upsets mingw
3629 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3631 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3634 # Accept absolute paths.
3636 re_direlt='/[^/][^/]*/\.\./'
3637 # Canonicalize the path of ld
3638 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3639 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3640 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3642 test -z "$LD" && LD="$ac_prog"
3645 # If it fails, then pretend we aren't using GCC.
3649 # If it is relative, then search for the first ld in PATH.
3653 elif test "$with_gnu_ld" = yes; then
3654 echo "$as_me:$LINENO: checking for GNU ld" >&5
3655 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3657 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3658 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3660 if test "${lt_cv_path_LD+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 if test -z "$LD"; then
3664 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3665 for ac_dir in $PATH; do
3667 test -z "$ac_dir" && ac_dir=.
3668 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3669 lt_cv_path_LD="$ac_dir/$ac_prog"
3670 # Check to see if the program is GNU ld. I'd rather use --version,
3671 # but apparently some GNU ld's only accept -v.
3672 # Break only if it was the GNU/non-GNU ld that we prefer.
3673 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3674 *GNU* | *'with BFD'*)
3675 test "$with_gnu_ld" != no && break
3678 test "$with_gnu_ld" != yes && break
3685 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3690 if test -n "$LD"; then
3691 echo "$as_me:$LINENO: result: $LD" >&5
3692 echo "${ECHO_T}$LD" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3697 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3698 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3699 { (exit 1); exit 1; }; }
3700 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3701 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3702 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3706 case `"$LD" -v 2>&1 </dev/null` in
3707 *GNU* | *'with BFD'*)
3708 lt_cv_prog_gnu_ld=yes
3711 lt_cv_prog_gnu_ld=no
3715 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3716 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3717 with_gnu_ld=$lt_cv_prog_gnu_ld
3720 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3721 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3722 if test "${lt_cv_ld_reload_flag+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 lt_cv_ld_reload_flag='-r'
3727 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3728 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3729 reload_flag=$lt_cv_ld_reload_flag
3730 case $reload_flag in
3732 *) reload_flag=" $reload_flag" ;;
3734 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3736 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3737 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3738 if test "${lt_cv_path_NM+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 if test -n "$NM"; then
3742 # Let the user override the test.
3745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3746 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3748 test -z "$ac_dir" && ac_dir=.
3749 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3750 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3751 # Check to see if the nm accepts a BSD-compat flag.
3752 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3753 # nm: unknown option "B" ignored
3754 # Tru64's nm complains that /dev/null is an invalid object file
3755 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3756 */dev/null* | *'Invalid file or object type'*)
3757 lt_cv_path_NM="$tmp_nm -B"
3761 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3763 lt_cv_path_NM="$tmp_nm -p"
3767 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3768 continue # so that we can try to find one that supports BSD flags
3775 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3778 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3779 echo "${ECHO_T}$lt_cv_path_NM" >&6
3782 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3783 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3785 if test "$LN_S" = "ln -s"; then
3786 echo "$as_me:$LINENO: result: yes" >&5
3787 echo "${ECHO_T}yes" >&6
3789 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3790 echo "${ECHO_T}no, using $LN_S" >&6
3793 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3794 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3795 if test "${lt_cv_deplibs_check_method+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 lt_cv_file_magic_cmd='$MAGIC_CMD'
3799 lt_cv_file_magic_test_file=
3800 lt_cv_deplibs_check_method='unknown'
3801 # Need to set the preceding variable on all platforms that support
3802 # interlibrary dependencies.
3803 # 'none' -- dependencies not supported.
3804 # `unknown' -- same as none, but documents that we really don't know.
3805 # 'pass_all' -- all dependencies passed with no checks.
3806 # 'test_compile' -- check by making test program.
3807 # 'file_magic [[regex]]' -- check by looking for files in library path
3808 # which responds to the $file_magic_cmd with a given extended regex.
3809 # If you have `file' or equivalent on your system and you're not sure
3810 # whether `pass_all' will *always* work, you probably want this one.
3814 lt_cv_deplibs_check_method=pass_all
3818 lt_cv_deplibs_check_method=pass_all
3822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3823 lt_cv_file_magic_cmd='/usr/bin/file -L'
3824 lt_cv_file_magic_test_file=/shlib/libc.so
3827 cygwin* | mingw* | pw32*)
3828 # win32_libid is a shell function defined in ltmain.sh
3829 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3830 lt_cv_file_magic_cmd='win32_libid'
3833 darwin* | rhapsody*)
3834 # this will be overwritten by pass_all, but leave it in just in case
3835 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3836 lt_cv_file_magic_cmd='/usr/bin/file -L'
3838 rhapsody* | darwin1.[012])
3839 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3842 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3845 lt_cv_deplibs_check_method=pass_all
3849 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3852 # Not sure whether the presence of OpenBSD here was a mistake.
3853 # Let's accept both of them until this is cleared up.
3854 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3855 lt_cv_file_magic_cmd=/usr/bin/file
3856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3860 lt_cv_deplibs_check_method=pass_all
3865 lt_cv_deplibs_check_method=pass_all
3868 hpux10.20* | hpux11*)
3869 lt_cv_file_magic_cmd=/usr/bin/file
3872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3876 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]'
3877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3886 irix5* | irix6* | nonstopux*)
3888 irix5* | nonstopux*)
3889 # this will be overridden with pass_all, but let us keep it just in case
3890 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3894 *-32|*"-32 ") libmagic=32-bit;;
3895 *-n32|*"-n32 ") libmagic=N32;;
3896 *-64|*"-64 ") libmagic=64-bit;;
3897 *) libmagic=never-match;;
3899 # this will be overridden with pass_all, but let us keep it just in case
3900 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3903 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3904 lt_cv_deplibs_check_method=pass_all
3907 # This must be Linux ELF.
3910 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3911 lt_cv_deplibs_check_method=pass_all ;;
3913 # glibc up to 2.1.1 does not perform some relocations on ARM
3914 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3916 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3920 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3923 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3929 lt_cv_file_magic_cmd=/usr/bin/file
3930 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3934 lt_cv_deplibs_check_method=unknown
3938 lt_cv_file_magic_cmd=/usr/bin/file
3939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3943 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3947 osf3* | osf4* | osf5*)
3948 # this will be overridden with pass_all, but let us keep it just in case
3949 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3950 lt_cv_file_magic_test_file=/shlib/libc.so
3951 lt_cv_deplibs_check_method=pass_all
3955 lt_cv_deplibs_check_method=pass_all
3959 lt_cv_deplibs_check_method=pass_all
3960 lt_cv_file_magic_test_file=/lib/libc.so
3963 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3964 case $host_vendor in
3966 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]'
3967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3970 lt_cv_deplibs_check_method=pass_all
3973 lt_cv_file_magic_cmd='/bin/file'
3974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3977 lt_cv_file_magic_cmd='/bin/file'
3978 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3979 lt_cv_file_magic_test_file=/lib/libc.so
3982 lt_cv_deplibs_check_method=pass_all
3987 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3988 lt_cv_deplibs_check_method=pass_all
3993 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3994 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3995 file_magic_cmd=$lt_cv_file_magic_cmd
3996 deplibs_check_method=$lt_cv_deplibs_check_method
3997 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4002 # If no C compiler was specified, use CC.
4005 # Allow CC to be a program name with arguments.
4008 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4009 if test "${enable_libtool_lock+set}" = set; then
4010 enableval="$enable_libtool_lock"
4013 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4015 # Some flags need to be propagated to the compiler or linker for good
4019 # Find out which ABI we are using.
4020 echo 'int i;' > conftest.$ac_ext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; then
4026 case `/usr/bin/file conftest.$ac_objext` in
4038 # Find out which ABI we are using.
4039 echo '#line 4039 "configure"' > conftest.$ac_ext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; then
4045 if test "$lt_cv_prog_gnu_ld" = yes; then
4046 case `/usr/bin/file conftest.$ac_objext` in
4048 LD="${LD-ld} -melf32bsmip"
4051 LD="${LD-ld} -melf32bmipn32"
4054 LD="${LD-ld} -melf64bmip"
4058 case `/usr/bin/file conftest.$ac_objext` in
4074 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4075 # Find out which ABI we are using.
4076 echo 'int i;' > conftest.$ac_ext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; then
4082 case "`/usr/bin/file conftest.o`" in
4086 LD="${LD-ld} -m elf_i386"
4089 LD="${LD-ld} -m elf32ppclinux"
4092 LD="${LD-ld} -m elf_s390"
4095 LD="${LD-ld} -m elf32_sparc"
4102 LD="${LD-ld} -m elf_x86_64"
4104 ppc*-*linux*|powerpc*-*linux*)
4105 LD="${LD-ld} -m elf64ppc"
4108 LD="${LD-ld} -m elf64_s390"
4111 LD="${LD-ld} -m elf64_sparc"
4121 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4122 SAVE_CFLAGS="$CFLAGS"
4123 CFLAGS="$CFLAGS -belf"
4124 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4125 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4126 if test "${lt_cv_cc_needs_belf+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 cat >conftest.$ac_ext <<_ACEOF
4136 #line $LINENO "configure"
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4151 rm -f conftest.$ac_objext conftest$ac_exeext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153 (eval $ac_link) 2>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -s conftest$ac_exeext'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 lt_cv_cc_needs_belf=yes
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4168 lt_cv_cc_needs_belf=no
4170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4179 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4180 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4181 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4182 CFLAGS="$SAVE_CFLAGS"
4188 need_locks="$enable_libtool_lock"
4192 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4194 if test "${ac_cv_header_stdc+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 cat >conftest.$ac_ext <<_ACEOF
4198 #line $LINENO "configure"
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4217 rm -f conftest.$ac_objext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4219 (eval $ac_compile) 2>&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try='test -s conftest.$ac_objext'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
4229 ac_cv_header_stdc=yes
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 ac_cv_header_stdc=no
4236 rm -f conftest.$ac_objext conftest.$ac_ext
4238 if test $ac_cv_header_stdc = yes; then
4239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4240 cat >conftest.$ac_ext <<_ACEOF
4241 #line $LINENO "configure"
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4251 $EGREP "memchr" >/dev/null 2>&1; then
4254 ac_cv_header_stdc=no
4260 if test $ac_cv_header_stdc = yes; then
4261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4262 cat >conftest.$ac_ext <<_ACEOF
4263 #line $LINENO "configure"
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4273 $EGREP "free" >/dev/null 2>&1; then
4276 ac_cv_header_stdc=no
4282 if test $ac_cv_header_stdc = yes; then
4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4284 if test "$cross_compiling" = yes; then
4287 cat >conftest.$ac_ext <<_ACEOF
4288 #line $LINENO "configure"
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4295 #if ((' ' & 0x0FF) == 0x020)
4296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4299 # define ISLOWER(c) \
4300 (('a' <= (c) && (c) <= 'i') \
4301 || ('j' <= (c) && (c) <= 'r') \
4302 || ('s' <= (c) && (c) <= 'z'))
4303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4311 for (i = 0; i < 256; i++)
4312 if (XOR (islower (i), ISLOWER (i))
4313 || toupper (i) != TOUPPER (i))
4318 rm -f conftest$ac_exeext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320 (eval $ac_link) 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4331 echo "$as_me: program exited with status $ac_status" >&5
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4336 ac_cv_header_stdc=no
4338 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4342 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4343 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4344 if test $ac_cv_header_stdc = yes; then
4346 cat >>confdefs.h <<\_ACEOF
4347 #define STDC_HEADERS 1
4352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4362 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4363 inttypes.h stdint.h unistd.h
4365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4366 echo "$as_me:$LINENO: checking for $ac_header" >&5
4367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4372 #line $LINENO "configure"
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4380 #include <$ac_header>
4382 rm -f conftest.$ac_objext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384 (eval $ac_compile) 2>&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 eval "$as_ac_Header=yes"
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4399 eval "$as_ac_Header=no"
4401 rm -f conftest.$ac_objext conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4406 cat >>confdefs.h <<_ACEOF
4407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4416 for ac_header in dlfcn.h
4418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4420 echo "$as_me:$LINENO: checking for $ac_header" >&5
4421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4428 # Is the header compilable?
4429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4431 cat >conftest.$ac_ext <<_ACEOF
4432 #line $LINENO "configure"
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4439 #include <$ac_header>
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_header_compiler=yes
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4458 ac_header_compiler=no
4460 rm -f conftest.$ac_objext conftest.$ac_ext
4461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4462 echo "${ECHO_T}$ac_header_compiler" >&6
4464 # Is the header present?
4465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4467 cat >conftest.$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <$ac_header>
4476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } >/dev/null; then
4484 if test -s conftest.err; then
4485 ac_cpp_err=$ac_c_preproc_warn_flag
4492 if test -z "$ac_cpp_err"; then
4493 ac_header_preproc=yes
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 ac_header_preproc=no
4500 rm -f conftest.err conftest.$ac_ext
4501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4502 echo "${ECHO_T}$ac_header_preproc" >&6
4504 # So? What about this header?
4505 case $ac_header_compiler:$ac_header_preproc in
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4513 ## ------------------------------------ ##
4514 ## Report this to bug-autoconf@gnu.org. ##
4515 ## ------------------------------------ ##
4518 sed "s/^/$as_me: WARNING: /" >&2
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4529 ## ------------------------------------ ##
4530 ## Report this to bug-autoconf@gnu.org. ##
4531 ## ------------------------------------ ##
4534 sed "s/^/$as_me: WARNING: /" >&2
4537 echo "$as_me:$LINENO: checking for $ac_header" >&5
4538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 eval "$as_ac_Header=$ac_header_preproc"
4544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4549 cat >>confdefs.h <<_ACEOF
4550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4558 ac_cpp='$CXXCPP $CPPFLAGS'
4559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4562 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4563 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4564 if test -z "$CXXCPP"; then
4565 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 # Double quotes because CXXCPP needs to be expanded
4569 for CXXCPP in "$CXX -E" "/lib/cpp"
4572 for ac_cxx_preproc_warn_flag in '' yes
4574 # Use a header file that comes with gcc, so configuring glibc
4575 # with a fresh cross-compiler works.
4576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4577 # <limits.h> exists even on freestanding compilers.
4578 # On the NeXT, cc -E runs the code through the compiler's parser,
4579 # not just through cpp. "Syntax error" is here to catch this case.
4580 cat >conftest.$ac_ext <<_ACEOF
4581 #line $LINENO "configure"
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4588 # include <limits.h>
4590 # include <assert.h>
4594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4597 grep -v '^ *+' conftest.er1 >conftest.err
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } >/dev/null; then
4602 if test -s conftest.err; then
4603 ac_cpp_err=$ac_cxx_preproc_warn_flag
4610 if test -z "$ac_cpp_err"; then
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 # Broken: fails on valid input.
4619 rm -f conftest.err conftest.$ac_ext
4621 # OK, works on sane cases. Now check whether non-existent headers
4622 # can be detected and how.
4623 cat >conftest.$ac_ext <<_ACEOF
4624 #line $LINENO "configure"
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 #include <ac_nonexistent.h>
4632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4635 grep -v '^ *+' conftest.er1 >conftest.err
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } >/dev/null; then
4640 if test -s conftest.err; then
4641 ac_cpp_err=$ac_cxx_preproc_warn_flag
4648 if test -z "$ac_cpp_err"; then
4649 # Broken: success on invalid input.
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 # Passes both tests.
4659 rm -f conftest.err conftest.$ac_ext
4662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4663 rm -f conftest.err conftest.$ac_ext
4664 if $ac_preproc_ok; then
4669 ac_cv_prog_CXXCPP=$CXXCPP
4672 CXXCPP=$ac_cv_prog_CXXCPP
4674 ac_cv_prog_CXXCPP=$CXXCPP
4676 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4677 echo "${ECHO_T}$CXXCPP" >&6
4679 for ac_cxx_preproc_warn_flag in '' yes
4681 # Use a header file that comes with gcc, so configuring glibc
4682 # with a fresh cross-compiler works.
4683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4684 # <limits.h> exists even on freestanding compilers.
4685 # On the NeXT, cc -E runs the code through the compiler's parser,
4686 # not just through cpp. "Syntax error" is here to catch this case.
4687 cat >conftest.$ac_ext <<_ACEOF
4688 #line $LINENO "configure"
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4695 # include <limits.h>
4697 # include <assert.h>
4701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4704 grep -v '^ *+' conftest.er1 >conftest.err
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } >/dev/null; then
4709 if test -s conftest.err; then
4710 ac_cpp_err=$ac_cxx_preproc_warn_flag
4717 if test -z "$ac_cpp_err"; then
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723 # Broken: fails on valid input.
4726 rm -f conftest.err conftest.$ac_ext
4728 # OK, works on sane cases. Now check whether non-existent headers
4729 # can be detected and how.
4730 cat >conftest.$ac_ext <<_ACEOF
4731 #line $LINENO "configure"
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 #include <ac_nonexistent.h>
4739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4742 grep -v '^ *+' conftest.er1 >conftest.err
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev/null; then
4747 if test -s conftest.err; then
4748 ac_cpp_err=$ac_cxx_preproc_warn_flag
4755 if test -z "$ac_cpp_err"; then
4756 # Broken: success on invalid input.
4759 echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 # Passes both tests.
4766 rm -f conftest.err conftest.$ac_ext
4769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4770 rm -f conftest.err conftest.$ac_ext
4771 if $ac_preproc_ok; then
4774 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4775 See \`config.log' for more details." >&5
4776 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4777 See \`config.log' for more details." >&2;}
4778 { (exit 1); exit 1; }; }
4782 ac_cpp='$CXXCPP $CPPFLAGS'
4783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4789 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4790 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4792 if test -n "$ac_tool_prefix"; then
4793 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4797 echo "$as_me:$LINENO: checking for $ac_word" >&5
4798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4799 if test "${ac_cv_prog_F77+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 if test -n "$F77"; then
4803 ac_cv_prog_F77="$F77" # Let the user override the test.
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 if test -n "$F77"; then
4823 echo "$as_me:$LINENO: result: $F77" >&5
4824 echo "${ECHO_T}$F77" >&6
4826 echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4830 test -n "$F77" && break
4833 if test -z "$F77"; then
4835 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4837 # Extract the first word of "$ac_prog", so it can be a program name with args.
4838 set dummy $ac_prog; ac_word=$2
4839 echo "$as_me:$LINENO: checking for $ac_word" >&5
4840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4841 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 if test -n "$ac_ct_F77"; then
4845 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854 ac_cv_prog_ac_ct_F77="$ac_prog"
4855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4864 if test -n "$ac_ct_F77"; then
4865 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4866 echo "${ECHO_T}$ac_ct_F77" >&6
4868 echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4872 test -n "$ac_ct_F77" && break
4879 # Provide some information about the compiler.
4880 echo "$as_me:4880:" \
4881 "checking for Fortran 77 compiler version" >&5
4882 ac_compiler=`set X $ac_compile; echo $2`
4883 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4884 (eval $ac_compiler --version </dev/null >&5) 2>&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }
4888 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4889 (eval $ac_compiler -v </dev/null >&5) 2>&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4894 (eval $ac_compiler -V </dev/null >&5) 2>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }
4899 # If we don't use `.F' as extension, the preprocessor is not run on the
4903 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4904 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4905 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 cat >conftest.$ac_ext <<_ACEOF
4916 rm -f conftest.$ac_objext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918 (eval $ac_compile) 2>&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4935 rm -f conftest.$ac_objext conftest.$ac_ext
4936 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4939 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4940 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4942 G77=`test $ac_compiler_gnu = yes && echo yes`
4943 ac_test_FFLAGS=${FFLAGS+set}
4944 ac_save_FFLAGS=$FFLAGS
4946 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4947 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4948 if test "${ac_cv_prog_f77_g+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 cat >conftest.$ac_ext <<_ACEOF
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -s conftest.$ac_objext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 ac_cv_prog_f77_g=yes
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4976 rm -f conftest.$ac_objext conftest.$ac_ext
4979 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4980 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4981 if test "$ac_test_FFLAGS" = set; then
4982 FFLAGS=$ac_save_FFLAGS
4983 elif test $ac_cv_prog_f77_g = yes; then
4984 if test "$G77" = yes; then
4990 if test "$G77" = yes; then
4997 ac_cpp='$CPP $CPPFLAGS'
4998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5006 # find the maximum length of command line arguments
5007 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5008 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5009 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 # On DJGPP, this test can blow up pretty badly due to problems in libc
5018 # (any single argument exceeding 2000 bytes causes a buffer overrun
5019 # during glob expansion). Even if it were fixed, the result of this
5020 # check would be larger than it should be.
5021 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5025 # Under GNU Hurd, this test is not required because there is
5026 # no limit to the length of command line arguments.
5027 # Libtool will interpret -1 as no limit whatsoever
5028 lt_cv_sys_max_cmd_len=-1;
5032 # On Win9x/ME, this test blows up -- it succeeds, but takes
5033 # about 5 minutes as the teststring grows exponentially.
5034 # Worse, since 9x/ME are not pre-emptively multitasking,
5035 # you end up with a "frozen" computer, even though with patience
5036 # the test eventually succeeds (with a max line length of 256k).
5037 # Instead, let's just punt: use the minimum linelength reported by
5038 # all of the supported platforms: 8192 (on NT/2K/XP).
5039 lt_cv_sys_max_cmd_len=8192;
5043 # If test is not a shell built-in, we'll probably end up computing a
5044 # maximum length that is only half of the actual maximum length, but
5046 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5047 = "XX$testring") >/dev/null 2>&1 &&
5048 new_result=`expr "X$testring" : ".*" 2>&1` &&
5049 lt_cv_sys_max_cmd_len=$new_result &&
5050 test $i != 17 # 1/2 MB should be enough
5053 testring=$testring$testring
5056 # Add a significant safety factor because C++ compilers can tack on massive
5057 # amounts of additional arguments before passing them to the linker.
5058 # It appears as though 1/2 is a usable value.
5059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5065 if test -n $lt_cv_sys_max_cmd_len ; then
5066 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5067 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5069 echo "$as_me:$LINENO: result: none" >&5
5070 echo "${ECHO_T}none" >&6
5076 # Check for command to grab the raw symbol name followed by C symbol from nm.
5077 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5078 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5079 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 # These are sane defaults that work on at least a few old systems.
5084 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5086 # Character class describing NM global symbol codes.
5087 symcode='[BCDEGRST]'
5089 # Regexp to match symbols that can be accessed directly from C.
5090 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5092 # Transform the above into a raw symbol and a C symbol.
5093 symxfrm='\1 \2\3 \3'
5095 # Transform an extracted symbol line into a proper C declaration
5096 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5098 # Transform an extracted symbol line into symbol name and symbol address
5099 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'"
5101 # Define system-specific variables.
5106 cygwin* | mingw* | pw32*)
5107 symcode='[ABCDGISTW]'
5109 hpux*) # Its linker distinguishes data from code symbols
5110 if test "$host_cpu" = ia64; then
5111 symcode='[ABCDEGRST]'
5113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5114 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'"
5117 symcode='[BCDEGRST]'
5120 symcode='[BCDEGQRST]'
5130 # Handle CRLF in mingw tool chain
5134 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5138 # If we're using GNU nm, then use its standard symbol codes.
5139 case `$NM -V 2>&1` in
5140 *GNU* | *'with BFD'*)
5141 symcode='[ABCDGISTW]' ;;
5144 # Try without a prefix undercore, then with it.
5145 for ac_symprfx in "" "_"; do
5147 # Write the raw and C identifiers.
5148 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5150 # Check to see that the pipe works correctly.
5154 cat > conftest.$ac_ext <<EOF
5159 void nm_test_func(){}
5163 int main(){nm_test_var='a';nm_test_func();return(0);}
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167 (eval $ac_compile) 2>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; then
5171 # Now try to grab the symbols.
5173 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5174 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && test -s "$nlist"; then
5178 # Try sorting and uniquifying the output.
5179 if sort "$nlist" | uniq > "$nlist"T; then
5180 mv -f "$nlist"T "$nlist"
5185 # Make sure that we snagged all the symbols we need.
5186 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5187 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5188 cat <<EOF > conftest.$ac_ext
5194 # Now generate the symbol file.
5195 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5197 cat <<EOF >> conftest.$ac_ext
5198 #if defined (__STDC__) && __STDC__
5199 # define lt_ptr_t void *
5201 # define lt_ptr_t char *
5205 /* The mapping between symbol names and symbols. */
5210 lt_preloaded_symbols[] =
5213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5214 cat <<\EOF >> conftest.$ac_ext
5222 # Now try linking the two files.
5223 mv conftest.$ac_objext conftstm.$ac_objext
5224 lt_save_LIBS="$LIBS"
5225 lt_save_CFLAGS="$CFLAGS"
5226 LIBS="conftstm.$ac_objext"
5227 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5235 LIBS="$lt_save_LIBS"
5236 CFLAGS="$lt_save_CFLAGS"
5238 echo "cannot find nm_test_func in $nlist" >&5
5241 echo "cannot find nm_test_var in $nlist" >&5
5244 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5247 echo "$progname: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5250 rm -f conftest* conftst*
5252 # Do not use the global_symbol_pipe unless it works.
5253 if test "$pipe_works" = yes; then
5256 lt_cv_sys_global_symbol_pipe=
5262 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5263 lt_cv_sys_global_symbol_to_cdecl=
5265 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5266 echo "$as_me:$LINENO: result: failed" >&5
5267 echo "${ECHO_T}failed" >&6
5269 echo "$as_me:$LINENO: result: ok" >&5
5270 echo "${ECHO_T}ok" >&6
5273 echo "$as_me:$LINENO: checking for objdir" >&5
5274 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5275 if test "${lt_cv_objdir+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 rm -f .libs 2>/dev/null
5279 mkdir .libs 2>/dev/null
5280 if test -d .libs; then
5283 # MS-DOS does not allow filenames that begin with a dot.
5286 rmdir .libs 2>/dev/null
5288 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5289 echo "${ECHO_T}$lt_cv_objdir" >&6
5290 objdir=$lt_cv_objdir
5298 # AIX sometimes has problems with the GCC collect2 program. For some
5299 # reason, if we set the COLLECT_NAMES environment variable, the problems
5300 # vanish in a puff of smoke.
5301 if test "X${COLLECT_NAMES+set}" != Xset; then
5303 export COLLECT_NAMES
5308 # Sed substitution that helps us do robust quoting. It backslashifies
5309 # metacharacters that are still active within double-quoted strings.
5310 Xsed='sed -e s/^X//'
5311 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5313 # Same as above, but do not quote variable references.
5314 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5316 # Sed substitution to delay expansion of an escaped shell variable in a
5317 # double_quote_subst'ed string.
5318 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5320 # Sed substitution to avoid accidental globbing in evaled expressions
5321 no_glob_subst='s/\*/\\\*/g'
5328 can_build_shared=yes
5330 # All known linkers require a `.a' archive for static linking (except M$VC,
5331 # which needs '.lib').
5333 ltmain="$ac_aux_dir/ltmain.sh"
5334 ofile="$default_ofile"
5335 with_gnu_ld="$lt_cv_prog_gnu_ld"
5337 if test -n "$ac_tool_prefix"; then
5338 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5339 set dummy ${ac_tool_prefix}ar; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_prog_AR+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 if test -n "$AR"; then
5346 ac_cv_prog_AR="$AR" # Let the user override the test.
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_AR="${ac_tool_prefix}ar"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 if test -n "$AR"; then
5366 echo "$as_me:$LINENO: result: $AR" >&5
5367 echo "${ECHO_T}$AR" >&6
5369 echo "$as_me:$LINENO: result: no" >&5
5370 echo "${ECHO_T}no" >&6
5374 if test -z "$ac_cv_prog_AR"; then
5376 # Extract the first word of "ar", so it can be a program name with args.
5377 set dummy ar; ac_word=$2
5378 echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 if test -n "$ac_ct_AR"; then
5384 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_ac_ct_AR="ar"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5403 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5404 if test -n "$ac_ct_AR"; then
5405 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5406 echo "${ECHO_T}$ac_ct_AR" >&6
5408 echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5417 if test -n "$ac_tool_prefix"; then
5418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5420 echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422 if test "${ac_cv_prog_RANLIB+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 if test -n "$RANLIB"; then
5426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 RANLIB=$ac_cv_prog_RANLIB
5445 if test -n "$RANLIB"; then
5446 echo "$as_me:$LINENO: result: $RANLIB" >&5
5447 echo "${ECHO_T}$RANLIB" >&6
5449 echo "$as_me:$LINENO: result: no" >&5
5450 echo "${ECHO_T}no" >&6
5454 if test -z "$ac_cv_prog_RANLIB"; then
5455 ac_ct_RANLIB=$RANLIB
5456 # Extract the first word of "ranlib", so it can be a program name with args.
5457 set dummy ranlib; ac_word=$2
5458 echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5460 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 if test -n "$ac_ct_RANLIB"; then
5464 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_ac_ct_RANLIB="ranlib"
5474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5483 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5484 if test -n "$ac_ct_RANLIB"; then
5485 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5486 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5488 echo "$as_me:$LINENO: result: no" >&5
5489 echo "${ECHO_T}no" >&6
5492 RANLIB=$ac_ct_RANLIB
5494 RANLIB="$ac_cv_prog_RANLIB"
5497 if test -n "$ac_tool_prefix"; then
5498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}strip; ac_word=$2
5500 echo "$as_me:$LINENO: checking for $ac_word" >&5
5501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5502 if test "${ac_cv_prog_STRIP+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 if test -n "$STRIP"; then
5506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 STRIP=$ac_cv_prog_STRIP
5525 if test -n "$STRIP"; then
5526 echo "$as_me:$LINENO: result: $STRIP" >&5
5527 echo "${ECHO_T}$STRIP" >&6
5529 echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6
5534 if test -z "$ac_cv_prog_STRIP"; then
5536 # Extract the first word of "strip", so it can be a program name with args.
5537 set dummy strip; ac_word=$2
5538 echo "$as_me:$LINENO: checking for $ac_word" >&5
5539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5540 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 if test -n "$ac_ct_STRIP"; then
5544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_prog_ac_ct_STRIP="strip"
5554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5563 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5564 if test -n "$ac_ct_STRIP"; then
5565 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5566 echo "${ECHO_T}$ac_ct_STRIP" >&6
5568 echo "$as_me:$LINENO: result: no" >&5
5569 echo "${ECHO_T}no" >&6
5574 STRIP="$ac_cv_prog_STRIP"
5579 old_CFLAGS="$CFLAGS"
5581 # Set sane defaults for various variables
5582 test -z "$AR" && AR=ar
5583 test -z "$AR_FLAGS" && AR_FLAGS=cru
5584 test -z "$AS" && AS=as
5585 test -z "$CC" && CC=cc
5586 test -z "$LTCC" && LTCC=$CC
5587 test -z "$DLLTOOL" && DLLTOOL=dlltool
5588 test -z "$LD" && LD=ld
5589 test -z "$LN_S" && LN_S="ln -s"
5590 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5591 test -z "$NM" && NM=nm
5592 test -z "$SED" && SED=sed
5593 test -z "$OBJDUMP" && OBJDUMP=objdump
5594 test -z "$RANLIB" && RANLIB=:
5595 test -z "$STRIP" && STRIP=:
5596 test -z "$ac_objext" && ac_objext=o
5598 # Determine commands to create old-style static archives.
5599 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5600 old_postinstall_cmds='chmod 644 $oldlib'
5601 old_postuninstall_cmds=
5603 if test -n "$RANLIB"; then
5606 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5609 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5612 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5615 # Only perform the check for file, if the check method requires it
5616 case $deplibs_check_method in
5618 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5619 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5620 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5621 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5629 lt_save_MAGIC_CMD="$MAGIC_CMD"
5630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5631 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5632 for ac_dir in $ac_dummy; do
5634 test -z "$ac_dir" && ac_dir=.
5635 if test -f $ac_dir/${ac_tool_prefix}file; then
5636 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5637 if test -n "$file_magic_test_file"; then
5638 case $deplibs_check_method in
5640 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5642 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5643 $EGREP "$file_magic_regex" > /dev/null; then
5648 *** Warning: the command libtool uses to detect shared libraries,
5649 *** $file_magic_cmd, produces output that libtool cannot recognize.
5650 *** The result is that libtool may fail to recognize shared libraries
5651 *** as such. This will affect the creation of libtool libraries that
5652 *** depend on shared libraries, but programs linked with such libtool
5653 *** libraries will work regardless of this problem. Nevertheless, you
5654 *** may want to report the problem to your system manager and/or to
5655 *** bug-libtool@gnu.org
5665 MAGIC_CMD="$lt_save_MAGIC_CMD"
5670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5671 if test -n "$MAGIC_CMD"; then
5672 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5673 echo "${ECHO_T}$MAGIC_CMD" >&6
5675 echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5679 if test -z "$lt_cv_path_MAGIC_CMD"; then
5680 if test -n "$ac_tool_prefix"; then
5681 echo "$as_me:$LINENO: checking for file" >&5
5682 echo $ECHO_N "checking for file... $ECHO_C" >&6
5683 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5691 lt_save_MAGIC_CMD="$MAGIC_CMD"
5692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5694 for ac_dir in $ac_dummy; do
5696 test -z "$ac_dir" && ac_dir=.
5697 if test -f $ac_dir/file; then
5698 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5699 if test -n "$file_magic_test_file"; then
5700 case $deplibs_check_method in
5702 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5705 $EGREP "$file_magic_regex" > /dev/null; then
5710 *** Warning: the command libtool uses to detect shared libraries,
5711 *** $file_magic_cmd, produces output that libtool cannot recognize.
5712 *** The result is that libtool may fail to recognize shared libraries
5713 *** as such. This will affect the creation of libtool libraries that
5714 *** depend on shared libraries, but programs linked with such libtool
5715 *** libraries will work regardless of this problem. Nevertheless, you
5716 *** may want to report the problem to your system manager and/or to
5717 *** bug-libtool@gnu.org
5727 MAGIC_CMD="$lt_save_MAGIC_CMD"
5732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5733 if test -n "$MAGIC_CMD"; then
5734 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5735 echo "${ECHO_T}$MAGIC_CMD" >&6
5737 echo "$as_me:$LINENO: result: no" >&5
5738 echo "${ECHO_T}no" >&6
5753 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5754 if test "${enable_libtool_lock+set}" = set; then
5755 enableval="$enable_libtool_lock"
5758 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5761 # Check whether --with-pic or --without-pic was given.
5762 if test "${with_pic+set}" = set; then
5768 test -z "$pic_mode" && pic_mode=default
5770 # Use C for the default configuration in the libtool script
5774 ac_cpp='$CPP $CPPFLAGS'
5775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5780 # Source file extension for C test sources.
5783 # Object file extension for compiled C test sources.
5787 # Code to be used in simple compile tests
5788 lt_simple_compile_test_code="int some_variable = 0;\n"
5790 # Code to be used in simple link tests
5791 lt_simple_link_test_code='int main(){return(0);}\n'
5794 # If no C compiler was specified, use CC.
5797 # Allow CC to be a program name with arguments.
5802 # Check for any special shared library compilation flags.
5805 if test "$GCC" = no; then
5808 lt_prog_cc_shlib='-belf'
5812 if test -n "$lt_prog_cc_shlib"; then
5813 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5814 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5815 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5817 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5818 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5819 lt_cv_prog_cc_can_build_shared=no
5825 # Check to make sure the static flag actually works.
5827 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5828 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5829 if test "${lt_prog_compiler_static_works+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 lt_prog_compiler_static_works=no
5833 save_LDFLAGS="$LDFLAGS"
5834 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5835 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5837 # The compiler can only warn and ignore the option if not recognized
5838 # So say no if there are warnings
5839 if test -s conftest.err; then
5840 # Append any errors to the config.log.
5841 cat conftest.err 1>&5
5843 lt_prog_compiler_static_works=yes
5847 LDFLAGS="$save_LDFLAGS"
5850 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5851 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5853 if test x"$lt_prog_compiler_static_works" = xyes; then
5856 lt_prog_compiler_static=
5862 lt_prog_compiler_no_builtin_flag=
5864 if test "$GCC" = yes; then
5865 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5867 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5868 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5869 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 lt_cv_prog_compiler_rtti_exceptions=no
5873 ac_outfile=conftest.$ac_objext
5874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5875 lt_compiler_flag="-fno-rtti -fno-exceptions"
5876 # Insert the option either (1) after the last *FLAGS variable, or
5877 # (2) before a word containing "conftest.", or (3) at the end.
5878 # Note that $ac_compile itself does not contain backslashes and begins
5879 # with a dollar sign (not a hyphen), so the echo should work correctly.
5880 # The option is referenced via a variable to avoid confusing sed.
5881 lt_compile=`echo "$ac_compile" | $SED \
5882 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5884 -e 's:$: $lt_compiler_flag:'`
5885 (eval echo "\"\$as_me:5885: $lt_compile\"" >&5)
5886 (eval "$lt_compile" 2>conftest.err)
5888 cat conftest.err >&5
5889 echo "$as_me:5889: \$? = $ac_status" >&5
5890 if (exit $ac_status) && test -s "$ac_outfile"; then
5891 # The compiler can only warn and ignore the option if not recognized
5892 # So say no if there are warnings
5893 if test ! -s conftest.err; then
5894 lt_cv_prog_compiler_rtti_exceptions=yes
5900 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5901 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5903 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5904 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5911 lt_prog_compiler_wl=
5912 lt_prog_compiler_pic=
5913 lt_prog_compiler_static=
5915 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5916 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5918 if test "$GCC" = yes; then
5919 lt_prog_compiler_wl='-Wl,'
5920 lt_prog_compiler_static='-static'
5924 # All AIX code is PIC.
5925 if test "$host_cpu" = ia64; then
5926 # AIX 5 now supports IA64 processor
5927 lt_prog_compiler_static='-Bstatic'
5932 # FIXME: we need at least 68020 code to build shared libraries, but
5933 # adding the `-m68020' flag to GCC prevents building anything better,
5935 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5938 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5939 # PIC is the default for these OSes.
5942 mingw* | pw32* | os2*)
5943 # This hack is so that the source file can tell whether it is being
5944 # built for inclusion in a dll (and should export symbols for example).
5945 lt_prog_compiler_pic='-DDLL_EXPORT'
5948 darwin* | rhapsody*)
5949 # PIC is the default on this platform
5950 # Common symbols not allowed in MH_DYLIB files
5951 lt_prog_compiler_pic='-fno-common'
5955 # Just because we use GCC doesn't mean we suddenly get shared libraries
5956 # on systems that don't support them.
5957 lt_prog_compiler_can_build_shared=no
5962 if test -d /usr/nec; then
5963 lt_prog_compiler_pic=-Kconform_pic
5968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5975 lt_prog_compiler_pic='-fPIC'
5981 lt_prog_compiler_pic='-fPIC'
5985 # PORTME Check for flag to pass linker flags through the system compiler.
5988 lt_prog_compiler_wl='-Wl,'
5989 if test "$host_cpu" = ia64; then
5990 # AIX 5 now supports IA64 processor
5991 lt_prog_compiler_static='-Bstatic'
5993 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5997 mingw* | pw32* | os2*)
5998 # This hack is so that the source file can tell whether it is being
5999 # built for inclusion in a dll (and should export symbols for example).
6000 lt_prog_compiler_pic='-DDLL_EXPORT'
6003 hpux9* | hpux10* | hpux11*)
6004 lt_prog_compiler_wl='-Wl,'
6005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6012 lt_prog_compiler_pic='+Z'
6015 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6016 lt_prog_compiler_static='${wl}-a ${wl}archive'
6019 irix5* | irix6* | nonstopux*)
6020 lt_prog_compiler_wl='-Wl,'
6021 # PIC (with -KPIC) is the default.
6022 lt_prog_compiler_static='-non_shared'
6026 lt_prog_compiler_pic='-KPIC'
6027 lt_prog_compiler_static='-Bstatic'
6033 lt_prog_compiler_wl='-Wl,'
6034 lt_prog_compiler_pic='-KPIC'
6035 lt_prog_compiler_static='-static'
6038 lt_prog_compiler_wl='-Wl,'
6039 # All Alpha code is PIC.
6040 lt_prog_compiler_static='-non_shared'
6045 osf3* | osf4* | osf5*)
6046 lt_prog_compiler_wl='-Wl,'
6047 # All OSF/1 code is PIC.
6048 lt_prog_compiler_static='-non_shared'
6052 lt_prog_compiler_pic='-Kpic'
6053 lt_prog_compiler_static='-dn'
6057 lt_prog_compiler_wl='-Wl,'
6058 lt_prog_compiler_pic='-KPIC'
6059 lt_prog_compiler_static='-Bstatic'
6063 lt_prog_compiler_wl='-Qoption ld '
6064 lt_prog_compiler_pic='-PIC'
6065 lt_prog_compiler_static='-Bstatic'
6068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6069 lt_prog_compiler_wl='-Wl,'
6070 lt_prog_compiler_pic='-KPIC'
6071 lt_prog_compiler_static='-Bstatic'
6075 if test -d /usr/nec ;then
6076 lt_prog_compiler_pic='-Kconform_pic'
6077 lt_prog_compiler_static='-Bstatic'
6082 lt_prog_compiler_pic='-pic'
6083 lt_prog_compiler_static='-Bstatic'
6087 lt_prog_compiler_can_build_shared=no
6092 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6093 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6096 # Check to make sure the PIC flag actually works.
6098 if test -n "$lt_prog_compiler_pic"; then
6099 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6100 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6101 if test "${lt_prog_compiler_pic_works+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 lt_prog_compiler_pic_works=no
6105 ac_outfile=conftest.$ac_objext
6106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6107 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6108 # Insert the option either (1) after the last *FLAGS variable, or
6109 # (2) before a word containing "conftest.", or (3) at the end.
6110 # Note that $ac_compile itself does not contain backslashes and begins
6111 # with a dollar sign (not a hyphen), so the echo should work correctly.
6112 # The option is referenced via a variable to avoid confusing sed.
6113 lt_compile=`echo "$ac_compile" | $SED \
6114 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6116 -e 's:$: $lt_compiler_flag:'`
6117 (eval echo "\"\$as_me:6117: $lt_compile\"" >&5)
6118 (eval "$lt_compile" 2>conftest.err)
6120 cat conftest.err >&5
6121 echo "$as_me:6121: \$? = $ac_status" >&5
6122 if (exit $ac_status) && test -s "$ac_outfile"; then
6123 # The compiler can only warn and ignore the option if not recognized
6124 # So say no if there are warnings
6125 if test ! -s conftest.err; then
6126 lt_prog_compiler_pic_works=yes
6132 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6133 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6135 if test x"$lt_prog_compiler_pic_works" = xyes; then
6136 case $lt_prog_compiler_pic in
6138 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6141 lt_prog_compiler_pic=
6142 lt_prog_compiler_can_build_shared=no
6147 # For platforms which do not support PIC, -DPIC is meaningless:
6149 lt_prog_compiler_pic=
6152 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6156 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6157 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6158 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 lt_cv_prog_compiler_c_o=no
6162 $rm -r conftest 2>/dev/null
6166 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6168 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6169 # that will create temporary files in the current directory regardless of
6170 # the output directory. Thus, making CWD read-only will cause this test
6171 # to fail, enabling locking or at least warning the user not to do parallel
6175 lt_compiler_flag="-o out/conftest2.$ac_objext"
6176 # Insert the option either (1) after the last *FLAGS variable, or
6177 # (2) before a word containing "conftest.", or (3) at the end.
6178 # Note that $ac_compile itself does not contain backslashes and begins
6179 # with a dollar sign (not a hyphen), so the echo should work correctly.
6180 lt_compile=`echo "$ac_compile" | $SED \
6181 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6183 -e 's:$: $lt_compiler_flag:'`
6184 (eval echo "\"\$as_me:6184: $lt_compile\"" >&5)
6185 (eval "$lt_compile" 2>out/conftest.err)
6187 cat out/conftest.err >&5
6188 echo "$as_me:6188: \$? = $ac_status" >&5
6189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6191 # The compiler can only warn and ignore the option if not recognized
6192 # So say no if there are warnings
6193 if test ! -s out/conftest.err; then
6194 lt_cv_prog_compiler_c_o=yes
6205 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6206 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6209 hard_links="nottested"
6210 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6211 # do not overwrite the value of need_locks provided by the user
6212 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6213 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6218 ln conftest.a conftest.b 2>&5 || hard_links=no
6219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6220 echo "$as_me:$LINENO: result: $hard_links" >&5
6221 echo "${ECHO_T}$hard_links" >&6
6222 if test "$hard_links" = no; then
6223 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6224 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6231 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6232 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6235 allow_undefined_flag=
6236 enable_shared_with_static_runtimes=no
6238 archive_expsym_cmds=
6239 old_archive_From_new_cmds=
6240 old_archive_from_expsyms_cmds=
6241 export_dynamic_flag_spec=
6242 whole_archive_flag_spec=
6243 thread_safe_flag_spec=
6244 hardcode_libdir_flag_spec=
6245 hardcode_libdir_flag_spec_ld=
6246 hardcode_libdir_separator=
6249 hardcode_shlibpath_var=unsupported
6250 link_all_deplibs=unknown
6251 hardcode_automatic=no
6254 always_export_symbols=no
6255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6256 # include_expsyms should be a list of space-separated symbols to be *always*
6257 # included in the symbol list
6259 # exclude_expsyms can be an extended regexp of symbols to exclude
6260 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6261 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6262 # as well as any symbol that contains `d'.
6263 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6264 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6265 # platforms (ab)use it in PIC code, but their linkers get confused if
6266 # the symbol is explicitly referenced. Since portable code cannot
6267 # rely on this symbol name, it's probably fine to never include it in
6268 # preloaded symbol tables.
6269 extract_expsyms_cmds=
6272 cygwin* | mingw* | pw32*)
6273 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6274 # When not using gcc, we currently assume that we are using
6275 # Microsoft Visual C++.
6276 if test "$GCC" != yes; then
6286 if test "$with_gnu_ld" = yes; then
6287 # If archive_cmds runs LD, not CC, wlarc should be empty
6290 # See if GNU ld supports shared libraries.
6292 aix3* | aix4* | aix5*)
6293 # On AIX/PPC, the GNU linker is very broken
6294 if test "$host_cpu" != ia64; then
6298 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6299 *** to be unable to reliably create shared libraries on AIX.
6300 *** Therefore, libtool is disabling shared libraries support. If you
6301 *** really care for shared libraries, you may want to modify your PATH
6302 *** so that a non-GNU linker is found, and then restart.
6309 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)'
6310 hardcode_libdir_flag_spec='-L$libdir'
6311 hardcode_minus_L=yes
6313 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6314 # that the semantics of dynamic libraries on AmigaOS, at least up
6315 # to version 4, is to share data among multiple programs linked
6316 # with the same dynamic library. Since this doesn't match the
6317 # behavior of shared libraries on other platforms, we can't use
6323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6324 allow_undefined_flag=unsupported
6325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6326 # support --undefined. This deserves some investigation. FIXME
6327 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6333 cygwin* | mingw* | pw32*)
6334 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6335 # as there is no search path for DLLs.
6336 hardcode_libdir_flag_spec='-L$libdir'
6337 allow_undefined_flag=unsupported
6338 always_export_symbols=no
6339 enable_shared_with_static_runtimes=yes
6340 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6342 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6344 # If the export-symbols file already is a .def file (1st line
6345 # is EXPORTS), use it as is; otherwise, prepend...
6346 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6347 cp $export_symbols $output_objdir/$soname.def;
6349 echo EXPORTS > $output_objdir/$soname.def;
6350 cat $export_symbols >> $output_objdir/$soname.def;
6352 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6360 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6369 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6373 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6374 *** create shared libraries on Solaris systems. Therefore, libtool
6375 *** is disabling shared libraries support. We urge you to upgrade GNU
6376 *** binutils to release 2.9.1 or newer. Another option is to modify
6377 *** your PATH or compiler configuration so that the native linker is
6378 *** used, and then restart.
6381 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6390 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6393 hardcode_shlibpath_var=no
6397 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6406 if test "$ld_shlibs" = yes; then
6407 runpath_var=LD_RUN_PATH
6408 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6409 export_dynamic_flag_spec='${wl}--export-dynamic'
6410 # ancient GNU ld didn't support --whole-archive et. al.
6411 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6412 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6414 whole_archive_flag_spec=
6418 # PORTME fill in a description of your system's linker (not GNU ld)
6421 allow_undefined_flag=unsupported
6422 always_export_symbols=yes
6423 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'
6424 # Note: this linker hardcodes the directories in LIBPATH if there
6425 # are no directories specified by -L.
6426 hardcode_minus_L=yes
6427 if test "$GCC" = yes && test -z "$link_static_flag"; then
6428 # Neither direct hardcoding nor static linking is supported with a
6430 hardcode_direct=unsupported
6435 if test "$host_cpu" = ia64; then
6436 # On IA64, the linker does run time linking by default, so we don't
6437 # have to do anything special.
6438 aix_use_runtimelinking=no
6439 exp_sym_flag='-Bexport'
6442 # If we're using GNU nm, then we don't want the "-C" option.
6443 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6444 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6445 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'
6447 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'
6449 aix_use_runtimelinking=no
6451 # Test if we are trying to use run time linking or normal
6452 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6453 # need to do runtime linking.
6454 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6455 for ld_flag in $LDFLAGS; do
6456 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6457 aix_use_runtimelinking=yes
6463 exp_sym_flag='-bexport'
6464 no_entry_flag='-bnoentry'
6467 # When large executables or shared objects are built, AIX ld can
6468 # have problems creating the table of contents. If linking a library
6469 # or program results in "error TOC overflow" add -mminimal-toc to
6470 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6471 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6475 hardcode_libdir_separator=':'
6476 link_all_deplibs=yes
6478 if test "$GCC" = yes; then
6479 case $host_os in aix4.012|aix4.012.*)
6480 # We only want to do this on AIX 4.2 and lower, the check
6481 # below for broken collect2 doesn't work under 4.3+
6482 collect2name=`${CC} -print-prog-name=collect2`
6483 if test -f "$collect2name" && \
6484 strings "$collect2name" | grep resolve_lib_name >/dev/null
6486 # We have reworked collect2
6489 # We have old collect2
6490 hardcode_direct=unsupported
6491 # It fails to find uninstalled libraries when the uninstalled
6492 # path is not listed in the libpath. Setting hardcode_minus_L
6493 # to unsupported forces relinking
6494 hardcode_minus_L=yes
6495 hardcode_libdir_flag_spec='-L$libdir'
6496 hardcode_libdir_separator=
6499 shared_flag='-shared'
6502 if test "$host_cpu" = ia64; then
6503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6504 # chokes on -Wl,-G. The following line is correct:
6507 if test "$aix_use_runtimelinking" = yes; then
6508 shared_flag='${wl}-G'
6510 shared_flag='${wl}-bM:SRE'
6515 # It seems that -bexpall does not export symbols beginning with
6516 # underscore (_), so it is better to generate a list of symbols to export.
6517 always_export_symbols=yes
6518 if test "$aix_use_runtimelinking" = yes; then
6519 # Warning - without using the other runtime loading flags (-brtl),
6520 # -berok will link without error, but may produce a broken library.
6521 allow_undefined_flag='-berok'
6522 # Determine the default libpath from the value encoded in an empty executable.
6523 cat >conftest.$ac_ext <<_ACEOF
6524 #line $LINENO "configure"
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6541 (eval $ac_link) 2>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6552 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6554 # Check for a 64-bit object if we didn't find anything.
6555 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; }
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6566 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"
6568 if test "$host_cpu" = ia64; then
6569 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6570 allow_undefined_flag="-z nodefs"
6571 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"
6573 # Determine the default libpath from the value encoded in an empty executable.
6574 cat >conftest.$ac_ext <<_ACEOF
6575 #line $LINENO "configure"
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6590 rm -f conftest.$ac_objext conftest$ac_exeext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6592 (eval $ac_link) 2>&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -s conftest$ac_exeext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6603 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6605 # Check for a 64-bit object if we didn't find anything.
6606 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; }
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6616 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6617 # Warning - without using the other run time loading flags,
6618 # -berok will link without error, but may produce a broken library.
6619 no_undefined_flag=' ${wl}-bernotok'
6620 allow_undefined_flag=' ${wl}-berok'
6621 # -bexpall does not export symbols beginning with underscore (_)
6622 always_export_symbols=yes
6623 # Exported symbols can be pulled into shared objects from archives
6624 whole_archive_flag_spec=' '
6625 archive_cmds_need_lc=yes
6626 # This is similar to how AIX traditionally builds it's shared libraries.
6627 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'
6633 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)'
6634 hardcode_libdir_flag_spec='-L$libdir'
6635 hardcode_minus_L=yes
6636 # see comment about different semantics on the GNU ld section
6641 export_dynamic_flag_spec=-rdynamic
6644 cygwin* | mingw* | pw32*)
6645 # When not using gcc, we currently assume that we are using
6646 # Microsoft Visual C++.
6647 # hardcode_libdir_flag_spec is actually meaningless, as there is
6648 # no search path for DLLs.
6649 hardcode_libdir_flag_spec=' '
6650 allow_undefined_flag=unsupported
6651 # Tell ltmain to make .lib files, not .a files.
6653 # Tell ltmain to make .dll files, not .so files.
6655 # FIXME: Setting linknames here is a bad hack.
6656 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6657 # The linker will automatically build a .lib file if we build a DLL.
6658 old_archive_From_new_cmds='true'
6659 # FIXME: Should let the user specify the lib program.
6660 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6661 fix_srcfile_path='`cygpath -w "$srcfile"`'
6662 enable_shared_with_static_runtimes=yes
6665 darwin* | rhapsody*)
6666 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6667 archive_cmds_need_lc=no
6669 rhapsody* | darwin1.[012])
6670 allow_undefined_flag='-undefined suppress'
6673 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6676 # FIXME: Relying on posixy $() will cause problems for
6677 # cross-compilation, but unfortunately the echo tests do not
6678 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6679 # `"' quotes if we put them in here... so don't!
6680 lt_int_apple_cc_single_mod=no
6681 output_verbose_link_cmd='echo'
6682 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6683 lt_int_apple_cc_single_mod=yes
6685 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6686 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6688 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'
6690 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6691 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6692 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6693 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}'
6695 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}'
6697 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}'
6699 hardcode_automatic=yes
6700 hardcode_shlibpath_var=unsupported
6701 whole_archive_flag_spec='-all_load $convenience'
6702 link_all_deplibs=yes
6707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6708 hardcode_libdir_flag_spec='-L$libdir'
6709 hardcode_shlibpath_var=no
6716 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6717 # support. Future versions do this automatically, but an explicit c++rt0.o
6718 # does not break anything, and helps significantly (at the cost of a little
6721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6722 hardcode_libdir_flag_spec='-R$libdir'
6724 hardcode_shlibpath_var=no
6727 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6731 hardcode_minus_L=yes
6732 hardcode_shlibpath_var=no
6735 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6737 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6738 hardcode_libdir_flag_spec='-R$libdir'
6740 hardcode_shlibpath_var=no
6744 if test "$GCC" = yes; then
6745 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'
6747 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'
6749 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6750 hardcode_libdir_separator=:
6753 # hardcode_minus_L: Not really in the search PATH,
6754 # but as the default location of the library.
6755 hardcode_minus_L=yes
6756 export_dynamic_flag_spec='${wl}-E'
6760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6763 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6766 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6772 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6775 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6779 if test "$with_gnu_ld" = no; then
6782 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6783 hardcode_libdir_flag_spec_ld='+b $libdir'
6784 hardcode_libdir_separator=:
6786 hardcode_shlibpath_var=no
6789 hardcode_libdir_flag_spec='-L$libdir'
6791 hardcode_shlibpath_var=no
6793 # hardcode_minus_L: Not really in the search PATH,
6794 # but as the default location of the library.
6795 hardcode_minus_L=yes
6798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6799 hardcode_libdir_separator=:
6801 export_dynamic_flag_spec='${wl}-E'
6803 # hardcode_minus_L: Not really in the search PATH,
6804 # but as the default location of the library.
6805 hardcode_minus_L=yes
6811 irix5* | irix6* | nonstopux*)
6812 if test "$GCC" = yes; then
6813 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'
6815 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'
6816 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6819 hardcode_libdir_separator=:
6820 link_all_deplibs=yes
6824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6827 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6829 hardcode_libdir_flag_spec='-R$libdir'
6831 hardcode_shlibpath_var=no
6835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6838 hardcode_libdir_separator=:
6839 hardcode_shlibpath_var=no
6844 hardcode_shlibpath_var=no
6845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6846 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6847 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6848 export_dynamic_flag_spec='${wl}-E'
6851 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6853 hardcode_libdir_flag_spec='-R$libdir'
6856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6864 hardcode_libdir_flag_spec='-L$libdir'
6865 hardcode_minus_L=yes
6866 allow_undefined_flag=unsupported
6867 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'
6868 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6872 if test "$GCC" = yes; then
6873 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6874 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'
6876 allow_undefined_flag=' -expect_unresolved \*'
6877 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'
6879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6880 hardcode_libdir_separator=:
6883 osf4* | osf5*) # as osf3* with the addition of -msym flag
6884 if test "$GCC" = yes; then
6885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6886 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'
6887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6889 allow_undefined_flag=' -expect_unresolved \*'
6890 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'
6891 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6892 $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'
6894 # Both c and cxx compiler support -rpath directly
6895 hardcode_libdir_flag_spec='-rpath $libdir'
6897 hardcode_libdir_separator=:
6901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6902 hardcode_shlibpath_var=no
6903 export_dynamic_flag_spec='${wl}-Bexport'
6904 runpath_var=LD_RUN_PATH
6905 hardcode_runpath_var=yes
6909 no_undefined_flag=' -z text'
6910 if test "$GCC" = yes; then
6911 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6912 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6913 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6915 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6916 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6917 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6919 hardcode_libdir_flag_spec='-R$libdir'
6920 hardcode_shlibpath_var=no
6922 solaris2.[0-5] | solaris2.[0-5].*) ;;
6923 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6924 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6926 link_all_deplibs=yes
6930 if test "x$host_vendor" = xsequent; then
6931 # Use $CC to link under sequent, because it throws in some extra .o
6932 # files that make .init and .fini sections work.
6933 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6935 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6937 hardcode_libdir_flag_spec='-L$libdir'
6939 hardcode_minus_L=yes
6940 hardcode_shlibpath_var=no
6944 case $host_vendor in
6946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6947 hardcode_direct=yes # is this really true???
6950 ## LD is ld it makes a PLAMLIB
6951 ## CC just makes a GrossModule.
6952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6953 reload_cmds='$CC -r -o $output$reload_objs'
6957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6958 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6961 runpath_var='LD_RUN_PATH'
6962 hardcode_shlibpath_var=no
6966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967 hardcode_shlibpath_var=no
6968 export_dynamic_flag_spec='-Bexport'
6972 if test -d /usr/nec; then
6973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974 hardcode_shlibpath_var=no
6975 runpath_var=LD_RUN_PATH
6976 hardcode_runpath_var=yes
6982 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6985 hardcode_shlibpath_var=no
6986 hardcode_runpath_var=yes
6987 runpath_var=LD_RUN_PATH
6990 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6991 no_undefined_flag='${wl}-z ${wl}text'
6992 if test "$GCC" = yes; then
6993 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6995 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6997 runpath_var='LD_RUN_PATH'
6998 hardcode_shlibpath_var=no
7002 no_undefined_flag=' -z text'
7003 # $CC -shared without GNU ld will not create a library from C++
7004 # object files and a static libstdc++, better avoid it by now
7005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7006 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7008 hardcode_libdir_flag_spec=
7009 hardcode_shlibpath_var=no
7010 runpath_var='LD_RUN_PATH'
7014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7015 hardcode_libdir_flag_spec='-L$libdir'
7016 hardcode_shlibpath_var=no
7025 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7026 echo "${ECHO_T}$ld_shlibs" >&6
7027 test "$ld_shlibs" = no && can_build_shared=no
7029 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7030 if test "$GCC" = yes; then
7031 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7035 # Do we need to explicitly link libc?
7037 case "x$archive_cmds_need_lc" in
7039 # Assume -lc should be added
7040 archive_cmds_need_lc=yes
7042 if test "$enable_shared" = yes && test "$GCC" = yes; then
7043 case $archive_cmds in
7045 # FIXME: we may have to deal with multi-command sequences.
7048 # Test whether the compiler implicitly links with -lc since on some
7049 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7050 # to ld, don't add -lc before -lgcc.
7051 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057 (eval $ac_compile) 2>&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } 2>conftest.err; then
7063 libobjs=conftest.$ac_objext
7065 wl=$lt_prog_compiler_wl
7071 lt_save_allow_undefined_flag=$allow_undefined_flag
7072 allow_undefined_flag=
7073 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7074 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }
7079 archive_cmds_need_lc=no
7081 archive_cmds_need_lc=yes
7083 allow_undefined_flag=$lt_save_allow_undefined_flag
7085 cat conftest.err 1>&5
7088 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7089 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7099 if test -n "$hardcode_libdir_flag_spec" || \
7100 test -n "$runpath_var " || \
7101 test "X$hardcode_automatic"="Xyes" ; then
7103 # We can hardcode non-existant directories.
7104 if test "$hardcode_direct" != no &&
7105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7106 # have to relink, otherwise we might link with an installed library
7107 # when we should be linking with a yet-to-be-installed one
7108 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7109 test "$hardcode_minus_L" != no; then
7110 # Linking always hardcodes the temporary library directory.
7111 hardcode_action=relink
7113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7114 hardcode_action=immediate
7117 # We cannot hardcode anything, or else we can only hardcode existing
7119 hardcode_action=unsupported
7121 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7122 echo "${ECHO_T}$hardcode_action" >&6
7124 if test "$hardcode_action" = relink; then
7125 # Fast installation is not supported
7126 enable_fast_install=no
7127 elif test "$shlibpath_overrides_runpath" = yes ||
7128 test "$enable_shared" = no; then
7129 # Fast installation is not necessary
7130 enable_fast_install=needless
7135 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7136 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7137 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7139 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7140 echo "$as_me:$LINENO: result: yes" >&5
7141 echo "${ECHO_T}yes" >&6
7143 # FIXME - insert some real tests, host_os isn't really good enough
7146 if test -n "$STRIP" ; then
7147 striplib="$STRIP -x"
7148 echo "$as_me:$LINENO: result: yes" >&5
7149 echo "${ECHO_T}yes" >&6
7151 echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6
7156 echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6
7162 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7163 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7165 libname_spec='lib$name'
7173 shlibpath_overrides_runpath=unknown
7175 dynamic_linker="$host_os ld.so"
7176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7177 if test "$GCC" = yes; then
7178 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7179 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7180 # if the path contains ";" then we assume it to be the separator
7181 # otherwise default to the standard path separator (i.e. ":") - it is
7182 # assumed that no part of a normal pathname contains ";" but that should
7183 # okay in the real world where ";" in dirpaths is itself problematic.
7184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7191 need_lib_prefix=unknown
7192 hardcode_into_libs=no
7194 # when you set need_version to no, make sure it does not cause -set_version
7195 # flags to be left without arguments
7196 need_version=unknown
7201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7202 shlibpath_var=LIBPATH
7204 # AIX 3 has no versioning support, so we append a major version to the name.
7205 soname_spec='${libname}${release}${shared_ext}$major'
7212 hardcode_into_libs=yes
7213 if test "$host_cpu" = ia64; then
7214 # AIX 5 supports IA64
7215 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7216 shlibpath_var=LD_LIBRARY_PATH
7218 # With GCC up to 2.95.x, collect2 would create an import file
7219 # for dependence libraries. The import file would start with
7220 # the line `#! .'. This would cause the generated library to
7221 # depend on `.', always an invalid library. This was fixed in
7222 # development snapshots of GCC prior to 3.0.
7224 aix4 | aix4.[01] | aix4.[01].*)
7225 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7227 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7234 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7235 # soname into executable. Probably we can add versioning support to
7236 # collect2, so additional links can be useful in future.
7237 if test "$aix_use_runtimelinking" = yes; then
7238 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7239 # instead of lib<name>.a to let people know that these are not
7240 # typical AIX shared libraries.
7241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7243 # We preserve .a as extension for shared libraries through AIX4.2
7244 # and later when we are not doing run time linking.
7245 library_names_spec='${libname}${release}.a $libname.a'
7246 soname_spec='${libname}${release}${shared_ext}$major'
7248 shlibpath_var=LIBPATH
7253 library_names_spec='$libname.ixlibrary $libname.a'
7254 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7255 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'
7259 library_names_spec='${libname}${shared_ext}'
7260 dynamic_linker="$host_os ld.so"
7261 shlibpath_var=LIBRARY_PATH
7267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7268 soname_spec='${libname}${release}${shared_ext}$major'
7269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7270 shlibpath_var=LD_LIBRARY_PATH
7271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7273 # the default ld.so.conf also contains /usr/contrib/lib and
7274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7275 # libtool to hard-code these into programs
7278 cygwin* | mingw* | pw32*)
7279 version_type=windows
7284 case $GCC,$host_os in
7285 yes,cygwin* | yes,mingw* | yes,pw32*)
7286 library_names_spec='$libname.dll.a'
7287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7288 postinstall_cmds='base_file=`basename \${file}`~
7289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7290 dldir=$destdir/`dirname \$dlpath`~
7291 test -d \$dldir || mkdir -p \$dldir~
7292 $install_prog $dir/$dlname \$dldir/$dlname'
7293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7294 dlpath=$dir/\$dldll~
7296 shlibpath_overrides_runpath=yes
7300 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7301 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7302 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7305 # MinGW DLLs use traditional 'lib' prefix
7306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7307 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7308 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7309 # It is most probably a Windows format PATH printed by
7310 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7311 # path with ; separators, and with drive letters. We can handle the
7312 # drive letters (cygwin fileutils understands them), so leave them,
7313 # especially as we might pass files found there to a mingw objdump,
7314 # which wouldn't understand a cygwinified path. Ahh.
7315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7321 # pw32 DLLs use 'pw' prefix rather than 'lib'
7322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7331 dynamic_linker='Win32 ld.exe'
7332 # FIXME: first we should search . and the directory the executable is in
7336 darwin* | rhapsody*)
7337 dynamic_linker="$host_os dyld"
7341 # FIXME: Relying on posixy $() will cause problems for
7342 # cross-compilation, but unfortunately the echo tests do not
7343 # yet detect zsh echo's removal of \ escapes.
7344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7345 soname_spec='${libname}${release}${major}$shared_ext'
7346 shlibpath_overrides_runpath=yes
7347 shlibpath_var=DYLD_LIBRARY_PATH
7348 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7349 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7350 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7351 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"`
7353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7361 soname_spec='${libname}${release}${shared_ext}$major'
7362 shlibpath_var=LD_LIBRARY_PATH
7370 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7371 version_type=freebsd-$objformat
7372 case $version_type in
7374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7383 shlibpath_var=LD_LIBRARY_PATH
7386 shlibpath_overrides_runpath=yes
7388 freebsd3.01* | freebsdelf3.01*)
7389 shlibpath_overrides_runpath=yes
7390 hardcode_into_libs=yes
7393 shlibpath_overrides_runpath=no
7394 hardcode_into_libs=yes
7403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7404 soname_spec='${libname}${release}${shared_ext}$major'
7405 shlibpath_var=LD_LIBRARY_PATH
7406 hardcode_into_libs=yes
7409 hpux9* | hpux10* | hpux11*)
7410 # Give a soname corresponding to the major version so that dld.sl refuses to
7411 # link against other versions.
7418 hardcode_into_libs=yes
7419 dynamic_linker="$host_os dld.so"
7420 shlibpath_var=LD_LIBRARY_PATH
7421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7423 soname_spec='${libname}${release}${shared_ext}$major'
7424 if test "X$HPUX_IA64_MODE" = X32; then
7425 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7427 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7433 hardcode_into_libs=yes
7434 dynamic_linker="$host_os dld.sl"
7435 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7438 soname_spec='${libname}${release}${shared_ext}$major'
7439 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7444 dynamic_linker="$host_os dld.sl"
7445 shlibpath_var=SHLIB_PATH
7446 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7448 soname_spec='${libname}${release}${shared_ext}$major'
7451 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7452 postinstall_cmds='chmod 555 $lib'
7455 irix5* | irix6* | nonstopux*)
7457 nonstopux*) version_type=nonstopux ;;
7459 if test "$lt_cv_prog_gnu_ld" = yes; then
7467 soname_spec='${libname}${release}${shared_ext}$major'
7468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7470 irix5* | nonstopux*)
7474 case $LD in # libtool.m4 will add one of these switches to LD
7475 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7476 libsuff= shlibsuff= libmagic=32-bit;;
7477 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7478 libsuff=32 shlibsuff=N32 libmagic=N32;;
7479 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7480 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7481 *) libsuff= shlibsuff= libmagic=never-match;;
7485 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7486 shlibpath_overrides_runpath=no
7487 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7488 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7489 hardcode_into_libs=yes
7492 # No shared lib support for Linux oldld, aout, or coff.
7493 linux*oldld* | linux*aout* | linux*coff*)
7497 # This must be Linux ELF.
7502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7503 soname_spec='${libname}${release}${shared_ext}$major'
7504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7505 shlibpath_var=LD_LIBRARY_PATH
7506 shlibpath_overrides_runpath=no
7507 # This implies no fast_install, which is unacceptable.
7508 # Some rework will be needed to allow for fast_install
7509 # before this can be enabled.
7510 hardcode_into_libs=yes
7512 # We used to test for /lib/ld.so.1 and disable shared libraries on
7513 # powerpc, because MkLinux only supported shared libraries with the
7514 # GNU dynamic linker. Since this was broken with cross compilers,
7515 # most powerpc-linux boxes support dynamic linking these days and
7516 # people can always --disable-shared, the test was removed, and we
7517 # assume the GNU/Linux dynamic linker is in use.
7518 dynamic_linker='GNU/Linux ld.so'
7525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7528 dynamic_linker='NetBSD (a.out) ld.so'
7530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7531 soname_spec='${libname}${release}${shared_ext}$major'
7532 dynamic_linker='NetBSD ld.elf_so'
7534 shlibpath_var=LD_LIBRARY_PATH
7535 shlibpath_overrides_runpath=yes
7536 hardcode_into_libs=yes
7541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7542 shlibpath_var=LD_LIBRARY_PATH
7543 shlibpath_overrides_runpath=yes
7550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7551 soname_spec='${libname}${release}${shared_ext}$major'
7552 shlibpath_var=LD_LIBRARY_PATH
7553 shlibpath_overrides_runpath=yes
7560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7562 shlibpath_var=LD_LIBRARY_PATH
7563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7565 openbsd2.[89] | openbsd2.[89].*)
7566 shlibpath_overrides_runpath=no
7569 shlibpath_overrides_runpath=yes
7573 shlibpath_overrides_runpath=yes
7578 libname_spec='$name'
7581 library_names_spec='$libname${shared_ext} $libname.a'
7582 dynamic_linker='OS/2 ld.exe'
7583 shlibpath_var=LIBPATH
7586 osf3* | osf4* | osf5*)
7590 soname_spec='${libname}${release}${shared_ext}$major'
7591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7592 shlibpath_var=LD_LIBRARY_PATH
7593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7599 soname_spec='${libname}${release}${shared_ext}$major'
7600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7601 shlibpath_var=LD_LIBRARY_PATH
7608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609 soname_spec='${libname}${release}${shared_ext}$major'
7610 shlibpath_var=LD_LIBRARY_PATH
7611 shlibpath_overrides_runpath=yes
7612 hardcode_into_libs=yes
7613 # ldd complains unless libraries are executable
7614 postinstall_cmds='chmod +x $lib'
7619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7620 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7621 shlibpath_var=LD_LIBRARY_PATH
7622 shlibpath_overrides_runpath=yes
7623 if test "$with_gnu_ld" = yes; then
7629 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7632 soname_spec='${libname}${release}${shared_ext}$major'
7633 shlibpath_var=LD_LIBRARY_PATH
7634 case $host_vendor in
7636 shlibpath_overrides_runpath=no
7638 export_dynamic_flag_spec='${wl}-Blargedynsym'
7639 runpath_var=LD_RUN_PATH
7647 shlibpath_overrides_runpath=no
7648 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7654 if test -d /usr/nec ;then
7656 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7657 soname_spec='$libname${shared_ext}.$major'
7658 shlibpath_var=LD_LIBRARY_PATH
7664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7665 soname_spec='${libname}${release}${shared_ext}$major'
7666 shlibpath_var=LD_LIBRARY_PATH
7673 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7674 echo "${ECHO_T}$dynamic_linker" >&6
7675 test "$dynamic_linker" = no && can_build_shared=no
7677 if test "x$enable_dlopen" != xyes; then
7678 enable_dlopen=unknown
7679 enable_dlopen_self=unknown
7680 enable_dlopen_self_static=unknown
7687 lt_cv_dlopen="load_add_on"
7689 lt_cv_dlopen_self=yes
7693 lt_cv_dlopen="LoadLibrary"
7698 lt_cv_dlopen="dlopen"
7703 # if libdl is installed we need to link against it
7704 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7705 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7706 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 ac_check_lib_save_LIBS=$LIBS
7711 cat >conftest.$ac_ext <<_ACEOF
7712 #line $LINENO "configure"
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7719 /* Override any gcc2 internal prototype to avoid an error. */
7723 /* We use char because int might match the return type of a gcc2
7724 builtin and then its argument prototype would still apply. */
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736 (eval $ac_link) 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7746 ac_cv_lib_dl_dlopen=yes
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_cv_lib_dl_dlopen=no
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7754 LIBS=$ac_check_lib_save_LIBS
7756 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7757 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7758 if test $ac_cv_lib_dl_dlopen = yes; then
7759 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7764 lt_cv_dlopen_self=yes
7771 echo "$as_me:$LINENO: checking for shl_load" >&5
7772 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7773 if test "${ac_cv_func_shl_load+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 cat >conftest.$ac_ext <<_ACEOF
7777 #line $LINENO "configure"
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 /* System header to define __stub macros and hopefully few prototypes,
7784 which can conflict with char shl_load (); below.
7785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786 <limits.h> exists even on freestanding compilers. */
7788 # include <limits.h>
7790 # include <assert.h>
7792 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7800 /* The GNU C library defines this for functions which it implements
7801 to always fail with ENOSYS. Some functions are actually named
7802 something starting with __ and the normal name is an alias. */
7803 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7806 char (*f) () = shl_load;
7815 return f != shl_load;
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_func_shl_load=yes
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_cv_func_shl_load=no
7839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7842 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7843 if test $ac_cv_func_shl_load = yes; then
7844 lt_cv_dlopen="shl_load"
7846 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7847 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7848 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 ac_check_lib_save_LIBS=$LIBS
7853 cat >conftest.$ac_ext <<_ACEOF
7854 #line $LINENO "configure"
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7861 /* Override any gcc2 internal prototype to avoid an error. */
7865 /* We use char because int might match the return type of a gcc2
7866 builtin and then its argument prototype would still apply. */
7876 rm -f conftest.$ac_objext conftest$ac_exeext
7877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7878 (eval $ac_link) 2>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -s conftest$ac_exeext'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
7888 ac_cv_lib_dld_shl_load=yes
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7893 ac_cv_lib_dld_shl_load=no
7895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7896 LIBS=$ac_check_lib_save_LIBS
7898 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7899 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7900 if test $ac_cv_lib_dld_shl_load = yes; then
7901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7903 echo "$as_me:$LINENO: checking for dlopen" >&5
7904 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7905 if test "${ac_cv_func_dlopen+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 cat >conftest.$ac_ext <<_ACEOF
7909 #line $LINENO "configure"
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 /* System header to define __stub macros and hopefully few prototypes,
7916 which can conflict with char dlopen (); below.
7917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7918 <limits.h> exists even on freestanding compilers. */
7920 # include <limits.h>
7922 # include <assert.h>
7924 /* Override any gcc2 internal prototype to avoid an error. */
7929 /* We use char because int might match the return type of a gcc2
7930 builtin and then its argument prototype would still apply. */
7932 /* The GNU C library defines this for functions which it implements
7933 to always fail with ENOSYS. Some functions are actually named
7934 something starting with __ and the normal name is an alias. */
7935 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7938 char (*f) () = dlopen;
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7954 (eval $ac_link) 2>&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -s conftest$ac_exeext'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 ac_cv_func_dlopen=yes
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 ac_cv_func_dlopen=no
7971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7973 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7974 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7975 if test $ac_cv_func_dlopen = yes; then
7976 lt_cv_dlopen="dlopen"
7978 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7979 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7980 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 ac_check_lib_save_LIBS=$LIBS
7985 cat >conftest.$ac_ext <<_ACEOF
7986 #line $LINENO "configure"
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7993 /* Override any gcc2 internal prototype to avoid an error. */
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
8008 rm -f conftest.$ac_objext conftest$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_cv_lib_dl_dlopen=yes
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 ac_cv_lib_dl_dlopen=no
8027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS
8030 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8031 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8032 if test $ac_cv_lib_dl_dlopen = yes; then
8033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8035 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8036 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8037 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 ac_check_lib_save_LIBS=$LIBS
8042 cat >conftest.$ac_ext <<_ACEOF
8043 #line $LINENO "configure"
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8050 /* Override any gcc2 internal prototype to avoid an error. */
8054 /* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try='test -s conftest$ac_exeext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 ac_cv_lib_svld_dlopen=yes
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8082 ac_cv_lib_svld_dlopen=no
8084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8085 LIBS=$ac_check_lib_save_LIBS
8087 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8088 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8089 if test $ac_cv_lib_svld_dlopen = yes; then
8090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8092 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8093 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8094 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 ac_check_lib_save_LIBS=$LIBS
8099 cat >conftest.$ac_ext <<_ACEOF
8100 #line $LINENO "configure"
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8107 /* Override any gcc2 internal prototype to avoid an error. */
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124 (eval $ac_link) 2>&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -s conftest$ac_exeext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_lib_dld_dld_link=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_lib_dld_dld_link=no
8141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8142 LIBS=$ac_check_lib_save_LIBS
8144 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8145 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8146 if test $ac_cv_lib_dld_dld_link = yes; then
8147 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8168 if test "x$lt_cv_dlopen" != xno; then
8174 case $lt_cv_dlopen in
8176 save_CPPFLAGS="$CPPFLAGS"
8177 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8179 save_LDFLAGS="$LDFLAGS"
8180 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8183 LIBS="$lt_cv_dlopen_libs $LIBS"
8185 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8186 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8187 if test "${lt_cv_dlopen_self+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 if test "$cross_compiling" = yes; then :
8191 lt_cv_dlopen_self=cross
8193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8194 lt_status=$lt_dlunknown
8195 cat > conftest.$ac_ext <<EOF
8196 #line 8196 "configure"
8197 #include "confdefs.h"
8206 # define LT_DLGLOBAL RTLD_GLOBAL
8209 # define LT_DLGLOBAL DL_GLOBAL
8211 # define LT_DLGLOBAL 0
8215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8216 find out it does not work in some platform. */
8217 #ifndef LT_DLLAZY_OR_NOW
8219 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8222 # define LT_DLLAZY_OR_NOW DL_LAZY
8225 # define LT_DLLAZY_OR_NOW RTLD_NOW
8228 # define LT_DLLAZY_OR_NOW DL_NOW
8230 # define LT_DLLAZY_OR_NOW 0
8238 extern "C" void exit (int);
8241 void fnord() { int i=42;}
8244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8245 int status = $lt_dlunknown;
8249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8250 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8251 /* dlclose (self); */
8257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8258 (eval $ac_link) 2>&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8262 (./conftest; exit; ) 2>/dev/null
8265 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8266 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8267 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8270 # compilation failed
8271 lt_cv_dlopen_self=no
8278 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8279 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8281 if test "x$lt_cv_dlopen_self" = xyes; then
8282 LDFLAGS="$LDFLAGS $link_static_flag"
8283 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8284 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8285 if test "${lt_cv_dlopen_self_static+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 if test "$cross_compiling" = yes; then :
8289 lt_cv_dlopen_self_static=cross
8291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8292 lt_status=$lt_dlunknown
8293 cat > conftest.$ac_ext <<EOF
8294 #line 8294 "configure"
8295 #include "confdefs.h"
8304 # define LT_DLGLOBAL RTLD_GLOBAL
8307 # define LT_DLGLOBAL DL_GLOBAL
8309 # define LT_DLGLOBAL 0
8313 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8314 find out it does not work in some platform. */
8315 #ifndef LT_DLLAZY_OR_NOW
8317 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8320 # define LT_DLLAZY_OR_NOW DL_LAZY
8323 # define LT_DLLAZY_OR_NOW RTLD_NOW
8326 # define LT_DLLAZY_OR_NOW DL_NOW
8328 # define LT_DLLAZY_OR_NOW 0
8336 extern "C" void exit (int);
8339 void fnord() { int i=42;}
8342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8343 int status = $lt_dlunknown;
8347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8348 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8349 /* dlclose (self); */
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356 (eval $ac_link) 2>&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8360 (./conftest; exit; ) 2>/dev/null
8363 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8364 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8365 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8368 # compilation failed
8369 lt_cv_dlopen_self_static=no
8376 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8377 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8380 CPPFLAGS="$save_CPPFLAGS"
8381 LDFLAGS="$save_LDFLAGS"
8386 case $lt_cv_dlopen_self in
8387 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8388 *) enable_dlopen_self=unknown ;;
8391 case $lt_cv_dlopen_self_static in
8392 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8393 *) enable_dlopen_self_static=unknown ;;
8398 # Report which librarie types wil actually be built
8399 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8400 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8401 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8402 echo "${ECHO_T}$can_build_shared" >&6
8404 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8405 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8406 test "$can_build_shared" = "no" && enable_shared=no
8408 # On AIX, shared libraries and static libraries use the same namespace, and
8409 # are all built from PIC.
8412 test "$enable_shared" = yes && enable_static=no
8413 if test -n "$RANLIB"; then
8414 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8415 postinstall_cmds='$RANLIB $lib'
8420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8421 test "$enable_shared" = yes && enable_static=no
8424 darwin* | rhapsody*)
8425 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8426 archive_cmds_need_lc=no
8428 rhapsody* | darwin1.[012])
8429 allow_undefined_flag='-undefined suppress'
8432 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8435 # FIXME: Relying on posixy $() will cause problems for
8436 # cross-compilation, but unfortunately the echo tests do not
8437 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8438 # `"' quotes if we put them in here... so don't!
8439 output_verbose_link_cmd='echo'
8440 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8441 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8442 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8443 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}'
8444 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}'
8446 hardcode_automatic=yes
8447 hardcode_shlibpath_var=unsupported
8448 whole_archive_flag_spec='-all_load $convenience'
8449 link_all_deplibs=yes
8453 echo "$as_me:$LINENO: result: $enable_shared" >&5
8454 echo "${ECHO_T}$enable_shared" >&6
8456 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8457 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8458 # Make sure either enable_shared or enable_static is yes.
8459 test "$enable_shared" = yes || enable_static=yes
8460 echo "$as_me:$LINENO: result: $enable_static" >&5
8461 echo "${ECHO_T}$enable_static" >&6
8463 # The else clause should only fire when bootstrapping the
8464 # libtool distribution, otherwise you forgot to ship ltmain.sh
8465 # with your package, and you will get complaints that there are
8466 # no rules to generate ltmain.sh.
8467 if test -f "$ltmain"; then
8468 # See if we are running on zsh, and set the options which allow our commands through
8469 # without removal of \ escapes.
8470 if test -n "${ZSH_VERSION+set}" ; then
8471 setopt NO_GLOB_SUBST
8473 # Now quote all the things that may contain metacharacters while being
8474 # careful not to overquote the AC_SUBSTed values. We take copies of the
8475 # variables and quote the copies for generation of the libtool script.
8476 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8477 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8478 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8479 deplibs_check_method reload_flag reload_cmds need_locks \
8480 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8481 lt_cv_sys_global_symbol_to_c_name_address \
8482 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8483 old_postinstall_cmds old_postuninstall_cmds \
8487 lt_prog_compiler_wl \
8488 lt_prog_compiler_pic \
8489 lt_prog_compiler_static \
8490 lt_prog_compiler_no_builtin_flag \
8491 export_dynamic_flag_spec \
8492 thread_safe_flag_spec \
8493 whole_archive_flag_spec \
8494 enable_shared_with_static_runtimes \
8496 old_archive_from_new_cmds \
8501 compiler_lib_search_path \
8503 archive_expsym_cmds \
8505 postuninstall_cmds \
8506 old_archive_from_expsyms_cmds \
8507 allow_undefined_flag \
8509 export_symbols_cmds \
8510 hardcode_libdir_flag_spec \
8511 hardcode_libdir_flag_spec_ld \
8512 hardcode_libdir_separator \
8513 hardcode_automatic \
8515 module_expsym_cmds \
8516 lt_cv_prog_compiler_c_o \
8521 old_archive_cmds | \
8522 old_archive_from_new_cmds | \
8524 archive_expsym_cmds | \
8526 module_expsym_cmds | \
8527 old_archive_from_expsyms_cmds | \
8528 export_symbols_cmds | \
8529 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8530 postinstall_cmds | postuninstall_cmds | \
8531 old_postinstall_cmds | old_postuninstall_cmds | \
8532 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8533 # Double-quote double-evaled strings.
8534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8543 *'\$0 --fallback-echo"')
8544 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8549 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8551 { echo "$as_me:$LINENO: creating $ofile" >&5
8552 echo "$as_me: creating $ofile" >&6;}
8554 cat <<__EOF__ >> "$cfgfile"
8557 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8558 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8559 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8561 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8562 # Free Software Foundation, Inc.
8564 # This file is part of GNU Libtool:
8565 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8567 # This program is free software; you can redistribute it and/or modify
8568 # it under the terms of the GNU General Public License as published by
8569 # the Free Software Foundation; either version 2 of the License, or
8570 # (at your option) any later version.
8572 # This program is distributed in the hope that it will be useful, but
8573 # WITHOUT ANY WARRANTY; without even the implied warranty of
8574 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8575 # General Public License for more details.
8577 # You should have received a copy of the GNU General Public License
8578 # along with this program; if not, write to the Free Software
8579 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8581 # As a special exception to the GNU General Public License, if you
8582 # distribute this file as part of a program that contains a
8583 # configuration script generated by Autoconf, you may include it under
8584 # the same distribution terms that you use for the rest of that program.
8586 # A sed program that does not truncate output.
8589 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8590 Xsed="$SED -e s/^X//"
8592 # The HP-UX ksh and POSIX shell print the target directory to stdout
8594 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8596 # The names of the tagged configurations supported by this script.
8599 # ### BEGIN LIBTOOL CONFIG
8601 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8603 # Shell to use when invoking shell scripts.
8606 # Whether or not to build shared libraries.
8607 build_libtool_libs=$enable_shared
8609 # Whether or not to build static libraries.
8610 build_old_libs=$enable_static
8612 # Whether or not to add -lc for building shared libraries.
8613 build_libtool_need_lc=$archive_cmds_need_lc
8615 # Whether or not to disallow shared libs when runtime libs are static
8616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8618 # Whether or not to optimize for fast installation.
8619 fast_install=$enable_fast_install
8622 host_alias=$host_alias
8625 # An echo program that does not interpret backslashes.
8630 AR_FLAGS=$lt_AR_FLAGS
8635 # A language-specific compiler.
8638 # Is the compiler the GNU C compiler?
8644 # The linker used to build libraries.
8647 # Whether we need hard or soft links.
8650 # A BSD-compatible nm program.
8653 # A symbol stripping program
8656 # Used to examine libraries when file_magic_cmd begins "file"
8657 MAGIC_CMD=$MAGIC_CMD
8659 # Used on cygwin: DLL creation program.
8662 # Used on cygwin: object dumper.
8665 # Used on cygwin: assembler.
8668 # The name of the directory that contains temporary libtool files.
8671 # How to create reloadable object files.
8672 reload_flag=$lt_reload_flag
8673 reload_cmds=$lt_reload_cmds
8675 # How to pass a linker flag through the compiler.
8676 wl=$lt_lt_prog_compiler_wl
8678 # Object file suffix (normally "o").
8681 # Old archive suffix (normally "a").
8684 # Shared library suffix (normally ".so").
8687 # Executable file suffix (normally "").
8690 # Additional compiler flags for building library objects.
8691 pic_flag=$lt_lt_prog_compiler_pic
8694 # What is the maximum length of a command?
8695 max_cmd_len=$lt_cv_sys_max_cmd_len
8697 # Does compiler simultaneously support -c and -o options?
8698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8700 # Must we lock files when doing compilation ?
8701 need_locks=$lt_need_locks
8703 # Do we need the lib prefix for modules?
8704 need_lib_prefix=$need_lib_prefix
8706 # Do we need a version for libraries?
8707 need_version=$need_version
8709 # Whether dlopen is supported.
8710 dlopen_support=$enable_dlopen
8712 # Whether dlopen of programs is supported.
8713 dlopen_self=$enable_dlopen_self
8715 # Whether dlopen of statically linked programs is supported.
8716 dlopen_self_static=$enable_dlopen_self_static
8718 # Compiler flag to prevent dynamic linking.
8719 link_static_flag=$lt_lt_prog_compiler_static
8721 # Compiler flag to turn off builtin functions.
8722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8724 # Compiler flag to allow reflexive dlopens.
8725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8727 # Compiler flag to generate shared objects directly from archives.
8728 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8730 # Compiler flag to generate thread-safe objects.
8731 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8733 # Library versioning type.
8734 version_type=$version_type
8736 # Format of library name prefix.
8737 libname_spec=$lt_libname_spec
8739 # List of archive names. First name is the real one, the rest are links.
8740 # The last name is the one that the linker finds with -lNAME.
8741 library_names_spec=$lt_library_names_spec
8743 # The coded name of the library, if different from the real name.
8744 soname_spec=$lt_soname_spec
8746 # Commands used to build and install an old-style archive.
8748 old_archive_cmds=$lt_old_archive_cmds
8749 old_postinstall_cmds=$lt_old_postinstall_cmds
8750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8752 # Create an old-style archive from a shared archive.
8753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8755 # Create a temporary old-style archive to link instead of a shared archive.
8756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8758 # Commands used to build and install a shared archive.
8759 archive_cmds=$lt_archive_cmds
8760 archive_expsym_cmds=$lt_archive_expsym_cmds
8761 postinstall_cmds=$lt_postinstall_cmds
8762 postuninstall_cmds=$lt_postuninstall_cmds
8764 # Commands used to build a loadable module (assumed same as above if empty)
8765 module_cmds=$lt_module_cmds
8766 module_expsym_cmds=$lt_module_expsym_cmds
8768 # Commands to strip libraries.
8769 old_striplib=$lt_old_striplib
8770 striplib=$lt_striplib
8772 # Dependencies to place before the objects being linked to create a
8774 predep_objects=$lt_predep_objects
8776 # Dependencies to place after the objects being linked to create a
8778 postdep_objects=$lt_postdep_objects
8780 # Dependencies to place before the objects being linked to create a
8784 # Dependencies to place after the objects being linked to create a
8786 postdeps=$lt_postdeps
8788 # The library search path used internally by the compiler when linking
8790 compiler_lib_search_path=$lt_compiler_lib_search_path
8792 # Method to check whether dependent libraries are shared objects.
8793 deplibs_check_method=$lt_deplibs_check_method
8795 # Command to use when deplibs_check_method == file_magic.
8796 file_magic_cmd=$lt_file_magic_cmd
8798 # Flag that allows shared libraries with undefined symbols to be built.
8799 allow_undefined_flag=$lt_allow_undefined_flag
8801 # Flag that forces no undefined symbols.
8802 no_undefined_flag=$lt_no_undefined_flag
8804 # Commands used to finish a libtool library installation in a directory.
8805 finish_cmds=$lt_finish_cmds
8807 # Same as above, but a single script fragment to be evaled but not shown.
8808 finish_eval=$lt_finish_eval
8810 # Take the output of nm and produce a listing of raw symbols and C names.
8811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8813 # Transform the output of nm in a proper C declaration
8814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8816 # Transform the output of nm in a C name address pair
8817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8819 # This is the shared library runtime path variable.
8820 runpath_var=$runpath_var
8822 # This is the shared library path variable.
8823 shlibpath_var=$shlibpath_var
8825 # Is shlibpath searched before the hard-coded library search path?
8826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8828 # How to hardcode a shared library path into an executable.
8829 hardcode_action=$hardcode_action
8831 # Whether we should hardcode library paths into libraries.
8832 hardcode_into_libs=$hardcode_into_libs
8834 # Flag to hardcode \$libdir into a binary during linking.
8835 # This must work even if \$libdir does not exist.
8836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8838 # If ld is used when linking, flag to hardcode \$libdir into
8839 # a binary during linking. This must work even if \$libdir does
8841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8843 # Whether we need a single -rpath flag with a separated argument.
8844 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8846 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8848 hardcode_direct=$hardcode_direct
8850 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8852 hardcode_minus_L=$hardcode_minus_L
8854 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8855 # the resulting binary.
8856 hardcode_shlibpath_var=$hardcode_shlibpath_var
8858 # Set to yes if building a shared library automatically hardcodes DIR into the library
8859 # and all subsequent libraries and executables linked against it.
8860 hardcode_automatic=$hardcode_automatic
8862 # Variables whose values should be saved in libtool wrapper scripts and
8863 # restored at relink time.
8864 variables_saved_for_relink="$variables_saved_for_relink"
8866 # Whether libtool must link a program against all its dependency libraries.
8867 link_all_deplibs=$link_all_deplibs
8869 # Compile-time system search path for libraries
8870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8872 # Run-time system search path for libraries
8873 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8875 # Fix the shell variable \$srcfile for the compiler.
8876 fix_srcfile_path="$fix_srcfile_path"
8878 # Set to yes if exported symbols are required.
8879 always_export_symbols=$always_export_symbols
8881 # The commands to list exported symbols.
8882 export_symbols_cmds=$lt_export_symbols_cmds
8884 # The commands to extract the exported symbol list from a shared archive.
8885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8887 # Symbols that should not be listed in the preloaded symbols.
8888 exclude_expsyms=$lt_exclude_expsyms
8890 # Symbols that must always be exported.
8891 include_expsyms=$lt_include_expsyms
8893 # ### END LIBTOOL CONFIG
8900 cat <<\EOF >> "$cfgfile"
8902 # AIX sometimes has problems with the GCC collect2 program. For some
8903 # reason, if we set the COLLECT_NAMES environment variable, the problems
8904 # vanish in a puff of smoke.
8905 if test "X${COLLECT_NAMES+set}" != Xset; then
8907 export COLLECT_NAMES
8913 # We use sed instead of cat because bash on DJGPP gets confused if
8914 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8915 # text mode, it properly converts lines to CR/LF. This bash problem
8916 # is reportedly fixed, but why not run on old versions too?
8917 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8919 mv -f "$cfgfile" "$ofile" || \
8920 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8924 # If there is no Makefile yet, we rely on a make rule to execute
8925 # `config.status --recheck' to rerun these tests and create the
8926 # libtool script then.
8927 test -f Makefile && make "$ltmain"
8932 ac_cpp='$CPP $CPPFLAGS'
8933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8940 # Check whether --with-tags or --without-tags was given.
8941 if test "${with_tags+set}" = set; then
8942 withval="$with_tags"
8946 if test -f "$ltmain" && test -n "$tagnames"; then
8947 if test ! -f "${ofile}"; then
8948 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8949 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8952 if test -z "$LTCC"; then
8953 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8954 if test -z "$LTCC"; then
8955 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8956 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8958 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8959 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8963 # Extract list of available tagged configurations in $ofile.
8964 # Note that this assumes the entire list is on one line.
8965 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8968 for tagname in $tagnames; do
8970 # Check whether tagname contains only valid characters
8971 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8973 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8974 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8975 { (exit 1); exit 1; }; }
8979 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8981 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8982 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8983 { (exit 1); exit 1; }; }
8986 # Update the list of available tags.
8987 if test -n "$tagname"; then
8988 echo appending configuration tag \"$tagname\" to $ofile
8992 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8994 ac_cpp='$CXXCPP $CPPFLAGS'
8995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9002 archive_cmds_need_lc_CXX=no
9003 allow_undefined_flag_CXX=
9004 always_export_symbols_CXX=no
9005 archive_expsym_cmds_CXX=
9006 export_dynamic_flag_spec_CXX=
9007 hardcode_direct_CXX=no
9008 hardcode_libdir_flag_spec_CXX=
9009 hardcode_libdir_flag_spec_ld_CXX=
9010 hardcode_libdir_separator_CXX=
9011 hardcode_minus_L_CXX=no
9012 hardcode_automatic_CXX=no
9014 module_expsym_cmds_CXX=
9015 link_all_deplibs_CXX=unknown
9016 old_archive_cmds_CXX=$old_archive_cmds
9017 no_undefined_flag_CXX=
9018 whole_archive_flag_spec_CXX=
9019 enable_shared_with_static_runtimes_CXX=no
9021 # Dependencies to place before and after the object being linked:
9023 postdep_objects_CXX=
9026 compiler_lib_search_path_CXX=
9028 # Source file extension for C++ test sources.
9031 # Object file extension for compiled C++ test sources.
9035 # Code to be used in simple compile tests
9036 lt_simple_compile_test_code="int some_variable = 0;\n"
9038 # Code to be used in simple link tests
9039 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9041 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9043 # If no C compiler was specified, use CC.
9046 # Allow CC to be a program name with arguments.
9050 # Allow CC to be a program name with arguments.
9055 lt_save_with_gnu_ld=$with_gnu_ld
9056 lt_save_path_LD=$lt_cv_path_LD
9057 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9058 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9060 unset lt_cv_prog_gnu_ld
9062 if test -n "${lt_cv_path_LDCXX+set}"; then
9063 lt_cv_path_LD=$lt_cv_path_LDCXX
9067 test -z "${LDCXX+set}" || LD=$LDCXX
9071 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9073 # We don't want -fno-exception wen compiling C++ code, so set the
9074 # no_builtin_flag separately
9075 if test "$GXX" = yes; then
9076 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9078 lt_prog_compiler_no_builtin_flag_CXX=
9081 if test "$GXX" = yes; then
9082 # Set up default GNU C++ configuration
9085 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9086 if test "${with_gnu_ld+set}" = set; then
9087 withval="$with_gnu_ld"
9088 test "$withval" = no || with_gnu_ld=yes
9093 if test "$GCC" = yes; then
9094 # Check if gcc -print-prog-name=ld gives a path.
9095 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9096 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9099 # gcc leaves a trailing carriage return which upsets mingw
9100 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9102 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9105 # Accept absolute paths.
9107 re_direlt='/[^/][^/]*/\.\./'
9108 # Canonicalize the path of ld
9109 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9110 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9111 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9113 test -z "$LD" && LD="$ac_prog"
9116 # If it fails, then pretend we aren't using GCC.
9120 # If it is relative, then search for the first ld in PATH.
9124 elif test "$with_gnu_ld" = yes; then
9125 echo "$as_me:$LINENO: checking for GNU ld" >&5
9126 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9128 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9129 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9131 if test "${lt_cv_path_LD+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 if test -z "$LD"; then
9135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9136 for ac_dir in $PATH; do
9138 test -z "$ac_dir" && ac_dir=.
9139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9140 lt_cv_path_LD="$ac_dir/$ac_prog"
9141 # Check to see if the program is GNU ld. I'd rather use --version,
9142 # but apparently some GNU ld's only accept -v.
9143 # Break only if it was the GNU/non-GNU ld that we prefer.
9144 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9145 *GNU* | *'with BFD'*)
9146 test "$with_gnu_ld" != no && break
9149 test "$with_gnu_ld" != yes && break
9156 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9161 if test -n "$LD"; then
9162 echo "$as_me:$LINENO: result: $LD" >&5
9163 echo "${ECHO_T}$LD" >&6
9165 echo "$as_me:$LINENO: result: no" >&5
9166 echo "${ECHO_T}no" >&6
9168 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9169 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9170 { (exit 1); exit 1; }; }
9171 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9172 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9173 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9177 case `"$LD" -v 2>&1 </dev/null` in
9178 *GNU* | *'with BFD'*)
9179 lt_cv_prog_gnu_ld=yes
9182 lt_cv_prog_gnu_ld=no
9186 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9187 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9188 with_gnu_ld=$lt_cv_prog_gnu_ld
9192 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9193 # archiving commands below assume that GNU ld is being used.
9194 if test "$with_gnu_ld" = yes; then
9195 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9196 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'
9198 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9199 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9201 # If archive_cmds runs LD, not CC, wlarc should be empty
9202 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9203 # investigate it a little bit more. (MM)
9206 # ancient GNU ld didn't support --whole-archive et. al.
9207 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9208 grep 'no-whole-archive' > /dev/null; then
9209 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9211 whole_archive_flag_spec_CXX=
9217 # A generic and very simple default shared library creation
9218 # command for GNU C++ for the case where it uses the native
9219 # linker, instead of GNU ld. If possible, this setting should
9220 # overridden to take advantage of the native linker features on
9221 # the platform it is being used on.
9222 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9225 # Commands to make compiler produce verbose output that lists
9226 # what "hidden" libraries, object files and flags are used when
9227 # linking a shared library.
9228 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9236 # PORTME: fill in a description of your system's C++ link characteristics
9237 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9242 # FIXME: insert proper C++ library support
9246 if test "$host_cpu" = ia64; then
9247 # On IA64, the linker does run time linking by default, so we don't
9248 # have to do anything special.
9249 aix_use_runtimelinking=no
9250 exp_sym_flag='-Bexport'
9253 aix_use_runtimelinking=no
9255 # Test if we are trying to use run time linking or normal
9256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9257 # need to do runtime linking.
9258 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9259 for ld_flag in $LDFLAGS; do
9262 aix_use_runtimelinking=yes
9269 exp_sym_flag='-bexport'
9270 no_entry_flag='-bnoentry'
9273 # When large executables or shared objects are built, AIX ld can
9274 # have problems creating the table of contents. If linking a library
9275 # or program results in "error TOC overflow" add -mminimal-toc to
9276 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9277 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9280 hardcode_direct_CXX=yes
9281 hardcode_libdir_separator_CXX=':'
9282 link_all_deplibs_CXX=yes
9284 if test "$GXX" = yes; then
9285 case $host_os in aix4.012|aix4.012.*)
9286 # We only want to do this on AIX 4.2 and lower, the check
9287 # below for broken collect2 doesn't work under 4.3+
9288 collect2name=`${CC} -print-prog-name=collect2`
9289 if test -f "$collect2name" && \
9290 strings "$collect2name" | grep resolve_lib_name >/dev/null
9292 # We have reworked collect2
9293 hardcode_direct_CXX=yes
9295 # We have old collect2
9296 hardcode_direct_CXX=unsupported
9297 # It fails to find uninstalled libraries when the uninstalled
9298 # path is not listed in the libpath. Setting hardcode_minus_L
9299 # to unsupported forces relinking
9300 hardcode_minus_L_CXX=yes
9301 hardcode_libdir_flag_spec_CXX='-L$libdir'
9302 hardcode_libdir_separator_CXX=
9305 shared_flag='-shared'
9308 if test "$host_cpu" = ia64; then
9309 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9310 # chokes on -Wl,-G. The following line is correct:
9313 if test "$aix_use_runtimelinking" = yes; then
9314 shared_flag='${wl}-G'
9316 shared_flag='${wl}-bM:SRE'
9321 # It seems that -bexpall does not export symbols beginning with
9322 # underscore (_), so it is better to generate a list of symbols to export.
9323 always_export_symbols_CXX=yes
9324 if test "$aix_use_runtimelinking" = yes; then
9325 # Warning - without using the other runtime loading flags (-brtl),
9326 # -berok will link without error, but may produce a broken library.
9327 allow_undefined_flag_CXX='-berok'
9328 # Determine the default libpath from the value encoded in an empty executable.
9329 cat >conftest.$ac_ext <<_ACEOF
9330 #line $LINENO "configure"
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347 (eval $ac_link) 2>&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -s conftest$ac_exeext'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9360 # Check for a 64-bit object if we didn't find anything.
9361 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; }
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9371 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9373 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"
9375 if test "$host_cpu" = ia64; then
9376 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9377 allow_undefined_flag_CXX="-z nodefs"
9378 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"
9380 # Determine the default libpath from the value encoded in an empty executable.
9381 cat >conftest.$ac_ext <<_ACEOF
9382 #line $LINENO "configure"
9385 cat confdefs.h >>conftest.$ac_ext
9386 cat >>conftest.$ac_ext <<_ACEOF
9387 /* end confdefs.h. */
9397 rm -f conftest.$ac_objext conftest$ac_exeext
9398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9399 (eval $ac_link) 2>&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -s conftest$ac_exeext'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9412 # Check for a 64-bit object if we didn't find anything.
9413 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; }
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9423 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9424 # Warning - without using the other run time loading flags,
9425 # -berok will link without error, but may produce a broken library.
9426 no_undefined_flag_CXX=' ${wl}-bernotok'
9427 allow_undefined_flag_CXX=' ${wl}-berok'
9428 # -bexpall does not export symbols beginning with underscore (_)
9429 always_export_symbols_CXX=yes
9430 # Exported symbols can be pulled into shared objects from archives
9431 whole_archive_flag_spec_CXX=' '
9432 archive_cmds_need_lc_CXX=yes
9433 # This is similar to how AIX traditionally builds it's shared libraries.
9434 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'
9439 case $cc_basename in
9441 # FIXME: insert proper C++ library support
9447 cygwin* | mingw* | pw32*)
9448 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9449 # as there is no search path for DLLs.
9450 hardcode_libdir_flag_spec_CXX='-L$libdir'
9451 allow_undefined_flag_CXX=unsupported
9452 always_export_symbols_CXX=no
9453 enable_shared_with_static_runtimes_CXX=yes
9455 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9456 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'
9457 # If the export-symbols file already is a .def file (1st line
9458 # is EXPORTS), use it as is; otherwise, prepend...
9459 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9460 cp $export_symbols $output_objdir/$soname.def;
9462 echo EXPORTS > $output_objdir/$soname.def;
9463 cat $export_symbols >> $output_objdir/$soname.def;
9465 $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'
9471 darwin* | rhapsody*)
9472 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9473 archive_cmds_need_lc_CXX=no
9475 rhapsody* | darwin1.[012])
9476 allow_undefined_flag_CXX='-undefined suppress'
9479 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9482 lt_int_apple_cc_single_mod=no
9483 output_verbose_link_cmd='echo'
9484 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9485 lt_int_apple_cc_single_mod=yes
9487 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9488 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9490 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'
9492 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9494 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9495 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9496 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}'
9498 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}'
9500 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}'
9501 hardcode_direct_CXX=no
9502 hardcode_automatic_CXX=yes
9503 hardcode_shlibpath_var_CXX=unsupported
9504 whole_archive_flag_spec_CXX='-all_load $convenience'
9505 link_all_deplibs_CXX=yes
9510 case $cc_basename in
9512 # FIXME: insert proper C++ library support
9516 # Green Hills C++ Compiler
9517 # FIXME: insert proper C++ library support
9521 # FIXME: insert proper C++ library support
9527 # C++ shared libraries reported to be fairly broken before switch to ELF
9531 archive_cmds_need_lc_CXX=no
9534 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9541 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9542 hardcode_libdir_separator_CXX=:
9543 export_dynamic_flag_spec_CXX='${wl}-E'
9544 hardcode_direct_CXX=yes
9545 hardcode_minus_L_CXX=yes # Not in the search PATH,
9546 # but as the default
9547 # location of the library.
9549 case $cc_basename in
9551 # FIXME: insert proper C++ library support
9555 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'
9556 # Commands to make compiler produce verbose output that lists
9557 # what "hidden" libraries, object files and flags are used when
9558 # linking a shared library.
9560 # There doesn't appear to be a way to prevent this compiler from
9561 # explicitly linking system object files so we need to strip them
9562 # from the output so that they don't get included in the library
9564 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'
9567 if test "$GXX" = yes; then
9568 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'
9570 # FIXME: insert proper C++ library support
9577 if test $with_gnu_ld = no; then
9580 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9581 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9582 hardcode_libdir_separator_CXX=:
9585 hardcode_libdir_flag_spec_CXX='-L$libdir'
9588 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9589 hardcode_libdir_separator_CXX=:
9590 export_dynamic_flag_spec_CXX='${wl}-E'
9596 hardcode_direct_CXX=no
9597 hardcode_shlibpath_var_CXX=no
9600 hardcode_direct_CXX=no
9601 hardcode_shlibpath_var_CXX=no
9602 hardcode_minus_L_CXX=yes # Not in the search PATH,
9603 # but as the default
9604 # location of the library.
9607 hardcode_direct_CXX=yes
9608 hardcode_minus_L_CXX=yes # Not in the search PATH,
9609 # but as the default
9610 # location of the library.
9614 case $cc_basename in
9616 # FIXME: insert proper C++ library support
9622 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9625 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9628 # Commands to make compiler produce verbose output that lists
9629 # what "hidden" libraries, object files and flags are used when
9630 # linking a shared library.
9632 # There doesn't appear to be a way to prevent this compiler from
9633 # explicitly linking system object files so we need to strip them
9634 # from the output so that they don't get included in the library
9636 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'
9639 if test "$GXX" = yes; then
9640 if test $with_gnu_ld = no; then
9643 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9646 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'
9651 # FIXME: insert proper C++ library support
9658 case $cc_basename in
9661 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'
9663 # Archives containing C++ object files must be created using
9664 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9665 # necessary to make sure instantiated templates are included
9667 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9670 if test "$GXX" = yes; then
9671 if test "$with_gnu_ld" = no; then
9672 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'
9674 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'
9677 link_all_deplibs_CXX=yes
9680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9681 hardcode_libdir_separator_CXX=:
9684 case $cc_basename in
9686 # Kuck and Associates, Inc. (KAI) C++ Compiler
9688 # KCC will only create a shared library if the output file
9689 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9690 # to its proper name (with version) after linking.
9691 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'
9692 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'
9693 # Commands to make compiler produce verbose output that lists
9694 # what "hidden" libraries, object files and flags are used when
9695 # linking a shared library.
9697 # There doesn't appear to be a way to prevent this compiler from
9698 # explicitly linking system object files so we need to strip them
9699 # from the output so that they don't get included in the library
9701 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'
9703 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9706 # Archives containing C++ object files must be created using
9707 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9708 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9713 archive_cmds_need_lc_CXX=no
9714 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9715 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'
9716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9718 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723 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'
9725 runpath_var=LD_RUN_PATH
9726 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9727 hardcode_libdir_separator_CXX=:
9729 # Commands to make compiler produce verbose output that lists
9730 # what "hidden" libraries, object files and flags are used when
9731 # linking a shared library.
9733 # There doesn't appear to be a way to prevent this compiler from
9734 # explicitly linking system object files so we need to strip them
9735 # from the output so that they don't get included in the library
9737 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'
9742 # FIXME: insert proper C++ library support
9746 # FIXME: insert proper C++ library support
9750 case $cc_basename in
9752 # FIXME: insert proper C++ library support
9756 # FIXME: insert proper C++ library support
9762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9763 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9765 hardcode_libdir_flag_spec_CXX='-R$libdir'
9766 hardcode_direct_CXX=yes
9767 hardcode_shlibpath_var_CXX=no
9769 # Workaround some broken pre-1.5 toolchains
9770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9773 case $cc_basename in
9775 # Kuck and Associates, Inc. (KAI) C++ Compiler
9777 # KCC will only create a shared library if the output file
9778 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9779 # to its proper name (with version) after linking.
9780 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'
9782 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9783 hardcode_libdir_separator_CXX=:
9785 # Archives containing C++ object files must be created using
9786 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9787 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9791 # Rational C++ 2.4.1
9792 # FIXME: insert proper C++ library support
9796 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9797 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'
9799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9800 hardcode_libdir_separator_CXX=:
9802 # Commands to make compiler produce verbose output that lists
9803 # what "hidden" libraries, object files and flags are used when
9804 # linking a shared library.
9806 # There doesn't appear to be a way to prevent this compiler from
9807 # explicitly linking system object files so we need to strip them
9808 # from the output so that they don't get included in the library
9810 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'
9813 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9814 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9815 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'
9817 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9818 hardcode_libdir_separator_CXX=:
9820 # Commands to make compiler produce verbose output that lists
9821 # what "hidden" libraries, object files and flags are used when
9822 # linking a shared library.
9823 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9826 # FIXME: insert proper C++ library support
9833 case $cc_basename in
9835 # Kuck and Associates, Inc. (KAI) C++ Compiler
9837 # KCC will only create a shared library if the output file
9838 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9839 # to its proper name (with version) after linking.
9840 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'
9842 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9843 hardcode_libdir_separator_CXX=:
9845 # Archives containing C++ object files must be created using
9846 # the KAI C++ compiler.
9847 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9850 # Rational C++ 2.4.1
9851 # FIXME: insert proper C++ library support
9855 allow_undefined_flag_CXX=' -expect_unresolved \*'
9856 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'
9857 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9858 echo "-hidden">> $lib.exp~
9859 $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~
9862 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9863 hardcode_libdir_separator_CXX=:
9865 # Commands to make compiler produce verbose output that lists
9866 # what "hidden" libraries, object files and flags are used when
9867 # linking a shared library.
9869 # There doesn't appear to be a way to prevent this compiler from
9870 # explicitly linking system object files so we need to strip them
9871 # from the output so that they don't get included in the library
9873 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'
9876 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9877 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9878 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'
9880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9881 hardcode_libdir_separator_CXX=:
9883 # Commands to make compiler produce verbose output that lists
9884 # what "hidden" libraries, object files and flags are used when
9885 # linking a shared library.
9886 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9889 # FIXME: insert proper C++ library support
9896 # FIXME: insert proper C++ library support
9900 archive_cmds_need_lc_CXX=no
9901 case $cc_basename in
9903 # FIXME: insert proper C++ library support
9907 # FIXME: insert proper C++ library support
9913 case $cc_basename in
9916 # FIXME: insert proper C++ library support
9921 # FIXME: insert proper C++ library support
9925 # FIXME: insert proper C++ library support
9931 case $cc_basename in
9933 # Sun C++ 4.2, 5.x and Centerline C++
9934 no_undefined_flag_CXX=' -zdefs'
9935 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9936 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9937 $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'
9939 hardcode_libdir_flag_spec_CXX='-R$libdir'
9940 hardcode_shlibpath_var_CXX=no
9942 solaris2.0-5 | solaris2.0-5.*) ;;
9944 # The C++ compiler is used as linker so we must use $wl
9945 # flag to pass the commands to the underlying system
9947 # Supported since Solaris 2.6 (maybe 2.5.1?)
9948 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9951 link_all_deplibs_CXX=yes
9953 # Commands to make compiler produce verbose output that lists
9954 # what "hidden" libraries, object files and flags are used when
9955 # linking a shared library.
9957 # There doesn't appear to be a way to prevent this compiler from
9958 # explicitly linking system object files so we need to strip them
9959 # from the output so that they don't get included in the library
9961 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'
9963 # Archives containing C++ object files must be created using
9964 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9965 # necessary to make sure instantiated templates are included
9967 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9970 # Green Hills C++ Compiler
9971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9973 # The C++ compiler must be used to create the archive.
9974 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9977 # GNU C++ compiler with Solaris linker
9978 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9979 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9980 if $CC --version | grep -v '^2\.7' > /dev/null; then
9981 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9982 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9983 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9985 # Commands to make compiler produce verbose output that lists
9986 # what "hidden" libraries, object files and flags are used when
9987 # linking a shared library.
9988 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9990 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9992 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9993 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9994 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9996 # Commands to make compiler produce verbose output that lists
9997 # what "hidden" libraries, object files and flags are used when
9998 # linking a shared library.
9999 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10002 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10007 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10008 archive_cmds_need_lc_CXX=no
10011 case $cc_basename in
10013 # NonStop-UX NCC 3.20
10014 # FIXME: insert proper C++ library support
10018 # FIXME: insert proper C++ library support
10024 # FIXME: insert proper C++ library support
10028 # FIXME: insert proper C++ library support
10032 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10033 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10034 test "$ld_shlibs_CXX" = no && can_build_shared=no
10040 cat > conftest.$ac_ext <<EOF
10044 Foo (void) { a = 0; }
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051 (eval $ac_compile) 2>&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; then
10055 # Parse the compiler output and extract the necessary
10056 # objects, libraries and library flags.
10058 # Sentinel used to keep track of whether or not we are before
10059 # the conftest object file.
10060 pre_test_object_deps_done=no
10062 # The `*' in the case matches for architectures that use `case' in
10063 # $output_verbose_cmd can trigger glob expansion during the loop
10064 # eval without this substitution.
10065 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10067 for p in `eval $output_verbose_link_cmd`; do
10071 # Some compilers place space between "-{L,R}" and the path.
10072 # Remove the space.
10073 if test $p = "-L" \
10074 || test $p = "-R"; then
10081 if test "$pre_test_object_deps_done" = no; then
10084 # Internal compiler library paths should come after those
10085 # provided the user. The postdeps already come after the
10086 # user supplied libs so there is no need to process them.
10087 if test -z "$compiler_lib_search_path_CXX"; then
10088 compiler_lib_search_path_CXX="${prev}${p}"
10090 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10093 # The "-l" case would never come before the object being
10094 # linked, so don't bother handling this case.
10097 if test -z "$postdeps_CXX"; then
10098 postdeps_CXX="${prev}${p}"
10100 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10106 # This assumes that the test object file only shows up
10107 # once in the compiler output.
10108 if test "$p" = "conftest.$objext"; then
10109 pre_test_object_deps_done=yes
10113 if test "$pre_test_object_deps_done" = no; then
10114 if test -z "$predep_objects_CXX"; then
10115 predep_objects_CXX="$p"
10117 predep_objects_CXX="$predep_objects_CXX $p"
10120 if test -z "$postdep_objects_CXX"; then
10121 postdep_objects_CXX="$p"
10123 postdep_objects_CXX="$postdep_objects_CXX $p"
10128 *) ;; # Ignore the rest.
10136 echo "libtool.m4: error: problem compiling CXX test program"
10139 $rm -f confest.$objext
10141 case " $postdeps_CXX " in
10142 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10145 lt_prog_compiler_wl_CXX=
10146 lt_prog_compiler_pic_CXX=
10147 lt_prog_compiler_static_CXX=
10149 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10150 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10152 # C++ specific cases for pic, static, wl, etc.
10153 if test "$GXX" = yes; then
10154 lt_prog_compiler_wl_CXX='-Wl,'
10155 lt_prog_compiler_static_CXX='-static'
10159 # All AIX code is PIC.
10160 if test "$host_cpu" = ia64; then
10161 # AIX 5 now supports IA64 processor
10162 lt_prog_compiler_static_CXX='-Bstatic'
10166 # FIXME: we need at least 68020 code to build shared libraries, but
10167 # adding the `-m68020' flag to GCC prevents building anything better,
10169 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10171 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10172 # PIC is the default for these OSes.
10174 mingw* | os2* | pw32*)
10175 # This hack is so that the source file can tell whether it is being
10176 # built for inclusion in a dll (and should export symbols for example).
10177 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10179 darwin* | rhapsody*)
10180 # PIC is the default on this platform
10181 # Common symbols not allowed in MH_DYLIB files
10182 lt_prog_compiler_pic_CXX='-fno-common'
10185 # DJGPP does not support shared libraries at all
10186 lt_prog_compiler_pic_CXX=
10189 if test -d /usr/nec; then
10190 lt_prog_compiler_pic_CXX=-Kconform_pic
10194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10195 # not for PA HP-UX.
10196 case "$host_cpu" in
10200 lt_prog_compiler_pic_CXX='-fPIC'
10205 lt_prog_compiler_pic_CXX='-fPIC'
10211 # All AIX code is PIC.
10212 if test "$host_cpu" = ia64; then
10213 # AIX 5 now supports IA64 processor
10214 lt_prog_compiler_static_CXX='-Bstatic'
10216 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10220 case $cc_basename in
10222 # Green Hills C++ Compiler
10223 # _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"
10228 case $cc_basename in
10230 lt_prog_compiler_pic_CXX='-KPIC'
10233 # Green Hills C++ Compiler
10234 lt_prog_compiler_pic_CXX='-pic'
10241 # FreeBSD uses GNU C++
10243 hpux9* | hpux10* | hpux11*)
10244 case $cc_basename in
10246 lt_prog_compiler_wl_CXX='-Wl,'
10247 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10248 if test "$host_cpu" != ia64; then
10249 lt_prog_compiler_pic_CXX='+Z'
10253 lt_prog_compiler_wl_CXX='-Wl,'
10254 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10255 case "$host_cpu" in
10260 lt_prog_compiler_pic_CXX='+Z'
10268 irix5* | irix6* | nonstopux*)
10269 case $cc_basename in
10271 lt_prog_compiler_wl_CXX='-Wl,'
10272 lt_prog_compiler_static_CXX='-non_shared'
10273 # CC pic flag -KPIC is the default.
10280 case $cc_basename in
10283 lt_prog_compiler_wl_CXX='--backend -Wl,'
10284 lt_prog_compiler_pic_CXX='-fPIC'
10288 lt_prog_compiler_wl_CXX='-Wl,'
10289 lt_prog_compiler_pic_CXX='-KPIC'
10290 lt_prog_compiler_static_CXX='-static'
10294 # Make sure the PIC flag is empty. It appears that all Alpha
10295 # Linux and Compaq Tru64 Unix objects are PIC.
10296 lt_prog_compiler_pic_CXX=
10297 lt_prog_compiler_static_CXX='-non_shared'
10308 case $cc_basename in
10310 lt_prog_compiler_pic_CXX='-W c,exportall'
10318 osf3* | osf4* | osf5*)
10319 case $cc_basename in
10321 lt_prog_compiler_wl_CXX='--backend -Wl,'
10324 # Rational C++ 2.4.1
10325 lt_prog_compiler_pic_CXX='-pic'
10328 # Digital/Compaq C++
10329 lt_prog_compiler_wl_CXX='-Wl,'
10330 # Make sure the PIC flag is empty. It appears that all Alpha
10331 # Linux and Compaq Tru64 Unix objects are PIC.
10332 lt_prog_compiler_pic_CXX=
10333 lt_prog_compiler_static_CXX='-non_shared'
10342 case $cc_basename in
10344 lt_prog_compiler_pic_CXX='-fPIC'
10351 case $cc_basename in
10353 # Sun C++ 4.2, 5.x and Centerline C++
10354 lt_prog_compiler_pic_CXX='-KPIC'
10355 lt_prog_compiler_static_CXX='-Bstatic'
10356 lt_prog_compiler_wl_CXX='-Qoption ld '
10359 # Green Hills C++ Compiler
10360 lt_prog_compiler_pic_CXX='-PIC'
10367 case $cc_basename in
10370 lt_prog_compiler_pic_CXX='-pic'
10371 lt_prog_compiler_static_CXX='-Bstatic'
10375 lt_prog_compiler_pic_CXX='-pic'
10382 case $cc_basename in
10384 # NonStop-UX NCC 3.20
10385 lt_prog_compiler_pic_CXX='-KPIC'
10396 lt_prog_compiler_can_build_shared_CXX=no
10401 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10402 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10405 # Check to make sure the PIC flag actually works.
10407 if test -n "$lt_prog_compiler_pic_CXX"; then
10408 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10409 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10410 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 lt_prog_compiler_pic_works_CXX=no
10414 ac_outfile=conftest.$ac_objext
10415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10416 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10417 # Insert the option either (1) after the last *FLAGS variable, or
10418 # (2) before a word containing "conftest.", or (3) at the end.
10419 # Note that $ac_compile itself does not contain backslashes and begins
10420 # with a dollar sign (not a hyphen), so the echo should work correctly.
10421 # The option is referenced via a variable to avoid confusing sed.
10422 lt_compile=`echo "$ac_compile" | $SED \
10423 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10425 -e 's:$: $lt_compiler_flag:'`
10426 (eval echo "\"\$as_me:10426: $lt_compile\"" >&5)
10427 (eval "$lt_compile" 2>conftest.err)
10429 cat conftest.err >&5
10430 echo "$as_me:10430: \$? = $ac_status" >&5
10431 if (exit $ac_status) && test -s "$ac_outfile"; then
10432 # The compiler can only warn and ignore the option if not recognized
10433 # So say no if there are warnings
10434 if test ! -s conftest.err; then
10435 lt_prog_compiler_pic_works_CXX=yes
10441 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10442 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10444 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10445 case $lt_prog_compiler_pic_CXX in
10447 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10450 lt_prog_compiler_pic_CXX=
10451 lt_prog_compiler_can_build_shared_CXX=no
10456 # For platforms which do not support PIC, -DPIC is meaningless:
10458 lt_prog_compiler_pic_CXX=
10461 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10465 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10466 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10467 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 lt_cv_prog_compiler_c_o_CXX=no
10471 $rm -r conftest 2>/dev/null
10475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10477 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10478 # that will create temporary files in the current directory regardless of
10479 # the output directory. Thus, making CWD read-only will cause this test
10480 # to fail, enabling locking or at least warning the user not to do parallel
10484 lt_compiler_flag="-o out/conftest2.$ac_objext"
10485 # Insert the option either (1) after the last *FLAGS variable, or
10486 # (2) before a word containing "conftest.", or (3) at the end.
10487 # Note that $ac_compile itself does not contain backslashes and begins
10488 # with a dollar sign (not a hyphen), so the echo should work correctly.
10489 lt_compile=`echo "$ac_compile" | $SED \
10490 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10492 -e 's:$: $lt_compiler_flag:'`
10493 (eval echo "\"\$as_me:10493: $lt_compile\"" >&5)
10494 (eval "$lt_compile" 2>out/conftest.err)
10496 cat out/conftest.err >&5
10497 echo "$as_me:10497: \$? = $ac_status" >&5
10498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10500 # The compiler can only warn and ignore the option if not recognized
10501 # So say no if there are warnings
10502 if test ! -s out/conftest.err; then
10503 lt_cv_prog_compiler_c_o_CXX=yes
10507 $rm conftest* out/*
10514 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10515 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10518 hard_links="nottested"
10519 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10520 # do not overwrite the value of need_locks provided by the user
10521 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10522 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10527 ln conftest.a conftest.b 2>&5 || hard_links=no
10528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10529 echo "$as_me:$LINENO: result: $hard_links" >&5
10530 echo "${ECHO_T}$hard_links" >&6
10531 if test "$hard_links" = no; then
10532 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10533 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10540 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10541 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10543 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10546 # If we're using GNU nm, then we don't want the "-C" option.
10547 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10548 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10549 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'
10551 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'
10555 export_symbols_cmds_CXX="$ltdll_cmds"
10558 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10561 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10565 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10566 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10567 test "$ld_shlibs_CXX" = no && can_build_shared=no
10569 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10570 if test "$GCC" = yes; then
10571 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10575 # Do we need to explicitly link libc?
10577 case "x$archive_cmds_need_lc_CXX" in
10579 # Assume -lc should be added
10580 archive_cmds_need_lc_CXX=yes
10582 if test "$enable_shared" = yes && test "$GCC" = yes; then
10583 case $archive_cmds_CXX in
10585 # FIXME: we may have to deal with multi-command sequences.
10588 # Test whether the compiler implicitly links with -lc since on some
10589 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10590 # to ld, don't add -lc before -lgcc.
10591 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10592 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597 (eval $ac_compile) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } 2>conftest.err; then
10603 libobjs=conftest.$ac_objext
10605 wl=$lt_prog_compiler_wl_CXX
10611 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10612 allow_undefined_flag_CXX=
10613 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10614 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }
10619 archive_cmds_need_lc_CXX=no
10621 archive_cmds_need_lc_CXX=yes
10623 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10625 cat conftest.err 1>&5
10628 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10629 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10636 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10637 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10638 hardcode_action_CXX=
10639 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10640 test -n "$runpath_var CXX" || \
10641 test "X$hardcode_automatic_CXX"="Xyes" ; then
10643 # We can hardcode non-existant directories.
10644 if test "$hardcode_direct_CXX" != no &&
10645 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10646 # have to relink, otherwise we might link with an installed library
10647 # when we should be linking with a yet-to-be-installed one
10648 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10649 test "$hardcode_minus_L_CXX" != no; then
10650 # Linking always hardcodes the temporary library directory.
10651 hardcode_action_CXX=relink
10653 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10654 hardcode_action_CXX=immediate
10657 # We cannot hardcode anything, or else we can only hardcode existing
10659 hardcode_action_CXX=unsupported
10661 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10662 echo "${ECHO_T}$hardcode_action_CXX" >&6
10664 if test "$hardcode_action_CXX" = relink; then
10665 # Fast installation is not supported
10666 enable_fast_install=no
10667 elif test "$shlibpath_overrides_runpath" = yes ||
10668 test "$enable_shared" = no; then
10669 # Fast installation is not necessary
10670 enable_fast_install=needless
10675 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10676 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10677 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10680 echo "$as_me:$LINENO: result: yes" >&5
10681 echo "${ECHO_T}yes" >&6
10683 # FIXME - insert some real tests, host_os isn't really good enough
10686 if test -n "$STRIP" ; then
10687 striplib="$STRIP -x"
10688 echo "$as_me:$LINENO: result: yes" >&5
10689 echo "${ECHO_T}yes" >&6
10691 echo "$as_me:$LINENO: result: no" >&5
10692 echo "${ECHO_T}no" >&6
10696 echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6
10702 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10703 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10704 library_names_spec=
10705 libname_spec='lib$name'
10709 postuninstall_cmds=
10713 shlibpath_overrides_runpath=unknown
10715 dynamic_linker="$host_os ld.so"
10716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10717 if test "$GCC" = yes; then
10718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10719 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10720 # if the path contains ";" then we assume it to be the separator
10721 # otherwise default to the standard path separator (i.e. ":") - it is
10722 # assumed that no part of a normal pathname contains ";" but that should
10723 # okay in the real world where ";" in dirpaths is itself problematic.
10724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10729 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10731 need_lib_prefix=unknown
10732 hardcode_into_libs=no
10734 # when you set need_version to no, make sure it does not cause -set_version
10735 # flags to be left without arguments
10736 need_version=unknown
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10742 shlibpath_var=LIBPATH
10744 # AIX 3 has no versioning support, so we append a major version to the name.
10745 soname_spec='${libname}${release}${shared_ext}$major'
10752 hardcode_into_libs=yes
10753 if test "$host_cpu" = ia64; then
10754 # AIX 5 supports IA64
10755 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10756 shlibpath_var=LD_LIBRARY_PATH
10758 # With GCC up to 2.95.x, collect2 would create an import file
10759 # for dependence libraries. The import file would start with
10760 # the line `#! .'. This would cause the generated library to
10761 # depend on `.', always an invalid library. This was fixed in
10762 # development snapshots of GCC prior to 3.0.
10764 aix4 | aix4.[01] | aix4.[01].*)
10765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10767 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10770 can_build_shared=no
10774 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10775 # soname into executable. Probably we can add versioning support to
10776 # collect2, so additional links can be useful in future.
10777 if test "$aix_use_runtimelinking" = yes; then
10778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10779 # instead of lib<name>.a to let people know that these are not
10780 # typical AIX shared libraries.
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 # We preserve .a as extension for shared libraries through AIX4.2
10784 # and later when we are not doing run time linking.
10785 library_names_spec='${libname}${release}.a $libname.a'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10788 shlibpath_var=LIBPATH
10793 library_names_spec='$libname.ixlibrary $libname.a'
10794 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10795 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'
10799 library_names_spec='${libname}${shared_ext}'
10800 dynamic_linker="$host_os ld.so"
10801 shlibpath_var=LIBRARY_PATH
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808 soname_spec='${libname}${release}${shared_ext}$major'
10809 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10810 shlibpath_var=LD_LIBRARY_PATH
10811 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10812 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10813 # the default ld.so.conf also contains /usr/contrib/lib and
10814 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10815 # libtool to hard-code these into programs
10818 cygwin* | mingw* | pw32*)
10819 version_type=windows
10824 case $GCC,$host_os in
10825 yes,cygwin* | yes,mingw* | yes,pw32*)
10826 library_names_spec='$libname.dll.a'
10827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10828 postinstall_cmds='base_file=`basename \${file}`~
10829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10830 dldir=$destdir/`dirname \$dlpath`~
10831 test -d \$dldir || mkdir -p \$dldir~
10832 $install_prog $dir/$dlname \$dldir/$dlname'
10833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10834 dlpath=$dir/\$dldll~
10836 shlibpath_overrides_runpath=yes
10840 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10841 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10842 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10845 # MinGW DLLs use traditional 'lib' prefix
10846 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10848 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10849 # It is most probably a Windows format PATH printed by
10850 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10851 # path with ; separators, and with drive letters. We can handle the
10852 # drive letters (cygwin fileutils understands them), so leave them,
10853 # especially as we might pass files found there to a mingw objdump,
10854 # which wouldn't understand a cygwinified path. Ahh.
10855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10861 # pw32 DLLs use 'pw' prefix rather than 'lib'
10862 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10868 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10871 dynamic_linker='Win32 ld.exe'
10872 # FIXME: first we should search . and the directory the executable is in
10876 darwin* | rhapsody*)
10877 dynamic_linker="$host_os dyld"
10878 version_type=darwin
10881 # FIXME: Relying on posixy $() will cause problems for
10882 # cross-compilation, but unfortunately the echo tests do not
10883 # yet detect zsh echo's removal of \ escapes.
10884 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10885 soname_spec='${libname}${release}${major}$shared_ext'
10886 shlibpath_overrides_runpath=yes
10887 shlibpath_var=DYLD_LIBRARY_PATH
10888 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10889 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10890 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10891 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"`
10893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10910 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10911 version_type=freebsd-$objformat
10912 case $version_type in
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10923 shlibpath_var=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath=yes
10928 freebsd3.01* | freebsdelf3.01*)
10929 shlibpath_overrides_runpath=yes
10930 hardcode_into_libs=yes
10933 shlibpath_overrides_runpath=no
10934 hardcode_into_libs=yes
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 hardcode_into_libs=yes
10949 hpux9* | hpux10* | hpux11*)
10950 # Give a soname corresponding to the major version so that dld.sl refuses to
10951 # link against other versions.
10955 case "$host_cpu" in
10958 hardcode_into_libs=yes
10959 dynamic_linker="$host_os dld.so"
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 if test "X$HPUX_IA64_MODE" = X32; then
10965 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10973 hardcode_into_libs=yes
10974 dynamic_linker="$host_os dld.sl"
10975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978 soname_spec='${libname}${release}${shared_ext}$major'
10979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10984 dynamic_linker="$host_os dld.sl"
10985 shlibpath_var=SHLIB_PATH
10986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10991 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10992 postinstall_cmds='chmod 555 $lib'
10995 irix5* | irix6* | nonstopux*)
10997 nonstopux*) version_type=nonstopux ;;
10999 if test "$lt_cv_prog_gnu_ld" = yes; then
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11010 irix5* | nonstopux*)
11011 libsuff= shlibsuff=
11014 case $LD in # libtool.m4 will add one of these switches to LD
11015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11016 libsuff= shlibsuff= libmagic=32-bit;;
11017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11018 libsuff=32 shlibsuff=N32 libmagic=N32;;
11019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11020 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11021 *) libsuff= shlibsuff= libmagic=never-match;;
11025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11026 shlibpath_overrides_runpath=no
11027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11029 hardcode_into_libs=yes
11032 # No shared lib support for Linux oldld, aout, or coff.
11033 linux*oldld* | linux*aout* | linux*coff*)
11037 # This must be Linux ELF.
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=no
11047 # This implies no fast_install, which is unacceptable.
11048 # Some rework will be needed to allow for fast_install
11049 # before this can be enabled.
11050 hardcode_into_libs=yes
11052 # We used to test for /lib/ld.so.1 and disable shared libraries on
11053 # powerpc, because MkLinux only supported shared libraries with the
11054 # GNU dynamic linker. Since this was broken with cross compilers,
11055 # most powerpc-linux boxes support dynamic linking these days and
11056 # people can always --disable-shared, the test was removed, and we
11057 # assume the GNU/Linux dynamic linker is in use.
11058 dynamic_linker='GNU/Linux ld.so'
11065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11068 dynamic_linker='NetBSD (a.out) ld.so'
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 dynamic_linker='NetBSD ld.elf_so'
11074 shlibpath_var=LD_LIBRARY_PATH
11075 shlibpath_overrides_runpath=yes
11076 hardcode_into_libs=yes
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 shlibpath_overrides_runpath=yes
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 shlibpath_overrides_runpath=yes
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11105 openbsd2.[89] | openbsd2.[89].*)
11106 shlibpath_overrides_runpath=no
11109 shlibpath_overrides_runpath=yes
11113 shlibpath_overrides_runpath=yes
11118 libname_spec='$name'
11121 library_names_spec='$libname${shared_ext} $libname.a'
11122 dynamic_linker='OS/2 ld.exe'
11123 shlibpath_var=LIBPATH
11126 osf3* | osf4* | osf5*)
11130 soname_spec='${libname}${release}${shared_ext}$major'
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141 shlibpath_var=LD_LIBRARY_PATH
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 shlibpath_overrides_runpath=yes
11152 hardcode_into_libs=yes
11153 # ldd complains unless libraries are executable
11154 postinstall_cmds='chmod +x $lib'
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 shlibpath_overrides_runpath=yes
11163 if test "$with_gnu_ld" = yes; then
11169 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 case $host_vendor in
11176 shlibpath_overrides_runpath=no
11178 export_dynamic_flag_spec='${wl}-Blargedynsym'
11179 runpath_var=LD_RUN_PATH
11187 shlibpath_overrides_runpath=no
11188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11194 if test -d /usr/nec ;then
11196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11197 soname_spec='$libname${shared_ext}.$major'
11198 shlibpath_var=LD_LIBRARY_PATH
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11213 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11214 echo "${ECHO_T}$dynamic_linker" >&6
11215 test "$dynamic_linker" = no && can_build_shared=no
11217 if test "x$enable_dlopen" != xyes; then
11218 enable_dlopen=unknown
11219 enable_dlopen_self=unknown
11220 enable_dlopen_self_static=unknown
11227 lt_cv_dlopen="load_add_on"
11229 lt_cv_dlopen_self=yes
11233 lt_cv_dlopen="LoadLibrary"
11238 lt_cv_dlopen="dlopen"
11243 # if libdl is installed we need to link against it
11244 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11245 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11246 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 ac_check_lib_save_LIBS=$LIBS
11251 cat >conftest.$ac_ext <<_ACEOF
11252 #line $LINENO "configure"
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11259 /* Override any gcc2 internal prototype to avoid an error. */
11263 /* We use char because int might match the return type of a gcc2
11264 builtin and then its argument prototype would still apply. */
11274 rm -f conftest.$ac_objext conftest$ac_exeext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11276 (eval $ac_link) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } &&
11280 { ac_try='test -s conftest$ac_exeext'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_cv_lib_dl_dlopen=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_cv_lib_dl_dlopen=no
11293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11294 LIBS=$ac_check_lib_save_LIBS
11296 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11297 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11298 if test $ac_cv_lib_dl_dlopen = yes; then
11299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11302 lt_cv_dlopen="dyld"
11304 lt_cv_dlopen_self=yes
11311 echo "$as_me:$LINENO: checking for shl_load" >&5
11312 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11313 if test "${ac_cv_func_shl_load+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 /* System header to define __stub macros and hopefully few prototypes,
11324 which can conflict with char shl_load (); below.
11325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11326 <limits.h> exists even on freestanding compilers. */
11328 # include <limits.h>
11330 # include <assert.h>
11332 /* Override any gcc2 internal prototype to avoid an error. */
11337 /* We use char because int might match the return type of a gcc2
11338 builtin and then its argument prototype would still apply. */
11340 /* The GNU C library defines this for functions which it implements
11341 to always fail with ENOSYS. Some functions are actually named
11342 something starting with __ and the normal name is an alias. */
11343 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11346 char (*f) () = shl_load;
11355 return f != shl_load;
11360 rm -f conftest.$ac_objext conftest$ac_exeext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362 (eval $ac_link) 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -s conftest$ac_exeext'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; }; then
11372 ac_cv_func_shl_load=yes
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ac_cv_func_shl_load=no
11379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11381 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11382 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11383 if test $ac_cv_func_shl_load = yes; then
11384 lt_cv_dlopen="shl_load"
11386 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11387 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11388 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 ac_check_lib_save_LIBS=$LIBS
11393 cat >conftest.$ac_ext <<_ACEOF
11394 #line $LINENO "configure"
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11401 /* Override any gcc2 internal prototype to avoid an error. */
11405 /* We use char because int might match the return type of a gcc2
11406 builtin and then its argument prototype would still apply. */
11416 rm -f conftest.$ac_objext conftest$ac_exeext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11418 (eval $ac_link) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try='test -s conftest$ac_exeext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_cv_lib_dld_shl_load=yes
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11433 ac_cv_lib_dld_shl_load=no
11435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11436 LIBS=$ac_check_lib_save_LIBS
11438 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11439 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11440 if test $ac_cv_lib_dld_shl_load = yes; then
11441 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11443 echo "$as_me:$LINENO: checking for dlopen" >&5
11444 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11445 if test "${ac_cv_func_dlopen+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 cat >conftest.$ac_ext <<_ACEOF
11449 #line $LINENO "configure"
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 /* System header to define __stub macros and hopefully few prototypes,
11456 which can conflict with char dlopen (); below.
11457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458 <limits.h> exists even on freestanding compilers. */
11460 # include <limits.h>
11462 # include <assert.h>
11464 /* Override any gcc2 internal prototype to avoid an error. */
11469 /* We use char because int might match the return type of a gcc2
11470 builtin and then its argument prototype would still apply. */
11472 /* The GNU C library defines this for functions which it implements
11473 to always fail with ENOSYS. Some functions are actually named
11474 something starting with __ and the normal name is an alias. */
11475 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11478 char (*f) () = dlopen;
11487 return f != dlopen;
11492 rm -f conftest.$ac_objext conftest$ac_exeext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11494 (eval $ac_link) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -s conftest$ac_exeext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_cv_func_dlopen=yes
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 ac_cv_func_dlopen=no
11511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11513 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11514 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11515 if test $ac_cv_func_dlopen = yes; then
11516 lt_cv_dlopen="dlopen"
11518 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11519 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11520 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 ac_check_lib_save_LIBS=$LIBS
11525 cat >conftest.$ac_ext <<_ACEOF
11526 #line $LINENO "configure"
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11533 /* Override any gcc2 internal prototype to avoid an error. */
11537 /* We use char because int might match the return type of a gcc2
11538 builtin and then its argument prototype would still apply. */
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550 (eval $ac_link) 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -s conftest$ac_exeext'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 ac_cv_lib_dl_dlopen=yes
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 ac_cv_lib_dl_dlopen=no
11567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11570 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11571 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11572 if test $ac_cv_lib_dl_dlopen = yes; then
11573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11575 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11576 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11577 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 ac_check_lib_save_LIBS=$LIBS
11581 LIBS="-lsvld $LIBS"
11582 cat >conftest.$ac_ext <<_ACEOF
11583 #line $LINENO "configure"
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11590 /* Override any gcc2 internal prototype to avoid an error. */
11594 /* We use char because int might match the return type of a gcc2
11595 builtin and then its argument prototype would still apply. */
11605 rm -f conftest.$ac_objext conftest$ac_exeext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -s conftest$ac_exeext'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 ac_cv_lib_svld_dlopen=yes
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11622 ac_cv_lib_svld_dlopen=no
11624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11625 LIBS=$ac_check_lib_save_LIBS
11627 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11628 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11629 if test $ac_cv_lib_svld_dlopen = yes; then
11630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11632 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11633 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11634 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 ac_check_lib_save_LIBS=$LIBS
11639 cat >conftest.$ac_ext <<_ACEOF
11640 #line $LINENO "configure"
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11647 /* Override any gcc2 internal prototype to avoid an error. */
11651 /* We use char because int might match the return type of a gcc2
11652 builtin and then its argument prototype would still apply. */
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664 (eval $ac_link) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -s conftest$ac_exeext'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }; then
11674 ac_cv_lib_dld_dld_link=yes
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 ac_cv_lib_dld_dld_link=no
11681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11682 LIBS=$ac_check_lib_save_LIBS
11684 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11685 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11686 if test $ac_cv_lib_dld_dld_link = yes; then
11687 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11708 if test "x$lt_cv_dlopen" != xno; then
11714 case $lt_cv_dlopen in
11716 save_CPPFLAGS="$CPPFLAGS"
11717 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11719 save_LDFLAGS="$LDFLAGS"
11720 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11723 LIBS="$lt_cv_dlopen_libs $LIBS"
11725 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11726 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11727 if test "${lt_cv_dlopen_self+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 if test "$cross_compiling" = yes; then :
11731 lt_cv_dlopen_self=cross
11733 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11734 lt_status=$lt_dlunknown
11735 cat > conftest.$ac_ext <<EOF
11736 #line 11736 "configure"
11737 #include "confdefs.h"
11746 # define LT_DLGLOBAL RTLD_GLOBAL
11749 # define LT_DLGLOBAL DL_GLOBAL
11751 # define LT_DLGLOBAL 0
11755 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11756 find out it does not work in some platform. */
11757 #ifndef LT_DLLAZY_OR_NOW
11759 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11762 # define LT_DLLAZY_OR_NOW DL_LAZY
11765 # define LT_DLLAZY_OR_NOW RTLD_NOW
11768 # define LT_DLLAZY_OR_NOW DL_NOW
11770 # define LT_DLLAZY_OR_NOW 0
11778 extern "C" void exit (int);
11781 void fnord() { int i=42;}
11784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11785 int status = $lt_dlunknown;
11789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11790 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11791 /* dlclose (self); */
11797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11798 (eval $ac_link) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11802 (./conftest; exit; ) 2>/dev/null
11804 case x$lt_status in
11805 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11806 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11807 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11810 # compilation failed
11811 lt_cv_dlopen_self=no
11818 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11819 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11821 if test "x$lt_cv_dlopen_self" = xyes; then
11822 LDFLAGS="$LDFLAGS $link_static_flag"
11823 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11824 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11825 if test "${lt_cv_dlopen_self_static+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 if test "$cross_compiling" = yes; then :
11829 lt_cv_dlopen_self_static=cross
11831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11832 lt_status=$lt_dlunknown
11833 cat > conftest.$ac_ext <<EOF
11834 #line 11834 "configure"
11835 #include "confdefs.h"
11844 # define LT_DLGLOBAL RTLD_GLOBAL
11847 # define LT_DLGLOBAL DL_GLOBAL
11849 # define LT_DLGLOBAL 0
11853 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11854 find out it does not work in some platform. */
11855 #ifndef LT_DLLAZY_OR_NOW
11857 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11860 # define LT_DLLAZY_OR_NOW DL_LAZY
11863 # define LT_DLLAZY_OR_NOW RTLD_NOW
11866 # define LT_DLLAZY_OR_NOW DL_NOW
11868 # define LT_DLLAZY_OR_NOW 0
11876 extern "C" void exit (int);
11879 void fnord() { int i=42;}
11882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11883 int status = $lt_dlunknown;
11887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11888 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11889 /* dlclose (self); */
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11900 (./conftest; exit; ) 2>/dev/null
11902 case x$lt_status in
11903 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11905 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11908 # compilation failed
11909 lt_cv_dlopen_self_static=no
11916 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11917 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11920 CPPFLAGS="$save_CPPFLAGS"
11921 LDFLAGS="$save_LDFLAGS"
11926 case $lt_cv_dlopen_self in
11927 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11928 *) enable_dlopen_self=unknown ;;
11931 case $lt_cv_dlopen_self_static in
11932 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11933 *) enable_dlopen_self_static=unknown ;;
11938 # The else clause should only fire when bootstrapping the
11939 # libtool distribution, otherwise you forgot to ship ltmain.sh
11940 # with your package, and you will get complaints that there are
11941 # no rules to generate ltmain.sh.
11942 if test -f "$ltmain"; then
11943 # See if we are running on zsh, and set the options which allow our commands through
11944 # without removal of \ escapes.
11945 if test -n "${ZSH_VERSION+set}" ; then
11946 setopt NO_GLOB_SUBST
11948 # Now quote all the things that may contain metacharacters while being
11949 # careful not to overquote the AC_SUBSTed values. We take copies of the
11950 # variables and quote the copies for generation of the libtool script.
11951 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11952 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11953 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11954 deplibs_check_method reload_flag reload_cmds need_locks \
11955 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11956 lt_cv_sys_global_symbol_to_c_name_address \
11957 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11958 old_postinstall_cmds old_postuninstall_cmds \
11962 lt_prog_compiler_wl_CXX \
11963 lt_prog_compiler_pic_CXX \
11964 lt_prog_compiler_static_CXX \
11965 lt_prog_compiler_no_builtin_flag_CXX \
11966 export_dynamic_flag_spec_CXX \
11967 thread_safe_flag_spec_CXX \
11968 whole_archive_flag_spec_CXX \
11969 enable_shared_with_static_runtimes_CXX \
11970 old_archive_cmds_CXX \
11971 old_archive_from_new_cmds_CXX \
11972 predep_objects_CXX \
11973 postdep_objects_CXX \
11976 compiler_lib_search_path_CXX \
11978 archive_expsym_cmds_CXX \
11979 postinstall_cmds_CXX \
11980 postuninstall_cmds_CXX \
11981 old_archive_from_expsyms_cmds_CXX \
11982 allow_undefined_flag_CXX \
11983 no_undefined_flag_CXX \
11984 export_symbols_cmds_CXX \
11985 hardcode_libdir_flag_spec_CXX \
11986 hardcode_libdir_flag_spec_ld_CXX \
11987 hardcode_libdir_separator_CXX \
11988 hardcode_automatic_CXX \
11990 module_expsym_cmds_CXX \
11991 lt_cv_prog_compiler_c_o_CXX \
11992 exclude_expsyms_CXX \
11993 include_expsyms_CXX; do
11996 old_archive_cmds_CXX | \
11997 old_archive_from_new_cmds_CXX | \
11998 archive_cmds_CXX | \
11999 archive_expsym_cmds_CXX | \
12000 module_cmds_CXX | \
12001 module_expsym_cmds_CXX | \
12002 old_archive_from_expsyms_cmds_CXX | \
12003 export_symbols_cmds_CXX | \
12004 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12005 postinstall_cmds | postuninstall_cmds | \
12006 old_postinstall_cmds | old_postuninstall_cmds | \
12007 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12008 # Double-quote double-evaled strings.
12009 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12018 *'\$0 --fallback-echo"')
12019 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12025 cat <<__EOF__ >> "$cfgfile"
12026 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12030 # Shell to use when invoking shell scripts.
12033 # Whether or not to build shared libraries.
12034 build_libtool_libs=$enable_shared
12036 # Whether or not to build static libraries.
12037 build_old_libs=$enable_static
12039 # Whether or not to add -lc for building shared libraries.
12040 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12042 # Whether or not to disallow shared libs when runtime libs are static
12043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12045 # Whether or not to optimize for fast installation.
12046 fast_install=$enable_fast_install
12049 host_alias=$host_alias
12052 # An echo program that does not interpret backslashes.
12057 AR_FLAGS=$lt_AR_FLAGS
12062 # A language-specific compiler.
12063 CC=$lt_compiler_CXX
12065 # Is the compiler the GNU C compiler?
12071 # The linker used to build libraries.
12074 # Whether we need hard or soft links.
12077 # A BSD-compatible nm program.
12080 # A symbol stripping program
12083 # Used to examine libraries when file_magic_cmd begins "file"
12084 MAGIC_CMD=$MAGIC_CMD
12086 # Used on cygwin: DLL creation program.
12089 # Used on cygwin: object dumper.
12092 # Used on cygwin: assembler.
12095 # The name of the directory that contains temporary libtool files.
12098 # How to create reloadable object files.
12099 reload_flag=$lt_reload_flag
12100 reload_cmds=$lt_reload_cmds
12102 # How to pass a linker flag through the compiler.
12103 wl=$lt_lt_prog_compiler_wl_CXX
12105 # Object file suffix (normally "o").
12106 objext="$ac_objext"
12108 # Old archive suffix (normally "a").
12111 # Shared library suffix (normally ".so").
12114 # Executable file suffix (normally "").
12117 # Additional compiler flags for building library objects.
12118 pic_flag=$lt_lt_prog_compiler_pic_CXX
12121 # What is the maximum length of a command?
12122 max_cmd_len=$lt_cv_sys_max_cmd_len
12124 # Does compiler simultaneously support -c and -o options?
12125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12127 # Must we lock files when doing compilation ?
12128 need_locks=$lt_need_locks
12130 # Do we need the lib prefix for modules?
12131 need_lib_prefix=$need_lib_prefix
12133 # Do we need a version for libraries?
12134 need_version=$need_version
12136 # Whether dlopen is supported.
12137 dlopen_support=$enable_dlopen
12139 # Whether dlopen of programs is supported.
12140 dlopen_self=$enable_dlopen_self
12142 # Whether dlopen of statically linked programs is supported.
12143 dlopen_self_static=$enable_dlopen_self_static
12145 # Compiler flag to prevent dynamic linking.
12146 link_static_flag=$lt_lt_prog_compiler_static_CXX
12148 # Compiler flag to turn off builtin functions.
12149 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12151 # Compiler flag to allow reflexive dlopens.
12152 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12154 # Compiler flag to generate shared objects directly from archives.
12155 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12157 # Compiler flag to generate thread-safe objects.
12158 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12160 # Library versioning type.
12161 version_type=$version_type
12163 # Format of library name prefix.
12164 libname_spec=$lt_libname_spec
12166 # List of archive names. First name is the real one, the rest are links.
12167 # The last name is the one that the linker finds with -lNAME.
12168 library_names_spec=$lt_library_names_spec
12170 # The coded name of the library, if different from the real name.
12171 soname_spec=$lt_soname_spec
12173 # Commands used to build and install an old-style archive.
12175 old_archive_cmds=$lt_old_archive_cmds_CXX
12176 old_postinstall_cmds=$lt_old_postinstall_cmds
12177 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12179 # Create an old-style archive from a shared archive.
12180 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12182 # Create a temporary old-style archive to link instead of a shared archive.
12183 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12185 # Commands used to build and install a shared archive.
12186 archive_cmds=$lt_archive_cmds_CXX
12187 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12188 postinstall_cmds=$lt_postinstall_cmds
12189 postuninstall_cmds=$lt_postuninstall_cmds
12191 # Commands used to build a loadable module (assumed same as above if empty)
12192 module_cmds=$lt_module_cmds_CXX
12193 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12195 # Commands to strip libraries.
12196 old_striplib=$lt_old_striplib
12197 striplib=$lt_striplib
12199 # Dependencies to place before the objects being linked to create a
12201 predep_objects=$lt_predep_objects_CXX
12203 # Dependencies to place after the objects being linked to create a
12205 postdep_objects=$lt_postdep_objects_CXX
12207 # Dependencies to place before the objects being linked to create a
12209 predeps=$lt_predeps_CXX
12211 # Dependencies to place after the objects being linked to create a
12213 postdeps=$lt_postdeps_CXX
12215 # The library search path used internally by the compiler when linking
12216 # a shared library.
12217 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12219 # Method to check whether dependent libraries are shared objects.
12220 deplibs_check_method=$lt_deplibs_check_method
12222 # Command to use when deplibs_check_method == file_magic.
12223 file_magic_cmd=$lt_file_magic_cmd
12225 # Flag that allows shared libraries with undefined symbols to be built.
12226 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12228 # Flag that forces no undefined symbols.
12229 no_undefined_flag=$lt_no_undefined_flag_CXX
12231 # Commands used to finish a libtool library installation in a directory.
12232 finish_cmds=$lt_finish_cmds
12234 # Same as above, but a single script fragment to be evaled but not shown.
12235 finish_eval=$lt_finish_eval
12237 # Take the output of nm and produce a listing of raw symbols and C names.
12238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12240 # Transform the output of nm in a proper C declaration
12241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12243 # Transform the output of nm in a C name address pair
12244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12246 # This is the shared library runtime path variable.
12247 runpath_var=$runpath_var
12249 # This is the shared library path variable.
12250 shlibpath_var=$shlibpath_var
12252 # Is shlibpath searched before the hard-coded library search path?
12253 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12255 # How to hardcode a shared library path into an executable.
12256 hardcode_action=$hardcode_action_CXX
12258 # Whether we should hardcode library paths into libraries.
12259 hardcode_into_libs=$hardcode_into_libs
12261 # Flag to hardcode \$libdir into a binary during linking.
12262 # This must work even if \$libdir does not exist.
12263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12265 # If ld is used when linking, flag to hardcode \$libdir into
12266 # a binary during linking. This must work even if \$libdir does
12268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12270 # Whether we need a single -rpath flag with a separated argument.
12271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12273 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12274 # resulting binary.
12275 hardcode_direct=$hardcode_direct_CXX
12277 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12278 # resulting binary.
12279 hardcode_minus_L=$hardcode_minus_L_CXX
12281 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12282 # the resulting binary.
12283 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12285 # Set to yes if building a shared library automatically hardcodes DIR into the library
12286 # and all subsequent libraries and executables linked against it.
12287 hardcode_automatic=$hardcode_automatic_CXX
12289 # Variables whose values should be saved in libtool wrapper scripts and
12290 # restored at relink time.
12291 variables_saved_for_relink="$variables_saved_for_relink"
12293 # Whether libtool must link a program against all its dependency libraries.
12294 link_all_deplibs=$link_all_deplibs_CXX
12296 # Compile-time system search path for libraries
12297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12299 # Run-time system search path for libraries
12300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12302 # Fix the shell variable \$srcfile for the compiler.
12303 fix_srcfile_path="$fix_srcfile_path_CXX"
12305 # Set to yes if exported symbols are required.
12306 always_export_symbols=$always_export_symbols_CXX
12308 # The commands to list exported symbols.
12309 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12311 # The commands to extract the exported symbol list from a shared archive.
12312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12314 # Symbols that should not be listed in the preloaded symbols.
12315 exclude_expsyms=$lt_exclude_expsyms_CXX
12317 # Symbols that must always be exported.
12318 include_expsyms=$lt_include_expsyms_CXX
12320 # ### END LIBTOOL TAG CONFIG: $tagname
12326 # If there is no Makefile yet, we rely on a make rule to execute
12327 # `config.status --recheck' to rerun these tests and create the
12328 # libtool script then.
12329 test -f Makefile && make "$ltmain"
12334 ac_cpp='$CPP $CPPFLAGS'
12335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12343 with_gnu_ldcxx=$with_gnu_ld
12344 with_gnu_ld=$lt_save_with_gnu_ld
12345 lt_cv_path_LDCXX=$lt_cv_path_LD
12346 lt_cv_path_LD=$lt_save_path_LD
12347 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12348 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12356 if test -n "$F77" && test "X$F77" != "Xno"; then
12359 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12360 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12364 archive_cmds_need_lc_F77=no
12365 allow_undefined_flag_F77=
12366 always_export_symbols_F77=no
12367 archive_expsym_cmds_F77=
12368 export_dynamic_flag_spec_F77=
12369 hardcode_direct_F77=no
12370 hardcode_libdir_flag_spec_F77=
12371 hardcode_libdir_flag_spec_ld_F77=
12372 hardcode_libdir_separator_F77=
12373 hardcode_minus_L_F77=no
12374 hardcode_automatic_F77=no
12376 module_expsym_cmds_F77=
12377 link_all_deplibs_F77=unknown
12378 old_archive_cmds_F77=$old_archive_cmds
12379 no_undefined_flag_F77=
12380 whole_archive_flag_spec_F77=
12381 enable_shared_with_static_runtimes_F77=no
12383 # Source file extension for f77 test sources.
12386 # Object file extension for compiled f77 test sources.
12390 # Code to be used in simple compile tests
12391 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12393 # Code to be used in simple link tests
12394 lt_simple_link_test_code=" program t\n end\n"
12396 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12398 # If no C compiler was specified, use CC.
12401 # Allow CC to be a program name with arguments.
12405 # Allow CC to be a program name with arguments.
12410 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12412 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12413 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12414 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12415 echo "${ECHO_T}$can_build_shared" >&6
12417 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12418 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12419 test "$can_build_shared" = "no" && enable_shared=no
12421 # On AIX, shared libraries and static libraries use the same namespace, and
12422 # are all built from PIC.
12425 test "$enable_shared" = yes && enable_static=no
12426 if test -n "$RANLIB"; then
12427 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12428 postinstall_cmds='$RANLIB $lib'
12432 test "$enable_shared" = yes && enable_static=no
12435 echo "$as_me:$LINENO: result: $enable_shared" >&5
12436 echo "${ECHO_T}$enable_shared" >&6
12438 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12439 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12440 # Make sure either enable_shared or enable_static is yes.
12441 test "$enable_shared" = yes || enable_static=yes
12442 echo "$as_me:$LINENO: result: $enable_static" >&5
12443 echo "${ECHO_T}$enable_static" >&6
12445 test "$ld_shlibs_F77" = no && can_build_shared=no
12450 lt_prog_compiler_wl_F77=
12451 lt_prog_compiler_pic_F77=
12452 lt_prog_compiler_static_F77=
12454 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12455 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12457 if test "$GCC" = yes; then
12458 lt_prog_compiler_wl_F77='-Wl,'
12459 lt_prog_compiler_static_F77='-static'
12463 # All AIX code is PIC.
12464 if test "$host_cpu" = ia64; then
12465 # AIX 5 now supports IA64 processor
12466 lt_prog_compiler_static_F77='-Bstatic'
12471 # FIXME: we need at least 68020 code to build shared libraries, but
12472 # adding the `-m68020' flag to GCC prevents building anything better,
12474 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12477 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12478 # PIC is the default for these OSes.
12481 mingw* | pw32* | os2*)
12482 # This hack is so that the source file can tell whether it is being
12483 # built for inclusion in a dll (and should export symbols for example).
12484 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12487 darwin* | rhapsody*)
12488 # PIC is the default on this platform
12489 # Common symbols not allowed in MH_DYLIB files
12490 lt_prog_compiler_pic_F77='-fno-common'
12494 # Just because we use GCC doesn't mean we suddenly get shared libraries
12495 # on systems that don't support them.
12496 lt_prog_compiler_can_build_shared_F77=no
12501 if test -d /usr/nec; then
12502 lt_prog_compiler_pic_F77=-Kconform_pic
12507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12508 # not for PA HP-UX.
12509 case "$host_cpu" in
12514 lt_prog_compiler_pic_F77='-fPIC'
12520 lt_prog_compiler_pic_F77='-fPIC'
12524 # PORTME Check for flag to pass linker flags through the system compiler.
12527 lt_prog_compiler_wl_F77='-Wl,'
12528 if test "$host_cpu" = ia64; then
12529 # AIX 5 now supports IA64 processor
12530 lt_prog_compiler_static_F77='-Bstatic'
12532 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12536 mingw* | pw32* | os2*)
12537 # This hack is so that the source file can tell whether it is being
12538 # built for inclusion in a dll (and should export symbols for example).
12539 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12542 hpux9* | hpux10* | hpux11*)
12543 lt_prog_compiler_wl_F77='-Wl,'
12544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12545 # not for PA HP-UX.
12546 case "$host_cpu" in
12551 lt_prog_compiler_pic_F77='+Z'
12554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12555 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12558 irix5* | irix6* | nonstopux*)
12559 lt_prog_compiler_wl_F77='-Wl,'
12560 # PIC (with -KPIC) is the default.
12561 lt_prog_compiler_static_F77='-non_shared'
12565 lt_prog_compiler_pic_F77='-KPIC'
12566 lt_prog_compiler_static_F77='-Bstatic'
12572 lt_prog_compiler_wl_F77='-Wl,'
12573 lt_prog_compiler_pic_F77='-KPIC'
12574 lt_prog_compiler_static_F77='-static'
12577 lt_prog_compiler_wl_F77='-Wl,'
12578 # All Alpha code is PIC.
12579 lt_prog_compiler_static_F77='-non_shared'
12584 osf3* | osf4* | osf5*)
12585 lt_prog_compiler_wl_F77='-Wl,'
12586 # All OSF/1 code is PIC.
12587 lt_prog_compiler_static_F77='-non_shared'
12591 lt_prog_compiler_pic_F77='-Kpic'
12592 lt_prog_compiler_static_F77='-dn'
12596 lt_prog_compiler_wl_F77='-Wl,'
12597 lt_prog_compiler_pic_F77='-KPIC'
12598 lt_prog_compiler_static_F77='-Bstatic'
12602 lt_prog_compiler_wl_F77='-Qoption ld '
12603 lt_prog_compiler_pic_F77='-PIC'
12604 lt_prog_compiler_static_F77='-Bstatic'
12607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12608 lt_prog_compiler_wl_F77='-Wl,'
12609 lt_prog_compiler_pic_F77='-KPIC'
12610 lt_prog_compiler_static_F77='-Bstatic'
12614 if test -d /usr/nec ;then
12615 lt_prog_compiler_pic_F77='-Kconform_pic'
12616 lt_prog_compiler_static_F77='-Bstatic'
12621 lt_prog_compiler_pic_F77='-pic'
12622 lt_prog_compiler_static_F77='-Bstatic'
12626 lt_prog_compiler_can_build_shared_F77=no
12631 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12632 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12635 # Check to make sure the PIC flag actually works.
12637 if test -n "$lt_prog_compiler_pic_F77"; then
12638 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12639 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12640 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 lt_prog_compiler_pic_works_F77=no
12644 ac_outfile=conftest.$ac_objext
12645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12646 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12647 # Insert the option either (1) after the last *FLAGS variable, or
12648 # (2) before a word containing "conftest.", or (3) at the end.
12649 # Note that $ac_compile itself does not contain backslashes and begins
12650 # with a dollar sign (not a hyphen), so the echo should work correctly.
12651 # The option is referenced via a variable to avoid confusing sed.
12652 lt_compile=`echo "$ac_compile" | $SED \
12653 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12655 -e 's:$: $lt_compiler_flag:'`
12656 (eval echo "\"\$as_me:12656: $lt_compile\"" >&5)
12657 (eval "$lt_compile" 2>conftest.err)
12659 cat conftest.err >&5
12660 echo "$as_me:12660: \$? = $ac_status" >&5
12661 if (exit $ac_status) && test -s "$ac_outfile"; then
12662 # The compiler can only warn and ignore the option if not recognized
12663 # So say no if there are warnings
12664 if test ! -s conftest.err; then
12665 lt_prog_compiler_pic_works_F77=yes
12671 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12672 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12674 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12675 case $lt_prog_compiler_pic_F77 in
12677 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12680 lt_prog_compiler_pic_F77=
12681 lt_prog_compiler_can_build_shared_F77=no
12686 # For platforms which do not support PIC, -DPIC is meaningless:
12688 lt_prog_compiler_pic_F77=
12691 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12695 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12696 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12697 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 lt_cv_prog_compiler_c_o_F77=no
12701 $rm -r conftest 2>/dev/null
12705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12707 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12708 # that will create temporary files in the current directory regardless of
12709 # the output directory. Thus, making CWD read-only will cause this test
12710 # to fail, enabling locking or at least warning the user not to do parallel
12714 lt_compiler_flag="-o out/conftest2.$ac_objext"
12715 # Insert the option either (1) after the last *FLAGS variable, or
12716 # (2) before a word containing "conftest.", or (3) at the end.
12717 # Note that $ac_compile itself does not contain backslashes and begins
12718 # with a dollar sign (not a hyphen), so the echo should work correctly.
12719 lt_compile=`echo "$ac_compile" | $SED \
12720 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12722 -e 's:$: $lt_compiler_flag:'`
12723 (eval echo "\"\$as_me:12723: $lt_compile\"" >&5)
12724 (eval "$lt_compile" 2>out/conftest.err)
12726 cat out/conftest.err >&5
12727 echo "$as_me:12727: \$? = $ac_status" >&5
12728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12730 # The compiler can only warn and ignore the option if not recognized
12731 # So say no if there are warnings
12732 if test ! -s out/conftest.err; then
12733 lt_cv_prog_compiler_c_o_F77=yes
12737 $rm conftest* out/*
12744 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12745 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12748 hard_links="nottested"
12749 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12750 # do not overwrite the value of need_locks provided by the user
12751 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12752 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12757 ln conftest.a conftest.b 2>&5 || hard_links=no
12758 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12759 echo "$as_me:$LINENO: result: $hard_links" >&5
12760 echo "${ECHO_T}$hard_links" >&6
12761 if test "$hard_links" = no; then
12762 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12763 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12770 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12771 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12774 allow_undefined_flag_F77=
12775 enable_shared_with_static_runtimes_F77=no
12777 archive_expsym_cmds_F77=
12778 old_archive_From_new_cmds_F77=
12779 old_archive_from_expsyms_cmds_F77=
12780 export_dynamic_flag_spec_F77=
12781 whole_archive_flag_spec_F77=
12782 thread_safe_flag_spec_F77=
12783 hardcode_libdir_flag_spec_F77=
12784 hardcode_libdir_flag_spec_ld_F77=
12785 hardcode_libdir_separator_F77=
12786 hardcode_direct_F77=no
12787 hardcode_minus_L_F77=no
12788 hardcode_shlibpath_var_F77=unsupported
12789 link_all_deplibs_F77=unknown
12790 hardcode_automatic_F77=no
12792 module_expsym_cmds_F77=
12793 always_export_symbols_F77=no
12794 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12795 # include_expsyms should be a list of space-separated symbols to be *always*
12796 # included in the symbol list
12797 include_expsyms_F77=
12798 # exclude_expsyms can be an extended regexp of symbols to exclude
12799 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12800 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12801 # as well as any symbol that contains `d'.
12802 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12803 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12804 # platforms (ab)use it in PIC code, but their linkers get confused if
12805 # the symbol is explicitly referenced. Since portable code cannot
12806 # rely on this symbol name, it's probably fine to never include it in
12807 # preloaded symbol tables.
12808 extract_expsyms_cmds=
12811 cygwin* | mingw* | pw32*)
12812 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12813 # When not using gcc, we currently assume that we are using
12814 # Microsoft Visual C++.
12815 if test "$GCC" != yes; then
12825 if test "$with_gnu_ld" = yes; then
12826 # If archive_cmds runs LD, not CC, wlarc should be empty
12829 # See if GNU ld supports shared libraries.
12831 aix3* | aix4* | aix5*)
12832 # On AIX/PPC, the GNU linker is very broken
12833 if test "$host_cpu" != ia64; then
12837 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12838 *** to be unable to reliably create shared libraries on AIX.
12839 *** Therefore, libtool is disabling shared libraries support. If you
12840 *** really care for shared libraries, you may want to modify your PATH
12841 *** so that a non-GNU linker is found, and then restart.
12848 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)'
12849 hardcode_libdir_flag_spec_F77='-L$libdir'
12850 hardcode_minus_L_F77=yes
12852 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12853 # that the semantics of dynamic libraries on AmigaOS, at least up
12854 # to version 4, is to share data among multiple programs linked
12855 # with the same dynamic library. Since this doesn't match the
12856 # behavior of shared libraries on other platforms, we can't use
12862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12863 allow_undefined_flag_F77=unsupported
12864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12865 # support --undefined. This deserves some investigation. FIXME
12866 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12872 cygwin* | mingw* | pw32*)
12873 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12874 # as there is no search path for DLLs.
12875 hardcode_libdir_flag_spec_F77='-L$libdir'
12876 allow_undefined_flag_F77=unsupported
12877 always_export_symbols_F77=no
12878 enable_shared_with_static_runtimes_F77=yes
12879 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12881 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12882 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12883 # If the export-symbols file already is a .def file (1st line
12884 # is EXPORTS), use it as is; otherwise, prepend...
12885 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12886 cp $export_symbols $output_objdir/$soname.def;
12888 echo EXPORTS > $output_objdir/$soname.def;
12889 cat $export_symbols >> $output_objdir/$soname.def;
12891 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12899 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12902 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12903 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12908 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12912 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12913 *** create shared libraries on Solaris systems. Therefore, libtool
12914 *** is disabling shared libraries support. We urge you to upgrade GNU
12915 *** binutils to release 2.9.1 or newer. Another option is to modify
12916 *** your PATH or compiler configuration so that the native linker is
12917 *** used, and then restart.
12920 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12921 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12922 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12929 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12931 hardcode_direct_F77=yes
12932 hardcode_shlibpath_var_F77=no
12936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12937 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12938 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12945 if test "$ld_shlibs_F77" = yes; then
12946 runpath_var=LD_RUN_PATH
12947 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12948 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12949 # ancient GNU ld didn't support --whole-archive et. al.
12950 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12951 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12953 whole_archive_flag_spec_F77=
12957 # PORTME fill in a description of your system's linker (not GNU ld)
12960 allow_undefined_flag_F77=unsupported
12961 always_export_symbols_F77=yes
12962 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'
12963 # Note: this linker hardcodes the directories in LIBPATH if there
12964 # are no directories specified by -L.
12965 hardcode_minus_L_F77=yes
12966 if test "$GCC" = yes && test -z "$link_static_flag"; then
12967 # Neither direct hardcoding nor static linking is supported with a
12969 hardcode_direct_F77=unsupported
12974 if test "$host_cpu" = ia64; then
12975 # On IA64, the linker does run time linking by default, so we don't
12976 # have to do anything special.
12977 aix_use_runtimelinking=no
12978 exp_sym_flag='-Bexport'
12981 # If we're using GNU nm, then we don't want the "-C" option.
12982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12983 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12984 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'
12986 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'
12988 aix_use_runtimelinking=no
12990 # Test if we are trying to use run time linking or normal
12991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12992 # need to do runtime linking.
12993 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12994 for ld_flag in $LDFLAGS; do
12995 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12996 aix_use_runtimelinking=yes
13002 exp_sym_flag='-bexport'
13003 no_entry_flag='-bnoentry'
13006 # When large executables or shared objects are built, AIX ld can
13007 # have problems creating the table of contents. If linking a library
13008 # or program results in "error TOC overflow" add -mminimal-toc to
13009 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13012 archive_cmds_F77=''
13013 hardcode_direct_F77=yes
13014 hardcode_libdir_separator_F77=':'
13015 link_all_deplibs_F77=yes
13017 if test "$GCC" = yes; then
13018 case $host_os in aix4.012|aix4.012.*)
13019 # We only want to do this on AIX 4.2 and lower, the check
13020 # below for broken collect2 doesn't work under 4.3+
13021 collect2name=`${CC} -print-prog-name=collect2`
13022 if test -f "$collect2name" && \
13023 strings "$collect2name" | grep resolve_lib_name >/dev/null
13025 # We have reworked collect2
13026 hardcode_direct_F77=yes
13028 # We have old collect2
13029 hardcode_direct_F77=unsupported
13030 # It fails to find uninstalled libraries when the uninstalled
13031 # path is not listed in the libpath. Setting hardcode_minus_L
13032 # to unsupported forces relinking
13033 hardcode_minus_L_F77=yes
13034 hardcode_libdir_flag_spec_F77='-L$libdir'
13035 hardcode_libdir_separator_F77=
13038 shared_flag='-shared'
13041 if test "$host_cpu" = ia64; then
13042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13043 # chokes on -Wl,-G. The following line is correct:
13046 if test "$aix_use_runtimelinking" = yes; then
13047 shared_flag='${wl}-G'
13049 shared_flag='${wl}-bM:SRE'
13054 # It seems that -bexpall does not export symbols beginning with
13055 # underscore (_), so it is better to generate a list of symbols to export.
13056 always_export_symbols_F77=yes
13057 if test "$aix_use_runtimelinking" = yes; then
13058 # Warning - without using the other runtime loading flags (-brtl),
13059 # -berok will link without error, but may produce a broken library.
13060 allow_undefined_flag_F77='-berok'
13061 # Determine the default libpath from the value encoded in an empty executable.
13062 cat >conftest.$ac_ext <<_ACEOF
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13069 (eval $ac_link) 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -s conftest$ac_exeext'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13080 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13082 # Check for a 64-bit object if we didn't find anything.
13083 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; }
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13091 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13093 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13094 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"
13096 if test "$host_cpu" = ia64; then
13097 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13098 allow_undefined_flag_F77="-z nodefs"
13099 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"
13101 # Determine the default libpath from the value encoded in an empty executable.
13102 cat >conftest.$ac_ext <<_ACEOF
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13109 (eval $ac_link) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13122 # Check for a 64-bit object if we didn't find anything.
13123 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; }
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13133 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13134 # Warning - without using the other run time loading flags,
13135 # -berok will link without error, but may produce a broken library.
13136 no_undefined_flag_F77=' ${wl}-bernotok'
13137 allow_undefined_flag_F77=' ${wl}-berok'
13138 # -bexpall does not export symbols beginning with underscore (_)
13139 always_export_symbols_F77=yes
13140 # Exported symbols can be pulled into shared objects from archives
13141 whole_archive_flag_spec_F77=' '
13142 archive_cmds_need_lc_F77=yes
13143 # This is similar to how AIX traditionally builds it's shared libraries.
13144 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'
13150 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)'
13151 hardcode_libdir_flag_spec_F77='-L$libdir'
13152 hardcode_minus_L_F77=yes
13153 # see comment about different semantics on the GNU ld section
13158 export_dynamic_flag_spec_F77=-rdynamic
13161 cygwin* | mingw* | pw32*)
13162 # When not using gcc, we currently assume that we are using
13163 # Microsoft Visual C++.
13164 # hardcode_libdir_flag_spec is actually meaningless, as there is
13165 # no search path for DLLs.
13166 hardcode_libdir_flag_spec_F77=' '
13167 allow_undefined_flag_F77=unsupported
13168 # Tell ltmain to make .lib files, not .a files.
13170 # Tell ltmain to make .dll files, not .so files.
13172 # FIXME: Setting linknames here is a bad hack.
13173 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13174 # The linker will automatically build a .lib file if we build a DLL.
13175 old_archive_From_new_cmds_F77='true'
13176 # FIXME: Should let the user specify the lib program.
13177 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13178 fix_srcfile_path='`cygpath -w "$srcfile"`'
13179 enable_shared_with_static_runtimes_F77=yes
13182 darwin* | rhapsody*)
13183 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13184 archive_cmds_need_lc_F77=no
13186 rhapsody* | darwin1.[012])
13187 allow_undefined_flag_F77='-undefined suppress'
13190 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13193 # FIXME: Relying on posixy $() will cause problems for
13194 # cross-compilation, but unfortunately the echo tests do not
13195 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13196 # `"' quotes if we put them in here... so don't!
13197 lt_int_apple_cc_single_mod=no
13198 output_verbose_link_cmd='echo'
13199 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13200 lt_int_apple_cc_single_mod=yes
13202 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13203 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13205 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'
13207 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13209 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13210 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}'
13212 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}'
13214 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}'
13215 hardcode_direct_F77=no
13216 hardcode_automatic_F77=yes
13217 hardcode_shlibpath_var_F77=unsupported
13218 whole_archive_flag_spec_F77='-all_load $convenience'
13219 link_all_deplibs_F77=yes
13224 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13225 hardcode_libdir_flag_spec_F77='-L$libdir'
13226 hardcode_shlibpath_var_F77=no
13233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13234 # support. Future versions do this automatically, but an explicit c++rt0.o
13235 # does not break anything, and helps significantly (at the cost of a little
13238 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13239 hardcode_libdir_flag_spec_F77='-R$libdir'
13240 hardcode_direct_F77=yes
13241 hardcode_shlibpath_var_F77=no
13244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13246 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13247 hardcode_direct_F77=yes
13248 hardcode_minus_L_F77=yes
13249 hardcode_shlibpath_var_F77=no
13252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13254 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13255 hardcode_libdir_flag_spec_F77='-R$libdir'
13256 hardcode_direct_F77=yes
13257 hardcode_shlibpath_var_F77=no
13261 if test "$GCC" = yes; then
13262 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'
13264 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'
13266 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13267 hardcode_libdir_separator_F77=:
13268 hardcode_direct_F77=yes
13270 # hardcode_minus_L: Not really in the search PATH,
13271 # but as the default location of the library.
13272 hardcode_minus_L_F77=yes
13273 export_dynamic_flag_spec_F77='${wl}-E'
13277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13278 case "$host_cpu" in
13280 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13283 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13287 case "$host_cpu" in
13289 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13292 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13296 if test "$with_gnu_ld" = no; then
13297 case "$host_cpu" in
13299 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13300 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13301 hardcode_libdir_separator_F77=:
13302 hardcode_direct_F77=no
13303 hardcode_shlibpath_var_F77=no
13306 hardcode_libdir_flag_spec_F77='-L$libdir'
13307 hardcode_direct_F77=no
13308 hardcode_shlibpath_var_F77=no
13310 # hardcode_minus_L: Not really in the search PATH,
13311 # but as the default location of the library.
13312 hardcode_minus_L_F77=yes
13315 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13316 hardcode_libdir_separator_F77=:
13317 hardcode_direct_F77=yes
13318 export_dynamic_flag_spec_F77='${wl}-E'
13320 # hardcode_minus_L: Not really in the search PATH,
13321 # but as the default location of the library.
13322 hardcode_minus_L_F77=yes
13328 irix5* | irix6* | nonstopux*)
13329 if test "$GCC" = yes; then
13330 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'
13332 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'
13333 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13335 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13336 hardcode_libdir_separator_F77=:
13337 link_all_deplibs_F77=yes
13341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13342 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13344 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13346 hardcode_libdir_flag_spec_F77='-R$libdir'
13347 hardcode_direct_F77=yes
13348 hardcode_shlibpath_var_F77=no
13352 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13353 hardcode_direct_F77=yes
13354 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13355 hardcode_libdir_separator_F77=:
13356 hardcode_shlibpath_var_F77=no
13360 hardcode_direct_F77=yes
13361 hardcode_shlibpath_var_F77=no
13362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13363 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13364 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13365 export_dynamic_flag_spec_F77='${wl}-E'
13368 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13369 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13370 hardcode_libdir_flag_spec_F77='-R$libdir'
13373 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13374 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13381 hardcode_libdir_flag_spec_F77='-L$libdir'
13382 hardcode_minus_L_F77=yes
13383 allow_undefined_flag_F77=unsupported
13384 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'
13385 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13389 if test "$GCC" = yes; then
13390 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13391 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'
13393 allow_undefined_flag_F77=' -expect_unresolved \*'
13394 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'
13396 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13397 hardcode_libdir_separator_F77=:
13400 osf4* | osf5*) # as osf3* with the addition of -msym flag
13401 if test "$GCC" = yes; then
13402 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13403 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'
13404 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13406 allow_undefined_flag_F77=' -expect_unresolved \*'
13407 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'
13408 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~
13409 $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'
13411 # Both c and cxx compiler support -rpath directly
13412 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13414 hardcode_libdir_separator_F77=:
13418 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13419 hardcode_shlibpath_var_F77=no
13420 export_dynamic_flag_spec_F77='${wl}-Bexport'
13421 runpath_var=LD_RUN_PATH
13422 hardcode_runpath_var=yes
13426 no_undefined_flag_F77=' -z text'
13427 if test "$GCC" = yes; then
13428 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13429 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13430 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13432 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13433 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13434 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13436 hardcode_libdir_flag_spec_F77='-R$libdir'
13437 hardcode_shlibpath_var_F77=no
13439 solaris2.[0-5] | solaris2.[0-5].*) ;;
13440 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13441 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13443 link_all_deplibs_F77=yes
13447 if test "x$host_vendor" = xsequent; then
13448 # Use $CC to link under sequent, because it throws in some extra .o
13449 # files that make .init and .fini sections work.
13450 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13452 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13454 hardcode_libdir_flag_spec_F77='-L$libdir'
13455 hardcode_direct_F77=yes
13456 hardcode_minus_L_F77=yes
13457 hardcode_shlibpath_var_F77=no
13461 case $host_vendor in
13463 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13464 hardcode_direct_F77=yes # is this really true???
13467 ## LD is ld it makes a PLAMLIB
13468 ## CC just makes a GrossModule.
13469 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13470 reload_cmds_F77='$CC -r -o $output$reload_objs'
13471 hardcode_direct_F77=no
13474 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13475 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13478 runpath_var='LD_RUN_PATH'
13479 hardcode_shlibpath_var_F77=no
13483 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13484 hardcode_shlibpath_var_F77=no
13485 export_dynamic_flag_spec_F77='-Bexport'
13489 if test -d /usr/nec; then
13490 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13491 hardcode_shlibpath_var_F77=no
13492 runpath_var=LD_RUN_PATH
13493 hardcode_runpath_var=yes
13499 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13500 hardcode_direct_F77=yes
13501 hardcode_minus_L_F77=no
13502 hardcode_shlibpath_var_F77=no
13503 hardcode_runpath_var=yes
13504 runpath_var=LD_RUN_PATH
13507 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13508 no_undefined_flag_F77='${wl}-z ${wl}text'
13509 if test "$GCC" = yes; then
13510 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13512 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13514 runpath_var='LD_RUN_PATH'
13515 hardcode_shlibpath_var_F77=no
13519 no_undefined_flag_F77=' -z text'
13520 # $CC -shared without GNU ld will not create a library from C++
13521 # object files and a static libstdc++, better avoid it by now
13522 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13524 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13525 hardcode_libdir_flag_spec_F77=
13526 hardcode_shlibpath_var_F77=no
13527 runpath_var='LD_RUN_PATH'
13531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_libdir_flag_spec_F77='-L$libdir'
13533 hardcode_shlibpath_var_F77=no
13542 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13543 echo "${ECHO_T}$ld_shlibs_F77" >&6
13544 test "$ld_shlibs_F77" = no && can_build_shared=no
13546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13547 if test "$GCC" = yes; then
13548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13552 # Do we need to explicitly link libc?
13554 case "x$archive_cmds_need_lc_F77" in
13556 # Assume -lc should be added
13557 archive_cmds_need_lc_F77=yes
13559 if test "$enable_shared" = yes && test "$GCC" = yes; then
13560 case $archive_cmds_F77 in
13562 # FIXME: we may have to deal with multi-command sequences.
13565 # Test whether the compiler implicitly links with -lc since on some
13566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13567 # to ld, don't add -lc before -lgcc.
13568 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13569 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } 2>conftest.err; then
13580 libobjs=conftest.$ac_objext
13582 wl=$lt_prog_compiler_wl_F77
13588 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13589 allow_undefined_flag_F77=
13590 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13591 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }
13596 archive_cmds_need_lc_F77=no
13598 archive_cmds_need_lc_F77=yes
13600 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13602 cat conftest.err 1>&5
13605 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13606 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13613 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13614 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13615 hardcode_action_F77=
13616 if test -n "$hardcode_libdir_flag_spec_F77" || \
13617 test -n "$runpath_var F77" || \
13618 test "X$hardcode_automatic_F77"="Xyes" ; then
13620 # We can hardcode non-existant directories.
13621 if test "$hardcode_direct_F77" != no &&
13622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13623 # have to relink, otherwise we might link with an installed library
13624 # when we should be linking with a yet-to-be-installed one
13625 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13626 test "$hardcode_minus_L_F77" != no; then
13627 # Linking always hardcodes the temporary library directory.
13628 hardcode_action_F77=relink
13630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13631 hardcode_action_F77=immediate
13634 # We cannot hardcode anything, or else we can only hardcode existing
13636 hardcode_action_F77=unsupported
13638 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13639 echo "${ECHO_T}$hardcode_action_F77" >&6
13641 if test "$hardcode_action_F77" = relink; then
13642 # Fast installation is not supported
13643 enable_fast_install=no
13644 elif test "$shlibpath_overrides_runpath" = yes ||
13645 test "$enable_shared" = no; then
13646 # Fast installation is not necessary
13647 enable_fast_install=needless
13652 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13653 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13654 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13656 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13657 echo "$as_me:$LINENO: result: yes" >&5
13658 echo "${ECHO_T}yes" >&6
13660 # FIXME - insert some real tests, host_os isn't really good enough
13663 if test -n "$STRIP" ; then
13664 striplib="$STRIP -x"
13665 echo "$as_me:$LINENO: result: yes" >&5
13666 echo "${ECHO_T}yes" >&6
13668 echo "$as_me:$LINENO: result: no" >&5
13669 echo "${ECHO_T}no" >&6
13673 echo "$as_me:$LINENO: result: no" >&5
13674 echo "${ECHO_T}no" >&6
13679 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13680 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13681 library_names_spec=
13682 libname_spec='lib$name'
13686 postuninstall_cmds=
13690 shlibpath_overrides_runpath=unknown
13692 dynamic_linker="$host_os ld.so"
13693 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13694 if test "$GCC" = yes; then
13695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13696 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13697 # if the path contains ";" then we assume it to be the separator
13698 # otherwise default to the standard path separator (i.e. ":") - it is
13699 # assumed that no part of a normal pathname contains ";" but that should
13700 # okay in the real world where ";" in dirpaths is itself problematic.
13701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13708 need_lib_prefix=unknown
13709 hardcode_into_libs=no
13711 # when you set need_version to no, make sure it does not cause -set_version
13712 # flags to be left without arguments
13713 need_version=unknown
13718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13719 shlibpath_var=LIBPATH
13721 # AIX 3 has no versioning support, so we append a major version to the name.
13722 soname_spec='${libname}${release}${shared_ext}$major'
13729 hardcode_into_libs=yes
13730 if test "$host_cpu" = ia64; then
13731 # AIX 5 supports IA64
13732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13733 shlibpath_var=LD_LIBRARY_PATH
13735 # With GCC up to 2.95.x, collect2 would create an import file
13736 # for dependence libraries. The import file would start with
13737 # the line `#! .'. This would cause the generated library to
13738 # depend on `.', always an invalid library. This was fixed in
13739 # development snapshots of GCC prior to 3.0.
13741 aix4 | aix4.[01] | aix4.[01].*)
13742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13744 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13747 can_build_shared=no
13751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13752 # soname into executable. Probably we can add versioning support to
13753 # collect2, so additional links can be useful in future.
13754 if test "$aix_use_runtimelinking" = yes; then
13755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13756 # instead of lib<name>.a to let people know that these are not
13757 # typical AIX shared libraries.
13758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760 # We preserve .a as extension for shared libraries through AIX4.2
13761 # and later when we are not doing run time linking.
13762 library_names_spec='${libname}${release}.a $libname.a'
13763 soname_spec='${libname}${release}${shared_ext}$major'
13765 shlibpath_var=LIBPATH
13770 library_names_spec='$libname.ixlibrary $libname.a'
13771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13772 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'
13776 library_names_spec='${libname}${shared_ext}'
13777 dynamic_linker="$host_os ld.so"
13778 shlibpath_var=LIBRARY_PATH
13784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785 soname_spec='${libname}${release}${shared_ext}$major'
13786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13787 shlibpath_var=LD_LIBRARY_PATH
13788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13790 # the default ld.so.conf also contains /usr/contrib/lib and
13791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13792 # libtool to hard-code these into programs
13795 cygwin* | mingw* | pw32*)
13796 version_type=windows
13801 case $GCC,$host_os in
13802 yes,cygwin* | yes,mingw* | yes,pw32*)
13803 library_names_spec='$libname.dll.a'
13804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13805 postinstall_cmds='base_file=`basename \${file}`~
13806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13807 dldir=$destdir/`dirname \$dlpath`~
13808 test -d \$dldir || mkdir -p \$dldir~
13809 $install_prog $dir/$dlname \$dldir/$dlname'
13810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13811 dlpath=$dir/\$dldll~
13813 shlibpath_overrides_runpath=yes
13817 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13818 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13819 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13822 # MinGW DLLs use traditional 'lib' prefix
13823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13825 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13826 # It is most probably a Windows format PATH printed by
13827 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13828 # path with ; separators, and with drive letters. We can handle the
13829 # drive letters (cygwin fileutils understands them), so leave them,
13830 # especially as we might pass files found there to a mingw objdump,
13831 # which wouldn't understand a cygwinified path. Ahh.
13832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13838 # pw32 DLLs use 'pw' prefix rather than 'lib'
13839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13848 dynamic_linker='Win32 ld.exe'
13849 # FIXME: first we should search . and the directory the executable is in
13853 darwin* | rhapsody*)
13854 dynamic_linker="$host_os dyld"
13855 version_type=darwin
13858 # FIXME: Relying on posixy $() will cause problems for
13859 # cross-compilation, but unfortunately the echo tests do not
13860 # yet detect zsh echo's removal of \ escapes.
13861 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13862 soname_spec='${libname}${release}${major}$shared_ext'
13863 shlibpath_overrides_runpath=yes
13864 shlibpath_var=DYLD_LIBRARY_PATH
13865 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13866 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13867 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13868 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"`
13870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13878 soname_spec='${libname}${release}${shared_ext}$major'
13879 shlibpath_var=LD_LIBRARY_PATH
13887 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13888 version_type=freebsd-$objformat
13889 case $version_type in
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13900 shlibpath_var=LD_LIBRARY_PATH
13903 shlibpath_overrides_runpath=yes
13905 freebsd3.01* | freebsdelf3.01*)
13906 shlibpath_overrides_runpath=yes
13907 hardcode_into_libs=yes
13910 shlibpath_overrides_runpath=no
13911 hardcode_into_libs=yes
13920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13921 soname_spec='${libname}${release}${shared_ext}$major'
13922 shlibpath_var=LD_LIBRARY_PATH
13923 hardcode_into_libs=yes
13926 hpux9* | hpux10* | hpux11*)
13927 # Give a soname corresponding to the major version so that dld.sl refuses to
13928 # link against other versions.
13932 case "$host_cpu" in
13935 hardcode_into_libs=yes
13936 dynamic_linker="$host_os dld.so"
13937 shlibpath_var=LD_LIBRARY_PATH
13938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13940 soname_spec='${libname}${release}${shared_ext}$major'
13941 if test "X$HPUX_IA64_MODE" = X32; then
13942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13950 hardcode_into_libs=yes
13951 dynamic_linker="$host_os dld.sl"
13952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13955 soname_spec='${libname}${release}${shared_ext}$major'
13956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13961 dynamic_linker="$host_os dld.sl"
13962 shlibpath_var=SHLIB_PATH
13963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13965 soname_spec='${libname}${release}${shared_ext}$major'
13968 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13969 postinstall_cmds='chmod 555 $lib'
13972 irix5* | irix6* | nonstopux*)
13974 nonstopux*) version_type=nonstopux ;;
13976 if test "$lt_cv_prog_gnu_ld" = yes; then
13984 soname_spec='${libname}${release}${shared_ext}$major'
13985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13987 irix5* | nonstopux*)
13988 libsuff= shlibsuff=
13991 case $LD in # libtool.m4 will add one of these switches to LD
13992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13993 libsuff= shlibsuff= libmagic=32-bit;;
13994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13995 libsuff=32 shlibsuff=N32 libmagic=N32;;
13996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13998 *) libsuff= shlibsuff= libmagic=never-match;;
14002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14003 shlibpath_overrides_runpath=no
14004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14006 hardcode_into_libs=yes
14009 # No shared lib support for Linux oldld, aout, or coff.
14010 linux*oldld* | linux*aout* | linux*coff*)
14014 # This must be Linux ELF.
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14020 soname_spec='${libname}${release}${shared_ext}$major'
14021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14022 shlibpath_var=LD_LIBRARY_PATH
14023 shlibpath_overrides_runpath=no
14024 # This implies no fast_install, which is unacceptable.
14025 # Some rework will be needed to allow for fast_install
14026 # before this can be enabled.
14027 hardcode_into_libs=yes
14029 # We used to test for /lib/ld.so.1 and disable shared libraries on
14030 # powerpc, because MkLinux only supported shared libraries with the
14031 # GNU dynamic linker. Since this was broken with cross compilers,
14032 # most powerpc-linux boxes support dynamic linking these days and
14033 # people can always --disable-shared, the test was removed, and we
14034 # assume the GNU/Linux dynamic linker is in use.
14035 dynamic_linker='GNU/Linux ld.so'
14042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14045 dynamic_linker='NetBSD (a.out) ld.so'
14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14048 soname_spec='${libname}${release}${shared_ext}$major'
14049 dynamic_linker='NetBSD ld.elf_so'
14051 shlibpath_var=LD_LIBRARY_PATH
14052 shlibpath_overrides_runpath=yes
14053 hardcode_into_libs=yes
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059 shlibpath_var=LD_LIBRARY_PATH
14060 shlibpath_overrides_runpath=yes
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 shlibpath_var=LD_LIBRARY_PATH
14070 shlibpath_overrides_runpath=yes
14077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14082 openbsd2.[89] | openbsd2.[89].*)
14083 shlibpath_overrides_runpath=no
14086 shlibpath_overrides_runpath=yes
14090 shlibpath_overrides_runpath=yes
14095 libname_spec='$name'
14098 library_names_spec='$libname${shared_ext} $libname.a'
14099 dynamic_linker='OS/2 ld.exe'
14100 shlibpath_var=LIBPATH
14103 osf3* | osf4* | osf5*)
14107 soname_spec='${libname}${release}${shared_ext}$major'
14108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14116 soname_spec='${libname}${release}${shared_ext}$major'
14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118 shlibpath_var=LD_LIBRARY_PATH
14125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126 soname_spec='${libname}${release}${shared_ext}$major'
14127 shlibpath_var=LD_LIBRARY_PATH
14128 shlibpath_overrides_runpath=yes
14129 hardcode_into_libs=yes
14130 # ldd complains unless libraries are executable
14131 postinstall_cmds='chmod +x $lib'
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 shlibpath_overrides_runpath=yes
14140 if test "$with_gnu_ld" = yes; then
14146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14149 soname_spec='${libname}${release}${shared_ext}$major'
14150 shlibpath_var=LD_LIBRARY_PATH
14151 case $host_vendor in
14153 shlibpath_overrides_runpath=no
14155 export_dynamic_flag_spec='${wl}-Blargedynsym'
14156 runpath_var=LD_RUN_PATH
14164 shlibpath_overrides_runpath=no
14165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14171 if test -d /usr/nec ;then
14173 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14174 soname_spec='$libname${shared_ext}.$major'
14175 shlibpath_var=LD_LIBRARY_PATH
14181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14182 soname_spec='${libname}${release}${shared_ext}$major'
14183 shlibpath_var=LD_LIBRARY_PATH
14190 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14191 echo "${ECHO_T}$dynamic_linker" >&6
14192 test "$dynamic_linker" = no && can_build_shared=no
14195 # The else clause should only fire when bootstrapping the
14196 # libtool distribution, otherwise you forgot to ship ltmain.sh
14197 # with your package, and you will get complaints that there are
14198 # no rules to generate ltmain.sh.
14199 if test -f "$ltmain"; then
14200 # See if we are running on zsh, and set the options which allow our commands through
14201 # without removal of \ escapes.
14202 if test -n "${ZSH_VERSION+set}" ; then
14203 setopt NO_GLOB_SUBST
14205 # Now quote all the things that may contain metacharacters while being
14206 # careful not to overquote the AC_SUBSTed values. We take copies of the
14207 # variables and quote the copies for generation of the libtool script.
14208 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14209 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14210 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14211 deplibs_check_method reload_flag reload_cmds need_locks \
14212 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14213 lt_cv_sys_global_symbol_to_c_name_address \
14214 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14215 old_postinstall_cmds old_postuninstall_cmds \
14219 lt_prog_compiler_wl_F77 \
14220 lt_prog_compiler_pic_F77 \
14221 lt_prog_compiler_static_F77 \
14222 lt_prog_compiler_no_builtin_flag_F77 \
14223 export_dynamic_flag_spec_F77 \
14224 thread_safe_flag_spec_F77 \
14225 whole_archive_flag_spec_F77 \
14226 enable_shared_with_static_runtimes_F77 \
14227 old_archive_cmds_F77 \
14228 old_archive_from_new_cmds_F77 \
14229 predep_objects_F77 \
14230 postdep_objects_F77 \
14233 compiler_lib_search_path_F77 \
14235 archive_expsym_cmds_F77 \
14236 postinstall_cmds_F77 \
14237 postuninstall_cmds_F77 \
14238 old_archive_from_expsyms_cmds_F77 \
14239 allow_undefined_flag_F77 \
14240 no_undefined_flag_F77 \
14241 export_symbols_cmds_F77 \
14242 hardcode_libdir_flag_spec_F77 \
14243 hardcode_libdir_flag_spec_ld_F77 \
14244 hardcode_libdir_separator_F77 \
14245 hardcode_automatic_F77 \
14247 module_expsym_cmds_F77 \
14248 lt_cv_prog_compiler_c_o_F77 \
14249 exclude_expsyms_F77 \
14250 include_expsyms_F77; do
14253 old_archive_cmds_F77 | \
14254 old_archive_from_new_cmds_F77 | \
14255 archive_cmds_F77 | \
14256 archive_expsym_cmds_F77 | \
14257 module_cmds_F77 | \
14258 module_expsym_cmds_F77 | \
14259 old_archive_from_expsyms_cmds_F77 | \
14260 export_symbols_cmds_F77 | \
14261 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14262 postinstall_cmds | postuninstall_cmds | \
14263 old_postinstall_cmds | old_postuninstall_cmds | \
14264 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14265 # Double-quote double-evaled strings.
14266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14269 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14275 *'\$0 --fallback-echo"')
14276 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14282 cat <<__EOF__ >> "$cfgfile"
14283 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14285 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14287 # Shell to use when invoking shell scripts.
14290 # Whether or not to build shared libraries.
14291 build_libtool_libs=$enable_shared
14293 # Whether or not to build static libraries.
14294 build_old_libs=$enable_static
14296 # Whether or not to add -lc for building shared libraries.
14297 build_libtool_need_lc=$archive_cmds_need_lc_F77
14299 # Whether or not to disallow shared libs when runtime libs are static
14300 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14302 # Whether or not to optimize for fast installation.
14303 fast_install=$enable_fast_install
14306 host_alias=$host_alias
14309 # An echo program that does not interpret backslashes.
14314 AR_FLAGS=$lt_AR_FLAGS
14319 # A language-specific compiler.
14320 CC=$lt_compiler_F77
14322 # Is the compiler the GNU C compiler?
14328 # The linker used to build libraries.
14331 # Whether we need hard or soft links.
14334 # A BSD-compatible nm program.
14337 # A symbol stripping program
14340 # Used to examine libraries when file_magic_cmd begins "file"
14341 MAGIC_CMD=$MAGIC_CMD
14343 # Used on cygwin: DLL creation program.
14346 # Used on cygwin: object dumper.
14349 # Used on cygwin: assembler.
14352 # The name of the directory that contains temporary libtool files.
14355 # How to create reloadable object files.
14356 reload_flag=$lt_reload_flag
14357 reload_cmds=$lt_reload_cmds
14359 # How to pass a linker flag through the compiler.
14360 wl=$lt_lt_prog_compiler_wl_F77
14362 # Object file suffix (normally "o").
14363 objext="$ac_objext"
14365 # Old archive suffix (normally "a").
14368 # Shared library suffix (normally ".so").
14371 # Executable file suffix (normally "").
14374 # Additional compiler flags for building library objects.
14375 pic_flag=$lt_lt_prog_compiler_pic_F77
14378 # What is the maximum length of a command?
14379 max_cmd_len=$lt_cv_sys_max_cmd_len
14381 # Does compiler simultaneously support -c and -o options?
14382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14384 # Must we lock files when doing compilation ?
14385 need_locks=$lt_need_locks
14387 # Do we need the lib prefix for modules?
14388 need_lib_prefix=$need_lib_prefix
14390 # Do we need a version for libraries?
14391 need_version=$need_version
14393 # Whether dlopen is supported.
14394 dlopen_support=$enable_dlopen
14396 # Whether dlopen of programs is supported.
14397 dlopen_self=$enable_dlopen_self
14399 # Whether dlopen of statically linked programs is supported.
14400 dlopen_self_static=$enable_dlopen_self_static
14402 # Compiler flag to prevent dynamic linking.
14403 link_static_flag=$lt_lt_prog_compiler_static_F77
14405 # Compiler flag to turn off builtin functions.
14406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14408 # Compiler flag to allow reflexive dlopens.
14409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14411 # Compiler flag to generate shared objects directly from archives.
14412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14414 # Compiler flag to generate thread-safe objects.
14415 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14417 # Library versioning type.
14418 version_type=$version_type
14420 # Format of library name prefix.
14421 libname_spec=$lt_libname_spec
14423 # List of archive names. First name is the real one, the rest are links.
14424 # The last name is the one that the linker finds with -lNAME.
14425 library_names_spec=$lt_library_names_spec
14427 # The coded name of the library, if different from the real name.
14428 soname_spec=$lt_soname_spec
14430 # Commands used to build and install an old-style archive.
14432 old_archive_cmds=$lt_old_archive_cmds_F77
14433 old_postinstall_cmds=$lt_old_postinstall_cmds
14434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14436 # Create an old-style archive from a shared archive.
14437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14439 # Create a temporary old-style archive to link instead of a shared archive.
14440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14442 # Commands used to build and install a shared archive.
14443 archive_cmds=$lt_archive_cmds_F77
14444 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14445 postinstall_cmds=$lt_postinstall_cmds
14446 postuninstall_cmds=$lt_postuninstall_cmds
14448 # Commands used to build a loadable module (assumed same as above if empty)
14449 module_cmds=$lt_module_cmds_F77
14450 module_expsym_cmds=$lt_module_expsym_cmds_F77
14452 # Commands to strip libraries.
14453 old_striplib=$lt_old_striplib
14454 striplib=$lt_striplib
14456 # Dependencies to place before the objects being linked to create a
14458 predep_objects=$lt_predep_objects_F77
14460 # Dependencies to place after the objects being linked to create a
14462 postdep_objects=$lt_postdep_objects_F77
14464 # Dependencies to place before the objects being linked to create a
14466 predeps=$lt_predeps_F77
14468 # Dependencies to place after the objects being linked to create a
14470 postdeps=$lt_postdeps_F77
14472 # The library search path used internally by the compiler when linking
14473 # a shared library.
14474 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14476 # Method to check whether dependent libraries are shared objects.
14477 deplibs_check_method=$lt_deplibs_check_method
14479 # Command to use when deplibs_check_method == file_magic.
14480 file_magic_cmd=$lt_file_magic_cmd
14482 # Flag that allows shared libraries with undefined symbols to be built.
14483 allow_undefined_flag=$lt_allow_undefined_flag_F77
14485 # Flag that forces no undefined symbols.
14486 no_undefined_flag=$lt_no_undefined_flag_F77
14488 # Commands used to finish a libtool library installation in a directory.
14489 finish_cmds=$lt_finish_cmds
14491 # Same as above, but a single script fragment to be evaled but not shown.
14492 finish_eval=$lt_finish_eval
14494 # Take the output of nm and produce a listing of raw symbols and C names.
14495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14497 # Transform the output of nm in a proper C declaration
14498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14500 # Transform the output of nm in a C name address pair
14501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14503 # This is the shared library runtime path variable.
14504 runpath_var=$runpath_var
14506 # This is the shared library path variable.
14507 shlibpath_var=$shlibpath_var
14509 # Is shlibpath searched before the hard-coded library search path?
14510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14512 # How to hardcode a shared library path into an executable.
14513 hardcode_action=$hardcode_action_F77
14515 # Whether we should hardcode library paths into libraries.
14516 hardcode_into_libs=$hardcode_into_libs
14518 # Flag to hardcode \$libdir into a binary during linking.
14519 # This must work even if \$libdir does not exist.
14520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14522 # If ld is used when linking, flag to hardcode \$libdir into
14523 # a binary during linking. This must work even if \$libdir does
14525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14527 # Whether we need a single -rpath flag with a separated argument.
14528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14531 # resulting binary.
14532 hardcode_direct=$hardcode_direct_F77
14534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14535 # resulting binary.
14536 hardcode_minus_L=$hardcode_minus_L_F77
14538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14539 # the resulting binary.
14540 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14542 # Set to yes if building a shared library automatically hardcodes DIR into the library
14543 # and all subsequent libraries and executables linked against it.
14544 hardcode_automatic=$hardcode_automatic_F77
14546 # Variables whose values should be saved in libtool wrapper scripts and
14547 # restored at relink time.
14548 variables_saved_for_relink="$variables_saved_for_relink"
14550 # Whether libtool must link a program against all its dependency libraries.
14551 link_all_deplibs=$link_all_deplibs_F77
14553 # Compile-time system search path for libraries
14554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14556 # Run-time system search path for libraries
14557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14559 # Fix the shell variable \$srcfile for the compiler.
14560 fix_srcfile_path="$fix_srcfile_path_F77"
14562 # Set to yes if exported symbols are required.
14563 always_export_symbols=$always_export_symbols_F77
14565 # The commands to list exported symbols.
14566 export_symbols_cmds=$lt_export_symbols_cmds_F77
14568 # The commands to extract the exported symbol list from a shared archive.
14569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14571 # Symbols that should not be listed in the preloaded symbols.
14572 exclude_expsyms=$lt_exclude_expsyms_F77
14574 # Symbols that must always be exported.
14575 include_expsyms=$lt_include_expsyms_F77
14577 # ### END LIBTOOL TAG CONFIG: $tagname
14583 # If there is no Makefile yet, we rely on a make rule to execute
14584 # `config.status --recheck' to rerun these tests and create the
14585 # libtool script then.
14586 test -f Makefile && make "$ltmain"
14591 ac_cpp='$CPP $CPPFLAGS'
14592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14604 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14608 # Source file extension for Java test sources.
14611 # Object file extension for compiled Java test sources.
14615 # Code to be used in simple compile tests
14616 lt_simple_compile_test_code="class foo {}\n"
14618 # Code to be used in simple link tests
14619 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14621 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14623 # If no C compiler was specified, use CC.
14626 # Allow CC to be a program name with arguments.
14630 # Allow CC to be a program name with arguments.
14636 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14637 archive_cmds_need_lc_GCJ=no
14640 lt_prog_compiler_no_builtin_flag_GCJ=
14642 if test "$GCC" = yes; then
14643 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14645 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14646 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14647 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 lt_cv_prog_compiler_rtti_exceptions=no
14651 ac_outfile=conftest.$ac_objext
14652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14653 lt_compiler_flag="-fno-rtti -fno-exceptions"
14654 # Insert the option either (1) after the last *FLAGS variable, or
14655 # (2) before a word containing "conftest.", or (3) at the end.
14656 # Note that $ac_compile itself does not contain backslashes and begins
14657 # with a dollar sign (not a hyphen), so the echo should work correctly.
14658 # The option is referenced via a variable to avoid confusing sed.
14659 lt_compile=`echo "$ac_compile" | $SED \
14660 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14662 -e 's:$: $lt_compiler_flag:'`
14663 (eval echo "\"\$as_me:14663: $lt_compile\"" >&5)
14664 (eval "$lt_compile" 2>conftest.err)
14666 cat conftest.err >&5
14667 echo "$as_me:14667: \$? = $ac_status" >&5
14668 if (exit $ac_status) && test -s "$ac_outfile"; then
14669 # The compiler can only warn and ignore the option if not recognized
14670 # So say no if there are warnings
14671 if test ! -s conftest.err; then
14672 lt_cv_prog_compiler_rtti_exceptions=yes
14678 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14679 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14681 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14682 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14689 lt_prog_compiler_wl_GCJ=
14690 lt_prog_compiler_pic_GCJ=
14691 lt_prog_compiler_static_GCJ=
14693 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14694 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14696 if test "$GCC" = yes; then
14697 lt_prog_compiler_wl_GCJ='-Wl,'
14698 lt_prog_compiler_static_GCJ='-static'
14702 # All AIX code is PIC.
14703 if test "$host_cpu" = ia64; then
14704 # AIX 5 now supports IA64 processor
14705 lt_prog_compiler_static_GCJ='-Bstatic'
14710 # FIXME: we need at least 68020 code to build shared libraries, but
14711 # adding the `-m68020' flag to GCC prevents building anything better,
14713 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14716 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14717 # PIC is the default for these OSes.
14720 mingw* | pw32* | os2*)
14721 # This hack is so that the source file can tell whether it is being
14722 # built for inclusion in a dll (and should export symbols for example).
14723 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14726 darwin* | rhapsody*)
14727 # PIC is the default on this platform
14728 # Common symbols not allowed in MH_DYLIB files
14729 lt_prog_compiler_pic_GCJ='-fno-common'
14733 # Just because we use GCC doesn't mean we suddenly get shared libraries
14734 # on systems that don't support them.
14735 lt_prog_compiler_can_build_shared_GCJ=no
14740 if test -d /usr/nec; then
14741 lt_prog_compiler_pic_GCJ=-Kconform_pic
14746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14747 # not for PA HP-UX.
14748 case "$host_cpu" in
14753 lt_prog_compiler_pic_GCJ='-fPIC'
14759 lt_prog_compiler_pic_GCJ='-fPIC'
14763 # PORTME Check for flag to pass linker flags through the system compiler.
14766 lt_prog_compiler_wl_GCJ='-Wl,'
14767 if test "$host_cpu" = ia64; then
14768 # AIX 5 now supports IA64 processor
14769 lt_prog_compiler_static_GCJ='-Bstatic'
14771 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14775 mingw* | pw32* | os2*)
14776 # This hack is so that the source file can tell whether it is being
14777 # built for inclusion in a dll (and should export symbols for example).
14778 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14781 hpux9* | hpux10* | hpux11*)
14782 lt_prog_compiler_wl_GCJ='-Wl,'
14783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14784 # not for PA HP-UX.
14785 case "$host_cpu" in
14790 lt_prog_compiler_pic_GCJ='+Z'
14793 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14794 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14797 irix5* | irix6* | nonstopux*)
14798 lt_prog_compiler_wl_GCJ='-Wl,'
14799 # PIC (with -KPIC) is the default.
14800 lt_prog_compiler_static_GCJ='-non_shared'
14804 lt_prog_compiler_pic_GCJ='-KPIC'
14805 lt_prog_compiler_static_GCJ='-Bstatic'
14811 lt_prog_compiler_wl_GCJ='-Wl,'
14812 lt_prog_compiler_pic_GCJ='-KPIC'
14813 lt_prog_compiler_static_GCJ='-static'
14816 lt_prog_compiler_wl_GCJ='-Wl,'
14817 # All Alpha code is PIC.
14818 lt_prog_compiler_static_GCJ='-non_shared'
14823 osf3* | osf4* | osf5*)
14824 lt_prog_compiler_wl_GCJ='-Wl,'
14825 # All OSF/1 code is PIC.
14826 lt_prog_compiler_static_GCJ='-non_shared'
14830 lt_prog_compiler_pic_GCJ='-Kpic'
14831 lt_prog_compiler_static_GCJ='-dn'
14835 lt_prog_compiler_wl_GCJ='-Wl,'
14836 lt_prog_compiler_pic_GCJ='-KPIC'
14837 lt_prog_compiler_static_GCJ='-Bstatic'
14841 lt_prog_compiler_wl_GCJ='-Qoption ld '
14842 lt_prog_compiler_pic_GCJ='-PIC'
14843 lt_prog_compiler_static_GCJ='-Bstatic'
14846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14847 lt_prog_compiler_wl_GCJ='-Wl,'
14848 lt_prog_compiler_pic_GCJ='-KPIC'
14849 lt_prog_compiler_static_GCJ='-Bstatic'
14853 if test -d /usr/nec ;then
14854 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14855 lt_prog_compiler_static_GCJ='-Bstatic'
14860 lt_prog_compiler_pic_GCJ='-pic'
14861 lt_prog_compiler_static_GCJ='-Bstatic'
14865 lt_prog_compiler_can_build_shared_GCJ=no
14870 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14871 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14874 # Check to make sure the PIC flag actually works.
14876 if test -n "$lt_prog_compiler_pic_GCJ"; then
14877 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14878 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14879 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 lt_prog_compiler_pic_works_GCJ=no
14883 ac_outfile=conftest.$ac_objext
14884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14885 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14886 # Insert the option either (1) after the last *FLAGS variable, or
14887 # (2) before a word containing "conftest.", or (3) at the end.
14888 # Note that $ac_compile itself does not contain backslashes and begins
14889 # with a dollar sign (not a hyphen), so the echo should work correctly.
14890 # The option is referenced via a variable to avoid confusing sed.
14891 lt_compile=`echo "$ac_compile" | $SED \
14892 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894 -e 's:$: $lt_compiler_flag:'`
14895 (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
14896 (eval "$lt_compile" 2>conftest.err)
14898 cat conftest.err >&5
14899 echo "$as_me:14899: \$? = $ac_status" >&5
14900 if (exit $ac_status) && test -s "$ac_outfile"; then
14901 # The compiler can only warn and ignore the option if not recognized
14902 # So say no if there are warnings
14903 if test ! -s conftest.err; then
14904 lt_prog_compiler_pic_works_GCJ=yes
14910 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14911 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14913 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14914 case $lt_prog_compiler_pic_GCJ in
14916 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14919 lt_prog_compiler_pic_GCJ=
14920 lt_prog_compiler_can_build_shared_GCJ=no
14925 # For platforms which do not support PIC, -DPIC is meaningless:
14927 lt_prog_compiler_pic_GCJ=
14930 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14934 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14935 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14936 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 lt_cv_prog_compiler_c_o_GCJ=no
14940 $rm -r conftest 2>/dev/null
14944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14946 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14947 # that will create temporary files in the current directory regardless of
14948 # the output directory. Thus, making CWD read-only will cause this test
14949 # to fail, enabling locking or at least warning the user not to do parallel
14953 lt_compiler_flag="-o out/conftest2.$ac_objext"
14954 # Insert the option either (1) after the last *FLAGS variable, or
14955 # (2) before a word containing "conftest.", or (3) at the end.
14956 # Note that $ac_compile itself does not contain backslashes and begins
14957 # with a dollar sign (not a hyphen), so the echo should work correctly.
14958 lt_compile=`echo "$ac_compile" | $SED \
14959 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14961 -e 's:$: $lt_compiler_flag:'`
14962 (eval echo "\"\$as_me:14962: $lt_compile\"" >&5)
14963 (eval "$lt_compile" 2>out/conftest.err)
14965 cat out/conftest.err >&5
14966 echo "$as_me:14966: \$? = $ac_status" >&5
14967 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14969 # The compiler can only warn and ignore the option if not recognized
14970 # So say no if there are warnings
14971 if test ! -s out/conftest.err; then
14972 lt_cv_prog_compiler_c_o_GCJ=yes
14976 $rm conftest* out/*
14983 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14984 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14987 hard_links="nottested"
14988 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14989 # do not overwrite the value of need_locks provided by the user
14990 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14991 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14996 ln conftest.a conftest.b 2>&5 || hard_links=no
14997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14998 echo "$as_me:$LINENO: result: $hard_links" >&5
14999 echo "${ECHO_T}$hard_links" >&6
15000 if test "$hard_links" = no; then
15001 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15002 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15009 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15010 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15013 allow_undefined_flag_GCJ=
15014 enable_shared_with_static_runtimes_GCJ=no
15016 archive_expsym_cmds_GCJ=
15017 old_archive_From_new_cmds_GCJ=
15018 old_archive_from_expsyms_cmds_GCJ=
15019 export_dynamic_flag_spec_GCJ=
15020 whole_archive_flag_spec_GCJ=
15021 thread_safe_flag_spec_GCJ=
15022 hardcode_libdir_flag_spec_GCJ=
15023 hardcode_libdir_flag_spec_ld_GCJ=
15024 hardcode_libdir_separator_GCJ=
15025 hardcode_direct_GCJ=no
15026 hardcode_minus_L_GCJ=no
15027 hardcode_shlibpath_var_GCJ=unsupported
15028 link_all_deplibs_GCJ=unknown
15029 hardcode_automatic_GCJ=no
15031 module_expsym_cmds_GCJ=
15032 always_export_symbols_GCJ=no
15033 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15034 # include_expsyms should be a list of space-separated symbols to be *always*
15035 # included in the symbol list
15036 include_expsyms_GCJ=
15037 # exclude_expsyms can be an extended regexp of symbols to exclude
15038 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15039 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15040 # as well as any symbol that contains `d'.
15041 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15042 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15043 # platforms (ab)use it in PIC code, but their linkers get confused if
15044 # the symbol is explicitly referenced. Since portable code cannot
15045 # rely on this symbol name, it's probably fine to never include it in
15046 # preloaded symbol tables.
15047 extract_expsyms_cmds=
15050 cygwin* | mingw* | pw32*)
15051 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15052 # When not using gcc, we currently assume that we are using
15053 # Microsoft Visual C++.
15054 if test "$GCC" != yes; then
15064 if test "$with_gnu_ld" = yes; then
15065 # If archive_cmds runs LD, not CC, wlarc should be empty
15068 # See if GNU ld supports shared libraries.
15070 aix3* | aix4* | aix5*)
15071 # On AIX/PPC, the GNU linker is very broken
15072 if test "$host_cpu" != ia64; then
15076 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15077 *** to be unable to reliably create shared libraries on AIX.
15078 *** Therefore, libtool is disabling shared libraries support. If you
15079 *** really care for shared libraries, you may want to modify your PATH
15080 *** so that a non-GNU linker is found, and then restart.
15087 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)'
15088 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15089 hardcode_minus_L_GCJ=yes
15091 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15092 # that the semantics of dynamic libraries on AmigaOS, at least up
15093 # to version 4, is to share data among multiple programs linked
15094 # with the same dynamic library. Since this doesn't match the
15095 # behavior of shared libraries on other platforms, we can't use
15101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15102 allow_undefined_flag_GCJ=unsupported
15103 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15104 # support --undefined. This deserves some investigation. FIXME
15105 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111 cygwin* | mingw* | pw32*)
15112 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15113 # as there is no search path for DLLs.
15114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15115 allow_undefined_flag_GCJ=unsupported
15116 always_export_symbols_GCJ=no
15117 enable_shared_with_static_runtimes_GCJ=yes
15118 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15120 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15121 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15122 # If the export-symbols file already is a .def file (1st line
15123 # is EXPORTS), use it as is; otherwise, prepend...
15124 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15125 cp $export_symbols $output_objdir/$soname.def;
15127 echo EXPORTS > $output_objdir/$soname.def;
15128 cat $export_symbols >> $output_objdir/$soname.def;
15130 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15138 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15141 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15147 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15151 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15152 *** create shared libraries on Solaris systems. Therefore, libtool
15153 *** is disabling shared libraries support. We urge you to upgrade GNU
15154 *** binutils to release 2.9.1 or newer. Another option is to modify
15155 *** your PATH or compiler configuration so that the native linker is
15156 *** used, and then restart.
15159 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15160 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15161 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15168 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15170 hardcode_direct_GCJ=yes
15171 hardcode_shlibpath_var_GCJ=no
15175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15176 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15177 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15184 if test "$ld_shlibs_GCJ" = yes; then
15185 runpath_var=LD_RUN_PATH
15186 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15187 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15188 # ancient GNU ld didn't support --whole-archive et. al.
15189 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15190 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15192 whole_archive_flag_spec_GCJ=
15196 # PORTME fill in a description of your system's linker (not GNU ld)
15199 allow_undefined_flag_GCJ=unsupported
15200 always_export_symbols_GCJ=yes
15201 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'
15202 # Note: this linker hardcodes the directories in LIBPATH if there
15203 # are no directories specified by -L.
15204 hardcode_minus_L_GCJ=yes
15205 if test "$GCC" = yes && test -z "$link_static_flag"; then
15206 # Neither direct hardcoding nor static linking is supported with a
15208 hardcode_direct_GCJ=unsupported
15213 if test "$host_cpu" = ia64; then
15214 # On IA64, the linker does run time linking by default, so we don't
15215 # have to do anything special.
15216 aix_use_runtimelinking=no
15217 exp_sym_flag='-Bexport'
15220 # If we're using GNU nm, then we don't want the "-C" option.
15221 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15222 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15223 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'
15225 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'
15227 aix_use_runtimelinking=no
15229 # Test if we are trying to use run time linking or normal
15230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15231 # need to do runtime linking.
15232 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15233 for ld_flag in $LDFLAGS; do
15234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15235 aix_use_runtimelinking=yes
15241 exp_sym_flag='-bexport'
15242 no_entry_flag='-bnoentry'
15245 # When large executables or shared objects are built, AIX ld can
15246 # have problems creating the table of contents. If linking a library
15247 # or program results in "error TOC overflow" add -mminimal-toc to
15248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15251 archive_cmds_GCJ=''
15252 hardcode_direct_GCJ=yes
15253 hardcode_libdir_separator_GCJ=':'
15254 link_all_deplibs_GCJ=yes
15256 if test "$GCC" = yes; then
15257 case $host_os in aix4.012|aix4.012.*)
15258 # We only want to do this on AIX 4.2 and lower, the check
15259 # below for broken collect2 doesn't work under 4.3+
15260 collect2name=`${CC} -print-prog-name=collect2`
15261 if test -f "$collect2name" && \
15262 strings "$collect2name" | grep resolve_lib_name >/dev/null
15264 # We have reworked collect2
15265 hardcode_direct_GCJ=yes
15267 # We have old collect2
15268 hardcode_direct_GCJ=unsupported
15269 # It fails to find uninstalled libraries when the uninstalled
15270 # path is not listed in the libpath. Setting hardcode_minus_L
15271 # to unsupported forces relinking
15272 hardcode_minus_L_GCJ=yes
15273 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15274 hardcode_libdir_separator_GCJ=
15277 shared_flag='-shared'
15280 if test "$host_cpu" = ia64; then
15281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15282 # chokes on -Wl,-G. The following line is correct:
15285 if test "$aix_use_runtimelinking" = yes; then
15286 shared_flag='${wl}-G'
15288 shared_flag='${wl}-bM:SRE'
15293 # It seems that -bexpall does not export symbols beginning with
15294 # underscore (_), so it is better to generate a list of symbols to export.
15295 always_export_symbols_GCJ=yes
15296 if test "$aix_use_runtimelinking" = yes; then
15297 # Warning - without using the other runtime loading flags (-brtl),
15298 # -berok will link without error, but may produce a broken library.
15299 allow_undefined_flag_GCJ='-berok'
15300 # Determine the default libpath from the value encoded in an empty executable.
15301 cat >conftest.$ac_ext <<_ACEOF
15302 #line $LINENO "configure"
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319 (eval $ac_link) 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -s conftest$ac_exeext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15332 # Check for a 64-bit object if we didn't find anything.
15333 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; }
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15343 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15344 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"
15346 if test "$host_cpu" = ia64; then
15347 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15348 allow_undefined_flag_GCJ="-z nodefs"
15349 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"
15351 # Determine the default libpath from the value encoded in an empty executable.
15352 cat >conftest.$ac_ext <<_ACEOF
15353 #line $LINENO "configure"
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15368 rm -f conftest.$ac_objext conftest$ac_exeext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15370 (eval $ac_link) 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -s conftest$ac_exeext'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15381 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15383 # Check for a 64-bit object if we didn't find anything.
15384 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; }
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15394 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15395 # Warning - without using the other run time loading flags,
15396 # -berok will link without error, but may produce a broken library.
15397 no_undefined_flag_GCJ=' ${wl}-bernotok'
15398 allow_undefined_flag_GCJ=' ${wl}-berok'
15399 # -bexpall does not export symbols beginning with underscore (_)
15400 always_export_symbols_GCJ=yes
15401 # Exported symbols can be pulled into shared objects from archives
15402 whole_archive_flag_spec_GCJ=' '
15403 archive_cmds_need_lc_GCJ=yes
15404 # This is similar to how AIX traditionally builds it's shared libraries.
15405 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'
15411 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)'
15412 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15413 hardcode_minus_L_GCJ=yes
15414 # see comment about different semantics on the GNU ld section
15419 export_dynamic_flag_spec_GCJ=-rdynamic
15422 cygwin* | mingw* | pw32*)
15423 # When not using gcc, we currently assume that we are using
15424 # Microsoft Visual C++.
15425 # hardcode_libdir_flag_spec is actually meaningless, as there is
15426 # no search path for DLLs.
15427 hardcode_libdir_flag_spec_GCJ=' '
15428 allow_undefined_flag_GCJ=unsupported
15429 # Tell ltmain to make .lib files, not .a files.
15431 # Tell ltmain to make .dll files, not .so files.
15433 # FIXME: Setting linknames here is a bad hack.
15434 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15435 # The linker will automatically build a .lib file if we build a DLL.
15436 old_archive_From_new_cmds_GCJ='true'
15437 # FIXME: Should let the user specify the lib program.
15438 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15439 fix_srcfile_path='`cygpath -w "$srcfile"`'
15440 enable_shared_with_static_runtimes_GCJ=yes
15443 darwin* | rhapsody*)
15444 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15445 archive_cmds_need_lc_GCJ=no
15447 rhapsody* | darwin1.[012])
15448 allow_undefined_flag_GCJ='-undefined suppress'
15451 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15454 # FIXME: Relying on posixy $() will cause problems for
15455 # cross-compilation, but unfortunately the echo tests do not
15456 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15457 # `"' quotes if we put them in here... so don't!
15458 lt_int_apple_cc_single_mod=no
15459 output_verbose_link_cmd='echo'
15460 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15461 lt_int_apple_cc_single_mod=yes
15463 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15464 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15466 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'
15468 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15469 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15470 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15471 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}'
15473 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}'
15475 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}'
15476 hardcode_direct_GCJ=no
15477 hardcode_automatic_GCJ=yes
15478 hardcode_shlibpath_var_GCJ=unsupported
15479 whole_archive_flag_spec_GCJ='-all_load $convenience'
15480 link_all_deplibs_GCJ=yes
15485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15487 hardcode_shlibpath_var_GCJ=no
15494 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15495 # support. Future versions do this automatically, but an explicit c++rt0.o
15496 # does not break anything, and helps significantly (at the cost of a little
15499 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15500 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15501 hardcode_direct_GCJ=yes
15502 hardcode_shlibpath_var_GCJ=no
15505 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15507 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15508 hardcode_direct_GCJ=yes
15509 hardcode_minus_L_GCJ=yes
15510 hardcode_shlibpath_var_GCJ=no
15513 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15515 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15516 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15517 hardcode_direct_GCJ=yes
15518 hardcode_shlibpath_var_GCJ=no
15522 if test "$GCC" = yes; then
15523 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'
15525 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'
15527 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15528 hardcode_libdir_separator_GCJ=:
15529 hardcode_direct_GCJ=yes
15531 # hardcode_minus_L: Not really in the search PATH,
15532 # but as the default location of the library.
15533 hardcode_minus_L_GCJ=yes
15534 export_dynamic_flag_spec_GCJ='${wl}-E'
15538 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15539 case "$host_cpu" in
15541 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15544 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15548 case "$host_cpu" in
15550 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15553 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15557 if test "$with_gnu_ld" = no; then
15558 case "$host_cpu" in
15560 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15561 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15562 hardcode_libdir_separator_GCJ=:
15563 hardcode_direct_GCJ=no
15564 hardcode_shlibpath_var_GCJ=no
15567 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15568 hardcode_direct_GCJ=no
15569 hardcode_shlibpath_var_GCJ=no
15571 # hardcode_minus_L: Not really in the search PATH,
15572 # but as the default location of the library.
15573 hardcode_minus_L_GCJ=yes
15576 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15577 hardcode_libdir_separator_GCJ=:
15578 hardcode_direct_GCJ=yes
15579 export_dynamic_flag_spec_GCJ='${wl}-E'
15581 # hardcode_minus_L: Not really in the search PATH,
15582 # but as the default location of the library.
15583 hardcode_minus_L_GCJ=yes
15589 irix5* | irix6* | nonstopux*)
15590 if test "$GCC" = yes; then
15591 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'
15593 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'
15594 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15596 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15597 hardcode_libdir_separator_GCJ=:
15598 link_all_deplibs_GCJ=yes
15602 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15603 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15605 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15607 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15608 hardcode_direct_GCJ=yes
15609 hardcode_shlibpath_var_GCJ=no
15613 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614 hardcode_direct_GCJ=yes
15615 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15616 hardcode_libdir_separator_GCJ=:
15617 hardcode_shlibpath_var_GCJ=no
15621 hardcode_direct_GCJ=yes
15622 hardcode_shlibpath_var_GCJ=no
15623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15624 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15625 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15626 export_dynamic_flag_spec_GCJ='${wl}-E'
15629 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15630 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15631 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15634 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15635 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15642 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15643 hardcode_minus_L_GCJ=yes
15644 allow_undefined_flag_GCJ=unsupported
15645 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'
15646 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15650 if test "$GCC" = yes; then
15651 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15652 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'
15654 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15655 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'
15657 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15658 hardcode_libdir_separator_GCJ=:
15661 osf4* | osf5*) # as osf3* with the addition of -msym flag
15662 if test "$GCC" = yes; then
15663 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15664 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'
15665 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15667 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15668 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'
15669 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~
15670 $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'
15672 # Both c and cxx compiler support -rpath directly
15673 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15675 hardcode_libdir_separator_GCJ=:
15679 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680 hardcode_shlibpath_var_GCJ=no
15681 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15682 runpath_var=LD_RUN_PATH
15683 hardcode_runpath_var=yes
15687 no_undefined_flag_GCJ=' -z text'
15688 if test "$GCC" = yes; then
15689 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15690 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15691 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15693 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15694 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15695 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15697 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15698 hardcode_shlibpath_var_GCJ=no
15700 solaris2.[0-5] | solaris2.[0-5].*) ;;
15701 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15702 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15704 link_all_deplibs_GCJ=yes
15708 if test "x$host_vendor" = xsequent; then
15709 # Use $CC to link under sequent, because it throws in some extra .o
15710 # files that make .init and .fini sections work.
15711 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15713 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15715 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15716 hardcode_direct_GCJ=yes
15717 hardcode_minus_L_GCJ=yes
15718 hardcode_shlibpath_var_GCJ=no
15722 case $host_vendor in
15724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725 hardcode_direct_GCJ=yes # is this really true???
15728 ## LD is ld it makes a PLAMLIB
15729 ## CC just makes a GrossModule.
15730 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15731 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15732 hardcode_direct_GCJ=no
15735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15736 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15739 runpath_var='LD_RUN_PATH'
15740 hardcode_shlibpath_var_GCJ=no
15744 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15745 hardcode_shlibpath_var_GCJ=no
15746 export_dynamic_flag_spec_GCJ='-Bexport'
15750 if test -d /usr/nec; then
15751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_shlibpath_var_GCJ=no
15753 runpath_var=LD_RUN_PATH
15754 hardcode_runpath_var=yes
15760 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_direct_GCJ=yes
15762 hardcode_minus_L_GCJ=no
15763 hardcode_shlibpath_var_GCJ=no
15764 hardcode_runpath_var=yes
15765 runpath_var=LD_RUN_PATH
15768 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15769 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15770 if test "$GCC" = yes; then
15771 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15773 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15775 runpath_var='LD_RUN_PATH'
15776 hardcode_shlibpath_var_GCJ=no
15780 no_undefined_flag_GCJ=' -z text'
15781 # $CC -shared without GNU ld will not create a library from C++
15782 # object files and a static libstdc++, better avoid it by now
15783 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15784 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15785 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15786 hardcode_libdir_flag_spec_GCJ=
15787 hardcode_shlibpath_var_GCJ=no
15788 runpath_var='LD_RUN_PATH'
15792 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15793 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15794 hardcode_shlibpath_var_GCJ=no
15803 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15804 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15805 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15808 if test "$GCC" = yes; then
15809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15813 # Do we need to explicitly link libc?
15815 case "x$archive_cmds_need_lc_GCJ" in
15817 # Assume -lc should be added
15818 archive_cmds_need_lc_GCJ=yes
15820 if test "$enable_shared" = yes && test "$GCC" = yes; then
15821 case $archive_cmds_GCJ in
15823 # FIXME: we may have to deal with multi-command sequences.
15826 # Test whether the compiler implicitly links with -lc since on some
15827 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15828 # to ld, don't add -lc before -lgcc.
15829 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15830 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15832 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835 (eval $ac_compile) 2>&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } 2>conftest.err; then
15841 libobjs=conftest.$ac_objext
15843 wl=$lt_prog_compiler_wl_GCJ
15849 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15850 allow_undefined_flag_GCJ=
15851 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15852 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }
15857 archive_cmds_need_lc_GCJ=no
15859 archive_cmds_need_lc_GCJ=yes
15861 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15863 cat conftest.err 1>&5
15866 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15867 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15874 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15876 hardcode_action_GCJ=
15877 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15878 test -n "$runpath_var GCJ" || \
15879 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15881 # We can hardcode non-existant directories.
15882 if test "$hardcode_direct_GCJ" != no &&
15883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15884 # have to relink, otherwise we might link with an installed library
15885 # when we should be linking with a yet-to-be-installed one
15886 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15887 test "$hardcode_minus_L_GCJ" != no; then
15888 # Linking always hardcodes the temporary library directory.
15889 hardcode_action_GCJ=relink
15891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15892 hardcode_action_GCJ=immediate
15895 # We cannot hardcode anything, or else we can only hardcode existing
15897 hardcode_action_GCJ=unsupported
15899 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15900 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15902 if test "$hardcode_action_GCJ" = relink; then
15903 # Fast installation is not supported
15904 enable_fast_install=no
15905 elif test "$shlibpath_overrides_runpath" = yes ||
15906 test "$enable_shared" = no; then
15907 # Fast installation is not necessary
15908 enable_fast_install=needless
15913 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15914 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15915 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15916 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15917 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15918 echo "$as_me:$LINENO: result: yes" >&5
15919 echo "${ECHO_T}yes" >&6
15921 # FIXME - insert some real tests, host_os isn't really good enough
15924 if test -n "$STRIP" ; then
15925 striplib="$STRIP -x"
15926 echo "$as_me:$LINENO: result: yes" >&5
15927 echo "${ECHO_T}yes" >&6
15929 echo "$as_me:$LINENO: result: no" >&5
15930 echo "${ECHO_T}no" >&6
15934 echo "$as_me:$LINENO: result: no" >&5
15935 echo "${ECHO_T}no" >&6
15940 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15941 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15942 library_names_spec=
15943 libname_spec='lib$name'
15947 postuninstall_cmds=
15951 shlibpath_overrides_runpath=unknown
15953 dynamic_linker="$host_os ld.so"
15954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15955 if test "$GCC" = yes; then
15956 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15957 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15958 # if the path contains ";" then we assume it to be the separator
15959 # otherwise default to the standard path separator (i.e. ":") - it is
15960 # assumed that no part of a normal pathname contains ";" but that should
15961 # okay in the real world where ";" in dirpaths is itself problematic.
15962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15969 need_lib_prefix=unknown
15970 hardcode_into_libs=no
15972 # when you set need_version to no, make sure it does not cause -set_version
15973 # flags to be left without arguments
15974 need_version=unknown
15979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15980 shlibpath_var=LIBPATH
15982 # AIX 3 has no versioning support, so we append a major version to the name.
15983 soname_spec='${libname}${release}${shared_ext}$major'
15990 hardcode_into_libs=yes
15991 if test "$host_cpu" = ia64; then
15992 # AIX 5 supports IA64
15993 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15994 shlibpath_var=LD_LIBRARY_PATH
15996 # With GCC up to 2.95.x, collect2 would create an import file
15997 # for dependence libraries. The import file would start with
15998 # the line `#! .'. This would cause the generated library to
15999 # depend on `.', always an invalid library. This was fixed in
16000 # development snapshots of GCC prior to 3.0.
16002 aix4 | aix4.[01] | aix4.[01].*)
16003 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16005 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16008 can_build_shared=no
16012 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16013 # soname into executable. Probably we can add versioning support to
16014 # collect2, so additional links can be useful in future.
16015 if test "$aix_use_runtimelinking" = yes; then
16016 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16017 # instead of lib<name>.a to let people know that these are not
16018 # typical AIX shared libraries.
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16021 # We preserve .a as extension for shared libraries through AIX4.2
16022 # and later when we are not doing run time linking.
16023 library_names_spec='${libname}${release}.a $libname.a'
16024 soname_spec='${libname}${release}${shared_ext}$major'
16026 shlibpath_var=LIBPATH
16031 library_names_spec='$libname.ixlibrary $libname.a'
16032 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16033 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'
16037 library_names_spec='${libname}${shared_ext}'
16038 dynamic_linker="$host_os ld.so"
16039 shlibpath_var=LIBRARY_PATH
16045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 soname_spec='${libname}${release}${shared_ext}$major'
16047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16048 shlibpath_var=LD_LIBRARY_PATH
16049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16051 # the default ld.so.conf also contains /usr/contrib/lib and
16052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16053 # libtool to hard-code these into programs
16056 cygwin* | mingw* | pw32*)
16057 version_type=windows
16062 case $GCC,$host_os in
16063 yes,cygwin* | yes,mingw* | yes,pw32*)
16064 library_names_spec='$libname.dll.a'
16065 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16066 postinstall_cmds='base_file=`basename \${file}`~
16067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16068 dldir=$destdir/`dirname \$dlpath`~
16069 test -d \$dldir || mkdir -p \$dldir~
16070 $install_prog $dir/$dlname \$dldir/$dlname'
16071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16072 dlpath=$dir/\$dldll~
16074 shlibpath_overrides_runpath=yes
16078 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16079 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16080 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16083 # MinGW DLLs use traditional 'lib' prefix
16084 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16086 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16087 # It is most probably a Windows format PATH printed by
16088 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16089 # path with ; separators, and with drive letters. We can handle the
16090 # drive letters (cygwin fileutils understands them), so leave them,
16091 # especially as we might pass files found there to a mingw objdump,
16092 # which wouldn't understand a cygwinified path. Ahh.
16093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16099 # pw32 DLLs use 'pw' prefix rather than 'lib'
16100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16106 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16109 dynamic_linker='Win32 ld.exe'
16110 # FIXME: first we should search . and the directory the executable is in
16114 darwin* | rhapsody*)
16115 dynamic_linker="$host_os dyld"
16116 version_type=darwin
16119 # FIXME: Relying on posixy $() will cause problems for
16120 # cross-compilation, but unfortunately the echo tests do not
16121 # yet detect zsh echo's removal of \ escapes.
16122 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16123 soname_spec='${libname}${release}${major}$shared_ext'
16124 shlibpath_overrides_runpath=yes
16125 shlibpath_var=DYLD_LIBRARY_PATH
16126 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16127 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16128 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16129 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"`
16131 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16139 soname_spec='${libname}${release}${shared_ext}$major'
16140 shlibpath_var=LD_LIBRARY_PATH
16148 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16149 version_type=freebsd-$objformat
16150 case $version_type in
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16161 shlibpath_var=LD_LIBRARY_PATH
16164 shlibpath_overrides_runpath=yes
16166 freebsd3.01* | freebsdelf3.01*)
16167 shlibpath_overrides_runpath=yes
16168 hardcode_into_libs=yes
16171 shlibpath_overrides_runpath=no
16172 hardcode_into_libs=yes
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 hardcode_into_libs=yes
16187 hpux9* | hpux10* | hpux11*)
16188 # Give a soname corresponding to the major version so that dld.sl refuses to
16189 # link against other versions.
16193 case "$host_cpu" in
16196 hardcode_into_libs=yes
16197 dynamic_linker="$host_os dld.so"
16198 shlibpath_var=LD_LIBRARY_PATH
16199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 if test "X$HPUX_IA64_MODE" = X32; then
16203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16211 hardcode_into_libs=yes
16212 dynamic_linker="$host_os dld.sl"
16213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16222 dynamic_linker="$host_os dld.sl"
16223 shlibpath_var=SHLIB_PATH
16224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16229 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16230 postinstall_cmds='chmod 555 $lib'
16233 irix5* | irix6* | nonstopux*)
16235 nonstopux*) version_type=nonstopux ;;
16237 if test "$lt_cv_prog_gnu_ld" = yes; then
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16248 irix5* | nonstopux*)
16249 libsuff= shlibsuff=
16252 case $LD in # libtool.m4 will add one of these switches to LD
16253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16254 libsuff= shlibsuff= libmagic=32-bit;;
16255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16256 libsuff=32 shlibsuff=N32 libmagic=N32;;
16257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16258 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16259 *) libsuff= shlibsuff= libmagic=never-match;;
16263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16264 shlibpath_overrides_runpath=no
16265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16267 hardcode_into_libs=yes
16270 # No shared lib support for Linux oldld, aout, or coff.
16271 linux*oldld* | linux*aout* | linux*coff*)
16275 # This must be Linux ELF.
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281 soname_spec='${libname}${release}${shared_ext}$major'
16282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16283 shlibpath_var=LD_LIBRARY_PATH
16284 shlibpath_overrides_runpath=no
16285 # This implies no fast_install, which is unacceptable.
16286 # Some rework will be needed to allow for fast_install
16287 # before this can be enabled.
16288 hardcode_into_libs=yes
16290 # We used to test for /lib/ld.so.1 and disable shared libraries on
16291 # powerpc, because MkLinux only supported shared libraries with the
16292 # GNU dynamic linker. Since this was broken with cross compilers,
16293 # most powerpc-linux boxes support dynamic linking these days and
16294 # people can always --disable-shared, the test was removed, and we
16295 # assume the GNU/Linux dynamic linker is in use.
16296 dynamic_linker='GNU/Linux ld.so'
16303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16306 dynamic_linker='NetBSD (a.out) ld.so'
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16309 soname_spec='${libname}${release}${shared_ext}$major'
16310 dynamic_linker='NetBSD ld.elf_so'
16312 shlibpath_var=LD_LIBRARY_PATH
16313 shlibpath_overrides_runpath=yes
16314 hardcode_into_libs=yes
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320 shlibpath_var=LD_LIBRARY_PATH
16321 shlibpath_overrides_runpath=yes
16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16329 soname_spec='${libname}${release}${shared_ext}$major'
16330 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=yes
16338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16340 shlibpath_var=LD_LIBRARY_PATH
16341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16343 openbsd2.[89] | openbsd2.[89].*)
16344 shlibpath_overrides_runpath=no
16347 shlibpath_overrides_runpath=yes
16351 shlibpath_overrides_runpath=yes
16356 libname_spec='$name'
16359 library_names_spec='$libname${shared_ext} $libname.a'
16360 dynamic_linker='OS/2 ld.exe'
16361 shlibpath_var=LIBPATH
16364 osf3* | osf4* | osf5*)
16368 soname_spec='${libname}${release}${shared_ext}$major'
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16372 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16377 soname_spec='${libname}${release}${shared_ext}$major'
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379 shlibpath_var=LD_LIBRARY_PATH
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16390 hardcode_into_libs=yes
16391 # ldd complains unless libraries are executable
16392 postinstall_cmds='chmod +x $lib'
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 shlibpath_overrides_runpath=yes
16401 if test "$with_gnu_ld" = yes; then
16407 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 case $host_vendor in
16414 shlibpath_overrides_runpath=no
16416 export_dynamic_flag_spec='${wl}-Blargedynsym'
16417 runpath_var=LD_RUN_PATH
16425 shlibpath_overrides_runpath=no
16426 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16432 if test -d /usr/nec ;then
16434 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16435 soname_spec='$libname${shared_ext}.$major'
16436 shlibpath_var=LD_LIBRARY_PATH
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 shlibpath_var=LD_LIBRARY_PATH
16451 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16452 echo "${ECHO_T}$dynamic_linker" >&6
16453 test "$dynamic_linker" = no && can_build_shared=no
16455 if test "x$enable_dlopen" != xyes; then
16456 enable_dlopen=unknown
16457 enable_dlopen_self=unknown
16458 enable_dlopen_self_static=unknown
16465 lt_cv_dlopen="load_add_on"
16467 lt_cv_dlopen_self=yes
16471 lt_cv_dlopen="LoadLibrary"
16476 lt_cv_dlopen="dlopen"
16481 # if libdl is installed we need to link against it
16482 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 ac_check_lib_save_LIBS=$LIBS
16489 cat >conftest.$ac_ext <<_ACEOF
16490 #line $LINENO "configure"
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16497 /* Override any gcc2 internal prototype to avoid an error. */
16501 /* We use char because int might match the return type of a gcc2
16502 builtin and then its argument prototype would still apply. */
16512 rm -f conftest.$ac_objext conftest$ac_exeext
16513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16514 (eval $ac_link) 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -s conftest$ac_exeext'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_cv_lib_dl_dlopen=yes
16526 echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16529 ac_cv_lib_dl_dlopen=no
16531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16532 LIBS=$ac_check_lib_save_LIBS
16534 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16535 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16536 if test $ac_cv_lib_dl_dlopen = yes; then
16537 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16540 lt_cv_dlopen="dyld"
16542 lt_cv_dlopen_self=yes
16549 echo "$as_me:$LINENO: checking for shl_load" >&5
16550 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16551 if test "${ac_cv_func_shl_load+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 cat >conftest.$ac_ext <<_ACEOF
16555 #line $LINENO "configure"
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 /* System header to define __stub macros and hopefully few prototypes,
16562 which can conflict with char shl_load (); below.
16563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16564 <limits.h> exists even on freestanding compilers. */
16566 # include <limits.h>
16568 # include <assert.h>
16570 /* Override any gcc2 internal prototype to avoid an error. */
16575 /* We use char because int might match the return type of a gcc2
16576 builtin and then its argument prototype would still apply. */
16578 /* The GNU C library defines this for functions which it implements
16579 to always fail with ENOSYS. Some functions are actually named
16580 something starting with __ and the normal name is an alias. */
16581 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16584 char (*f) () = shl_load;
16593 return f != shl_load;
16598 rm -f conftest.$ac_objext conftest$ac_exeext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600 (eval $ac_link) 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -s conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_cv_func_shl_load=yes
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 ac_cv_func_shl_load=no
16617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16619 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16620 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16621 if test $ac_cv_func_shl_load = yes; then
16622 lt_cv_dlopen="shl_load"
16624 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16625 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16626 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16629 ac_check_lib_save_LIBS=$LIBS
16631 cat >conftest.$ac_ext <<_ACEOF
16632 #line $LINENO "configure"
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16639 /* Override any gcc2 internal prototype to avoid an error. */
16643 /* We use char because int might match the return type of a gcc2
16644 builtin and then its argument prototype would still apply. */
16654 rm -f conftest.$ac_objext conftest$ac_exeext
16655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16656 (eval $ac_link) 2>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
16660 { ac_try='test -s conftest$ac_exeext'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 ac_cv_lib_dld_shl_load=yes
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 ac_cv_lib_dld_shl_load=no
16673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16674 LIBS=$ac_check_lib_save_LIBS
16676 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16677 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16678 if test $ac_cv_lib_dld_shl_load = yes; then
16679 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16681 echo "$as_me:$LINENO: checking for dlopen" >&5
16682 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16683 if test "${ac_cv_func_dlopen+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 cat >conftest.$ac_ext <<_ACEOF
16687 #line $LINENO "configure"
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 /* System header to define __stub macros and hopefully few prototypes,
16694 which can conflict with char dlopen (); below.
16695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16696 <limits.h> exists even on freestanding compilers. */
16698 # include <limits.h>
16700 # include <assert.h>
16702 /* Override any gcc2 internal prototype to avoid an error. */
16707 /* We use char because int might match the return type of a gcc2
16708 builtin and then its argument prototype would still apply. */
16710 /* The GNU C library defines this for functions which it implements
16711 to always fail with ENOSYS. Some functions are actually named
16712 something starting with __ and the normal name is an alias. */
16713 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16716 char (*f) () = dlopen;
16725 return f != dlopen;
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16732 (eval $ac_link) 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -s conftest$ac_exeext'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_cv_func_dlopen=yes
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 ac_cv_func_dlopen=no
16749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16751 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16752 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16753 if test $ac_cv_func_dlopen = yes; then
16754 lt_cv_dlopen="dlopen"
16756 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16757 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16758 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 ac_check_lib_save_LIBS=$LIBS
16763 cat >conftest.$ac_ext <<_ACEOF
16764 #line $LINENO "configure"
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16771 /* Override any gcc2 internal prototype to avoid an error. */
16775 /* We use char because int might match the return type of a gcc2
16776 builtin and then its argument prototype would still apply. */
16786 rm -f conftest.$ac_objext conftest$ac_exeext
16787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16788 (eval $ac_link) 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -s conftest$ac_exeext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_lib_dl_dlopen=yes
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ac_cv_lib_dl_dlopen=no
16805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16806 LIBS=$ac_check_lib_save_LIBS
16808 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16809 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16810 if test $ac_cv_lib_dl_dlopen = yes; then
16811 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16813 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16814 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16815 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 ac_check_lib_save_LIBS=$LIBS
16819 LIBS="-lsvld $LIBS"
16820 cat >conftest.$ac_ext <<_ACEOF
16821 #line $LINENO "configure"
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16828 /* Override any gcc2 internal prototype to avoid an error. */
16832 /* We use char because int might match the return type of a gcc2
16833 builtin and then its argument prototype would still apply. */
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845 (eval $ac_link) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
16849 { ac_try='test -s conftest$ac_exeext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_cv_lib_svld_dlopen=yes
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ac_cv_lib_svld_dlopen=no
16862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16863 LIBS=$ac_check_lib_save_LIBS
16865 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16866 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16867 if test $ac_cv_lib_svld_dlopen = yes; then
16868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16870 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16871 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16872 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 ac_check_lib_save_LIBS=$LIBS
16877 cat >conftest.$ac_ext <<_ACEOF
16878 #line $LINENO "configure"
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16885 /* Override any gcc2 internal prototype to avoid an error. */
16889 /* We use char because int might match the return type of a gcc2
16890 builtin and then its argument prototype would still apply. */
16900 rm -f conftest.$ac_objext conftest$ac_exeext
16901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16902 (eval $ac_link) 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -s conftest$ac_exeext'
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; }; then
16912 ac_cv_lib_dld_dld_link=yes
16914 echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16917 ac_cv_lib_dld_dld_link=no
16919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16920 LIBS=$ac_check_lib_save_LIBS
16922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16923 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16924 if test $ac_cv_lib_dld_dld_link = yes; then
16925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16946 if test "x$lt_cv_dlopen" != xno; then
16952 case $lt_cv_dlopen in
16954 save_CPPFLAGS="$CPPFLAGS"
16955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16957 save_LDFLAGS="$LDFLAGS"
16958 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16961 LIBS="$lt_cv_dlopen_libs $LIBS"
16963 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16964 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16965 if test "${lt_cv_dlopen_self+set}" = set; then
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
16968 if test "$cross_compiling" = yes; then :
16969 lt_cv_dlopen_self=cross
16971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16972 lt_status=$lt_dlunknown
16973 cat > conftest.$ac_ext <<EOF
16974 #line 16974 "configure"
16975 #include "confdefs.h"
16984 # define LT_DLGLOBAL RTLD_GLOBAL
16987 # define LT_DLGLOBAL DL_GLOBAL
16989 # define LT_DLGLOBAL 0
16993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16994 find out it does not work in some platform. */
16995 #ifndef LT_DLLAZY_OR_NOW
16997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17000 # define LT_DLLAZY_OR_NOW DL_LAZY
17003 # define LT_DLLAZY_OR_NOW RTLD_NOW
17006 # define LT_DLLAZY_OR_NOW DL_NOW
17008 # define LT_DLLAZY_OR_NOW 0
17016 extern "C" void exit (int);
17019 void fnord() { int i=42;}
17022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17023 int status = $lt_dlunknown;
17027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17028 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17029 /* dlclose (self); */
17035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17036 (eval $ac_link) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17040 (./conftest; exit; ) 2>/dev/null
17042 case x$lt_status in
17043 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17044 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17045 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17048 # compilation failed
17049 lt_cv_dlopen_self=no
17056 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17057 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17059 if test "x$lt_cv_dlopen_self" = xyes; then
17060 LDFLAGS="$LDFLAGS $link_static_flag"
17061 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17062 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17063 if test "${lt_cv_dlopen_self_static+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 if test "$cross_compiling" = yes; then :
17067 lt_cv_dlopen_self_static=cross
17069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17070 lt_status=$lt_dlunknown
17071 cat > conftest.$ac_ext <<EOF
17072 #line 17072 "configure"
17073 #include "confdefs.h"
17082 # define LT_DLGLOBAL RTLD_GLOBAL
17085 # define LT_DLGLOBAL DL_GLOBAL
17087 # define LT_DLGLOBAL 0
17091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17092 find out it does not work in some platform. */
17093 #ifndef LT_DLLAZY_OR_NOW
17095 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17098 # define LT_DLLAZY_OR_NOW DL_LAZY
17101 # define LT_DLLAZY_OR_NOW RTLD_NOW
17104 # define LT_DLLAZY_OR_NOW DL_NOW
17106 # define LT_DLLAZY_OR_NOW 0
17114 extern "C" void exit (int);
17117 void fnord() { int i=42;}
17120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17121 int status = $lt_dlunknown;
17125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17127 /* dlclose (self); */
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17138 (./conftest; exit; ) 2>/dev/null
17140 case x$lt_status in
17141 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17142 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17143 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17146 # compilation failed
17147 lt_cv_dlopen_self_static=no
17154 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17155 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17158 CPPFLAGS="$save_CPPFLAGS"
17159 LDFLAGS="$save_LDFLAGS"
17164 case $lt_cv_dlopen_self in
17165 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17166 *) enable_dlopen_self=unknown ;;
17169 case $lt_cv_dlopen_self_static in
17170 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17171 *) enable_dlopen_self_static=unknown ;;
17176 # The else clause should only fire when bootstrapping the
17177 # libtool distribution, otherwise you forgot to ship ltmain.sh
17178 # with your package, and you will get complaints that there are
17179 # no rules to generate ltmain.sh.
17180 if test -f "$ltmain"; then
17181 # See if we are running on zsh, and set the options which allow our commands through
17182 # without removal of \ escapes.
17183 if test -n "${ZSH_VERSION+set}" ; then
17184 setopt NO_GLOB_SUBST
17186 # Now quote all the things that may contain metacharacters while being
17187 # careful not to overquote the AC_SUBSTed values. We take copies of the
17188 # variables and quote the copies for generation of the libtool script.
17189 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17190 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17191 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17192 deplibs_check_method reload_flag reload_cmds need_locks \
17193 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17194 lt_cv_sys_global_symbol_to_c_name_address \
17195 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17196 old_postinstall_cmds old_postuninstall_cmds \
17200 lt_prog_compiler_wl_GCJ \
17201 lt_prog_compiler_pic_GCJ \
17202 lt_prog_compiler_static_GCJ \
17203 lt_prog_compiler_no_builtin_flag_GCJ \
17204 export_dynamic_flag_spec_GCJ \
17205 thread_safe_flag_spec_GCJ \
17206 whole_archive_flag_spec_GCJ \
17207 enable_shared_with_static_runtimes_GCJ \
17208 old_archive_cmds_GCJ \
17209 old_archive_from_new_cmds_GCJ \
17210 predep_objects_GCJ \
17211 postdep_objects_GCJ \
17214 compiler_lib_search_path_GCJ \
17216 archive_expsym_cmds_GCJ \
17217 postinstall_cmds_GCJ \
17218 postuninstall_cmds_GCJ \
17219 old_archive_from_expsyms_cmds_GCJ \
17220 allow_undefined_flag_GCJ \
17221 no_undefined_flag_GCJ \
17222 export_symbols_cmds_GCJ \
17223 hardcode_libdir_flag_spec_GCJ \
17224 hardcode_libdir_flag_spec_ld_GCJ \
17225 hardcode_libdir_separator_GCJ \
17226 hardcode_automatic_GCJ \
17228 module_expsym_cmds_GCJ \
17229 lt_cv_prog_compiler_c_o_GCJ \
17230 exclude_expsyms_GCJ \
17231 include_expsyms_GCJ; do
17234 old_archive_cmds_GCJ | \
17235 old_archive_from_new_cmds_GCJ | \
17236 archive_cmds_GCJ | \
17237 archive_expsym_cmds_GCJ | \
17238 module_cmds_GCJ | \
17239 module_expsym_cmds_GCJ | \
17240 old_archive_from_expsyms_cmds_GCJ | \
17241 export_symbols_cmds_GCJ | \
17242 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17243 postinstall_cmds | postuninstall_cmds | \
17244 old_postinstall_cmds | old_postuninstall_cmds | \
17245 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17246 # Double-quote double-evaled strings.
17247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17256 *'\$0 --fallback-echo"')
17257 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17263 cat <<__EOF__ >> "$cfgfile"
17264 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17266 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17268 # Shell to use when invoking shell scripts.
17271 # Whether or not to build shared libraries.
17272 build_libtool_libs=$enable_shared
17274 # Whether or not to build static libraries.
17275 build_old_libs=$enable_static
17277 # Whether or not to add -lc for building shared libraries.
17278 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17280 # Whether or not to disallow shared libs when runtime libs are static
17281 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17283 # Whether or not to optimize for fast installation.
17284 fast_install=$enable_fast_install
17287 host_alias=$host_alias
17290 # An echo program that does not interpret backslashes.
17295 AR_FLAGS=$lt_AR_FLAGS
17300 # A language-specific compiler.
17301 CC=$lt_compiler_GCJ
17303 # Is the compiler the GNU C compiler?
17309 # The linker used to build libraries.
17312 # Whether we need hard or soft links.
17315 # A BSD-compatible nm program.
17318 # A symbol stripping program
17321 # Used to examine libraries when file_magic_cmd begins "file"
17322 MAGIC_CMD=$MAGIC_CMD
17324 # Used on cygwin: DLL creation program.
17327 # Used on cygwin: object dumper.
17330 # Used on cygwin: assembler.
17333 # The name of the directory that contains temporary libtool files.
17336 # How to create reloadable object files.
17337 reload_flag=$lt_reload_flag
17338 reload_cmds=$lt_reload_cmds
17340 # How to pass a linker flag through the compiler.
17341 wl=$lt_lt_prog_compiler_wl_GCJ
17343 # Object file suffix (normally "o").
17344 objext="$ac_objext"
17346 # Old archive suffix (normally "a").
17349 # Shared library suffix (normally ".so").
17352 # Executable file suffix (normally "").
17355 # Additional compiler flags for building library objects.
17356 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17359 # What is the maximum length of a command?
17360 max_cmd_len=$lt_cv_sys_max_cmd_len
17362 # Does compiler simultaneously support -c and -o options?
17363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17365 # Must we lock files when doing compilation ?
17366 need_locks=$lt_need_locks
17368 # Do we need the lib prefix for modules?
17369 need_lib_prefix=$need_lib_prefix
17371 # Do we need a version for libraries?
17372 need_version=$need_version
17374 # Whether dlopen is supported.
17375 dlopen_support=$enable_dlopen
17377 # Whether dlopen of programs is supported.
17378 dlopen_self=$enable_dlopen_self
17380 # Whether dlopen of statically linked programs is supported.
17381 dlopen_self_static=$enable_dlopen_self_static
17383 # Compiler flag to prevent dynamic linking.
17384 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17386 # Compiler flag to turn off builtin functions.
17387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17389 # Compiler flag to allow reflexive dlopens.
17390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17392 # Compiler flag to generate shared objects directly from archives.
17393 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17395 # Compiler flag to generate thread-safe objects.
17396 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17398 # Library versioning type.
17399 version_type=$version_type
17401 # Format of library name prefix.
17402 libname_spec=$lt_libname_spec
17404 # List of archive names. First name is the real one, the rest are links.
17405 # The last name is the one that the linker finds with -lNAME.
17406 library_names_spec=$lt_library_names_spec
17408 # The coded name of the library, if different from the real name.
17409 soname_spec=$lt_soname_spec
17411 # Commands used to build and install an old-style archive.
17413 old_archive_cmds=$lt_old_archive_cmds_GCJ
17414 old_postinstall_cmds=$lt_old_postinstall_cmds
17415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17417 # Create an old-style archive from a shared archive.
17418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17420 # Create a temporary old-style archive to link instead of a shared archive.
17421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17423 # Commands used to build and install a shared archive.
17424 archive_cmds=$lt_archive_cmds_GCJ
17425 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17426 postinstall_cmds=$lt_postinstall_cmds
17427 postuninstall_cmds=$lt_postuninstall_cmds
17429 # Commands used to build a loadable module (assumed same as above if empty)
17430 module_cmds=$lt_module_cmds_GCJ
17431 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17433 # Commands to strip libraries.
17434 old_striplib=$lt_old_striplib
17435 striplib=$lt_striplib
17437 # Dependencies to place before the objects being linked to create a
17439 predep_objects=$lt_predep_objects_GCJ
17441 # Dependencies to place after the objects being linked to create a
17443 postdep_objects=$lt_postdep_objects_GCJ
17445 # Dependencies to place before the objects being linked to create a
17447 predeps=$lt_predeps_GCJ
17449 # Dependencies to place after the objects being linked to create a
17451 postdeps=$lt_postdeps_GCJ
17453 # The library search path used internally by the compiler when linking
17454 # a shared library.
17455 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17457 # Method to check whether dependent libraries are shared objects.
17458 deplibs_check_method=$lt_deplibs_check_method
17460 # Command to use when deplibs_check_method == file_magic.
17461 file_magic_cmd=$lt_file_magic_cmd
17463 # Flag that allows shared libraries with undefined symbols to be built.
17464 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17466 # Flag that forces no undefined symbols.
17467 no_undefined_flag=$lt_no_undefined_flag_GCJ
17469 # Commands used to finish a libtool library installation in a directory.
17470 finish_cmds=$lt_finish_cmds
17472 # Same as above, but a single script fragment to be evaled but not shown.
17473 finish_eval=$lt_finish_eval
17475 # Take the output of nm and produce a listing of raw symbols and C names.
17476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17478 # Transform the output of nm in a proper C declaration
17479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17481 # Transform the output of nm in a C name address pair
17482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17484 # This is the shared library runtime path variable.
17485 runpath_var=$runpath_var
17487 # This is the shared library path variable.
17488 shlibpath_var=$shlibpath_var
17490 # Is shlibpath searched before the hard-coded library search path?
17491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17493 # How to hardcode a shared library path into an executable.
17494 hardcode_action=$hardcode_action_GCJ
17496 # Whether we should hardcode library paths into libraries.
17497 hardcode_into_libs=$hardcode_into_libs
17499 # Flag to hardcode \$libdir into a binary during linking.
17500 # This must work even if \$libdir does not exist.
17501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17503 # If ld is used when linking, flag to hardcode \$libdir into
17504 # a binary during linking. This must work even if \$libdir does
17506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17508 # Whether we need a single -rpath flag with a separated argument.
17509 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17511 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17512 # resulting binary.
17513 hardcode_direct=$hardcode_direct_GCJ
17515 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17516 # resulting binary.
17517 hardcode_minus_L=$hardcode_minus_L_GCJ
17519 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17520 # the resulting binary.
17521 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17523 # Set to yes if building a shared library automatically hardcodes DIR into the library
17524 # and all subsequent libraries and executables linked against it.
17525 hardcode_automatic=$hardcode_automatic_GCJ
17527 # Variables whose values should be saved in libtool wrapper scripts and
17528 # restored at relink time.
17529 variables_saved_for_relink="$variables_saved_for_relink"
17531 # Whether libtool must link a program against all its dependency libraries.
17532 link_all_deplibs=$link_all_deplibs_GCJ
17534 # Compile-time system search path for libraries
17535 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17537 # Run-time system search path for libraries
17538 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17540 # Fix the shell variable \$srcfile for the compiler.
17541 fix_srcfile_path="$fix_srcfile_path_GCJ"
17543 # Set to yes if exported symbols are required.
17544 always_export_symbols=$always_export_symbols_GCJ
17546 # The commands to list exported symbols.
17547 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17549 # The commands to extract the exported symbol list from a shared archive.
17550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17552 # Symbols that should not be listed in the preloaded symbols.
17553 exclude_expsyms=$lt_exclude_expsyms_GCJ
17555 # Symbols that must always be exported.
17556 include_expsyms=$lt_include_expsyms_GCJ
17558 # ### END LIBTOOL TAG CONFIG: $tagname
17564 # If there is no Makefile yet, we rely on a make rule to execute
17565 # `config.status --recheck' to rerun these tests and create the
17566 # libtool script then.
17567 test -f Makefile && make "$ltmain"
17572 ac_cpp='$CPP $CPPFLAGS'
17573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17588 # Source file extension for RC test sources.
17591 # Object file extension for compiled RC test sources.
17595 # Code to be used in simple compile tests
17596 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17598 # Code to be used in simple link tests
17599 lt_simple_link_test_code="$lt_simple_compile_test_code"
17601 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17603 # If no C compiler was specified, use CC.
17606 # Allow CC to be a program name with arguments.
17610 # Allow CC to be a program name with arguments.
17615 lt_cv_prog_compiler_c_o_RC=yes
17617 # The else clause should only fire when bootstrapping the
17618 # libtool distribution, otherwise you forgot to ship ltmain.sh
17619 # with your package, and you will get complaints that there are
17620 # no rules to generate ltmain.sh.
17621 if test -f "$ltmain"; then
17622 # See if we are running on zsh, and set the options which allow our commands through
17623 # without removal of \ escapes.
17624 if test -n "${ZSH_VERSION+set}" ; then
17625 setopt NO_GLOB_SUBST
17627 # Now quote all the things that may contain metacharacters while being
17628 # careful not to overquote the AC_SUBSTed values. We take copies of the
17629 # variables and quote the copies for generation of the libtool script.
17630 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17631 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17632 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17633 deplibs_check_method reload_flag reload_cmds need_locks \
17634 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17635 lt_cv_sys_global_symbol_to_c_name_address \
17636 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17637 old_postinstall_cmds old_postuninstall_cmds \
17641 lt_prog_compiler_wl_RC \
17642 lt_prog_compiler_pic_RC \
17643 lt_prog_compiler_static_RC \
17644 lt_prog_compiler_no_builtin_flag_RC \
17645 export_dynamic_flag_spec_RC \
17646 thread_safe_flag_spec_RC \
17647 whole_archive_flag_spec_RC \
17648 enable_shared_with_static_runtimes_RC \
17649 old_archive_cmds_RC \
17650 old_archive_from_new_cmds_RC \
17651 predep_objects_RC \
17652 postdep_objects_RC \
17655 compiler_lib_search_path_RC \
17657 archive_expsym_cmds_RC \
17658 postinstall_cmds_RC \
17659 postuninstall_cmds_RC \
17660 old_archive_from_expsyms_cmds_RC \
17661 allow_undefined_flag_RC \
17662 no_undefined_flag_RC \
17663 export_symbols_cmds_RC \
17664 hardcode_libdir_flag_spec_RC \
17665 hardcode_libdir_flag_spec_ld_RC \
17666 hardcode_libdir_separator_RC \
17667 hardcode_automatic_RC \
17669 module_expsym_cmds_RC \
17670 lt_cv_prog_compiler_c_o_RC \
17671 exclude_expsyms_RC \
17672 include_expsyms_RC; do
17675 old_archive_cmds_RC | \
17676 old_archive_from_new_cmds_RC | \
17677 archive_cmds_RC | \
17678 archive_expsym_cmds_RC | \
17680 module_expsym_cmds_RC | \
17681 old_archive_from_expsyms_cmds_RC | \
17682 export_symbols_cmds_RC | \
17683 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17684 postinstall_cmds | postuninstall_cmds | \
17685 old_postinstall_cmds | old_postuninstall_cmds | \
17686 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17687 # Double-quote double-evaled strings.
17688 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17697 *'\$0 --fallback-echo"')
17698 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17704 cat <<__EOF__ >> "$cfgfile"
17705 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17707 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17709 # Shell to use when invoking shell scripts.
17712 # Whether or not to build shared libraries.
17713 build_libtool_libs=$enable_shared
17715 # Whether or not to build static libraries.
17716 build_old_libs=$enable_static
17718 # Whether or not to add -lc for building shared libraries.
17719 build_libtool_need_lc=$archive_cmds_need_lc_RC
17721 # Whether or not to disallow shared libs when runtime libs are static
17722 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17724 # Whether or not to optimize for fast installation.
17725 fast_install=$enable_fast_install
17728 host_alias=$host_alias
17731 # An echo program that does not interpret backslashes.
17736 AR_FLAGS=$lt_AR_FLAGS
17741 # A language-specific compiler.
17744 # Is the compiler the GNU C compiler?
17750 # The linker used to build libraries.
17753 # Whether we need hard or soft links.
17756 # A BSD-compatible nm program.
17759 # A symbol stripping program
17762 # Used to examine libraries when file_magic_cmd begins "file"
17763 MAGIC_CMD=$MAGIC_CMD
17765 # Used on cygwin: DLL creation program.
17768 # Used on cygwin: object dumper.
17771 # Used on cygwin: assembler.
17774 # The name of the directory that contains temporary libtool files.
17777 # How to create reloadable object files.
17778 reload_flag=$lt_reload_flag
17779 reload_cmds=$lt_reload_cmds
17781 # How to pass a linker flag through the compiler.
17782 wl=$lt_lt_prog_compiler_wl_RC
17784 # Object file suffix (normally "o").
17785 objext="$ac_objext"
17787 # Old archive suffix (normally "a").
17790 # Shared library suffix (normally ".so").
17793 # Executable file suffix (normally "").
17796 # Additional compiler flags for building library objects.
17797 pic_flag=$lt_lt_prog_compiler_pic_RC
17800 # What is the maximum length of a command?
17801 max_cmd_len=$lt_cv_sys_max_cmd_len
17803 # Does compiler simultaneously support -c and -o options?
17804 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17806 # Must we lock files when doing compilation ?
17807 need_locks=$lt_need_locks
17809 # Do we need the lib prefix for modules?
17810 need_lib_prefix=$need_lib_prefix
17812 # Do we need a version for libraries?
17813 need_version=$need_version
17815 # Whether dlopen is supported.
17816 dlopen_support=$enable_dlopen
17818 # Whether dlopen of programs is supported.
17819 dlopen_self=$enable_dlopen_self
17821 # Whether dlopen of statically linked programs is supported.
17822 dlopen_self_static=$enable_dlopen_self_static
17824 # Compiler flag to prevent dynamic linking.
17825 link_static_flag=$lt_lt_prog_compiler_static_RC
17827 # Compiler flag to turn off builtin functions.
17828 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17830 # Compiler flag to allow reflexive dlopens.
17831 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17833 # Compiler flag to generate shared objects directly from archives.
17834 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17836 # Compiler flag to generate thread-safe objects.
17837 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17839 # Library versioning type.
17840 version_type=$version_type
17842 # Format of library name prefix.
17843 libname_spec=$lt_libname_spec
17845 # List of archive names. First name is the real one, the rest are links.
17846 # The last name is the one that the linker finds with -lNAME.
17847 library_names_spec=$lt_library_names_spec
17849 # The coded name of the library, if different from the real name.
17850 soname_spec=$lt_soname_spec
17852 # Commands used to build and install an old-style archive.
17854 old_archive_cmds=$lt_old_archive_cmds_RC
17855 old_postinstall_cmds=$lt_old_postinstall_cmds
17856 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17858 # Create an old-style archive from a shared archive.
17859 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17861 # Create a temporary old-style archive to link instead of a shared archive.
17862 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17864 # Commands used to build and install a shared archive.
17865 archive_cmds=$lt_archive_cmds_RC
17866 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17867 postinstall_cmds=$lt_postinstall_cmds
17868 postuninstall_cmds=$lt_postuninstall_cmds
17870 # Commands used to build a loadable module (assumed same as above if empty)
17871 module_cmds=$lt_module_cmds_RC
17872 module_expsym_cmds=$lt_module_expsym_cmds_RC
17874 # Commands to strip libraries.
17875 old_striplib=$lt_old_striplib
17876 striplib=$lt_striplib
17878 # Dependencies to place before the objects being linked to create a
17880 predep_objects=$lt_predep_objects_RC
17882 # Dependencies to place after the objects being linked to create a
17884 postdep_objects=$lt_postdep_objects_RC
17886 # Dependencies to place before the objects being linked to create a
17888 predeps=$lt_predeps_RC
17890 # Dependencies to place after the objects being linked to create a
17892 postdeps=$lt_postdeps_RC
17894 # The library search path used internally by the compiler when linking
17895 # a shared library.
17896 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17898 # Method to check whether dependent libraries are shared objects.
17899 deplibs_check_method=$lt_deplibs_check_method
17901 # Command to use when deplibs_check_method == file_magic.
17902 file_magic_cmd=$lt_file_magic_cmd
17904 # Flag that allows shared libraries with undefined symbols to be built.
17905 allow_undefined_flag=$lt_allow_undefined_flag_RC
17907 # Flag that forces no undefined symbols.
17908 no_undefined_flag=$lt_no_undefined_flag_RC
17910 # Commands used to finish a libtool library installation in a directory.
17911 finish_cmds=$lt_finish_cmds
17913 # Same as above, but a single script fragment to be evaled but not shown.
17914 finish_eval=$lt_finish_eval
17916 # Take the output of nm and produce a listing of raw symbols and C names.
17917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17919 # Transform the output of nm in a proper C declaration
17920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17922 # Transform the output of nm in a C name address pair
17923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17925 # This is the shared library runtime path variable.
17926 runpath_var=$runpath_var
17928 # This is the shared library path variable.
17929 shlibpath_var=$shlibpath_var
17931 # Is shlibpath searched before the hard-coded library search path?
17932 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17934 # How to hardcode a shared library path into an executable.
17935 hardcode_action=$hardcode_action_RC
17937 # Whether we should hardcode library paths into libraries.
17938 hardcode_into_libs=$hardcode_into_libs
17940 # Flag to hardcode \$libdir into a binary during linking.
17941 # This must work even if \$libdir does not exist.
17942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17944 # If ld is used when linking, flag to hardcode \$libdir into
17945 # a binary during linking. This must work even if \$libdir does
17947 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17949 # Whether we need a single -rpath flag with a separated argument.
17950 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17952 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17953 # resulting binary.
17954 hardcode_direct=$hardcode_direct_RC
17956 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17957 # resulting binary.
17958 hardcode_minus_L=$hardcode_minus_L_RC
17960 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17961 # the resulting binary.
17962 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17964 # Set to yes if building a shared library automatically hardcodes DIR into the library
17965 # and all subsequent libraries and executables linked against it.
17966 hardcode_automatic=$hardcode_automatic_RC
17968 # Variables whose values should be saved in libtool wrapper scripts and
17969 # restored at relink time.
17970 variables_saved_for_relink="$variables_saved_for_relink"
17972 # Whether libtool must link a program against all its dependency libraries.
17973 link_all_deplibs=$link_all_deplibs_RC
17975 # Compile-time system search path for libraries
17976 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17978 # Run-time system search path for libraries
17979 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17981 # Fix the shell variable \$srcfile for the compiler.
17982 fix_srcfile_path="$fix_srcfile_path_RC"
17984 # Set to yes if exported symbols are required.
17985 always_export_symbols=$always_export_symbols_RC
17987 # The commands to list exported symbols.
17988 export_symbols_cmds=$lt_export_symbols_cmds_RC
17990 # The commands to extract the exported symbol list from a shared archive.
17991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17993 # Symbols that should not be listed in the preloaded symbols.
17994 exclude_expsyms=$lt_exclude_expsyms_RC
17996 # Symbols that must always be exported.
17997 include_expsyms=$lt_include_expsyms_RC
17999 # ### END LIBTOOL TAG CONFIG: $tagname
18005 # If there is no Makefile yet, we rely on a make rule to execute
18006 # `config.status --recheck' to rerun these tests and create the
18007 # libtool script then.
18008 test -f Makefile && make "$ltmain"
18013 ac_cpp='$CPP $CPPFLAGS'
18014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18023 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18024 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18025 { (exit 1); exit 1; }; }
18029 # Append the new tag name to the list of available tags.
18030 if test -n "$tagname" ; then
18031 available_tags="$available_tags $tagname"
18037 # Now substitute the updated list of available tags.
18038 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18039 mv "${ofile}T" "$ofile"
18043 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18044 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18045 { (exit 1); exit 1; }; }
18051 # This can be used to rebuild libtool when needed
18052 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18054 # Always use our own libtool.
18055 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18057 # Prevent multiple expansion
18079 # Extract the first word of "dot", so it can be a program name with args.
18080 set dummy dot; ac_word=$2
18081 echo "$as_me:$LINENO: checking for $ac_word" >&5
18082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18083 if test "${ac_cv_path_DOT+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18092 for as_dir in $PATH
18095 test -z "$as_dir" && as_dir=.
18096 for ac_exec_ext in '' $ac_executable_extensions; do
18097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18098 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18105 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18109 DOT=$ac_cv_path_DOT
18111 if test -n "$DOT"; then
18112 echo "$as_me:$LINENO: result: $DOT" >&5
18113 echo "${ECHO_T}$DOT" >&6
18115 echo "$as_me:$LINENO: result: no" >&5
18116 echo "${ECHO_T}no" >&6
18119 # Extract the first word of "etags", so it can be a program name with args.
18120 set dummy etags; ac_word=$2
18121 echo "$as_me:$LINENO: checking for $ac_word" >&5
18122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18123 if test "${ac_cv_path_ETAGS+set}" = set; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18128 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18132 for as_dir in $PATH
18135 test -z "$as_dir" && as_dir=.
18136 for ac_exec_ext in '' $ac_executable_extensions; do
18137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18138 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18145 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18149 ETAGS=$ac_cv_path_ETAGS
18151 if test -n "$ETAGS"; then
18152 echo "$as_me:$LINENO: result: $ETAGS" >&5
18153 echo "${ECHO_T}$ETAGS" >&6
18155 echo "$as_me:$LINENO: result: no" >&5
18156 echo "${ECHO_T}no" >&6
18159 etags_version=`$ETAGS --version 2>&1`
18160 case "$etags_version" in
18161 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18162 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18163 *) ETAGSFLAGS="" ;;
18165 ETAGSFLAGS=$ETAGSFLAGS
18167 # Extract the first word of "python", so it can be a program name with args.
18168 set dummy python; ac_word=$2
18169 echo "$as_me:$LINENO: checking for $ac_word" >&5
18170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18171 if test "${ac_cv_path_PYTHON+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18176 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18180 for as_dir in $PATH
18183 test -z "$as_dir" && as_dir=.
18184 for ac_exec_ext in '' $ac_executable_extensions; do
18185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18186 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18193 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18197 PYTHON=$ac_cv_path_PYTHON
18199 if test -n "$PYTHON"; then
18200 echo "$as_me:$LINENO: result: $PYTHON" >&5
18201 echo "${ECHO_T}$PYTHON" >&6
18203 echo "$as_me:$LINENO: result: no" >&5
18204 echo "${ECHO_T}no" >&6
18207 if test "$PYTHON" = "false"
18209 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18210 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18212 # Extract the first word of "qmtest", so it can be a program name with args.
18213 set dummy qmtest; ac_word=$2
18214 echo "$as_me:$LINENO: checking for $ac_word" >&5
18215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18216 if test "${ac_cv_path_QMTEST+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18221 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18225 for as_dir in $PATH
18228 test -z "$as_dir" && as_dir=.
18229 for ac_exec_ext in '' $ac_executable_extensions; do
18230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18231 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18238 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18242 QMTEST=$ac_cv_path_QMTEST
18244 if test -n "$QMTEST"; then
18245 echo "$as_me:$LINENO: result: $QMTEST" >&5
18246 echo "${ECHO_T}$QMTEST" >&6
18248 echo "$as_me:$LINENO: result: no" >&5
18249 echo "${ECHO_T}no" >&6
18252 if test "$QMTEST" = "false"
18254 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18255 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18258 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18259 pymajor=`echo $pyversion | cut -d. -f1`
18260 pyminor=`echo $pyversion | cut -d. -f2`
18262 if test "$pymajor" -ge "2"
18264 if test "$pymajor" -eq "2"
18266 if test "$pyminor" -lt "2"
18268 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18269 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18273 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18274 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18280 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18281 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18282 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18285 ac_check_lib_save_LIBS=$LIBS
18287 cat >conftest.$ac_ext <<_ACEOF
18288 #line $LINENO "configure"
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18295 /* Override any gcc2 internal prototype to avoid an error. */
18299 /* We use char because int might match the return type of a gcc2
18300 builtin and then its argument prototype would still apply. */
18310 rm -f conftest.$ac_objext conftest$ac_exeext
18311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18312 (eval $ac_link) 2>&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
18316 { ac_try='test -s conftest$ac_exeext'
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_cv_lib_elf_elf_begin=yes
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 ac_cv_lib_elf_elf_begin=no
18329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18330 LIBS=$ac_check_lib_save_LIBS
18332 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18333 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18334 if test $ac_cv_lib_elf_elf_begin = yes; then
18335 cat >>confdefs.h <<_ACEOF
18336 #define HAVE_LIBELF 1
18344 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18345 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18346 if test "${ac_cv_search_dlopen+set}" = set; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 ac_func_search_save_LIBS=$LIBS
18350 ac_cv_search_dlopen=no
18351 cat >conftest.$ac_ext <<_ACEOF
18352 #line $LINENO "configure"
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18359 /* Override any gcc2 internal prototype to avoid an error. */
18363 /* We use char because int might match the return type of a gcc2
18364 builtin and then its argument prototype would still apply. */
18374 rm -f conftest.$ac_objext conftest$ac_exeext
18375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18376 (eval $ac_link) 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
18380 { ac_try='test -s conftest$ac_exeext'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 ac_cv_search_dlopen="none required"
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18393 if test "$ac_cv_search_dlopen" = no; then
18394 for ac_lib in dl; do
18395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18396 cat >conftest.$ac_ext <<_ACEOF
18397 #line $LINENO "configure"
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18404 /* Override any gcc2 internal prototype to avoid an error. */
18408 /* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421 (eval $ac_link) 2>&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
18425 { ac_try='test -s conftest$ac_exeext'
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_cv_search_dlopen="-l$ac_lib"
18434 echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18441 LIBS=$ac_func_search_save_LIBS
18443 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18444 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18445 if test "$ac_cv_search_dlopen" != no; then
18446 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18448 cat >>confdefs.h <<\_ACEOF
18449 #define HAVE_DLOPEN 1
18453 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18454 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18458 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18459 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18460 if test "${ac_cv_search_mallinfo+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18463 ac_func_search_save_LIBS=$LIBS
18464 ac_cv_search_mallinfo=no
18465 cat >conftest.$ac_ext <<_ACEOF
18466 #line $LINENO "configure"
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h. */
18473 /* Override any gcc2 internal prototype to avoid an error. */
18477 /* We use char because int might match the return type of a gcc2
18478 builtin and then its argument prototype would still apply. */
18488 rm -f conftest.$ac_objext conftest$ac_exeext
18489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18490 (eval $ac_link) 2>&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
18494 { ac_try='test -s conftest$ac_exeext'
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; }; then
18500 ac_cv_search_mallinfo="none required"
18502 echo "$as_me: failed program was:" >&5
18503 sed 's/^/| /' conftest.$ac_ext >&5
18506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18507 if test "$ac_cv_search_mallinfo" = no; then
18508 for ac_lib in malloc; do
18509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18510 cat >conftest.$ac_ext <<_ACEOF
18511 #line $LINENO "configure"
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18518 /* Override any gcc2 internal prototype to avoid an error. */
18522 /* We use char because int might match the return type of a gcc2
18523 builtin and then its argument prototype would still apply. */
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535 (eval $ac_link) 2>&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -s conftest$ac_exeext'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 ac_cv_search_mallinfo="-l$ac_lib"
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18555 LIBS=$ac_func_search_save_LIBS
18557 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18558 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18559 if test "$ac_cv_search_mallinfo" != no; then
18560 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE_MALLINFO 1
18569 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18570 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18571 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 ac_func_search_save_LIBS=$LIBS
18575 ac_cv_search_pthread_mutex_lock=no
18576 cat >conftest.$ac_ext <<_ACEOF
18577 #line $LINENO "configure"
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18584 /* Override any gcc2 internal prototype to avoid an error. */
18588 /* We use char because int might match the return type of a gcc2
18589 builtin and then its argument prototype would still apply. */
18590 char pthread_mutex_lock ();
18594 pthread_mutex_lock ();
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18601 (eval $ac_link) 2>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -s conftest$ac_exeext'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; }; then
18611 ac_cv_search_pthread_mutex_lock="none required"
18613 echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18618 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18619 for ac_lib in pthread; do
18620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18621 cat >conftest.$ac_ext <<_ACEOF
18622 #line $LINENO "configure"
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18629 /* Override any gcc2 internal prototype to avoid an error. */
18633 /* We use char because int might match the return type of a gcc2
18634 builtin and then its argument prototype would still apply. */
18635 char pthread_mutex_lock ();
18639 pthread_mutex_lock ();
18644 rm -f conftest.$ac_objext conftest$ac_exeext
18645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18646 (eval $ac_link) 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } &&
18650 { ac_try='test -s conftest$ac_exeext'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18666 LIBS=$ac_func_search_save_LIBS
18668 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18669 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18670 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18671 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18673 cat >>confdefs.h <<\_ACEOF
18674 #define HAVE_PTHREAD_MUTEX_LOCK 1
18680 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18681 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18682 if test "${ac_cv_header_stdc+set}" = set; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 cat >conftest.$ac_ext <<_ACEOF
18686 #line $LINENO "configure"
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 #include <stdlib.h>
18693 #include <stdarg.h>
18694 #include <string.h>
18705 rm -f conftest.$ac_objext
18706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18707 (eval $ac_compile) 2>&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } &&
18711 { ac_try='test -s conftest.$ac_objext'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 ac_cv_header_stdc=yes
18719 echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18722 ac_cv_header_stdc=no
18724 rm -f conftest.$ac_objext conftest.$ac_ext
18726 if test $ac_cv_header_stdc = yes; then
18727 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18728 cat >conftest.$ac_ext <<_ACEOF
18729 #line $LINENO "configure"
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18735 #include <string.h>
18738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18739 $EGREP "memchr" >/dev/null 2>&1; then
18742 ac_cv_header_stdc=no
18748 if test $ac_cv_header_stdc = yes; then
18749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18750 cat >conftest.$ac_ext <<_ACEOF
18751 #line $LINENO "configure"
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h. */
18757 #include <stdlib.h>
18760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18761 $EGREP "free" >/dev/null 2>&1; then
18764 ac_cv_header_stdc=no
18770 if test $ac_cv_header_stdc = yes; then
18771 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18772 if test "$cross_compiling" = yes; then
18775 cat >conftest.$ac_ext <<_ACEOF
18776 #line $LINENO "configure"
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18783 #if ((' ' & 0x0FF) == 0x020)
18784 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18785 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18787 # define ISLOWER(c) \
18788 (('a' <= (c) && (c) <= 'i') \
18789 || ('j' <= (c) && (c) <= 'r') \
18790 || ('s' <= (c) && (c) <= 'z'))
18791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18799 for (i = 0; i < 256; i++)
18800 if (XOR (islower (i), ISLOWER (i))
18801 || toupper (i) != TOUPPER (i))
18806 rm -f conftest$ac_exeext
18807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18808 (eval $ac_link) 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18819 echo "$as_me: program exited with status $ac_status" >&5
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ( exit $ac_status )
18824 ac_cv_header_stdc=no
18826 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18830 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18831 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18832 if test $ac_cv_header_stdc = yes; then
18834 cat >>confdefs.h <<\_ACEOF
18835 #define STDC_HEADERS 1
18840 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18841 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18842 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 cat >conftest.$ac_ext <<_ACEOF
18846 #line $LINENO "configure"
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18852 #include <sys/types.h>
18853 #include <sys/wait.h>
18854 #ifndef WEXITSTATUS
18855 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18858 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18866 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18871 rm -f conftest.$ac_objext
18872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18873 (eval $ac_compile) 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } &&
18877 { ac_try='test -s conftest.$ac_objext'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 ac_cv_header_sys_wait_h=yes
18885 echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18888 ac_cv_header_sys_wait_h=no
18890 rm -f conftest.$ac_objext conftest.$ac_ext
18892 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18893 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18894 if test $ac_cv_header_sys_wait_h = yes; then
18896 cat >>confdefs.h <<\_ACEOF
18897 #define HAVE_SYS_WAIT_H 1
18912 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
18914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18916 echo "$as_me:$LINENO: checking for $ac_header" >&5
18917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18924 # Is the header compilable?
18925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18927 cat >conftest.$ac_ext <<_ACEOF
18928 #line $LINENO "configure"
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18934 $ac_includes_default
18935 #include <$ac_header>
18937 rm -f conftest.$ac_objext
18938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18939 (eval $ac_compile) 2>&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
18943 { ac_try='test -s conftest.$ac_objext'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 ac_header_compiler=yes
18951 echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18954 ac_header_compiler=no
18956 rm -f conftest.$ac_objext conftest.$ac_ext
18957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18958 echo "${ECHO_T}$ac_header_compiler" >&6
18960 # Is the header present?
18961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18963 cat >conftest.$ac_ext <<_ACEOF
18964 #line $LINENO "configure"
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970 #include <$ac_header>
18972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18975 grep -v '^ *+' conftest.er1 >conftest.err
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } >/dev/null; then
18980 if test -s conftest.err; then
18981 ac_cpp_err=$ac_c_preproc_warn_flag
18988 if test -z "$ac_cpp_err"; then
18989 ac_header_preproc=yes
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_header_preproc=no
18996 rm -f conftest.err conftest.$ac_ext
18997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18998 echo "${ECHO_T}$ac_header_preproc" >&6
19000 # So? What about this header?
19001 case $ac_header_compiler:$ac_header_preproc in
19003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19009 ## ------------------------------------ ##
19010 ## Report this to bug-autoconf@gnu.org. ##
19011 ## ------------------------------------ ##
19014 sed "s/^/$as_me: WARNING: /" >&2
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19025 ## ------------------------------------ ##
19026 ## Report this to bug-autoconf@gnu.org. ##
19027 ## ------------------------------------ ##
19030 sed "s/^/$as_me: WARNING: /" >&2
19033 echo "$as_me:$LINENO: checking for $ac_header" >&5
19034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19038 eval "$as_ac_Header=$ac_header_preproc"
19040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19045 cat >>confdefs.h <<_ACEOF
19046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19054 echo "$as_me:$LINENO: checking for pid_t" >&5
19055 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19056 if test "${ac_cv_type_pid_t+set}" = set; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19059 cat >conftest.$ac_ext <<_ACEOF
19060 #line $LINENO "configure"
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19066 $ac_includes_default
19072 if (sizeof (pid_t))
19078 rm -f conftest.$ac_objext
19079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19080 (eval $ac_compile) 2>&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
19084 { ac_try='test -s conftest.$ac_objext'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_cv_type_pid_t=yes
19092 echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.$ac_ext >&5
19095 ac_cv_type_pid_t=no
19097 rm -f conftest.$ac_objext conftest.$ac_ext
19099 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19100 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19101 if test $ac_cv_type_pid_t = yes; then
19105 cat >>confdefs.h <<_ACEOF
19111 echo "$as_me:$LINENO: checking for size_t" >&5
19112 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19113 if test "${ac_cv_type_size_t+set}" = set; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19116 cat >conftest.$ac_ext <<_ACEOF
19117 #line $LINENO "configure"
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19123 $ac_includes_default
19129 if (sizeof (size_t))
19135 rm -f conftest.$ac_objext
19136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19137 (eval $ac_compile) 2>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } &&
19141 { ac_try='test -s conftest.$ac_objext'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_cv_type_size_t=yes
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19152 ac_cv_type_size_t=no
19154 rm -f conftest.$ac_objext conftest.$ac_ext
19156 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19157 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19158 if test $ac_cv_type_size_t = yes; then
19162 cat >>confdefs.h <<_ACEOF
19163 #define size_t unsigned
19168 echo "$as_me:$LINENO: checking for int64_t" >&5
19169 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19170 if test "${ac_cv_type_int64_t+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 cat >conftest.$ac_ext <<_ACEOF
19174 #line $LINENO "configure"
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19180 $ac_includes_default
19186 if (sizeof (int64_t))
19192 rm -f conftest.$ac_objext
19193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19194 (eval $ac_compile) 2>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
19198 { ac_try='test -s conftest.$ac_objext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_cv_type_int64_t=yes
19206 echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19209 ac_cv_type_int64_t=no
19211 rm -f conftest.$ac_objext conftest.$ac_ext
19213 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19214 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19215 if test $ac_cv_type_int64_t = yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define HAVE_INT64_T 1
19223 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19224 echo "$as_me: error: Type int64_t required but not found" >&2;}
19225 { (exit 1); exit 1; }; }
19228 echo "$as_me:$LINENO: checking for uint64_t" >&5
19229 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19230 if test "${ac_cv_type_uint64_t+set}" = set; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19233 cat >conftest.$ac_ext <<_ACEOF
19234 #line $LINENO "configure"
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 $ac_includes_default
19244 if ((uint64_t *) 0)
19246 if (sizeof (uint64_t))
19252 rm -f conftest.$ac_objext
19253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19254 (eval $ac_compile) 2>&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } &&
19258 { ac_try='test -s conftest.$ac_objext'
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264 ac_cv_type_uint64_t=yes
19266 echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19269 ac_cv_type_uint64_t=no
19271 rm -f conftest.$ac_objext conftest.$ac_ext
19273 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19274 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19275 if test $ac_cv_type_uint64_t = yes; then
19277 cat >>confdefs.h <<_ACEOF
19278 #define HAVE_UINT64_T 1
19283 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19284 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19285 { (exit 1); exit 1; }; }
19288 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19289 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19290 if test "${ac_cv_header_time+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19293 cat >conftest.$ac_ext <<_ACEOF
19294 #line $LINENO "configure"
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 #include <sys/types.h>
19301 #include <sys/time.h>
19307 if ((struct tm *) 0)
19313 rm -f conftest.$ac_objext
19314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19315 (eval $ac_compile) 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -s conftest.$ac_objext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_cv_header_time=yes
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 ac_cv_header_time=no
19332 rm -f conftest.$ac_objext conftest.$ac_ext
19334 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19335 echo "${ECHO_T}$ac_cv_header_time" >&6
19336 if test $ac_cv_header_time = yes; then
19338 cat >>confdefs.h <<\_ACEOF
19339 #define TIME_WITH_SYS_TIME 1
19344 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19345 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19346 if test "${ac_cv_struct_tm+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 cat >conftest.$ac_ext <<_ACEOF
19350 #line $LINENO "configure"
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356 #include <sys/types.h>
19362 struct tm *tp; tp->tm_sec;
19367 rm -f conftest.$ac_objext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369 (eval $ac_compile) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -s conftest.$ac_objext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_struct_tm=time.h
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_struct_tm=sys/time.h
19386 rm -f conftest.$ac_objext conftest.$ac_ext
19388 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19389 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19390 if test $ac_cv_struct_tm = sys/time.h; then
19392 cat >>confdefs.h <<\_ACEOF
19393 #define TM_IN_SYS_TIME 1
19403 ac_cpp='$CPP $CPPFLAGS'
19404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19408 if test "$cross_compiling" = yes; then
19409 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19410 See \`config.log' for more details." >&5
19411 echo "$as_me: error: cannot run test program while cross compiling
19412 See \`config.log' for more details." >&2;}
19413 { (exit 1); exit 1; }; }
19415 cat >conftest.$ac_ext <<_ACEOF
19416 #line $LINENO "configure"
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19423 #include <stdlib.h>
19428 volatile double A, B;
19432 sprintf(Buffer, "%a", A);
19436 if (A != 0x1.999999999999ap-4)
19443 rm -f conftest$ac_exeext
19444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19445 (eval $ac_link) 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19456 echo "$as_me: program exited with status $ac_status" >&5
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19460 ( exit $ac_status )
19463 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19466 ac_cpp='$CPP $CPPFLAGS'
19467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19471 if test "$ac_c_printf_a" = "yes"; then
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_PRINTF_A 1
19480 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19481 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19482 if test "${ac_cv_cxx_namespaces+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 ac_cpp='$CXXCPP $CPPFLAGS'
19489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19493 cat >conftest.$ac_ext <<_ACEOF
19494 #line $LINENO "configure"
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19500 namespace Outer { namespace Inner { int i = 0; }}
19504 using namespace Outer::Inner; return i;
19509 rm -f conftest.$ac_objext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19511 (eval $ac_compile) 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
19515 { ac_try='test -s conftest.$ac_objext'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 ac_cv_cxx_namespaces=yes
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ac_cv_cxx_namespaces=no
19528 rm -f conftest.$ac_objext conftest.$ac_ext
19530 ac_cpp='$CPP $CPPFLAGS'
19531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19537 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19538 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19539 if test "$ac_cv_cxx_namespaces" = yes; then
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE_NAMESPACES
19547 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
19548 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
19549 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 ac_cpp='$CXXCPP $CPPFLAGS'
19557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19561 cat >conftest.$ac_ext <<_ACEOF
19562 #line $LINENO "configure"
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 #include <ext/hash_map>
19569 #ifdef HAVE_NAMESPACES
19570 using namespace std;
19575 hash_map<int, int> t;
19580 rm -f conftest.$ac_objext
19581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582 (eval $ac_compile) 2>&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -s conftest.$ac_objext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_cv_cxx_have_std_ext_hash_map=yes
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_cxx_have_std_ext_hash_map=no
19599 rm -f conftest.$ac_objext conftest.$ac_ext
19601 ac_cpp='$CPP $CPPFLAGS'
19602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19607 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
19608 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
19609 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE_STD_EXT_HASH_MAP
19616 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
19617 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
19618 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 ac_cpp='$CXXCPP $CPPFLAGS'
19626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19630 cat >conftest.$ac_ext <<_ACEOF
19631 #line $LINENO "configure"
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 #include <ext/hash_map>
19638 #ifdef HAVE_NAMESPACES
19639 using namespace __gnu_cxx;
19644 hash_map<int,int> t;
19649 rm -f conftest.$ac_objext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19651 (eval $ac_compile) 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } &&
19655 { ac_try='test -s conftest.$ac_objext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19661 ac_cv_cxx_have_gnu_ext_hash_map=yes
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 ac_cv_cxx_have_gnu_ext_hash_map=no
19668 rm -f conftest.$ac_objext conftest.$ac_ext
19670 ac_cpp='$CPP $CPPFLAGS'
19671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19676 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
19677 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
19678 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE_GNU_EXT_HASH_MAP
19685 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
19686 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
19687 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 ac_cpp='$CXXCPP $CPPFLAGS'
19695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19699 cat >conftest.$ac_ext <<_ACEOF
19700 #line $LINENO "configure"
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 #include <hash_map>
19710 hash_map<int,int> t;
19715 rm -f conftest.$ac_objext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717 (eval $ac_compile) 2>&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -s conftest.$ac_objext'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 ac_cv_cxx_have_global_hash_map=yes
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_cxx_have_global_hash_map=no
19734 rm -f conftest.$ac_objext conftest.$ac_ext
19736 ac_cpp='$CPP $CPPFLAGS'
19737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19742 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
19743 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
19744 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
19746 cat >>confdefs.h <<\_ACEOF
19747 #define HAVE_GLOBAL_HASH_MAP
19751 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
19752 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
19753 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19760 ac_cpp='$CXXCPP $CPPFLAGS'
19761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19765 cat >conftest.$ac_ext <<_ACEOF
19766 #line $LINENO "configure"
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19772 #include <ext/hash_set>
19773 #ifdef HAVE_NAMESPACES
19774 using namespace std;
19784 rm -f conftest.$ac_objext
19785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786 (eval $ac_compile) 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
19790 { ac_try='test -s conftest.$ac_objext'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 ac_cv_cxx_have_std_ext_hash_set=yes
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ac_cv_cxx_have_std_ext_hash_set=no
19803 rm -f conftest.$ac_objext conftest.$ac_ext
19805 ac_cpp='$CPP $CPPFLAGS'
19806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19811 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
19812 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
19813 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
19815 cat >>confdefs.h <<\_ACEOF
19816 #define HAVE_STD_EXT_HASH_SET
19820 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
19821 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
19822 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 ac_cpp='$CXXCPP $CPPFLAGS'
19830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19834 cat >conftest.$ac_ext <<_ACEOF
19835 #line $LINENO "configure"
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 #include <ext/hash_set>
19842 #ifdef HAVE_NAMESPACES
19843 using namespace __gnu_cxx;
19853 rm -f conftest.$ac_objext
19854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19855 (eval $ac_compile) 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -s conftest.$ac_objext'
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; }; then
19865 ac_cv_cxx_have_gnu_ext_hash_set=yes
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19870 ac_cv_cxx_have_gnu_ext_hash_set=no
19872 rm -f conftest.$ac_objext conftest.$ac_ext
19874 ac_cpp='$CPP $CPPFLAGS'
19875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19880 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
19881 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
19882 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
19884 cat >>confdefs.h <<\_ACEOF
19885 #define HAVE_GNU_EXT_HASH_SET
19889 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
19890 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
19891 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19898 ac_cpp='$CXXCPP $CPPFLAGS'
19899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19903 cat >conftest.$ac_ext <<_ACEOF
19904 #line $LINENO "configure"
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 #include <hash_set>
19914 hash_set<int> t; return 0;
19919 rm -f conftest.$ac_objext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19921 (eval $ac_compile) 2>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } &&
19925 { ac_try='test -s conftest.$ac_objext'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 ac_cv_cxx_have_global_hash_set=yes
19933 echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19936 ac_cv_cxx_have_global_hash_set=no
19938 rm -f conftest.$ac_objext conftest.$ac_ext
19940 ac_cpp='$CPP $CPPFLAGS'
19941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19946 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
19947 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
19948 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
19950 cat >>confdefs.h <<\_ACEOF
19951 #define HAVE_GLOBAL_HASH_SET
19955 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
19956 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
19957 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19964 ac_cpp='$CXXCPP $CPPFLAGS'
19965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19969 cat >conftest.$ac_ext <<_ACEOF
19970 #line $LINENO "configure"
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19976 #include <ext/slist>
19977 #ifdef HAVE_NAMESPACES
19978 using namespace std;
19983 slist<int> s; return 0;
19988 rm -f conftest.$ac_objext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19990 (eval $ac_compile) 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -s conftest.$ac_objext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_cv_cxx_have_ext_slist=std
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_cv_cxx_have_ext_slist=no
20007 rm -f conftest.$ac_objext conftest.$ac_ext
20008 cat >conftest.$ac_ext <<_ACEOF
20009 #line $LINENO "configure"
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 #include <ext/slist>
20016 #ifdef HAVE_NAMESPACES
20017 using namespace __gnu_cxx;
20022 slist<int> s; return 0;
20027 rm -f conftest.$ac_objext
20028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20029 (eval $ac_compile) 2>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try='test -s conftest.$ac_objext'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_cv_cxx_have_ext_slist=gnu
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 ac_cv_cxx_have_ext_slist=no
20046 rm -f conftest.$ac_objext conftest.$ac_ext
20049 ac_cpp='$CPP $CPPFLAGS'
20050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20056 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20057 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20058 if test "$ac_cv_cxx_have_ext_slist" = std; then
20060 cat >>confdefs.h <<\_ACEOF
20061 #define HAVE_EXT_SLIST std
20065 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20067 cat >>confdefs.h <<\_ACEOF
20068 #define HAVE_EXT_SLIST gnu
20073 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20074 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20075 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 ac_cpp='$CXXCPP $CPPFLAGS'
20083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20087 cat >conftest.$ac_ext <<_ACEOF
20088 #line $LINENO "configure"
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20094 #include <iterator>
20095 #ifdef HAVE_NAMESPACES
20096 using namespace std;
20101 iterator<int,int,int> t; return 0;
20106 rm -f conftest.$ac_objext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108 (eval $ac_compile) 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
20112 { ac_try='test -s conftest.$ac_objext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_cv_cxx_have_std_iterator=yes
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_cv_cxx_have_std_iterator=no
20125 rm -f conftest.$ac_objext conftest.$ac_ext
20127 ac_cpp='$CPP $CPPFLAGS'
20128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20134 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20135 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20136 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE_STD_ITERATOR
20144 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20145 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20146 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 ac_cpp='$CXXCPP $CPPFLAGS'
20154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20158 cat >conftest.$ac_ext <<_ACEOF
20159 #line $LINENO "configure"
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 #include <iterator>
20166 #ifdef HAVE_NAMESPACES
20167 using namespace std;
20172 bidirectional_iterator<int,int> t; return 0;
20177 rm -f conftest.$ac_objext
20178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20179 (eval $ac_compile) 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try='test -s conftest.$ac_objext'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20189 ac_cv_cxx_have_bi_iterator=yes
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_cv_cxx_have_bi_iterator=no
20196 rm -f conftest.$ac_objext conftest.$ac_ext
20198 ac_cpp='$CPP $CPPFLAGS'
20199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20205 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20206 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20207 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20209 cat >>confdefs.h <<\_ACEOF
20210 #define HAVE_BI_ITERATOR
20215 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20216 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20217 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20224 ac_cpp='$CXXCPP $CPPFLAGS'
20225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20229 cat >conftest.$ac_ext <<_ACEOF
20230 #line $LINENO "configure"
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20236 #include <iterator>
20237 #ifdef HAVE_NAMESPACES
20238 using namespace std;
20243 forward_iterator<int,int> t; return 0;
20248 rm -f conftest.$ac_objext
20249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20250 (eval $ac_compile) 2>&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } &&
20254 { ac_try='test -s conftest.$ac_objext'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_cxx_have_fwd_iterator=yes
20262 echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20265 ac_cv_cxx_have_fwd_iterator=no
20267 rm -f conftest.$ac_objext conftest.$ac_ext
20269 ac_cpp='$CPP $CPPFLAGS'
20270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20276 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20277 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20278 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20280 cat >>confdefs.h <<\_ACEOF
20281 #define HAVE_FWD_ITERATOR
20287 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20288 # for constant arguments. Useless!
20289 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20290 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20291 if test "${ac_cv_working_alloca_h+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20294 cat >conftest.$ac_ext <<_ACEOF
20295 #line $LINENO "configure"
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20301 #include <alloca.h>
20305 char *p = (char *) alloca (2 * sizeof (int));
20310 rm -f conftest.$ac_objext conftest$ac_exeext
20311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20312 (eval $ac_link) 2>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
20316 { ac_try='test -s conftest$ac_exeext'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 ac_cv_working_alloca_h=yes
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 ac_cv_working_alloca_h=no
20329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20331 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20332 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20333 if test $ac_cv_working_alloca_h = yes; then
20335 cat >>confdefs.h <<\_ACEOF
20336 #define HAVE_ALLOCA_H 1
20341 echo "$as_me:$LINENO: checking for alloca" >&5
20342 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20343 if test "${ac_cv_func_alloca_works+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20346 cat >conftest.$ac_ext <<_ACEOF
20347 #line $LINENO "configure"
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h. */
20354 # define alloca __builtin_alloca
20357 # include <malloc.h>
20358 # define alloca _alloca
20361 # include <alloca.h>
20366 # ifndef alloca /* predefined by HP cc +Olibcalls */
20377 char *p = (char *) alloca (1);
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20384 (eval $ac_link) 2>&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
20388 { ac_try='test -s conftest$ac_exeext'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; }; then
20394 ac_cv_func_alloca_works=yes
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20399 ac_cv_func_alloca_works=no
20401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20403 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20404 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20406 if test $ac_cv_func_alloca_works = yes; then
20408 cat >>confdefs.h <<\_ACEOF
20409 #define HAVE_ALLOCA 1
20413 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20414 # that cause trouble. Some versions do not even contain alloca or
20415 # contain a buggy version. If you still want to use their alloca,
20416 # use ar to extract alloca.o from them instead of compiling alloca.c.
20418 ALLOCA=alloca.$ac_objext
20420 cat >>confdefs.h <<\_ACEOF
20425 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20426 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20427 if test "${ac_cv_os_cray+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20430 cat >conftest.$ac_ext <<_ACEOF
20431 #line $LINENO "configure"
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 #if defined(CRAY) && ! defined(CRAY2)
20444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20445 $EGREP "webecray" >/dev/null 2>&1; then
20453 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20454 echo "${ECHO_T}$ac_cv_os_cray" >&6
20455 if test $ac_cv_os_cray = yes; then
20456 for ac_func in _getb67 GETB67 getb67; do
20457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20458 echo "$as_me:$LINENO: checking for $ac_func" >&5
20459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20460 if eval "test \"\${$as_ac_var+set}\" = set"; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 cat >conftest.$ac_ext <<_ACEOF
20464 #line $LINENO "configure"
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20470 /* System header to define __stub macros and hopefully few prototypes,
20471 which can conflict with char $ac_func (); below.
20472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20473 <limits.h> exists even on freestanding compilers. */
20475 # include <limits.h>
20477 # include <assert.h>
20479 /* Override any gcc2 internal prototype to avoid an error. */
20484 /* We use char because int might match the return type of a gcc2
20485 builtin and then its argument prototype would still apply. */
20487 /* The GNU C library defines this for functions which it implements
20488 to always fail with ENOSYS. Some functions are actually named
20489 something starting with __ and the normal name is an alias. */
20490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20493 char (*f) () = $ac_func;
20502 return f != $ac_func;
20507 rm -f conftest.$ac_objext conftest$ac_exeext
20508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20509 (eval $ac_link) 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } &&
20513 { ac_try='test -s conftest$ac_exeext'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 eval "$as_ac_var=yes"
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20524 eval "$as_ac_var=no"
20526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20530 if test `eval echo '${'$as_ac_var'}'` = yes; then
20532 cat >>confdefs.h <<_ACEOF
20533 #define CRAY_STACKSEG_END $ac_func
20542 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20543 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20544 if test "${ac_cv_c_stack_direction+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 if test "$cross_compiling" = yes; then
20548 ac_cv_c_stack_direction=0
20550 cat >conftest.$ac_ext <<_ACEOF
20551 #line $LINENO "configure"
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20558 find_stack_direction ()
20560 static char *addr = 0;
20565 return find_stack_direction ();
20568 return (&dummy > addr) ? 1 : -1;
20574 exit (find_stack_direction () < 0);
20577 rm -f conftest$ac_exeext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579 (eval $ac_link) 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_c_stack_direction=1
20590 echo "$as_me: program exited with status $ac_status" >&5
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 ( exit $ac_status )
20595 ac_cv_c_stack_direction=-1
20597 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20600 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20601 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20603 cat >>confdefs.h <<_ACEOF
20604 #define STACK_DIRECTION $ac_cv_c_stack_direction
20612 for ac_header in stdlib.h unistd.h
20614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20616 echo "$as_me:$LINENO: checking for $ac_header" >&5
20617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20624 # Is the header compilable?
20625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20627 cat >conftest.$ac_ext <<_ACEOF
20628 #line $LINENO "configure"
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20634 $ac_includes_default
20635 #include <$ac_header>
20637 rm -f conftest.$ac_objext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639 (eval $ac_compile) 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try='test -s conftest.$ac_objext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 ac_header_compiler=yes
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_header_compiler=no
20656 rm -f conftest.$ac_objext conftest.$ac_ext
20657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20658 echo "${ECHO_T}$ac_header_compiler" >&6
20660 # Is the header present?
20661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20663 cat >conftest.$ac_ext <<_ACEOF
20664 #line $LINENO "configure"
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20670 #include <$ac_header>
20672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20675 grep -v '^ *+' conftest.er1 >conftest.err
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } >/dev/null; then
20680 if test -s conftest.err; then
20681 ac_cpp_err=$ac_c_preproc_warn_flag
20688 if test -z "$ac_cpp_err"; then
20689 ac_header_preproc=yes
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_header_preproc=no
20696 rm -f conftest.err conftest.$ac_ext
20697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20698 echo "${ECHO_T}$ac_header_preproc" >&6
20700 # So? What about this header?
20701 case $ac_header_compiler:$ac_header_preproc in
20703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20709 ## ------------------------------------ ##
20710 ## Report this to bug-autoconf@gnu.org. ##
20711 ## ------------------------------------ ##
20714 sed "s/^/$as_me: WARNING: /" >&2
20717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20725 ## ------------------------------------ ##
20726 ## Report this to bug-autoconf@gnu.org. ##
20727 ## ------------------------------------ ##
20730 sed "s/^/$as_me: WARNING: /" >&2
20733 echo "$as_me:$LINENO: checking for $ac_header" >&5
20734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 eval "$as_ac_Header=$ac_header_preproc"
20740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20745 cat >>confdefs.h <<_ACEOF
20746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20754 for ac_func in getpagesize
20756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20757 echo "$as_me:$LINENO: checking for $ac_func" >&5
20758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20759 if eval "test \"\${$as_ac_var+set}\" = set"; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 cat >conftest.$ac_ext <<_ACEOF
20763 #line $LINENO "configure"
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 /* System header to define __stub macros and hopefully few prototypes,
20770 which can conflict with char $ac_func (); below.
20771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20772 <limits.h> exists even on freestanding compilers. */
20774 # include <limits.h>
20776 # include <assert.h>
20778 /* Override any gcc2 internal prototype to avoid an error. */
20783 /* We use char because int might match the return type of a gcc2
20784 builtin and then its argument prototype would still apply. */
20786 /* The GNU C library defines this for functions which it implements
20787 to always fail with ENOSYS. Some functions are actually named
20788 something starting with __ and the normal name is an alias. */
20789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20792 char (*f) () = $ac_func;
20801 return f != $ac_func;
20806 rm -f conftest.$ac_objext conftest$ac_exeext
20807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20808 (eval $ac_link) 2>&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
20812 { ac_try='test -s conftest$ac_exeext'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; }; then
20818 eval "$as_ac_var=yes"
20820 echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20823 eval "$as_ac_var=no"
20825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20829 if test `eval echo '${'$as_ac_var'}'` = yes; then
20830 cat >>confdefs.h <<_ACEOF
20831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20837 echo "$as_me:$LINENO: checking for working mmap" >&5
20838 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20839 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 if test "$cross_compiling" = yes; then
20843 ac_cv_func_mmap_fixed_mapped=no
20845 cat >conftest.$ac_ext <<_ACEOF
20846 #line $LINENO "configure"
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20852 $ac_includes_default
20853 /* malloc might have been renamed as rpl_malloc. */
20856 /* Thanks to Mike Haertel and Jim Avera for this test.
20857 Here is a matrix of mmap possibilities:
20858 mmap private not fixed
20859 mmap private fixed at somewhere currently unmapped
20860 mmap private fixed at somewhere already mapped
20861 mmap shared not fixed
20862 mmap shared fixed at somewhere currently unmapped
20863 mmap shared fixed at somewhere already mapped
20864 For private mappings, we should verify that changes cannot be read()
20865 back from the file, nor mmap's back from the file at a different
20866 address. (There have been systems where private was not correctly
20867 implemented like the infamous i386 svr4.0, and systems where the
20868 VM page cache was not coherent with the file system buffer cache
20869 like early versions of FreeBSD and possibly contemporary NetBSD.)
20870 For shared mappings, we should conversely verify that changes get
20871 propagated back to all the places they're supposed to be.
20873 Grep wants private fixed already mapped.
20874 The main things grep needs to know about mmap are:
20875 * does it exist and is it safe to write into the mmap'd area
20876 * how to use it (BSD variants) */
20879 #include <sys/mman.h>
20881 #if !STDC_HEADERS && !HAVE_STDLIB_H
20885 /* This mess was copied from the GNU getpagesize.h. */
20886 #if !HAVE_GETPAGESIZE
20887 /* Assume that all systems that can run configure have sys/param.h. */
20888 # if !HAVE_SYS_PARAM_H
20889 # define HAVE_SYS_PARAM_H 1
20892 # ifdef _SC_PAGESIZE
20893 # define getpagesize() sysconf(_SC_PAGESIZE)
20894 # else /* no _SC_PAGESIZE */
20895 # if HAVE_SYS_PARAM_H
20896 # include <sys/param.h>
20897 # ifdef EXEC_PAGESIZE
20898 # define getpagesize() EXEC_PAGESIZE
20899 # else /* no EXEC_PAGESIZE */
20901 # define getpagesize() NBPG * CLSIZE
20904 # endif /* no CLSIZE */
20905 # else /* no NBPG */
20907 # define getpagesize() NBPC
20908 # else /* no NBPC */
20910 # define getpagesize() PAGESIZE
20911 # endif /* PAGESIZE */
20912 # endif /* no NBPC */
20913 # endif /* no NBPG */
20914 # endif /* no EXEC_PAGESIZE */
20915 # else /* no HAVE_SYS_PARAM_H */
20916 # define getpagesize() 8192 /* punt totally */
20917 # endif /* no HAVE_SYS_PARAM_H */
20918 # endif /* no _SC_PAGESIZE */
20920 #endif /* no HAVE_GETPAGESIZE */
20925 char *data, *data2, *data3;
20929 pagesize = getpagesize ();
20931 /* First, make a file with some known garbage in it. */
20932 data = (char *) malloc (pagesize);
20935 for (i = 0; i < pagesize; ++i)
20936 *(data + i) = rand ();
20938 fd = creat ("conftest.mmap", 0600);
20941 if (write (fd, data, pagesize) != pagesize)
20945 /* Next, try to mmap the file at a fixed address which already has
20946 something else allocated at it. If we can, also make sure that
20947 we see the same garbage. */
20948 fd = open ("conftest.mmap", O_RDWR);
20951 data2 = (char *) malloc (2 * pagesize);
20954 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
20955 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20956 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20958 for (i = 0; i < pagesize; ++i)
20959 if (*(data + i) != *(data2 + i))
20962 /* Finally, make sure that changes to the mapped area do not
20963 percolate back to the file as seen by read(). (This is a bug on
20964 some variants of i386 svr4.0.) */
20965 for (i = 0; i < pagesize; ++i)
20966 *(data2 + i) = *(data2 + i) + 1;
20967 data3 = (char *) malloc (pagesize);
20970 if (read (fd, data3, pagesize) != pagesize)
20972 for (i = 0; i < pagesize; ++i)
20973 if (*(data + i) != *(data3 + i))
20979 rm -f conftest$ac_exeext
20980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20981 (eval $ac_link) 2>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; }; then
20990 ac_cv_func_mmap_fixed_mapped=yes
20992 echo "$as_me: program exited with status $ac_status" >&5
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20996 ( exit $ac_status )
20997 ac_cv_func_mmap_fixed_mapped=no
20999 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21002 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21003 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21004 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21006 cat >>confdefs.h <<\_ACEOF
21007 #define HAVE_MMAP 1
21011 rm -f conftest.mmap
21013 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21015 { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21016 echo "$as_me: error: mmap() required but not found" >&2;}
21017 { (exit 1); exit 1; }; }
21019 echo "$as_me:$LINENO: checking for mmap of files" >&5
21020 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21021 if test "${ac_cv_func_mmap_file+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 ac_cpp='$CPP $CPPFLAGS'
21028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21032 if test "$cross_compiling" = yes; then
21033 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21034 See \`config.log' for more details." >&5
21035 echo "$as_me: error: cannot run test program while cross compiling
21036 See \`config.log' for more details." >&2;}
21037 { (exit 1); exit 1; }; }
21039 cat >conftest.$ac_ext <<_ACEOF
21040 #line $LINENO "configure"
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21047 #ifdef HAVE_SYS_TYPES_H
21048 #include <sys/types.h>
21051 #ifdef HAVE_SYS_MMAN_H
21052 #include <sys/mman.h>
21055 #ifdef HAVE_FCNTL_H
21061 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21063 rm -f conftest$ac_exeext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065 (eval $ac_link) 2>&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_cv_func_mmap_file=yes
21076 echo "$as_me: program exited with status $ac_status" >&5
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21080 ( exit $ac_status )
21081 ac_cv_func_mmap_file=no
21083 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21086 ac_cpp='$CPP $CPPFLAGS'
21087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21093 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21094 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21095 if test "$ac_cv_func_mmap_file" = yes; then
21097 cat >>confdefs.h <<\_ACEOF
21098 #define HAVE_MMAP_FILE
21105 if test "$ac_cv_func_mmap_file" = "no"
21107 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21108 echo "$as_me: error: mmap() of files required but not found" >&2;}
21109 { (exit 1); exit 1; }; }
21111 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21112 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21113 if test "${ac_cv_header_mmap_anon+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21119 ac_cpp='$CPP $CPPFLAGS'
21120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21124 cat >conftest.$ac_ext <<_ACEOF
21125 #line $LINENO "configure"
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 #include <sys/mman.h>
21132 #include <unistd.h>
21137 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21142 rm -f conftest.$ac_objext
21143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21144 (eval $ac_compile) 2>&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } &&
21148 { ac_try='test -s conftest.$ac_objext'
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; }; then
21154 ac_cv_header_mmap_anon=yes
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 ac_cv_header_mmap_anon=no
21161 rm -f conftest.$ac_objext conftest.$ac_ext
21163 ac_cpp='$CPP $CPPFLAGS'
21164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21170 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21171 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21172 if test "$ac_cv_header_mmap_anon" = yes; then
21174 cat >>confdefs.h <<\_ACEOF
21175 #define HAVE_MMAP_ANONYMOUS
21180 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21181 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21182 if test "${ac_cv_type_signal+set}" = set; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21185 cat >conftest.$ac_ext <<_ACEOF
21186 #line $LINENO "configure"
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21192 #include <sys/types.h>
21193 #include <signal.h>
21198 extern "C" void (*signal (int, void (*)(int)))(int);
21200 void (*signal ()) ();
21211 rm -f conftest.$ac_objext
21212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21213 (eval $ac_compile) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 ac_cv_type_signal=void
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_cv_type_signal=int
21230 rm -f conftest.$ac_objext conftest.$ac_ext
21232 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21233 echo "${ECHO_T}$ac_cv_type_signal" >&6
21235 cat >>confdefs.h <<_ACEOF
21236 #define RETSIGTYPE $ac_cv_type_signal
21245 for ac_func in getcwd gettimeofday strdup strtoq strtoll
21247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21248 echo "$as_me:$LINENO: checking for $ac_func" >&5
21249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21250 if eval "test \"\${$as_ac_var+set}\" = set"; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 cat >conftest.$ac_ext <<_ACEOF
21254 #line $LINENO "configure"
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 /* System header to define __stub macros and hopefully few prototypes,
21261 which can conflict with char $ac_func (); below.
21262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21263 <limits.h> exists even on freestanding compilers. */
21265 # include <limits.h>
21267 # include <assert.h>
21269 /* Override any gcc2 internal prototype to avoid an error. */
21274 /* We use char because int might match the return type of a gcc2
21275 builtin and then its argument prototype would still apply. */
21277 /* The GNU C library defines this for functions which it implements
21278 to always fail with ENOSYS. Some functions are actually named
21279 something starting with __ and the normal name is an alias. */
21280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21283 char (*f) () = $ac_func;
21292 return f != $ac_func;
21297 rm -f conftest.$ac_objext conftest$ac_exeext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21299 (eval $ac_link) 2>&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } &&
21303 { ac_try='test -s conftest$ac_exeext'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 eval "$as_ac_var=yes"
21311 echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21314 eval "$as_ac_var=no"
21316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21320 if test `eval echo '${'$as_ac_var'}'` = yes; then
21321 cat >>confdefs.h <<_ACEOF
21322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21328 echo "$as_me:$LINENO: checking for mprotect" >&5
21329 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21330 if test "${ac_cv_func_mprotect+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 cat >conftest.$ac_ext <<_ACEOF
21334 #line $LINENO "configure"
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 /* System header to define __stub macros and hopefully few prototypes,
21341 which can conflict with char mprotect (); below.
21342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21343 <limits.h> exists even on freestanding compilers. */
21345 # include <limits.h>
21347 # include <assert.h>
21349 /* Override any gcc2 internal prototype to avoid an error. */
21354 /* We use char because int might match the return type of a gcc2
21355 builtin and then its argument prototype would still apply. */
21357 /* The GNU C library defines this for functions which it implements
21358 to always fail with ENOSYS. Some functions are actually named
21359 something starting with __ and the normal name is an alias. */
21360 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21363 char (*f) () = mprotect;
21372 return f != mprotect;
21377 rm -f conftest.$ac_objext conftest$ac_exeext
21378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21379 (eval $ac_link) 2>&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } &&
21383 { ac_try='test -s conftest$ac_exeext'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; }; then
21389 ac_cv_func_mprotect=yes
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21394 ac_cv_func_mprotect=no
21396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21398 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21399 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21400 if test $ac_cv_func_mprotect = yes; then
21403 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21404 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21405 { (exit 1); exit 1; }; }
21413 ac_cpp='$CPP $CPPFLAGS'
21414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21418 oldcflags="$CFLAGS"
21419 CFLAGS="$CFLAGS -Wl,-R."
21420 cat >conftest.$ac_ext <<_ACEOF
21421 int main() { return 0; }
21423 rm -f conftest.$ac_objext conftest$ac_exeext
21424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21425 (eval $ac_link) 2>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
21429 { ac_try='test -s conftest$ac_exeext'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435 ac_cv_link_use_r=yes
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ac_cv_link_use_r=no
21442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21443 CFLAGS="$oldcflags"
21445 ac_cpp='$CPP $CPPFLAGS'
21446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21450 if test "$ac_cv_link_use_r" = yes
21453 cat >>confdefs.h <<\_ACEOF
21454 #define HAVE_LINK_R 1
21460 # Check whether --enable-optimized or --disable-optimized was given.
21461 if test "${enable_optimized+set}" = set; then
21462 enableval="$enable_optimized"
21467 if test ${enableval} = "no"
21472 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21476 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21477 if test "${enable_spec2000+set}" = set; then
21478 enableval="$enable_spec2000"
21483 if test ${enableval} = "no"
21485 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21487 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21489 USE_SPEC=USE_SPEC=1
21497 if test ${enableval} = ""
21499 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21502 SPEC_ROOT=${enableval}
21505 USE_SPEC=USE_SPEC=1
21509 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21510 if test "${enable_precompiled_bytecode+set}" = set; then
21511 enableval="$enable_precompiled_bytecode"
21516 if test ${enableval} = "no"
21521 UPB=USE_PRECOMPILED_BYTECODE=1
21525 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21526 if test "${enable_llc_diffs+set}" = set; then
21527 enableval="$enable_llc_diffs"
21532 if test ${enableval} = "no"
21534 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
21541 # Check whether --enable-jit or --disable-jit was given.
21542 if test "${enable_jit+set}" = set; then
21543 enableval="$enable_jit"
21548 if test ${enableval} = "no"
21555 JIT=TARGET_HAS_JIT=1
21559 JIT=TARGET_HAS_JIT=1
21570 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21571 if test "${with_llvmgccdir+set}" = set; then
21572 withval="$with_llvmgccdir"
21573 LLVMGCCDIR=$withval
21576 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21577 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21579 if test -d "$LLVMGCCDIR"
21581 if test -x "$LLVMGCCDIR/bin/gcc"
21583 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
21587 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
21588 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
21589 if test "$LLVM_GCC_CHECK" = "no"
21593 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21594 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
21596 if test -x "$LLVM_GCC_CHECK"
21598 cp /dev/null conftest.c
21599 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
21605 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
21606 LLVMCC1=$llvmcc1path
21608 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
21609 LLVMCC1PLUS=$llvmcc1pluspath
21612 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
21613 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
21614 if test "$LLVM_GCC_SANE" = "no"
21620 # Check whether --with-bcrepos or --without-bcrepos was given.
21621 if test "${with_bcrepos+set}" = set; then
21622 withval="$with_bcrepos"
21626 BCR=/home/vadve/lattner/LLVMPrograms
21631 # Check whether --with-papi or --without-papi was given.
21632 if test "${with_papi+set}" = set; then
21633 withval="$with_papi"
21637 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
21641 echo "$as_me:$LINENO: checking for shared library suffix" >&5
21642 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
21643 eval "SHLIBEXT=$shrext"
21644 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
21645 echo "${ECHO_T}$SHLIBEXT" >&6
21649 cat >>confdefs.h <<_ACEOF
21650 #define SHLIBEXT "$SHLIBEXT"
21654 ac_config_files="$ac_config_files Makefile.config"
21655 cat >confcache <<\_ACEOF
21656 # This file is a shell script that caches the results of configure
21657 # tests run on this system so they can be shared between configure
21658 # scripts and configure runs, see configure's option --config-cache.
21659 # It is not useful on other systems. If it contains results you don't
21660 # want to keep, you may remove or edit it.
21662 # config.status only pays attention to the cache file if you give it
21663 # the --recheck option to rerun configure.
21665 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21666 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21667 # following values.
21671 # The following way of writing the cache mishandles newlines in values,
21672 # but we know of no workaround that is simple, portable, and efficient.
21673 # So, don't put newlines in cache variables' values.
21674 # Ultrix sh set writes to stderr and can't be redirected directly,
21675 # and sets the high bit in the cache file unless we assign to the vars.
21678 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21680 # `set' does not quote correctly, so add quotes (double-quote
21681 # substitution turns \\\\ into \\, and sed turns \\ into \).
21684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21687 # `set' quotes correctly as required by POSIX, so do not add quotes.
21689 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21698 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21700 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21701 if test -w $cache_file; then
21702 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21703 cat confcache >$cache_file
21705 echo "not updating unwritable cache $cache_file"
21710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21711 # Let make expand exec_prefix.
21712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21714 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21715 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21716 # trailing colons and then remove the whole line if VPATH becomes empty
21717 # (actually we leave an empty line to preserve line numbers).
21718 if test "x$srcdir" = x.; then
21719 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21720 s/:*\$(srcdir):*/:/;
21721 s/:*\${srcdir}:*/:/;
21723 s/^\([^=]*=[ ]*\):*/\1/;
21729 DEFS=-DHAVE_CONFIG_H
21733 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21734 # 1. Remove the extension, and $U if already installed.
21735 ac_i=`echo "$ac_i" |
21736 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21738 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21739 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21741 LIBOBJS=$ac_libobjs
21743 LTLIBOBJS=$ac_ltlibobjs
21747 : ${CONFIG_STATUS=./config.status}
21748 ac_clean_files_save=$ac_clean_files
21749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21750 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21751 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21752 cat >$CONFIG_STATUS <<_ACEOF
21754 # Generated by $as_me.
21755 # Run this file to recreate the current configuration.
21756 # Compiler output produced by configure, useful for debugging
21757 # configure, is in config.log if it exists.
21760 ac_cs_recheck=false
21762 SHELL=\${CONFIG_SHELL-$SHELL}
21765 cat >>$CONFIG_STATUS <<\_ACEOF
21766 ## --------------------- ##
21767 ## M4sh Initialization. ##
21768 ## --------------------- ##
21770 # Be Bourne compatible
21771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21774 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21775 # is contrary to our usage. Disable this feature.
21776 alias -g '${1+"$@"}'='"$@"'
21777 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21781 # Support unset when possible.
21782 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21789 # Work around bugs in pre-3.0 UWIN ksh.
21790 $as_unset ENV MAIL MAILPATH
21797 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21798 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21799 LC_TELEPHONE LC_TIME
21801 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
21802 eval $as_var=C; export $as_var
21808 # Required to use basename.
21809 if expr a : '\(a\)' >/dev/null 2>&1; then
21815 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21816 as_basename=basename
21822 # Name of the executable.
21823 as_me=`$as_basename "$0" ||
21824 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21825 X"$0" : 'X\(//\)$' \| \
21826 X"$0" : 'X\(/\)$' \| \
21827 . : '\(.\)' 2>/dev/null ||
21829 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21830 /^X\/\(\/\/\)$/{ s//\1/; q; }
21831 /^X\/\(\/\).*/{ s//\1/; q; }
21835 # PATH needs CR, and LINENO needs CR and PATH.
21836 # Avoid depending upon Character Ranges.
21837 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21838 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21839 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21840 as_cr_digits='0123456789'
21841 as_cr_alnum=$as_cr_Letters$as_cr_digits
21843 # The user is always right.
21844 if test "${PATH_SEPARATOR+set}" != set; then
21845 echo "#! /bin/sh" >conf$$.sh
21846 echo "exit 0" >>conf$$.sh
21848 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21857 as_lineno_1=$LINENO
21858 as_lineno_2=$LINENO
21859 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21860 test "x$as_lineno_1" != "x$as_lineno_2" &&
21861 test "x$as_lineno_3" = "x$as_lineno_2" || {
21862 # Find who we are. Look in the path if we contain no path at all
21865 *[\\/]* ) as_myself=$0 ;;
21866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21867 for as_dir in $PATH
21870 test -z "$as_dir" && as_dir=.
21871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21876 # We did not find ourselves, most probably we were run as `sh COMMAND'
21877 # in which case we are not to be found in the path.
21878 if test "x$as_myself" = x; then
21881 if test ! -f "$as_myself"; then
21882 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21883 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21884 { (exit 1); exit 1; }; }
21886 case $CONFIG_SHELL in
21888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21889 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21892 test -z "$as_dir" && as_dir=.
21893 for as_base in sh bash ksh sh5; do
21896 if ("$as_dir/$as_base" -c '
21897 as_lineno_1=$LINENO
21898 as_lineno_2=$LINENO
21899 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21900 test "x$as_lineno_1" != "x$as_lineno_2" &&
21901 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21902 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21903 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21904 CONFIG_SHELL=$as_dir/$as_base
21905 export CONFIG_SHELL
21906 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21914 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21915 # uniformly replaced by the line number. The first 'sed' inserts a
21916 # line-number line before each line; the second 'sed' does the real
21917 # work. The second script uses 'N' to pair each line-number line
21918 # with the numbered line, and appends trailing '-' during
21919 # substitution so that $LINENO is not a special case at line end.
21920 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21921 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21922 sed '=' <$as_myself |
21927 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21930 s,^['$as_cr_digits']*\n,,
21931 ' >$as_me.lineno &&
21932 chmod +x $as_me.lineno ||
21933 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21934 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21935 { (exit 1); exit 1; }; }
21937 # Don't try to exec as it changes $[0], causing all sort of problems
21938 # (the dirname of $[0] is not the place where we might find the
21939 # original and so on. Autoconf is especially sensible to this).
21941 # Exit status is that of the last command.
21946 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21947 *c*,-n*) ECHO_N= ECHO_C='
21949 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21950 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21953 if expr a : '\(a\)' >/dev/null 2>&1; then
21959 rm -f conf$$ conf$$.exe conf$$.file
21961 if ln -s conf$$.file conf$$ 2>/dev/null; then
21962 # We could just check for DJGPP; but this test a) works b) is more generic
21963 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21964 if test -f conf$$.exe; then
21965 # Don't use ln at all; we don't have any links
21970 elif ln conf$$.file conf$$ 2>/dev/null; then
21975 rm -f conf$$ conf$$.exe conf$$.file
21977 if mkdir -p . 2>/dev/null; then
21983 as_executable_p="test -f"
21985 # Sed expression to map a string onto a valid CPP name.
21986 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21988 # Sed expression to map a string onto a valid variable name.
21989 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21993 # We need space, tab and new line, in precisely that order.
22003 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22004 # report actual input values of CONFIG_FILES etc. instead of their
22005 # values after options handling. Logging --version etc. is OK.
22009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22010 ## Running $as_me. ##
22015 This file was extended by [LLVM] $as_me [1.1], which was
22016 generated by GNU Autoconf 2.57. Invocation command line was
22018 CONFIG_FILES = $CONFIG_FILES
22019 CONFIG_HEADERS = $CONFIG_HEADERS
22020 CONFIG_LINKS = $CONFIG_LINKS
22021 CONFIG_COMMANDS = $CONFIG_COMMANDS
22025 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22029 # Files that config.status was made for.
22030 if test -n "$ac_config_files"; then
22031 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22034 if test -n "$ac_config_headers"; then
22035 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22038 if test -n "$ac_config_links"; then
22039 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22042 if test -n "$ac_config_commands"; then
22043 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22046 cat >>$CONFIG_STATUS <<\_ACEOF
22049 \`$as_me' instantiates files from templates according to the
22050 current configuration.
22052 Usage: $0 [OPTIONS] [FILE]...
22054 -h, --help print this help, then exit
22055 -V, --version print version number, then exit
22056 -q, --quiet do not print progress messages
22057 -d, --debug don't remove temporary files
22058 --recheck update $as_me by reconfiguring in the same conditions
22059 --file=FILE[:TEMPLATE]
22060 instantiate the configuration file FILE
22061 --header=FILE[:TEMPLATE]
22062 instantiate the configuration header FILE
22064 Configuration files:
22067 Configuration headers:
22070 Configuration commands:
22073 Report bugs to <bug-autoconf@gnu.org>."
22076 cat >>$CONFIG_STATUS <<_ACEOF
22078 [LLVM] config.status [1.1]
22079 configured by $0, generated by GNU Autoconf 2.57,
22080 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22082 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22083 Free Software Foundation, Inc.
22084 This config.status script is free software; the Free Software Foundation
22085 gives unlimited permission to copy, distribute and modify it."
22090 cat >>$CONFIG_STATUS <<\_ACEOF
22091 # If no file are specified by the user, then we need to provide default
22092 # value. By we need to know if files were specified by the user.
22098 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22099 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22107 *) # This is not an option, so the user has probably given explicit
22110 ac_need_defaults=false;;
22114 # Handling of the options.
22116 cat >>$CONFIG_STATUS <<\_ACEOF
22117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22119 --version | --vers* | -V )
22120 echo "$ac_cs_version"; exit 0 ;;
22122 # Conflict between --help and --header
22123 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22124 Try \`$0 --help' for more information." >&5
22125 echo "$as_me: error: ambiguous option: $1
22126 Try \`$0 --help' for more information." >&2;}
22127 { (exit 1); exit 1; }; };;
22128 --help | --hel | -h )
22129 echo "$ac_cs_usage"; exit 0 ;;
22130 --debug | --d* | -d )
22132 --file | --fil | --fi | --f )
22134 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22135 ac_need_defaults=false;;
22136 --header | --heade | --head | --hea )
22138 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22139 ac_need_defaults=false;;
22140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22141 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22144 # This is an error.
22145 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22146 Try \`$0 --help' for more information." >&5
22147 echo "$as_me: error: unrecognized option: $1
22148 Try \`$0 --help' for more information." >&2;}
22149 { (exit 1); exit 1; }; } ;;
22151 *) ac_config_targets="$ac_config_targets $1" ;;
22157 ac_configure_extra_args=
22159 if $ac_cs_silent; then
22161 ac_configure_extra_args="$ac_configure_extra_args --silent"
22165 cat >>$CONFIG_STATUS <<_ACEOF
22166 if \$ac_cs_recheck; then
22167 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22168 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22173 cat >>$CONFIG_STATUS <<_ACEOF
22175 # INIT-COMMANDS section.
22178 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22179 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22180 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22181 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22182 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22183 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22184 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22185 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22186 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22187 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22188 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22189 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22190 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22191 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22192 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22193 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22194 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22195 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22196 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22197 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22198 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22199 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22200 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22201 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22202 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22203 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22204 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22205 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22206 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22207 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22208 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22209 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22210 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22211 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22212 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22213 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22214 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22215 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22216 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22217 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22218 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22219 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22220 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22221 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22222 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22223 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22224 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22230 cat >>$CONFIG_STATUS <<\_ACEOF
22231 for ac_config_target in $ac_config_targets
22233 case "$ac_config_target" in
22234 # Handling of arguments.
22235 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22236 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22237 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22238 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22239 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22240 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22241 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22242 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22243 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22244 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22245 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22246 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22247 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22248 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22249 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22250 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22251 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22252 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22253 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22254 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22255 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22256 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22257 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22258 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22259 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
22260 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22261 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22262 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22263 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22264 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22265 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22266 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22267 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22268 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22269 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22270 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22271 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22272 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22273 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22274 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22275 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22276 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22277 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22278 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22279 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22280 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22281 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22282 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22283 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22285 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22286 { (exit 1); exit 1; }; };;
22290 # If the user did not use the arguments to specify the items to instantiate,
22291 # then the envvar interface is used. Set only those that are not.
22292 # We use the long form for the default assignment because of an extremely
22293 # bizarre bug on SunOS 4.1.3.
22294 if $ac_need_defaults; then
22295 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22296 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22297 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22300 # Have a temporary directory for convenience. Make it in the build tree
22301 # simply because there is no reason to put it here, and in addition,
22302 # creating and moving files from /tmp can sometimes cause problems.
22303 # Create a temporary directory, and hook for its removal unless debugging.
22306 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22307 trap '{ (exit 1); exit 1; }' 1 2 13 15
22310 # Create a (secure) tmp directory for tmp files.
22313 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22314 test -n "$tmp" && test -d "$tmp"
22317 tmp=./confstat$$-$RANDOM
22318 (umask 077 && mkdir $tmp)
22321 echo "$me: cannot create a temporary directory in ." >&2
22322 { (exit 1); exit 1; }
22327 cat >>$CONFIG_STATUS <<_ACEOF
22330 # CONFIG_FILES section.
22333 # No need to generate the scripts if there are no CONFIG_FILES.
22334 # This happens for instance when ./config.status config.h
22335 if test -n "\$CONFIG_FILES"; then
22336 # Protect against being on the right side of a sed subst in config.status.
22337 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22338 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22339 s,@SHELL@,$SHELL,;t t
22340 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22341 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22342 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22343 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22344 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22345 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22346 s,@exec_prefix@,$exec_prefix,;t t
22347 s,@prefix@,$prefix,;t t
22348 s,@program_transform_name@,$program_transform_name,;t t
22349 s,@bindir@,$bindir,;t t
22350 s,@sbindir@,$sbindir,;t t
22351 s,@libexecdir@,$libexecdir,;t t
22352 s,@datadir@,$datadir,;t t
22353 s,@sysconfdir@,$sysconfdir,;t t
22354 s,@sharedstatedir@,$sharedstatedir,;t t
22355 s,@localstatedir@,$localstatedir,;t t
22356 s,@libdir@,$libdir,;t t
22357 s,@includedir@,$includedir,;t t
22358 s,@oldincludedir@,$oldincludedir,;t t
22359 s,@infodir@,$infodir,;t t
22360 s,@mandir@,$mandir,;t t
22361 s,@build_alias@,$build_alias,;t t
22362 s,@host_alias@,$host_alias,;t t
22363 s,@target_alias@,$target_alias,;t t
22364 s,@DEFS@,$DEFS,;t t
22365 s,@ECHO_C@,$ECHO_C,;t t
22366 s,@ECHO_N@,$ECHO_N,;t t
22367 s,@ECHO_T@,$ECHO_T,;t t
22368 s,@LIBS@,$LIBS,;t t
22369 s,@subdirs@,$subdirs,;t t
22370 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22371 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22372 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22373 s,@build@,$build,;t t
22374 s,@build_cpu@,$build_cpu,;t t
22375 s,@build_vendor@,$build_vendor,;t t
22376 s,@build_os@,$build_os,;t t
22377 s,@host@,$host,;t t
22378 s,@host_cpu@,$host_cpu,;t t
22379 s,@host_vendor@,$host_vendor,;t t
22380 s,@host_os@,$host_os,;t t
22381 s,@target@,$target,;t t
22382 s,@target_cpu@,$target_cpu,;t t
22383 s,@target_vendor@,$target_vendor,;t t
22384 s,@target_os@,$target_os,;t t
22386 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22387 s,@ARCH@,$ARCH,;t t
22389 s,@CXXFLAGS@,$CXXFLAGS,;t t
22390 s,@LDFLAGS@,$LDFLAGS,;t t
22391 s,@CPPFLAGS@,$CPPFLAGS,;t t
22392 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22393 s,@EXEEXT@,$EXEEXT,;t t
22394 s,@OBJEXT@,$OBJEXT,;t t
22396 s,@CFLAGS@,$CFLAGS,;t t
22397 s,@ac_ct_CC@,$ac_ct_CC,;t t
22399 s,@ifGNUmake@,$ifGNUmake,;t t
22401 s,@LEXLIB@,$LEXLIB,;t t
22402 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22403 s,@YACC@,$YACC,;t t
22404 s,@BISON@,$BISON,;t t
22405 s,@EGREP@,$EGREP,;t t
22406 s,@LN_S@,$LN_S,;t t
22407 s,@ECHO@,$ECHO,;t t
22409 s,@ac_ct_AR@,$ac_ct_AR,;t t
22410 s,@RANLIB@,$RANLIB,;t t
22411 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22412 s,@STRIP@,$STRIP,;t t
22413 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22414 s,@CXXCPP@,$CXXCPP,;t t
22416 s,@FFLAGS@,$FFLAGS,;t t
22417 s,@ac_ct_F77@,$ac_ct_F77,;t t
22418 s,@LIBTOOL@,$LIBTOOL,;t t
22420 s,@ETAGS@,$ETAGS,;t t
22421 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22422 s,@PYTHON@,$PYTHON,;t t
22423 s,@QMTEST@,$QMTEST,;t t
22424 s,@ALLOCA@,$ALLOCA,;t t
22425 s,@MMAP_FILE@,$MMAP_FILE,;t t
22426 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22427 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22428 s,@USE_SPEC@,$USE_SPEC,;t t
22430 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22432 s,@LLVMCC1@,$LLVMCC1,;t t
22433 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22435 s,@PAPIDIR@,$PAPIDIR,;t t
22436 s,@SHLIBEXT@,$SHLIBEXT,;t t
22437 s,@LIBOBJS@,$LIBOBJS,;t t
22438 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22443 cat >>$CONFIG_STATUS <<\_ACEOF
22444 # Split the substitutions into bite-sized pieces for seds with
22445 # small command number limits, like on Digital OSF/1 and HP-UX.
22446 ac_max_sed_lines=48
22447 ac_sed_frag=1 # Number of current file.
22448 ac_beg=1 # First line for current file.
22449 ac_end=$ac_max_sed_lines # Line after last line for current file.
22452 while $ac_more_lines; do
22453 if test $ac_beg -gt 1; then
22454 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22456 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22458 if test ! -s $tmp/subs.frag; then
22459 ac_more_lines=false
22461 # The purpose of the label and of the branching condition is to
22462 # speed up the sed processing (if there are no `@' at all, there
22463 # is no need to browse any of the substitutions).
22464 # These are the two extra sed commands mentioned above.
22466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22467 if test -z "$ac_sed_cmds"; then
22468 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22470 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22472 ac_sed_frag=`expr $ac_sed_frag + 1`
22474 ac_end=`expr $ac_end + $ac_max_sed_lines`
22477 if test -z "$ac_sed_cmds"; then
22480 fi # test -n "$CONFIG_FILES"
22483 cat >>$CONFIG_STATUS <<\_ACEOF
22484 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22485 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22487 - | *:- | *:-:* ) # input from stdin
22489 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22490 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22491 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22493 * ) ac_file_in=$ac_file.in ;;
22496 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22497 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22498 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22499 X"$ac_file" : 'X\(//\)[^/]' \| \
22500 X"$ac_file" : 'X\(//\)$' \| \
22501 X"$ac_file" : 'X\(/\)' \| \
22502 . : '\(.\)' 2>/dev/null ||
22504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22506 /^X\(\/\/\)$/{ s//\1/; q; }
22507 /^X\(\/\).*/{ s//\1/; q; }
22509 { if $as_mkdir_p; then
22514 while test ! -d "$as_dir"; do
22515 as_dirs="$as_dir $as_dirs"
22516 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22518 X"$as_dir" : 'X\(//\)[^/]' \| \
22519 X"$as_dir" : 'X\(//\)$' \| \
22520 X"$as_dir" : 'X\(/\)' \| \
22521 . : '\(.\)' 2>/dev/null ||
22523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22525 /^X\(\/\/\)$/{ s//\1/; q; }
22526 /^X\(\/\).*/{ s//\1/; q; }
22529 test ! -n "$as_dirs" || mkdir $as_dirs
22530 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22531 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22532 { (exit 1); exit 1; }; }; }
22536 if test "$ac_dir" != .; then
22537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22538 # A "../" for each directory in $ac_dir_suffix.
22539 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22541 ac_dir_suffix= ac_top_builddir=
22545 .) # No --srcdir option. We are building in place.
22547 if test -z "$ac_top_builddir"; then
22550 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22552 [\\/]* | ?:[\\/]* ) # Absolute path.
22553 ac_srcdir=$srcdir$ac_dir_suffix;
22554 ac_top_srcdir=$srcdir ;;
22555 *) # Relative path.
22556 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22557 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22559 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22561 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22562 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22563 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22564 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22568 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22569 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22572 if test x"$ac_file" != x-; then
22573 { echo "$as_me:$LINENO: creating $ac_file" >&5
22574 echo "$as_me: creating $ac_file" >&6;}
22577 # Let's still pretend it is `configure' which instantiates (i.e., don't
22578 # use $as_me), people would be surprised to read:
22579 # /* config.h. Generated by config.status. */
22580 if test x"$ac_file" = x-; then
22583 configure_input="$ac_file. "
22585 configure_input=$configure_input"Generated from `echo $ac_file_in |
22586 sed 's,.*/,,'` by configure."
22588 # First look for the input files in the build tree, otherwise in the
22590 ac_file_inputs=`IFS=:
22591 for f in $ac_file_in; do
22593 -) echo $tmp/stdin ;;
22595 # Absolute (can't be DOS-style, as IFS=:)
22596 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22597 echo "$as_me: error: cannot find input file: $f" >&2;}
22598 { (exit 1); exit 1; }; }
22601 if test -f "$f"; then
22604 elif test -f "$srcdir/$f"; then
22609 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22610 echo "$as_me: error: cannot find input file: $f" >&2;}
22611 { (exit 1); exit 1; }; }
22614 done` || { (exit 1); exit 1; }
22616 cat >>$CONFIG_STATUS <<_ACEOF
22620 cat >>$CONFIG_STATUS <<\_ACEOF
22622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22623 s,@configure_input@,$configure_input,;t t
22624 s,@srcdir@,$ac_srcdir,;t t
22625 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22626 s,@top_srcdir@,$ac_top_srcdir,;t t
22627 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22628 s,@builddir@,$ac_builddir,;t t
22629 s,@abs_builddir@,$ac_abs_builddir,;t t
22630 s,@top_builddir@,$ac_top_builddir,;t t
22631 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22632 s,@INSTALL@,$ac_INSTALL,;t t
22633 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22635 if test x"$ac_file" != x-; then
22636 mv $tmp/out $ac_file
22644 cat >>$CONFIG_STATUS <<\_ACEOF
22647 # CONFIG_HEADER section.
22650 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22651 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22653 # ac_d sets the value in "#define NAME VALUE" lines.
22654 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22655 ac_dB='[ ].*$,\1#\2'
22658 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22659 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22660 ac_uB='$,\1#\2define\3'
22664 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22665 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22667 - | *:- | *:-:* ) # input from stdin
22669 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22670 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22671 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22672 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22673 * ) ac_file_in=$ac_file.in ;;
22676 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22677 echo "$as_me: creating $ac_file" >&6;}
22679 # First look for the input files in the build tree, otherwise in the
22681 ac_file_inputs=`IFS=:
22682 for f in $ac_file_in; do
22684 -) echo $tmp/stdin ;;
22686 # Absolute (can't be DOS-style, as IFS=:)
22687 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22688 echo "$as_me: error: cannot find input file: $f" >&2;}
22689 { (exit 1); exit 1; }; }
22692 if test -f "$f"; then
22695 elif test -f "$srcdir/$f"; then
22700 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22701 echo "$as_me: error: cannot find input file: $f" >&2;}
22702 { (exit 1); exit 1; }; }
22705 done` || { (exit 1); exit 1; }
22706 # Remove the trailing spaces.
22707 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22711 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22712 # `conftest.undefs', that substitutes the proper values into
22713 # config.h.in to produce config.h. The first handles `#define'
22714 # templates, and the second `#undef' templates.
22715 # And first: Protect against being on the right side of a sed subst in
22716 # config.status. Protect against being in an unquoted here document
22717 # in config.status.
22718 rm -f conftest.defines conftest.undefs
22719 # Using a here document instead of a string reduces the quoting nightmare.
22720 # Putting comments in sed scripts is not portable.
22722 # `end' is used to avoid that the second main sed command (meant for
22723 # 0-ary CPP macros) applies to n-ary macro definitions.
22724 # See the Autoconf documentation for `clear'.
22725 cat >confdef2sed.sed <<\_ACEOF
22730 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22732 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22735 # If some macros were called several times there might be several times
22736 # the same #defines, which is useless. Nevertheless, we may not want to
22737 # sort them, since we want the *last* AC-DEFINE to be honored.
22738 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22739 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22740 rm -f confdef2sed.sed
22742 # This sed command replaces #undef with comments. This is necessary, for
22743 # example, in the case of _POSIX_SOURCE, which is predefined and required
22744 # on some systems where configure will not decide to define it.
22745 cat >>conftest.undefs <<\_ACEOF
22746 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22749 # Break up conftest.defines because some shells have a limit on the size
22750 # of here documents, and old seds have small limits too (100 cmds).
22751 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22752 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22753 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22754 echo ' :' >>$CONFIG_STATUS
22755 rm -f conftest.tail
22756 while grep . conftest.defines >/dev/null
22758 # Write a limited-size here document to $tmp/defines.sed.
22759 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22760 # Speed up: don't consider the non `#define' lines.
22761 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22762 # Work around the forget-to-reset-the-flag bug.
22763 echo 't clr' >>$CONFIG_STATUS
22764 echo ': clr' >>$CONFIG_STATUS
22765 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22767 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22769 mv $tmp/out $tmp/in
22771 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22772 rm -f conftest.defines
22773 mv conftest.tail conftest.defines
22775 rm -f conftest.defines
22776 echo ' fi # grep' >>$CONFIG_STATUS
22777 echo >>$CONFIG_STATUS
22779 # Break up conftest.undefs because some shells have a limit on the size
22780 # of here documents, and old seds have small limits too (100 cmds).
22781 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22782 rm -f conftest.tail
22783 while grep . conftest.undefs >/dev/null
22785 # Write a limited-size here document to $tmp/undefs.sed.
22786 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22787 # Speed up: don't consider the non `#undef'
22788 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22789 # Work around the forget-to-reset-the-flag bug.
22790 echo 't clr' >>$CONFIG_STATUS
22791 echo ': clr' >>$CONFIG_STATUS
22792 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22794 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22796 mv $tmp/out $tmp/in
22798 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22799 rm -f conftest.undefs
22800 mv conftest.tail conftest.undefs
22802 rm -f conftest.undefs
22804 cat >>$CONFIG_STATUS <<\_ACEOF
22805 # Let's still pretend it is `configure' which instantiates (i.e., don't
22806 # use $as_me), people would be surprised to read:
22807 # /* config.h. Generated by config.status. */
22808 if test x"$ac_file" = x-; then
22809 echo "/* Generated by configure. */" >$tmp/config.h
22811 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22813 cat $tmp/in >>$tmp/config.h
22815 if test x"$ac_file" != x-; then
22816 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22817 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22818 echo "$as_me: $ac_file is unchanged" >&6;}
22820 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22821 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22822 X"$ac_file" : 'X\(//\)[^/]' \| \
22823 X"$ac_file" : 'X\(//\)$' \| \
22824 X"$ac_file" : 'X\(/\)' \| \
22825 . : '\(.\)' 2>/dev/null ||
22827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22829 /^X\(\/\/\)$/{ s//\1/; q; }
22830 /^X\(\/\).*/{ s//\1/; q; }
22832 { if $as_mkdir_p; then
22837 while test ! -d "$as_dir"; do
22838 as_dirs="$as_dir $as_dirs"
22839 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22841 X"$as_dir" : 'X\(//\)[^/]' \| \
22842 X"$as_dir" : 'X\(//\)$' \| \
22843 X"$as_dir" : 'X\(/\)' \| \
22844 . : '\(.\)' 2>/dev/null ||
22846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22848 /^X\(\/\/\)$/{ s//\1/; q; }
22849 /^X\(\/\).*/{ s//\1/; q; }
22852 test ! -n "$as_dirs" || mkdir $as_dirs
22853 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22854 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22855 { (exit 1); exit 1; }; }; }
22858 mv $tmp/config.h $ac_file
22862 rm -f $tmp/config.h
22866 cat >>$CONFIG_STATUS <<\_ACEOF
22869 # CONFIG_COMMANDS section.
22871 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22872 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22873 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22874 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22875 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22876 X"$ac_dest" : 'X\(//\)[^/]' \| \
22877 X"$ac_dest" : 'X\(//\)$' \| \
22878 X"$ac_dest" : 'X\(/\)' \| \
22879 . : '\(.\)' 2>/dev/null ||
22881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22883 /^X\(\/\/\)$/{ s//\1/; q; }
22884 /^X\(\/\).*/{ s//\1/; q; }
22888 if test "$ac_dir" != .; then
22889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22890 # A "../" for each directory in $ac_dir_suffix.
22891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22893 ac_dir_suffix= ac_top_builddir=
22897 .) # No --srcdir option. We are building in place.
22899 if test -z "$ac_top_builddir"; then
22902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22904 [\\/]* | ?:[\\/]* ) # Absolute path.
22905 ac_srcdir=$srcdir$ac_dir_suffix;
22906 ac_top_srcdir=$srcdir ;;
22907 *) # Relative path.
22908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22911 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22913 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22914 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22915 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22916 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22919 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22920 echo "$as_me: executing $ac_dest commands" >&6;}
22922 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
22923 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
22924 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
22925 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22926 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
22927 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22928 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
22929 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
22930 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
22931 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
22932 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
22933 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
22934 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
22935 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
22936 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
22937 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
22938 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
22939 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
22940 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
22941 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
22942 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
22943 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
22944 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
22945 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
22946 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
22947 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
22948 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 ;;
22949 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
22950 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
22951 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 ;;
22952 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 ;;
22953 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 ;;
22954 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 ;;
22955 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 ;;
22956 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 ;;
22957 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 ;;
22958 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 ;;
22959 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 ;;
22960 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 ;;
22961 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 ;;
22962 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 ;;
22963 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 ;;
22964 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
22965 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
22966 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
22967 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
22968 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
22973 cat >>$CONFIG_STATUS <<\_ACEOF
22975 { (exit 0); exit 0; }
22977 chmod +x $CONFIG_STATUS
22978 ac_clean_files=$ac_clean_files_save
22981 # configure is writing to config.log, and then calls config.status.
22982 # config.status does its own redirection, appending to config.log.
22983 # Unfortunately, on DOS this fails, as config.log is still kept open
22984 # by configure, so config.status won't be able to write to it; its
22985 # output is simply discarded. So we exec the FD to /dev/null,
22986 # effectively closing config.log, so it can be properly (re)opened and
22987 # appended to by config.status. When coming back to configure, we
22988 # need to make the FD available again.
22989 if test "$no_create" != yes; then
22991 ac_config_status_args=
22992 test "$silent" = yes &&
22993 ac_config_status_args="$ac_config_status_args --quiet"
22995 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22997 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22998 # would make configure fail if this is the last instruction.
22999 $ac_cs_success || { (exit 1); exit 1; }
23003 # CONFIG_SUBDIRS section.
23005 if test "$no_recursion" != yes; then
23007 # Remove --cache-file and --srcdir arguments so they do not pile up.
23008 ac_sub_configure_args=
23010 for ac_arg in $ac_configure_args; do
23011 if test -n "$ac_prev"; then
23016 -cache-file | --cache-file | --cache-fil | --cache-fi \
23017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23018 ac_prev=cache_file ;;
23019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23023 --config-cache | -C)
23025 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23027 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23033 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23037 # Always prepend --prefix to ensure using the same prefix
23038 # in subdir configurations.
23039 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23042 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23044 # Do not complain, so a configure script can configure whichever
23045 # parts of a large source tree are present.
23046 test -d $srcdir/$ac_dir || continue
23048 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23049 echo "$as_me: configuring in $ac_dir" >&6;}
23050 { if $as_mkdir_p; then
23055 while test ! -d "$as_dir"; do
23056 as_dirs="$as_dir $as_dirs"
23057 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23059 X"$as_dir" : 'X\(//\)[^/]' \| \
23060 X"$as_dir" : 'X\(//\)$' \| \
23061 X"$as_dir" : 'X\(/\)' \| \
23062 . : '\(.\)' 2>/dev/null ||
23064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23066 /^X\(\/\/\)$/{ s//\1/; q; }
23067 /^X\(\/\).*/{ s//\1/; q; }
23070 test ! -n "$as_dirs" || mkdir $as_dirs
23071 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23072 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23073 { (exit 1); exit 1; }; }; }
23077 if test "$ac_dir" != .; then
23078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23079 # A "../" for each directory in $ac_dir_suffix.
23080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23082 ac_dir_suffix= ac_top_builddir=
23086 .) # No --srcdir option. We are building in place.
23088 if test -z "$ac_top_builddir"; then
23091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23093 [\\/]* | ?:[\\/]* ) # Absolute path.
23094 ac_srcdir=$srcdir$ac_dir_suffix;
23095 ac_top_srcdir=$srcdir ;;
23096 *) # Relative path.
23097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23100 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23102 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23103 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23104 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23105 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23110 # Check for guested configure; otherwise get Cygnus style configure.
23111 if test -f $ac_srcdir/configure.gnu; then
23112 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23113 elif test -f $ac_srcdir/configure; then
23114 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23115 elif test -f $ac_srcdir/configure.in; then
23116 ac_sub_configure=$ac_configure
23118 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23119 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23123 # The recursion is here.
23124 if test -n "$ac_sub_configure"; then
23125 # Make the cache file name correct relative to the subdirectory.
23126 case $cache_file in
23127 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23128 *) # Relative path.
23129 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23132 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23133 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23134 # The eval makes quoting arguments work.
23135 eval $ac_sub_configure $ac_sub_configure_args \
23136 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23137 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23138 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23139 { (exit 1); exit 1; }; }
23147 if test $llvmgccwarn = yes
23149 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23150 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23151 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23152 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23153 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23154 echo "$as_me: WARNING: ***** " >&2;}
23155 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23156 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23157 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23158 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23159 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23160 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}