2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for [LLVM] [1.0].
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.
13 # Check that we are running under the correct shell.
14 SHELL=${CONFIG_SHELL-/bin/sh}
18 # Remove one level of quotation (which was required for Make).
19 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
24 if test "X$1" = X--no-reexec; then
25 # Discard the --no-reexec flag, and continue.
27 elif test "X$1" = X--fallback-echo; then
28 # Avoid inline document here, it may be left over
30 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
31 # Yippee, $echo works!
34 # Restart under the correct shell.
35 exec $SHELL "$0" --no-reexec ${1+"$@"}
38 if test "X$1" = X--fallback-echo; then
39 # used as fallback echo
47 # The HP-UX ksh and POSIX shell print the target directory to stdout
49 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
51 if test -z "$ECHO"; then
52 if test "X${echo_test_string+set}" != Xset; then
53 # find a string as large as possible, as long as the shell can cope with it
54 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
55 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
56 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
57 echo_test_string="`eval $cmd`" &&
58 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
65 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
66 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
67 test "X$echo_testing_string" = "X$echo_test_string"; then
70 # The Solaris, AIX, and Digital Unix default echo programs unquote
71 # backslashes. This makes it impossible to quote backslashes using
72 # echo "$something" | sed 's/\\/\\\\/g'
74 # So, first we look for a working echo in the user's PATH.
76 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
77 for dir in $PATH /usr/ucb; do
79 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
80 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
81 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
82 test "X$echo_testing_string" = "X$echo_test_string"; then
89 if test "X$echo" = Xecho; then
90 # We didn't find a better echo, so look for alternatives.
91 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
92 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
93 test "X$echo_testing_string" = "X$echo_test_string"; then
94 # This shell has a builtin print -r that does the trick.
96 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
97 test "X$CONFIG_SHELL" != X/bin/ksh; then
98 # If we have ksh, try running configure again with it.
99 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
100 export ORIGINAL_CONFIG_SHELL
101 CONFIG_SHELL=/bin/ksh
103 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
107 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
108 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
109 test "X$echo_testing_string" = "X$echo_test_string"; then
112 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
113 test "X$echo_testing_string" = 'X\t' &&
114 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
115 test "X$echo_testing_string" = "X$echo_test_string"; then
116 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
118 SHELL="$CONFIG_SHELL"
120 echo="$CONFIG_SHELL $0 --fallback-echo"
121 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
122 test "X$echo_testing_string" = 'X\t' &&
123 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
124 test "X$echo_testing_string" = "X$echo_test_string"; then
125 echo="$CONFIG_SHELL $0 --fallback-echo"
127 # maybe with a smaller string...
130 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
131 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
138 if test "$prev" != 'sed 50q "$0"'; then
139 echo_test_string=`eval $prev`
140 export echo_test_string
141 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
143 # Oops. We lost completely, so just stick with echo.
152 # Copy echo and quote the copy suitably for passing to libtool from
153 # the Makefile, instead of quoting the original, which is used later.
155 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
156 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
162 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
164 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
166 if expr a : '\(a\)' >/dev/null 2>&1; then
173 ## --------------------- ##
174 ## M4sh Initialization. ##
175 ## --------------------- ##
177 # Be Bourne compatible
178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
181 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
186 # Support unset when possible.
187 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
193 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
194 { $as_unset LANG || test "${LANG+set}" != set; } ||
195 { LANG=C; export LANG; }
196 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
197 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
198 { LC_ALL=C; export LC_ALL; }
199 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
200 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
201 { LC_TIME=C; export LC_TIME; }
202 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
203 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
204 { LC_CTYPE=C; export LC_CTYPE; }
205 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
206 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
207 { LANGUAGE=C; export LANGUAGE; }
208 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
209 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
210 { LC_COLLATE=C; export LC_COLLATE; }
211 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
212 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
213 { LC_NUMERIC=C; export LC_NUMERIC; }
214 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
215 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
216 { LC_MESSAGES=C; export LC_MESSAGES; }
219 # Name of the executable.
220 as_me=`(basename "$0") 2>/dev/null ||
221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
222 X"$0" : 'X\(//\)$' \| \
223 X"$0" : 'X\(/\)$' \| \
224 . : '\(.\)' 2>/dev/null ||
226 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
227 /^X\/\(\/\/\)$/{ s//\1/; q; }
228 /^X\/\(\/\).*/{ s//\1/; q; }
231 # PATH needs CR, and LINENO needs CR and PATH.
232 # Avoid depending upon Character Ranges.
233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
236 as_cr_digits='0123456789'
237 as_cr_alnum=$as_cr_Letters$as_cr_digits
239 # The user is always right.
240 if test "${PATH_SEPARATOR+set}" != set; then
241 echo "#! /bin/sh" >conftest.sh
242 echo "exit 0" >>conftest.sh
244 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
255 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
256 test "x$as_lineno_1" != "x$as_lineno_2" &&
257 test "x$as_lineno_3" = "x$as_lineno_2" || {
258 # Find who we are. Look in the path if we contain no path at all
261 *[\\/]* ) as_myself=$0 ;;
262 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266 test -z "$as_dir" && as_dir=.
267 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
272 # We did not find ourselves, most probably we were run as `sh COMMAND'
273 # in which case we are not to be found in the path.
274 if test "x$as_myself" = x; then
277 if test ! -f "$as_myself"; then
278 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
279 { (exit 1); exit 1; }; }
281 case $CONFIG_SHELL in
283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
284 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
287 test -z "$as_dir" && as_dir=.
288 for as_base in sh bash ksh sh5; do
291 if ("$as_dir/$as_base" -c '
294 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
295 test "x$as_lineno_1" != "x$as_lineno_2" &&
296 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
297 CONFIG_SHELL=$as_dir/$as_base
299 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
307 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
308 # uniformly replaced by the line number. The first 'sed' inserts a
309 # line-number line before each line; the second 'sed' does the real
310 # work. The second script uses 'N' to pair each line-number line
311 # with the numbered line, and appends trailing '-' during
312 # substitution so that $LINENO is not a special case at line end.
313 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
314 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
315 sed '=' <$as_myself |
320 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
323 s,^['$as_cr_digits']*\n,,
325 chmod +x $as_me.lineno ||
326 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
327 { (exit 1); exit 1; }; }
329 # Don't try to exec as it changes $[0], causing all sort of problems
330 # (the dirname of $[0] is not the place where we might find the
331 # original and so on. Autoconf is especially sensible to this).
333 # Exit status is that of the last command.
338 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
339 *c*,-n*) ECHO_N= ECHO_C='
341 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
342 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
345 if expr a : '\(a\)' >/dev/null 2>&1; then
351 rm -f conf$$ conf$$.exe conf$$.file
353 if ln -s conf$$.file conf$$ 2>/dev/null; then
354 # We could just check for DJGPP; but this test a) works b) is more generic
355 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
356 if test -f conf$$.exe; then
357 # Don't use ln at all; we don't have any links
362 elif ln conf$$.file conf$$ 2>/dev/null; then
367 rm -f conf$$ conf$$.exe conf$$.file
369 as_executable_p="test -f"
371 # Sed expression to map a string onto a valid CPP name.
372 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
374 # Sed expression to map a string onto a valid variable name.
375 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
379 # We need space, tab and new line, in precisely that order.
385 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
389 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
390 # so uname gets run too.
391 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 ac_default_prefix=/usr/local
403 SHELL=${CONFIG_SHELL-/bin/sh}
405 # Maximum number of lines to put in a shell here document.
406 # This variable seems obsolete. It should probably be removed, and
407 # only ac_max_sed_lines should be used.
408 : ${ac_max_here_lines=38}
410 # Identity of this package.
411 PACKAGE_NAME='[LLVM]'
412 PACKAGE_TARNAME='--llvm--'
413 PACKAGE_VERSION='[1.0]'
414 PACKAGE_STRING='[LLVM] [1.0]'
415 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
417 # Factoring default headers for most tests.
418 ac_includes_default="\
421 # include <sys/types.h>
424 # include <sys/stat.h>
435 # if !STDC_HEADERS && HAVE_MEMORY_H
441 # include <strings.h>
444 # include <inttypes.h>
454 ac_unique_file=""Makefile.config.in""
456 # Initialize some variables set by options.
458 ac_init_version=false
459 # The variables have the same names as the options, with
460 # dashes changed to underlines.
468 program_transform_name=s,x,x,
476 # Installation directory options.
477 # These are left unexpanded so users can "make install exec_prefix=/foo"
478 # and all the variables that are supposed to be based on exec_prefix
479 # by default will actually change.
480 # Use braces instead of parens because sh, perl, etc. also accept them.
481 bindir='${exec_prefix}/bin'
482 sbindir='${exec_prefix}/sbin'
483 libexecdir='${exec_prefix}/libexec'
484 datadir='${prefix}/share'
485 sysconfdir='${prefix}/etc'
486 sharedstatedir='${prefix}/com'
487 localstatedir='${prefix}/var'
488 libdir='${exec_prefix}/lib'
489 includedir='${prefix}/include'
490 oldincludedir='/usr/include'
491 infodir='${prefix}/info'
492 mandir='${prefix}/man'
497 # If the previous option needs an argument, assign it.
498 if test -n "$ac_prev"; then
499 eval "$ac_prev=\$ac_option"
504 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
506 # Accept the important Cygnus configure options, so we can diagnose typos.
510 -bindir | --bindir | --bindi | --bind | --bin | --bi)
512 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
515 -build | --build | --buil | --bui | --bu)
516 ac_prev=build_alias ;;
517 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
518 build_alias=$ac_optarg ;;
520 -cache-file | --cache-file | --cache-fil | --cache-fi \
521 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
522 ac_prev=cache_file ;;
523 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
524 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
525 cache_file=$ac_optarg ;;
528 cache_file=config.cache ;;
530 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
532 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
534 datadir=$ac_optarg ;;
536 -disable-* | --disable-*)
537 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
538 # Reject names that are not valid shell variable names.
539 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
540 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
541 { (exit 1); exit 1; }; }
542 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
543 eval "enable_$ac_feature=no" ;;
545 -enable-* | --enable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
556 eval "enable_$ac_feature='$ac_optarg'" ;;
558 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
559 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
560 | --exec | --exe | --ex)
561 ac_prev=exec_prefix ;;
562 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
563 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
564 | --exec=* | --exe=* | --ex=*)
565 exec_prefix=$ac_optarg ;;
567 -gas | --gas | --ga | --g)
568 # Obsolete; use --with-gas.
571 -help | --help | --hel | --he | -h)
573 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
574 ac_init_help=recursive ;;
575 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
576 ac_init_help=short ;;
578 -host | --host | --hos | --ho)
579 ac_prev=host_alias ;;
580 -host=* | --host=* | --hos=* | --ho=*)
581 host_alias=$ac_optarg ;;
583 -includedir | --includedir | --includedi | --included | --include \
584 | --includ | --inclu | --incl | --inc)
585 ac_prev=includedir ;;
586 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
587 | --includ=* | --inclu=* | --incl=* | --inc=*)
588 includedir=$ac_optarg ;;
590 -infodir | --infodir | --infodi | --infod | --info | --inf)
592 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
593 infodir=$ac_optarg ;;
595 -libdir | --libdir | --libdi | --libd)
597 -libdir=* | --libdir=* | --libdi=* | --libd=*)
600 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
601 | --libexe | --libex | --libe)
602 ac_prev=libexecdir ;;
603 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
604 | --libexe=* | --libex=* | --libe=*)
605 libexecdir=$ac_optarg ;;
607 -localstatedir | --localstatedir | --localstatedi | --localstated \
608 | --localstate | --localstat | --localsta | --localst \
609 | --locals | --local | --loca | --loc | --lo)
610 ac_prev=localstatedir ;;
611 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
612 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
613 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
614 localstatedir=$ac_optarg ;;
616 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
618 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
622 # Obsolete; use --without-fp.
625 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
626 | --no-cr | --no-c | -n)
629 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
630 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
633 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
634 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
635 | --oldin | --oldi | --old | --ol | --o)
636 ac_prev=oldincludedir ;;
637 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
638 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
639 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
640 oldincludedir=$ac_optarg ;;
642 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
644 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
647 -program-prefix | --program-prefix | --program-prefi | --program-pref \
648 | --program-pre | --program-pr | --program-p)
649 ac_prev=program_prefix ;;
650 -program-prefix=* | --program-prefix=* | --program-prefi=* \
651 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
652 program_prefix=$ac_optarg ;;
654 -program-suffix | --program-suffix | --program-suffi | --program-suff \
655 | --program-suf | --program-su | --program-s)
656 ac_prev=program_suffix ;;
657 -program-suffix=* | --program-suffix=* | --program-suffi=* \
658 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
659 program_suffix=$ac_optarg ;;
661 -program-transform-name | --program-transform-name \
662 | --program-transform-nam | --program-transform-na \
663 | --program-transform-n | --program-transform- \
664 | --program-transform | --program-transfor \
665 | --program-transfo | --program-transf \
666 | --program-trans | --program-tran \
667 | --progr-tra | --program-tr | --program-t)
668 ac_prev=program_transform_name ;;
669 -program-transform-name=* | --program-transform-name=* \
670 | --program-transform-nam=* | --program-transform-na=* \
671 | --program-transform-n=* | --program-transform-=* \
672 | --program-transform=* | --program-transfor=* \
673 | --program-transfo=* | --program-transf=* \
674 | --program-trans=* | --program-tran=* \
675 | --progr-tra=* | --program-tr=* | --program-t=*)
676 program_transform_name=$ac_optarg ;;
678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
679 | -silent | --silent | --silen | --sile | --sil)
682 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
684 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
686 sbindir=$ac_optarg ;;
688 -sharedstatedir | --sharedstatedir | --sharedstatedi \
689 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
690 | --sharedst | --shareds | --shared | --share | --shar \
692 ac_prev=sharedstatedir ;;
693 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
694 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
695 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
697 sharedstatedir=$ac_optarg ;;
699 -site | --site | --sit)
701 -site=* | --site=* | --sit=*)
704 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
706 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
709 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
710 | --syscon | --sysco | --sysc | --sys | --sy)
711 ac_prev=sysconfdir ;;
712 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
713 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
714 sysconfdir=$ac_optarg ;;
716 -target | --target | --targe | --targ | --tar | --ta | --t)
717 ac_prev=target_alias ;;
718 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
719 target_alias=$ac_optarg ;;
721 -v | -verbose | --verbose | --verbos | --verbo | --verb)
724 -version | --version | --versio | --versi | --vers | -V)
728 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
729 # Reject names that are not valid shell variable names.
730 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
731 { echo "$as_me: error: invalid package name: $ac_package" >&2
732 { (exit 1); exit 1; }; }
733 ac_package=`echo $ac_package| sed 's/-/_/g'`
735 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
738 eval "with_$ac_package='$ac_optarg'" ;;
740 -without-* | --without-*)
741 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package | sed 's/-/_/g'`
747 eval "with_$ac_package=no" ;;
750 # Obsolete; use --with-x.
753 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
754 | --x-incl | --x-inc | --x-in | --x-i)
755 ac_prev=x_includes ;;
756 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
757 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
758 x_includes=$ac_optarg ;;
760 -x-libraries | --x-libraries | --x-librarie | --x-librari \
761 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
762 ac_prev=x_libraries ;;
763 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
764 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
765 x_libraries=$ac_optarg ;;
767 -*) { echo "$as_me: error: unrecognized option: $ac_option
768 Try \`$0 --help' for more information." >&2
769 { (exit 1); exit 1; }; }
773 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
774 # Reject names that are not valid shell variable names.
775 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
776 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
777 { (exit 1); exit 1; }; }
778 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
779 eval "$ac_envvar='$ac_optarg'"
783 # FIXME: should be removed in autoconf 3.0.
784 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
785 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
786 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
787 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
793 if test -n "$ac_prev"; then
794 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
795 { echo "$as_me: error: missing argument to $ac_option" >&2
796 { (exit 1); exit 1; }; }
799 # Be sure to have absolute paths.
800 for ac_var in exec_prefix prefix
802 eval ac_val=$`echo $ac_var`
804 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
805 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
806 { (exit 1); exit 1; }; };;
810 # Be sure to have absolute paths.
811 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
812 localstatedir libdir includedir oldincludedir infodir mandir
814 eval ac_val=$`echo $ac_var`
816 [\\/$]* | ?:[\\/]* ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
822 # There might be people who depend on the old broken behavior: `$host'
823 # used to hold the argument of --host etc.
824 # FIXME: To remove some day.
829 # FIXME: To remove some day.
830 if test "x$host_alias" != x; then
831 if test "x$build_alias" = x; then
832 cross_compiling=maybe
833 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
834 If a cross compiler is detected then cross compile mode will be used." >&2
835 elif test "x$build_alias" != "x$host_alias"; then
841 test -n "$host_alias" && ac_tool_prefix=$host_alias-
843 test "$silent" = yes && exec 6>/dev/null
846 # Find the source files, if location was not specified.
847 if test -z "$srcdir"; then
848 ac_srcdir_defaulted=yes
849 # Try the directory containing this script, then its parent.
850 ac_confdir=`(dirname "$0") 2>/dev/null ||
851 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
852 X"$0" : 'X\(//\)[^/]' \| \
853 X"$0" : 'X\(//\)$' \| \
854 X"$0" : 'X\(/\)' \| \
855 . : '\(.\)' 2>/dev/null ||
857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
859 /^X\(\/\/\)$/{ s//\1/; q; }
860 /^X\(\/\).*/{ s//\1/; q; }
863 if test ! -r $srcdir/$ac_unique_file; then
867 ac_srcdir_defaulted=no
869 if test ! -r $srcdir/$ac_unique_file; then
870 if test "$ac_srcdir_defaulted" = yes; then
871 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
872 { (exit 1); exit 1; }; }
874 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
875 { (exit 1); exit 1; }; }
878 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
879 ac_env_build_alias_set=${build_alias+set}
880 ac_env_build_alias_value=$build_alias
881 ac_cv_env_build_alias_set=${build_alias+set}
882 ac_cv_env_build_alias_value=$build_alias
883 ac_env_host_alias_set=${host_alias+set}
884 ac_env_host_alias_value=$host_alias
885 ac_cv_env_host_alias_set=${host_alias+set}
886 ac_cv_env_host_alias_value=$host_alias
887 ac_env_target_alias_set=${target_alias+set}
888 ac_env_target_alias_value=$target_alias
889 ac_cv_env_target_alias_set=${target_alias+set}
890 ac_cv_env_target_alias_value=$target_alias
891 ac_env_CXX_set=${CXX+set}
892 ac_env_CXX_value=$CXX
893 ac_cv_env_CXX_set=${CXX+set}
894 ac_cv_env_CXX_value=$CXX
895 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
896 ac_env_CXXFLAGS_value=$CXXFLAGS
897 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
898 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
899 ac_env_LDFLAGS_set=${LDFLAGS+set}
900 ac_env_LDFLAGS_value=$LDFLAGS
901 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
902 ac_cv_env_LDFLAGS_value=$LDFLAGS
903 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
904 ac_env_CPPFLAGS_value=$CPPFLAGS
905 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
906 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_CPP_set=${CPP+set}
916 ac_env_CPP_value=$CPP
917 ac_cv_env_CPP_set=${CPP+set}
918 ac_cv_env_CPP_value=$CPP
919 ac_env_CXXCPP_set=${CXXCPP+set}
920 ac_env_CXXCPP_value=$CXXCPP
921 ac_cv_env_CXXCPP_set=${CXXCPP+set}
922 ac_cv_env_CXXCPP_value=$CXXCPP
923 ac_env_F77_set=${F77+set}
924 ac_env_F77_value=$F77
925 ac_cv_env_F77_set=${F77+set}
926 ac_cv_env_F77_value=$F77
927 ac_env_FFLAGS_set=${FFLAGS+set}
928 ac_env_FFLAGS_value=$FFLAGS
929 ac_cv_env_FFLAGS_set=${FFLAGS+set}
930 ac_cv_env_FFLAGS_value=$FFLAGS
933 # Report the --help message.
935 if test "$ac_init_help" = "long"; then
936 # Omit some internal or obsolete options to make the list less imposing.
937 # This message is too long to be a string in the A/UX 3.1 sh.
939 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
941 Usage: $0 [OPTION]... [VAR=VALUE]...
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE. See below for descriptions of some of the useful variables.
946 Defaults for the options are specified in brackets.
949 -h, --help display this help and exit
950 --help=short display options specific to this package
951 --help=recursive display the short help of all the included packages
952 -V, --version display version information and exit
953 -q, --quiet, --silent do not print \`checking...' messages
954 --cache-file=FILE cache test results in FILE [disabled]
955 -C, --config-cache alias for \`--cache-file=config.cache'
956 -n, --no-create do not create output files
957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
962 Installation directories:
963 --prefix=PREFIX install architecture-independent files in PREFIX
965 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
973 For better control, use the options below.
975 Fine tuning of the installation directories:
976 --bindir=DIR user executables [EPREFIX/bin]
977 --sbindir=DIR system admin executables [EPREFIX/sbin]
978 --libexecdir=DIR program executables [EPREFIX/libexec]
979 --datadir=DIR read-only architecture-independent data [PREFIX/share]
980 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
981 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
982 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
983 --libdir=DIR object code libraries [EPREFIX/lib]
984 --includedir=DIR C header files [PREFIX/include]
985 --oldincludedir=DIR C header files for non-gcc [/usr/include]
986 --infodir=DIR info documentation [PREFIX/info]
987 --mandir=DIR man documentation [PREFIX/man]
993 --build=BUILD configure for building on BUILD [guessed]
994 --host=HOST cross-compile to build programs to run on HOST [BUILD]
995 --target=TARGET configure for building compilers for TARGET [HOST]
999 if test -n "$ac_init_help"; then
1000 case $ac_init_help in
1001 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1006 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1007 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1008 --enable-shared[=PKGS]
1009 build shared libraries [default=yes]
1010 --enable-static[=PKGS]
1011 build static libraries [default=yes]
1012 --enable-fast-install[=PKGS]
1013 optimize for fast installation [default=yes]
1014 --disable-libtool-lock avoid locking (might break parallel builds)
1015 --enable-purify Compile with purify (default is NO)
1016 --enable-optimized Compile with optimizations enabled (default is NO)
1017 --enable-spec Compile SPEC benchmarks (default is NO)
1018 --enable-precompiled_bytecode
1019 Use pre-compiled bytecode (default is NO)
1020 --enable-jit Enable Just In Time Compiling (default is NO)
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1026 --with-pic try to use only PIC/non-PIC objects [default=use
1029 include additional configurations [automatic]
1030 --with-spec Location of SPEC benchmarks
1031 --with-llvmgccdir Location of LLVM GCC front-end
1032 --with-bcrepos Location of Bytecode Repository
1033 --with-papi Location of PAPI
1034 --with-objroot Location where object files should be placed
1036 --with-purify Location of purify program
1038 Some influential environment variables:
1039 CXX C++ compiler command
1040 CXXFLAGS C++ compiler flags
1041 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1042 nonstandard directory <lib dir>
1043 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1044 headers in a nonstandard directory <include dir>
1045 CC C compiler command
1046 CFLAGS C compiler flags
1048 CXXCPP C++ preprocessor
1049 F77 Fortran 77 compiler command
1050 FFLAGS Fortran 77 compiler flags
1052 Use these variables to override the choices made by `configure' or to help
1053 it to find libraries and programs with nonstandard names/locations.
1055 Report bugs to <llvmbugs@cs.uiuc.edu>.
1059 if test "$ac_init_help" = "recursive"; then
1060 # If there are subdirs, report their specific --help.
1062 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1063 test -d $ac_dir || continue
1066 if test "$ac_dir" != .; then
1067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1068 # A "../" for each directory in $ac_dir_suffix.
1069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1071 ac_dir_suffix= ac_top_builddir=
1075 .) # No --srcdir option. We are building in place.
1077 if test -z "$ac_top_builddir"; then
1080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1082 [\\/]* | ?:[\\/]* ) # Absolute path.
1083 ac_srcdir=$srcdir$ac_dir_suffix;
1084 ac_top_srcdir=$srcdir ;;
1086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1089 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1091 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1092 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1093 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1094 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1097 # Check for guested configure; otherwise get Cygnus style configure.
1098 if test -f $ac_srcdir/configure.gnu; then
1100 $SHELL $ac_srcdir/configure.gnu --help=recursive
1101 elif test -f $ac_srcdir/configure; then
1103 $SHELL $ac_srcdir/configure --help=recursive
1104 elif test -f $ac_srcdir/configure.ac ||
1105 test -f $ac_srcdir/configure.in; then
1107 $ac_configure --help
1109 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1115 test -n "$ac_init_help" && exit 0
1116 if $ac_init_version; then
1118 [LLVM] configure [1.0]
1119 generated by GNU Autoconf 2.53
1121 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1122 Free Software Foundation, Inc.
1123 This configure script is free software; the Free Software Foundation
1124 gives unlimited permission to copy, distribute and modify it.
1130 This file contains any messages produced by compilers while
1131 running configure, to aid debugging if configure makes a mistake.
1133 It was created by [LLVM] $as_me [1.0], which was
1134 generated by GNU Autoconf 2.53. Invocation command line was
1145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1152 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1154 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1155 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1157 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1158 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1159 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1160 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168 test -z "$as_dir" && as_dir=.
1169 echo "PATH: $as_dir"
1184 # Keep a trace of the command line.
1185 # Strip out --no-create and --no-recursion so they do not pile up.
1186 # Also quote any args containing shell meta-characters.
1192 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193 | --no-cr | --no-c | -n ) continue ;;
1194 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1195 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1198 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 case " $ac_configure_args " in
1201 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1202 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1205 # Get rid of the leading space.
1208 # When interrupted or exit'd, cleanup temporary files, and complete
1209 # config.log. We remove comments because anyway the quotes in there
1210 # would cause problems or look ugly.
1211 # WARNING: Be sure not to use single quotes in there, as some shells,
1212 # such as our DU 5.0 friend, will then `close' the trap.
1213 trap 'exit_status=$?
1214 # Save into config.log some information that might help in debugging.
1218 ## ---------------- ##
1219 ## Cache variables. ##
1220 ## ---------------- ##
1223 # The following way of writing the cache mishandles newlines in values,
1226 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1229 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1234 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1239 if test -s confdefs.h; then
1246 sed "/^$/d" confdefs.h
1249 test "$ac_signal" != 0 &&
1250 echo "$as_me: caught signal $ac_signal"
1251 echo "$as_me: exit $exit_status"
1253 rm -f core core.* *.core &&
1254 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1257 for ac_signal in 1 2 13 15; do
1258 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1263 rm -rf conftest* confdefs.h
1264 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1267 # Predefined preprocessor variables.
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_NAME "$PACKAGE_NAME"
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_STRING "$PACKAGE_STRING"
1289 cat >>confdefs.h <<_ACEOF
1290 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1294 # Let the site file select an alternate cache file if it wants to.
1295 # Prefer explicitly selected file to automatically selected ones.
1296 if test -z "$CONFIG_SITE"; then
1297 if test "x$prefix" != xNONE; then
1298 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1300 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1303 for ac_site_file in $CONFIG_SITE; do
1304 if test -r "$ac_site_file"; then
1305 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1306 echo "$as_me: loading site script $ac_site_file" >&6;}
1307 sed 's/^/| /' "$ac_site_file" >&5
1312 if test -r "$cache_file"; then
1313 # Some versions of bash will fail to source /dev/null (special
1314 # files actually), so we avoid doing that.
1315 if test -f "$cache_file"; then
1316 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1317 echo "$as_me: loading cache $cache_file" >&6;}
1319 [\\/]* | ?:[\\/]* ) . $cache_file;;
1320 *) . ./$cache_file;;
1324 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1325 echo "$as_me: creating cache $cache_file" >&6;}
1329 # Check that the precious variables saved in the cache have kept the same
1331 ac_cache_corrupted=false
1332 for ac_var in `(set) 2>&1 |
1333 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1334 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1335 eval ac_new_set=\$ac_env_${ac_var}_set
1336 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1337 eval ac_new_val="\$ac_env_${ac_var}_value"
1338 case $ac_old_set,$ac_new_set in
1340 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1341 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1342 ac_cache_corrupted=: ;;
1344 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1345 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1346 ac_cache_corrupted=: ;;
1349 if test "x$ac_old_val" != "x$ac_new_val"; then
1350 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1351 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1352 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1353 echo "$as_me: former value: $ac_old_val" >&2;}
1354 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1355 echo "$as_me: current value: $ac_new_val" >&2;}
1356 ac_cache_corrupted=:
1359 # Pass precious variables to config.status.
1360 if test "$ac_new_set" = set; then
1362 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1363 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1364 *) ac_arg=$ac_var=$ac_new_val ;;
1366 case " $ac_configure_args " in
1367 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1368 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1372 if $ac_cache_corrupted; then
1373 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1374 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1375 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1376 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1377 { (exit 1); exit 1; }; }
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1412 ac_config_headers="$ac_config_headers include/Config/config.h"
1417 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1418 if test -f $ac_dir/install-sh; then
1420 ac_install_sh="$ac_aux_dir/install-sh -c"
1422 elif test -f $ac_dir/install.sh; then
1424 ac_install_sh="$ac_aux_dir/install.sh -c"
1426 elif test -f $ac_dir/shtool; then
1428 ac_install_sh="$ac_aux_dir/shtool install -c"
1432 if test -z "$ac_aux_dir"; then
1433 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1434 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1435 { (exit 1); exit 1; }; }
1437 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1438 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1439 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1441 # Find a good install program. We prefer a C program (faster),
1442 # so one script is as good as another. But avoid the broken or
1443 # incompatible versions:
1444 # SysV /etc/install, /usr/sbin/install
1445 # SunOS /usr/etc/install
1446 # IRIX /sbin/install
1448 # AmigaOS /C/install, which installs bootblocks on floppy discs
1449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1452 # ./install, which can be erroneously created by make from ./install.sh.
1453 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1454 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1455 if test -z "$INSTALL"; then
1456 if test "${ac_cv_path_install+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463 test -z "$as_dir" && as_dir=.
1464 # Account for people who put trailing slashes in PATH elements.
1466 ./ | .// | /cC/* | \
1467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1470 # OSF1 and SCO ODT 3.0 have their own names for install.
1471 # Don't use installbsd from OSF since it installs stuff as root
1473 for ac_prog in ginstall scoinst install; do
1474 for ac_exec_ext in '' $ac_executable_extensions; do
1475 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1476 if test $ac_prog = install &&
1477 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1478 # AIX install. It has an incompatible calling convention.
1480 elif test $ac_prog = install &&
1481 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1482 # program-specific install script used by HP pwplus--don't use.
1485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1497 if test "${ac_cv_path_install+set}" = set; then
1498 INSTALL=$ac_cv_path_install
1500 # As a last resort, use the slow shell script. We don't cache a
1501 # path for INSTALL within a source directory, because that will
1502 # break other packages using the cache if that directory is
1503 # removed, or if the path is relative.
1504 INSTALL=$ac_install_sh
1507 echo "$as_me:$LINENO: result: $INSTALL" >&5
1508 echo "${ECHO_T}$INSTALL" >&6
1510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1511 # It thinks the first close brace ends the variable substitution.
1512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1519 # Make sure we can run config.sub.
1520 $ac_config_sub sun4 >/dev/null 2>&1 ||
1521 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1522 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1523 { (exit 1); exit 1; }; }
1525 echo "$as_me:$LINENO: checking build system type" >&5
1526 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1527 if test "${ac_cv_build+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 ac_cv_build_alias=$build_alias
1531 test -z "$ac_cv_build_alias" &&
1532 ac_cv_build_alias=`$ac_config_guess`
1533 test -z "$ac_cv_build_alias" &&
1534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1535 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1536 { (exit 1); exit 1; }; }
1537 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1543 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1544 echo "${ECHO_T}$ac_cv_build" >&6
1546 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551 echo "$as_me:$LINENO: checking host system type" >&5
1552 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1553 if test "${ac_cv_host+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 ac_cv_host_alias=$host_alias
1557 test -z "$ac_cv_host_alias" &&
1558 ac_cv_host_alias=$ac_cv_build_alias
1559 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1565 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1566 echo "${ECHO_T}$ac_cv_host" >&6
1568 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573 echo "$as_me:$LINENO: checking target system type" >&5
1574 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1575 if test "${ac_cv_target+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 ac_cv_target_alias=$target_alias
1579 test "x$ac_cv_target_alias" = "x" &&
1580 ac_cv_target_alias=$ac_cv_host_alias
1581 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1587 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1588 echo "${ECHO_T}$ac_cv_target" >&6
1589 target=$ac_cv_target
1590 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595 # The aliases save the names the user supplied, while $host etc.
1596 # will get canonicalized.
1597 test -n "$target_alias" &&
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1600 program_prefix=${target_alias}-
1605 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
1607 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1613 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1623 *sparc*solaris*) target=sparcv9-sun-solaris2.8
1632 *sparc*solaris*) ARCH=Sparc
1639 ac_cpp='$CXXCPP $CPPFLAGS'
1640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1643 if test -n "$ac_tool_prefix"; then
1644 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_CXX+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 if test -n "$CXX"; then
1654 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 if test -n "$CXX"; then
1674 echo "$as_me:$LINENO: result: $CXX" >&5
1675 echo "${ECHO_T}$CXX" >&6
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1681 test -n "$CXX" && break
1684 if test -z "$CXX"; then
1686 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1688 # Extract the first word of "$ac_prog", so it can be a program name with args.
1689 set dummy $ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$ac_ct_CXX"; then
1696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_CXX="$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1715 if test -n "$ac_ct_CXX"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1717 echo "${ECHO_T}$ac_ct_CXX" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 test -n "$ac_ct_CXX" && break
1725 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1731 # Provide some information about the compiler.
1732 echo "$as_me:$LINENO:" \
1733 "checking for C++ compiler version" >&5
1734 ac_compiler=`set X $ac_compile; echo $2`
1735 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1736 (eval $ac_compiler --version </dev/null >&5) 2>&5
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }
1740 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1741 (eval $ac_compiler -v </dev/null >&5) 2>&5
1743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744 (exit $ac_status); }
1745 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1746 (eval $ac_compiler -V </dev/null >&5) 2>&5
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }
1751 cat >conftest.$ac_ext <<_ACEOF
1752 #line $LINENO "configure"
1753 #include "confdefs.h"
1755 #ifdef F77_DUMMY_MAIN
1759 int F77_DUMMY_MAIN() { return 1; }
1769 ac_clean_files_save=$ac_clean_files
1770 ac_clean_files="$ac_clean_files a.out a.exe"
1771 # Try to create an executable without -o first, disregard a.out.
1772 # It will help us diagnose broken compilers, and finding out an intuition
1774 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1775 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1776 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1777 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1778 (eval $ac_link_default) 2>&5
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }; then
1782 # Find the output, starting from the most likely. This scheme is
1783 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1786 # Be careful to initialize this variable, since it used to be cached.
1787 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1789 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1790 ls a.out conftest 2>/dev/null;
1791 ls a.* conftest.* 2>/dev/null`; do
1793 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1794 a.out ) # We found the default executable, but exeext='' is most
1797 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1798 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1805 echo "$as_me: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1807 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1808 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1809 { (exit 77); exit 77; }; }
1812 ac_exeext=$ac_cv_exeext
1813 echo "$as_me:$LINENO: result: $ac_file" >&5
1814 echo "${ECHO_T}$ac_file" >&6
1816 # Check the compiler produces executables we can run. If not, either
1817 # the compiler is broken, or we cross compile.
1818 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1819 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1820 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1821 # If not cross compiling, check that we can run a simple program.
1822 if test "$cross_compiling" != yes; then
1823 if { ac_try='./$ac_file'
1824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; }; then
1831 if test "$cross_compiling" = maybe; then
1834 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1835 If you meant to cross compile, use \`--host'." >&5
1836 echo "$as_me: error: cannot run C++ compiled programs.
1837 If you meant to cross compile, use \`--host'." >&2;}
1838 { (exit 1); exit 1; }; }
1842 echo "$as_me:$LINENO: result: yes" >&5
1843 echo "${ECHO_T}yes" >&6
1845 rm -f a.out a.exe conftest$ac_cv_exeext
1846 ac_clean_files=$ac_clean_files_save
1847 # Check the compiler produces executables we can run. If not, either
1848 # the compiler is broken, or we cross compile.
1849 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1850 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1851 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1852 echo "${ECHO_T}$cross_compiling" >&6
1854 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1855 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1857 (eval $ac_link) 2>&5
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }; then
1861 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1862 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1863 # work properly (i.e., refer to `conftest.exe'), while it won't with
1865 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1867 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1875 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1877 { (exit 1); exit 1; }; }
1880 rm -f conftest$ac_cv_exeext
1881 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1882 echo "${ECHO_T}$ac_cv_exeext" >&6
1884 rm -f conftest.$ac_ext
1885 EXEEXT=$ac_cv_exeext
1887 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1888 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1889 if test "${ac_cv_objext+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 cat >conftest.$ac_ext <<_ACEOF
1893 #line $LINENO "configure"
1894 #include "confdefs.h"
1896 #ifdef F77_DUMMY_MAIN
1900 int F77_DUMMY_MAIN() { return 1; }
1910 rm -f conftest.o conftest.obj
1911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }; then
1916 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1919 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1924 echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1927 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1928 { (exit 1); exit 1; }; }
1931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1933 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1934 echo "${ECHO_T}$ac_cv_objext" >&6
1935 OBJEXT=$ac_cv_objext
1937 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1938 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1939 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 cat >conftest.$ac_ext <<_ACEOF
1943 #line $LINENO "configure"
1944 #include "confdefs.h"
1946 #ifdef F77_DUMMY_MAIN
1950 int F77_DUMMY_MAIN() { return 1; }
1963 rm -f conftest.$ac_objext
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>&5
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); } &&
1969 { ac_try='test -s conftest.$ac_objext'
1970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; }; then
1977 echo "$as_me: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1981 rm -f conftest.$ac_objext conftest.$ac_ext
1982 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1985 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1986 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1987 GXX=`test $ac_compiler_gnu = yes && echo yes`
1988 ac_test_CXXFLAGS=${CXXFLAGS+set}
1989 ac_save_CXXFLAGS=$CXXFLAGS
1991 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1992 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1993 if test "${ac_cv_prog_cxx_g+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 cat >conftest.$ac_ext <<_ACEOF
1997 #line $LINENO "configure"
1998 #include "confdefs.h"
2000 #ifdef F77_DUMMY_MAIN
2004 int F77_DUMMY_MAIN() { return 1; }
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>&5
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); } &&
2020 { ac_try='test -s conftest.$ac_objext'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2026 ac_cv_prog_cxx_g=yes
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2032 rm -f conftest.$ac_objext conftest.$ac_ext
2034 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2035 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2036 if test "$ac_test_CXXFLAGS" = set; then
2037 CXXFLAGS=$ac_save_CXXFLAGS
2038 elif test $ac_cv_prog_cxx_g = yes; then
2039 if test "$GXX" = yes; then
2045 if test "$GXX" = yes; then
2051 for ac_declaration in \
2053 '#include <stdlib.h>' \
2054 'extern "C" void std::exit (int) throw (); using std::exit;' \
2055 'extern "C" void std::exit (int); using std::exit;' \
2056 'extern "C" void exit (int) throw ();' \
2057 'extern "C" void exit (int);' \
2060 cat >conftest.$ac_ext <<_ACEOF
2061 #line $LINENO "configure"
2062 #include "confdefs.h"
2065 #ifdef F77_DUMMY_MAIN
2069 int F77_DUMMY_MAIN() { return 1; }
2079 rm -f conftest.$ac_objext
2080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081 (eval $ac_compile) 2>&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -s conftest.$ac_objext'
2086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; }; then
2093 echo "$as_me: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2097 rm -f conftest.$ac_objext conftest.$ac_ext
2098 cat >conftest.$ac_ext <<_ACEOF
2099 #line $LINENO "configure"
2100 #include "confdefs.h"
2102 #ifdef F77_DUMMY_MAIN
2106 int F77_DUMMY_MAIN() { return 1; }
2116 rm -f conftest.$ac_objext
2117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118 (eval $ac_compile) 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); } &&
2122 { ac_try='test -s conftest.$ac_objext'
2123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; }; then
2130 echo "$as_me: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2133 rm -f conftest.$ac_objext conftest.$ac_ext
2136 if test -n "$ac_declaration"; then
2137 echo '#ifdef __cplusplus' >>confdefs.h
2138 echo $ac_declaration >>confdefs.h
2139 echo '#endif' >>confdefs.h
2143 ac_cpp='$CPP $CPPFLAGS'
2144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2149 ac_cpp='$CPP $CPPFLAGS'
2150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153 if test -n "$ac_tool_prefix"; then
2156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 if test -n "$CC"; then
2164 ac_cv_prog_CC="$CC" # Let the user override the test.
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 if test -n "$CC"; then
2184 echo "$as_me:$LINENO: result: $CC" >&5
2185 echo "${ECHO_T}$CC" >&6
2187 echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6
2191 test -n "$CC" && break
2194 if test -z "$CC"; then
2198 # Extract the first word of "$ac_prog", so it can be a program name with args.
2199 set dummy $ac_prog; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test -n "$ac_ct_CC"; then
2206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_ac_ct_CC="$ac_prog"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227 echo "${ECHO_T}$ac_ct_CC" >&6
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2233 test -n "$ac_ct_CC" && break
2240 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2241 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2242 { (exit 1); exit 1; }; }
2244 # Provide some information about the compiler.
2245 echo "$as_me:$LINENO:" \
2246 "checking for C compiler version" >&5
2247 ac_compiler=`set X $ac_compile; echo $2`
2248 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2249 (eval $ac_compiler --version </dev/null >&5) 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }
2253 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2254 (eval $ac_compiler -v </dev/null >&5) 2>&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }
2258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2259 (eval $ac_compiler -V </dev/null >&5) 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }
2264 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2265 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2266 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #line $LINENO "configure"
2271 #include "confdefs.h"
2273 #ifdef F77_DUMMY_MAIN
2277 int F77_DUMMY_MAIN() { return 1; }
2290 rm -f conftest.$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2304 echo "$as_me: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2308 rm -f conftest.$ac_objext conftest.$ac_ext
2309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2312 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2313 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2314 GCC=`test $ac_compiler_gnu = yes && echo yes`
2315 ac_test_CFLAGS=${CFLAGS+set}
2316 ac_save_CFLAGS=$CFLAGS
2318 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2319 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2320 if test "${ac_cv_prog_cc_g+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 #include "confdefs.h"
2327 #ifdef F77_DUMMY_MAIN
2331 int F77_DUMMY_MAIN() { return 1; }
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 echo "$as_me: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2363 if test "$ac_test_CFLAGS" = set; then
2364 CFLAGS=$ac_save_CFLAGS
2365 elif test $ac_cv_prog_cc_g = yes; then
2366 if test "$GCC" = yes; then
2372 if test "$GCC" = yes; then
2378 # Some people use a C++ compiler to compile C. Since we use `exit',
2379 # in C++ we need to declare it. In case someone uses the same compiler
2380 # for both compiling C and C++ we need to have the C++ compiler decide
2381 # the declaration of exit, since it's the most demanding environment.
2382 cat >conftest.$ac_ext <<_ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 for ac_declaration in \
2401 '#include <stdlib.h>' \
2402 'extern "C" void std::exit (int) throw (); using std::exit;' \
2403 'extern "C" void std::exit (int); using std::exit;' \
2404 'extern "C" void exit (int) throw ();' \
2405 'extern "C" void exit (int);' \
2408 cat >conftest.$ac_ext <<_ACEOF
2409 #line $LINENO "configure"
2410 #include "confdefs.h"
2413 #ifdef F77_DUMMY_MAIN
2417 int F77_DUMMY_MAIN() { return 1; }
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2445 rm -f conftest.$ac_objext conftest.$ac_ext
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 #include "confdefs.h"
2450 #ifdef F77_DUMMY_MAIN
2454 int F77_DUMMY_MAIN() { return 1; }
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 rm -f conftest.$ac_objext conftest.$ac_ext
2484 if test -n "$ac_declaration"; then
2485 echo '#ifdef __cplusplus' >>confdefs.h
2486 echo $ac_declaration >>confdefs.h
2487 echo '#endif' >>confdefs.h
2491 echo "$as_me: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2507 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2508 # On Suns, sometimes $CPP names a directory.
2509 if test -n "$CPP" && test -d "$CPP"; then
2512 if test -z "$CPP"; then
2513 if test "${ac_cv_prog_CPP+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 # Double quotes because CPP needs to be expanded
2517 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2520 for ac_c_preproc_warn_flag in '' yes
2522 # Use a header file that comes with gcc, so configuring glibc
2523 # with a fresh cross-compiler works.
2524 # On the NeXT, cc -E runs the code through the compiler's parser,
2525 # not just through cpp. "Syntax error" is here to catch this case.
2526 cat >conftest.$ac_ext <<_ACEOF
2527 #line $LINENO "configure"
2528 #include "confdefs.h"
2532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2535 egrep -v '^ *\+' conftest.er1 >conftest.err
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } >/dev/null; then
2540 if test -s conftest.err; then
2541 ac_cpp_err=$ac_c_preproc_warn_flag
2548 if test -z "$ac_cpp_err"; then
2551 echo "$as_me: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2553 # Broken: fails on valid input.
2556 rm -f conftest.err conftest.$ac_ext
2558 # OK, works on sane cases. Now check whether non-existent headers
2559 # can be detected and how.
2560 cat >conftest.$ac_ext <<_ACEOF
2561 #line $LINENO "configure"
2562 #include "confdefs.h"
2563 #include <ac_nonexistent.h>
2565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2568 egrep -v '^ *\+' conftest.er1 >conftest.err
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } >/dev/null; then
2573 if test -s conftest.err; then
2574 ac_cpp_err=$ac_c_preproc_warn_flag
2581 if test -z "$ac_cpp_err"; then
2582 # Broken: success on invalid input.
2585 echo "$as_me: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2587 # Passes both tests.
2591 rm -f conftest.err conftest.$ac_ext
2594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2595 rm -f conftest.err conftest.$ac_ext
2596 if $ac_preproc_ok; then
2608 echo "$as_me:$LINENO: result: $CPP" >&5
2609 echo "${ECHO_T}$CPP" >&6
2611 for ac_c_preproc_warn_flag in '' yes
2613 # Use a header file that comes with gcc, so configuring glibc
2614 # with a fresh cross-compiler works.
2615 # On the NeXT, cc -E runs the code through the compiler's parser,
2616 # not just through cpp. "Syntax error" is here to catch this case.
2617 cat >conftest.$ac_ext <<_ACEOF
2618 #line $LINENO "configure"
2619 #include "confdefs.h"
2623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2626 egrep -v '^ *\+' conftest.er1 >conftest.err
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } >/dev/null; then
2631 if test -s conftest.err; then
2632 ac_cpp_err=$ac_c_preproc_warn_flag
2639 if test -z "$ac_cpp_err"; then
2642 echo "$as_me: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2644 # Broken: fails on valid input.
2647 rm -f conftest.err conftest.$ac_ext
2649 # OK, works on sane cases. Now check whether non-existent headers
2650 # can be detected and how.
2651 cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2653 #include "confdefs.h"
2654 #include <ac_nonexistent.h>
2656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2659 egrep -v '^ *\+' conftest.er1 >conftest.err
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } >/dev/null; then
2664 if test -s conftest.err; then
2665 ac_cpp_err=$ac_c_preproc_warn_flag
2672 if test -z "$ac_cpp_err"; then
2673 # Broken: success on invalid input.
2676 echo "$as_me: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2678 # Passes both tests.
2682 rm -f conftest.err conftest.$ac_ext
2685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2686 rm -f conftest.err conftest.$ac_ext
2687 if $ac_preproc_ok; then
2690 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2691 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2692 { (exit 1); exit 1; }; }
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702 if test "$GCC" != "yes"
2704 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2705 echo "$as_me: error: gcc required but not found" >&2;}
2706 { (exit 1); exit 1; }; }
2709 if test "$GXX" != "yes"
2711 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2712 echo "$as_me: error: g++ required but not found" >&2;}
2713 { (exit 1); exit 1; }; }
2716 echo "$as_me:$LINENO: checking for GNU make" >&5
2717 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2718 if test "${_cv_gnu_make_command+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 _cv_gnu_make_command='' ;
2722 for a in "$MAKE" make gmake gnumake ; do
2723 if test -z "$a" ; then continue ; fi ;
2724 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
2725 _cv_gnu_make_command=$a ;
2731 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2732 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2733 if test "x$_cv_gnu_make_command" != "x" ; then
2737 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2738 echo "${ECHO_T}\"Not found\"" >&6;
2742 if test -z "$_cv_gnu_make_command"
2744 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2745 echo "$as_me: error: GNU Make required but not found" >&2;}
2746 { (exit 1); exit 1; }; }
2750 echo "$as_me:$LINENO: checking " >&5
2751 echo $ECHO_N "checking ... $ECHO_C" >&6
2752 if test "${ac_cv_has_flex+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 for ac_prog in flex lex
2757 # Extract the first word of "$ac_prog", so it can be a program name with args.
2758 set dummy $ac_prog; ac_word=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_LEX+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 if test -n "$LEX"; then
2765 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_LEX="$ac_prog"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test -n "$LEX"; then
2785 echo "$as_me:$LINENO: result: $LEX" >&5
2786 echo "${ECHO_T}$LEX" >&6
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2792 test -n "$LEX" && break
2794 test -n "$LEX" || LEX=":"
2796 if test -z "$LEXLIB"
2798 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2799 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2800 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 ac_check_lib_save_LIBS=$LIBS
2805 cat >conftest.$ac_ext <<_ACEOF
2806 #line $LINENO "configure"
2807 #include "confdefs.h"
2809 /* Override any gcc2 internal prototype to avoid an error. */
2813 /* We use char because int might match the return type of a gcc2
2814 builtin and then its argument prototype would still apply. */
2816 #ifdef F77_DUMMY_MAIN
2820 int F77_DUMMY_MAIN() { return 1; }
2830 rm -f conftest.$ac_objext conftest$ac_exeext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2832 (eval $ac_link) 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -s conftest$ac_exeext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_lib_fl_yywrap=yes
2844 echo "$as_me: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 ac_cv_lib_fl_yywrap=no
2848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2849 LIBS=$ac_check_lib_save_LIBS
2851 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2852 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2853 if test $ac_cv_lib_fl_yywrap = yes; then
2856 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2857 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2858 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 ac_check_lib_save_LIBS=$LIBS
2863 cat >conftest.$ac_ext <<_ACEOF
2864 #line $LINENO "configure"
2865 #include "confdefs.h"
2867 /* Override any gcc2 internal prototype to avoid an error. */
2871 /* We use char because int might match the return type of a gcc2
2872 builtin and then its argument prototype would still apply. */
2874 #ifdef F77_DUMMY_MAIN
2878 int F77_DUMMY_MAIN() { return 1; }
2888 rm -f conftest.$ac_objext conftest$ac_exeext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2890 (eval $ac_link) 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -s conftest$ac_exeext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 ac_cv_lib_l_yywrap=yes
2902 echo "$as_me: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2904 ac_cv_lib_l_yywrap=no
2906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2907 LIBS=$ac_check_lib_save_LIBS
2909 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2910 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2911 if test $ac_cv_lib_l_yywrap = yes; then
2919 if test "x$LEX" != "x:"; then
2920 echo "$as_me:$LINENO: checking lex output file root" >&5
2921 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2922 if test "${ac_cv_prog_lex_root+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 # The minimal lex program is just a single line: %%. But some broken lexes
2926 # (Solaris, I think it was) want two %% lines, so accommodate them.
2927 cat >conftest.l <<_ACEOF
2931 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2932 (eval $LEX conftest.l) 2>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936 if test -f lex.yy.c; then
2937 ac_cv_prog_lex_root=lex.yy
2938 elif test -f lexyy.c; then
2939 ac_cv_prog_lex_root=lexyy
2941 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2942 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2943 { (exit 1); exit 1; }; }
2946 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2947 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2949 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2951 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2952 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2953 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 # POSIX says lex can declare yytext either as a pointer or an array; the
2957 # default is implementation-dependent. Figure out which it is, since
2958 # not all implementations provide the %pointer and %array declarations.
2959 ac_cv_prog_lex_yytext_pointer=no
2960 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2962 LIBS="$LIBS $LEXLIB"
2963 cat >conftest.$ac_ext <<_ACEOF
2964 `cat $LEX_OUTPUT_ROOT.c`
2966 rm -f conftest.$ac_objext conftest$ac_exeext
2967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2968 (eval $ac_link) 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try='test -s conftest$ac_exeext'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2978 ac_cv_prog_lex_yytext_pointer=yes
2980 echo "$as_me: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2985 rm -f "${LEX_OUTPUT_ROOT}.c"
2988 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2989 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2990 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2992 cat >>confdefs.h <<\_ACEOF
2993 #define YYTEXT_POINTER 1
3001 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3002 echo "${ECHO_T}$ac_cv_has_flex" >&6
3003 if test "$LEX" != "flex"; then
3004 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3005 echo "$as_me: error: flex not found but required" >&2;}
3006 { (exit 1); exit 1; }; }
3009 echo "$as_me:$LINENO: checking " >&5
3010 echo $ECHO_N "checking ... $ECHO_C" >&6
3011 if test "${ac_cv_has_bison+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 for ac_prog in 'bison -y' byacc
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020 if test "${ac_cv_prog_YACC+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 if test -n "$YACC"; then
3024 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_YACC="$ac_prog"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 YACC=$ac_cv_prog_YACC
3043 if test -n "$YACC"; then
3044 echo "$as_me:$LINENO: result: $YACC" >&5
3045 echo "${ECHO_T}$YACC" >&6
3047 echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6
3051 test -n "$YACC" && break
3053 test -n "$YACC" || YACC="yacc"
3057 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3058 echo "${ECHO_T}$ac_cv_has_bison" >&6
3059 if test "$YACC" != "bison -y"; then
3060 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3061 echo "$as_me: error: bison not found but required" >&2;}
3062 { (exit 1); exit 1; }; }
3069 # Check whether --enable-shared or --disable-shared was given.
3070 if test "${enable_shared+set}" = set; then
3071 enableval="$enable_shared"
3072 p=${PACKAGE-default}
3074 yes) enable_shared=yes ;;
3075 no) enable_shared=no ;;
3078 # Look at the argument we got. We use all the common list separators.
3079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3080 for pkg in $enableval; do
3082 if test "X$pkg" = "X$p"; then
3093 # Check whether --enable-static or --disable-static was given.
3094 if test "${enable_static+set}" = set; then
3095 enableval="$enable_static"
3096 p=${PACKAGE-default}
3098 yes) enable_static=yes ;;
3099 no) enable_static=no ;;
3102 # Look at the argument we got. We use all the common list separators.
3103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3104 for pkg in $enableval; do
3106 if test "X$pkg" = "X$p"; then
3117 # Check whether --enable-fast-install or --disable-fast-install was given.
3118 if test "${enable_fast_install+set}" = set; then
3119 enableval="$enable_fast_install"
3120 p=${PACKAGE-default}
3122 yes) enable_fast_install=yes ;;
3123 no) enable_fast_install=no ;;
3125 enable_fast_install=no
3126 # Look at the argument we got. We use all the common list separators.
3127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3128 for pkg in $enableval; do
3130 if test "X$pkg" = "X$p"; then
3131 enable_fast_install=yes
3138 enable_fast_install=yes
3141 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3142 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3143 if test "${lt_cv_path_SED+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 # Loop through the user's path and test for sed and gsed.
3147 # Then use that list of sed's as ones to test for truncation.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for lt_ac_prog in sed gsed; do
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3156 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3163 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3164 # along with /bin/sed that truncates output.
3165 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3166 test ! -f $lt_ac_sed && break
3167 cat /dev/null > conftest.in
3169 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3170 # Check for GNU sed and select it if it is found.
3171 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3172 lt_cv_path_SED=$lt_ac_sed
3176 cat conftest.in conftest.in >conftest.tmp
3177 mv conftest.tmp conftest.in
3178 cp conftest.in conftest.nl
3180 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3181 cmp -s conftest.out conftest.nl || break
3182 # 10000 chars as input seems more than enough
3183 test $lt_ac_count -gt 10 && break
3184 lt_ac_count=`expr $lt_ac_count + 1`
3185 if test $lt_ac_count -gt $lt_ac_max; then
3186 lt_ac_max=$lt_ac_count
3187 lt_cv_path_SED=$lt_ac_sed
3195 echo "$as_me:$LINENO: result: $SED" >&5
3196 echo "${ECHO_T}$SED" >&6
3198 echo "$as_me:$LINENO: checking for egrep" >&5
3199 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3200 if test "${ac_cv_prog_egrep+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3204 then ac_cv_prog_egrep='grep -E'
3205 else ac_cv_prog_egrep='egrep'
3208 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3209 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3210 EGREP=$ac_cv_prog_egrep
3214 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3215 if test "${with_gnu_ld+set}" = set; then
3216 withval="$with_gnu_ld"
3217 test "$withval" = no || with_gnu_ld=yes
3222 if test "$GCC" = yes; then
3223 # Check if gcc -print-prog-name=ld gives a path.
3224 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3225 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3228 # gcc leaves a trailing carriage return which upsets mingw
3229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3234 # Accept absolute paths.
3236 re_direlt='/[^/][^/]*/\.\./'
3237 # Canonicalize the path of ld
3238 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3239 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3240 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3242 test -z "$LD" && LD="$ac_prog"
3245 # If it fails, then pretend we aren't using GCC.
3249 # If it is relative, then search for the first ld in PATH.
3253 elif test "$with_gnu_ld" = yes; then
3254 echo "$as_me:$LINENO: checking for GNU ld" >&5
3255 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3257 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3258 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3260 if test "${lt_cv_path_LD+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 if test -z "$LD"; then
3264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3265 for ac_dir in $PATH; do
3267 test -z "$ac_dir" && ac_dir=.
3268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3269 lt_cv_path_LD="$ac_dir/$ac_prog"
3270 # Check to see if the program is GNU ld. I'd rather use --version,
3271 # but apparently some GNU ld's only accept -v.
3272 # Break only if it was the GNU/non-GNU ld that we prefer.
3273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3274 *GNU* | *'with BFD'*)
3275 test "$with_gnu_ld" != no && break
3278 test "$with_gnu_ld" != yes && break
3285 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3290 if test -n "$LD"; then
3291 echo "$as_me:$LINENO: result: $LD" >&5
3292 echo "${ECHO_T}$LD" >&6
3294 echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3297 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3298 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3299 { (exit 1); exit 1; }; }
3300 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3301 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3302 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3306 case `"$LD" -v 2>&1 </dev/null` in
3307 *GNU* | *'with BFD'*)
3308 lt_cv_prog_gnu_ld=yes
3311 lt_cv_prog_gnu_ld=no
3315 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3316 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3317 with_gnu_ld=$lt_cv_prog_gnu_ld
3320 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3321 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3322 if test "${lt_cv_ld_reload_flag+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 lt_cv_ld_reload_flag='-r'
3327 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3328 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3329 reload_flag=$lt_cv_ld_reload_flag
3330 case $reload_flag in
3332 *) reload_flag=" $reload_flag" ;;
3334 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3336 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3337 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3338 if test "${lt_cv_path_NM+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 if test -n "$NM"; then
3342 # Let the user override the test.
3345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3346 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3348 test -z "$ac_dir" && ac_dir=.
3349 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3350 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3351 # Check to see if the nm accepts a BSD-compat flag.
3352 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3353 # nm: unknown option "B" ignored
3354 # Tru64's nm complains that /dev/null is an invalid object file
3355 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3356 */dev/null* | *'Invalid file or object type'*)
3357 lt_cv_path_NM="$tmp_nm -B"
3361 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3363 lt_cv_path_NM="$tmp_nm -p"
3367 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3368 continue # so that we can try to find one that supports BSD flags
3375 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3378 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3379 echo "${ECHO_T}$lt_cv_path_NM" >&6
3382 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3383 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3385 if test "$LN_S" = "ln -s"; then
3386 echo "$as_me:$LINENO: result: yes" >&5
3387 echo "${ECHO_T}yes" >&6
3389 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3390 echo "${ECHO_T}no, using $LN_S" >&6
3393 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3394 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3395 if test "${lt_cv_deplibs_check_method+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 lt_cv_file_magic_cmd='$MAGIC_CMD'
3399 lt_cv_file_magic_test_file=
3400 lt_cv_deplibs_check_method='unknown'
3401 # Need to set the preceding variable on all platforms that support
3402 # interlibrary dependencies.
3403 # 'none' -- dependencies not supported.
3404 # `unknown' -- same as none, but documents that we really don't know.
3405 # 'pass_all' -- all dependencies passed with no checks.
3406 # 'test_compile' -- check by making test program.
3407 # 'file_magic [[regex]]' -- check by looking for files in library path
3408 # which responds to the $file_magic_cmd with a given extended regex.
3409 # If you have `file' or equivalent on your system and you're not sure
3410 # whether `pass_all' will *always* work, you probably want this one.
3414 lt_cv_deplibs_check_method=pass_all
3418 lt_cv_deplibs_check_method=pass_all
3422 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3423 lt_cv_file_magic_cmd='/usr/bin/file -L'
3424 lt_cv_file_magic_test_file=/shlib/libc.so
3427 cygwin* | mingw* | pw32*)
3428 # win32_libid is a shell function defined in ltmain.sh
3429 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3430 lt_cv_file_magic_cmd='win32_libid'
3433 darwin* | rhapsody*)
3434 # this will be overwritten by pass_all, but leave it in just in case
3435 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3436 lt_cv_file_magic_cmd='/usr/bin/file -L'
3438 rhapsody* | darwin1.[012])
3439 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3442 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3445 lt_cv_deplibs_check_method=pass_all
3449 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3452 # Not sure whether the presence of OpenBSD here was a mistake.
3453 # Let's accept both of them until this is cleared up.
3454 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3455 lt_cv_file_magic_cmd=/usr/bin/file
3456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3460 lt_cv_deplibs_check_method=pass_all
3465 lt_cv_deplibs_check_method=pass_all
3468 hpux10.20* | hpux11*)
3469 lt_cv_file_magic_cmd=/usr/bin/file
3472 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3473 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3476 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]'
3477 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3481 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3486 irix5* | irix6* | nonstopux*)
3488 irix5* | nonstopux*)
3489 # this will be overridden with pass_all, but let us keep it just in case
3490 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3494 *-32|*"-32 ") libmagic=32-bit;;
3495 *-n32|*"-n32 ") libmagic=N32;;
3496 *-64|*"-64 ") libmagic=64-bit;;
3497 *) libmagic=never-match;;
3499 # this will be overridden with pass_all, but let us keep it just in case
3500 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3503 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3504 lt_cv_deplibs_check_method=pass_all
3507 # This must be Linux ELF.
3510 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3511 lt_cv_deplibs_check_method=pass_all ;;
3513 # glibc up to 2.1.1 does not perform some relocations on ARM
3514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3516 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3523 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3529 lt_cv_file_magic_cmd=/usr/bin/file
3530 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3534 lt_cv_deplibs_check_method=unknown
3538 lt_cv_file_magic_cmd=/usr/bin/file
3539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3543 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3547 osf3* | osf4* | osf5*)
3548 # this will be overridden with pass_all, but let us keep it just in case
3549 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3550 lt_cv_file_magic_test_file=/shlib/libc.so
3551 lt_cv_deplibs_check_method=pass_all
3555 lt_cv_deplibs_check_method=pass_all
3559 lt_cv_deplibs_check_method=pass_all
3560 lt_cv_file_magic_test_file=/lib/libc.so
3563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3564 case $host_vendor in
3566 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]'
3567 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3570 lt_cv_deplibs_check_method=pass_all
3573 lt_cv_file_magic_cmd='/bin/file'
3574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3577 lt_cv_file_magic_cmd='/bin/file'
3578 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3579 lt_cv_file_magic_test_file=/lib/libc.so
3582 lt_cv_deplibs_check_method=pass_all
3587 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3588 lt_cv_deplibs_check_method=pass_all
3593 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3594 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3595 file_magic_cmd=$lt_cv_file_magic_cmd
3596 deplibs_check_method=$lt_cv_deplibs_check_method
3597 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3602 # If no C compiler was specified, use CC.
3605 # Allow CC to be a program name with arguments.
3608 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3609 if test "${enable_libtool_lock+set}" = set; then
3610 enableval="$enable_libtool_lock"
3613 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3615 # Some flags need to be propagated to the compiler or linker for good
3619 # Find out which ABI we are using.
3620 echo 'int i;' > conftest.$ac_ext
3621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; then
3626 case `/usr/bin/file conftest.$ac_objext` in
3638 # Find out which ABI we are using.
3639 echo '#line 3639 "configure"' > conftest.$ac_ext
3640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641 (eval $ac_compile) 2>&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; then
3645 if test "$lt_cv_prog_gnu_ld" = yes; then
3646 case `/usr/bin/file conftest.$ac_objext` in
3648 LD="${LD-ld} -melf32bsmip"
3651 LD="${LD-ld} -melf32bmipn32"
3654 LD="${LD-ld} -melf64bmip"
3658 case `/usr/bin/file conftest.$ac_objext` in
3674 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3675 # Find out which ABI we are using.
3676 echo 'int i;' > conftest.$ac_ext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; then
3682 case "`/usr/bin/file conftest.o`" in
3686 LD="${LD-ld} -m elf_i386"
3689 LD="${LD-ld} -m elf32ppclinux"
3692 LD="${LD-ld} -m elf_s390"
3695 LD="${LD-ld} -m elf32_sparc"
3702 LD="${LD-ld} -m elf_x86_64"
3704 ppc*-*linux*|powerpc*-*linux*)
3705 LD="${LD-ld} -m elf64ppc"
3708 LD="${LD-ld} -m elf64_s390"
3711 LD="${LD-ld} -m elf64_sparc"
3721 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3722 SAVE_CFLAGS="$CFLAGS"
3723 CFLAGS="$CFLAGS -belf"
3724 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3725 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3726 if test "${lt_cv_cc_needs_belf+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 cat >conftest.$ac_ext <<_ACEOF
3736 #line $LINENO "configure"
3737 #include "confdefs.h"
3739 #ifdef F77_DUMMY_MAIN
3743 int F77_DUMMY_MAIN() { return 1; }
3753 rm -f conftest.$ac_objext conftest$ac_exeext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3755 (eval $ac_link) 2>&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } &&
3759 { ac_try='test -s conftest$ac_exeext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 lt_cv_cc_needs_belf=yes
3767 echo "$as_me: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3769 lt_cv_cc_needs_belf=no
3771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3780 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3781 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3782 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3783 CFLAGS="$SAVE_CFLAGS"
3789 need_locks="$enable_libtool_lock"
3793 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3794 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3795 if test "${ac_cv_header_stdc+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 cat >conftest.$ac_ext <<_ACEOF
3799 #line $LINENO "configure"
3800 #include "confdefs.h"
3807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3810 egrep -v '^ *\+' conftest.er1 >conftest.err
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } >/dev/null; then
3815 if test -s conftest.err; then
3816 ac_cpp_err=$ac_c_preproc_warn_flag
3823 if test -z "$ac_cpp_err"; then
3824 ac_cv_header_stdc=yes
3826 echo "$as_me: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 ac_cv_header_stdc=no
3830 rm -f conftest.err conftest.$ac_ext
3832 if test $ac_cv_header_stdc = yes; then
3833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3834 cat >conftest.$ac_ext <<_ACEOF
3835 #line $LINENO "configure"
3836 #include "confdefs.h"
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 egrep "memchr" >/dev/null 2>&1; then
3844 ac_cv_header_stdc=no
3850 if test $ac_cv_header_stdc = yes; then
3851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3852 cat >conftest.$ac_ext <<_ACEOF
3853 #line $LINENO "configure"
3854 #include "confdefs.h"
3858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859 egrep "free" >/dev/null 2>&1; then
3862 ac_cv_header_stdc=no
3868 if test $ac_cv_header_stdc = yes; then
3869 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3870 if test "$cross_compiling" = yes; then
3873 cat >conftest.$ac_ext <<_ACEOF
3874 #line $LINENO "configure"
3875 #include "confdefs.h"
3877 #if ((' ' & 0x0FF) == 0x020)
3878 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3879 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3881 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3882 || ('j' <= (c) && (c) <= 'r') \
3883 || ('s' <= (c) && (c) <= 'z'))
3884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3892 for (i = 0; i < 256; i++)
3893 if (XOR (islower (i), ISLOWER (i))
3894 || toupper (i) != TOUPPER (i))
3899 rm -f conftest$ac_exeext
3900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3901 (eval $ac_link) 2>&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3912 echo "$as_me: program exited with status $ac_status" >&5
3913 echo "$as_me: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3916 ac_cv_header_stdc=no
3918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3922 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3923 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3924 if test $ac_cv_header_stdc = yes; then
3926 cat >>confdefs.h <<\_ACEOF
3927 #define STDC_HEADERS 1
3932 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3942 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3943 inttypes.h stdint.h unistd.h
3945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3946 echo "$as_me:$LINENO: checking for $ac_header" >&5
3947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 cat >conftest.$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3953 #include "confdefs.h"
3954 $ac_includes_default
3956 #include <$ac_header>
3958 rm -f conftest.$ac_objext
3959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960 (eval $ac_compile) 2>&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 eval "$as_ac_Header=yes"
3972 echo "$as_me: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3974 eval "$as_ac_Header=no"
3976 rm -f conftest.$ac_objext conftest.$ac_ext
3978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3981 cat >>confdefs.h <<_ACEOF
3982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3991 for ac_header in dlfcn.h
3993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3995 echo "$as_me:$LINENO: checking for $ac_header" >&5
3996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4003 # Is the header compilable?
4004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4007 #line $LINENO "configure"
4008 #include "confdefs.h"
4009 $ac_includes_default
4010 #include <$ac_header>
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 ac_header_compiler=yes
4026 echo "$as_me: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4028 ac_header_compiler=no
4030 rm -f conftest.$ac_objext conftest.$ac_ext
4031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4032 echo "${ECHO_T}$ac_header_compiler" >&6
4034 # Is the header present?
4035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4037 cat >conftest.$ac_ext <<_ACEOF
4038 #line $LINENO "configure"
4039 #include "confdefs.h"
4040 #include <$ac_header>
4042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045 egrep -v '^ *\+' conftest.er1 >conftest.err
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } >/dev/null; then
4050 if test -s conftest.err; then
4051 ac_cpp_err=$ac_c_preproc_warn_flag
4058 if test -z "$ac_cpp_err"; then
4059 ac_header_preproc=yes
4061 echo "$as_me: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4063 ac_header_preproc=no
4065 rm -f conftest.err conftest.$ac_ext
4066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4067 echo "${ECHO_T}$ac_header_preproc" >&6
4069 # So? What about this header?
4070 case $ac_header_compiler:$ac_header_preproc in
4072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4084 echo "$as_me:$LINENO: checking for $ac_header" >&5
4085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 eval "$as_ac_Header=$ac_header_preproc"
4091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4096 cat >>confdefs.h <<_ACEOF
4097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4105 ac_cpp='$CXXCPP $CPPFLAGS'
4106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4109 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4110 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4111 if test -z "$CXXCPP"; then
4112 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 # Double quotes because CXXCPP needs to be expanded
4116 for CXXCPP in "$CXX -E" "/lib/cpp"
4119 for ac_cxx_preproc_warn_flag in '' yes
4121 # Use a header file that comes with gcc, so configuring glibc
4122 # with a fresh cross-compiler works.
4123 # On the NeXT, cc -E runs the code through the compiler's parser,
4124 # not just through cpp. "Syntax error" is here to catch this case.
4125 cat >conftest.$ac_ext <<_ACEOF
4126 #line $LINENO "configure"
4127 #include "confdefs.h"
4131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4134 egrep -v '^ *\+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } >/dev/null; then
4139 if test -s conftest.err; then
4140 ac_cpp_err=$ac_cxx_preproc_warn_flag
4147 if test -z "$ac_cpp_err"; then
4150 echo "$as_me: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4152 # Broken: fails on valid input.
4155 rm -f conftest.err conftest.$ac_ext
4157 # OK, works on sane cases. Now check whether non-existent headers
4158 # can be detected and how.
4159 cat >conftest.$ac_ext <<_ACEOF
4160 #line $LINENO "configure"
4161 #include "confdefs.h"
4162 #include <ac_nonexistent.h>
4164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4167 egrep -v '^ *\+' conftest.er1 >conftest.err
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } >/dev/null; then
4172 if test -s conftest.err; then
4173 ac_cpp_err=$ac_cxx_preproc_warn_flag
4180 if test -z "$ac_cpp_err"; then
4181 # Broken: success on invalid input.
4184 echo "$as_me: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4186 # Passes both tests.
4190 rm -f conftest.err conftest.$ac_ext
4193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194 rm -f conftest.err conftest.$ac_ext
4195 if $ac_preproc_ok; then
4200 ac_cv_prog_CXXCPP=$CXXCPP
4203 CXXCPP=$ac_cv_prog_CXXCPP
4205 ac_cv_prog_CXXCPP=$CXXCPP
4207 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4208 echo "${ECHO_T}$CXXCPP" >&6
4210 for ac_cxx_preproc_warn_flag in '' yes
4212 # Use a header file that comes with gcc, so configuring glibc
4213 # with a fresh cross-compiler works.
4214 # On the NeXT, cc -E runs the code through the compiler's parser,
4215 # not just through cpp. "Syntax error" is here to catch this case.
4216 cat >conftest.$ac_ext <<_ACEOF
4217 #line $LINENO "configure"
4218 #include "confdefs.h"
4222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4225 egrep -v '^ *\+' conftest.er1 >conftest.err
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev/null; then
4230 if test -s conftest.err; then
4231 ac_cpp_err=$ac_cxx_preproc_warn_flag
4238 if test -z "$ac_cpp_err"; then
4241 echo "$as_me: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4243 # Broken: fails on valid input.
4246 rm -f conftest.err conftest.$ac_ext
4248 # OK, works on sane cases. Now check whether non-existent headers
4249 # can be detected and how.
4250 cat >conftest.$ac_ext <<_ACEOF
4251 #line $LINENO "configure"
4252 #include "confdefs.h"
4253 #include <ac_nonexistent.h>
4255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4258 egrep -v '^ *\+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } >/dev/null; then
4263 if test -s conftest.err; then
4264 ac_cpp_err=$ac_cxx_preproc_warn_flag
4271 if test -z "$ac_cpp_err"; then
4272 # Broken: success on invalid input.
4275 echo "$as_me: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 # Passes both tests.
4281 rm -f conftest.err conftest.$ac_ext
4284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4285 rm -f conftest.err conftest.$ac_ext
4286 if $ac_preproc_ok; then
4289 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4290 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4291 { (exit 1); exit 1; }; }
4295 ac_cpp='$CXXCPP $CPPFLAGS'
4296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4302 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4303 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4305 if test -n "$ac_tool_prefix"; then
4306 for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
4308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4310 echo "$as_me:$LINENO: checking for $ac_word" >&5
4311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4312 if test "${ac_cv_prog_F77+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 if test -n "$F77"; then
4316 ac_cv_prog_F77="$F77" # Let the user override the test.
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 if test -n "$F77"; then
4336 echo "$as_me:$LINENO: result: $F77" >&5
4337 echo "${ECHO_T}$F77" >&6
4339 echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6
4343 test -n "$F77" && break
4346 if test -z "$F77"; then
4348 for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4354 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 if test -n "$ac_ct_F77"; then
4358 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367 ac_cv_prog_ac_ct_F77="$ac_prog"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4377 if test -n "$ac_ct_F77"; then
4378 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4379 echo "${ECHO_T}$ac_ct_F77" >&6
4381 echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6
4385 test -n "$ac_ct_F77" && break
4392 # Provide some information about the compiler.
4393 echo "$as_me:4393:" \
4394 "checking for Fortran 77 compiler version" >&5
4395 ac_compiler=`set X $ac_compile; echo $2`
4396 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4397 (eval $ac_compiler --version </dev/null >&5) 2>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }
4401 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4402 (eval $ac_compiler -v </dev/null >&5) 2>&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }
4406 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4407 (eval $ac_compiler -V </dev/null >&5) 2>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }
4412 # If we don't use `.F' as extension, the preprocessor is not run on the
4416 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4417 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4418 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 cat >conftest.$ac_ext <<_ACEOF
4429 rm -f conftest.$ac_objext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4443 echo "$as_me: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4447 rm -f conftest.$ac_objext conftest.$ac_ext
4448 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4451 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4452 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4454 G77=`test $ac_compiler_gnu = yes && echo yes`
4455 ac_test_FFLAGS=${FFLAGS+set}
4456 ac_save_FFLAGS=$FFLAGS
4458 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4459 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4460 if test "${ac_cv_prog_f77_g+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 cat >conftest.$ac_ext <<_ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_prog_f77_g=yes
4483 echo "$as_me: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4487 rm -f conftest.$ac_objext conftest.$ac_ext
4490 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4491 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4492 if test "$ac_test_FFLAGS" = set; then
4493 FFLAGS=$ac_save_FFLAGS
4494 elif test $ac_cv_prog_f77_g = yes; then
4495 if test "$G77" = yes; then
4501 if test "$G77" = yes; then
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4517 # find the maximum length of command line arguments
4518 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4519 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4520 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 # On DJGPP, this test can blow up pretty badly due to problems in libc
4529 # (any single argument exceeding 2000 bytes causes a buffer overrun
4530 # during glob expansion). Even if it were fixed, the result of this
4531 # check would be larger than it should be.
4532 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4536 # Under GNU Hurd, this test is not required because there is
4537 # no limit to the length of command line arguments.
4538 # Libtool will interpret -1 as no limit whatsoever
4539 lt_cv_sys_max_cmd_len=-1;
4543 # On Win9x/ME, this test blows up -- it succeeds, but takes
4544 # about 5 minutes as the teststring grows exponentially.
4545 # Worse, since 9x/ME are not pre-emptively multitasking,
4546 # you end up with a "frozen" computer, even though with patience
4547 # the test eventually succeeds (with a max line length of 256k).
4548 # Instead, let's just punt: use the minimum linelength reported by
4549 # all of the supported platforms: 8192 (on NT/2K/XP).
4550 lt_cv_sys_max_cmd_len=8192;
4554 # If test is not a shell built-in, we'll probably end up computing a
4555 # maximum length that is only half of the actual maximum length, but
4557 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4558 = "XX$testring") >/dev/null 2>&1 &&
4559 new_result=`expr "X$testring" : ".*" 2>&1` &&
4560 lt_cv_sys_max_cmd_len=$new_result &&
4561 test $i != 17 # 1/2 MB should be enough
4564 testring=$testring$testring
4567 # Add a significant safety factor because C++ compilers can tack on massive
4568 # amounts of additional arguments before passing them to the linker.
4569 # It appears as though 1/2 is a usable value.
4570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4576 if test -n $lt_cv_sys_max_cmd_len ; then
4577 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4578 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4580 echo "$as_me:$LINENO: result: none" >&5
4581 echo "${ECHO_T}none" >&6
4587 # Check for command to grab the raw symbol name followed by C symbol from nm.
4588 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4589 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4590 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 # These are sane defaults that work on at least a few old systems.
4595 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4597 # Character class describing NM global symbol codes.
4598 symcode='[BCDEGRST]'
4600 # Regexp to match symbols that can be accessed directly from C.
4601 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4603 # Transform the above into a raw symbol and a C symbol.
4604 symxfrm='\1 \2\3 \3'
4606 # Transform an extracted symbol line into a proper C declaration
4607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4609 # Transform an extracted symbol line into symbol name and symbol address
4610 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'"
4612 # Define system-specific variables.
4617 cygwin* | mingw* | pw32*)
4618 symcode='[ABCDGISTW]'
4620 hpux*) # Its linker distinguishes data from code symbols
4621 if test "$host_cpu" = ia64; then
4622 symcode='[ABCDEGRST]'
4624 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4625 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'"
4628 symcode='[BCDEGRST]'
4631 symcode='[BCDEGQRST]'
4641 # Handle CRLF in mingw tool chain
4645 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4649 # If we're using GNU nm, then use its standard symbol codes.
4650 case `$NM -V 2>&1` in
4651 *GNU* | *'with BFD'*)
4652 symcode='[ABCDGISTW]' ;;
4655 # Try without a prefix undercore, then with it.
4656 for ac_symprfx in "" "_"; do
4658 # Write the raw and C identifiers.
4659 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4661 # Check to see that the pipe works correctly.
4665 cat > conftest.$ac_ext <<EOF
4670 void nm_test_func(){}
4674 int main(){nm_test_var='a';nm_test_func();return(0);}
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; then
4682 # Now try to grab the symbols.
4684 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4685 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && test -s "$nlist"; then
4689 # Try sorting and uniquifying the output.
4690 if sort "$nlist" | uniq > "$nlist"T; then
4691 mv -f "$nlist"T "$nlist"
4696 # Make sure that we snagged all the symbols we need.
4697 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4698 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4699 cat <<EOF > conftest.$ac_ext
4705 # Now generate the symbol file.
4706 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4708 cat <<EOF >> conftest.$ac_ext
4709 #if defined (__STDC__) && __STDC__
4710 # define lt_ptr_t void *
4712 # define lt_ptr_t char *
4716 /* The mapping between symbol names and symbols. */
4721 lt_preloaded_symbols[] =
4724 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4725 cat <<\EOF >> conftest.$ac_ext
4733 # Now try linking the two files.
4734 mv conftest.$ac_objext conftstm.$ac_objext
4735 lt_save_LIBS="$LIBS"
4736 lt_save_CFLAGS="$CFLAGS"
4737 LIBS="conftstm.$ac_objext"
4738 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740 (eval $ac_link) 2>&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4746 LIBS="$lt_save_LIBS"
4747 CFLAGS="$lt_save_CFLAGS"
4749 echo "cannot find nm_test_func in $nlist" >&5
4752 echo "cannot find nm_test_var in $nlist" >&5
4755 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4758 echo "$progname: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4761 rm -f conftest* conftst*
4763 # Do not use the global_symbol_pipe unless it works.
4764 if test "$pipe_works" = yes; then
4767 lt_cv_sys_global_symbol_pipe=
4773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4774 lt_cv_sys_global_symbol_to_cdecl=
4776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4777 echo "$as_me:$LINENO: result: failed" >&5
4778 echo "${ECHO_T}failed" >&6
4780 echo "$as_me:$LINENO: result: ok" >&5
4781 echo "${ECHO_T}ok" >&6
4784 echo "$as_me:$LINENO: checking for objdir" >&5
4785 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4786 if test "${lt_cv_objdir+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 rm -f .libs 2>/dev/null
4790 mkdir .libs 2>/dev/null
4791 if test -d .libs; then
4794 # MS-DOS does not allow filenames that begin with a dot.
4797 rmdir .libs 2>/dev/null
4799 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4800 echo "${ECHO_T}$lt_cv_objdir" >&6
4801 objdir=$lt_cv_objdir
4809 # AIX sometimes has problems with the GCC collect2 program. For some
4810 # reason, if we set the COLLECT_NAMES environment variable, the problems
4811 # vanish in a puff of smoke.
4812 if test "X${COLLECT_NAMES+set}" != Xset; then
4814 export COLLECT_NAMES
4819 # Sed substitution that helps us do robust quoting. It backslashifies
4820 # metacharacters that are still active within double-quoted strings.
4821 Xsed='sed -e s/^X//'
4822 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4824 # Same as above, but do not quote variable references.
4825 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4827 # Sed substitution to delay expansion of an escaped shell variable in a
4828 # double_quote_subst'ed string.
4829 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4831 # Sed substitution to avoid accidental globbing in evaled expressions
4832 no_glob_subst='s/\*/\\\*/g'
4838 default_ofile=libtool
4839 can_build_shared=yes
4841 # All known linkers require a `.a' archive for static linking (except M$VC,
4842 # which needs '.lib').
4844 ltmain="$ac_aux_dir/ltmain.sh"
4845 ofile="$default_ofile"
4846 with_gnu_ld="$lt_cv_prog_gnu_ld"
4848 if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4850 set dummy ${ac_tool_prefix}ar; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_AR+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 if test -n "$AR"; then
4857 ac_cv_prog_AR="$AR" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_AR="${ac_tool_prefix}ar"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 if test -n "$AR"; then
4877 echo "$as_me:$LINENO: result: $AR" >&5
4878 echo "${ECHO_T}$AR" >&6
4880 echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6
4885 if test -z "$ac_cv_prog_AR"; then
4887 # Extract the first word of "ar", so it can be a program name with args.
4888 set dummy ar; ac_word=$2
4889 echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4891 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 if test -n "$ac_ct_AR"; then
4895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904 ac_cv_prog_ac_ct_AR="ar"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4915 if test -n "$ac_ct_AR"; then
4916 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4917 echo "${ECHO_T}$ac_ct_AR" >&6
4919 echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6
4928 if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4931 echo "$as_me:$LINENO: checking for $ac_word" >&5
4932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4933 if test "${ac_cv_prog_RANLIB+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 if test -n "$RANLIB"; then
4937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 RANLIB=$ac_cv_prog_RANLIB
4956 if test -n "$RANLIB"; then
4957 echo "$as_me:$LINENO: result: $RANLIB" >&5
4958 echo "${ECHO_T}$RANLIB" >&6
4960 echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6
4965 if test -z "$ac_cv_prog_RANLIB"; then
4966 ac_ct_RANLIB=$RANLIB
4967 # Extract the first word of "ranlib", so it can be a program name with args.
4968 set dummy ranlib; ac_word=$2
4969 echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 if test -n "$ac_ct_RANLIB"; then
4975 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_ac_ct_RANLIB="ranlib"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4994 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4995 if test -n "$ac_ct_RANLIB"; then
4996 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4997 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4999 echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6
5003 RANLIB=$ac_ct_RANLIB
5005 RANLIB="$ac_cv_prog_RANLIB"
5008 if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5010 set dummy ${ac_tool_prefix}strip; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_prog_STRIP+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 if test -n "$STRIP"; then
5017 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 STRIP=$ac_cv_prog_STRIP
5036 if test -n "$STRIP"; then
5037 echo "$as_me:$LINENO: result: $STRIP" >&5
5038 echo "${ECHO_T}$STRIP" >&6
5040 echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6
5045 if test -z "$ac_cv_prog_STRIP"; then
5047 # Extract the first word of "strip", so it can be a program name with args.
5048 set dummy strip; ac_word=$2
5049 echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 if test -n "$ac_ct_STRIP"; then
5055 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_ac_ct_STRIP="strip"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5075 if test -n "$ac_ct_STRIP"; then
5076 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5077 echo "${ECHO_T}$ac_ct_STRIP" >&6
5079 echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6
5085 STRIP="$ac_cv_prog_STRIP"
5090 old_CFLAGS="$CFLAGS"
5092 # Set sane defaults for various variables
5093 test -z "$AR" && AR=ar
5094 test -z "$AR_FLAGS" && AR_FLAGS=cru
5095 test -z "$AS" && AS=as
5096 test -z "$CC" && CC=cc
5097 test -z "$LTCC" && LTCC=$CC
5098 test -z "$DLLTOOL" && DLLTOOL=dlltool
5099 test -z "$LD" && LD=ld
5100 test -z "$LN_S" && LN_S="ln -s"
5101 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5102 test -z "$NM" && NM=nm
5103 test -z "$SED" && SED=sed
5104 test -z "$OBJDUMP" && OBJDUMP=objdump
5105 test -z "$RANLIB" && RANLIB=:
5106 test -z "$STRIP" && STRIP=:
5107 test -z "$ac_objext" && ac_objext=o
5109 # Determine commands to create old-style static archives.
5110 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5111 old_postinstall_cmds='chmod 644 $oldlib'
5112 old_postuninstall_cmds=
5114 if test -n "$RANLIB"; then
5117 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5120 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5123 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5126 # Only perform the check for file, if the check method requires it
5127 case $deplibs_check_method in
5129 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5130 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5131 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5132 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5140 lt_save_MAGIC_CMD="$MAGIC_CMD"
5141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5142 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5143 for ac_dir in $ac_dummy; do
5145 test -z "$ac_dir" && ac_dir=.
5146 if test -f $ac_dir/${ac_tool_prefix}file; then
5147 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5148 if test -n "$file_magic_test_file"; then
5149 case $deplibs_check_method in
5151 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5154 $EGREP "$file_magic_regex" > /dev/null; then
5159 *** Warning: the command libtool uses to detect shared libraries,
5160 *** $file_magic_cmd, produces output that libtool cannot recognize.
5161 *** The result is that libtool may fail to recognize shared libraries
5162 *** as such. This will affect the creation of libtool libraries that
5163 *** depend on shared libraries, but programs linked with such libtool
5164 *** libraries will work regardless of this problem. Nevertheless, you
5165 *** may want to report the problem to your system manager and/or to
5166 *** bug-libtool@gnu.org
5176 MAGIC_CMD="$lt_save_MAGIC_CMD"
5181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5182 if test -n "$MAGIC_CMD"; then
5183 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5184 echo "${ECHO_T}$MAGIC_CMD" >&6
5186 echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6
5190 if test -z "$lt_cv_path_MAGIC_CMD"; then
5191 if test -n "$ac_tool_prefix"; then
5192 echo "$as_me:$LINENO: checking for file" >&5
5193 echo $ECHO_N "checking for file... $ECHO_C" >&6
5194 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5202 lt_save_MAGIC_CMD="$MAGIC_CMD"
5203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5204 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5205 for ac_dir in $ac_dummy; do
5207 test -z "$ac_dir" && ac_dir=.
5208 if test -f $ac_dir/file; then
5209 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5210 if test -n "$file_magic_test_file"; then
5211 case $deplibs_check_method in
5213 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5215 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5216 $EGREP "$file_magic_regex" > /dev/null; then
5221 *** Warning: the command libtool uses to detect shared libraries,
5222 *** $file_magic_cmd, produces output that libtool cannot recognize.
5223 *** The result is that libtool may fail to recognize shared libraries
5224 *** as such. This will affect the creation of libtool libraries that
5225 *** depend on shared libraries, but programs linked with such libtool
5226 *** libraries will work regardless of this problem. Nevertheless, you
5227 *** may want to report the problem to your system manager and/or to
5228 *** bug-libtool@gnu.org
5238 MAGIC_CMD="$lt_save_MAGIC_CMD"
5243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5244 if test -n "$MAGIC_CMD"; then
5245 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5246 echo "${ECHO_T}$MAGIC_CMD" >&6
5248 echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5264 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5265 if test "${enable_libtool_lock+set}" = set; then
5266 enableval="$enable_libtool_lock"
5269 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5272 # Check whether --with-pic or --without-pic was given.
5273 if test "${with_pic+set}" = set; then
5279 test -z "$pic_mode" && pic_mode=default
5281 # Use C for the default configuration in the libtool script
5285 ac_cpp='$CPP $CPPFLAGS'
5286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291 # Source file extension for C test sources.
5294 # Object file extension for compiled C test sources.
5298 # Code to be used in simple compile tests
5299 lt_simple_compile_test_code="int some_variable = 0;\n"
5301 # Code to be used in simple link tests
5302 lt_simple_link_test_code='int main(){return(0);}\n'
5305 # If no C compiler was specified, use CC.
5308 # Allow CC to be a program name with arguments.
5313 # Check for any special shared library compilation flags.
5316 if test "$GCC" = no; then
5319 lt_prog_cc_shlib='-belf'
5323 if test -n "$lt_prog_cc_shlib"; then
5324 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5325 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5326 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5328 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5329 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5330 lt_cv_prog_cc_can_build_shared=no
5336 # Check to make sure the static flag actually works.
5338 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5339 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5340 if test "${lt_prog_compiler_static_works+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 lt_prog_compiler_static_works=no
5344 save_LDFLAGS="$LDFLAGS"
5345 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5346 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5348 # The compiler can only warn and ignore the option if not recognized
5349 # So say no if there are warnings
5350 if test -s conftest.err; then
5351 # Append any errors to the config.log.
5352 cat conftest.err 1>&5
5354 lt_prog_compiler_static_works=yes
5358 LDFLAGS="$save_LDFLAGS"
5361 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5362 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5364 if test x"$lt_prog_compiler_static_works" = xyes; then
5367 lt_prog_compiler_static=
5373 ## There is no encapsulation within the following macros, do not change
5374 ## the running order or otherwise move them around unless you know exactly
5375 ## what you are doing...
5377 lt_prog_compiler_no_builtin_flag=
5379 if test "$GCC" = yes; then
5380 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5382 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5383 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5384 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 lt_cv_prog_compiler_rtti_exceptions=no
5388 ac_outfile=conftest.$ac_objext
5389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5390 lt_compiler_flag="-fno-rtti -fno-exceptions"
5391 # Insert the option either (1) after the last *FLAGS variable, or
5392 # (2) before a word containing "conftest.", or (3) at the end.
5393 # Note that $ac_compile itself does not contain backslashes and begins
5394 # with a dollar sign (not a hyphen), so the echo should work correctly.
5395 # The option is referenced via a variable to avoid confusing sed.
5396 lt_compile=`echo "$ac_compile" | $SED \
5397 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5399 -e 's:$: $lt_compiler_flag:'`
5400 (eval echo "\"\$as_me:5400: $lt_compile\"" >&5)
5401 (eval "$lt_compile" 2>conftest.err)
5403 cat conftest.err >&5
5404 echo "$as_me:5404: \$? = $ac_status" >&5
5405 if (exit $ac_status) && test -s "$ac_outfile"; then
5406 # The compiler can only warn and ignore the option if not recognized
5407 # So say no if there are warnings
5408 if test ! -s conftest.err; then
5409 lt_cv_prog_compiler_rtti_exceptions=yes
5415 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5416 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5418 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5419 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5426 lt_prog_compiler_wl=
5427 lt_prog_compiler_pic=
5428 lt_prog_compiler_static=
5430 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5431 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5433 if test "$GCC" = yes; then
5434 lt_prog_compiler_wl='-Wl,'
5435 lt_prog_compiler_static='-static'
5439 # All AIX code is PIC.
5440 if test "$host_cpu" = ia64; then
5441 # AIX 5 now supports IA64 processor
5442 lt_prog_compiler_static='-Bstatic'
5447 # FIXME: we need at least 68020 code to build shared libraries, but
5448 # adding the `-m68020' flag to GCC prevents building anything better,
5450 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5453 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5454 # PIC is the default for these OSes.
5457 mingw* | pw32* | os2*)
5458 # This hack is so that the source file can tell whether it is being
5459 # built for inclusion in a dll (and should export symbols for example).
5460 lt_prog_compiler_pic='-DDLL_EXPORT'
5463 darwin* | rhapsody*)
5464 # PIC is the default on this platform
5465 # Common symbols not allowed in MH_DYLIB files
5466 lt_prog_compiler_pic='-fno-common'
5470 # Just because we use GCC doesn't mean we suddenly get shared libraries
5471 # on systems that don't support them.
5472 lt_prog_compiler_can_build_shared=no
5477 if test -d /usr/nec; then
5478 lt_prog_compiler_pic=-Kconform_pic
5483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5490 lt_prog_compiler_pic='-fPIC'
5496 lt_prog_compiler_pic='-fPIC'
5500 # PORTME Check for flag to pass linker flags through the system compiler.
5503 lt_prog_compiler_wl='-Wl,'
5504 if test "$host_cpu" = ia64; then
5505 # AIX 5 now supports IA64 processor
5506 lt_prog_compiler_static='-Bstatic'
5508 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5512 mingw* | pw32* | os2*)
5513 # This hack is so that the source file can tell whether it is being
5514 # built for inclusion in a dll (and should export symbols for example).
5515 lt_prog_compiler_pic='-DDLL_EXPORT'
5518 hpux9* | hpux10* | hpux11*)
5519 lt_prog_compiler_wl='-Wl,'
5520 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5527 lt_prog_compiler_pic='+Z'
5530 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5531 lt_prog_compiler_static='${wl}-a ${wl}archive'
5534 irix5* | irix6* | nonstopux*)
5535 lt_prog_compiler_wl='-Wl,'
5536 # PIC (with -KPIC) is the default.
5537 lt_prog_compiler_static='-non_shared'
5541 lt_prog_compiler_pic='-KPIC'
5542 lt_prog_compiler_static='-Bstatic'
5548 lt_prog_compiler_wl='-Wl,'
5549 lt_prog_compiler_pic='-KPIC'
5550 lt_prog_compiler_static='-static'
5553 lt_prog_compiler_wl='-Wl,'
5554 # All Alpha code is PIC.
5555 lt_prog_compiler_static='-non_shared'
5560 osf3* | osf4* | osf5*)
5561 lt_prog_compiler_wl='-Wl,'
5562 # All OSF/1 code is PIC.
5563 lt_prog_compiler_static='-non_shared'
5567 lt_prog_compiler_pic='-Kpic'
5568 lt_prog_compiler_static='-dn'
5572 lt_prog_compiler_wl='-Wl,'
5573 lt_prog_compiler_pic='-KPIC'
5574 lt_prog_compiler_static='-Bstatic'
5578 lt_prog_compiler_wl='-Qoption ld '
5579 lt_prog_compiler_pic='-PIC'
5580 lt_prog_compiler_static='-Bstatic'
5583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5584 lt_prog_compiler_wl='-Wl,'
5585 lt_prog_compiler_pic='-KPIC'
5586 lt_prog_compiler_static='-Bstatic'
5590 if test -d /usr/nec ;then
5591 lt_prog_compiler_pic='-Kconform_pic'
5592 lt_prog_compiler_static='-Bstatic'
5597 lt_prog_compiler_pic='-pic'
5598 lt_prog_compiler_static='-Bstatic'
5602 lt_prog_compiler_can_build_shared=no
5607 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5608 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5611 # Check to make sure the PIC flag actually works.
5613 if test -n "$lt_prog_compiler_pic"; then
5614 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5615 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5616 if test "${lt_prog_compiler_pic_works+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 lt_prog_compiler_pic_works=no
5620 ac_outfile=conftest.$ac_objext
5621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5622 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5623 # Insert the option either (1) after the last *FLAGS variable, or
5624 # (2) before a word containing "conftest.", or (3) at the end.
5625 # Note that $ac_compile itself does not contain backslashes and begins
5626 # with a dollar sign (not a hyphen), so the echo should work correctly.
5627 # The option is referenced via a variable to avoid confusing sed.
5628 lt_compile=`echo "$ac_compile" | $SED \
5629 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5631 -e 's:$: $lt_compiler_flag:'`
5632 (eval echo "\"\$as_me:5632: $lt_compile\"" >&5)
5633 (eval "$lt_compile" 2>conftest.err)
5635 cat conftest.err >&5
5636 echo "$as_me:5636: \$? = $ac_status" >&5
5637 if (exit $ac_status) && test -s "$ac_outfile"; then
5638 # The compiler can only warn and ignore the option if not recognized
5639 # So say no if there are warnings
5640 if test ! -s conftest.err; then
5641 lt_prog_compiler_pic_works=yes
5647 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5648 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5650 if test x"$lt_prog_compiler_pic_works" = xyes; then
5651 case $lt_prog_compiler_pic in
5653 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5656 lt_prog_compiler_pic=
5657 lt_prog_compiler_can_build_shared=no
5662 # For platforms which do not support PIC, -DPIC is meaningless:
5664 lt_prog_compiler_pic=
5667 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5671 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5672 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5673 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 lt_cv_prog_compiler_c_o=no
5677 $rm -r conftest 2>/dev/null
5681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5683 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5684 # that will create temporary files in the current directory regardless of
5685 # the output directory. Thus, making CWD read-only will cause this test
5686 # to fail, enabling locking or at least warning the user not to do parallel
5690 lt_compiler_flag="-o out/conftest2.$ac_objext"
5691 # Insert the option either (1) after the last *FLAGS variable, or
5692 # (2) before a word containing "conftest.", or (3) at the end.
5693 # Note that $ac_compile itself does not contain backslashes and begins
5694 # with a dollar sign (not a hyphen), so the echo should work correctly.
5695 lt_compile=`echo "$ac_compile" | $SED \
5696 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5698 -e 's:$: $lt_compiler_flag:'`
5699 (eval echo "\"\$as_me:5699: $lt_compile\"" >&5)
5700 (eval "$lt_compile" 2>out/conftest.err)
5702 cat out/conftest.err >&5
5703 echo "$as_me:5703: \$? = $ac_status" >&5
5704 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5706 # The compiler can only warn and ignore the option if not recognized
5707 # So say no if there are warnings
5708 if test ! -s out/conftest.err; then
5709 lt_cv_prog_compiler_c_o=yes
5720 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5721 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5724 hard_links="nottested"
5725 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5726 # do not overwrite the value of need_locks provided by the user
5727 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5728 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5733 ln conftest.a conftest.b 2>&5 || hard_links=no
5734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5735 echo "$as_me:$LINENO: result: $hard_links" >&5
5736 echo "${ECHO_T}$hard_links" >&6
5737 if test "$hard_links" = no; then
5738 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5739 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5746 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5747 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5750 allow_undefined_flag=
5751 enable_shared_with_static_runtimes=no
5753 archive_expsym_cmds=
5754 old_archive_From_new_cmds=
5755 old_archive_from_expsyms_cmds=
5756 export_dynamic_flag_spec=
5757 whole_archive_flag_spec=
5758 thread_safe_flag_spec=
5759 hardcode_libdir_flag_spec=
5760 hardcode_libdir_flag_spec_ld=
5761 hardcode_libdir_separator=
5764 hardcode_shlibpath_var=unsupported
5765 link_all_deplibs=unknown
5766 hardcode_automatic=no
5769 always_export_symbols=no
5770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5771 # include_expsyms should be a list of space-separated symbols to be *always*
5772 # included in the symbol list
5774 # exclude_expsyms can be an extended regexp of symbols to exclude
5775 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5776 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5777 # as well as any symbol that contains `d'.
5778 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5779 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5780 # platforms (ab)use it in PIC code, but their linkers get confused if
5781 # the symbol is explicitly referenced. Since portable code cannot
5782 # rely on this symbol name, it's probably fine to never include it in
5783 # preloaded symbol tables.
5784 extract_expsyms_cmds=
5787 cygwin* | mingw* | pw32*)
5788 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5789 # When not using gcc, we currently assume that we are using
5790 # Microsoft Visual C++.
5791 if test "$GCC" != yes; then
5801 if test "$with_gnu_ld" = yes; then
5802 # If archive_cmds runs LD, not CC, wlarc should be empty
5805 # See if GNU ld supports shared libraries.
5807 aix3* | aix4* | aix5*)
5808 # On AIX/PPC, the GNU linker is very broken
5809 if test "$host_cpu" != ia64; then
5813 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5814 *** to be unable to reliably create shared libraries on AIX.
5815 *** Therefore, libtool is disabling shared libraries support. If you
5816 *** really care for shared libraries, you may want to modify your PATH
5817 *** so that a non-GNU linker is found, and then restart.
5824 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)'
5825 hardcode_libdir_flag_spec='-L$libdir'
5826 hardcode_minus_L=yes
5828 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5829 # that the semantics of dynamic libraries on AmigaOS, at least up
5830 # to version 4, is to share data among multiple programs linked
5831 # with the same dynamic library. Since this doesn't match the
5832 # behavior of shared libraries on other platforms, we can't use
5838 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5839 allow_undefined_flag=unsupported
5840 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5841 # support --undefined. This deserves some investigation. FIXME
5842 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5848 cygwin* | mingw* | pw32*)
5849 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
5850 # as there is no search path for DLLs.
5851 hardcode_libdir_flag_spec='-L$libdir'
5852 allow_undefined_flag=unsupported
5853 always_export_symbols=no
5854 enable_shared_with_static_runtimes=yes
5855 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
5857 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5859 # If the export-symbols file already is a .def file (1st line
5860 # is EXPORTS), use it as is; otherwise, prepend...
5861 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5862 cp $export_symbols $output_objdir/$soname.def;
5864 echo EXPORTS > $output_objdir/$soname.def;
5865 cat $export_symbols >> $output_objdir/$soname.def;
5867 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5875 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5884 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5889 *** create shared libraries on Solaris systems. Therefore, libtool
5890 *** is disabling shared libraries support. We urge you to upgrade GNU
5891 *** binutils to release 2.9.1 or newer. Another option is to modify
5892 *** your PATH or compiler configuration so that the native linker is
5893 *** used, and then restart.
5896 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5898 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5905 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5908 hardcode_shlibpath_var=no
5912 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5914 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5921 if test "$ld_shlibs" = yes; then
5922 runpath_var=LD_RUN_PATH
5923 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5924 export_dynamic_flag_spec='${wl}--export-dynamic'
5925 # ancient GNU ld didn't support --whole-archive et. al.
5926 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5927 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5929 whole_archive_flag_spec=
5933 # PORTME fill in a description of your system's linker (not GNU ld)
5936 allow_undefined_flag=unsupported
5937 always_export_symbols=yes
5938 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'
5939 # Note: this linker hardcodes the directories in LIBPATH if there
5940 # are no directories specified by -L.
5941 hardcode_minus_L=yes
5942 if test "$GCC" = yes && test -z "$link_static_flag"; then
5943 # Neither direct hardcoding nor static linking is supported with a
5945 hardcode_direct=unsupported
5950 if test "$host_cpu" = ia64; then
5951 # On IA64, the linker does run time linking by default, so we don't
5952 # have to do anything special.
5953 aix_use_runtimelinking=no
5954 exp_sym_flag='-Bexport'
5957 # If we're using GNU nm, then we don't want the "-C" option.
5958 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5959 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5960 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'
5962 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'
5964 aix_use_runtimelinking=no
5966 # Test if we are trying to use run time linking or normal
5967 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5968 # need to do runtime linking.
5969 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5970 for ld_flag in $LDFLAGS; do
5971 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5972 aix_use_runtimelinking=yes
5978 exp_sym_flag='-bexport'
5979 no_entry_flag='-bnoentry'
5982 # When large executables or shared objects are built, AIX ld can
5983 # have problems creating the table of contents. If linking a library
5984 # or program results in "error TOC overflow" add -mminimal-toc to
5985 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5986 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5990 hardcode_libdir_separator=':'
5991 link_all_deplibs=yes
5993 if test "$GCC" = yes; then
5994 case $host_os in aix4.012|aix4.012.*)
5995 # We only want to do this on AIX 4.2 and lower, the check
5996 # below for broken collect2 doesn't work under 4.3+
5997 collect2name=`${CC} -print-prog-name=collect2`
5998 if test -f "$collect2name" && \
5999 strings "$collect2name" | grep resolve_lib_name >/dev/null
6001 # We have reworked collect2
6004 # We have old collect2
6005 hardcode_direct=unsupported
6006 # It fails to find uninstalled libraries when the uninstalled
6007 # path is not listed in the libpath. Setting hardcode_minus_L
6008 # to unsupported forces relinking
6009 hardcode_minus_L=yes
6010 hardcode_libdir_flag_spec='-L$libdir'
6011 hardcode_libdir_separator=
6014 shared_flag='-shared'
6017 if test "$host_cpu" = ia64; then
6018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6019 # chokes on -Wl,-G. The following line is correct:
6022 if test "$aix_use_runtimelinking" = yes; then
6023 shared_flag='${wl}-G'
6025 shared_flag='${wl}-bM:SRE'
6030 # It seems that -bexpall does not export symbols beginning with
6031 # underscore (_), so it is better to generate a list of symbols to export.
6032 always_export_symbols=yes
6033 if test "$aix_use_runtimelinking" = yes; then
6034 # Warning - without using the other runtime loading flags (-brtl),
6035 # -berok will link without error, but may produce a broken library.
6036 allow_undefined_flag='-berok'
6037 # Determine the default libpath from the value encoded in an empty executable.
6038 cat >conftest.$ac_ext <<_ACEOF
6039 #line $LINENO "configure"
6040 #include "confdefs.h"
6042 #ifdef F77_DUMMY_MAIN
6046 int F77_DUMMY_MAIN() { return 1; }
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -s conftest$ac_exeext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6071 # Check for a 64-bit object if we didn't find anything.
6072 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; }
6075 echo "$as_me: failed program was:" >&5
6076 cat conftest.$ac_ext >&5
6078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6079 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6081 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6082 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"
6084 if test "$host_cpu" = ia64; then
6085 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6086 allow_undefined_flag="-z nodefs"
6087 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"
6089 # Determine the default libpath from the value encoded in an empty executable.
6090 cat >conftest.$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6092 #include "confdefs.h"
6094 #ifdef F77_DUMMY_MAIN
6098 int F77_DUMMY_MAIN() { return 1; }
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6123 # Check for a 64-bit object if we didn't find anything.
6124 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; }
6127 echo "$as_me: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6133 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6134 # Warning - without using the other run time loading flags,
6135 # -berok will link without error, but may produce a broken library.
6136 no_undefined_flag=' ${wl}-bernotok'
6137 allow_undefined_flag=' ${wl}-berok'
6138 # -bexpall does not export symbols beginning with underscore (_)
6139 always_export_symbols=yes
6140 # Exported symbols can be pulled into shared objects from archives
6141 whole_archive_flag_spec=' '
6142 archive_cmds_need_lc=yes
6143 # This is similar to how AIX traditionally builds it's shared libraries.
6144 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'
6150 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)'
6151 hardcode_libdir_flag_spec='-L$libdir'
6152 hardcode_minus_L=yes
6153 # see comment about different semantics on the GNU ld section
6158 export_dynamic_flag_spec=-rdynamic
6161 cygwin* | mingw* | pw32*)
6162 # When not using gcc, we currently assume that we are using
6163 # Microsoft Visual C++.
6164 # hardcode_libdir_flag_spec is actually meaningless, as there is
6165 # no search path for DLLs.
6166 hardcode_libdir_flag_spec=' '
6167 allow_undefined_flag=unsupported
6168 # Tell ltmain to make .lib files, not .a files.
6170 # Tell ltmain to make .dll files, not .so files.
6172 # FIXME: Setting linknames here is a bad hack.
6173 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6174 # The linker will automatically build a .lib file if we build a DLL.
6175 old_archive_From_new_cmds='true'
6176 # FIXME: Should let the user specify the lib program.
6177 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6178 fix_srcfile_path='`cygpath -w "$srcfile"`'
6179 enable_shared_with_static_runtimes=yes
6182 darwin* | rhapsody*)
6183 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6184 archive_cmds_need_lc=no
6186 rhapsody* | darwin1.[012])
6187 allow_undefined_flag='-undefined suppress'
6190 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6193 # FIXME: Relying on posixy $() will cause problems for
6194 # cross-compilation, but unfortunately the echo tests do not
6195 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6196 # `"' quotes if we put them in here... so don't!
6197 lt_int_apple_cc_single_mod=no
6198 output_verbose_link_cmd='echo'
6199 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6200 lt_int_apple_cc_single_mod=yes
6202 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6203 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6205 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'
6207 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6209 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6210 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}'
6212 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}'
6214 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}'
6216 hardcode_automatic=yes
6217 hardcode_shlibpath_var=unsupported
6218 whole_archive_flag_spec='-all_load $convenience'
6219 link_all_deplibs=yes
6224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6225 hardcode_libdir_flag_spec='-L$libdir'
6226 hardcode_shlibpath_var=no
6233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6234 # support. Future versions do this automatically, but an explicit c++rt0.o
6235 # does not break anything, and helps significantly (at the cost of a little
6238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6239 hardcode_libdir_flag_spec='-R$libdir'
6241 hardcode_shlibpath_var=no
6244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6248 hardcode_minus_L=yes
6249 hardcode_shlibpath_var=no
6252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6254 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6255 hardcode_libdir_flag_spec='-R$libdir'
6257 hardcode_shlibpath_var=no
6261 if test "$GCC" = yes; then
6262 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'
6264 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'
6266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6267 hardcode_libdir_separator=:
6270 # hardcode_minus_L: Not really in the search PATH,
6271 # but as the default location of the library.
6272 hardcode_minus_L=yes
6273 export_dynamic_flag_spec='${wl}-E'
6277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6280 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6283 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6289 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6292 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6296 if test "$with_gnu_ld" = no; then
6299 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6300 hardcode_libdir_flag_spec_ld='+b $libdir'
6301 hardcode_libdir_separator=:
6303 hardcode_shlibpath_var=no
6306 hardcode_libdir_flag_spec='-L$libdir'
6308 hardcode_shlibpath_var=no
6310 # hardcode_minus_L: Not really in the search PATH,
6311 # but as the default location of the library.
6312 hardcode_minus_L=yes
6315 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6316 hardcode_libdir_separator=:
6318 export_dynamic_flag_spec='${wl}-E'
6320 # hardcode_minus_L: Not really in the search PATH,
6321 # but as the default location of the library.
6322 hardcode_minus_L=yes
6328 irix5* | irix6* | nonstopux*)
6329 if test "$GCC" = yes; then
6330 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'
6332 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'
6333 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6336 hardcode_libdir_separator=:
6337 link_all_deplibs=yes
6341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6344 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6346 hardcode_libdir_flag_spec='-R$libdir'
6348 hardcode_shlibpath_var=no
6352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6355 hardcode_libdir_separator=:
6356 hardcode_shlibpath_var=no
6361 hardcode_shlibpath_var=no
6362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6364 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6365 export_dynamic_flag_spec='${wl}-E'
6368 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6370 hardcode_libdir_flag_spec='-R$libdir'
6373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6374 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6381 hardcode_libdir_flag_spec='-L$libdir'
6382 hardcode_minus_L=yes
6383 allow_undefined_flag=unsupported
6384 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'
6385 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6389 if test "$GCC" = yes; then
6390 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6391 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'
6393 allow_undefined_flag=' -expect_unresolved \*'
6394 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'
6396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6397 hardcode_libdir_separator=:
6400 osf4* | osf5*) # as osf3* with the addition of -msym flag
6401 if test "$GCC" = yes; then
6402 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6403 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'
6404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6406 allow_undefined_flag=' -expect_unresolved \*'
6407 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'
6408 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6409 $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'
6411 # Both c and cxx compiler support -rpath directly
6412 hardcode_libdir_flag_spec='-rpath $libdir'
6414 hardcode_libdir_separator=:
6418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6419 hardcode_shlibpath_var=no
6420 export_dynamic_flag_spec='${wl}-Bexport'
6421 runpath_var=LD_RUN_PATH
6422 hardcode_runpath_var=yes
6426 no_undefined_flag=' -z text'
6427 if test "$GCC" = yes; then
6428 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6429 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6430 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6432 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6433 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6434 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6436 hardcode_libdir_flag_spec='-R$libdir'
6437 hardcode_shlibpath_var=no
6439 solaris2.[0-5] | solaris2.[0-5].*) ;;
6440 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6441 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6443 link_all_deplibs=yes
6447 if test "x$host_vendor" = xsequent; then
6448 # Use $CC to link under sequent, because it throws in some extra .o
6449 # files that make .init and .fini sections work.
6450 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6452 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6454 hardcode_libdir_flag_spec='-L$libdir'
6456 hardcode_minus_L=yes
6457 hardcode_shlibpath_var=no
6461 case $host_vendor in
6463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6464 hardcode_direct=yes # is this really true???
6467 ## LD is ld it makes a PLAMLIB
6468 ## CC just makes a GrossModule.
6469 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6470 reload_cmds='$CC -r -o $output$reload_objs'
6474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6475 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6478 runpath_var='LD_RUN_PATH'
6479 hardcode_shlibpath_var=no
6483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6484 hardcode_shlibpath_var=no
6485 export_dynamic_flag_spec='-Bexport'
6489 if test -d /usr/nec; then
6490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6491 hardcode_shlibpath_var=no
6492 runpath_var=LD_RUN_PATH
6493 hardcode_runpath_var=yes
6499 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6502 hardcode_shlibpath_var=no
6503 hardcode_runpath_var=yes
6504 runpath_var=LD_RUN_PATH
6507 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6508 no_undefined_flag='${wl}-z ${wl}text'
6509 if test "$GCC" = yes; then
6510 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6512 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6514 runpath_var='LD_RUN_PATH'
6515 hardcode_shlibpath_var=no
6519 no_undefined_flag=' -z text'
6520 # $CC -shared without GNU ld will not create a library from C++
6521 # object files and a static libstdc++, better avoid it by now
6522 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6523 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6524 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6525 hardcode_libdir_flag_spec=
6526 hardcode_shlibpath_var=no
6527 runpath_var='LD_RUN_PATH'
6531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6532 hardcode_libdir_flag_spec='-L$libdir'
6533 hardcode_shlibpath_var=no
6542 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6543 echo "${ECHO_T}$ld_shlibs" >&6
6544 test "$ld_shlibs" = no && can_build_shared=no
6546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6547 if test "$GCC" = yes; then
6548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6552 # Do we need to explicitly link libc?
6554 case "x$archive_cmds_need_lc" in
6556 # Assume -lc should be added
6557 archive_cmds_need_lc=yes
6559 if test "$enable_shared" = yes && test "$GCC" = yes; then
6560 case $archive_cmds in
6562 # FIXME: we may have to deal with multi-command sequences.
6565 # Test whether the compiler implicitly links with -lc since on some
6566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6567 # to ld, don't add -lc before -lgcc.
6568 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6569 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6574 (eval $ac_compile) 2>&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } 2>conftest.err; then
6580 libobjs=conftest.$ac_objext
6582 wl=$lt_prog_compiler_wl
6588 lt_save_allow_undefined_flag=$allow_undefined_flag
6589 allow_undefined_flag=
6590 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6591 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }
6596 archive_cmds_need_lc=no
6598 archive_cmds_need_lc=yes
6600 allow_undefined_flag=$lt_save_allow_undefined_flag
6602 cat conftest.err 1>&5
6605 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6606 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6613 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6614 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6616 if test -n "$hardcode_libdir_flag_spec" || \
6617 test -n "$runpath_var " || \
6618 test "X$hardcode_automatic"="Xyes" ; then
6620 # We can hardcode non-existant directories.
6621 if test "$hardcode_direct" != no &&
6622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6623 # have to relink, otherwise we might link with an installed library
6624 # when we should be linking with a yet-to-be-installed one
6625 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6626 test "$hardcode_minus_L" != no; then
6627 # Linking always hardcodes the temporary library directory.
6628 hardcode_action=relink
6630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6631 hardcode_action=immediate
6634 # We cannot hardcode anything, or else we can only hardcode existing
6636 hardcode_action=unsupported
6638 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6639 echo "${ECHO_T}$hardcode_action" >&6
6641 if test "$hardcode_action" = relink; then
6642 # Fast installation is not supported
6643 enable_fast_install=no
6644 elif test "$shlibpath_overrides_runpath" = yes ||
6645 test "$enable_shared" = no; then
6646 # Fast installation is not necessary
6647 enable_fast_install=needless
6652 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6653 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6654 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6656 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6657 echo "$as_me:$LINENO: result: yes" >&5
6658 echo "${ECHO_T}yes" >&6
6660 # FIXME - insert some real tests, host_os isn't really good enough
6663 if test -n "$STRIP" ; then
6664 striplib="$STRIP -x"
6665 echo "$as_me:$LINENO: result: yes" >&5
6666 echo "${ECHO_T}yes" >&6
6668 echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6
6673 echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6
6679 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6680 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6682 libname_spec='lib$name'
6690 shlibpath_overrides_runpath=unknown
6692 dynamic_linker="$host_os ld.so"
6693 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6694 if test "$GCC" = yes; then
6695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6696 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6697 # if the path contains ";" then we assume it to be the separator
6698 # otherwise default to the standard path separator (i.e. ":") - it is
6699 # assumed that no part of a normal pathname contains ";" but that should
6700 # okay in the real world where ";" in dirpaths is itself problematic.
6701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6708 need_lib_prefix=unknown
6709 hardcode_into_libs=no
6711 # when you set need_version to no, make sure it does not cause -set_version
6712 # flags to be left without arguments
6713 need_version=unknown
6718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6719 shlibpath_var=LIBPATH
6721 # AIX 3 has no versioning support, so we append a major version to the name.
6722 soname_spec='${libname}${release}${shared_ext}$major'
6729 hardcode_into_libs=yes
6730 if test "$host_cpu" = ia64; then
6731 # AIX 5 supports IA64
6732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6733 shlibpath_var=LD_LIBRARY_PATH
6735 # With GCC up to 2.95.x, collect2 would create an import file
6736 # for dependence libraries. The import file would start with
6737 # the line `#! .'. This would cause the generated library to
6738 # depend on `.', always an invalid library. This was fixed in
6739 # development snapshots of GCC prior to 3.0.
6741 aix4 | aix4.[01] | aix4.[01].*)
6742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6744 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6752 # soname into executable. Probably we can add versioning support to
6753 # collect2, so additional links can be useful in future.
6754 if test "$aix_use_runtimelinking" = yes; then
6755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6756 # instead of lib<name>.a to let people know that these are not
6757 # typical AIX shared libraries.
6758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6760 # We preserve .a as extension for shared libraries through AIX4.2
6761 # and later when we are not doing run time linking.
6762 library_names_spec='${libname}${release}.a $libname.a'
6763 soname_spec='${libname}${release}${shared_ext}$major'
6765 shlibpath_var=LIBPATH
6770 library_names_spec='$libname.ixlibrary $libname.a'
6771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6772 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'
6776 library_names_spec='${libname}${shared_ext}'
6777 dynamic_linker="$host_os ld.so"
6778 shlibpath_var=LIBRARY_PATH
6784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6785 soname_spec='${libname}${release}${shared_ext}$major'
6786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6787 shlibpath_var=LD_LIBRARY_PATH
6788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6790 # the default ld.so.conf also contains /usr/contrib/lib and
6791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6792 # libtool to hard-code these into programs
6795 cygwin* | mingw* | pw32*)
6796 version_type=windows
6801 case $GCC,$host_os in
6802 yes,cygwin* | yes,mingw* | yes,pw32*)
6803 library_names_spec='$libname.dll.a'
6804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6805 postinstall_cmds='base_file=`basename \${file}`~
6806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6807 dldir=$destdir/`dirname \$dlpath`~
6808 test -d \$dldir || mkdir -p \$dldir~
6809 $install_prog $dir/$dlname \$dldir/$dlname'
6810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6811 dlpath=$dir/\$dldll~
6813 shlibpath_overrides_runpath=yes
6817 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6818 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6819 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6822 # MinGW DLLs use traditional 'lib' prefix
6823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6825 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6826 # It is most probably a Windows format PATH printed by
6827 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6828 # path with ; separators, and with drive letters. We can handle the
6829 # drive letters (cygwin fileutils understands them), so leave them,
6830 # especially as we might pass files found there to a mingw objdump,
6831 # which wouldn't understand a cygwinified path. Ahh.
6832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6838 # pw32 DLLs use 'pw' prefix rather than 'lib'
6839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6848 dynamic_linker='Win32 ld.exe'
6849 # FIXME: first we should search . and the directory the executable is in
6853 darwin* | rhapsody*)
6854 dynamic_linker="$host_os dyld"
6858 # FIXME: Relying on posixy $() will cause problems for
6859 # cross-compilation, but unfortunately the echo tests do not
6860 # yet detect zsh echo's removal of \ escapes.
6861 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6862 soname_spec='${libname}${release}${major}$shared_ext'
6863 shlibpath_overrides_runpath=yes
6864 shlibpath_var=DYLD_LIBRARY_PATH
6865 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6866 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6867 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6868 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"`
6870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6878 soname_spec='${libname}${release}${shared_ext}$major'
6879 shlibpath_var=LD_LIBRARY_PATH
6887 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6888 version_type=freebsd-$objformat
6889 case $version_type in
6891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6900 shlibpath_var=LD_LIBRARY_PATH
6903 shlibpath_overrides_runpath=yes
6905 freebsd3.01* | freebsdelf3.01*)
6906 shlibpath_overrides_runpath=yes
6907 hardcode_into_libs=yes
6910 shlibpath_overrides_runpath=no
6911 hardcode_into_libs=yes
6920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6921 soname_spec='${libname}${release}${shared_ext}$major'
6922 shlibpath_var=LD_LIBRARY_PATH
6923 hardcode_into_libs=yes
6926 hpux9* | hpux10* | hpux11*)
6927 # Give a soname corresponding to the major version so that dld.sl refuses to
6928 # link against other versions.
6935 hardcode_into_libs=yes
6936 dynamic_linker="$host_os dld.so"
6937 shlibpath_var=LD_LIBRARY_PATH
6938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6940 soname_spec='${libname}${release}${shared_ext}$major'
6941 if test "X$HPUX_IA64_MODE" = X32; then
6942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6950 hardcode_into_libs=yes
6951 dynamic_linker="$host_os dld.sl"
6952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6955 soname_spec='${libname}${release}${shared_ext}$major'
6956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6961 dynamic_linker="$host_os dld.sl"
6962 shlibpath_var=SHLIB_PATH
6963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6965 soname_spec='${libname}${release}${shared_ext}$major'
6968 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6969 postinstall_cmds='chmod 555 $lib'
6972 irix5* | irix6* | nonstopux*)
6974 nonstopux*) version_type=nonstopux ;;
6976 if test "$lt_cv_prog_gnu_ld" = yes; then
6984 soname_spec='${libname}${release}${shared_ext}$major'
6985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6987 irix5* | nonstopux*)
6991 case $LD in # libtool.m4 will add one of these switches to LD
6992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6993 libsuff= shlibsuff= libmagic=32-bit;;
6994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6995 libsuff=32 shlibsuff=N32 libmagic=N32;;
6996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6998 *) libsuff= shlibsuff= libmagic=never-match;;
7002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7003 shlibpath_overrides_runpath=no
7004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7006 hardcode_into_libs=yes
7009 # No shared lib support for Linux oldld, aout, or coff.
7010 linux*oldld* | linux*aout* | linux*coff*)
7014 # This must be Linux ELF.
7019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7020 soname_spec='${libname}${release}${shared_ext}$major'
7021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7022 shlibpath_var=LD_LIBRARY_PATH
7023 shlibpath_overrides_runpath=no
7024 # This implies no fast_install, which is unacceptable.
7025 # Some rework will be needed to allow for fast_install
7026 # before this can be enabled.
7027 hardcode_into_libs=yes
7029 # We used to test for /lib/ld.so.1 and disable shared libraries on
7030 # powerpc, because MkLinux only supported shared libraries with the
7031 # GNU dynamic linker. Since this was broken with cross compilers,
7032 # most powerpc-linux boxes support dynamic linking these days and
7033 # people can always --disable-shared, the test was removed, and we
7034 # assume the GNU/Linux dynamic linker is in use.
7035 dynamic_linker='GNU/Linux ld.so'
7042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7045 dynamic_linker='NetBSD (a.out) ld.so'
7047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7048 soname_spec='${libname}${release}${shared_ext}$major'
7049 dynamic_linker='NetBSD ld.elf_so'
7051 shlibpath_var=LD_LIBRARY_PATH
7052 shlibpath_overrides_runpath=yes
7053 hardcode_into_libs=yes
7058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7059 shlibpath_var=LD_LIBRARY_PATH
7060 shlibpath_overrides_runpath=yes
7067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7068 soname_spec='${libname}${release}${shared_ext}$major'
7069 shlibpath_var=LD_LIBRARY_PATH
7070 shlibpath_overrides_runpath=yes
7077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7079 shlibpath_var=LD_LIBRARY_PATH
7080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7082 openbsd2.[89] | openbsd2.[89].*)
7083 shlibpath_overrides_runpath=no
7086 shlibpath_overrides_runpath=yes
7090 shlibpath_overrides_runpath=yes
7095 libname_spec='$name'
7098 library_names_spec='$libname${shared_ext} $libname.a'
7099 dynamic_linker='OS/2 ld.exe'
7100 shlibpath_var=LIBPATH
7103 osf3* | osf4* | osf5*)
7107 soname_spec='${libname}${release}${shared_ext}$major'
7108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7109 shlibpath_var=LD_LIBRARY_PATH
7110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7116 soname_spec='${libname}${release}${shared_ext}$major'
7117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7118 shlibpath_var=LD_LIBRARY_PATH
7125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7126 soname_spec='${libname}${release}${shared_ext}$major'
7127 shlibpath_var=LD_LIBRARY_PATH
7128 shlibpath_overrides_runpath=yes
7129 hardcode_into_libs=yes
7130 # ldd complains unless libraries are executable
7131 postinstall_cmds='chmod +x $lib'
7136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7138 shlibpath_var=LD_LIBRARY_PATH
7139 shlibpath_overrides_runpath=yes
7140 if test "$with_gnu_ld" = yes; then
7146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7149 soname_spec='${libname}${release}${shared_ext}$major'
7150 shlibpath_var=LD_LIBRARY_PATH
7151 case $host_vendor in
7153 shlibpath_overrides_runpath=no
7155 export_dynamic_flag_spec='${wl}-Blargedynsym'
7156 runpath_var=LD_RUN_PATH
7164 shlibpath_overrides_runpath=no
7165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7171 if test -d /usr/nec ;then
7173 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7174 soname_spec='$libname${shared_ext}.$major'
7175 shlibpath_var=LD_LIBRARY_PATH
7181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7182 soname_spec='${libname}${release}${shared_ext}$major'
7183 shlibpath_var=LD_LIBRARY_PATH
7190 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7191 echo "${ECHO_T}$dynamic_linker" >&6
7192 test "$dynamic_linker" = no && can_build_shared=no
7194 if test "x$enable_dlopen" != xyes; then
7195 enable_dlopen=unknown
7196 enable_dlopen_self=unknown
7197 enable_dlopen_self_static=unknown
7204 lt_cv_dlopen="load_add_on"
7206 lt_cv_dlopen_self=yes
7210 lt_cv_dlopen="LoadLibrary"
7215 lt_cv_dlopen="dlopen"
7220 # if libdl is installed we need to link against it
7221 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7222 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7223 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 ac_check_lib_save_LIBS=$LIBS
7228 cat >conftest.$ac_ext <<_ACEOF
7229 #line $LINENO "configure"
7230 #include "confdefs.h"
7232 /* Override any gcc2 internal prototype to avoid an error. */
7236 /* We use char because int might match the return type of a gcc2
7237 builtin and then its argument prototype would still apply. */
7239 #ifdef F77_DUMMY_MAIN
7243 int F77_DUMMY_MAIN() { return 1; }
7253 rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255 (eval $ac_link) 2>&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -s conftest$ac_exeext'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7265 ac_cv_lib_dl_dlopen=yes
7267 echo "$as_me: failed program was:" >&5
7268 cat conftest.$ac_ext >&5
7269 ac_cv_lib_dl_dlopen=no
7271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7272 LIBS=$ac_check_lib_save_LIBS
7274 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7275 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7276 if test $ac_cv_lib_dl_dlopen = yes; then
7277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7282 lt_cv_dlopen_self=yes
7289 echo "$as_me:$LINENO: checking for shl_load" >&5
7290 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7291 if test "${ac_cv_func_shl_load+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 cat >conftest.$ac_ext <<_ACEOF
7295 #line $LINENO "configure"
7296 #include "confdefs.h"
7297 /* System header to define __stub macros and hopefully few prototypes,
7298 which can conflict with char shl_load (); below. */
7300 /* Override any gcc2 internal prototype to avoid an error. */
7304 /* We use char because int might match the return type of a gcc2
7305 builtin and then its argument prototype would still apply. */
7309 #ifdef F77_DUMMY_MAIN
7313 int F77_DUMMY_MAIN() { return 1; }
7318 /* The GNU C library defines this for functions which it implements
7319 to always fail with ENOSYS. Some functions are actually named
7320 something starting with __ and the normal name is an alias. */
7321 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333 (eval $ac_link) 2>&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -s conftest$ac_exeext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_cv_func_shl_load=yes
7345 echo "$as_me: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7347 ac_cv_func_shl_load=no
7349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7351 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7352 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7353 if test $ac_cv_func_shl_load = yes; then
7354 lt_cv_dlopen="shl_load"
7356 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7357 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7358 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 ac_check_lib_save_LIBS=$LIBS
7363 cat >conftest.$ac_ext <<_ACEOF
7364 #line $LINENO "configure"
7365 #include "confdefs.h"
7367 /* Override any gcc2 internal prototype to avoid an error. */
7371 /* We use char because int might match the return type of a gcc2
7372 builtin and then its argument prototype would still apply. */
7374 #ifdef F77_DUMMY_MAIN
7378 int F77_DUMMY_MAIN() { return 1; }
7388 rm -f conftest.$ac_objext conftest$ac_exeext
7389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7390 (eval $ac_link) 2>&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try='test -s conftest$ac_exeext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_lib_dld_shl_load=yes
7402 echo "$as_me: failed program was:" >&5
7403 cat conftest.$ac_ext >&5
7404 ac_cv_lib_dld_shl_load=no
7406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7407 LIBS=$ac_check_lib_save_LIBS
7409 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7410 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7411 if test $ac_cv_lib_dld_shl_load = yes; then
7412 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7414 echo "$as_me:$LINENO: checking for dlopen" >&5
7415 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7416 if test "${ac_cv_func_dlopen+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 cat >conftest.$ac_ext <<_ACEOF
7420 #line $LINENO "configure"
7421 #include "confdefs.h"
7422 /* System header to define __stub macros and hopefully few prototypes,
7423 which can conflict with char dlopen (); below. */
7425 /* Override any gcc2 internal prototype to avoid an error. */
7429 /* We use char because int might match the return type of a gcc2
7430 builtin and then its argument prototype would still apply. */
7434 #ifdef F77_DUMMY_MAIN
7438 int F77_DUMMY_MAIN() { return 1; }
7443 /* The GNU C library defines this for functions which it implements
7444 to always fail with ENOSYS. Some functions are actually named
7445 something starting with __ and the normal name is an alias. */
7446 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7456 rm -f conftest.$ac_objext conftest$ac_exeext
7457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7458 (eval $ac_link) 2>&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } &&
7462 { ac_try='test -s conftest$ac_exeext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 ac_cv_func_dlopen=yes
7470 echo "$as_me: failed program was:" >&5
7471 cat conftest.$ac_ext >&5
7472 ac_cv_func_dlopen=no
7474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7476 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7477 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7478 if test $ac_cv_func_dlopen = yes; then
7479 lt_cv_dlopen="dlopen"
7481 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7482 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7483 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 ac_check_lib_save_LIBS=$LIBS
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line $LINENO "configure"
7490 #include "confdefs.h"
7492 /* Override any gcc2 internal prototype to avoid an error. */
7496 /* We use char because int might match the return type of a gcc2
7497 builtin and then its argument prototype would still apply. */
7499 #ifdef F77_DUMMY_MAIN
7503 int F77_DUMMY_MAIN() { return 1; }
7513 rm -f conftest.$ac_objext conftest$ac_exeext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515 (eval $ac_link) 2>&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } &&
7519 { ac_try='test -s conftest$ac_exeext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 ac_cv_lib_dl_dlopen=yes
7527 echo "$as_me: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7529 ac_cv_lib_dl_dlopen=no
7531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7532 LIBS=$ac_check_lib_save_LIBS
7534 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7535 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7536 if test $ac_cv_lib_dl_dlopen = yes; then
7537 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7539 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7540 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7541 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_check_lib_save_LIBS=$LIBS
7546 cat >conftest.$ac_ext <<_ACEOF
7547 #line $LINENO "configure"
7548 #include "confdefs.h"
7550 /* Override any gcc2 internal prototype to avoid an error. */
7554 /* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7557 #ifdef F77_DUMMY_MAIN
7561 int F77_DUMMY_MAIN() { return 1; }
7571 rm -f conftest.$ac_objext conftest$ac_exeext
7572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573 (eval $ac_link) 2>&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } &&
7577 { ac_try='test -s conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_lib_svld_dlopen=yes
7585 echo "$as_me: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7587 ac_cv_lib_svld_dlopen=no
7589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7590 LIBS=$ac_check_lib_save_LIBS
7592 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7593 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7594 if test $ac_cv_lib_svld_dlopen = yes; then
7595 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7597 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7598 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7599 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 ac_check_lib_save_LIBS=$LIBS
7604 cat >conftest.$ac_ext <<_ACEOF
7605 #line $LINENO "configure"
7606 #include "confdefs.h"
7608 /* Override any gcc2 internal prototype to avoid an error. */
7612 /* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7615 #ifdef F77_DUMMY_MAIN
7619 int F77_DUMMY_MAIN() { return 1; }
7629 rm -f conftest.$ac_objext conftest$ac_exeext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7631 (eval $ac_link) 2>&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try='test -s conftest$ac_exeext'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7641 ac_cv_lib_dld_dld_link=yes
7643 echo "$as_me: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7645 ac_cv_lib_dld_dld_link=no
7647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7648 LIBS=$ac_check_lib_save_LIBS
7650 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7651 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7652 if test $ac_cv_lib_dld_dld_link = yes; then
7653 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7674 if test "x$lt_cv_dlopen" != xno; then
7680 case $lt_cv_dlopen in
7682 save_CPPFLAGS="$CPPFLAGS"
7683 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7685 save_LDFLAGS="$LDFLAGS"
7686 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7689 LIBS="$lt_cv_dlopen_libs $LIBS"
7691 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7692 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7693 if test "${lt_cv_dlopen_self+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 if test "$cross_compiling" = yes; then :
7697 lt_cv_dlopen_self=cross
7699 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7700 lt_status=$lt_dlunknown
7701 cat > conftest.$ac_ext <<EOF
7702 #line 7702 "configure"
7703 #include "confdefs.h"
7712 # define LT_DLGLOBAL RTLD_GLOBAL
7715 # define LT_DLGLOBAL DL_GLOBAL
7717 # define LT_DLGLOBAL 0
7721 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7722 find out it does not work in some platform. */
7723 #ifndef LT_DLLAZY_OR_NOW
7725 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7728 # define LT_DLLAZY_OR_NOW DL_LAZY
7731 # define LT_DLLAZY_OR_NOW RTLD_NOW
7734 # define LT_DLLAZY_OR_NOW DL_NOW
7736 # define LT_DLLAZY_OR_NOW 0
7744 extern "C" void exit (int);
7747 void fnord() { int i=42;}
7750 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7751 int status = $lt_dlunknown;
7755 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7756 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7757 /* dlclose (self); */
7763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7764 (eval $ac_link) 2>&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7768 (./conftest; exit; ) 2>/dev/null
7771 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7772 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7773 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7776 # compilation failed
7777 lt_cv_dlopen_self=no
7784 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7785 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7787 if test "x$lt_cv_dlopen_self" = xyes; then
7788 LDFLAGS="$LDFLAGS $link_static_flag"
7789 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7790 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7791 if test "${lt_cv_dlopen_self_static+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 if test "$cross_compiling" = yes; then :
7795 lt_cv_dlopen_self_static=cross
7797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7798 lt_status=$lt_dlunknown
7799 cat > conftest.$ac_ext <<EOF
7800 #line 7800 "configure"
7801 #include "confdefs.h"
7810 # define LT_DLGLOBAL RTLD_GLOBAL
7813 # define LT_DLGLOBAL DL_GLOBAL
7815 # define LT_DLGLOBAL 0
7819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7820 find out it does not work in some platform. */
7821 #ifndef LT_DLLAZY_OR_NOW
7823 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7826 # define LT_DLLAZY_OR_NOW DL_LAZY
7829 # define LT_DLLAZY_OR_NOW RTLD_NOW
7832 # define LT_DLLAZY_OR_NOW DL_NOW
7834 # define LT_DLLAZY_OR_NOW 0
7842 extern "C" void exit (int);
7845 void fnord() { int i=42;}
7848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7849 int status = $lt_dlunknown;
7853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7854 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7855 /* dlclose (self); */
7861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7862 (eval $ac_link) 2>&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7866 (./conftest; exit; ) 2>/dev/null
7869 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7870 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7871 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7874 # compilation failed
7875 lt_cv_dlopen_self_static=no
7882 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7883 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7886 CPPFLAGS="$save_CPPFLAGS"
7887 LDFLAGS="$save_LDFLAGS"
7892 case $lt_cv_dlopen_self in
7893 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7894 *) enable_dlopen_self=unknown ;;
7897 case $lt_cv_dlopen_self_static in
7898 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7899 *) enable_dlopen_self_static=unknown ;;
7904 # Report which librarie types wil actually be built
7905 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7906 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7907 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7908 echo "${ECHO_T}$can_build_shared" >&6
7910 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7911 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7912 test "$can_build_shared" = "no" && enable_shared=no
7914 # On AIX, shared libraries and static libraries use the same namespace, and
7915 # are all built from PIC.
7918 test "$enable_shared" = yes && enable_static=no
7919 if test -n "$RANLIB"; then
7920 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7921 postinstall_cmds='$RANLIB $lib'
7926 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7927 test "$enable_shared" = yes && enable_static=no
7930 darwin* | rhapsody*)
7931 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7932 archive_cmds_need_lc=no
7934 rhapsody* | darwin1.[012])
7935 allow_undefined_flag='-undefined suppress'
7938 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7941 # FIXME: Relying on posixy $() will cause problems for
7942 # cross-compilation, but unfortunately the echo tests do not
7943 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7944 # `"' quotes if we put them in here... so don't!
7945 output_verbose_link_cmd='echo'
7946 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
7947 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7948 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7949 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}'
7950 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}'
7952 hardcode_automatic=yes
7953 hardcode_shlibpath_var=unsupported
7954 whole_archive_flag_spec='-all_load $convenience'
7955 link_all_deplibs=yes
7959 echo "$as_me:$LINENO: result: $enable_shared" >&5
7960 echo "${ECHO_T}$enable_shared" >&6
7962 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7963 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7964 # Make sure either enable_shared or enable_static is yes.
7965 test "$enable_shared" = yes || enable_static=yes
7966 echo "$as_me:$LINENO: result: $enable_static" >&5
7967 echo "${ECHO_T}$enable_static" >&6
7969 # The else clause should only fire when bootstrapping the
7970 # libtool distribution, otherwise you forgot to ship ltmain.sh
7971 # with your package, and you will get complaints that there are
7972 # no rules to generate ltmain.sh.
7973 if test -f "$ltmain"; then
7974 # See if we are running on zsh, and set the options which allow our commands through
7975 # without removal of \ escapes.
7976 if test -n "${ZSH_VERSION+set}" ; then
7977 setopt NO_GLOB_SUBST
7979 # Now quote all the things that may contain metacharacters while being
7980 # careful not to overquote the AC_SUBSTed values. We take copies of the
7981 # variables and quote the copies for generation of the libtool script.
7982 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
7983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7985 deplibs_check_method reload_flag reload_cmds need_locks \
7986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7987 lt_cv_sys_global_symbol_to_c_name_address \
7988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7989 old_postinstall_cmds old_postuninstall_cmds \
7993 lt_prog_compiler_wl \
7994 lt_prog_compiler_pic \
7995 lt_prog_compiler_static \
7996 lt_prog_compiler_no_builtin_flag \
7997 export_dynamic_flag_spec \
7998 thread_safe_flag_spec \
7999 whole_archive_flag_spec \
8000 enable_shared_with_static_runtimes \
8002 old_archive_from_new_cmds \
8007 compiler_lib_search_path \
8009 archive_expsym_cmds \
8011 postuninstall_cmds \
8012 old_archive_from_expsyms_cmds \
8013 allow_undefined_flag \
8015 export_symbols_cmds \
8016 hardcode_libdir_flag_spec \
8017 hardcode_libdir_flag_spec_ld \
8018 hardcode_libdir_separator \
8019 hardcode_automatic \
8021 module_expsym_cmds \
8022 lt_cv_prog_compiler_c_o \
8027 old_archive_cmds | \
8028 old_archive_from_new_cmds | \
8030 archive_expsym_cmds | \
8032 module_expsym_cmds | \
8033 old_archive_from_expsyms_cmds | \
8034 export_symbols_cmds | \
8035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8036 postinstall_cmds | postuninstall_cmds | \
8037 old_postinstall_cmds | old_postuninstall_cmds | \
8038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8039 # Double-quote double-evaled strings.
8040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8049 *'\$0 --fallback-echo"')
8050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8055 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8057 { echo "$as_me:$LINENO: creating $ofile" >&5
8058 echo "$as_me: creating $ofile" >&6;}
8060 cat <<__EOF__ >> "$cfgfile"
8063 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8064 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8065 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8067 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8068 # Free Software Foundation, Inc.
8070 # This file is part of GNU Libtool:
8071 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8073 # This program is free software; you can redistribute it and/or modify
8074 # it under the terms of the GNU General Public License as published by
8075 # the Free Software Foundation; either version 2 of the License, or
8076 # (at your option) any later version.
8078 # This program is distributed in the hope that it will be useful, but
8079 # WITHOUT ANY WARRANTY; without even the implied warranty of
8080 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8081 # General Public License for more details.
8083 # You should have received a copy of the GNU General Public License
8084 # along with this program; if not, write to the Free Software
8085 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8087 # As a special exception to the GNU General Public License, if you
8088 # distribute this file as part of a program that contains a
8089 # configuration script generated by Autoconf, you may include it under
8090 # the same distribution terms that you use for the rest of that program.
8092 # A sed program that does not truncate output.
8095 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8096 Xsed="$SED -e s/^X//"
8098 # The HP-UX ksh and POSIX shell print the target directory to stdout
8100 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8102 # The names of the tagged configurations supported by this script.
8105 # ### BEGIN LIBTOOL CONFIG
8107 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8109 # Shell to use when invoking shell scripts.
8112 # Whether or not to build shared libraries.
8113 build_libtool_libs=$enable_shared
8115 # Whether or not to build static libraries.
8116 build_old_libs=$enable_static
8118 # Whether or not to add -lc for building shared libraries.
8119 build_libtool_need_lc=$archive_cmds_need_lc
8121 # Whether or not to disallow shared libs when runtime libs are static
8122 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8124 # Whether or not to optimize for fast installation.
8125 fast_install=$enable_fast_install
8128 host_alias=$host_alias
8131 # An echo program that does not interpret backslashes.
8136 AR_FLAGS=$lt_AR_FLAGS
8141 # A language-specific compiler.
8144 # Is the compiler the GNU C compiler?
8150 # The linker used to build libraries.
8153 # Whether we need hard or soft links.
8156 # A BSD-compatible nm program.
8159 # A symbol stripping program
8162 # Used to examine libraries when file_magic_cmd begins "file"
8163 MAGIC_CMD=$MAGIC_CMD
8165 # Used on cygwin: DLL creation program.
8168 # Used on cygwin: object dumper.
8171 # Used on cygwin: assembler.
8174 # The name of the directory that contains temporary libtool files.
8177 # How to create reloadable object files.
8178 reload_flag=$lt_reload_flag
8179 reload_cmds=$lt_reload_cmds
8181 # How to pass a linker flag through the compiler.
8182 wl=$lt_lt_prog_compiler_wl
8184 # Object file suffix (normally "o").
8187 # Old archive suffix (normally "a").
8190 # Shared library suffix (normally ".so").
8193 # Executable file suffix (normally "").
8196 # Additional compiler flags for building library objects.
8197 pic_flag=$lt_lt_prog_compiler_pic
8200 # What is the maximum length of a command?
8201 max_cmd_len=$lt_cv_sys_max_cmd_len
8203 # Does compiler simultaneously support -c and -o options?
8204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8206 # Must we lock files when doing compilation ?
8207 need_locks=$lt_need_locks
8209 # Do we need the lib prefix for modules?
8210 need_lib_prefix=$need_lib_prefix
8212 # Do we need a version for libraries?
8213 need_version=$need_version
8215 # Whether dlopen is supported.
8216 dlopen_support=$enable_dlopen
8218 # Whether dlopen of programs is supported.
8219 dlopen_self=$enable_dlopen_self
8221 # Whether dlopen of statically linked programs is supported.
8222 dlopen_self_static=$enable_dlopen_self_static
8224 # Compiler flag to prevent dynamic linking.
8225 link_static_flag=$lt_lt_prog_compiler_static
8227 # Compiler flag to turn off builtin functions.
8228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8230 # Compiler flag to allow reflexive dlopens.
8231 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8233 # Compiler flag to generate shared objects directly from archives.
8234 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8236 # Compiler flag to generate thread-safe objects.
8237 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8239 # Library versioning type.
8240 version_type=$version_type
8242 # Format of library name prefix.
8243 libname_spec=$lt_libname_spec
8245 # List of archive names. First name is the real one, the rest are links.
8246 # The last name is the one that the linker finds with -lNAME.
8247 library_names_spec=$lt_library_names_spec
8249 # The coded name of the library, if different from the real name.
8250 soname_spec=$lt_soname_spec
8252 # Commands used to build and install an old-style archive.
8254 old_archive_cmds=$lt_old_archive_cmds
8255 old_postinstall_cmds=$lt_old_postinstall_cmds
8256 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8258 # Create an old-style archive from a shared archive.
8259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8261 # Create a temporary old-style archive to link instead of a shared archive.
8262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8264 # Commands used to build and install a shared archive.
8265 archive_cmds=$lt_archive_cmds
8266 archive_expsym_cmds=$lt_archive_expsym_cmds
8267 postinstall_cmds=$lt_postinstall_cmds
8268 postuninstall_cmds=$lt_postuninstall_cmds
8270 # Commands used to build a loadable module (assumed same as above if empty)
8271 module_cmds=$lt_module_cmds
8272 module_expsym_cmds=$lt_module_expsym_cmds
8274 # Commands to strip libraries.
8275 old_striplib=$lt_old_striplib
8276 striplib=$lt_striplib
8278 # Dependencies to place before the objects being linked to create a
8280 predep_objects=$lt_predep_objects
8282 # Dependencies to place after the objects being linked to create a
8284 postdep_objects=$lt_postdep_objects
8286 # Dependencies to place before the objects being linked to create a
8290 # Dependencies to place after the objects being linked to create a
8292 postdeps=$lt_postdeps
8294 # The library search path used internally by the compiler when linking
8296 compiler_lib_search_path=$lt_compiler_lib_search_path
8298 # Method to check whether dependent libraries are shared objects.
8299 deplibs_check_method=$lt_deplibs_check_method
8301 # Command to use when deplibs_check_method == file_magic.
8302 file_magic_cmd=$lt_file_magic_cmd
8304 # Flag that allows shared libraries with undefined symbols to be built.
8305 allow_undefined_flag=$lt_allow_undefined_flag
8307 # Flag that forces no undefined symbols.
8308 no_undefined_flag=$lt_no_undefined_flag
8310 # Commands used to finish a libtool library installation in a directory.
8311 finish_cmds=$lt_finish_cmds
8313 # Same as above, but a single script fragment to be evaled but not shown.
8314 finish_eval=$lt_finish_eval
8316 # Take the output of nm and produce a listing of raw symbols and C names.
8317 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8319 # Transform the output of nm in a proper C declaration
8320 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8322 # Transform the output of nm in a C name address pair
8323 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8325 # This is the shared library runtime path variable.
8326 runpath_var=$runpath_var
8328 # This is the shared library path variable.
8329 shlibpath_var=$shlibpath_var
8331 # Is shlibpath searched before the hard-coded library search path?
8332 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8334 # How to hardcode a shared library path into an executable.
8335 hardcode_action=$hardcode_action
8337 # Whether we should hardcode library paths into libraries.
8338 hardcode_into_libs=$hardcode_into_libs
8340 # Flag to hardcode \$libdir into a binary during linking.
8341 # This must work even if \$libdir does not exist.
8342 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8344 # If ld is used when linking, flag to hardcode \$libdir into
8345 # a binary during linking. This must work even if \$libdir does
8347 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8349 # Whether we need a single -rpath flag with a separated argument.
8350 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8352 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8354 hardcode_direct=$hardcode_direct
8356 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8358 hardcode_minus_L=$hardcode_minus_L
8360 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8361 # the resulting binary.
8362 hardcode_shlibpath_var=$hardcode_shlibpath_var
8364 # Set to yes if building a shared library automatically hardcodes DIR into the library
8365 # and all subsequent libraries and executables linked against it.
8366 hardcode_automatic=$hardcode_automatic
8368 # Variables whose values should be saved in libtool wrapper scripts and
8369 # restored at relink time.
8370 variables_saved_for_relink="$variables_saved_for_relink"
8372 # Whether libtool must link a program against all its dependency libraries.
8373 link_all_deplibs=$link_all_deplibs
8375 # Compile-time system search path for libraries
8376 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8378 # Run-time system search path for libraries
8379 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8381 # Fix the shell variable \$srcfile for the compiler.
8382 fix_srcfile_path="$fix_srcfile_path"
8384 # Set to yes if exported symbols are required.
8385 always_export_symbols=$always_export_symbols
8387 # The commands to list exported symbols.
8388 export_symbols_cmds=$lt_export_symbols_cmds
8390 # The commands to extract the exported symbol list from a shared archive.
8391 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8393 # Symbols that should not be listed in the preloaded symbols.
8394 exclude_expsyms=$lt_exclude_expsyms
8396 # Symbols that must always be exported.
8397 include_expsyms=$lt_include_expsyms
8399 # ### END LIBTOOL CONFIG
8406 cat <<\EOF >> "$cfgfile"
8408 # AIX sometimes has problems with the GCC collect2 program. For some
8409 # reason, if we set the COLLECT_NAMES environment variable, the problems
8410 # vanish in a puff of smoke.
8411 if test "X${COLLECT_NAMES+set}" != Xset; then
8413 export COLLECT_NAMES
8419 # We use sed instead of cat because bash on DJGPP gets confused if
8420 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8421 # text mode, it properly converts lines to CR/LF. This bash problem
8422 # is reportedly fixed, but why not run on old versions too?
8423 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8425 mv -f "$cfgfile" "$ofile" || \
8426 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8430 # If there is no Makefile yet, we rely on a make rule to execute
8431 # `config.status --recheck' to rerun these tests and create the
8432 # libtool script then.
8433 test -f Makefile && make "$ltmain"
8438 ac_cpp='$CPP $CPPFLAGS'
8439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8446 # Check whether --with-tags or --without-tags was given.
8447 if test "${with_tags+set}" = set; then
8448 withval="$with_tags"
8452 if test -f "$ltmain" && test -n "$tagnames"; then
8453 if test ! -f "${ofile}"; then
8454 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8455 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8458 if test -z "$LTCC"; then
8459 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8460 if test -z "$LTCC"; then
8461 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8462 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8464 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8465 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8469 # Extract list of available tagged configurations in $ofile.
8470 # Note that this assumes the entire list is on one line.
8471 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8474 for tagname in $tagnames; do
8476 # Check whether tagname contains only valid characters
8477 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8479 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8480 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8481 { (exit 1); exit 1; }; }
8485 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8487 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8488 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8489 { (exit 1); exit 1; }; }
8492 # Update the list of available tags.
8493 if test -n "$tagname"; then
8494 echo appending configuration tag \"$tagname\" to $ofile
8498 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8500 ac_cpp='$CXXCPP $CPPFLAGS'
8501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8508 archive_cmds_need_lc_CXX=no
8509 allow_undefined_flag_CXX=
8510 always_export_symbols_CXX=no
8511 archive_expsym_cmds_CXX=
8512 export_dynamic_flag_spec_CXX=
8513 hardcode_direct_CXX=no
8514 hardcode_libdir_flag_spec_CXX=
8515 hardcode_libdir_flag_spec_ld_CXX=
8516 hardcode_libdir_separator_CXX=
8517 hardcode_minus_L_CXX=no
8518 hardcode_automatic_CXX=no
8520 module_expsym_cmds_CXX=
8521 link_all_deplibs_CXX=unknown
8522 old_archive_cmds_CXX=$old_archive_cmds
8523 no_undefined_flag_CXX=
8524 whole_archive_flag_spec_CXX=
8525 enable_shared_with_static_runtimes_CXX=no
8527 # Dependencies to place before and after the object being linked:
8529 postdep_objects_CXX=
8532 compiler_lib_search_path_CXX=
8534 # Source file extension for C++ test sources.
8537 # Object file extension for compiled C++ test sources.
8541 # Code to be used in simple compile tests
8542 lt_simple_compile_test_code="int some_variable = 0;\n"
8544 # Code to be used in simple link tests
8545 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8547 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8549 # If no C compiler was specified, use CC.
8552 # Allow CC to be a program name with arguments.
8556 # Allow CC to be a program name with arguments.
8561 lt_save_with_gnu_ld=$with_gnu_ld
8562 lt_save_path_LD=$lt_cv_path_LD
8563 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8564 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8566 unset lt_cv_prog_gnu_ld
8568 if test -n "${lt_cv_path_LDCXX+set}"; then
8569 lt_cv_path_LD=$lt_cv_path_LDCXX
8573 test -z "${LDCXX+set}" || LD=$LDCXX
8577 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8579 # We don't want -fno-exception wen compiling C++ code, so set the
8580 # no_builtin_flag separately
8581 if test "$GXX" = yes; then
8582 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8584 lt_prog_compiler_no_builtin_flag_CXX=
8587 if test "$GXX" = yes; then
8588 # Set up default GNU C++ configuration
8591 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8592 if test "${with_gnu_ld+set}" = set; then
8593 withval="$with_gnu_ld"
8594 test "$withval" = no || with_gnu_ld=yes
8599 if test "$GCC" = yes; then
8600 # Check if gcc -print-prog-name=ld gives a path.
8601 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8602 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8605 # gcc leaves a trailing carriage return which upsets mingw
8606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8611 # Accept absolute paths.
8613 re_direlt='/[^/][^/]*/\.\./'
8614 # Canonicalize the path of ld
8615 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8616 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8617 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8619 test -z "$LD" && LD="$ac_prog"
8622 # If it fails, then pretend we aren't using GCC.
8626 # If it is relative, then search for the first ld in PATH.
8630 elif test "$with_gnu_ld" = yes; then
8631 echo "$as_me:$LINENO: checking for GNU ld" >&5
8632 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8634 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8635 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8637 if test "${lt_cv_path_LD+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 if test -z "$LD"; then
8641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8642 for ac_dir in $PATH; do
8644 test -z "$ac_dir" && ac_dir=.
8645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8646 lt_cv_path_LD="$ac_dir/$ac_prog"
8647 # Check to see if the program is GNU ld. I'd rather use --version,
8648 # but apparently some GNU ld's only accept -v.
8649 # Break only if it was the GNU/non-GNU ld that we prefer.
8650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8651 *GNU* | *'with BFD'*)
8652 test "$with_gnu_ld" != no && break
8655 test "$with_gnu_ld" != yes && break
8662 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8667 if test -n "$LD"; then
8668 echo "$as_me:$LINENO: result: $LD" >&5
8669 echo "${ECHO_T}$LD" >&6
8671 echo "$as_me:$LINENO: result: no" >&5
8672 echo "${ECHO_T}no" >&6
8674 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8675 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8676 { (exit 1); exit 1; }; }
8677 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8678 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8679 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8683 case `"$LD" -v 2>&1 </dev/null` in
8684 *GNU* | *'with BFD'*)
8685 lt_cv_prog_gnu_ld=yes
8688 lt_cv_prog_gnu_ld=no
8692 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8693 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
8694 with_gnu_ld=$lt_cv_prog_gnu_ld
8698 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8699 # archiving commands below assume that GNU ld is being used.
8700 if test "$with_gnu_ld" = yes; then
8701 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8702 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'
8704 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8707 # If archive_cmds runs LD, not CC, wlarc should be empty
8708 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8709 # investigate it a little bit more. (MM)
8712 # ancient GNU ld didn't support --whole-archive et. al.
8713 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8714 grep 'no-whole-archive' > /dev/null; then
8715 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8717 whole_archive_flag_spec_CXX=
8723 # A generic and very simple default shared library creation
8724 # command for GNU C++ for the case where it uses the native
8725 # linker, instead of GNU ld. If possible, this setting should
8726 # overridden to take advantage of the native linker features on
8727 # the platform it is being used on.
8728 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8731 # Commands to make compiler produce verbose output that lists
8732 # what "hidden" libraries, object files and flags are used when
8733 # linking a shared library.
8734 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8742 # PORTME: fill in a description of your system's C++ link characteristics
8743 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8744 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8748 # FIXME: insert proper C++ library support
8752 if test "$host_cpu" = ia64; then
8753 # On IA64, the linker does run time linking by default, so we don't
8754 # have to do anything special.
8755 aix_use_runtimelinking=no
8756 exp_sym_flag='-Bexport'
8759 aix_use_runtimelinking=no
8761 # Test if we are trying to use run time linking or normal
8762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8763 # need to do runtime linking.
8764 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8765 for ld_flag in $LDFLAGS; do
8768 aix_use_runtimelinking=yes
8775 exp_sym_flag='-bexport'
8776 no_entry_flag='-bnoentry'
8779 # When large executables or shared objects are built, AIX ld can
8780 # have problems creating the table of contents. If linking a library
8781 # or program results in "error TOC overflow" add -mminimal-toc to
8782 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8783 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8786 hardcode_direct_CXX=yes
8787 hardcode_libdir_separator_CXX=':'
8788 link_all_deplibs_CXX=yes
8790 if test "$GXX" = yes; then
8791 case $host_os in aix4.012|aix4.012.*)
8792 # We only want to do this on AIX 4.2 and lower, the check
8793 # below for broken collect2 doesn't work under 4.3+
8794 collect2name=`${CC} -print-prog-name=collect2`
8795 if test -f "$collect2name" && \
8796 strings "$collect2name" | grep resolve_lib_name >/dev/null
8798 # We have reworked collect2
8799 hardcode_direct_CXX=yes
8801 # We have old collect2
8802 hardcode_direct_CXX=unsupported
8803 # It fails to find uninstalled libraries when the uninstalled
8804 # path is not listed in the libpath. Setting hardcode_minus_L
8805 # to unsupported forces relinking
8806 hardcode_minus_L_CXX=yes
8807 hardcode_libdir_flag_spec_CXX='-L$libdir'
8808 hardcode_libdir_separator_CXX=
8811 shared_flag='-shared'
8814 if test "$host_cpu" = ia64; then
8815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8816 # chokes on -Wl,-G. The following line is correct:
8819 if test "$aix_use_runtimelinking" = yes; then
8820 shared_flag='${wl}-G'
8822 shared_flag='${wl}-bM:SRE'
8827 # It seems that -bexpall does not export symbols beginning with
8828 # underscore (_), so it is better to generate a list of symbols to export.
8829 always_export_symbols_CXX=yes
8830 if test "$aix_use_runtimelinking" = yes; then
8831 # Warning - without using the other runtime loading flags (-brtl),
8832 # -berok will link without error, but may produce a broken library.
8833 allow_undefined_flag_CXX='-berok'
8834 # Determine the default libpath from the value encoded in an empty executable.
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 #include "confdefs.h"
8839 #ifdef F77_DUMMY_MAIN
8843 int F77_DUMMY_MAIN() { return 1; }
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855 (eval $ac_link) 2>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8868 # Check for a 64-bit object if we didn't find anything.
8869 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; }
8872 echo "$as_me: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8876 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8878 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8880 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"
8882 if test "$host_cpu" = ia64; then
8883 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
8884 allow_undefined_flag_CXX="-z nodefs"
8885 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"
8887 # Determine the default libpath from the value encoded in an empty executable.
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8890 #include "confdefs.h"
8892 #ifdef F77_DUMMY_MAIN
8896 int F77_DUMMY_MAIN() { return 1; }
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908 (eval $ac_link) 2>&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8921 # Check for a 64-bit object if we didn't find anything.
8922 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; }
8925 echo "$as_me: failed program was:" >&5
8926 cat conftest.$ac_ext >&5
8928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8931 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8932 # Warning - without using the other run time loading flags,
8933 # -berok will link without error, but may produce a broken library.
8934 no_undefined_flag_CXX=' ${wl}-bernotok'
8935 allow_undefined_flag_CXX=' ${wl}-berok'
8936 # -bexpall does not export symbols beginning with underscore (_)
8937 always_export_symbols_CXX=yes
8938 # Exported symbols can be pulled into shared objects from archives
8939 whole_archive_flag_spec_CXX=' '
8940 archive_cmds_need_lc_CXX=yes
8941 # This is similar to how AIX traditionally builds it's shared libraries.
8942 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'
8947 case $cc_basename in
8949 # FIXME: insert proper C++ library support
8955 cygwin* | mingw* | pw32*)
8956 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
8957 # as there is no search path for DLLs.
8958 hardcode_libdir_flag_spec_CXX='-L$libdir'
8959 allow_undefined_flag_CXX=unsupported
8960 always_export_symbols_CXX=no
8961 enable_shared_with_static_runtimes_CXX=yes
8963 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8964 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'
8965 # If the export-symbols file already is a .def file (1st line
8966 # is EXPORTS), use it as is; otherwise, prepend...
8967 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8968 cp $export_symbols $output_objdir/$soname.def;
8970 echo EXPORTS > $output_objdir/$soname.def;
8971 cat $export_symbols >> $output_objdir/$soname.def;
8973 $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'
8979 darwin* | rhapsody*)
8980 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8981 archive_cmds_need_lc_CXX=no
8983 rhapsody* | darwin1.[012])
8984 allow_undefined_flag_CXX='-undefined suppress'
8987 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
8990 lt_int_apple_cc_single_mod=no
8991 output_verbose_link_cmd='echo'
8992 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8993 lt_int_apple_cc_single_mod=yes
8995 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8996 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8998 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'
9000 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9002 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9003 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9004 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}'
9006 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}'
9008 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}'
9009 hardcode_direct_CXX=no
9010 hardcode_automatic_CXX=yes
9011 hardcode_shlibpath_var_CXX=unsupported
9012 whole_archive_flag_spec_CXX='-all_load $convenience'
9013 link_all_deplibs_CXX=yes
9018 case $cc_basename in
9020 # FIXME: insert proper C++ library support
9024 # Green Hills C++ Compiler
9025 # FIXME: insert proper C++ library support
9029 # FIXME: insert proper C++ library support
9035 # C++ shared libraries reported to be fairly broken before switch to ELF
9039 archive_cmds_need_lc_CXX=no
9042 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9049 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9050 hardcode_libdir_separator_CXX=:
9051 export_dynamic_flag_spec_CXX='${wl}-E'
9052 hardcode_direct_CXX=yes
9053 hardcode_minus_L_CXX=yes # Not in the search PATH,
9054 # but as the default
9055 # location of the library.
9057 case $cc_basename in
9059 # FIXME: insert proper C++ library support
9063 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'
9064 # Commands to make compiler produce verbose output that lists
9065 # what "hidden" libraries, object files and flags are used when
9066 # linking a shared library.
9068 # There doesn't appear to be a way to prevent this compiler from
9069 # explicitly linking system object files so we need to strip them
9070 # from the output so that they don't get included in the library
9072 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'
9075 if test "$GXX" = yes; then
9076 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'
9078 # FIXME: insert proper C++ library support
9085 if test $with_gnu_ld = no; then
9088 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9089 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9090 hardcode_libdir_separator_CXX=:
9093 hardcode_libdir_flag_spec_CXX='-L$libdir'
9096 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9097 hardcode_libdir_separator_CXX=:
9098 export_dynamic_flag_spec_CXX='${wl}-E'
9104 hardcode_direct_CXX=no
9105 hardcode_shlibpath_var_CXX=no
9108 hardcode_direct_CXX=no
9109 hardcode_shlibpath_var_CXX=no
9110 hardcode_minus_L_CXX=yes # Not in the search PATH,
9111 # but as the default
9112 # location of the library.
9115 hardcode_direct_CXX=yes
9116 hardcode_minus_L_CXX=yes # Not in the search PATH,
9117 # but as the default
9118 # location of the library.
9122 case $cc_basename in
9124 # FIXME: insert proper C++ library support
9130 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9133 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9136 # Commands to make compiler produce verbose output that lists
9137 # what "hidden" libraries, object files and flags are used when
9138 # linking a shared library.
9140 # There doesn't appear to be a way to prevent this compiler from
9141 # explicitly linking system object files so we need to strip them
9142 # from the output so that they don't get included in the library
9144 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'
9147 if test "$GXX" = yes; then
9148 if test $with_gnu_ld = no; then
9151 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9154 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'
9159 # FIXME: insert proper C++ library support
9166 case $cc_basename in
9169 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'
9171 # Archives containing C++ object files must be created using
9172 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9173 # necessary to make sure instantiated templates are included
9175 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9178 if test "$GXX" = yes; then
9179 if test "$with_gnu_ld" = no; then
9180 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'
9182 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'
9185 link_all_deplibs_CXX=yes
9188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9189 hardcode_libdir_separator_CXX=:
9192 case $cc_basename in
9194 # Kuck and Associates, Inc. (KAI) C++ Compiler
9196 # KCC will only create a shared library if the output file
9197 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9198 # to its proper name (with version) after linking.
9199 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'
9200 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'
9201 # Commands to make compiler produce verbose output that lists
9202 # what "hidden" libraries, object files and flags are used when
9203 # linking a shared library.
9205 # There doesn't appear to be a way to prevent this compiler from
9206 # explicitly linking system object files so we need to strip them
9207 # from the output so that they don't get included in the library
9209 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'
9211 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9214 # Archives containing C++ object files must be created using
9215 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9216 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9221 archive_cmds_need_lc_CXX=no
9222 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223 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'
9224 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9225 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9226 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9230 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231 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'
9233 runpath_var=LD_RUN_PATH
9234 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9235 hardcode_libdir_separator_CXX=:
9237 # Commands to make compiler produce verbose output that lists
9238 # what "hidden" libraries, object files and flags are used when
9239 # linking a shared library.
9241 # There doesn't appear to be a way to prevent this compiler from
9242 # explicitly linking system object files so we need to strip them
9243 # from the output so that they don't get included in the library
9245 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'
9250 # FIXME: insert proper C++ library support
9254 # FIXME: insert proper C++ library support
9258 case $cc_basename in
9260 # FIXME: insert proper C++ library support
9264 # FIXME: insert proper C++ library support
9270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9271 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9273 hardcode_libdir_flag_spec_CXX='-R$libdir'
9274 hardcode_direct_CXX=yes
9275 hardcode_shlibpath_var_CXX=no
9277 # Workaround some broken pre-1.5 toolchains
9278 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9281 case $cc_basename in
9283 # Kuck and Associates, Inc. (KAI) C++ Compiler
9285 # KCC will only create a shared library if the output file
9286 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9287 # to its proper name (with version) after linking.
9288 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'
9290 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9291 hardcode_libdir_separator_CXX=:
9293 # Archives containing C++ object files must be created using
9294 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9295 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9299 # Rational C++ 2.4.1
9300 # FIXME: insert proper C++ library support
9304 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9305 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'
9307 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9308 hardcode_libdir_separator_CXX=:
9310 # Commands to make compiler produce verbose output that lists
9311 # what "hidden" libraries, object files and flags are used when
9312 # linking a shared library.
9314 # There doesn't appear to be a way to prevent this compiler from
9315 # explicitly linking system object files so we need to strip them
9316 # from the output so that they don't get included in the library
9318 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'
9321 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9322 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9323 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'
9325 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9326 hardcode_libdir_separator_CXX=:
9328 # Commands to make compiler produce verbose output that lists
9329 # what "hidden" libraries, object files and flags are used when
9330 # linking a shared library.
9331 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9334 # FIXME: insert proper C++ library support
9341 case $cc_basename in
9343 # Kuck and Associates, Inc. (KAI) C++ Compiler
9345 # KCC will only create a shared library if the output file
9346 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9347 # to its proper name (with version) after linking.
9348 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'
9350 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9351 hardcode_libdir_separator_CXX=:
9353 # Archives containing C++ object files must be created using
9354 # the KAI C++ compiler.
9355 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9358 # Rational C++ 2.4.1
9359 # FIXME: insert proper C++ library support
9363 allow_undefined_flag_CXX=' -expect_unresolved \*'
9364 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'
9365 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9366 echo "-hidden">> $lib.exp~
9367 $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~
9370 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9371 hardcode_libdir_separator_CXX=:
9373 # Commands to make compiler produce verbose output that lists
9374 # what "hidden" libraries, object files and flags are used when
9375 # linking a shared library.
9377 # There doesn't appear to be a way to prevent this compiler from
9378 # explicitly linking system object files so we need to strip them
9379 # from the output so that they don't get included in the library
9381 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'
9384 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9385 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9386 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'
9388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9389 hardcode_libdir_separator_CXX=:
9391 # Commands to make compiler produce verbose output that lists
9392 # what "hidden" libraries, object files and flags are used when
9393 # linking a shared library.
9394 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9397 # FIXME: insert proper C++ library support
9404 # FIXME: insert proper C++ library support
9408 archive_cmds_need_lc_CXX=no
9409 case $cc_basename in
9411 # FIXME: insert proper C++ library support
9415 # FIXME: insert proper C++ library support
9421 case $cc_basename in
9424 # FIXME: insert proper C++ library support
9429 # FIXME: insert proper C++ library support
9433 # FIXME: insert proper C++ library support
9439 case $cc_basename in
9441 # Sun C++ 4.2, 5.x and Centerline C++
9442 no_undefined_flag_CXX=' -zdefs'
9443 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9444 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9445 $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'
9447 hardcode_libdir_flag_spec_CXX='-R$libdir'
9448 hardcode_shlibpath_var_CXX=no
9450 solaris2.0-5 | solaris2.0-5.*) ;;
9452 # The C++ compiler is used as linker so we must use $wl
9453 # flag to pass the commands to the underlying system
9455 # Supported since Solaris 2.6 (maybe 2.5.1?)
9456 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9459 link_all_deplibs_CXX=yes
9461 # Commands to make compiler produce verbose output that lists
9462 # what "hidden" libraries, object files and flags are used when
9463 # linking a shared library.
9465 # There doesn't appear to be a way to prevent this compiler from
9466 # explicitly linking system object files so we need to strip them
9467 # from the output so that they don't get included in the library
9469 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'
9471 # Archives containing C++ object files must be created using
9472 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9473 # necessary to make sure instantiated templates are included
9475 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9478 # Green Hills C++ Compiler
9479 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9481 # The C++ compiler must be used to create the archive.
9482 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9485 # GNU C++ compiler with Solaris linker
9486 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9487 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9488 if $CC --version | grep -v '^2\.7' > /dev/null; then
9489 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9490 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9491 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9493 # Commands to make compiler produce verbose output that lists
9494 # what "hidden" libraries, object files and flags are used when
9495 # linking a shared library.
9496 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9498 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9500 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9501 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9502 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9504 # Commands to make compiler produce verbose output that lists
9505 # what "hidden" libraries, object files and flags are used when
9506 # linking a shared library.
9507 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9510 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9515 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9516 archive_cmds_need_lc_CXX=no
9519 case $cc_basename in
9521 # NonStop-UX NCC 3.20
9522 # FIXME: insert proper C++ library support
9526 # FIXME: insert proper C++ library support
9532 # FIXME: insert proper C++ library support
9536 # FIXME: insert proper C++ library support
9540 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9541 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9542 test "$ld_shlibs_CXX" = no && can_build_shared=no
9548 ## There is no encapsulation within the following macros, do not change
9549 ## the running order or otherwise move them around unless you know exactly
9550 ## what you are doing...
9552 cat > conftest.$ac_ext <<EOF
9556 Foo (void) { a = 0; }
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563 (eval $ac_compile) 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; then
9567 # Parse the compiler output and extract the necessary
9568 # objects, libraries and library flags.
9570 # Sentinel used to keep track of whether or not we are before
9571 # the conftest object file.
9572 pre_test_object_deps_done=no
9574 # The `*' in the case matches for architectures that use `case' in
9575 # $output_verbose_cmd can trigger glob expansion during the loop
9576 # eval without this substitution.
9577 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9579 for p in `eval $output_verbose_link_cmd`; do
9583 # Some compilers place space between "-{L,R}" and the path.
9586 || test $p = "-R"; then
9593 if test "$pre_test_object_deps_done" = no; then
9596 # Internal compiler library paths should come after those
9597 # provided the user. The postdeps already come after the
9598 # user supplied libs so there is no need to process them.
9599 if test -z "$compiler_lib_search_path_CXX"; then
9600 compiler_lib_search_path_CXX="${prev}${p}"
9602 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9605 # The "-l" case would never come before the object being
9606 # linked, so don't bother handling this case.
9609 if test -z "$postdeps_CXX"; then
9610 postdeps_CXX="${prev}${p}"
9612 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9618 # This assumes that the test object file only shows up
9619 # once in the compiler output.
9620 if test "$p" = "conftest.$objext"; then
9621 pre_test_object_deps_done=yes
9625 if test "$pre_test_object_deps_done" = no; then
9626 if test -z "$predep_objects_CXX"; then
9627 predep_objects_CXX="$p"
9629 predep_objects_CXX="$predep_objects_CXX $p"
9632 if test -z "$postdep_objects_CXX"; then
9633 postdep_objects_CXX="$p"
9635 postdep_objects_CXX="$postdep_objects_CXX $p"
9640 *) ;; # Ignore the rest.
9648 echo "libtool.m4: error: problem compiling CXX test program"
9651 $rm -f confest.$objext
9653 case " $postdeps_CXX " in
9654 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9657 lt_prog_compiler_wl_CXX=
9658 lt_prog_compiler_pic_CXX=
9659 lt_prog_compiler_static_CXX=
9661 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9662 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9664 # C++ specific cases for pic, static, wl, etc.
9665 if test "$GXX" = yes; then
9666 lt_prog_compiler_wl_CXX='-Wl,'
9667 lt_prog_compiler_static_CXX='-static'
9671 # All AIX code is PIC.
9672 if test "$host_cpu" = ia64; then
9673 # AIX 5 now supports IA64 processor
9674 lt_prog_compiler_static_CXX='-Bstatic'
9678 # FIXME: we need at least 68020 code to build shared libraries, but
9679 # adding the `-m68020' flag to GCC prevents building anything better,
9681 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9683 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9684 # PIC is the default for these OSes.
9686 mingw* | os2* | pw32*)
9687 # This hack is so that the source file can tell whether it is being
9688 # built for inclusion in a dll (and should export symbols for example).
9689 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9691 darwin* | rhapsody*)
9692 # PIC is the default on this platform
9693 # Common symbols not allowed in MH_DYLIB files
9694 lt_prog_compiler_pic_CXX='-fno-common'
9697 # DJGPP does not support shared libraries at all
9698 lt_prog_compiler_pic_CXX=
9701 if test -d /usr/nec; then
9702 lt_prog_compiler_pic_CXX=-Kconform_pic
9706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9712 lt_prog_compiler_pic_CXX='-fPIC'
9717 lt_prog_compiler_pic_CXX='-fPIC'
9723 # All AIX code is PIC.
9724 if test "$host_cpu" = ia64; then
9725 # AIX 5 now supports IA64 processor
9726 lt_prog_compiler_static_CXX='-Bstatic'
9728 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9732 case $cc_basename in
9734 # Green Hills C++ Compiler
9735 # _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"
9740 case $cc_basename in
9742 lt_prog_compiler_pic_CXX='-KPIC'
9745 # Green Hills C++ Compiler
9746 lt_prog_compiler_pic_CXX='-pic'
9753 # FreeBSD uses GNU C++
9755 hpux9* | hpux10* | hpux11*)
9756 case $cc_basename in
9758 lt_prog_compiler_wl_CXX='-Wl,'
9759 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9760 if test "$host_cpu" != ia64; then
9761 lt_prog_compiler_pic_CXX='+Z'
9765 lt_prog_compiler_wl_CXX='-Wl,'
9766 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9772 lt_prog_compiler_pic_CXX='+Z'
9780 irix5* | irix6* | nonstopux*)
9781 case $cc_basename in
9783 lt_prog_compiler_wl_CXX='-Wl,'
9784 lt_prog_compiler_static_CXX='-non_shared'
9785 # CC pic flag -KPIC is the default.
9792 case $cc_basename in
9795 lt_prog_compiler_wl_CXX='--backend -Wl,'
9796 lt_prog_compiler_pic_CXX='-fPIC'
9800 lt_prog_compiler_wl_CXX='-Wl,'
9801 lt_prog_compiler_pic_CXX='-KPIC'
9802 lt_prog_compiler_static_CXX='-static'
9806 # Make sure the PIC flag is empty. It appears that all Alpha
9807 # Linux and Compaq Tru64 Unix objects are PIC.
9808 lt_prog_compiler_pic_CXX=
9809 lt_prog_compiler_static_CXX='-non_shared'
9820 case $cc_basename in
9822 lt_prog_compiler_pic_CXX='-W c,exportall'
9830 osf3* | osf4* | osf5*)
9831 case $cc_basename in
9833 lt_prog_compiler_wl_CXX='--backend -Wl,'
9836 # Rational C++ 2.4.1
9837 lt_prog_compiler_pic_CXX='-pic'
9840 # Digital/Compaq C++
9841 lt_prog_compiler_wl_CXX='-Wl,'
9842 # Make sure the PIC flag is empty. It appears that all Alpha
9843 # Linux and Compaq Tru64 Unix objects are PIC.
9844 lt_prog_compiler_pic_CXX=
9845 lt_prog_compiler_static_CXX='-non_shared'
9854 case $cc_basename in
9856 lt_prog_compiler_pic_CXX='-fPIC'
9863 case $cc_basename in
9865 # Sun C++ 4.2, 5.x and Centerline C++
9866 lt_prog_compiler_pic_CXX='-KPIC'
9867 lt_prog_compiler_static_CXX='-Bstatic'
9868 lt_prog_compiler_wl_CXX='-Qoption ld '
9871 # Green Hills C++ Compiler
9872 lt_prog_compiler_pic_CXX='-PIC'
9879 case $cc_basename in
9882 lt_prog_compiler_pic_CXX='-pic'
9883 lt_prog_compiler_static_CXX='-Bstatic'
9887 lt_prog_compiler_pic_CXX='-pic'
9894 case $cc_basename in
9896 # NonStop-UX NCC 3.20
9897 lt_prog_compiler_pic_CXX='-KPIC'
9908 lt_prog_compiler_can_build_shared_CXX=no
9913 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
9914 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9917 # Check to make sure the PIC flag actually works.
9919 if test -n "$lt_prog_compiler_pic_CXX"; then
9920 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
9921 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
9922 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 lt_prog_compiler_pic_works_CXX=no
9926 ac_outfile=conftest.$ac_objext
9927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9928 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
9929 # Insert the option either (1) after the last *FLAGS variable, or
9930 # (2) before a word containing "conftest.", or (3) at the end.
9931 # Note that $ac_compile itself does not contain backslashes and begins
9932 # with a dollar sign (not a hyphen), so the echo should work correctly.
9933 # The option is referenced via a variable to avoid confusing sed.
9934 lt_compile=`echo "$ac_compile" | $SED \
9935 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9937 -e 's:$: $lt_compiler_flag:'`
9938 (eval echo "\"\$as_me:9938: $lt_compile\"" >&5)
9939 (eval "$lt_compile" 2>conftest.err)
9941 cat conftest.err >&5
9942 echo "$as_me:9942: \$? = $ac_status" >&5
9943 if (exit $ac_status) && test -s "$ac_outfile"; then
9944 # The compiler can only warn and ignore the option if not recognized
9945 # So say no if there are warnings
9946 if test ! -s conftest.err; then
9947 lt_prog_compiler_pic_works_CXX=yes
9953 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
9954 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
9956 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
9957 case $lt_prog_compiler_pic_CXX in
9959 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
9962 lt_prog_compiler_pic_CXX=
9963 lt_prog_compiler_can_build_shared_CXX=no
9968 # For platforms which do not support PIC, -DPIC is meaningless:
9970 lt_prog_compiler_pic_CXX=
9973 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
9977 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9978 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9979 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 lt_cv_prog_compiler_c_o_CXX=no
9983 $rm -r conftest 2>/dev/null
9987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9989 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
9990 # that will create temporary files in the current directory regardless of
9991 # the output directory. Thus, making CWD read-only will cause this test
9992 # to fail, enabling locking or at least warning the user not to do parallel
9996 lt_compiler_flag="-o out/conftest2.$ac_objext"
9997 # Insert the option either (1) after the last *FLAGS variable, or
9998 # (2) before a word containing "conftest.", or (3) at the end.
9999 # Note that $ac_compile itself does not contain backslashes and begins
10000 # with a dollar sign (not a hyphen), so the echo should work correctly.
10001 lt_compile=`echo "$ac_compile" | $SED \
10002 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10004 -e 's:$: $lt_compiler_flag:'`
10005 (eval echo "\"\$as_me:10005: $lt_compile\"" >&5)
10006 (eval "$lt_compile" 2>out/conftest.err)
10008 cat out/conftest.err >&5
10009 echo "$as_me:10009: \$? = $ac_status" >&5
10010 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10012 # The compiler can only warn and ignore the option if not recognized
10013 # So say no if there are warnings
10014 if test ! -s out/conftest.err; then
10015 lt_cv_prog_compiler_c_o_CXX=yes
10019 $rm conftest* out/*
10026 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10027 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10030 hard_links="nottested"
10031 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10032 # do not overwrite the value of need_locks provided by the user
10033 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10034 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10039 ln conftest.a conftest.b 2>&5 || hard_links=no
10040 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10041 echo "$as_me:$LINENO: result: $hard_links" >&5
10042 echo "${ECHO_T}$hard_links" >&6
10043 if test "$hard_links" = no; then
10044 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10045 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10052 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10053 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10055 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10058 # If we're using GNU nm, then we don't want the "-C" option.
10059 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10060 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10061 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'
10063 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'
10067 export_symbols_cmds_CXX="$ltdll_cmds"
10070 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10073 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10077 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10078 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10079 test "$ld_shlibs_CXX" = no && can_build_shared=no
10081 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10082 if test "$GCC" = yes; then
10083 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10087 # Do we need to explicitly link libc?
10089 case "x$archive_cmds_need_lc_CXX" in
10091 # Assume -lc should be added
10092 archive_cmds_need_lc_CXX=yes
10094 if test "$enable_shared" = yes && test "$GCC" = yes; then
10095 case $archive_cmds_CXX in
10097 # FIXME: we may have to deal with multi-command sequences.
10100 # Test whether the compiler implicitly links with -lc since on some
10101 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10102 # to ld, don't add -lc before -lgcc.
10103 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10104 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10109 (eval $ac_compile) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } 2>conftest.err; then
10115 libobjs=conftest.$ac_objext
10117 wl=$lt_prog_compiler_wl_CXX
10123 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10124 allow_undefined_flag_CXX=
10125 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10126 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }
10131 archive_cmds_need_lc_CXX=no
10133 archive_cmds_need_lc_CXX=yes
10135 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10137 cat conftest.err 1>&5
10140 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10141 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10148 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10149 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10150 hardcode_action_CXX=
10151 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10152 test -n "$runpath_var CXX" || \
10153 test "X$hardcode_automatic_CXX"="Xyes" ; then
10155 # We can hardcode non-existant directories.
10156 if test "$hardcode_direct_CXX" != no &&
10157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10158 # have to relink, otherwise we might link with an installed library
10159 # when we should be linking with a yet-to-be-installed one
10160 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10161 test "$hardcode_minus_L_CXX" != no; then
10162 # Linking always hardcodes the temporary library directory.
10163 hardcode_action_CXX=relink
10165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10166 hardcode_action_CXX=immediate
10169 # We cannot hardcode anything, or else we can only hardcode existing
10171 hardcode_action_CXX=unsupported
10173 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10174 echo "${ECHO_T}$hardcode_action_CXX" >&6
10176 if test "$hardcode_action_CXX" = relink; then
10177 # Fast installation is not supported
10178 enable_fast_install=no
10179 elif test "$shlibpath_overrides_runpath" = yes ||
10180 test "$enable_shared" = no; then
10181 # Fast installation is not necessary
10182 enable_fast_install=needless
10187 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10188 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10189 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10191 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10192 echo "$as_me:$LINENO: result: yes" >&5
10193 echo "${ECHO_T}yes" >&6
10195 # FIXME - insert some real tests, host_os isn't really good enough
10198 if test -n "$STRIP" ; then
10199 striplib="$STRIP -x"
10200 echo "$as_me:$LINENO: result: yes" >&5
10201 echo "${ECHO_T}yes" >&6
10203 echo "$as_me:$LINENO: result: no" >&5
10204 echo "${ECHO_T}no" >&6
10208 echo "$as_me:$LINENO: result: no" >&5
10209 echo "${ECHO_T}no" >&6
10214 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10215 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10216 library_names_spec=
10217 libname_spec='lib$name'
10221 postuninstall_cmds=
10225 shlibpath_overrides_runpath=unknown
10227 dynamic_linker="$host_os ld.so"
10228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10229 if test "$GCC" = yes; then
10230 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10231 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10232 # if the path contains ";" then we assume it to be the separator
10233 # otherwise default to the standard path separator (i.e. ":") - it is
10234 # assumed that no part of a normal pathname contains ";" but that should
10235 # okay in the real world where ";" in dirpaths is itself problematic.
10236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10241 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10243 need_lib_prefix=unknown
10244 hardcode_into_libs=no
10246 # when you set need_version to no, make sure it does not cause -set_version
10247 # flags to be left without arguments
10248 need_version=unknown
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10254 shlibpath_var=LIBPATH
10256 # AIX 3 has no versioning support, so we append a major version to the name.
10257 soname_spec='${libname}${release}${shared_ext}$major'
10264 hardcode_into_libs=yes
10265 if test "$host_cpu" = ia64; then
10266 # AIX 5 supports IA64
10267 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10268 shlibpath_var=LD_LIBRARY_PATH
10270 # With GCC up to 2.95.x, collect2 would create an import file
10271 # for dependence libraries. The import file would start with
10272 # the line `#! .'. This would cause the generated library to
10273 # depend on `.', always an invalid library. This was fixed in
10274 # development snapshots of GCC prior to 3.0.
10276 aix4 | aix4.[01] | aix4.[01].*)
10277 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10279 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10282 can_build_shared=no
10286 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10287 # soname into executable. Probably we can add versioning support to
10288 # collect2, so additional links can be useful in future.
10289 if test "$aix_use_runtimelinking" = yes; then
10290 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10291 # instead of lib<name>.a to let people know that these are not
10292 # typical AIX shared libraries.
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 # We preserve .a as extension for shared libraries through AIX4.2
10296 # and later when we are not doing run time linking.
10297 library_names_spec='${libname}${release}.a $libname.a'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LIBPATH
10305 library_names_spec='$libname.ixlibrary $libname.a'
10306 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10307 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'
10311 library_names_spec='${libname}${shared_ext}'
10312 dynamic_linker="$host_os ld.so"
10313 shlibpath_var=LIBRARY_PATH
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320 soname_spec='${libname}${release}${shared_ext}$major'
10321 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10324 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10325 # the default ld.so.conf also contains /usr/contrib/lib and
10326 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10327 # libtool to hard-code these into programs
10330 cygwin* | mingw* | pw32*)
10331 version_type=windows
10336 case $GCC,$host_os in
10337 yes,cygwin* | yes,mingw* | yes,pw32*)
10338 library_names_spec='$libname.dll.a'
10339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10340 postinstall_cmds='base_file=`basename \${file}`~
10341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10342 dldir=$destdir/`dirname \$dlpath`~
10343 test -d \$dldir || mkdir -p \$dldir~
10344 $install_prog $dir/$dlname \$dldir/$dlname'
10345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10346 dlpath=$dir/\$dldll~
10348 shlibpath_overrides_runpath=yes
10352 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10353 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10354 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10357 # MinGW DLLs use traditional 'lib' prefix
10358 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10359 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10360 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10361 # It is most probably a Windows format PATH printed by
10362 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10363 # path with ; separators, and with drive letters. We can handle the
10364 # drive letters (cygwin fileutils understands them), so leave them,
10365 # especially as we might pass files found there to a mingw objdump,
10366 # which wouldn't understand a cygwinified path. Ahh.
10367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10373 # pw32 DLLs use 'pw' prefix rather than 'lib'
10374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10383 dynamic_linker='Win32 ld.exe'
10384 # FIXME: first we should search . and the directory the executable is in
10388 darwin* | rhapsody*)
10389 dynamic_linker="$host_os dyld"
10390 version_type=darwin
10393 # FIXME: Relying on posixy $() will cause problems for
10394 # cross-compilation, but unfortunately the echo tests do not
10395 # yet detect zsh echo's removal of \ escapes.
10396 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10397 soname_spec='${libname}${release}${major}$shared_ext'
10398 shlibpath_overrides_runpath=yes
10399 shlibpath_var=DYLD_LIBRARY_PATH
10400 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10401 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10402 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10403 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"`
10405 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10413 soname_spec='${libname}${release}${shared_ext}$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10422 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10423 version_type=freebsd-$objformat
10424 case $version_type in
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10435 shlibpath_var=LD_LIBRARY_PATH
10438 shlibpath_overrides_runpath=yes
10440 freebsd3.01* | freebsdelf3.01*)
10441 shlibpath_overrides_runpath=yes
10442 hardcode_into_libs=yes
10445 shlibpath_overrides_runpath=no
10446 hardcode_into_libs=yes
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 hardcode_into_libs=yes
10461 hpux9* | hpux10* | hpux11*)
10462 # Give a soname corresponding to the major version so that dld.sl refuses to
10463 # link against other versions.
10467 case "$host_cpu" in
10470 hardcode_into_libs=yes
10471 dynamic_linker="$host_os dld.so"
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 if test "X$HPUX_IA64_MODE" = X32; then
10477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10485 hardcode_into_libs=yes
10486 dynamic_linker="$host_os dld.sl"
10487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10496 dynamic_linker="$host_os dld.sl"
10497 shlibpath_var=SHLIB_PATH
10498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10503 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10504 postinstall_cmds='chmod 555 $lib'
10507 irix5* | irix6* | nonstopux*)
10509 nonstopux*) version_type=nonstopux ;;
10511 if test "$lt_cv_prog_gnu_ld" = yes; then
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10522 irix5* | nonstopux*)
10523 libsuff= shlibsuff=
10526 case $LD in # libtool.m4 will add one of these switches to LD
10527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10528 libsuff= shlibsuff= libmagic=32-bit;;
10529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10530 libsuff=32 shlibsuff=N32 libmagic=N32;;
10531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10533 *) libsuff= shlibsuff= libmagic=never-match;;
10537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10538 shlibpath_overrides_runpath=no
10539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10541 hardcode_into_libs=yes
10544 # No shared lib support for Linux oldld, aout, or coff.
10545 linux*oldld* | linux*aout* | linux*coff*)
10549 # This must be Linux ELF.
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559 # This implies no fast_install, which is unacceptable.
10560 # Some rework will be needed to allow for fast_install
10561 # before this can be enabled.
10562 hardcode_into_libs=yes
10564 # We used to test for /lib/ld.so.1 and disable shared libraries on
10565 # powerpc, because MkLinux only supported shared libraries with the
10566 # GNU dynamic linker. Since this was broken with cross compilers,
10567 # most powerpc-linux boxes support dynamic linking these days and
10568 # people can always --disable-shared, the test was removed, and we
10569 # assume the GNU/Linux dynamic linker is in use.
10570 dynamic_linker='GNU/Linux ld.so'
10577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10580 dynamic_linker='NetBSD (a.out) ld.so'
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10583 soname_spec='${libname}${release}${shared_ext}$major'
10584 dynamic_linker='NetBSD ld.elf_so'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 hardcode_into_libs=yes
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 shlibpath_overrides_runpath=yes
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 shlibpath_var=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath=yes
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10617 openbsd2.[89] | openbsd2.[89].*)
10618 shlibpath_overrides_runpath=no
10621 shlibpath_overrides_runpath=yes
10625 shlibpath_overrides_runpath=yes
10630 libname_spec='$name'
10633 library_names_spec='$libname${shared_ext} $libname.a'
10634 dynamic_linker='OS/2 ld.exe'
10635 shlibpath_var=LIBPATH
10638 osf3* | osf4* | osf5*)
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653 shlibpath_var=LD_LIBRARY_PATH
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 shlibpath_overrides_runpath=yes
10664 hardcode_into_libs=yes
10665 # ldd complains unless libraries are executable
10666 postinstall_cmds='chmod +x $lib'
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes
10675 if test "$with_gnu_ld" = yes; then
10681 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 case $host_vendor in
10688 shlibpath_overrides_runpath=no
10690 export_dynamic_flag_spec='${wl}-Blargedynsym'
10691 runpath_var=LD_RUN_PATH
10699 shlibpath_overrides_runpath=no
10700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10706 if test -d /usr/nec ;then
10708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10709 soname_spec='$libname${shared_ext}.$major'
10710 shlibpath_var=LD_LIBRARY_PATH
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 shlibpath_var=LD_LIBRARY_PATH
10725 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10726 echo "${ECHO_T}$dynamic_linker" >&6
10727 test "$dynamic_linker" = no && can_build_shared=no
10729 if test "x$enable_dlopen" != xyes; then
10730 enable_dlopen=unknown
10731 enable_dlopen_self=unknown
10732 enable_dlopen_self_static=unknown
10739 lt_cv_dlopen="load_add_on"
10741 lt_cv_dlopen_self=yes
10745 lt_cv_dlopen="LoadLibrary"
10750 lt_cv_dlopen="dlopen"
10755 # if libdl is installed we need to link against it
10756 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10757 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10758 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 ac_check_lib_save_LIBS=$LIBS
10763 cat >conftest.$ac_ext <<_ACEOF
10764 #line $LINENO "configure"
10765 #include "confdefs.h"
10767 /* Override any gcc2 internal prototype to avoid an error. */
10771 /* We use char because int might match the return type of a gcc2
10772 builtin and then its argument prototype would still apply. */
10774 #ifdef F77_DUMMY_MAIN
10775 # ifdef __cplusplus
10778 int F77_DUMMY_MAIN() { return 1; }
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790 (eval $ac_link) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_cv_lib_dl_dlopen=yes
10802 echo "$as_me: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 ac_cv_lib_dl_dlopen=no
10806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10809 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10810 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10811 if test $ac_cv_lib_dl_dlopen = yes; then
10812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10815 lt_cv_dlopen="dyld"
10817 lt_cv_dlopen_self=yes
10824 echo "$as_me:$LINENO: checking for shl_load" >&5
10825 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10826 if test "${ac_cv_func_shl_load+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 cat >conftest.$ac_ext <<_ACEOF
10830 #line $LINENO "configure"
10831 #include "confdefs.h"
10832 /* System header to define __stub macros and hopefully few prototypes,
10833 which can conflict with char shl_load (); below. */
10834 #include <assert.h>
10835 /* Override any gcc2 internal prototype to avoid an error. */
10839 /* We use char because int might match the return type of a gcc2
10840 builtin and then its argument prototype would still apply. */
10844 #ifdef F77_DUMMY_MAIN
10845 # ifdef __cplusplus
10848 int F77_DUMMY_MAIN() { return 1; }
10853 /* The GNU C library defines this for functions which it implements
10854 to always fail with ENOSYS. Some functions are actually named
10855 something starting with __ and the normal name is an alias. */
10856 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868 (eval $ac_link) 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try='test -s conftest$ac_exeext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_cv_func_shl_load=yes
10880 echo "$as_me: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 ac_cv_func_shl_load=no
10884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10886 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10887 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10888 if test $ac_cv_func_shl_load = yes; then
10889 lt_cv_dlopen="shl_load"
10891 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10892 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10893 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 ac_check_lib_save_LIBS=$LIBS
10898 cat >conftest.$ac_ext <<_ACEOF
10899 #line $LINENO "configure"
10900 #include "confdefs.h"
10902 /* Override any gcc2 internal prototype to avoid an error. */
10906 /* We use char because int might match the return type of a gcc2
10907 builtin and then its argument prototype would still apply. */
10909 #ifdef F77_DUMMY_MAIN
10910 # ifdef __cplusplus
10913 int F77_DUMMY_MAIN() { return 1; }
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925 (eval $ac_link) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } &&
10929 { ac_try='test -s conftest$ac_exeext'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 ac_cv_lib_dld_shl_load=yes
10937 echo "$as_me: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 ac_cv_lib_dld_shl_load=no
10941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10944 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10945 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10946 if test $ac_cv_lib_dld_shl_load = yes; then
10947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10949 echo "$as_me:$LINENO: checking for dlopen" >&5
10950 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10951 if test "${ac_cv_func_dlopen+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 cat >conftest.$ac_ext <<_ACEOF
10955 #line $LINENO "configure"
10956 #include "confdefs.h"
10957 /* System header to define __stub macros and hopefully few prototypes,
10958 which can conflict with char dlopen (); below. */
10959 #include <assert.h>
10960 /* Override any gcc2 internal prototype to avoid an error. */
10964 /* We use char because int might match the return type of a gcc2
10965 builtin and then its argument prototype would still apply. */
10969 #ifdef F77_DUMMY_MAIN
10970 # ifdef __cplusplus
10973 int F77_DUMMY_MAIN() { return 1; }
10978 /* The GNU C library defines this for functions which it implements
10979 to always fail with ENOSYS. Some functions are actually named
10980 something starting with __ and the normal name is an alias. */
10981 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10993 (eval $ac_link) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -s conftest$ac_exeext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_cv_func_dlopen=yes
11005 echo "$as_me: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 ac_cv_func_dlopen=no
11009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11011 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11012 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11013 if test $ac_cv_func_dlopen = yes; then
11014 lt_cv_dlopen="dlopen"
11016 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11017 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11018 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 ac_check_lib_save_LIBS=$LIBS
11023 cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11025 #include "confdefs.h"
11027 /* Override any gcc2 internal prototype to avoid an error. */
11031 /* We use char because int might match the return type of a gcc2
11032 builtin and then its argument prototype would still apply. */
11034 #ifdef F77_DUMMY_MAIN
11035 # ifdef __cplusplus
11038 int F77_DUMMY_MAIN() { return 1; }
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050 (eval $ac_link) 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 { ac_try='test -s conftest$ac_exeext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 ac_cv_lib_dl_dlopen=yes
11062 echo "$as_me: failed program was:" >&5
11063 cat conftest.$ac_ext >&5
11064 ac_cv_lib_dl_dlopen=no
11066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11069 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11070 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11071 if test $ac_cv_lib_dl_dlopen = yes; then
11072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11074 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11075 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11076 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 ac_check_lib_save_LIBS=$LIBS
11080 LIBS="-lsvld $LIBS"
11081 cat >conftest.$ac_ext <<_ACEOF
11082 #line $LINENO "configure"
11083 #include "confdefs.h"
11085 /* Override any gcc2 internal prototype to avoid an error. */
11089 /* We use char because int might match the return type of a gcc2
11090 builtin and then its argument prototype would still apply. */
11092 #ifdef F77_DUMMY_MAIN
11093 # ifdef __cplusplus
11096 int F77_DUMMY_MAIN() { return 1; }
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108 (eval $ac_link) 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } &&
11112 { ac_try='test -s conftest$ac_exeext'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 ac_cv_lib_svld_dlopen=yes
11120 echo "$as_me: failed program was:" >&5
11121 cat conftest.$ac_ext >&5
11122 ac_cv_lib_svld_dlopen=no
11124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11125 LIBS=$ac_check_lib_save_LIBS
11127 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11128 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11129 if test $ac_cv_lib_svld_dlopen = yes; then
11130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11132 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11133 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11134 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 ac_check_lib_save_LIBS=$LIBS
11139 cat >conftest.$ac_ext <<_ACEOF
11140 #line $LINENO "configure"
11141 #include "confdefs.h"
11143 /* Override any gcc2 internal prototype to avoid an error. */
11147 /* We use char because int might match the return type of a gcc2
11148 builtin and then its argument prototype would still apply. */
11150 #ifdef F77_DUMMY_MAIN
11151 # ifdef __cplusplus
11154 int F77_DUMMY_MAIN() { return 1; }
11164 rm -f conftest.$ac_objext conftest$ac_exeext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 ac_cv_lib_dld_dld_link=yes
11178 echo "$as_me: failed program was:" >&5
11179 cat conftest.$ac_ext >&5
11180 ac_cv_lib_dld_dld_link=no
11182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_lib_save_LIBS
11185 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11186 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11187 if test $ac_cv_lib_dld_dld_link = yes; then
11188 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11209 if test "x$lt_cv_dlopen" != xno; then
11215 case $lt_cv_dlopen in
11217 save_CPPFLAGS="$CPPFLAGS"
11218 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11220 save_LDFLAGS="$LDFLAGS"
11221 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11224 LIBS="$lt_cv_dlopen_libs $LIBS"
11226 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11227 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11228 if test "${lt_cv_dlopen_self+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 if test "$cross_compiling" = yes; then :
11232 lt_cv_dlopen_self=cross
11234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11235 lt_status=$lt_dlunknown
11236 cat > conftest.$ac_ext <<EOF
11237 #line 11237 "configure"
11238 #include "confdefs.h"
11247 # define LT_DLGLOBAL RTLD_GLOBAL
11250 # define LT_DLGLOBAL DL_GLOBAL
11252 # define LT_DLGLOBAL 0
11256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11257 find out it does not work in some platform. */
11258 #ifndef LT_DLLAZY_OR_NOW
11260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11263 # define LT_DLLAZY_OR_NOW DL_LAZY
11266 # define LT_DLLAZY_OR_NOW RTLD_NOW
11269 # define LT_DLLAZY_OR_NOW DL_NOW
11271 # define LT_DLLAZY_OR_NOW 0
11279 extern "C" void exit (int);
11282 void fnord() { int i=42;}
11285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11286 int status = $lt_dlunknown;
11290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11292 /* dlclose (self); */
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11303 (./conftest; exit; ) 2>/dev/null
11305 case x$lt_status in
11306 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11307 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11308 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11311 # compilation failed
11312 lt_cv_dlopen_self=no
11319 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11320 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11322 if test "x$lt_cv_dlopen_self" = xyes; then
11323 LDFLAGS="$LDFLAGS $link_static_flag"
11324 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11325 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11326 if test "${lt_cv_dlopen_self_static+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 if test "$cross_compiling" = yes; then :
11330 lt_cv_dlopen_self_static=cross
11332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11333 lt_status=$lt_dlunknown
11334 cat > conftest.$ac_ext <<EOF
11335 #line 11335 "configure"
11336 #include "confdefs.h"
11345 # define LT_DLGLOBAL RTLD_GLOBAL
11348 # define LT_DLGLOBAL DL_GLOBAL
11350 # define LT_DLGLOBAL 0
11354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11355 find out it does not work in some platform. */
11356 #ifndef LT_DLLAZY_OR_NOW
11358 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11361 # define LT_DLLAZY_OR_NOW DL_LAZY
11364 # define LT_DLLAZY_OR_NOW RTLD_NOW
11367 # define LT_DLLAZY_OR_NOW DL_NOW
11369 # define LT_DLLAZY_OR_NOW 0
11377 extern "C" void exit (int);
11380 void fnord() { int i=42;}
11383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11384 int status = $lt_dlunknown;
11388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11389 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11390 /* dlclose (self); */
11396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11397 (eval $ac_link) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11401 (./conftest; exit; ) 2>/dev/null
11403 case x$lt_status in
11404 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11405 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11406 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11409 # compilation failed
11410 lt_cv_dlopen_self_static=no
11417 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11418 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11421 CPPFLAGS="$save_CPPFLAGS"
11422 LDFLAGS="$save_LDFLAGS"
11427 case $lt_cv_dlopen_self in
11428 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11429 *) enable_dlopen_self=unknown ;;
11432 case $lt_cv_dlopen_self_static in
11433 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11434 *) enable_dlopen_self_static=unknown ;;
11439 # The else clause should only fire when bootstrapping the
11440 # libtool distribution, otherwise you forgot to ship ltmain.sh
11441 # with your package, and you will get complaints that there are
11442 # no rules to generate ltmain.sh.
11443 if test -f "$ltmain"; then
11444 # See if we are running on zsh, and set the options which allow our commands through
11445 # without removal of \ escapes.
11446 if test -n "${ZSH_VERSION+set}" ; then
11447 setopt NO_GLOB_SUBST
11449 # Now quote all the things that may contain metacharacters while being
11450 # careful not to overquote the AC_SUBSTed values. We take copies of the
11451 # variables and quote the copies for generation of the libtool script.
11452 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11453 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11454 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11455 deplibs_check_method reload_flag reload_cmds need_locks \
11456 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11457 lt_cv_sys_global_symbol_to_c_name_address \
11458 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11459 old_postinstall_cmds old_postuninstall_cmds \
11463 lt_prog_compiler_wl_CXX \
11464 lt_prog_compiler_pic_CXX \
11465 lt_prog_compiler_static_CXX \
11466 lt_prog_compiler_no_builtin_flag_CXX \
11467 export_dynamic_flag_spec_CXX \
11468 thread_safe_flag_spec_CXX \
11469 whole_archive_flag_spec_CXX \
11470 enable_shared_with_static_runtimes_CXX \
11471 old_archive_cmds_CXX \
11472 old_archive_from_new_cmds_CXX \
11473 predep_objects_CXX \
11474 postdep_objects_CXX \
11477 compiler_lib_search_path_CXX \
11479 archive_expsym_cmds_CXX \
11480 postinstall_cmds_CXX \
11481 postuninstall_cmds_CXX \
11482 old_archive_from_expsyms_cmds_CXX \
11483 allow_undefined_flag_CXX \
11484 no_undefined_flag_CXX \
11485 export_symbols_cmds_CXX \
11486 hardcode_libdir_flag_spec_CXX \
11487 hardcode_libdir_flag_spec_ld_CXX \
11488 hardcode_libdir_separator_CXX \
11489 hardcode_automatic_CXX \
11491 module_expsym_cmds_CXX \
11492 lt_cv_prog_compiler_c_o_CXX \
11493 exclude_expsyms_CXX \
11494 include_expsyms_CXX; do
11497 old_archive_cmds_CXX | \
11498 old_archive_from_new_cmds_CXX | \
11499 archive_cmds_CXX | \
11500 archive_expsym_cmds_CXX | \
11501 module_cmds_CXX | \
11502 module_expsym_cmds_CXX | \
11503 old_archive_from_expsyms_cmds_CXX | \
11504 export_symbols_cmds_CXX | \
11505 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11506 postinstall_cmds | postuninstall_cmds | \
11507 old_postinstall_cmds | old_postuninstall_cmds | \
11508 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11509 # Double-quote double-evaled strings.
11510 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11519 *'\$0 --fallback-echo"')
11520 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11526 cat <<__EOF__ >> "$cfgfile"
11527 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11531 # Shell to use when invoking shell scripts.
11534 # Whether or not to build shared libraries.
11535 build_libtool_libs=$enable_shared
11537 # Whether or not to build static libraries.
11538 build_old_libs=$enable_static
11540 # Whether or not to add -lc for building shared libraries.
11541 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11543 # Whether or not to disallow shared libs when runtime libs are static
11544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11546 # Whether or not to optimize for fast installation.
11547 fast_install=$enable_fast_install
11550 host_alias=$host_alias
11553 # An echo program that does not interpret backslashes.
11558 AR_FLAGS=$lt_AR_FLAGS
11563 # A language-specific compiler.
11564 CC=$lt_compiler_CXX
11566 # Is the compiler the GNU C compiler?
11572 # The linker used to build libraries.
11575 # Whether we need hard or soft links.
11578 # A BSD-compatible nm program.
11581 # A symbol stripping program
11584 # Used to examine libraries when file_magic_cmd begins "file"
11585 MAGIC_CMD=$MAGIC_CMD
11587 # Used on cygwin: DLL creation program.
11590 # Used on cygwin: object dumper.
11593 # Used on cygwin: assembler.
11596 # The name of the directory that contains temporary libtool files.
11599 # How to create reloadable object files.
11600 reload_flag=$lt_reload_flag
11601 reload_cmds=$lt_reload_cmds
11603 # How to pass a linker flag through the compiler.
11604 wl=$lt_lt_prog_compiler_wl_CXX
11606 # Object file suffix (normally "o").
11607 objext="$ac_objext"
11609 # Old archive suffix (normally "a").
11612 # Shared library suffix (normally ".so").
11615 # Executable file suffix (normally "").
11618 # Additional compiler flags for building library objects.
11619 pic_flag=$lt_lt_prog_compiler_pic_CXX
11622 # What is the maximum length of a command?
11623 max_cmd_len=$lt_cv_sys_max_cmd_len
11625 # Does compiler simultaneously support -c and -o options?
11626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11628 # Must we lock files when doing compilation ?
11629 need_locks=$lt_need_locks
11631 # Do we need the lib prefix for modules?
11632 need_lib_prefix=$need_lib_prefix
11634 # Do we need a version for libraries?
11635 need_version=$need_version
11637 # Whether dlopen is supported.
11638 dlopen_support=$enable_dlopen
11640 # Whether dlopen of programs is supported.
11641 dlopen_self=$enable_dlopen_self
11643 # Whether dlopen of statically linked programs is supported.
11644 dlopen_self_static=$enable_dlopen_self_static
11646 # Compiler flag to prevent dynamic linking.
11647 link_static_flag=$lt_lt_prog_compiler_static_CXX
11649 # Compiler flag to turn off builtin functions.
11650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11652 # Compiler flag to allow reflexive dlopens.
11653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11655 # Compiler flag to generate shared objects directly from archives.
11656 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11658 # Compiler flag to generate thread-safe objects.
11659 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11661 # Library versioning type.
11662 version_type=$version_type
11664 # Format of library name prefix.
11665 libname_spec=$lt_libname_spec
11667 # List of archive names. First name is the real one, the rest are links.
11668 # The last name is the one that the linker finds with -lNAME.
11669 library_names_spec=$lt_library_names_spec
11671 # The coded name of the library, if different from the real name.
11672 soname_spec=$lt_soname_spec
11674 # Commands used to build and install an old-style archive.
11676 old_archive_cmds=$lt_old_archive_cmds_CXX
11677 old_postinstall_cmds=$lt_old_postinstall_cmds
11678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11680 # Create an old-style archive from a shared archive.
11681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11683 # Create a temporary old-style archive to link instead of a shared archive.
11684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11686 # Commands used to build and install a shared archive.
11687 archive_cmds=$lt_archive_cmds_CXX
11688 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11689 postinstall_cmds=$lt_postinstall_cmds
11690 postuninstall_cmds=$lt_postuninstall_cmds
11692 # Commands used to build a loadable module (assumed same as above if empty)
11693 module_cmds=$lt_module_cmds_CXX
11694 module_expsym_cmds=$lt_module_expsym_cmds_CXX
11696 # Commands to strip libraries.
11697 old_striplib=$lt_old_striplib
11698 striplib=$lt_striplib
11700 # Dependencies to place before the objects being linked to create a
11702 predep_objects=$lt_predep_objects_CXX
11704 # Dependencies to place after the objects being linked to create a
11706 postdep_objects=$lt_postdep_objects_CXX
11708 # Dependencies to place before the objects being linked to create a
11710 predeps=$lt_predeps_CXX
11712 # Dependencies to place after the objects being linked to create a
11714 postdeps=$lt_postdeps_CXX
11716 # The library search path used internally by the compiler when linking
11717 # a shared library.
11718 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11720 # Method to check whether dependent libraries are shared objects.
11721 deplibs_check_method=$lt_deplibs_check_method
11723 # Command to use when deplibs_check_method == file_magic.
11724 file_magic_cmd=$lt_file_magic_cmd
11726 # Flag that allows shared libraries with undefined symbols to be built.
11727 allow_undefined_flag=$lt_allow_undefined_flag_CXX
11729 # Flag that forces no undefined symbols.
11730 no_undefined_flag=$lt_no_undefined_flag_CXX
11732 # Commands used to finish a libtool library installation in a directory.
11733 finish_cmds=$lt_finish_cmds
11735 # Same as above, but a single script fragment to be evaled but not shown.
11736 finish_eval=$lt_finish_eval
11738 # Take the output of nm and produce a listing of raw symbols and C names.
11739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11741 # Transform the output of nm in a proper C declaration
11742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11744 # Transform the output of nm in a C name address pair
11745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11747 # This is the shared library runtime path variable.
11748 runpath_var=$runpath_var
11750 # This is the shared library path variable.
11751 shlibpath_var=$shlibpath_var
11753 # Is shlibpath searched before the hard-coded library search path?
11754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11756 # How to hardcode a shared library path into an executable.
11757 hardcode_action=$hardcode_action_CXX
11759 # Whether we should hardcode library paths into libraries.
11760 hardcode_into_libs=$hardcode_into_libs
11762 # Flag to hardcode \$libdir into a binary during linking.
11763 # This must work even if \$libdir does not exist.
11764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11766 # If ld is used when linking, flag to hardcode \$libdir into
11767 # a binary during linking. This must work even if \$libdir does
11769 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
11771 # Whether we need a single -rpath flag with a separated argument.
11772 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11774 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11775 # resulting binary.
11776 hardcode_direct=$hardcode_direct_CXX
11778 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11779 # resulting binary.
11780 hardcode_minus_L=$hardcode_minus_L_CXX
11782 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11783 # the resulting binary.
11784 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11786 # Set to yes if building a shared library automatically hardcodes DIR into the library
11787 # and all subsequent libraries and executables linked against it.
11788 hardcode_automatic=$hardcode_automatic_CXX
11790 # Variables whose values should be saved in libtool wrapper scripts and
11791 # restored at relink time.
11792 variables_saved_for_relink="$variables_saved_for_relink"
11794 # Whether libtool must link a program against all its dependency libraries.
11795 link_all_deplibs=$link_all_deplibs_CXX
11797 # Compile-time system search path for libraries
11798 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11800 # Run-time system search path for libraries
11801 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11803 # Fix the shell variable \$srcfile for the compiler.
11804 fix_srcfile_path="$fix_srcfile_path_CXX"
11806 # Set to yes if exported symbols are required.
11807 always_export_symbols=$always_export_symbols_CXX
11809 # The commands to list exported symbols.
11810 export_symbols_cmds=$lt_export_symbols_cmds_CXX
11812 # The commands to extract the exported symbol list from a shared archive.
11813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11815 # Symbols that should not be listed in the preloaded symbols.
11816 exclude_expsyms=$lt_exclude_expsyms_CXX
11818 # Symbols that must always be exported.
11819 include_expsyms=$lt_include_expsyms_CXX
11821 # ### END LIBTOOL TAG CONFIG: $tagname
11827 # If there is no Makefile yet, we rely on a make rule to execute
11828 # `config.status --recheck' to rerun these tests and create the
11829 # libtool script then.
11830 test -f Makefile && make "$ltmain"
11835 ac_cpp='$CPP $CPPFLAGS'
11836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11844 with_gnu_ldcxx=$with_gnu_ld
11845 with_gnu_ld=$lt_save_with_gnu_ld
11846 lt_cv_path_LDCXX=$lt_cv_path_LD
11847 lt_cv_path_LD=$lt_save_path_LD
11848 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
11849 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
11857 if test -n "$F77" && test "X$F77" != "Xno"; then
11860 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11861 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11862 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11865 archive_cmds_need_lc_F77=no
11866 allow_undefined_flag_F77=
11867 always_export_symbols_F77=no
11868 archive_expsym_cmds_F77=
11869 export_dynamic_flag_spec_F77=
11870 hardcode_direct_F77=no
11871 hardcode_libdir_flag_spec_F77=
11872 hardcode_libdir_flag_spec_ld_F77=
11873 hardcode_libdir_separator_F77=
11874 hardcode_minus_L_F77=no
11875 hardcode_automatic_F77=no
11877 module_expsym_cmds_F77=
11878 link_all_deplibs_F77=unknown
11879 old_archive_cmds_F77=$old_archive_cmds
11880 no_undefined_flag_F77=
11881 whole_archive_flag_spec_F77=
11882 enable_shared_with_static_runtimes_F77=no
11884 # Source file extension for f77 test sources.
11887 # Object file extension for compiled f77 test sources.
11891 # Code to be used in simple compile tests
11892 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
11894 # Code to be used in simple link tests
11895 lt_simple_link_test_code=" program t\n end\n"
11897 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11899 # If no C compiler was specified, use CC.
11902 # Allow CC to be a program name with arguments.
11906 # Allow CC to be a program name with arguments.
11911 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11913 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11914 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11915 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11916 echo "${ECHO_T}$can_build_shared" >&6
11918 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11919 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11920 test "$can_build_shared" = "no" && enable_shared=no
11922 # On AIX, shared libraries and static libraries use the same namespace, and
11923 # are all built from PIC.
11926 test "$enable_shared" = yes && enable_static=no
11927 if test -n "$RANLIB"; then
11928 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11929 postinstall_cmds='$RANLIB $lib'
11933 test "$enable_shared" = yes && enable_static=no
11936 echo "$as_me:$LINENO: result: $enable_shared" >&5
11937 echo "${ECHO_T}$enable_shared" >&6
11939 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11940 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11941 # Make sure either enable_shared or enable_static is yes.
11942 test "$enable_shared" = yes || enable_static=yes
11943 echo "$as_me:$LINENO: result: $enable_static" >&5
11944 echo "${ECHO_T}$enable_static" >&6
11946 test "$ld_shlibs_F77" = no && can_build_shared=no
11951 lt_prog_compiler_wl_F77=
11952 lt_prog_compiler_pic_F77=
11953 lt_prog_compiler_static_F77=
11955 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11956 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11958 if test "$GCC" = yes; then
11959 lt_prog_compiler_wl_F77='-Wl,'
11960 lt_prog_compiler_static_F77='-static'
11964 # All AIX code is PIC.
11965 if test "$host_cpu" = ia64; then
11966 # AIX 5 now supports IA64 processor
11967 lt_prog_compiler_static_F77='-Bstatic'
11972 # FIXME: we need at least 68020 code to build shared libraries, but
11973 # adding the `-m68020' flag to GCC prevents building anything better,
11975 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
11978 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11979 # PIC is the default for these OSes.
11982 mingw* | pw32* | os2*)
11983 # This hack is so that the source file can tell whether it is being
11984 # built for inclusion in a dll (and should export symbols for example).
11985 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
11988 darwin* | rhapsody*)
11989 # PIC is the default on this platform
11990 # Common symbols not allowed in MH_DYLIB files
11991 lt_prog_compiler_pic_F77='-fno-common'
11995 # Just because we use GCC doesn't mean we suddenly get shared libraries
11996 # on systems that don't support them.
11997 lt_prog_compiler_can_build_shared_F77=no
12002 if test -d /usr/nec; then
12003 lt_prog_compiler_pic_F77=-Kconform_pic
12008 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12009 # not for PA HP-UX.
12010 case "$host_cpu" in
12015 lt_prog_compiler_pic_F77='-fPIC'
12021 lt_prog_compiler_pic_F77='-fPIC'
12025 # PORTME Check for flag to pass linker flags through the system compiler.
12028 lt_prog_compiler_wl_F77='-Wl,'
12029 if test "$host_cpu" = ia64; then
12030 # AIX 5 now supports IA64 processor
12031 lt_prog_compiler_static_F77='-Bstatic'
12033 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12037 mingw* | pw32* | os2*)
12038 # This hack is so that the source file can tell whether it is being
12039 # built for inclusion in a dll (and should export symbols for example).
12040 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12043 hpux9* | hpux10* | hpux11*)
12044 lt_prog_compiler_wl_F77='-Wl,'
12045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12046 # not for PA HP-UX.
12047 case "$host_cpu" in
12052 lt_prog_compiler_pic_F77='+Z'
12055 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12056 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12059 irix5* | irix6* | nonstopux*)
12060 lt_prog_compiler_wl_F77='-Wl,'
12061 # PIC (with -KPIC) is the default.
12062 lt_prog_compiler_static_F77='-non_shared'
12066 lt_prog_compiler_pic_F77='-KPIC'
12067 lt_prog_compiler_static_F77='-Bstatic'
12073 lt_prog_compiler_wl_F77='-Wl,'
12074 lt_prog_compiler_pic_F77='-KPIC'
12075 lt_prog_compiler_static_F77='-static'
12078 lt_prog_compiler_wl_F77='-Wl,'
12079 # All Alpha code is PIC.
12080 lt_prog_compiler_static_F77='-non_shared'
12085 osf3* | osf4* | osf5*)
12086 lt_prog_compiler_wl_F77='-Wl,'
12087 # All OSF/1 code is PIC.
12088 lt_prog_compiler_static_F77='-non_shared'
12092 lt_prog_compiler_pic_F77='-Kpic'
12093 lt_prog_compiler_static_F77='-dn'
12097 lt_prog_compiler_wl_F77='-Wl,'
12098 lt_prog_compiler_pic_F77='-KPIC'
12099 lt_prog_compiler_static_F77='-Bstatic'
12103 lt_prog_compiler_wl_F77='-Qoption ld '
12104 lt_prog_compiler_pic_F77='-PIC'
12105 lt_prog_compiler_static_F77='-Bstatic'
12108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12109 lt_prog_compiler_wl_F77='-Wl,'
12110 lt_prog_compiler_pic_F77='-KPIC'
12111 lt_prog_compiler_static_F77='-Bstatic'
12115 if test -d /usr/nec ;then
12116 lt_prog_compiler_pic_F77='-Kconform_pic'
12117 lt_prog_compiler_static_F77='-Bstatic'
12122 lt_prog_compiler_pic_F77='-pic'
12123 lt_prog_compiler_static_F77='-Bstatic'
12127 lt_prog_compiler_can_build_shared_F77=no
12132 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12133 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12136 # Check to make sure the PIC flag actually works.
12138 if test -n "$lt_prog_compiler_pic_F77"; then
12139 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12140 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12141 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 lt_prog_compiler_pic_works_F77=no
12145 ac_outfile=conftest.$ac_objext
12146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12147 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12148 # Insert the option either (1) after the last *FLAGS variable, or
12149 # (2) before a word containing "conftest.", or (3) at the end.
12150 # Note that $ac_compile itself does not contain backslashes and begins
12151 # with a dollar sign (not a hyphen), so the echo should work correctly.
12152 # The option is referenced via a variable to avoid confusing sed.
12153 lt_compile=`echo "$ac_compile" | $SED \
12154 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12156 -e 's:$: $lt_compiler_flag:'`
12157 (eval echo "\"\$as_me:12157: $lt_compile\"" >&5)
12158 (eval "$lt_compile" 2>conftest.err)
12160 cat conftest.err >&5
12161 echo "$as_me:12161: \$? = $ac_status" >&5
12162 if (exit $ac_status) && test -s "$ac_outfile"; then
12163 # The compiler can only warn and ignore the option if not recognized
12164 # So say no if there are warnings
12165 if test ! -s conftest.err; then
12166 lt_prog_compiler_pic_works_F77=yes
12172 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12173 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12175 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12176 case $lt_prog_compiler_pic_F77 in
12178 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12181 lt_prog_compiler_pic_F77=
12182 lt_prog_compiler_can_build_shared_F77=no
12187 # For platforms which do not support PIC, -DPIC is meaningless:
12189 lt_prog_compiler_pic_F77=
12192 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12196 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12197 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12198 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 lt_cv_prog_compiler_c_o_F77=no
12202 $rm -r conftest 2>/dev/null
12206 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12208 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12209 # that will create temporary files in the current directory regardless of
12210 # the output directory. Thus, making CWD read-only will cause this test
12211 # to fail, enabling locking or at least warning the user not to do parallel
12215 lt_compiler_flag="-o out/conftest2.$ac_objext"
12216 # Insert the option either (1) after the last *FLAGS variable, or
12217 # (2) before a word containing "conftest.", or (3) at the end.
12218 # Note that $ac_compile itself does not contain backslashes and begins
12219 # with a dollar sign (not a hyphen), so the echo should work correctly.
12220 lt_compile=`echo "$ac_compile" | $SED \
12221 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12223 -e 's:$: $lt_compiler_flag:'`
12224 (eval echo "\"\$as_me:12224: $lt_compile\"" >&5)
12225 (eval "$lt_compile" 2>out/conftest.err)
12227 cat out/conftest.err >&5
12228 echo "$as_me:12228: \$? = $ac_status" >&5
12229 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12231 # The compiler can only warn and ignore the option if not recognized
12232 # So say no if there are warnings
12233 if test ! -s out/conftest.err; then
12234 lt_cv_prog_compiler_c_o_F77=yes
12238 $rm conftest* out/*
12245 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12246 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12249 hard_links="nottested"
12250 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12251 # do not overwrite the value of need_locks provided by the user
12252 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12253 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12258 ln conftest.a conftest.b 2>&5 || hard_links=no
12259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12260 echo "$as_me:$LINENO: result: $hard_links" >&5
12261 echo "${ECHO_T}$hard_links" >&6
12262 if test "$hard_links" = no; then
12263 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12264 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12271 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12272 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12275 allow_undefined_flag_F77=
12276 enable_shared_with_static_runtimes_F77=no
12278 archive_expsym_cmds_F77=
12279 old_archive_From_new_cmds_F77=
12280 old_archive_from_expsyms_cmds_F77=
12281 export_dynamic_flag_spec_F77=
12282 whole_archive_flag_spec_F77=
12283 thread_safe_flag_spec_F77=
12284 hardcode_libdir_flag_spec_F77=
12285 hardcode_libdir_flag_spec_ld_F77=
12286 hardcode_libdir_separator_F77=
12287 hardcode_direct_F77=no
12288 hardcode_minus_L_F77=no
12289 hardcode_shlibpath_var_F77=unsupported
12290 link_all_deplibs_F77=unknown
12291 hardcode_automatic_F77=no
12293 module_expsym_cmds_F77=
12294 always_export_symbols_F77=no
12295 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12296 # include_expsyms should be a list of space-separated symbols to be *always*
12297 # included in the symbol list
12298 include_expsyms_F77=
12299 # exclude_expsyms can be an extended regexp of symbols to exclude
12300 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12301 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12302 # as well as any symbol that contains `d'.
12303 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12305 # platforms (ab)use it in PIC code, but their linkers get confused if
12306 # the symbol is explicitly referenced. Since portable code cannot
12307 # rely on this symbol name, it's probably fine to never include it in
12308 # preloaded symbol tables.
12309 extract_expsyms_cmds=
12312 cygwin* | mingw* | pw32*)
12313 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12314 # When not using gcc, we currently assume that we are using
12315 # Microsoft Visual C++.
12316 if test "$GCC" != yes; then
12326 if test "$with_gnu_ld" = yes; then
12327 # If archive_cmds runs LD, not CC, wlarc should be empty
12330 # See if GNU ld supports shared libraries.
12332 aix3* | aix4* | aix5*)
12333 # On AIX/PPC, the GNU linker is very broken
12334 if test "$host_cpu" != ia64; then
12338 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12339 *** to be unable to reliably create shared libraries on AIX.
12340 *** Therefore, libtool is disabling shared libraries support. If you
12341 *** really care for shared libraries, you may want to modify your PATH
12342 *** so that a non-GNU linker is found, and then restart.
12349 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)'
12350 hardcode_libdir_flag_spec_F77='-L$libdir'
12351 hardcode_minus_L_F77=yes
12353 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12354 # that the semantics of dynamic libraries on AmigaOS, at least up
12355 # to version 4, is to share data among multiple programs linked
12356 # with the same dynamic library. Since this doesn't match the
12357 # behavior of shared libraries on other platforms, we can't use
12363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12364 allow_undefined_flag_F77=unsupported
12365 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12366 # support --undefined. This deserves some investigation. FIXME
12367 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12373 cygwin* | mingw* | pw32*)
12374 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12375 # as there is no search path for DLLs.
12376 hardcode_libdir_flag_spec_F77='-L$libdir'
12377 allow_undefined_flag_F77=unsupported
12378 always_export_symbols_F77=no
12379 enable_shared_with_static_runtimes_F77=yes
12380 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12382 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12383 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12384 # If the export-symbols file already is a .def file (1st line
12385 # is EXPORTS), use it as is; otherwise, prepend...
12386 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12387 cp $export_symbols $output_objdir/$soname.def;
12389 echo EXPORTS > $output_objdir/$soname.def;
12390 cat $export_symbols >> $output_objdir/$soname.def;
12392 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12400 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12404 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12409 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12413 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12414 *** create shared libraries on Solaris systems. Therefore, libtool
12415 *** is disabling shared libraries support. We urge you to upgrade GNU
12416 *** binutils to release 2.9.1 or newer. Another option is to modify
12417 *** your PATH or compiler configuration so that the native linker is
12418 *** used, and then restart.
12421 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12422 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12423 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12430 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12432 hardcode_direct_F77=yes
12433 hardcode_shlibpath_var_F77=no
12437 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12438 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12439 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12446 if test "$ld_shlibs_F77" = yes; then
12447 runpath_var=LD_RUN_PATH
12448 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12449 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12450 # ancient GNU ld didn't support --whole-archive et. al.
12451 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12452 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12454 whole_archive_flag_spec_F77=
12458 # PORTME fill in a description of your system's linker (not GNU ld)
12461 allow_undefined_flag_F77=unsupported
12462 always_export_symbols_F77=yes
12463 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'
12464 # Note: this linker hardcodes the directories in LIBPATH if there
12465 # are no directories specified by -L.
12466 hardcode_minus_L_F77=yes
12467 if test "$GCC" = yes && test -z "$link_static_flag"; then
12468 # Neither direct hardcoding nor static linking is supported with a
12470 hardcode_direct_F77=unsupported
12475 if test "$host_cpu" = ia64; then
12476 # On IA64, the linker does run time linking by default, so we don't
12477 # have to do anything special.
12478 aix_use_runtimelinking=no
12479 exp_sym_flag='-Bexport'
12482 # If we're using GNU nm, then we don't want the "-C" option.
12483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12484 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12485 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'
12487 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'
12489 aix_use_runtimelinking=no
12491 # Test if we are trying to use run time linking or normal
12492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12493 # need to do runtime linking.
12494 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12495 for ld_flag in $LDFLAGS; do
12496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12497 aix_use_runtimelinking=yes
12503 exp_sym_flag='-bexport'
12504 no_entry_flag='-bnoentry'
12507 # When large executables or shared objects are built, AIX ld can
12508 # have problems creating the table of contents. If linking a library
12509 # or program results in "error TOC overflow" add -mminimal-toc to
12510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12513 archive_cmds_F77=''
12514 hardcode_direct_F77=yes
12515 hardcode_libdir_separator_F77=':'
12516 link_all_deplibs_F77=yes
12518 if test "$GCC" = yes; then
12519 case $host_os in aix4.012|aix4.012.*)
12520 # We only want to do this on AIX 4.2 and lower, the check
12521 # below for broken collect2 doesn't work under 4.3+
12522 collect2name=`${CC} -print-prog-name=collect2`
12523 if test -f "$collect2name" && \
12524 strings "$collect2name" | grep resolve_lib_name >/dev/null
12526 # We have reworked collect2
12527 hardcode_direct_F77=yes
12529 # We have old collect2
12530 hardcode_direct_F77=unsupported
12531 # It fails to find uninstalled libraries when the uninstalled
12532 # path is not listed in the libpath. Setting hardcode_minus_L
12533 # to unsupported forces relinking
12534 hardcode_minus_L_F77=yes
12535 hardcode_libdir_flag_spec_F77='-L$libdir'
12536 hardcode_libdir_separator_F77=
12539 shared_flag='-shared'
12542 if test "$host_cpu" = ia64; then
12543 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12544 # chokes on -Wl,-G. The following line is correct:
12547 if test "$aix_use_runtimelinking" = yes; then
12548 shared_flag='${wl}-G'
12550 shared_flag='${wl}-bM:SRE'
12555 # It seems that -bexpall does not export symbols beginning with
12556 # underscore (_), so it is better to generate a list of symbols to export.
12557 always_export_symbols_F77=yes
12558 if test "$aix_use_runtimelinking" = yes; then
12559 # Warning - without using the other runtime loading flags (-brtl),
12560 # -berok will link without error, but may produce a broken library.
12561 allow_undefined_flag_F77='-berok'
12562 # Determine the default libpath from the value encoded in an empty executable.
12563 cat >conftest.$ac_ext <<_ACEOF
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12570 (eval $ac_link) 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
12574 { ac_try='test -s conftest$ac_exeext'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12583 # Check for a 64-bit object if we didn't find anything.
12584 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; }
12587 echo "$as_me: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12593 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12594 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"
12596 if test "$host_cpu" = ia64; then
12597 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12598 allow_undefined_flag_F77="-z nodefs"
12599 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"
12601 # Determine the default libpath from the value encoded in an empty executable.
12602 cat >conftest.$ac_ext <<_ACEOF
12607 rm -f conftest.$ac_objext conftest$ac_exeext
12608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12609 (eval $ac_link) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -s conftest$ac_exeext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12622 # Check for a 64-bit object if we didn't find anything.
12623 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; }
12626 echo "$as_me: failed program was:" >&5
12627 cat conftest.$ac_ext >&5
12629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12632 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12633 # Warning - without using the other run time loading flags,
12634 # -berok will link without error, but may produce a broken library.
12635 no_undefined_flag_F77=' ${wl}-bernotok'
12636 allow_undefined_flag_F77=' ${wl}-berok'
12637 # -bexpall does not export symbols beginning with underscore (_)
12638 always_export_symbols_F77=yes
12639 # Exported symbols can be pulled into shared objects from archives
12640 whole_archive_flag_spec_F77=' '
12641 archive_cmds_need_lc_F77=yes
12642 # This is similar to how AIX traditionally builds it's shared libraries.
12643 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'
12649 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)'
12650 hardcode_libdir_flag_spec_F77='-L$libdir'
12651 hardcode_minus_L_F77=yes
12652 # see comment about different semantics on the GNU ld section
12657 export_dynamic_flag_spec_F77=-rdynamic
12660 cygwin* | mingw* | pw32*)
12661 # When not using gcc, we currently assume that we are using
12662 # Microsoft Visual C++.
12663 # hardcode_libdir_flag_spec is actually meaningless, as there is
12664 # no search path for DLLs.
12665 hardcode_libdir_flag_spec_F77=' '
12666 allow_undefined_flag_F77=unsupported
12667 # Tell ltmain to make .lib files, not .a files.
12669 # Tell ltmain to make .dll files, not .so files.
12671 # FIXME: Setting linknames here is a bad hack.
12672 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12673 # The linker will automatically build a .lib file if we build a DLL.
12674 old_archive_From_new_cmds_F77='true'
12675 # FIXME: Should let the user specify the lib program.
12676 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
12677 fix_srcfile_path='`cygpath -w "$srcfile"`'
12678 enable_shared_with_static_runtimes_F77=yes
12681 darwin* | rhapsody*)
12682 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
12683 archive_cmds_need_lc_F77=no
12685 rhapsody* | darwin1.[012])
12686 allow_undefined_flag_F77='-undefined suppress'
12689 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
12692 # FIXME: Relying on posixy $() will cause problems for
12693 # cross-compilation, but unfortunately the echo tests do not
12694 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12695 # `"' quotes if we put them in here... so don't!
12696 lt_int_apple_cc_single_mod=no
12697 output_verbose_link_cmd='echo'
12698 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12699 lt_int_apple_cc_single_mod=yes
12701 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12702 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12704 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'
12706 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
12707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12708 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12709 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}'
12711 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}'
12713 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}'
12714 hardcode_direct_F77=no
12715 hardcode_automatic_F77=yes
12716 hardcode_shlibpath_var_F77=unsupported
12717 whole_archive_flag_spec_F77='-all_load $convenience'
12718 link_all_deplibs_F77=yes
12723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12724 hardcode_libdir_flag_spec_F77='-L$libdir'
12725 hardcode_shlibpath_var_F77=no
12732 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12733 # support. Future versions do this automatically, but an explicit c++rt0.o
12734 # does not break anything, and helps significantly (at the cost of a little
12737 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12738 hardcode_libdir_flag_spec_F77='-R$libdir'
12739 hardcode_direct_F77=yes
12740 hardcode_shlibpath_var_F77=no
12743 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12745 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12746 hardcode_direct_F77=yes
12747 hardcode_minus_L_F77=yes
12748 hardcode_shlibpath_var_F77=no
12751 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12753 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12754 hardcode_libdir_flag_spec_F77='-R$libdir'
12755 hardcode_direct_F77=yes
12756 hardcode_shlibpath_var_F77=no
12760 if test "$GCC" = yes; then
12761 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'
12763 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'
12765 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12766 hardcode_libdir_separator_F77=:
12767 hardcode_direct_F77=yes
12769 # hardcode_minus_L: Not really in the search PATH,
12770 # but as the default location of the library.
12771 hardcode_minus_L_F77=yes
12772 export_dynamic_flag_spec_F77='${wl}-E'
12776 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12777 case "$host_cpu" in
12779 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12782 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12786 case "$host_cpu" in
12788 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12791 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12795 if test "$with_gnu_ld" = no; then
12796 case "$host_cpu" in
12798 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12799 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
12800 hardcode_libdir_separator_F77=:
12801 hardcode_direct_F77=no
12802 hardcode_shlibpath_var_F77=no
12805 hardcode_libdir_flag_spec_F77='-L$libdir'
12806 hardcode_direct_F77=no
12807 hardcode_shlibpath_var_F77=no
12809 # hardcode_minus_L: Not really in the search PATH,
12810 # but as the default location of the library.
12811 hardcode_minus_L_F77=yes
12814 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12815 hardcode_libdir_separator_F77=:
12816 hardcode_direct_F77=yes
12817 export_dynamic_flag_spec_F77='${wl}-E'
12819 # hardcode_minus_L: Not really in the search PATH,
12820 # but as the default location of the library.
12821 hardcode_minus_L_F77=yes
12827 irix5* | irix6* | nonstopux*)
12828 if test "$GCC" = yes; then
12829 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'
12831 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'
12832 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
12834 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12835 hardcode_libdir_separator_F77=:
12836 link_all_deplibs_F77=yes
12840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12841 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12843 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12845 hardcode_libdir_flag_spec_F77='-R$libdir'
12846 hardcode_direct_F77=yes
12847 hardcode_shlibpath_var_F77=no
12851 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12852 hardcode_direct_F77=yes
12853 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12854 hardcode_libdir_separator_F77=:
12855 hardcode_shlibpath_var_F77=no
12859 hardcode_direct_F77=yes
12860 hardcode_shlibpath_var_F77=no
12861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12862 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12863 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12864 export_dynamic_flag_spec_F77='${wl}-E'
12867 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12868 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12869 hardcode_libdir_flag_spec_F77='-R$libdir'
12872 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12873 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12880 hardcode_libdir_flag_spec_F77='-L$libdir'
12881 hardcode_minus_L_F77=yes
12882 allow_undefined_flag_F77=unsupported
12883 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'
12884 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12888 if test "$GCC" = yes; then
12889 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
12890 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'
12892 allow_undefined_flag_F77=' -expect_unresolved \*'
12893 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'
12895 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12896 hardcode_libdir_separator_F77=:
12899 osf4* | osf5*) # as osf3* with the addition of -msym flag
12900 if test "$GCC" = yes; then
12901 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
12902 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'
12903 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12905 allow_undefined_flag_F77=' -expect_unresolved \*'
12906 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'
12907 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~
12908 $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'
12910 # Both c and cxx compiler support -rpath directly
12911 hardcode_libdir_flag_spec_F77='-rpath $libdir'
12913 hardcode_libdir_separator_F77=:
12917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12918 hardcode_shlibpath_var_F77=no
12919 export_dynamic_flag_spec_F77='${wl}-Bexport'
12920 runpath_var=LD_RUN_PATH
12921 hardcode_runpath_var=yes
12925 no_undefined_flag_F77=' -z text'
12926 if test "$GCC" = yes; then
12927 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12928 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12929 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12931 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12932 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12935 hardcode_libdir_flag_spec_F77='-R$libdir'
12936 hardcode_shlibpath_var_F77=no
12938 solaris2.[0-5] | solaris2.[0-5].*) ;;
12939 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12940 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
12942 link_all_deplibs_F77=yes
12946 if test "x$host_vendor" = xsequent; then
12947 # Use $CC to link under sequent, because it throws in some extra .o
12948 # files that make .init and .fini sections work.
12949 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12951 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12953 hardcode_libdir_flag_spec_F77='-L$libdir'
12954 hardcode_direct_F77=yes
12955 hardcode_minus_L_F77=yes
12956 hardcode_shlibpath_var_F77=no
12960 case $host_vendor in
12962 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963 hardcode_direct_F77=yes # is this really true???
12966 ## LD is ld it makes a PLAMLIB
12967 ## CC just makes a GrossModule.
12968 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12969 reload_cmds_F77='$CC -r -o $output$reload_objs'
12970 hardcode_direct_F77=no
12973 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12974 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
12977 runpath_var='LD_RUN_PATH'
12978 hardcode_shlibpath_var_F77=no
12982 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12983 hardcode_shlibpath_var_F77=no
12984 export_dynamic_flag_spec_F77='-Bexport'
12988 if test -d /usr/nec; then
12989 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12990 hardcode_shlibpath_var_F77=no
12991 runpath_var=LD_RUN_PATH
12992 hardcode_runpath_var=yes
12998 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12999 hardcode_direct_F77=yes
13000 hardcode_minus_L_F77=no
13001 hardcode_shlibpath_var_F77=no
13002 hardcode_runpath_var=yes
13003 runpath_var=LD_RUN_PATH
13006 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13007 no_undefined_flag_F77='${wl}-z ${wl}text'
13008 if test "$GCC" = yes; then
13009 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13011 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13013 runpath_var='LD_RUN_PATH'
13014 hardcode_shlibpath_var_F77=no
13018 no_undefined_flag_F77=' -z text'
13019 # $CC -shared without GNU ld will not create a library from C++
13020 # object files and a static libstdc++, better avoid it by now
13021 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13022 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13024 hardcode_libdir_flag_spec_F77=
13025 hardcode_shlibpath_var_F77=no
13026 runpath_var='LD_RUN_PATH'
13030 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13031 hardcode_libdir_flag_spec_F77='-L$libdir'
13032 hardcode_shlibpath_var_F77=no
13041 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13042 echo "${ECHO_T}$ld_shlibs_F77" >&6
13043 test "$ld_shlibs_F77" = no && can_build_shared=no
13045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13046 if test "$GCC" = yes; then
13047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13051 # Do we need to explicitly link libc?
13053 case "x$archive_cmds_need_lc_F77" in
13055 # Assume -lc should be added
13056 archive_cmds_need_lc_F77=yes
13058 if test "$enable_shared" = yes && test "$GCC" = yes; then
13059 case $archive_cmds_F77 in
13061 # FIXME: we may have to deal with multi-command sequences.
13064 # Test whether the compiler implicitly links with -lc since on some
13065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13066 # to ld, don't add -lc before -lgcc.
13067 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13068 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13073 (eval $ac_compile) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } 2>conftest.err; then
13079 libobjs=conftest.$ac_objext
13081 wl=$lt_prog_compiler_wl_F77
13087 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13088 allow_undefined_flag_F77=
13089 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13090 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }
13095 archive_cmds_need_lc_F77=no
13097 archive_cmds_need_lc_F77=yes
13099 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13101 cat conftest.err 1>&5
13104 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13105 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13112 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13113 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13114 hardcode_action_F77=
13115 if test -n "$hardcode_libdir_flag_spec_F77" || \
13116 test -n "$runpath_var F77" || \
13117 test "X$hardcode_automatic_F77"="Xyes" ; then
13119 # We can hardcode non-existant directories.
13120 if test "$hardcode_direct_F77" != no &&
13121 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13122 # have to relink, otherwise we might link with an installed library
13123 # when we should be linking with a yet-to-be-installed one
13124 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13125 test "$hardcode_minus_L_F77" != no; then
13126 # Linking always hardcodes the temporary library directory.
13127 hardcode_action_F77=relink
13129 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13130 hardcode_action_F77=immediate
13133 # We cannot hardcode anything, or else we can only hardcode existing
13135 hardcode_action_F77=unsupported
13137 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13138 echo "${ECHO_T}$hardcode_action_F77" >&6
13140 if test "$hardcode_action_F77" = relink; then
13141 # Fast installation is not supported
13142 enable_fast_install=no
13143 elif test "$shlibpath_overrides_runpath" = yes ||
13144 test "$enable_shared" = no; then
13145 # Fast installation is not necessary
13146 enable_fast_install=needless
13151 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13152 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13153 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13154 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13155 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13156 echo "$as_me:$LINENO: result: yes" >&5
13157 echo "${ECHO_T}yes" >&6
13159 # FIXME - insert some real tests, host_os isn't really good enough
13162 if test -n "$STRIP" ; then
13163 striplib="$STRIP -x"
13164 echo "$as_me:$LINENO: result: yes" >&5
13165 echo "${ECHO_T}yes" >&6
13167 echo "$as_me:$LINENO: result: no" >&5
13168 echo "${ECHO_T}no" >&6
13172 echo "$as_me:$LINENO: result: no" >&5
13173 echo "${ECHO_T}no" >&6
13178 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13179 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13180 library_names_spec=
13181 libname_spec='lib$name'
13185 postuninstall_cmds=
13189 shlibpath_overrides_runpath=unknown
13191 dynamic_linker="$host_os ld.so"
13192 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13193 if test "$GCC" = yes; then
13194 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13195 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13196 # if the path contains ";" then we assume it to be the separator
13197 # otherwise default to the standard path separator (i.e. ":") - it is
13198 # assumed that no part of a normal pathname contains ";" but that should
13199 # okay in the real world where ";" in dirpaths is itself problematic.
13200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13205 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13207 need_lib_prefix=unknown
13208 hardcode_into_libs=no
13210 # when you set need_version to no, make sure it does not cause -set_version
13211 # flags to be left without arguments
13212 need_version=unknown
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13218 shlibpath_var=LIBPATH
13220 # AIX 3 has no versioning support, so we append a major version to the name.
13221 soname_spec='${libname}${release}${shared_ext}$major'
13228 hardcode_into_libs=yes
13229 if test "$host_cpu" = ia64; then
13230 # AIX 5 supports IA64
13231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13232 shlibpath_var=LD_LIBRARY_PATH
13234 # With GCC up to 2.95.x, collect2 would create an import file
13235 # for dependence libraries. The import file would start with
13236 # the line `#! .'. This would cause the generated library to
13237 # depend on `.', always an invalid library. This was fixed in
13238 # development snapshots of GCC prior to 3.0.
13240 aix4 | aix4.[01] | aix4.[01].*)
13241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13243 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13246 can_build_shared=no
13250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13251 # soname into executable. Probably we can add versioning support to
13252 # collect2, so additional links can be useful in future.
13253 if test "$aix_use_runtimelinking" = yes; then
13254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13255 # instead of lib<name>.a to let people know that these are not
13256 # typical AIX shared libraries.
13257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13259 # We preserve .a as extension for shared libraries through AIX4.2
13260 # and later when we are not doing run time linking.
13261 library_names_spec='${libname}${release}.a $libname.a'
13262 soname_spec='${libname}${release}${shared_ext}$major'
13264 shlibpath_var=LIBPATH
13269 library_names_spec='$libname.ixlibrary $libname.a'
13270 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13271 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'
13275 library_names_spec='${libname}${shared_ext}'
13276 dynamic_linker="$host_os ld.so"
13277 shlibpath_var=LIBRARY_PATH
13283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284 soname_spec='${libname}${release}${shared_ext}$major'
13285 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13286 shlibpath_var=LD_LIBRARY_PATH
13287 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13288 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13289 # the default ld.so.conf also contains /usr/contrib/lib and
13290 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13291 # libtool to hard-code these into programs
13294 cygwin* | mingw* | pw32*)
13295 version_type=windows
13300 case $GCC,$host_os in
13301 yes,cygwin* | yes,mingw* | yes,pw32*)
13302 library_names_spec='$libname.dll.a'
13303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13304 postinstall_cmds='base_file=`basename \${file}`~
13305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13306 dldir=$destdir/`dirname \$dlpath`~
13307 test -d \$dldir || mkdir -p \$dldir~
13308 $install_prog $dir/$dlname \$dldir/$dlname'
13309 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13310 dlpath=$dir/\$dldll~
13312 shlibpath_overrides_runpath=yes
13316 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13317 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13318 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13321 # MinGW DLLs use traditional 'lib' prefix
13322 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13324 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13325 # It is most probably a Windows format PATH printed by
13326 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13327 # path with ; separators, and with drive letters. We can handle the
13328 # drive letters (cygwin fileutils understands them), so leave them,
13329 # especially as we might pass files found there to a mingw objdump,
13330 # which wouldn't understand a cygwinified path. Ahh.
13331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13333 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13337 # pw32 DLLs use 'pw' prefix rather than 'lib'
13338 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13344 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13347 dynamic_linker='Win32 ld.exe'
13348 # FIXME: first we should search . and the directory the executable is in
13352 darwin* | rhapsody*)
13353 dynamic_linker="$host_os dyld"
13354 version_type=darwin
13357 # FIXME: Relying on posixy $() will cause problems for
13358 # cross-compilation, but unfortunately the echo tests do not
13359 # yet detect zsh echo's removal of \ escapes.
13360 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13361 soname_spec='${libname}${release}${major}$shared_ext'
13362 shlibpath_overrides_runpath=yes
13363 shlibpath_var=DYLD_LIBRARY_PATH
13364 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13365 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13366 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13367 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"`
13369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13377 soname_spec='${libname}${release}${shared_ext}$major'
13378 shlibpath_var=LD_LIBRARY_PATH
13386 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13387 version_type=freebsd-$objformat
13388 case $version_type in
13390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13399 shlibpath_var=LD_LIBRARY_PATH
13402 shlibpath_overrides_runpath=yes
13404 freebsd3.01* | freebsdelf3.01*)
13405 shlibpath_overrides_runpath=yes
13406 hardcode_into_libs=yes
13409 shlibpath_overrides_runpath=no
13410 hardcode_into_libs=yes
13419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13420 soname_spec='${libname}${release}${shared_ext}$major'
13421 shlibpath_var=LD_LIBRARY_PATH
13422 hardcode_into_libs=yes
13425 hpux9* | hpux10* | hpux11*)
13426 # Give a soname corresponding to the major version so that dld.sl refuses to
13427 # link against other versions.
13431 case "$host_cpu" in
13434 hardcode_into_libs=yes
13435 dynamic_linker="$host_os dld.so"
13436 shlibpath_var=LD_LIBRARY_PATH
13437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439 soname_spec='${libname}${release}${shared_ext}$major'
13440 if test "X$HPUX_IA64_MODE" = X32; then
13441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13449 hardcode_into_libs=yes
13450 dynamic_linker="$host_os dld.sl"
13451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454 soname_spec='${libname}${release}${shared_ext}$major'
13455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13460 dynamic_linker="$host_os dld.sl"
13461 shlibpath_var=SHLIB_PATH
13462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13468 postinstall_cmds='chmod 555 $lib'
13471 irix5* | irix6* | nonstopux*)
13473 nonstopux*) version_type=nonstopux ;;
13475 if test "$lt_cv_prog_gnu_ld" = yes; then
13483 soname_spec='${libname}${release}${shared_ext}$major'
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13486 irix5* | nonstopux*)
13487 libsuff= shlibsuff=
13490 case $LD in # libtool.m4 will add one of these switches to LD
13491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13492 libsuff= shlibsuff= libmagic=32-bit;;
13493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13494 libsuff=32 shlibsuff=N32 libmagic=N32;;
13495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13497 *) libsuff= shlibsuff= libmagic=never-match;;
13501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13502 shlibpath_overrides_runpath=no
13503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13505 hardcode_into_libs=yes
13508 # No shared lib support for Linux oldld, aout, or coff.
13509 linux*oldld* | linux*aout* | linux*coff*)
13513 # This must be Linux ELF.
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519 soname_spec='${libname}${release}${shared_ext}$major'
13520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13521 shlibpath_var=LD_LIBRARY_PATH
13522 shlibpath_overrides_runpath=no
13523 # This implies no fast_install, which is unacceptable.
13524 # Some rework will be needed to allow for fast_install
13525 # before this can be enabled.
13526 hardcode_into_libs=yes
13528 # We used to test for /lib/ld.so.1 and disable shared libraries on
13529 # powerpc, because MkLinux only supported shared libraries with the
13530 # GNU dynamic linker. Since this was broken with cross compilers,
13531 # most powerpc-linux boxes support dynamic linking these days and
13532 # people can always --disable-shared, the test was removed, and we
13533 # assume the GNU/Linux dynamic linker is in use.
13534 dynamic_linker='GNU/Linux ld.so'
13541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13544 dynamic_linker='NetBSD (a.out) ld.so'
13546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13547 soname_spec='${libname}${release}${shared_ext}$major'
13548 dynamic_linker='NetBSD ld.elf_so'
13550 shlibpath_var=LD_LIBRARY_PATH
13551 shlibpath_overrides_runpath=yes
13552 hardcode_into_libs=yes
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558 shlibpath_var=LD_LIBRARY_PATH
13559 shlibpath_overrides_runpath=yes
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567 soname_spec='${libname}${release}${shared_ext}$major'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 shlibpath_overrides_runpath=yes
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13581 openbsd2.[89] | openbsd2.[89].*)
13582 shlibpath_overrides_runpath=no
13585 shlibpath_overrides_runpath=yes
13589 shlibpath_overrides_runpath=yes
13594 libname_spec='$name'
13597 library_names_spec='$libname${shared_ext} $libname.a'
13598 dynamic_linker='OS/2 ld.exe'
13599 shlibpath_var=LIBPATH
13602 osf3* | osf4* | osf5*)
13606 soname_spec='${libname}${release}${shared_ext}$major'
13607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13615 soname_spec='${libname}${release}${shared_ext}$major'
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617 shlibpath_var=LD_LIBRARY_PATH
13624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13625 soname_spec='${libname}${release}${shared_ext}$major'
13626 shlibpath_var=LD_LIBRARY_PATH
13627 shlibpath_overrides_runpath=yes
13628 hardcode_into_libs=yes
13629 # ldd complains unless libraries are executable
13630 postinstall_cmds='chmod +x $lib'
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13637 shlibpath_var=LD_LIBRARY_PATH
13638 shlibpath_overrides_runpath=yes
13639 if test "$with_gnu_ld" = yes; then
13645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13648 soname_spec='${libname}${release}${shared_ext}$major'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 case $host_vendor in
13652 shlibpath_overrides_runpath=no
13654 export_dynamic_flag_spec='${wl}-Blargedynsym'
13655 runpath_var=LD_RUN_PATH
13663 shlibpath_overrides_runpath=no
13664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13670 if test -d /usr/nec ;then
13672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13673 soname_spec='$libname${shared_ext}.$major'
13674 shlibpath_var=LD_LIBRARY_PATH
13680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13681 soname_spec='${libname}${release}${shared_ext}$major'
13682 shlibpath_var=LD_LIBRARY_PATH
13689 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13690 echo "${ECHO_T}$dynamic_linker" >&6
13691 test "$dynamic_linker" = no && can_build_shared=no
13694 # The else clause should only fire when bootstrapping the
13695 # libtool distribution, otherwise you forgot to ship ltmain.sh
13696 # with your package, and you will get complaints that there are
13697 # no rules to generate ltmain.sh.
13698 if test -f "$ltmain"; then
13699 # See if we are running on zsh, and set the options which allow our commands through
13700 # without removal of \ escapes.
13701 if test -n "${ZSH_VERSION+set}" ; then
13702 setopt NO_GLOB_SUBST
13704 # Now quote all the things that may contain metacharacters while being
13705 # careful not to overquote the AC_SUBSTed values. We take copies of the
13706 # variables and quote the copies for generation of the libtool script.
13707 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13708 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13709 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13710 deplibs_check_method reload_flag reload_cmds need_locks \
13711 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13712 lt_cv_sys_global_symbol_to_c_name_address \
13713 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13714 old_postinstall_cmds old_postuninstall_cmds \
13718 lt_prog_compiler_wl_F77 \
13719 lt_prog_compiler_pic_F77 \
13720 lt_prog_compiler_static_F77 \
13721 lt_prog_compiler_no_builtin_flag_F77 \
13722 export_dynamic_flag_spec_F77 \
13723 thread_safe_flag_spec_F77 \
13724 whole_archive_flag_spec_F77 \
13725 enable_shared_with_static_runtimes_F77 \
13726 old_archive_cmds_F77 \
13727 old_archive_from_new_cmds_F77 \
13728 predep_objects_F77 \
13729 postdep_objects_F77 \
13732 compiler_lib_search_path_F77 \
13734 archive_expsym_cmds_F77 \
13735 postinstall_cmds_F77 \
13736 postuninstall_cmds_F77 \
13737 old_archive_from_expsyms_cmds_F77 \
13738 allow_undefined_flag_F77 \
13739 no_undefined_flag_F77 \
13740 export_symbols_cmds_F77 \
13741 hardcode_libdir_flag_spec_F77 \
13742 hardcode_libdir_flag_spec_ld_F77 \
13743 hardcode_libdir_separator_F77 \
13744 hardcode_automatic_F77 \
13746 module_expsym_cmds_F77 \
13747 lt_cv_prog_compiler_c_o_F77 \
13748 exclude_expsyms_F77 \
13749 include_expsyms_F77; do
13752 old_archive_cmds_F77 | \
13753 old_archive_from_new_cmds_F77 | \
13754 archive_cmds_F77 | \
13755 archive_expsym_cmds_F77 | \
13756 module_cmds_F77 | \
13757 module_expsym_cmds_F77 | \
13758 old_archive_from_expsyms_cmds_F77 | \
13759 export_symbols_cmds_F77 | \
13760 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13761 postinstall_cmds | postuninstall_cmds | \
13762 old_postinstall_cmds | old_postuninstall_cmds | \
13763 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13764 # Double-quote double-evaled strings.
13765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13774 *'\$0 --fallback-echo"')
13775 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13781 cat <<__EOF__ >> "$cfgfile"
13782 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13784 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13786 # Shell to use when invoking shell scripts.
13789 # Whether or not to build shared libraries.
13790 build_libtool_libs=$enable_shared
13792 # Whether or not to build static libraries.
13793 build_old_libs=$enable_static
13795 # Whether or not to add -lc for building shared libraries.
13796 build_libtool_need_lc=$archive_cmds_need_lc_F77
13798 # Whether or not to disallow shared libs when runtime libs are static
13799 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
13801 # Whether or not to optimize for fast installation.
13802 fast_install=$enable_fast_install
13805 host_alias=$host_alias
13808 # An echo program that does not interpret backslashes.
13813 AR_FLAGS=$lt_AR_FLAGS
13818 # A language-specific compiler.
13819 CC=$lt_compiler_F77
13821 # Is the compiler the GNU C compiler?
13827 # The linker used to build libraries.
13830 # Whether we need hard or soft links.
13833 # A BSD-compatible nm program.
13836 # A symbol stripping program
13839 # Used to examine libraries when file_magic_cmd begins "file"
13840 MAGIC_CMD=$MAGIC_CMD
13842 # Used on cygwin: DLL creation program.
13845 # Used on cygwin: object dumper.
13848 # Used on cygwin: assembler.
13851 # The name of the directory that contains temporary libtool files.
13854 # How to create reloadable object files.
13855 reload_flag=$lt_reload_flag
13856 reload_cmds=$lt_reload_cmds
13858 # How to pass a linker flag through the compiler.
13859 wl=$lt_lt_prog_compiler_wl_F77
13861 # Object file suffix (normally "o").
13862 objext="$ac_objext"
13864 # Old archive suffix (normally "a").
13867 # Shared library suffix (normally ".so").
13870 # Executable file suffix (normally "").
13873 # Additional compiler flags for building library objects.
13874 pic_flag=$lt_lt_prog_compiler_pic_F77
13877 # What is the maximum length of a command?
13878 max_cmd_len=$lt_cv_sys_max_cmd_len
13880 # Does compiler simultaneously support -c and -o options?
13881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
13883 # Must we lock files when doing compilation ?
13884 need_locks=$lt_need_locks
13886 # Do we need the lib prefix for modules?
13887 need_lib_prefix=$need_lib_prefix
13889 # Do we need a version for libraries?
13890 need_version=$need_version
13892 # Whether dlopen is supported.
13893 dlopen_support=$enable_dlopen
13895 # Whether dlopen of programs is supported.
13896 dlopen_self=$enable_dlopen_self
13898 # Whether dlopen of statically linked programs is supported.
13899 dlopen_self_static=$enable_dlopen_self_static
13901 # Compiler flag to prevent dynamic linking.
13902 link_static_flag=$lt_lt_prog_compiler_static_F77
13904 # Compiler flag to turn off builtin functions.
13905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
13907 # Compiler flag to allow reflexive dlopens.
13908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
13910 # Compiler flag to generate shared objects directly from archives.
13911 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
13913 # Compiler flag to generate thread-safe objects.
13914 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
13916 # Library versioning type.
13917 version_type=$version_type
13919 # Format of library name prefix.
13920 libname_spec=$lt_libname_spec
13922 # List of archive names. First name is the real one, the rest are links.
13923 # The last name is the one that the linker finds with -lNAME.
13924 library_names_spec=$lt_library_names_spec
13926 # The coded name of the library, if different from the real name.
13927 soname_spec=$lt_soname_spec
13929 # Commands used to build and install an old-style archive.
13931 old_archive_cmds=$lt_old_archive_cmds_F77
13932 old_postinstall_cmds=$lt_old_postinstall_cmds
13933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13935 # Create an old-style archive from a shared archive.
13936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
13938 # Create a temporary old-style archive to link instead of a shared archive.
13939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
13941 # Commands used to build and install a shared archive.
13942 archive_cmds=$lt_archive_cmds_F77
13943 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
13944 postinstall_cmds=$lt_postinstall_cmds
13945 postuninstall_cmds=$lt_postuninstall_cmds
13947 # Commands used to build a loadable module (assumed same as above if empty)
13948 module_cmds=$lt_module_cmds_F77
13949 module_expsym_cmds=$lt_module_expsym_cmds_F77
13951 # Commands to strip libraries.
13952 old_striplib=$lt_old_striplib
13953 striplib=$lt_striplib
13955 # Dependencies to place before the objects being linked to create a
13957 predep_objects=$lt_predep_objects_F77
13959 # Dependencies to place after the objects being linked to create a
13961 postdep_objects=$lt_postdep_objects_F77
13963 # Dependencies to place before the objects being linked to create a
13965 predeps=$lt_predeps_F77
13967 # Dependencies to place after the objects being linked to create a
13969 postdeps=$lt_postdeps_F77
13971 # The library search path used internally by the compiler when linking
13972 # a shared library.
13973 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
13975 # Method to check whether dependent libraries are shared objects.
13976 deplibs_check_method=$lt_deplibs_check_method
13978 # Command to use when deplibs_check_method == file_magic.
13979 file_magic_cmd=$lt_file_magic_cmd
13981 # Flag that allows shared libraries with undefined symbols to be built.
13982 allow_undefined_flag=$lt_allow_undefined_flag_F77
13984 # Flag that forces no undefined symbols.
13985 no_undefined_flag=$lt_no_undefined_flag_F77
13987 # Commands used to finish a libtool library installation in a directory.
13988 finish_cmds=$lt_finish_cmds
13990 # Same as above, but a single script fragment to be evaled but not shown.
13991 finish_eval=$lt_finish_eval
13993 # Take the output of nm and produce a listing of raw symbols and C names.
13994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13996 # Transform the output of nm in a proper C declaration
13997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13999 # Transform the output of nm in a C name address pair
14000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14002 # This is the shared library runtime path variable.
14003 runpath_var=$runpath_var
14005 # This is the shared library path variable.
14006 shlibpath_var=$shlibpath_var
14008 # Is shlibpath searched before the hard-coded library search path?
14009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14011 # How to hardcode a shared library path into an executable.
14012 hardcode_action=$hardcode_action_F77
14014 # Whether we should hardcode library paths into libraries.
14015 hardcode_into_libs=$hardcode_into_libs
14017 # Flag to hardcode \$libdir into a binary during linking.
14018 # This must work even if \$libdir does not exist.
14019 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14021 # If ld is used when linking, flag to hardcode \$libdir into
14022 # a binary during linking. This must work even if \$libdir does
14024 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14026 # Whether we need a single -rpath flag with a separated argument.
14027 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14029 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14030 # resulting binary.
14031 hardcode_direct=$hardcode_direct_F77
14033 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14034 # resulting binary.
14035 hardcode_minus_L=$hardcode_minus_L_F77
14037 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14038 # the resulting binary.
14039 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14041 # Set to yes if building a shared library automatically hardcodes DIR into the library
14042 # and all subsequent libraries and executables linked against it.
14043 hardcode_automatic=$hardcode_automatic_F77
14045 # Variables whose values should be saved in libtool wrapper scripts and
14046 # restored at relink time.
14047 variables_saved_for_relink="$variables_saved_for_relink"
14049 # Whether libtool must link a program against all its dependency libraries.
14050 link_all_deplibs=$link_all_deplibs_F77
14052 # Compile-time system search path for libraries
14053 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14055 # Run-time system search path for libraries
14056 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14058 # Fix the shell variable \$srcfile for the compiler.
14059 fix_srcfile_path="$fix_srcfile_path_F77"
14061 # Set to yes if exported symbols are required.
14062 always_export_symbols=$always_export_symbols_F77
14064 # The commands to list exported symbols.
14065 export_symbols_cmds=$lt_export_symbols_cmds_F77
14067 # The commands to extract the exported symbol list from a shared archive.
14068 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14070 # Symbols that should not be listed in the preloaded symbols.
14071 exclude_expsyms=$lt_exclude_expsyms_F77
14073 # Symbols that must always be exported.
14074 include_expsyms=$lt_include_expsyms_F77
14076 # ### END LIBTOOL TAG CONFIG: $tagname
14082 # If there is no Makefile yet, we rely on a make rule to execute
14083 # `config.status --recheck' to rerun these tests and create the
14084 # libtool script then.
14085 test -f Makefile && make "$ltmain"
14090 ac_cpp='$CPP $CPPFLAGS'
14091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14103 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14107 # Source file extension for Java test sources.
14110 # Object file extension for compiled Java test sources.
14114 # Code to be used in simple compile tests
14115 lt_simple_compile_test_code="class foo {}\n"
14117 # Code to be used in simple link tests
14118 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14122 # If no C compiler was specified, use CC.
14125 # Allow CC to be a program name with arguments.
14129 # Allow CC to be a program name with arguments.
14135 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14136 archive_cmds_need_lc_GCJ=no
14139 ## There is no encapsulation within the following macros, do not change
14140 ## the running order or otherwise move them around unless you know exactly
14141 ## what you are doing...
14143 lt_prog_compiler_no_builtin_flag_GCJ=
14145 if test "$GCC" = yes; then
14146 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14148 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14149 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14150 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 lt_cv_prog_compiler_rtti_exceptions=no
14154 ac_outfile=conftest.$ac_objext
14155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14156 lt_compiler_flag="-fno-rtti -fno-exceptions"
14157 # Insert the option either (1) after the last *FLAGS variable, or
14158 # (2) before a word containing "conftest.", or (3) at the end.
14159 # Note that $ac_compile itself does not contain backslashes and begins
14160 # with a dollar sign (not a hyphen), so the echo should work correctly.
14161 # The option is referenced via a variable to avoid confusing sed.
14162 lt_compile=`echo "$ac_compile" | $SED \
14163 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14165 -e 's:$: $lt_compiler_flag:'`
14166 (eval echo "\"\$as_me:14166: $lt_compile\"" >&5)
14167 (eval "$lt_compile" 2>conftest.err)
14169 cat conftest.err >&5
14170 echo "$as_me:14170: \$? = $ac_status" >&5
14171 if (exit $ac_status) && test -s "$ac_outfile"; then
14172 # The compiler can only warn and ignore the option if not recognized
14173 # So say no if there are warnings
14174 if test ! -s conftest.err; then
14175 lt_cv_prog_compiler_rtti_exceptions=yes
14181 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14182 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14185 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14192 lt_prog_compiler_wl_GCJ=
14193 lt_prog_compiler_pic_GCJ=
14194 lt_prog_compiler_static_GCJ=
14196 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14199 if test "$GCC" = yes; then
14200 lt_prog_compiler_wl_GCJ='-Wl,'
14201 lt_prog_compiler_static_GCJ='-static'
14205 # All AIX code is PIC.
14206 if test "$host_cpu" = ia64; then
14207 # AIX 5 now supports IA64 processor
14208 lt_prog_compiler_static_GCJ='-Bstatic'
14213 # FIXME: we need at least 68020 code to build shared libraries, but
14214 # adding the `-m68020' flag to GCC prevents building anything better,
14216 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14220 # PIC is the default for these OSes.
14223 mingw* | pw32* | os2*)
14224 # This hack is so that the source file can tell whether it is being
14225 # built for inclusion in a dll (and should export symbols for example).
14226 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14229 darwin* | rhapsody*)
14230 # PIC is the default on this platform
14231 # Common symbols not allowed in MH_DYLIB files
14232 lt_prog_compiler_pic_GCJ='-fno-common'
14236 # Just because we use GCC doesn't mean we suddenly get shared libraries
14237 # on systems that don't support them.
14238 lt_prog_compiler_can_build_shared_GCJ=no
14243 if test -d /usr/nec; then
14244 lt_prog_compiler_pic_GCJ=-Kconform_pic
14249 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14250 # not for PA HP-UX.
14251 case "$host_cpu" in
14256 lt_prog_compiler_pic_GCJ='-fPIC'
14262 lt_prog_compiler_pic_GCJ='-fPIC'
14266 # PORTME Check for flag to pass linker flags through the system compiler.
14269 lt_prog_compiler_wl_GCJ='-Wl,'
14270 if test "$host_cpu" = ia64; then
14271 # AIX 5 now supports IA64 processor
14272 lt_prog_compiler_static_GCJ='-Bstatic'
14274 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14278 mingw* | pw32* | os2*)
14279 # This hack is so that the source file can tell whether it is being
14280 # built for inclusion in a dll (and should export symbols for example).
14281 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14284 hpux9* | hpux10* | hpux11*)
14285 lt_prog_compiler_wl_GCJ='-Wl,'
14286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14287 # not for PA HP-UX.
14288 case "$host_cpu" in
14293 lt_prog_compiler_pic_GCJ='+Z'
14296 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14297 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14300 irix5* | irix6* | nonstopux*)
14301 lt_prog_compiler_wl_GCJ='-Wl,'
14302 # PIC (with -KPIC) is the default.
14303 lt_prog_compiler_static_GCJ='-non_shared'
14307 lt_prog_compiler_pic_GCJ='-KPIC'
14308 lt_prog_compiler_static_GCJ='-Bstatic'
14314 lt_prog_compiler_wl_GCJ='-Wl,'
14315 lt_prog_compiler_pic_GCJ='-KPIC'
14316 lt_prog_compiler_static_GCJ='-static'
14319 lt_prog_compiler_wl_GCJ='-Wl,'
14320 # All Alpha code is PIC.
14321 lt_prog_compiler_static_GCJ='-non_shared'
14326 osf3* | osf4* | osf5*)
14327 lt_prog_compiler_wl_GCJ='-Wl,'
14328 # All OSF/1 code is PIC.
14329 lt_prog_compiler_static_GCJ='-non_shared'
14333 lt_prog_compiler_pic_GCJ='-Kpic'
14334 lt_prog_compiler_static_GCJ='-dn'
14338 lt_prog_compiler_wl_GCJ='-Wl,'
14339 lt_prog_compiler_pic_GCJ='-KPIC'
14340 lt_prog_compiler_static_GCJ='-Bstatic'
14344 lt_prog_compiler_wl_GCJ='-Qoption ld '
14345 lt_prog_compiler_pic_GCJ='-PIC'
14346 lt_prog_compiler_static_GCJ='-Bstatic'
14349 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14350 lt_prog_compiler_wl_GCJ='-Wl,'
14351 lt_prog_compiler_pic_GCJ='-KPIC'
14352 lt_prog_compiler_static_GCJ='-Bstatic'
14356 if test -d /usr/nec ;then
14357 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14358 lt_prog_compiler_static_GCJ='-Bstatic'
14363 lt_prog_compiler_pic_GCJ='-pic'
14364 lt_prog_compiler_static_GCJ='-Bstatic'
14368 lt_prog_compiler_can_build_shared_GCJ=no
14373 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14374 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14377 # Check to make sure the PIC flag actually works.
14379 if test -n "$lt_prog_compiler_pic_GCJ"; then
14380 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14381 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14382 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 lt_prog_compiler_pic_works_GCJ=no
14386 ac_outfile=conftest.$ac_objext
14387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14388 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14389 # Insert the option either (1) after the last *FLAGS variable, or
14390 # (2) before a word containing "conftest.", or (3) at the end.
14391 # Note that $ac_compile itself does not contain backslashes and begins
14392 # with a dollar sign (not a hyphen), so the echo should work correctly.
14393 # The option is referenced via a variable to avoid confusing sed.
14394 lt_compile=`echo "$ac_compile" | $SED \
14395 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14397 -e 's:$: $lt_compiler_flag:'`
14398 (eval echo "\"\$as_me:14398: $lt_compile\"" >&5)
14399 (eval "$lt_compile" 2>conftest.err)
14401 cat conftest.err >&5
14402 echo "$as_me:14402: \$? = $ac_status" >&5
14403 if (exit $ac_status) && test -s "$ac_outfile"; then
14404 # The compiler can only warn and ignore the option if not recognized
14405 # So say no if there are warnings
14406 if test ! -s conftest.err; then
14407 lt_prog_compiler_pic_works_GCJ=yes
14413 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14414 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14416 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14417 case $lt_prog_compiler_pic_GCJ in
14419 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14422 lt_prog_compiler_pic_GCJ=
14423 lt_prog_compiler_can_build_shared_GCJ=no
14428 # For platforms which do not support PIC, -DPIC is meaningless:
14430 lt_prog_compiler_pic_GCJ=
14433 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14437 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14438 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14439 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 lt_cv_prog_compiler_c_o_GCJ=no
14443 $rm -r conftest 2>/dev/null
14447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14449 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14450 # that will create temporary files in the current directory regardless of
14451 # the output directory. Thus, making CWD read-only will cause this test
14452 # to fail, enabling locking or at least warning the user not to do parallel
14456 lt_compiler_flag="-o out/conftest2.$ac_objext"
14457 # Insert the option either (1) after the last *FLAGS variable, or
14458 # (2) before a word containing "conftest.", or (3) at the end.
14459 # Note that $ac_compile itself does not contain backslashes and begins
14460 # with a dollar sign (not a hyphen), so the echo should work correctly.
14461 lt_compile=`echo "$ac_compile" | $SED \
14462 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14464 -e 's:$: $lt_compiler_flag:'`
14465 (eval echo "\"\$as_me:14465: $lt_compile\"" >&5)
14466 (eval "$lt_compile" 2>out/conftest.err)
14468 cat out/conftest.err >&5
14469 echo "$as_me:14469: \$? = $ac_status" >&5
14470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14472 # The compiler can only warn and ignore the option if not recognized
14473 # So say no if there are warnings
14474 if test ! -s out/conftest.err; then
14475 lt_cv_prog_compiler_c_o_GCJ=yes
14479 $rm conftest* out/*
14486 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14487 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14490 hard_links="nottested"
14491 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14492 # do not overwrite the value of need_locks provided by the user
14493 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14494 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14499 ln conftest.a conftest.b 2>&5 || hard_links=no
14500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14501 echo "$as_me:$LINENO: result: $hard_links" >&5
14502 echo "${ECHO_T}$hard_links" >&6
14503 if test "$hard_links" = no; then
14504 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14505 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14512 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14513 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14516 allow_undefined_flag_GCJ=
14517 enable_shared_with_static_runtimes_GCJ=no
14519 archive_expsym_cmds_GCJ=
14520 old_archive_From_new_cmds_GCJ=
14521 old_archive_from_expsyms_cmds_GCJ=
14522 export_dynamic_flag_spec_GCJ=
14523 whole_archive_flag_spec_GCJ=
14524 thread_safe_flag_spec_GCJ=
14525 hardcode_libdir_flag_spec_GCJ=
14526 hardcode_libdir_flag_spec_ld_GCJ=
14527 hardcode_libdir_separator_GCJ=
14528 hardcode_direct_GCJ=no
14529 hardcode_minus_L_GCJ=no
14530 hardcode_shlibpath_var_GCJ=unsupported
14531 link_all_deplibs_GCJ=unknown
14532 hardcode_automatic_GCJ=no
14534 module_expsym_cmds_GCJ=
14535 always_export_symbols_GCJ=no
14536 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14537 # include_expsyms should be a list of space-separated symbols to be *always*
14538 # included in the symbol list
14539 include_expsyms_GCJ=
14540 # exclude_expsyms can be an extended regexp of symbols to exclude
14541 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14542 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14543 # as well as any symbol that contains `d'.
14544 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14545 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14546 # platforms (ab)use it in PIC code, but their linkers get confused if
14547 # the symbol is explicitly referenced. Since portable code cannot
14548 # rely on this symbol name, it's probably fine to never include it in
14549 # preloaded symbol tables.
14550 extract_expsyms_cmds=
14553 cygwin* | mingw* | pw32*)
14554 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14555 # When not using gcc, we currently assume that we are using
14556 # Microsoft Visual C++.
14557 if test "$GCC" != yes; then
14567 if test "$with_gnu_ld" = yes; then
14568 # If archive_cmds runs LD, not CC, wlarc should be empty
14571 # See if GNU ld supports shared libraries.
14573 aix3* | aix4* | aix5*)
14574 # On AIX/PPC, the GNU linker is very broken
14575 if test "$host_cpu" != ia64; then
14579 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14580 *** to be unable to reliably create shared libraries on AIX.
14581 *** Therefore, libtool is disabling shared libraries support. If you
14582 *** really care for shared libraries, you may want to modify your PATH
14583 *** so that a non-GNU linker is found, and then restart.
14590 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)'
14591 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14592 hardcode_minus_L_GCJ=yes
14594 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14595 # that the semantics of dynamic libraries on AmigaOS, at least up
14596 # to version 4, is to share data among multiple programs linked
14597 # with the same dynamic library. Since this doesn't match the
14598 # behavior of shared libraries on other platforms, we can't use
14604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14605 allow_undefined_flag_GCJ=unsupported
14606 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14607 # support --undefined. This deserves some investigation. FIXME
14608 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14614 cygwin* | mingw* | pw32*)
14615 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14616 # as there is no search path for DLLs.
14617 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14618 allow_undefined_flag_GCJ=unsupported
14619 always_export_symbols_GCJ=no
14620 enable_shared_with_static_runtimes_GCJ=yes
14621 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14623 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14624 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14625 # If the export-symbols file already is a .def file (1st line
14626 # is EXPORTS), use it as is; otherwise, prepend...
14627 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14628 cp $export_symbols $output_objdir/$soname.def;
14630 echo EXPORTS > $output_objdir/$soname.def;
14631 cat $export_symbols >> $output_objdir/$soname.def;
14633 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14641 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14644 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14645 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14650 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14654 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14655 *** create shared libraries on Solaris systems. Therefore, libtool
14656 *** is disabling shared libraries support. We urge you to upgrade GNU
14657 *** binutils to release 2.9.1 or newer. Another option is to modify
14658 *** your PATH or compiler configuration so that the native linker is
14659 *** used, and then restart.
14662 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14663 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14664 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14671 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14673 hardcode_direct_GCJ=yes
14674 hardcode_shlibpath_var_GCJ=no
14678 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14679 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14680 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14687 if test "$ld_shlibs_GCJ" = yes; then
14688 runpath_var=LD_RUN_PATH
14689 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14690 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14691 # ancient GNU ld didn't support --whole-archive et. al.
14692 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14693 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14695 whole_archive_flag_spec_GCJ=
14699 # PORTME fill in a description of your system's linker (not GNU ld)
14702 allow_undefined_flag_GCJ=unsupported
14703 always_export_symbols_GCJ=yes
14704 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'
14705 # Note: this linker hardcodes the directories in LIBPATH if there
14706 # are no directories specified by -L.
14707 hardcode_minus_L_GCJ=yes
14708 if test "$GCC" = yes && test -z "$link_static_flag"; then
14709 # Neither direct hardcoding nor static linking is supported with a
14711 hardcode_direct_GCJ=unsupported
14716 if test "$host_cpu" = ia64; then
14717 # On IA64, the linker does run time linking by default, so we don't
14718 # have to do anything special.
14719 aix_use_runtimelinking=no
14720 exp_sym_flag='-Bexport'
14723 # If we're using GNU nm, then we don't want the "-C" option.
14724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14726 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'
14728 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'
14730 aix_use_runtimelinking=no
14732 # Test if we are trying to use run time linking or normal
14733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14734 # need to do runtime linking.
14735 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14736 for ld_flag in $LDFLAGS; do
14737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14738 aix_use_runtimelinking=yes
14744 exp_sym_flag='-bexport'
14745 no_entry_flag='-bnoentry'
14748 # When large executables or shared objects are built, AIX ld can
14749 # have problems creating the table of contents. If linking a library
14750 # or program results in "error TOC overflow" add -mminimal-toc to
14751 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14752 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14754 archive_cmds_GCJ=''
14755 hardcode_direct_GCJ=yes
14756 hardcode_libdir_separator_GCJ=':'
14757 link_all_deplibs_GCJ=yes
14759 if test "$GCC" = yes; then
14760 case $host_os in aix4.012|aix4.012.*)
14761 # We only want to do this on AIX 4.2 and lower, the check
14762 # below for broken collect2 doesn't work under 4.3+
14763 collect2name=`${CC} -print-prog-name=collect2`
14764 if test -f "$collect2name" && \
14765 strings "$collect2name" | grep resolve_lib_name >/dev/null
14767 # We have reworked collect2
14768 hardcode_direct_GCJ=yes
14770 # We have old collect2
14771 hardcode_direct_GCJ=unsupported
14772 # It fails to find uninstalled libraries when the uninstalled
14773 # path is not listed in the libpath. Setting hardcode_minus_L
14774 # to unsupported forces relinking
14775 hardcode_minus_L_GCJ=yes
14776 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14777 hardcode_libdir_separator_GCJ=
14780 shared_flag='-shared'
14783 if test "$host_cpu" = ia64; then
14784 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14785 # chokes on -Wl,-G. The following line is correct:
14788 if test "$aix_use_runtimelinking" = yes; then
14789 shared_flag='${wl}-G'
14791 shared_flag='${wl}-bM:SRE'
14796 # It seems that -bexpall does not export symbols beginning with
14797 # underscore (_), so it is better to generate a list of symbols to export.
14798 always_export_symbols_GCJ=yes
14799 if test "$aix_use_runtimelinking" = yes; then
14800 # Warning - without using the other runtime loading flags (-brtl),
14801 # -berok will link without error, but may produce a broken library.
14802 allow_undefined_flag_GCJ='-berok'
14803 # Determine the default libpath from the value encoded in an empty executable.
14804 cat >conftest.$ac_ext <<_ACEOF
14805 #line $LINENO "configure"
14806 #include "confdefs.h"
14808 #ifdef F77_DUMMY_MAIN
14809 # ifdef __cplusplus
14812 int F77_DUMMY_MAIN() { return 1; }
14822 rm -f conftest.$ac_objext conftest$ac_exeext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824 (eval $ac_link) 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -s conftest$ac_exeext'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14837 # Check for a 64-bit object if we didn't find anything.
14838 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; }
14841 echo "$as_me: failed program was:" >&5
14842 cat conftest.$ac_ext >&5
14844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14847 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14848 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"
14850 if test "$host_cpu" = ia64; then
14851 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
14852 allow_undefined_flag_GCJ="-z nodefs"
14853 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"
14855 # Determine the default libpath from the value encoded in an empty executable.
14856 cat >conftest.$ac_ext <<_ACEOF
14857 #line $LINENO "configure"
14858 #include "confdefs.h"
14860 #ifdef F77_DUMMY_MAIN
14861 # ifdef __cplusplus
14864 int F77_DUMMY_MAIN() { return 1; }
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876 (eval $ac_link) 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try='test -s conftest$ac_exeext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14889 # Check for a 64-bit object if we didn't find anything.
14890 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; }
14893 echo "$as_me: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14899 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14900 # Warning - without using the other run time loading flags,
14901 # -berok will link without error, but may produce a broken library.
14902 no_undefined_flag_GCJ=' ${wl}-bernotok'
14903 allow_undefined_flag_GCJ=' ${wl}-berok'
14904 # -bexpall does not export symbols beginning with underscore (_)
14905 always_export_symbols_GCJ=yes
14906 # Exported symbols can be pulled into shared objects from archives
14907 whole_archive_flag_spec_GCJ=' '
14908 archive_cmds_need_lc_GCJ=yes
14909 # This is similar to how AIX traditionally builds it's shared libraries.
14910 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'
14916 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)'
14917 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14918 hardcode_minus_L_GCJ=yes
14919 # see comment about different semantics on the GNU ld section
14924 export_dynamic_flag_spec_GCJ=-rdynamic
14927 cygwin* | mingw* | pw32*)
14928 # When not using gcc, we currently assume that we are using
14929 # Microsoft Visual C++.
14930 # hardcode_libdir_flag_spec is actually meaningless, as there is
14931 # no search path for DLLs.
14932 hardcode_libdir_flag_spec_GCJ=' '
14933 allow_undefined_flag_GCJ=unsupported
14934 # Tell ltmain to make .lib files, not .a files.
14936 # Tell ltmain to make .dll files, not .so files.
14938 # FIXME: Setting linknames here is a bad hack.
14939 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14940 # The linker will automatically build a .lib file if we build a DLL.
14941 old_archive_From_new_cmds_GCJ='true'
14942 # FIXME: Should let the user specify the lib program.
14943 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
14944 fix_srcfile_path='`cygpath -w "$srcfile"`'
14945 enable_shared_with_static_runtimes_GCJ=yes
14948 darwin* | rhapsody*)
14949 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14950 archive_cmds_need_lc_GCJ=no
14952 rhapsody* | darwin1.[012])
14953 allow_undefined_flag_GCJ='-undefined suppress'
14956 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
14959 # FIXME: Relying on posixy $() will cause problems for
14960 # cross-compilation, but unfortunately the echo tests do not
14961 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
14962 # `"' quotes if we put them in here... so don't!
14963 lt_int_apple_cc_single_mod=no
14964 output_verbose_link_cmd='echo'
14965 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14966 lt_int_apple_cc_single_mod=yes
14968 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14969 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14971 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'
14973 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14974 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14975 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14976 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}'
14978 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}'
14980 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}'
14981 hardcode_direct_GCJ=no
14982 hardcode_automatic_GCJ=yes
14983 hardcode_shlibpath_var_GCJ=unsupported
14984 whole_archive_flag_spec_GCJ='-all_load $convenience'
14985 link_all_deplibs_GCJ=yes
14990 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14992 hardcode_shlibpath_var_GCJ=no
14999 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15000 # support. Future versions do this automatically, but an explicit c++rt0.o
15001 # does not break anything, and helps significantly (at the cost of a little
15004 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15005 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15006 hardcode_direct_GCJ=yes
15007 hardcode_shlibpath_var_GCJ=no
15010 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15012 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_direct_GCJ=yes
15014 hardcode_minus_L_GCJ=yes
15015 hardcode_shlibpath_var_GCJ=no
15018 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15020 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15021 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15022 hardcode_direct_GCJ=yes
15023 hardcode_shlibpath_var_GCJ=no
15027 if test "$GCC" = yes; then
15028 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'
15030 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'
15032 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15033 hardcode_libdir_separator_GCJ=:
15034 hardcode_direct_GCJ=yes
15036 # hardcode_minus_L: Not really in the search PATH,
15037 # but as the default location of the library.
15038 hardcode_minus_L_GCJ=yes
15039 export_dynamic_flag_spec_GCJ='${wl}-E'
15043 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15044 case "$host_cpu" in
15046 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15049 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15053 case "$host_cpu" in
15055 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15058 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15062 if test "$with_gnu_ld" = no; then
15063 case "$host_cpu" in
15065 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15066 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15067 hardcode_libdir_separator_GCJ=:
15068 hardcode_direct_GCJ=no
15069 hardcode_shlibpath_var_GCJ=no
15072 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15073 hardcode_direct_GCJ=no
15074 hardcode_shlibpath_var_GCJ=no
15076 # hardcode_minus_L: Not really in the search PATH,
15077 # but as the default location of the library.
15078 hardcode_minus_L_GCJ=yes
15081 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15082 hardcode_libdir_separator_GCJ=:
15083 hardcode_direct_GCJ=yes
15084 export_dynamic_flag_spec_GCJ='${wl}-E'
15086 # hardcode_minus_L: Not really in the search PATH,
15087 # but as the default location of the library.
15088 hardcode_minus_L_GCJ=yes
15094 irix5* | irix6* | nonstopux*)
15095 if test "$GCC" = yes; then
15096 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'
15098 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'
15099 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15101 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15102 hardcode_libdir_separator_GCJ=:
15103 link_all_deplibs_GCJ=yes
15107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15108 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15110 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15112 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15113 hardcode_direct_GCJ=yes
15114 hardcode_shlibpath_var_GCJ=no
15118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15119 hardcode_direct_GCJ=yes
15120 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15121 hardcode_libdir_separator_GCJ=:
15122 hardcode_shlibpath_var_GCJ=no
15126 hardcode_direct_GCJ=yes
15127 hardcode_shlibpath_var_GCJ=no
15128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15129 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15130 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15131 export_dynamic_flag_spec_GCJ='${wl}-E'
15134 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15135 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15136 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15139 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15148 hardcode_minus_L_GCJ=yes
15149 allow_undefined_flag_GCJ=unsupported
15150 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'
15151 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15155 if test "$GCC" = yes; then
15156 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15157 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'
15159 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15160 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'
15162 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15163 hardcode_libdir_separator_GCJ=:
15166 osf4* | osf5*) # as osf3* with the addition of -msym flag
15167 if test "$GCC" = yes; then
15168 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15169 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'
15170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15172 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15173 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'
15174 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~
15175 $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'
15177 # Both c and cxx compiler support -rpath directly
15178 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15180 hardcode_libdir_separator_GCJ=:
15184 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15185 hardcode_shlibpath_var_GCJ=no
15186 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15187 runpath_var=LD_RUN_PATH
15188 hardcode_runpath_var=yes
15192 no_undefined_flag_GCJ=' -z text'
15193 if test "$GCC" = yes; then
15194 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15195 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15196 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15198 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15200 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15202 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15203 hardcode_shlibpath_var_GCJ=no
15205 solaris2.[0-5] | solaris2.[0-5].*) ;;
15206 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15207 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15209 link_all_deplibs_GCJ=yes
15213 if test "x$host_vendor" = xsequent; then
15214 # Use $CC to link under sequent, because it throws in some extra .o
15215 # files that make .init and .fini sections work.
15216 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15218 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15220 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15221 hardcode_direct_GCJ=yes
15222 hardcode_minus_L_GCJ=yes
15223 hardcode_shlibpath_var_GCJ=no
15227 case $host_vendor in
15229 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15230 hardcode_direct_GCJ=yes # is this really true???
15233 ## LD is ld it makes a PLAMLIB
15234 ## CC just makes a GrossModule.
15235 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15236 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15237 hardcode_direct_GCJ=no
15240 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15241 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15244 runpath_var='LD_RUN_PATH'
15245 hardcode_shlibpath_var_GCJ=no
15249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15250 hardcode_shlibpath_var_GCJ=no
15251 export_dynamic_flag_spec_GCJ='-Bexport'
15255 if test -d /usr/nec; then
15256 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15257 hardcode_shlibpath_var_GCJ=no
15258 runpath_var=LD_RUN_PATH
15259 hardcode_runpath_var=yes
15265 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15266 hardcode_direct_GCJ=yes
15267 hardcode_minus_L_GCJ=no
15268 hardcode_shlibpath_var_GCJ=no
15269 hardcode_runpath_var=yes
15270 runpath_var=LD_RUN_PATH
15273 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15274 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15275 if test "$GCC" = yes; then
15276 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15278 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15280 runpath_var='LD_RUN_PATH'
15281 hardcode_shlibpath_var_GCJ=no
15285 no_undefined_flag_GCJ=' -z text'
15286 # $CC -shared without GNU ld will not create a library from C++
15287 # object files and a static libstdc++, better avoid it by now
15288 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15289 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15290 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15291 hardcode_libdir_flag_spec_GCJ=
15292 hardcode_shlibpath_var_GCJ=no
15293 runpath_var='LD_RUN_PATH'
15297 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15298 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15299 hardcode_shlibpath_var_GCJ=no
15308 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15309 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15310 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15312 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15313 if test "$GCC" = yes; then
15314 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15318 # Do we need to explicitly link libc?
15320 case "x$archive_cmds_need_lc_GCJ" in
15322 # Assume -lc should be added
15323 archive_cmds_need_lc_GCJ=yes
15325 if test "$enable_shared" = yes && test "$GCC" = yes; then
15326 case $archive_cmds_GCJ in
15328 # FIXME: we may have to deal with multi-command sequences.
15331 # Test whether the compiler implicitly links with -lc since on some
15332 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15333 # to ld, don't add -lc before -lgcc.
15334 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15335 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15337 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 (eval $ac_compile) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } 2>conftest.err; then
15346 libobjs=conftest.$ac_objext
15348 wl=$lt_prog_compiler_wl_GCJ
15354 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15355 allow_undefined_flag_GCJ=
15356 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15357 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }
15362 archive_cmds_need_lc_GCJ=no
15364 archive_cmds_need_lc_GCJ=yes
15366 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15368 cat conftest.err 1>&5
15371 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15372 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15379 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15380 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15381 hardcode_action_GCJ=
15382 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15383 test -n "$runpath_var GCJ" || \
15384 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15386 # We can hardcode non-existant directories.
15387 if test "$hardcode_direct_GCJ" != no &&
15388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15389 # have to relink, otherwise we might link with an installed library
15390 # when we should be linking with a yet-to-be-installed one
15391 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15392 test "$hardcode_minus_L_GCJ" != no; then
15393 # Linking always hardcodes the temporary library directory.
15394 hardcode_action_GCJ=relink
15396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15397 hardcode_action_GCJ=immediate
15400 # We cannot hardcode anything, or else we can only hardcode existing
15402 hardcode_action_GCJ=unsupported
15404 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15405 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15407 if test "$hardcode_action_GCJ" = relink; then
15408 # Fast installation is not supported
15409 enable_fast_install=no
15410 elif test "$shlibpath_overrides_runpath" = yes ||
15411 test "$enable_shared" = no; then
15412 # Fast installation is not necessary
15413 enable_fast_install=needless
15418 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15419 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15420 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15421 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15422 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15423 echo "$as_me:$LINENO: result: yes" >&5
15424 echo "${ECHO_T}yes" >&6
15426 # FIXME - insert some real tests, host_os isn't really good enough
15429 if test -n "$STRIP" ; then
15430 striplib="$STRIP -x"
15431 echo "$as_me:$LINENO: result: yes" >&5
15432 echo "${ECHO_T}yes" >&6
15434 echo "$as_me:$LINENO: result: no" >&5
15435 echo "${ECHO_T}no" >&6
15439 echo "$as_me:$LINENO: result: no" >&5
15440 echo "${ECHO_T}no" >&6
15445 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15446 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15447 library_names_spec=
15448 libname_spec='lib$name'
15452 postuninstall_cmds=
15456 shlibpath_overrides_runpath=unknown
15458 dynamic_linker="$host_os ld.so"
15459 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15460 if test "$GCC" = yes; then
15461 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15462 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15463 # if the path contains ";" then we assume it to be the separator
15464 # otherwise default to the standard path separator (i.e. ":") - it is
15465 # assumed that no part of a normal pathname contains ";" but that should
15466 # okay in the real world where ";" in dirpaths is itself problematic.
15467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15472 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15474 need_lib_prefix=unknown
15475 hardcode_into_libs=no
15477 # when you set need_version to no, make sure it does not cause -set_version
15478 # flags to be left without arguments
15479 need_version=unknown
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15485 shlibpath_var=LIBPATH
15487 # AIX 3 has no versioning support, so we append a major version to the name.
15488 soname_spec='${libname}${release}${shared_ext}$major'
15495 hardcode_into_libs=yes
15496 if test "$host_cpu" = ia64; then
15497 # AIX 5 supports IA64
15498 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15499 shlibpath_var=LD_LIBRARY_PATH
15501 # With GCC up to 2.95.x, collect2 would create an import file
15502 # for dependence libraries. The import file would start with
15503 # the line `#! .'. This would cause the generated library to
15504 # depend on `.', always an invalid library. This was fixed in
15505 # development snapshots of GCC prior to 3.0.
15507 aix4 | aix4.[01] | aix4.[01].*)
15508 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15510 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15513 can_build_shared=no
15517 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15518 # soname into executable. Probably we can add versioning support to
15519 # collect2, so additional links can be useful in future.
15520 if test "$aix_use_runtimelinking" = yes; then
15521 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15522 # instead of lib<name>.a to let people know that these are not
15523 # typical AIX shared libraries.
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 # We preserve .a as extension for shared libraries through AIX4.2
15527 # and later when we are not doing run time linking.
15528 library_names_spec='${libname}${release}.a $libname.a'
15529 soname_spec='${libname}${release}${shared_ext}$major'
15531 shlibpath_var=LIBPATH
15536 library_names_spec='$libname.ixlibrary $libname.a'
15537 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15538 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'
15542 library_names_spec='${libname}${shared_ext}'
15543 dynamic_linker="$host_os ld.so"
15544 shlibpath_var=LIBRARY_PATH
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551 soname_spec='${libname}${release}${shared_ext}$major'
15552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15556 # the default ld.so.conf also contains /usr/contrib/lib and
15557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15558 # libtool to hard-code these into programs
15561 cygwin* | mingw* | pw32*)
15562 version_type=windows
15567 case $GCC,$host_os in
15568 yes,cygwin* | yes,mingw* | yes,pw32*)
15569 library_names_spec='$libname.dll.a'
15570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15571 postinstall_cmds='base_file=`basename \${file}`~
15572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15573 dldir=$destdir/`dirname \$dlpath`~
15574 test -d \$dldir || mkdir -p \$dldir~
15575 $install_prog $dir/$dlname \$dldir/$dlname'
15576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15577 dlpath=$dir/\$dldll~
15579 shlibpath_overrides_runpath=yes
15583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15584 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15585 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15588 # MinGW DLLs use traditional 'lib' prefix
15589 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15591 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15592 # It is most probably a Windows format PATH printed by
15593 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15594 # path with ; separators, and with drive letters. We can handle the
15595 # drive letters (cygwin fileutils understands them), so leave them,
15596 # especially as we might pass files found there to a mingw objdump,
15597 # which wouldn't understand a cygwinified path. Ahh.
15598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15604 # pw32 DLLs use 'pw' prefix rather than 'lib'
15605 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15614 dynamic_linker='Win32 ld.exe'
15615 # FIXME: first we should search . and the directory the executable is in
15619 darwin* | rhapsody*)
15620 dynamic_linker="$host_os dyld"
15621 version_type=darwin
15624 # FIXME: Relying on posixy $() will cause problems for
15625 # cross-compilation, but unfortunately the echo tests do not
15626 # yet detect zsh echo's removal of \ escapes.
15627 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15628 soname_spec='${libname}${release}${major}$shared_ext'
15629 shlibpath_overrides_runpath=yes
15630 shlibpath_var=DYLD_LIBRARY_PATH
15631 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15632 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15633 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15634 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"`
15636 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 shlibpath_var=LD_LIBRARY_PATH
15653 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15654 version_type=freebsd-$objformat
15655 case $version_type in
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15666 shlibpath_var=LD_LIBRARY_PATH
15669 shlibpath_overrides_runpath=yes
15671 freebsd3.01* | freebsdelf3.01*)
15672 shlibpath_overrides_runpath=yes
15673 hardcode_into_libs=yes
15676 shlibpath_overrides_runpath=no
15677 hardcode_into_libs=yes
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15687 soname_spec='${libname}${release}${shared_ext}$major'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 hardcode_into_libs=yes
15692 hpux9* | hpux10* | hpux11*)
15693 # Give a soname corresponding to the major version so that dld.sl refuses to
15694 # link against other versions.
15698 case "$host_cpu" in
15701 hardcode_into_libs=yes
15702 dynamic_linker="$host_os dld.so"
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 if test "X$HPUX_IA64_MODE" = X32; then
15708 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15710 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15716 hardcode_into_libs=yes
15717 dynamic_linker="$host_os dld.sl"
15718 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15727 dynamic_linker="$host_os dld.sl"
15728 shlibpath_var=SHLIB_PATH
15729 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731 soname_spec='${libname}${release}${shared_ext}$major'
15734 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15735 postinstall_cmds='chmod 555 $lib'
15738 irix5* | irix6* | nonstopux*)
15740 nonstopux*) version_type=nonstopux ;;
15742 if test "$lt_cv_prog_gnu_ld" = yes; then
15750 soname_spec='${libname}${release}${shared_ext}$major'
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15753 irix5* | nonstopux*)
15754 libsuff= shlibsuff=
15757 case $LD in # libtool.m4 will add one of these switches to LD
15758 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15759 libsuff= shlibsuff= libmagic=32-bit;;
15760 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15761 libsuff=32 shlibsuff=N32 libmagic=N32;;
15762 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15763 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15764 *) libsuff= shlibsuff= libmagic=never-match;;
15768 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15769 shlibpath_overrides_runpath=no
15770 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15771 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15772 hardcode_into_libs=yes
15775 # No shared lib support for Linux oldld, aout, or coff.
15776 linux*oldld* | linux*aout* | linux*coff*)
15780 # This must be Linux ELF.
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786 soname_spec='${libname}${release}${shared_ext}$major'
15787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15788 shlibpath_var=LD_LIBRARY_PATH
15789 shlibpath_overrides_runpath=no
15790 # This implies no fast_install, which is unacceptable.
15791 # Some rework will be needed to allow for fast_install
15792 # before this can be enabled.
15793 hardcode_into_libs=yes
15795 # We used to test for /lib/ld.so.1 and disable shared libraries on
15796 # powerpc, because MkLinux only supported shared libraries with the
15797 # GNU dynamic linker. Since this was broken with cross compilers,
15798 # most powerpc-linux boxes support dynamic linking these days and
15799 # people can always --disable-shared, the test was removed, and we
15800 # assume the GNU/Linux dynamic linker is in use.
15801 dynamic_linker='GNU/Linux ld.so'
15808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15811 dynamic_linker='NetBSD (a.out) ld.so'
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 dynamic_linker='NetBSD ld.elf_so'
15817 shlibpath_var=LD_LIBRARY_PATH
15818 shlibpath_overrides_runpath=yes
15819 hardcode_into_libs=yes
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 shlibpath_overrides_runpath=yes
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15848 openbsd2.[89] | openbsd2.[89].*)
15849 shlibpath_overrides_runpath=no
15852 shlibpath_overrides_runpath=yes
15856 shlibpath_overrides_runpath=yes
15861 libname_spec='$name'
15864 library_names_spec='$libname${shared_ext} $libname.a'
15865 dynamic_linker='OS/2 ld.exe'
15866 shlibpath_var=LIBPATH
15869 osf3* | osf4* | osf5*)
15873 soname_spec='${libname}${release}${shared_ext}$major'
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875 shlibpath_var=LD_LIBRARY_PATH
15876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15882 soname_spec='${libname}${release}${shared_ext}$major'
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884 shlibpath_var=LD_LIBRARY_PATH
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 shlibpath_var=LD_LIBRARY_PATH
15894 shlibpath_overrides_runpath=yes
15895 hardcode_into_libs=yes
15896 # ldd complains unless libraries are executable
15897 postinstall_cmds='chmod +x $lib'
15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15903 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15904 shlibpath_var=LD_LIBRARY_PATH
15905 shlibpath_overrides_runpath=yes
15906 if test "$with_gnu_ld" = yes; then
15912 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15915 soname_spec='${libname}${release}${shared_ext}$major'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 case $host_vendor in
15919 shlibpath_overrides_runpath=no
15921 export_dynamic_flag_spec='${wl}-Blargedynsym'
15922 runpath_var=LD_RUN_PATH
15930 shlibpath_overrides_runpath=no
15931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15937 if test -d /usr/nec ;then
15939 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15940 soname_spec='$libname${shared_ext}.$major'
15941 shlibpath_var=LD_LIBRARY_PATH
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 shlibpath_var=LD_LIBRARY_PATH
15956 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15957 echo "${ECHO_T}$dynamic_linker" >&6
15958 test "$dynamic_linker" = no && can_build_shared=no
15960 if test "x$enable_dlopen" != xyes; then
15961 enable_dlopen=unknown
15962 enable_dlopen_self=unknown
15963 enable_dlopen_self_static=unknown
15970 lt_cv_dlopen="load_add_on"
15972 lt_cv_dlopen_self=yes
15976 lt_cv_dlopen="LoadLibrary"
15981 lt_cv_dlopen="dlopen"
15986 # if libdl is installed we need to link against it
15987 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15988 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15989 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 ac_check_lib_save_LIBS=$LIBS
15994 cat >conftest.$ac_ext <<_ACEOF
15995 #line $LINENO "configure"
15996 #include "confdefs.h"
15998 /* Override any gcc2 internal prototype to avoid an error. */
16002 /* We use char because int might match the return type of a gcc2
16003 builtin and then its argument prototype would still apply. */
16005 #ifdef F77_DUMMY_MAIN
16006 # ifdef __cplusplus
16009 int F77_DUMMY_MAIN() { return 1; }
16019 rm -f conftest.$ac_objext conftest$ac_exeext
16020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16021 (eval $ac_link) 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -s conftest$ac_exeext'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }; then
16031 ac_cv_lib_dl_dlopen=yes
16033 echo "$as_me: failed program was:" >&5
16034 cat conftest.$ac_ext >&5
16035 ac_cv_lib_dl_dlopen=no
16037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16038 LIBS=$ac_check_lib_save_LIBS
16040 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16041 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16042 if test $ac_cv_lib_dl_dlopen = yes; then
16043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16046 lt_cv_dlopen="dyld"
16048 lt_cv_dlopen_self=yes
16055 echo "$as_me:$LINENO: checking for shl_load" >&5
16056 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16057 if test "${ac_cv_func_shl_load+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16062 #include "confdefs.h"
16063 /* System header to define __stub macros and hopefully few prototypes,
16064 which can conflict with char shl_load (); below. */
16065 #include <assert.h>
16066 /* Override any gcc2 internal prototype to avoid an error. */
16070 /* We use char because int might match the return type of a gcc2
16071 builtin and then its argument prototype would still apply. */
16075 #ifdef F77_DUMMY_MAIN
16076 # ifdef __cplusplus
16079 int F77_DUMMY_MAIN() { return 1; }
16084 /* The GNU C library defines this for functions which it implements
16085 to always fail with ENOSYS. Some functions are actually named
16086 something starting with __ and the normal name is an alias. */
16087 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16097 rm -f conftest.$ac_objext conftest$ac_exeext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16099 (eval $ac_link) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -s conftest$ac_exeext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_cv_func_shl_load=yes
16111 echo "$as_me: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16113 ac_cv_func_shl_load=no
16115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16117 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16118 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16119 if test $ac_cv_func_shl_load = yes; then
16120 lt_cv_dlopen="shl_load"
16122 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16123 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16124 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 ac_check_lib_save_LIBS=$LIBS
16129 cat >conftest.$ac_ext <<_ACEOF
16130 #line $LINENO "configure"
16131 #include "confdefs.h"
16133 /* Override any gcc2 internal prototype to avoid an error. */
16137 /* We use char because int might match the return type of a gcc2
16138 builtin and then its argument prototype would still apply. */
16140 #ifdef F77_DUMMY_MAIN
16141 # ifdef __cplusplus
16144 int F77_DUMMY_MAIN() { return 1; }
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16156 (eval $ac_link) 2>&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
16160 { ac_try='test -s conftest$ac_exeext'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_cv_lib_dld_shl_load=yes
16168 echo "$as_me: failed program was:" >&5
16169 cat conftest.$ac_ext >&5
16170 ac_cv_lib_dld_shl_load=no
16172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16173 LIBS=$ac_check_lib_save_LIBS
16175 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16176 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16177 if test $ac_cv_lib_dld_shl_load = yes; then
16178 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16180 echo "$as_me:$LINENO: checking for dlopen" >&5
16181 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16182 if test "${ac_cv_func_dlopen+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 cat >conftest.$ac_ext <<_ACEOF
16186 #line $LINENO "configure"
16187 #include "confdefs.h"
16188 /* System header to define __stub macros and hopefully few prototypes,
16189 which can conflict with char dlopen (); below. */
16190 #include <assert.h>
16191 /* Override any gcc2 internal prototype to avoid an error. */
16195 /* We use char because int might match the return type of a gcc2
16196 builtin and then its argument prototype would still apply. */
16200 #ifdef F77_DUMMY_MAIN
16201 # ifdef __cplusplus
16204 int F77_DUMMY_MAIN() { return 1; }
16209 /* The GNU C library defines this for functions which it implements
16210 to always fail with ENOSYS. Some functions are actually named
16211 something starting with __ and the normal name is an alias. */
16212 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16222 rm -f conftest.$ac_objext conftest$ac_exeext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16224 (eval $ac_link) 2>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
16228 { ac_try='test -s conftest$ac_exeext'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234 ac_cv_func_dlopen=yes
16236 echo "$as_me: failed program was:" >&5
16237 cat conftest.$ac_ext >&5
16238 ac_cv_func_dlopen=no
16240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16242 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16243 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16244 if test $ac_cv_func_dlopen = yes; then
16245 lt_cv_dlopen="dlopen"
16247 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16248 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16250 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 ac_check_lib_save_LIBS=$LIBS
16254 cat >conftest.$ac_ext <<_ACEOF
16255 #line $LINENO "configure"
16256 #include "confdefs.h"
16258 /* Override any gcc2 internal prototype to avoid an error. */
16262 /* We use char because int might match the return type of a gcc2
16263 builtin and then its argument prototype would still apply. */
16265 #ifdef F77_DUMMY_MAIN
16266 # ifdef __cplusplus
16269 int F77_DUMMY_MAIN() { return 1; }
16279 rm -f conftest.$ac_objext conftest$ac_exeext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281 (eval $ac_link) 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
16285 { ac_try='test -s conftest$ac_exeext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 ac_cv_lib_dl_dlopen=yes
16293 echo "$as_me: failed program was:" >&5
16294 cat conftest.$ac_ext >&5
16295 ac_cv_lib_dl_dlopen=no
16297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16298 LIBS=$ac_check_lib_save_LIBS
16300 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16301 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16302 if test $ac_cv_lib_dl_dlopen = yes; then
16303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16305 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16306 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16307 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 ac_check_lib_save_LIBS=$LIBS
16311 LIBS="-lsvld $LIBS"
16312 cat >conftest.$ac_ext <<_ACEOF
16313 #line $LINENO "configure"
16314 #include "confdefs.h"
16316 /* Override any gcc2 internal prototype to avoid an error. */
16320 /* We use char because int might match the return type of a gcc2
16321 builtin and then its argument prototype would still apply. */
16323 #ifdef F77_DUMMY_MAIN
16324 # ifdef __cplusplus
16327 int F77_DUMMY_MAIN() { return 1; }
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
16343 { ac_try='test -s conftest$ac_exeext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 ac_cv_lib_svld_dlopen=yes
16351 echo "$as_me: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16353 ac_cv_lib_svld_dlopen=no
16355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16356 LIBS=$ac_check_lib_save_LIBS
16358 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16359 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16360 if test $ac_cv_lib_svld_dlopen = yes; then
16361 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16363 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16364 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16365 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 ac_check_lib_save_LIBS=$LIBS
16370 cat >conftest.$ac_ext <<_ACEOF
16371 #line $LINENO "configure"
16372 #include "confdefs.h"
16374 /* Override any gcc2 internal prototype to avoid an error. */
16378 /* We use char because int might match the return type of a gcc2
16379 builtin and then its argument prototype would still apply. */
16381 #ifdef F77_DUMMY_MAIN
16382 # ifdef __cplusplus
16385 int F77_DUMMY_MAIN() { return 1; }
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397 (eval $ac_link) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -s conftest$ac_exeext'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 ac_cv_lib_dld_dld_link=yes
16409 echo "$as_me: failed program was:" >&5
16410 cat conftest.$ac_ext >&5
16411 ac_cv_lib_dld_dld_link=no
16413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16414 LIBS=$ac_check_lib_save_LIBS
16416 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16417 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16418 if test $ac_cv_lib_dld_dld_link = yes; then
16419 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16440 if test "x$lt_cv_dlopen" != xno; then
16446 case $lt_cv_dlopen in
16448 save_CPPFLAGS="$CPPFLAGS"
16449 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16451 save_LDFLAGS="$LDFLAGS"
16452 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16455 LIBS="$lt_cv_dlopen_libs $LIBS"
16457 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16458 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16459 if test "${lt_cv_dlopen_self+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 if test "$cross_compiling" = yes; then :
16463 lt_cv_dlopen_self=cross
16465 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16466 lt_status=$lt_dlunknown
16467 cat > conftest.$ac_ext <<EOF
16468 #line 16468 "configure"
16469 #include "confdefs.h"
16478 # define LT_DLGLOBAL RTLD_GLOBAL
16481 # define LT_DLGLOBAL DL_GLOBAL
16483 # define LT_DLGLOBAL 0
16487 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16488 find out it does not work in some platform. */
16489 #ifndef LT_DLLAZY_OR_NOW
16491 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16494 # define LT_DLLAZY_OR_NOW DL_LAZY
16497 # define LT_DLLAZY_OR_NOW RTLD_NOW
16500 # define LT_DLLAZY_OR_NOW DL_NOW
16502 # define LT_DLLAZY_OR_NOW 0
16510 extern "C" void exit (int);
16513 void fnord() { int i=42;}
16516 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16517 int status = $lt_dlunknown;
16521 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16522 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16523 /* dlclose (self); */
16529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16530 (eval $ac_link) 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16534 (./conftest; exit; ) 2>/dev/null
16536 case x$lt_status in
16537 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16538 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16539 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16542 # compilation failed
16543 lt_cv_dlopen_self=no
16550 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16551 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16553 if test "x$lt_cv_dlopen_self" = xyes; then
16554 LDFLAGS="$LDFLAGS $link_static_flag"
16555 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16556 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16557 if test "${lt_cv_dlopen_self_static+set}" = set; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 if test "$cross_compiling" = yes; then :
16561 lt_cv_dlopen_self_static=cross
16563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16564 lt_status=$lt_dlunknown
16565 cat > conftest.$ac_ext <<EOF
16566 #line 16566 "configure"
16567 #include "confdefs.h"
16576 # define LT_DLGLOBAL RTLD_GLOBAL
16579 # define LT_DLGLOBAL DL_GLOBAL
16581 # define LT_DLGLOBAL 0
16585 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16586 find out it does not work in some platform. */
16587 #ifndef LT_DLLAZY_OR_NOW
16589 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16592 # define LT_DLLAZY_OR_NOW DL_LAZY
16595 # define LT_DLLAZY_OR_NOW RTLD_NOW
16598 # define LT_DLLAZY_OR_NOW DL_NOW
16600 # define LT_DLLAZY_OR_NOW 0
16608 extern "C" void exit (int);
16611 void fnord() { int i=42;}
16614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16615 int status = $lt_dlunknown;
16619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16620 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16621 /* dlclose (self); */
16627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16628 (eval $ac_link) 2>&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16632 (./conftest; exit; ) 2>/dev/null
16634 case x$lt_status in
16635 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16636 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16637 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16640 # compilation failed
16641 lt_cv_dlopen_self_static=no
16648 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16649 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16652 CPPFLAGS="$save_CPPFLAGS"
16653 LDFLAGS="$save_LDFLAGS"
16658 case $lt_cv_dlopen_self in
16659 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16660 *) enable_dlopen_self=unknown ;;
16663 case $lt_cv_dlopen_self_static in
16664 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16665 *) enable_dlopen_self_static=unknown ;;
16670 # The else clause should only fire when bootstrapping the
16671 # libtool distribution, otherwise you forgot to ship ltmain.sh
16672 # with your package, and you will get complaints that there are
16673 # no rules to generate ltmain.sh.
16674 if test -f "$ltmain"; then
16675 # See if we are running on zsh, and set the options which allow our commands through
16676 # without removal of \ escapes.
16677 if test -n "${ZSH_VERSION+set}" ; then
16678 setopt NO_GLOB_SUBST
16680 # Now quote all the things that may contain metacharacters while being
16681 # careful not to overquote the AC_SUBSTed values. We take copies of the
16682 # variables and quote the copies for generation of the libtool script.
16683 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16684 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16685 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16686 deplibs_check_method reload_flag reload_cmds need_locks \
16687 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16688 lt_cv_sys_global_symbol_to_c_name_address \
16689 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16690 old_postinstall_cmds old_postuninstall_cmds \
16694 lt_prog_compiler_wl_GCJ \
16695 lt_prog_compiler_pic_GCJ \
16696 lt_prog_compiler_static_GCJ \
16697 lt_prog_compiler_no_builtin_flag_GCJ \
16698 export_dynamic_flag_spec_GCJ \
16699 thread_safe_flag_spec_GCJ \
16700 whole_archive_flag_spec_GCJ \
16701 enable_shared_with_static_runtimes_GCJ \
16702 old_archive_cmds_GCJ \
16703 old_archive_from_new_cmds_GCJ \
16704 predep_objects_GCJ \
16705 postdep_objects_GCJ \
16708 compiler_lib_search_path_GCJ \
16710 archive_expsym_cmds_GCJ \
16711 postinstall_cmds_GCJ \
16712 postuninstall_cmds_GCJ \
16713 old_archive_from_expsyms_cmds_GCJ \
16714 allow_undefined_flag_GCJ \
16715 no_undefined_flag_GCJ \
16716 export_symbols_cmds_GCJ \
16717 hardcode_libdir_flag_spec_GCJ \
16718 hardcode_libdir_flag_spec_ld_GCJ \
16719 hardcode_libdir_separator_GCJ \
16720 hardcode_automatic_GCJ \
16722 module_expsym_cmds_GCJ \
16723 lt_cv_prog_compiler_c_o_GCJ \
16724 exclude_expsyms_GCJ \
16725 include_expsyms_GCJ; do
16728 old_archive_cmds_GCJ | \
16729 old_archive_from_new_cmds_GCJ | \
16730 archive_cmds_GCJ | \
16731 archive_expsym_cmds_GCJ | \
16732 module_cmds_GCJ | \
16733 module_expsym_cmds_GCJ | \
16734 old_archive_from_expsyms_cmds_GCJ | \
16735 export_symbols_cmds_GCJ | \
16736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16737 postinstall_cmds | postuninstall_cmds | \
16738 old_postinstall_cmds | old_postuninstall_cmds | \
16739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16740 # Double-quote double-evaled strings.
16741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16750 *'\$0 --fallback-echo"')
16751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16757 cat <<__EOF__ >> "$cfgfile"
16758 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16762 # Shell to use when invoking shell scripts.
16765 # Whether or not to build shared libraries.
16766 build_libtool_libs=$enable_shared
16768 # Whether or not to build static libraries.
16769 build_old_libs=$enable_static
16771 # Whether or not to add -lc for building shared libraries.
16772 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16774 # Whether or not to disallow shared libs when runtime libs are static
16775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
16777 # Whether or not to optimize for fast installation.
16778 fast_install=$enable_fast_install
16781 host_alias=$host_alias
16784 # An echo program that does not interpret backslashes.
16789 AR_FLAGS=$lt_AR_FLAGS
16794 # A language-specific compiler.
16795 CC=$lt_compiler_GCJ
16797 # Is the compiler the GNU C compiler?
16803 # The linker used to build libraries.
16806 # Whether we need hard or soft links.
16809 # A BSD-compatible nm program.
16812 # A symbol stripping program
16815 # Used to examine libraries when file_magic_cmd begins "file"
16816 MAGIC_CMD=$MAGIC_CMD
16818 # Used on cygwin: DLL creation program.
16821 # Used on cygwin: object dumper.
16824 # Used on cygwin: assembler.
16827 # The name of the directory that contains temporary libtool files.
16830 # How to create reloadable object files.
16831 reload_flag=$lt_reload_flag
16832 reload_cmds=$lt_reload_cmds
16834 # How to pass a linker flag through the compiler.
16835 wl=$lt_lt_prog_compiler_wl_GCJ
16837 # Object file suffix (normally "o").
16838 objext="$ac_objext"
16840 # Old archive suffix (normally "a").
16843 # Shared library suffix (normally ".so").
16846 # Executable file suffix (normally "").
16849 # Additional compiler flags for building library objects.
16850 pic_flag=$lt_lt_prog_compiler_pic_GCJ
16853 # What is the maximum length of a command?
16854 max_cmd_len=$lt_cv_sys_max_cmd_len
16856 # Does compiler simultaneously support -c and -o options?
16857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
16859 # Must we lock files when doing compilation ?
16860 need_locks=$lt_need_locks
16862 # Do we need the lib prefix for modules?
16863 need_lib_prefix=$need_lib_prefix
16865 # Do we need a version for libraries?
16866 need_version=$need_version
16868 # Whether dlopen is supported.
16869 dlopen_support=$enable_dlopen
16871 # Whether dlopen of programs is supported.
16872 dlopen_self=$enable_dlopen_self
16874 # Whether dlopen of statically linked programs is supported.
16875 dlopen_self_static=$enable_dlopen_self_static
16877 # Compiler flag to prevent dynamic linking.
16878 link_static_flag=$lt_lt_prog_compiler_static_GCJ
16880 # Compiler flag to turn off builtin functions.
16881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
16883 # Compiler flag to allow reflexive dlopens.
16884 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
16886 # Compiler flag to generate shared objects directly from archives.
16887 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
16889 # Compiler flag to generate thread-safe objects.
16890 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
16892 # Library versioning type.
16893 version_type=$version_type
16895 # Format of library name prefix.
16896 libname_spec=$lt_libname_spec
16898 # List of archive names. First name is the real one, the rest are links.
16899 # The last name is the one that the linker finds with -lNAME.
16900 library_names_spec=$lt_library_names_spec
16902 # The coded name of the library, if different from the real name.
16903 soname_spec=$lt_soname_spec
16905 # Commands used to build and install an old-style archive.
16907 old_archive_cmds=$lt_old_archive_cmds_GCJ
16908 old_postinstall_cmds=$lt_old_postinstall_cmds
16909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16911 # Create an old-style archive from a shared archive.
16912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
16914 # Create a temporary old-style archive to link instead of a shared archive.
16915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
16917 # Commands used to build and install a shared archive.
16918 archive_cmds=$lt_archive_cmds_GCJ
16919 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
16920 postinstall_cmds=$lt_postinstall_cmds
16921 postuninstall_cmds=$lt_postuninstall_cmds
16923 # Commands used to build a loadable module (assumed same as above if empty)
16924 module_cmds=$lt_module_cmds_GCJ
16925 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
16927 # Commands to strip libraries.
16928 old_striplib=$lt_old_striplib
16929 striplib=$lt_striplib
16931 # Dependencies to place before the objects being linked to create a
16933 predep_objects=$lt_predep_objects_GCJ
16935 # Dependencies to place after the objects being linked to create a
16937 postdep_objects=$lt_postdep_objects_GCJ
16939 # Dependencies to place before the objects being linked to create a
16941 predeps=$lt_predeps_GCJ
16943 # Dependencies to place after the objects being linked to create a
16945 postdeps=$lt_postdeps_GCJ
16947 # The library search path used internally by the compiler when linking
16948 # a shared library.
16949 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
16951 # Method to check whether dependent libraries are shared objects.
16952 deplibs_check_method=$lt_deplibs_check_method
16954 # Command to use when deplibs_check_method == file_magic.
16955 file_magic_cmd=$lt_file_magic_cmd
16957 # Flag that allows shared libraries with undefined symbols to be built.
16958 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
16960 # Flag that forces no undefined symbols.
16961 no_undefined_flag=$lt_no_undefined_flag_GCJ
16963 # Commands used to finish a libtool library installation in a directory.
16964 finish_cmds=$lt_finish_cmds
16966 # Same as above, but a single script fragment to be evaled but not shown.
16967 finish_eval=$lt_finish_eval
16969 # Take the output of nm and produce a listing of raw symbols and C names.
16970 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16972 # Transform the output of nm in a proper C declaration
16973 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16975 # Transform the output of nm in a C name address pair
16976 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16978 # This is the shared library runtime path variable.
16979 runpath_var=$runpath_var
16981 # This is the shared library path variable.
16982 shlibpath_var=$shlibpath_var
16984 # Is shlibpath searched before the hard-coded library search path?
16985 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16987 # How to hardcode a shared library path into an executable.
16988 hardcode_action=$hardcode_action_GCJ
16990 # Whether we should hardcode library paths into libraries.
16991 hardcode_into_libs=$hardcode_into_libs
16993 # Flag to hardcode \$libdir into a binary during linking.
16994 # This must work even if \$libdir does not exist.
16995 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
16997 # If ld is used when linking, flag to hardcode \$libdir into
16998 # a binary during linking. This must work even if \$libdir does
17000 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17002 # Whether we need a single -rpath flag with a separated argument.
17003 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17005 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17006 # resulting binary.
17007 hardcode_direct=$hardcode_direct_GCJ
17009 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17010 # resulting binary.
17011 hardcode_minus_L=$hardcode_minus_L_GCJ
17013 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17014 # the resulting binary.
17015 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17017 # Set to yes if building a shared library automatically hardcodes DIR into the library
17018 # and all subsequent libraries and executables linked against it.
17019 hardcode_automatic=$hardcode_automatic_GCJ
17021 # Variables whose values should be saved in libtool wrapper scripts and
17022 # restored at relink time.
17023 variables_saved_for_relink="$variables_saved_for_relink"
17025 # Whether libtool must link a program against all its dependency libraries.
17026 link_all_deplibs=$link_all_deplibs_GCJ
17028 # Compile-time system search path for libraries
17029 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17031 # Run-time system search path for libraries
17032 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17034 # Fix the shell variable \$srcfile for the compiler.
17035 fix_srcfile_path="$fix_srcfile_path_GCJ"
17037 # Set to yes if exported symbols are required.
17038 always_export_symbols=$always_export_symbols_GCJ
17040 # The commands to list exported symbols.
17041 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17043 # The commands to extract the exported symbol list from a shared archive.
17044 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17046 # Symbols that should not be listed in the preloaded symbols.
17047 exclude_expsyms=$lt_exclude_expsyms_GCJ
17049 # Symbols that must always be exported.
17050 include_expsyms=$lt_include_expsyms_GCJ
17052 # ### END LIBTOOL TAG CONFIG: $tagname
17058 # If there is no Makefile yet, we rely on a make rule to execute
17059 # `config.status --recheck' to rerun these tests and create the
17060 # libtool script then.
17061 test -f Makefile && make "$ltmain"
17066 ac_cpp='$CPP $CPPFLAGS'
17067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17082 # Source file extension for RC test sources.
17085 # Object file extension for compiled RC test sources.
17089 # Code to be used in simple compile tests
17090 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17092 # Code to be used in simple link tests
17093 lt_simple_link_test_code="$lt_simple_compile_test_code"
17095 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17097 # If no C compiler was specified, use CC.
17100 # Allow CC to be a program name with arguments.
17104 # Allow CC to be a program name with arguments.
17109 lt_cv_prog_compiler_c_o_RC=yes
17111 # The else clause should only fire when bootstrapping the
17112 # libtool distribution, otherwise you forgot to ship ltmain.sh
17113 # with your package, and you will get complaints that there are
17114 # no rules to generate ltmain.sh.
17115 if test -f "$ltmain"; then
17116 # See if we are running on zsh, and set the options which allow our commands through
17117 # without removal of \ escapes.
17118 if test -n "${ZSH_VERSION+set}" ; then
17119 setopt NO_GLOB_SUBST
17121 # Now quote all the things that may contain metacharacters while being
17122 # careful not to overquote the AC_SUBSTed values. We take copies of the
17123 # variables and quote the copies for generation of the libtool script.
17124 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17125 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17126 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17127 deplibs_check_method reload_flag reload_cmds need_locks \
17128 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17129 lt_cv_sys_global_symbol_to_c_name_address \
17130 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17131 old_postinstall_cmds old_postuninstall_cmds \
17135 lt_prog_compiler_wl_RC \
17136 lt_prog_compiler_pic_RC \
17137 lt_prog_compiler_static_RC \
17138 lt_prog_compiler_no_builtin_flag_RC \
17139 export_dynamic_flag_spec_RC \
17140 thread_safe_flag_spec_RC \
17141 whole_archive_flag_spec_RC \
17142 enable_shared_with_static_runtimes_RC \
17143 old_archive_cmds_RC \
17144 old_archive_from_new_cmds_RC \
17145 predep_objects_RC \
17146 postdep_objects_RC \
17149 compiler_lib_search_path_RC \
17151 archive_expsym_cmds_RC \
17152 postinstall_cmds_RC \
17153 postuninstall_cmds_RC \
17154 old_archive_from_expsyms_cmds_RC \
17155 allow_undefined_flag_RC \
17156 no_undefined_flag_RC \
17157 export_symbols_cmds_RC \
17158 hardcode_libdir_flag_spec_RC \
17159 hardcode_libdir_flag_spec_ld_RC \
17160 hardcode_libdir_separator_RC \
17161 hardcode_automatic_RC \
17163 module_expsym_cmds_RC \
17164 lt_cv_prog_compiler_c_o_RC \
17165 exclude_expsyms_RC \
17166 include_expsyms_RC; do
17169 old_archive_cmds_RC | \
17170 old_archive_from_new_cmds_RC | \
17171 archive_cmds_RC | \
17172 archive_expsym_cmds_RC | \
17174 module_expsym_cmds_RC | \
17175 old_archive_from_expsyms_cmds_RC | \
17176 export_symbols_cmds_RC | \
17177 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17178 postinstall_cmds | postuninstall_cmds | \
17179 old_postinstall_cmds | old_postuninstall_cmds | \
17180 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17181 # Double-quote double-evaled strings.
17182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17185 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17191 *'\$0 --fallback-echo"')
17192 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17198 cat <<__EOF__ >> "$cfgfile"
17199 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17201 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17203 # Shell to use when invoking shell scripts.
17206 # Whether or not to build shared libraries.
17207 build_libtool_libs=$enable_shared
17209 # Whether or not to build static libraries.
17210 build_old_libs=$enable_static
17212 # Whether or not to add -lc for building shared libraries.
17213 build_libtool_need_lc=$archive_cmds_need_lc_RC
17215 # Whether or not to disallow shared libs when runtime libs are static
17216 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17218 # Whether or not to optimize for fast installation.
17219 fast_install=$enable_fast_install
17222 host_alias=$host_alias
17225 # An echo program that does not interpret backslashes.
17230 AR_FLAGS=$lt_AR_FLAGS
17235 # A language-specific compiler.
17238 # Is the compiler the GNU C compiler?
17244 # The linker used to build libraries.
17247 # Whether we need hard or soft links.
17250 # A BSD-compatible nm program.
17253 # A symbol stripping program
17256 # Used to examine libraries when file_magic_cmd begins "file"
17257 MAGIC_CMD=$MAGIC_CMD
17259 # Used on cygwin: DLL creation program.
17262 # Used on cygwin: object dumper.
17265 # Used on cygwin: assembler.
17268 # The name of the directory that contains temporary libtool files.
17271 # How to create reloadable object files.
17272 reload_flag=$lt_reload_flag
17273 reload_cmds=$lt_reload_cmds
17275 # How to pass a linker flag through the compiler.
17276 wl=$lt_lt_prog_compiler_wl_RC
17278 # Object file suffix (normally "o").
17279 objext="$ac_objext"
17281 # Old archive suffix (normally "a").
17284 # Shared library suffix (normally ".so").
17287 # Executable file suffix (normally "").
17290 # Additional compiler flags for building library objects.
17291 pic_flag=$lt_lt_prog_compiler_pic_RC
17294 # What is the maximum length of a command?
17295 max_cmd_len=$lt_cv_sys_max_cmd_len
17297 # Does compiler simultaneously support -c and -o options?
17298 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17300 # Must we lock files when doing compilation ?
17301 need_locks=$lt_need_locks
17303 # Do we need the lib prefix for modules?
17304 need_lib_prefix=$need_lib_prefix
17306 # Do we need a version for libraries?
17307 need_version=$need_version
17309 # Whether dlopen is supported.
17310 dlopen_support=$enable_dlopen
17312 # Whether dlopen of programs is supported.
17313 dlopen_self=$enable_dlopen_self
17315 # Whether dlopen of statically linked programs is supported.
17316 dlopen_self_static=$enable_dlopen_self_static
17318 # Compiler flag to prevent dynamic linking.
17319 link_static_flag=$lt_lt_prog_compiler_static_RC
17321 # Compiler flag to turn off builtin functions.
17322 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17324 # Compiler flag to allow reflexive dlopens.
17325 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17327 # Compiler flag to generate shared objects directly from archives.
17328 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17330 # Compiler flag to generate thread-safe objects.
17331 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17333 # Library versioning type.
17334 version_type=$version_type
17336 # Format of library name prefix.
17337 libname_spec=$lt_libname_spec
17339 # List of archive names. First name is the real one, the rest are links.
17340 # The last name is the one that the linker finds with -lNAME.
17341 library_names_spec=$lt_library_names_spec
17343 # The coded name of the library, if different from the real name.
17344 soname_spec=$lt_soname_spec
17346 # Commands used to build and install an old-style archive.
17348 old_archive_cmds=$lt_old_archive_cmds_RC
17349 old_postinstall_cmds=$lt_old_postinstall_cmds
17350 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17352 # Create an old-style archive from a shared archive.
17353 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17355 # Create a temporary old-style archive to link instead of a shared archive.
17356 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17358 # Commands used to build and install a shared archive.
17359 archive_cmds=$lt_archive_cmds_RC
17360 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17361 postinstall_cmds=$lt_postinstall_cmds
17362 postuninstall_cmds=$lt_postuninstall_cmds
17364 # Commands used to build a loadable module (assumed same as above if empty)
17365 module_cmds=$lt_module_cmds_RC
17366 module_expsym_cmds=$lt_module_expsym_cmds_RC
17368 # Commands to strip libraries.
17369 old_striplib=$lt_old_striplib
17370 striplib=$lt_striplib
17372 # Dependencies to place before the objects being linked to create a
17374 predep_objects=$lt_predep_objects_RC
17376 # Dependencies to place after the objects being linked to create a
17378 postdep_objects=$lt_postdep_objects_RC
17380 # Dependencies to place before the objects being linked to create a
17382 predeps=$lt_predeps_RC
17384 # Dependencies to place after the objects being linked to create a
17386 postdeps=$lt_postdeps_RC
17388 # The library search path used internally by the compiler when linking
17389 # a shared library.
17390 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17392 # Method to check whether dependent libraries are shared objects.
17393 deplibs_check_method=$lt_deplibs_check_method
17395 # Command to use when deplibs_check_method == file_magic.
17396 file_magic_cmd=$lt_file_magic_cmd
17398 # Flag that allows shared libraries with undefined symbols to be built.
17399 allow_undefined_flag=$lt_allow_undefined_flag_RC
17401 # Flag that forces no undefined symbols.
17402 no_undefined_flag=$lt_no_undefined_flag_RC
17404 # Commands used to finish a libtool library installation in a directory.
17405 finish_cmds=$lt_finish_cmds
17407 # Same as above, but a single script fragment to be evaled but not shown.
17408 finish_eval=$lt_finish_eval
17410 # Take the output of nm and produce a listing of raw symbols and C names.
17411 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17413 # Transform the output of nm in a proper C declaration
17414 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17416 # Transform the output of nm in a C name address pair
17417 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17419 # This is the shared library runtime path variable.
17420 runpath_var=$runpath_var
17422 # This is the shared library path variable.
17423 shlibpath_var=$shlibpath_var
17425 # Is shlibpath searched before the hard-coded library search path?
17426 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17428 # How to hardcode a shared library path into an executable.
17429 hardcode_action=$hardcode_action_RC
17431 # Whether we should hardcode library paths into libraries.
17432 hardcode_into_libs=$hardcode_into_libs
17434 # Flag to hardcode \$libdir into a binary during linking.
17435 # This must work even if \$libdir does not exist.
17436 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17438 # If ld is used when linking, flag to hardcode \$libdir into
17439 # a binary during linking. This must work even if \$libdir does
17441 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17443 # Whether we need a single -rpath flag with a separated argument.
17444 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17446 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17447 # resulting binary.
17448 hardcode_direct=$hardcode_direct_RC
17450 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17451 # resulting binary.
17452 hardcode_minus_L=$hardcode_minus_L_RC
17454 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17455 # the resulting binary.
17456 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17458 # Set to yes if building a shared library automatically hardcodes DIR into the library
17459 # and all subsequent libraries and executables linked against it.
17460 hardcode_automatic=$hardcode_automatic_RC
17462 # Variables whose values should be saved in libtool wrapper scripts and
17463 # restored at relink time.
17464 variables_saved_for_relink="$variables_saved_for_relink"
17466 # Whether libtool must link a program against all its dependency libraries.
17467 link_all_deplibs=$link_all_deplibs_RC
17469 # Compile-time system search path for libraries
17470 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17472 # Run-time system search path for libraries
17473 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17475 # Fix the shell variable \$srcfile for the compiler.
17476 fix_srcfile_path="$fix_srcfile_path_RC"
17478 # Set to yes if exported symbols are required.
17479 always_export_symbols=$always_export_symbols_RC
17481 # The commands to list exported symbols.
17482 export_symbols_cmds=$lt_export_symbols_cmds_RC
17484 # The commands to extract the exported symbol list from a shared archive.
17485 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17487 # Symbols that should not be listed in the preloaded symbols.
17488 exclude_expsyms=$lt_exclude_expsyms_RC
17490 # Symbols that must always be exported.
17491 include_expsyms=$lt_include_expsyms_RC
17493 # ### END LIBTOOL TAG CONFIG: $tagname
17499 # If there is no Makefile yet, we rely on a make rule to execute
17500 # `config.status --recheck' to rerun these tests and create the
17501 # libtool script then.
17502 test -f Makefile && make "$ltmain"
17507 ac_cpp='$CPP $CPPFLAGS'
17508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17517 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17518 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17519 { (exit 1); exit 1; }; }
17523 # Append the new tag name to the list of available tags.
17524 if test -n "$tagname" ; then
17525 available_tags="$available_tags $tagname"
17531 # Now substitute the updated list of available tags.
17532 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17533 mv "${ofile}T" "$ofile"
17537 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17538 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17539 { (exit 1); exit 1; }; }
17545 # This can be used to rebuild libtool when needed
17546 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17548 # Always use our own libtool.
17549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17551 # Prevent multiple expansion
17573 # Extract the first word of "ar", so it can be a program name with args.
17574 set dummy ar; ac_word=$2
17575 echo "$as_me:$LINENO: checking for $ac_word" >&5
17576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17577 if test "${ac_cv_path_AR+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 ac_cv_path_AR="$AR" # Let the user override the test with a path.
17585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17586 for as_dir in $PATH
17589 test -z "$as_dir" && as_dir=.
17590 for ac_exec_ext in '' $ac_executable_extensions; do
17591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17592 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17604 if test -n "$AR"; then
17605 echo "$as_me:$LINENO: result: $AR" >&5
17606 echo "${ECHO_T}$AR" >&6
17608 echo "$as_me:$LINENO: result: no" >&5
17609 echo "${ECHO_T}no" >&6
17612 # Extract the first word of "sed", so it can be a program name with args.
17613 set dummy sed; ac_word=$2
17614 echo "$as_me:$LINENO: checking for $ac_word" >&5
17615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17616 if test "${ac_cv_path_SED+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 ac_cv_path_SED="$SED" # Let the user override the test with a path.
17624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17625 for as_dir in $PATH
17628 test -z "$as_dir" && as_dir=.
17629 for ac_exec_ext in '' $ac_executable_extensions; do
17630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17631 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
17632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17641 SED=$ac_cv_path_SED
17643 if test -n "$SED"; then
17644 echo "$as_me:$LINENO: result: $SED" >&5
17645 echo "${ECHO_T}$SED" >&6
17647 echo "$as_me:$LINENO: result: no" >&5
17648 echo "${ECHO_T}no" >&6
17651 # Extract the first word of "rm", so it can be a program name with args.
17652 set dummy rm; ac_word=$2
17653 echo "$as_me:$LINENO: checking for $ac_word" >&5
17654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17655 if test "${ac_cv_path_RM+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 ac_cv_path_RM="$RM" # Let the user override the test with a path.
17663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17664 for as_dir in $PATH
17667 test -z "$as_dir" && as_dir=.
17668 for ac_exec_ext in '' $ac_executable_extensions; do
17669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17670 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
17671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17682 if test -n "$RM"; then
17683 echo "$as_me:$LINENO: result: $RM" >&5
17684 echo "${ECHO_T}$RM" >&6
17686 echo "$as_me:$LINENO: result: no" >&5
17687 echo "${ECHO_T}no" >&6
17690 # Extract the first word of "echo", so it can be a program name with args.
17691 set dummy echo; ac_word=$2
17692 echo "$as_me:$LINENO: checking for $ac_word" >&5
17693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17694 if test "${ac_cv_path_ECHO+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
17702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17703 for as_dir in $PATH
17706 test -z "$as_dir" && as_dir=.
17707 for ac_exec_ext in '' $ac_executable_extensions; do
17708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17709 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
17710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17719 ECHO=$ac_cv_path_ECHO
17721 if test -n "$ECHO"; then
17722 echo "$as_me:$LINENO: result: $ECHO" >&5
17723 echo "${ECHO_T}$ECHO" >&6
17725 echo "$as_me:$LINENO: result: no" >&5
17726 echo "${ECHO_T}no" >&6
17729 # Extract the first word of "mkdir", so it can be a program name with args.
17730 set dummy mkdir; ac_word=$2
17731 echo "$as_me:$LINENO: checking for $ac_word" >&5
17732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17733 if test "${ac_cv_path_MKDIR+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
17741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17742 for as_dir in $PATH
17745 test -z "$as_dir" && as_dir=.
17746 for ac_exec_ext in '' $ac_executable_extensions; do
17747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17748 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
17749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17758 MKDIR=$ac_cv_path_MKDIR
17760 if test -n "$MKDIR"; then
17761 echo "$as_me:$LINENO: result: $MKDIR" >&5
17762 echo "${ECHO_T}$MKDIR" >&6
17764 echo "$as_me:$LINENO: result: no" >&5
17765 echo "${ECHO_T}no" >&6
17768 # Extract the first word of "date", so it can be a program name with args.
17769 set dummy date; ac_word=$2
17770 echo "$as_me:$LINENO: checking for $ac_word" >&5
17771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17772 if test "${ac_cv_path_DATE+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
17780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17781 for as_dir in $PATH
17784 test -z "$as_dir" && as_dir=.
17785 for ac_exec_ext in '' $ac_executable_extensions; do
17786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17787 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
17788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17797 DATE=$ac_cv_path_DATE
17799 if test -n "$DATE"; then
17800 echo "$as_me:$LINENO: result: $DATE" >&5
17801 echo "${ECHO_T}$DATE" >&6
17803 echo "$as_me:$LINENO: result: no" >&5
17804 echo "${ECHO_T}no" >&6
17807 # Extract the first word of "mv", so it can be a program name with args.
17808 set dummy mv; ac_word=$2
17809 echo "$as_me:$LINENO: checking for $ac_word" >&5
17810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17811 if test "${ac_cv_path_MV+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 ac_cv_path_MV="$MV" # Let the user override the test with a path.
17819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17820 for as_dir in $PATH
17823 test -z "$as_dir" && as_dir=.
17824 for ac_exec_ext in '' $ac_executable_extensions; do
17825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17826 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
17827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17838 if test -n "$MV"; then
17839 echo "$as_me:$LINENO: result: $MV" >&5
17840 echo "${ECHO_T}$MV" >&6
17842 echo "$as_me:$LINENO: result: no" >&5
17843 echo "${ECHO_T}no" >&6
17846 # Extract the first word of "dot", so it can be a program name with args.
17847 set dummy dot; ac_word=$2
17848 echo "$as_me:$LINENO: checking for $ac_word" >&5
17849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17850 if test "${ac_cv_path_DOT+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17855 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
17858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17859 for as_dir in $PATH
17862 test -z "$as_dir" && as_dir=.
17863 for ac_exec_ext in '' $ac_executable_extensions; do
17864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17865 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
17866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17875 DOT=$ac_cv_path_DOT
17877 if test -n "$DOT"; then
17878 echo "$as_me:$LINENO: result: $DOT" >&5
17879 echo "${ECHO_T}$DOT" >&6
17881 echo "$as_me:$LINENO: result: no" >&5
17882 echo "${ECHO_T}no" >&6
17885 # Extract the first word of "etags", so it can be a program name with args.
17886 set dummy etags; ac_word=$2
17887 echo "$as_me:$LINENO: checking for $ac_word" >&5
17888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17889 if test "${ac_cv_path_ETAGS+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
17897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17898 for as_dir in $PATH
17901 test -z "$as_dir" && as_dir=.
17902 for ac_exec_ext in '' $ac_executable_extensions; do
17903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17904 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
17905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17914 ETAGS=$ac_cv_path_ETAGS
17916 if test -n "$ETAGS"; then
17917 echo "$as_me:$LINENO: result: $ETAGS" >&5
17918 echo "${ECHO_T}$ETAGS" >&6
17920 echo "$as_me:$LINENO: result: no" >&5
17921 echo "${ECHO_T}no" >&6
17924 # Extract the first word of "purify", so it can be a program name with args.
17925 set dummy purify; ac_word=$2
17926 echo "$as_me:$LINENO: checking for $ac_word" >&5
17927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17928 if test "${ac_cv_path_PURIFY+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17933 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
17936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17937 for as_dir in $PATH
17940 test -z "$as_dir" && as_dir=.
17941 for ac_exec_ext in '' $ac_executable_extensions; do
17942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17943 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
17944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17953 PURIFY=$ac_cv_path_PURIFY
17955 if test -n "$PURIFY"; then
17956 echo "$as_me:$LINENO: result: $PURIFY" >&5
17957 echo "${ECHO_T}$PURIFY" >&6
17959 echo "$as_me:$LINENO: result: no" >&5
17960 echo "${ECHO_T}no" >&6
17968 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17969 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
17970 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17971 echo $ECHO_N "(cached) $ECHO_C" >&6
17973 ac_check_lib_save_LIBS=$LIBS
17975 cat >conftest.$ac_ext <<_ACEOF
17976 #line $LINENO "configure"
17977 #include "confdefs.h"
17979 /* Override any gcc2 internal prototype to avoid an error. */
17983 /* We use char because int might match the return type of a gcc2
17984 builtin and then its argument prototype would still apply. */
17986 #ifdef F77_DUMMY_MAIN
17987 # ifdef __cplusplus
17990 int F77_DUMMY_MAIN() { return 1; }
18000 rm -f conftest.$ac_objext conftest$ac_exeext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18002 (eval $ac_link) 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } &&
18006 { ac_try='test -s conftest$ac_exeext'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_lib_elf_elf_begin=yes
18014 echo "$as_me: failed program was:" >&5
18015 cat conftest.$ac_ext >&5
18016 ac_cv_lib_elf_elf_begin=no
18018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18021 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18022 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18023 if test $ac_cv_lib_elf_elf_begin = yes; then
18024 cat >>confdefs.h <<_ACEOF
18025 #define HAVE_LIBELF 1
18033 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18034 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18035 if test "${ac_cv_search_dlopen+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 ac_func_search_save_LIBS=$LIBS
18039 ac_cv_search_dlopen=no
18040 cat >conftest.$ac_ext <<_ACEOF
18041 #line $LINENO "configure"
18042 #include "confdefs.h"
18044 /* Override any gcc2 internal prototype to avoid an error. */
18048 /* We use char because int might match the return type of a gcc2
18049 builtin and then its argument prototype would still apply. */
18051 #ifdef F77_DUMMY_MAIN
18052 # ifdef __cplusplus
18055 int F77_DUMMY_MAIN() { return 1; }
18065 rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18067 (eval $ac_link) 2>&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try='test -s conftest$ac_exeext'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; }; then
18077 ac_cv_search_dlopen="none required"
18079 echo "$as_me: failed program was:" >&5
18080 cat conftest.$ac_ext >&5
18082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18083 if test "$ac_cv_search_dlopen" = no; then
18084 for ac_lib in dl; do
18085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18086 cat >conftest.$ac_ext <<_ACEOF
18087 #line $LINENO "configure"
18088 #include "confdefs.h"
18090 /* Override any gcc2 internal prototype to avoid an error. */
18094 /* We use char because int might match the return type of a gcc2
18095 builtin and then its argument prototype would still apply. */
18097 #ifdef F77_DUMMY_MAIN
18098 # ifdef __cplusplus
18101 int F77_DUMMY_MAIN() { return 1; }
18111 rm -f conftest.$ac_objext conftest$ac_exeext
18112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113 (eval $ac_link) 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
18117 { ac_try='test -s conftest$ac_exeext'
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
18123 ac_cv_search_dlopen="-l$ac_lib"
18126 echo "$as_me: failed program was:" >&5
18127 cat conftest.$ac_ext >&5
18129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18132 LIBS=$ac_func_search_save_LIBS
18134 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18135 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18136 if test "$ac_cv_search_dlopen" != no; then
18137 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18140 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18141 echo "$as_me: error: dlopen() required but not found" >&2;}
18142 { (exit 1); exit 1; }; }
18146 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18147 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18148 if test "${ac_cv_search_mallinfo+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18151 ac_func_search_save_LIBS=$LIBS
18152 ac_cv_search_mallinfo=no
18153 cat >conftest.$ac_ext <<_ACEOF
18154 #line $LINENO "configure"
18155 #include "confdefs.h"
18157 /* Override any gcc2 internal prototype to avoid an error. */
18161 /* We use char because int might match the return type of a gcc2
18162 builtin and then its argument prototype would still apply. */
18164 #ifdef F77_DUMMY_MAIN
18165 # ifdef __cplusplus
18168 int F77_DUMMY_MAIN() { return 1; }
18178 rm -f conftest.$ac_objext conftest$ac_exeext
18179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180 (eval $ac_link) 2>&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -s conftest$ac_exeext'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 ac_cv_search_mallinfo="none required"
18192 echo "$as_me: failed program was:" >&5
18193 cat conftest.$ac_ext >&5
18195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18196 if test "$ac_cv_search_mallinfo" = no; then
18197 for ac_lib in malloc; do
18198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18199 cat >conftest.$ac_ext <<_ACEOF
18200 #line $LINENO "configure"
18201 #include "confdefs.h"
18203 /* Override any gcc2 internal prototype to avoid an error. */
18207 /* We use char because int might match the return type of a gcc2
18208 builtin and then its argument prototype would still apply. */
18210 #ifdef F77_DUMMY_MAIN
18211 # ifdef __cplusplus
18214 int F77_DUMMY_MAIN() { return 1; }
18224 rm -f conftest.$ac_objext conftest$ac_exeext
18225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18226 (eval $ac_link) 2>&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -s conftest$ac_exeext'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236 ac_cv_search_mallinfo="-l$ac_lib"
18239 echo "$as_me: failed program was:" >&5
18240 cat conftest.$ac_ext >&5
18242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18245 LIBS=$ac_func_search_save_LIBS
18247 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18248 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18249 if test "$ac_cv_search_mallinfo" != no; then
18250 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18251 cat >>confdefs.h <<\_ACEOF
18252 #define HAVE_MALLINFO 1
18259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18261 if test "${ac_cv_header_stdc+set}" = set; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18264 cat >conftest.$ac_ext <<_ACEOF
18265 #line $LINENO "configure"
18266 #include "confdefs.h"
18267 #include <stdlib.h>
18268 #include <stdarg.h>
18269 #include <string.h>
18273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18276 egrep -v '^ *\+' conftest.er1 >conftest.err
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } >/dev/null; then
18281 if test -s conftest.err; then
18282 ac_cpp_err=$ac_c_preproc_warn_flag
18289 if test -z "$ac_cpp_err"; then
18290 ac_cv_header_stdc=yes
18292 echo "$as_me: failed program was:" >&5
18293 cat conftest.$ac_ext >&5
18294 ac_cv_header_stdc=no
18296 rm -f conftest.err conftest.$ac_ext
18298 if test $ac_cv_header_stdc = yes; then
18299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18300 cat >conftest.$ac_ext <<_ACEOF
18301 #line $LINENO "configure"
18302 #include "confdefs.h"
18303 #include <string.h>
18306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18307 egrep "memchr" >/dev/null 2>&1; then
18310 ac_cv_header_stdc=no
18316 if test $ac_cv_header_stdc = yes; then
18317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18318 cat >conftest.$ac_ext <<_ACEOF
18319 #line $LINENO "configure"
18320 #include "confdefs.h"
18321 #include <stdlib.h>
18324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18325 egrep "free" >/dev/null 2>&1; then
18328 ac_cv_header_stdc=no
18334 if test $ac_cv_header_stdc = yes; then
18335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18336 if test "$cross_compiling" = yes; then
18339 cat >conftest.$ac_ext <<_ACEOF
18340 #line $LINENO "configure"
18341 #include "confdefs.h"
18343 #if ((' ' & 0x0FF) == 0x020)
18344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18347 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18348 || ('j' <= (c) && (c) <= 'r') \
18349 || ('s' <= (c) && (c) <= 'z'))
18350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18358 for (i = 0; i < 256; i++)
18359 if (XOR (islower (i), ISLOWER (i))
18360 || toupper (i) != TOUPPER (i))
18365 rm -f conftest$ac_exeext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367 (eval $ac_link) 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18378 echo "$as_me: program exited with status $ac_status" >&5
18379 echo "$as_me: failed program was:" >&5
18380 cat conftest.$ac_ext >&5
18381 ( exit $ac_status )
18382 ac_cv_header_stdc=no
18384 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18388 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18389 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18390 if test $ac_cv_header_stdc = yes; then
18392 cat >>confdefs.h <<\_ACEOF
18393 #define STDC_HEADERS 1
18398 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18399 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18400 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 cat >conftest.$ac_ext <<_ACEOF
18404 #line $LINENO "configure"
18405 #include "confdefs.h"
18406 #include <sys/types.h>
18407 #include <sys/wait.h>
18408 #ifndef WEXITSTATUS
18409 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18412 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18415 #ifdef F77_DUMMY_MAIN
18416 # ifdef __cplusplus
18419 int F77_DUMMY_MAIN() { return 1; }
18426 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18431 rm -f conftest.$ac_objext
18432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18433 (eval $ac_compile) 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -s conftest.$ac_objext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_cv_header_sys_wait_h=yes
18445 echo "$as_me: failed program was:" >&5
18446 cat conftest.$ac_ext >&5
18447 ac_cv_header_sys_wait_h=no
18449 rm -f conftest.$ac_objext conftest.$ac_ext
18451 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18452 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18453 if test $ac_cv_header_sys_wait_h = yes; then
18455 cat >>confdefs.h <<\_ACEOF
18456 #define HAVE_SYS_WAIT_H 1
18470 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
18472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18474 echo "$as_me:$LINENO: checking for $ac_header" >&5
18475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18482 # Is the header compilable?
18483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18485 cat >conftest.$ac_ext <<_ACEOF
18486 #line $LINENO "configure"
18487 #include "confdefs.h"
18488 $ac_includes_default
18489 #include <$ac_header>
18491 rm -f conftest.$ac_objext
18492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18493 (eval $ac_compile) 2>&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } &&
18497 { ac_try='test -s conftest.$ac_objext'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
18503 ac_header_compiler=yes
18505 echo "$as_me: failed program was:" >&5
18506 cat conftest.$ac_ext >&5
18507 ac_header_compiler=no
18509 rm -f conftest.$ac_objext conftest.$ac_ext
18510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18511 echo "${ECHO_T}$ac_header_compiler" >&6
18513 # Is the header present?
18514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18516 cat >conftest.$ac_ext <<_ACEOF
18517 #line $LINENO "configure"
18518 #include "confdefs.h"
18519 #include <$ac_header>
18521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18524 egrep -v '^ *\+' conftest.er1 >conftest.err
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } >/dev/null; then
18529 if test -s conftest.err; then
18530 ac_cpp_err=$ac_c_preproc_warn_flag
18537 if test -z "$ac_cpp_err"; then
18538 ac_header_preproc=yes
18540 echo "$as_me: failed program was:" >&5
18541 cat conftest.$ac_ext >&5
18542 ac_header_preproc=no
18544 rm -f conftest.err conftest.$ac_ext
18545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18546 echo "${ECHO_T}$ac_header_preproc" >&6
18548 # So? What about this header?
18549 case $ac_header_compiler:$ac_header_preproc in
18551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18563 echo "$as_me:$LINENO: checking for $ac_header" >&5
18564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 eval "$as_ac_Header=$ac_header_preproc"
18570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18575 cat >>confdefs.h <<_ACEOF
18576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18588 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
18590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18592 echo "$as_me:$LINENO: checking for $ac_header" >&5
18593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18600 # Is the header compilable?
18601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18603 cat >conftest.$ac_ext <<_ACEOF
18604 #line $LINENO "configure"
18605 #include "confdefs.h"
18606 $ac_includes_default
18607 #include <$ac_header>
18609 rm -f conftest.$ac_objext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611 (eval $ac_compile) 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } &&
18615 { ac_try='test -s conftest.$ac_objext'
18616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617 (eval $ac_try) 2>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; }; then
18621 ac_header_compiler=yes
18623 echo "$as_me: failed program was:" >&5
18624 cat conftest.$ac_ext >&5
18625 ac_header_compiler=no
18627 rm -f conftest.$ac_objext conftest.$ac_ext
18628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18629 echo "${ECHO_T}$ac_header_compiler" >&6
18631 # Is the header present?
18632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18634 cat >conftest.$ac_ext <<_ACEOF
18635 #line $LINENO "configure"
18636 #include "confdefs.h"
18637 #include <$ac_header>
18639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18642 egrep -v '^ *\+' conftest.er1 >conftest.err
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } >/dev/null; then
18647 if test -s conftest.err; then
18648 ac_cpp_err=$ac_c_preproc_warn_flag
18655 if test -z "$ac_cpp_err"; then
18656 ac_header_preproc=yes
18658 echo "$as_me: failed program was:" >&5
18659 cat conftest.$ac_ext >&5
18660 ac_header_preproc=no
18662 rm -f conftest.err conftest.$ac_ext
18663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18664 echo "${ECHO_T}$ac_header_preproc" >&6
18666 # So? What about this header?
18667 case $ac_header_compiler:$ac_header_preproc in
18669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18681 echo "$as_me:$LINENO: checking for $ac_header" >&5
18682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18686 eval "$as_ac_Header=$ac_header_preproc"
18688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18693 cat >>confdefs.h <<_ACEOF
18694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18704 for ac_header in dlfcn.h link.h
18706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18708 echo "$as_me:$LINENO: checking for $ac_header" >&5
18709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18716 # Is the header compilable?
18717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18719 cat >conftest.$ac_ext <<_ACEOF
18720 #line $LINENO "configure"
18721 #include "confdefs.h"
18722 $ac_includes_default
18723 #include <$ac_header>
18725 rm -f conftest.$ac_objext
18726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18727 (eval $ac_compile) 2>&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
18731 { ac_try='test -s conftest.$ac_objext'
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 ac_header_compiler=yes
18739 echo "$as_me: failed program was:" >&5
18740 cat conftest.$ac_ext >&5
18741 ac_header_compiler=no
18743 rm -f conftest.$ac_objext conftest.$ac_ext
18744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18745 echo "${ECHO_T}$ac_header_compiler" >&6
18747 # Is the header present?
18748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18750 cat >conftest.$ac_ext <<_ACEOF
18751 #line $LINENO "configure"
18752 #include "confdefs.h"
18753 #include <$ac_header>
18755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18758 egrep -v '^ *\+' conftest.er1 >conftest.err
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } >/dev/null; then
18763 if test -s conftest.err; then
18764 ac_cpp_err=$ac_c_preproc_warn_flag
18771 if test -z "$ac_cpp_err"; then
18772 ac_header_preproc=yes
18774 echo "$as_me: failed program was:" >&5
18775 cat conftest.$ac_ext >&5
18776 ac_header_preproc=no
18778 rm -f conftest.err conftest.$ac_ext
18779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18780 echo "${ECHO_T}$ac_header_preproc" >&6
18782 # So? What about this header?
18783 case $ac_header_compiler:$ac_header_preproc in
18785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18797 echo "$as_me:$LINENO: checking for $ac_header" >&5
18798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18802 eval "$as_ac_Header=$ac_header_preproc"
18804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18809 cat >>confdefs.h <<_ACEOF
18810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18819 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
18820 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
18821 if test "${ac_cv_prog_cc_stdc+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 ac_cv_prog_cc_stdc=no
18826 cat >conftest.$ac_ext <<_ACEOF
18827 #line $LINENO "configure"
18828 #include "confdefs.h"
18829 #include <stdarg.h>
18831 #include <sys/types.h>
18832 #include <sys/stat.h>
18833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18834 struct buf { int x; };
18835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18836 static char *e (p, i)
18842 static char *f (char * (*g) (char **, int), char **p, ...)
18847 s = g (p, va_arg (v,int));
18851 int test (int i, double x);
18852 struct s1 {int (*f) (int a);};
18853 struct s2 {int (*f) (double a);};
18854 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18857 #ifdef F77_DUMMY_MAIN
18858 # ifdef __cplusplus
18861 int F77_DUMMY_MAIN() { return 1; }
18866 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18871 # Don't try gcc -ansi; that turns off useful extensions and
18872 # breaks some systems' header files.
18873 # AIX -qlanglvl=ansi
18874 # Ultrix and OSF/1 -std1
18875 # HP-UX 10.20 and later -Ae
18876 # HP-UX older versions -Aa -D_HPUX_SOURCE
18877 # SVR4 -Xc -D__EXTENSIONS__
18878 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18880 CC="$ac_save_CC $ac_arg"
18881 rm -f conftest.$ac_objext
18882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18883 (eval $ac_compile) 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
18887 { ac_try='test -s conftest.$ac_objext'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; }; then
18893 ac_cv_prog_cc_stdc=$ac_arg
18896 echo "$as_me: failed program was:" >&5
18897 cat conftest.$ac_ext >&5
18899 rm -f conftest.$ac_objext
18901 rm -f conftest.$ac_ext conftest.$ac_objext
18906 case "x$ac_cv_prog_cc_stdc" in
18908 echo "$as_me:$LINENO: result: none needed" >&5
18909 echo "${ECHO_T}none needed" >&6 ;;
18911 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
18912 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
18913 CC="$CC $ac_cv_prog_cc_stdc" ;;
18916 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18917 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18918 if test "${ac_cv_c_const+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 cat >conftest.$ac_ext <<_ACEOF
18922 #line $LINENO "configure"
18923 #include "confdefs.h"
18925 #ifdef F77_DUMMY_MAIN
18926 # ifdef __cplusplus
18929 int F77_DUMMY_MAIN() { return 1; }
18934 /* FIXME: Include the comments suggested by Paul. */
18935 #ifndef __cplusplus
18936 /* Ultrix mips cc rejects this. */
18937 typedef int charset[2];
18939 /* SunOS 4.1.1 cc rejects this. */
18940 char const *const *ccp;
18942 /* NEC SVR4.0.2 mips cc rejects this. */
18943 struct point {int x, y;};
18944 static struct point const zero = {0,0};
18945 /* AIX XL C 1.02.0.0 rejects this.
18946 It does not let you subtract one const X* pointer from another in
18947 an arm of an if-expression whose if-part is not a constant
18949 const char *g = "string";
18950 ccp = &g + (g ? g-g : 0);
18951 /* HPUX 7.0 cc rejects these. */
18954 ccp = (char const *const *) p;
18955 { /* SCO 3.2v4 cc rejects this. */
18957 char const *s = 0 ? (char *) 0 : (char const *) 0;
18961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18962 int x[] = {25, 17};
18963 const int *foo = &x[0];
18966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18967 typedef const int *iptr;
18971 { /* AIX XL C 1.02.0.0 rejects this saying
18972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18973 struct s { int j; const int *ap[3]; };
18974 struct s *b; b->j = 5;
18976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18977 const int foo = 10;
18985 rm -f conftest.$ac_objext
18986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18987 (eval $ac_compile) 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18999 echo "$as_me: failed program was:" >&5
19000 cat conftest.$ac_ext >&5
19003 rm -f conftest.$ac_objext conftest.$ac_ext
19005 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19006 echo "${ECHO_T}$ac_cv_c_const" >&6
19007 if test $ac_cv_c_const = no; then
19009 cat >>confdefs.h <<\_ACEOF
19015 echo "$as_me:$LINENO: checking for inline" >&5
19016 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19017 if test "${ac_cv_c_inline+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 for ac_kw in inline __inline__ __inline; do
19022 cat >conftest.$ac_ext <<_ACEOF
19023 #line $LINENO "configure"
19024 #include "confdefs.h"
19025 #ifndef __cplusplus
19026 static $ac_kw int static_foo () {return 0; }
19027 $ac_kw int foo () {return 0; }
19031 rm -f conftest.$ac_objext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19033 (eval $ac_compile) 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -s conftest.$ac_objext'
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 ac_cv_c_inline=$ac_kw; break
19045 echo "$as_me: failed program was:" >&5
19046 cat conftest.$ac_ext >&5
19048 rm -f conftest.$ac_objext conftest.$ac_ext
19052 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19053 echo "${ECHO_T}$ac_cv_c_inline" >&6
19054 case $ac_cv_c_inline in
19057 cat >>confdefs.h <<\_ACEOF
19061 *) cat >>confdefs.h <<_ACEOF
19062 #define inline $ac_cv_c_inline
19068 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19069 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19070 if test "${ac_cv_c_bigendian+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 # See if sys/param.h defines the BYTE_ORDER macro.
19074 cat >conftest.$ac_ext <<_ACEOF
19075 #line $LINENO "configure"
19076 #include "confdefs.h"
19077 #include <sys/types.h>
19078 #include <sys/param.h>
19080 #ifdef F77_DUMMY_MAIN
19081 # ifdef __cplusplus
19084 int F77_DUMMY_MAIN() { return 1; }
19089 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19090 bogus endian macros
19097 rm -f conftest.$ac_objext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19099 (eval $ac_compile) 2>&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -s conftest.$ac_objext'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 # It does; now see whether it defined to BIG_ENDIAN or not.
19110 cat >conftest.$ac_ext <<_ACEOF
19111 #line $LINENO "configure"
19112 #include "confdefs.h"
19113 #include <sys/types.h>
19114 #include <sys/param.h>
19116 #ifdef F77_DUMMY_MAIN
19117 # ifdef __cplusplus
19120 int F77_DUMMY_MAIN() { return 1; }
19125 #if BYTE_ORDER != BIG_ENDIAN
19133 rm -f conftest.$ac_objext
19134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19135 (eval $ac_compile) 2>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try='test -s conftest.$ac_objext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_cv_c_bigendian=yes
19147 echo "$as_me: failed program was:" >&5
19148 cat conftest.$ac_ext >&5
19149 ac_cv_c_bigendian=no
19151 rm -f conftest.$ac_objext conftest.$ac_ext
19153 echo "$as_me: failed program was:" >&5
19154 cat conftest.$ac_ext >&5
19155 # It does not; compile a test program.
19156 if test "$cross_compiling" = yes; then
19157 # try to guess the endianess by grep'ing values into an object file
19158 ac_cv_c_bigendian=unknown
19159 cat >conftest.$ac_ext <<_ACEOF
19160 #line $LINENO "configure"
19161 #include "confdefs.h"
19162 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19163 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19164 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19165 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19166 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19167 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19168 #ifdef F77_DUMMY_MAIN
19169 # ifdef __cplusplus
19172 int F77_DUMMY_MAIN() { return 1; }
19177 _ascii (); _ebcdic ();
19182 rm -f conftest.$ac_objext
19183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19184 (eval $ac_compile) 2>&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -s conftest.$ac_objext'
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19195 ac_cv_c_bigendian=yes
19197 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19198 if test "$ac_cv_c_bigendian" = unknown; then
19199 ac_cv_c_bigendian=no
19201 # finding both strings is unlikely to happen, but who knows?
19202 ac_cv_c_bigendian=unknown
19206 echo "$as_me: failed program was:" >&5
19207 cat conftest.$ac_ext >&5
19209 rm -f conftest.$ac_objext conftest.$ac_ext
19211 cat >conftest.$ac_ext <<_ACEOF
19212 #line $LINENO "configure"
19213 #include "confdefs.h"
19217 /* Are we little or big endian? From Harbison&Steele. */
19221 char c[sizeof (long)];
19224 exit (u.c[sizeof (long) - 1] == 1);
19227 rm -f conftest$ac_exeext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19229 (eval $ac_link) 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_c_bigendian=no
19240 echo "$as_me: program exited with status $ac_status" >&5
19241 echo "$as_me: failed program was:" >&5
19242 cat conftest.$ac_ext >&5
19243 ( exit $ac_status )
19244 ac_cv_c_bigendian=yes
19246 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19249 rm -f conftest.$ac_objext conftest.$ac_ext
19251 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19252 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19253 case $ac_cv_c_bigendian in
19255 cat >>confdefs.h <<\_ACEOF
19256 #define ENDIAN_BIG 1
19260 cat >>confdefs.h <<\_ACEOF
19261 #define ENDIAN_LITTLE 1
19265 { { echo "$as_me:$LINENO: error: unknown endianess
19266 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19267 echo "$as_me: error: unknown endianess
19268 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19269 { (exit 1); exit 1; }; } ;;
19273 echo "$as_me:$LINENO: checking for pid_t" >&5
19274 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19275 if test "${ac_cv_type_pid_t+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19278 cat >conftest.$ac_ext <<_ACEOF
19279 #line $LINENO "configure"
19280 #include "confdefs.h"
19281 $ac_includes_default
19282 #ifdef F77_DUMMY_MAIN
19283 # ifdef __cplusplus
19286 int F77_DUMMY_MAIN() { return 1; }
19293 if (sizeof (pid_t))
19299 rm -f conftest.$ac_objext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19301 (eval $ac_compile) 2>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try='test -s conftest.$ac_objext'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19311 ac_cv_type_pid_t=yes
19313 echo "$as_me: failed program was:" >&5
19314 cat conftest.$ac_ext >&5
19315 ac_cv_type_pid_t=no
19317 rm -f conftest.$ac_objext conftest.$ac_ext
19319 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19320 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19321 if test $ac_cv_type_pid_t = yes; then
19325 cat >>confdefs.h <<_ACEOF
19331 echo "$as_me:$LINENO: checking for size_t" >&5
19332 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19333 if test "${ac_cv_type_size_t+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 cat >conftest.$ac_ext <<_ACEOF
19337 #line $LINENO "configure"
19338 #include "confdefs.h"
19339 $ac_includes_default
19340 #ifdef F77_DUMMY_MAIN
19341 # ifdef __cplusplus
19344 int F77_DUMMY_MAIN() { return 1; }
19351 if (sizeof (size_t))
19357 rm -f conftest.$ac_objext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19359 (eval $ac_compile) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } &&
19363 { ac_try='test -s conftest.$ac_objext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 ac_cv_type_size_t=yes
19371 echo "$as_me: failed program was:" >&5
19372 cat conftest.$ac_ext >&5
19373 ac_cv_type_size_t=no
19375 rm -f conftest.$ac_objext conftest.$ac_ext
19377 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19378 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19379 if test $ac_cv_type_size_t = yes; then
19383 cat >>confdefs.h <<_ACEOF
19384 #define size_t unsigned
19389 echo "$as_me:$LINENO: checking for int64_t" >&5
19390 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19391 if test "${ac_cv_type_int64_t+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 cat >conftest.$ac_ext <<_ACEOF
19395 #line $LINENO "configure"
19396 #include "confdefs.h"
19397 $ac_includes_default
19398 #ifdef F77_DUMMY_MAIN
19399 # ifdef __cplusplus
19402 int F77_DUMMY_MAIN() { return 1; }
19409 if (sizeof (int64_t))
19415 rm -f conftest.$ac_objext
19416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19417 (eval $ac_compile) 2>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -s conftest.$ac_objext'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 ac_cv_type_int64_t=yes
19429 echo "$as_me: failed program was:" >&5
19430 cat conftest.$ac_ext >&5
19431 ac_cv_type_int64_t=no
19433 rm -f conftest.$ac_objext conftest.$ac_ext
19435 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19436 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19437 if test $ac_cv_type_int64_t = yes; then
19439 cat >>confdefs.h <<_ACEOF
19440 #define HAVE_INT64_T 1
19445 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19446 echo "$as_me: error: Type int64_t required but not found" >&2;}
19447 { (exit 1); exit 1; }; }
19450 echo "$as_me:$LINENO: checking for uint64_t" >&5
19451 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19452 if test "${ac_cv_type_uint64_t+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19455 cat >conftest.$ac_ext <<_ACEOF
19456 #line $LINENO "configure"
19457 #include "confdefs.h"
19458 $ac_includes_default
19459 #ifdef F77_DUMMY_MAIN
19460 # ifdef __cplusplus
19463 int F77_DUMMY_MAIN() { return 1; }
19468 if ((uint64_t *) 0)
19470 if (sizeof (uint64_t))
19476 rm -f conftest.$ac_objext
19477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19478 (eval $ac_compile) 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } &&
19482 { ac_try='test -s conftest.$ac_objext'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 ac_cv_type_uint64_t=yes
19490 echo "$as_me: failed program was:" >&5
19491 cat conftest.$ac_ext >&5
19492 ac_cv_type_uint64_t=no
19494 rm -f conftest.$ac_objext conftest.$ac_ext
19496 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19497 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19498 if test $ac_cv_type_uint64_t = yes; then
19500 cat >>confdefs.h <<_ACEOF
19501 #define HAVE_UINT64_T 1
19506 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19507 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19508 { (exit 1); exit 1; }; }
19511 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19512 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19513 if test "${ac_cv_header_time+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 cat >conftest.$ac_ext <<_ACEOF
19517 #line $LINENO "configure"
19518 #include "confdefs.h"
19519 #include <sys/types.h>
19520 #include <sys/time.h>
19523 #ifdef F77_DUMMY_MAIN
19524 # ifdef __cplusplus
19527 int F77_DUMMY_MAIN() { return 1; }
19532 if ((struct tm *) 0)
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } &&
19544 { ac_try='test -s conftest.$ac_objext'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19550 ac_cv_header_time=yes
19552 echo "$as_me: failed program was:" >&5
19553 cat conftest.$ac_ext >&5
19554 ac_cv_header_time=no
19556 rm -f conftest.$ac_objext conftest.$ac_ext
19558 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19559 echo "${ECHO_T}$ac_cv_header_time" >&6
19560 if test $ac_cv_header_time = yes; then
19562 cat >>confdefs.h <<\_ACEOF
19563 #define TIME_WITH_SYS_TIME 1
19568 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19569 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19570 if test "${ac_cv_struct_tm+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 cat >conftest.$ac_ext <<_ACEOF
19574 #line $LINENO "configure"
19575 #include "confdefs.h"
19576 #include <sys/types.h>
19579 #ifdef F77_DUMMY_MAIN
19580 # ifdef __cplusplus
19583 int F77_DUMMY_MAIN() { return 1; }
19588 struct tm *tp; tp->tm_sec;
19593 rm -f conftest.$ac_objext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19595 (eval $ac_compile) 2>&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -s conftest.$ac_objext'
19600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601 (eval $ac_try) 2>&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); }; }; then
19605 ac_cv_struct_tm=time.h
19607 echo "$as_me: failed program was:" >&5
19608 cat conftest.$ac_ext >&5
19609 ac_cv_struct_tm=sys/time.h
19611 rm -f conftest.$ac_objext conftest.$ac_ext
19613 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19614 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19615 if test $ac_cv_struct_tm = sys/time.h; then
19617 cat >>confdefs.h <<\_ACEOF
19618 #define TM_IN_SYS_TIME 1
19624 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19625 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19626 if test "${ac_cv_cxx_namespaces+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19632 ac_cpp='$CXXCPP $CPPFLAGS'
19633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19637 cat >conftest.$ac_ext <<_ACEOF
19638 #line $LINENO "configure"
19639 #include "confdefs.h"
19640 namespace Outer { namespace Inner { int i = 0; }}
19641 #ifdef F77_DUMMY_MAIN
19642 # ifdef __cplusplus
19645 int F77_DUMMY_MAIN() { return 1; }
19650 using namespace Outer::Inner; return i;
19655 rm -f conftest.$ac_objext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657 (eval $ac_compile) 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -s conftest.$ac_objext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_cv_cxx_namespaces=yes
19669 echo "$as_me: failed program was:" >&5
19670 cat conftest.$ac_ext >&5
19671 ac_cv_cxx_namespaces=no
19673 rm -f conftest.$ac_objext conftest.$ac_ext
19675 ac_cpp='$CPP $CPPFLAGS'
19676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19682 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19683 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19684 if test "$ac_cv_cxx_namespaces" = yes; then
19686 cat >>confdefs.h <<\_ACEOF
19687 #define HAVE_NAMESPACES
19692 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
19693 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
19694 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 ac_cpp='$CXXCPP $CPPFLAGS'
19702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19706 cat >conftest.$ac_ext <<_ACEOF
19707 #line $LINENO "configure"
19708 #include "confdefs.h"
19709 #include <ext/hash_map>
19710 #ifdef HAVE_NAMESPACES
19711 using namespace std;
19713 #ifdef F77_DUMMY_MAIN
19714 # ifdef __cplusplus
19717 int F77_DUMMY_MAIN() { return 1; }
19722 hash_map<int, int> t; return 0;
19727 rm -f conftest.$ac_objext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19729 (eval $ac_compile) 2>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
19733 { ac_try='test -s conftest.$ac_objext'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; }; then
19739 ac_cv_cxx_have_ext_hash_map=std
19741 echo "$as_me: failed program was:" >&5
19742 cat conftest.$ac_ext >&5
19743 ac_cv_cxx_have_ext_hash_map=no
19745 rm -f conftest.$ac_objext conftest.$ac_ext
19746 cat >conftest.$ac_ext <<_ACEOF
19747 #line $LINENO "configure"
19748 #include "confdefs.h"
19749 #include <ext/hash_map>
19750 #ifdef HAVE_NAMESPACES
19751 using namespace __gnu_cxx;
19753 #ifdef F77_DUMMY_MAIN
19754 # ifdef __cplusplus
19757 int F77_DUMMY_MAIN() { return 1; }
19762 hash_map<int, int> t; return 0;
19767 rm -f conftest.$ac_objext
19768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19769 (eval $ac_compile) 2>&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
19773 { ac_try='test -s conftest.$ac_objext'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_cv_cxx_have_ext_hash_map=gnu
19781 echo "$as_me: failed program was:" >&5
19782 cat conftest.$ac_ext >&5
19783 ac_cv_cxx_have_ext_hash_map=no
19785 rm -f conftest.$ac_objext conftest.$ac_ext
19787 ac_cpp='$CPP $CPPFLAGS'
19788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19794 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
19795 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
19796 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE_STD_EXT_HASH_MAP
19803 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
19805 cat >>confdefs.h <<\_ACEOF
19806 #define HAVE_GNU_EXT_HASH_MAP
19811 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
19812 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
19813 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 ac_cpp='$CXXCPP $CPPFLAGS'
19821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19825 cat >conftest.$ac_ext <<_ACEOF
19826 #line $LINENO "configure"
19827 #include "confdefs.h"
19828 #include <ext/hash_set>
19829 #ifdef HAVE_NAMESPACES
19830 using namespace std;
19832 #ifdef F77_DUMMY_MAIN
19833 # ifdef __cplusplus
19836 int F77_DUMMY_MAIN() { return 1; }
19841 hash_set<int> t; return 0;
19846 rm -f conftest.$ac_objext
19847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19848 (eval $ac_compile) 2>&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } &&
19852 { ac_try='test -s conftest.$ac_objext'
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; }; then
19858 ac_cv_cxx_have_ext_hash_set=std
19860 echo "$as_me: failed program was:" >&5
19861 cat conftest.$ac_ext >&5
19862 ac_cv_cxx_have_ext_hash_set=no
19864 rm -f conftest.$ac_objext conftest.$ac_ext
19865 cat >conftest.$ac_ext <<_ACEOF
19866 #line $LINENO "configure"
19867 #include "confdefs.h"
19868 #include <ext/hash_set>
19869 #ifdef HAVE_NAMESPACES
19870 using namespace __gnu_cxx;
19872 #ifdef F77_DUMMY_MAIN
19873 # ifdef __cplusplus
19876 int F77_DUMMY_MAIN() { return 1; }
19881 hash_set<int> t; return 0;
19886 rm -f conftest.$ac_objext
19887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19888 (eval $ac_compile) 2>&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -s conftest.$ac_objext'
19893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_cxx_have_ext_hash_set=gnu
19900 echo "$as_me: failed program was:" >&5
19901 cat conftest.$ac_ext >&5
19902 ac_cv_cxx_have_ext_hash_set=no
19904 rm -f conftest.$ac_objext conftest.$ac_ext
19906 ac_cpp='$CPP $CPPFLAGS'
19907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19913 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
19914 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
19915 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
19917 cat >>confdefs.h <<\_ACEOF
19918 #define HAVE_STD_EXT_HASH_SET
19922 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
19924 cat >>confdefs.h <<\_ACEOF
19925 #define HAVE_GNU_EXT_HASH_SET
19930 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
19931 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
19932 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 ac_cpp='$CXXCPP $CPPFLAGS'
19940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19944 cat >conftest.$ac_ext <<_ACEOF
19945 #line $LINENO "configure"
19946 #include "confdefs.h"
19947 #include <ext/slist>
19948 #ifdef HAVE_NAMESPACES
19949 using namespace std;
19951 #ifdef F77_DUMMY_MAIN
19952 # ifdef __cplusplus
19955 int F77_DUMMY_MAIN() { return 1; }
19960 slist<int> s; return 0;
19965 rm -f conftest.$ac_objext
19966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19967 (eval $ac_compile) 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try='test -s conftest.$ac_objext'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_cv_cxx_have_ext_slist=std
19979 echo "$as_me: failed program was:" >&5
19980 cat conftest.$ac_ext >&5
19981 ac_cv_cxx_have_ext_slist=no
19983 rm -f conftest.$ac_objext conftest.$ac_ext
19984 cat >conftest.$ac_ext <<_ACEOF
19985 #line $LINENO "configure"
19986 #include "confdefs.h"
19987 #include <ext/slist>
19988 #ifdef HAVE_NAMESPACES
19989 using namespace __gnu_cxx;
19991 #ifdef F77_DUMMY_MAIN
19992 # ifdef __cplusplus
19995 int F77_DUMMY_MAIN() { return 1; }
20000 slist<int> s; return 0;
20005 rm -f conftest.$ac_objext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20007 (eval $ac_compile) 2>&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } &&
20011 { ac_try='test -s conftest.$ac_objext'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 ac_cv_cxx_have_ext_slist=gnu
20019 echo "$as_me: failed program was:" >&5
20020 cat conftest.$ac_ext >&5
20021 ac_cv_cxx_have_ext_slist=no
20023 rm -f conftest.$ac_objext conftest.$ac_ext
20026 ac_cpp='$CPP $CPPFLAGS'
20027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20033 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20034 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20035 if test "$ac_cv_cxx_have_ext_slist" = std; then
20037 cat >>confdefs.h <<\_ACEOF
20038 #define HAVE_EXT_SLIST std
20042 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20044 cat >>confdefs.h <<\_ACEOF
20045 #define HAVE_EXT_SLIST gnu
20050 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20051 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20052 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20059 ac_cpp='$CXXCPP $CPPFLAGS'
20060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20064 cat >conftest.$ac_ext <<_ACEOF
20065 #line $LINENO "configure"
20066 #include "confdefs.h"
20067 #include <iterator>
20068 #ifdef HAVE_NAMESPACES
20069 using namespace std;
20071 #ifdef F77_DUMMY_MAIN
20072 # ifdef __cplusplus
20075 int F77_DUMMY_MAIN() { return 1; }
20080 iterator<int,int,int> t; return 0;
20085 rm -f conftest.$ac_objext
20086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20087 (eval $ac_compile) 2>&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } &&
20091 { ac_try='test -s conftest.$ac_objext'
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; }; then
20097 ac_cv_cxx_have_std_iterator=yes
20099 echo "$as_me: failed program was:" >&5
20100 cat conftest.$ac_ext >&5
20101 ac_cv_cxx_have_std_iterator=no
20103 rm -f conftest.$ac_objext conftest.$ac_ext
20105 ac_cpp='$CPP $CPPFLAGS'
20106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20112 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20113 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20114 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20116 cat >>confdefs.h <<\_ACEOF
20117 #define HAVE_STD_ITERATOR
20122 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20123 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20124 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 ac_cpp='$CXXCPP $CPPFLAGS'
20132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20136 cat >conftest.$ac_ext <<_ACEOF
20137 #line $LINENO "configure"
20138 #include "confdefs.h"
20139 #include <iterator>
20140 #ifdef HAVE_NAMESPACES
20141 using namespace std;
20143 #ifdef F77_DUMMY_MAIN
20144 # ifdef __cplusplus
20147 int F77_DUMMY_MAIN() { return 1; }
20152 bidirectional_iterator<int,int,int> t; return 0;
20157 rm -f conftest.$ac_objext
20158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159 (eval $ac_compile) 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } &&
20163 { ac_try='test -s conftest.$ac_objext'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 ac_cv_cxx_have_bi_iterator=yes
20171 echo "$as_me: failed program was:" >&5
20172 cat conftest.$ac_ext >&5
20173 ac_cv_cxx_have_bi_iterator=no
20175 rm -f conftest.$ac_objext conftest.$ac_ext
20177 ac_cpp='$CPP $CPPFLAGS'
20178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20184 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20185 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20186 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20188 cat >>confdefs.h <<\_ACEOF
20189 #define HAVE_BI_ITERATOR
20194 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20195 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20196 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 ac_cpp='$CXXCPP $CPPFLAGS'
20204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20208 cat >conftest.$ac_ext <<_ACEOF
20209 #line $LINENO "configure"
20210 #include "confdefs.h"
20211 #include <iterator>
20212 #ifdef HAVE_NAMESPACES
20213 using namespace std;
20215 #ifdef F77_DUMMY_MAIN
20216 # ifdef __cplusplus
20219 int F77_DUMMY_MAIN() { return 1; }
20224 forward_iterator<int,int,int> t; return 0;
20229 rm -f conftest.$ac_objext
20230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20231 (eval $ac_compile) 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } &&
20235 { ac_try='test -s conftest.$ac_objext'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 ac_cv_cxx_have_fwd_iterator=yes
20243 echo "$as_me: failed program was:" >&5
20244 cat conftest.$ac_ext >&5
20245 ac_cv_cxx_have_fwd_iterator=no
20247 rm -f conftest.$ac_objext conftest.$ac_ext
20249 ac_cpp='$CPP $CPPFLAGS'
20250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20256 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20257 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20258 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20260 cat >>confdefs.h <<\_ACEOF
20261 #define HAVE_FWD_ITERATOR
20267 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20268 # for constant arguments. Useless!
20269 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20270 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20271 if test "${ac_cv_working_alloca_h+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20274 cat >conftest.$ac_ext <<_ACEOF
20275 #line $LINENO "configure"
20276 #include "confdefs.h"
20277 #include <alloca.h>
20278 #ifdef F77_DUMMY_MAIN
20279 # ifdef __cplusplus
20282 int F77_DUMMY_MAIN() { return 1; }
20287 char *p = (char *) alloca (2 * sizeof (int));
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20294 (eval $ac_link) 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
20298 { ac_try='test -s conftest$ac_exeext'
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 ac_cv_working_alloca_h=yes
20306 echo "$as_me: failed program was:" >&5
20307 cat conftest.$ac_ext >&5
20308 ac_cv_working_alloca_h=no
20310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20312 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20313 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20314 if test $ac_cv_working_alloca_h = yes; then
20316 cat >>confdefs.h <<\_ACEOF
20317 #define HAVE_ALLOCA_H 1
20322 echo "$as_me:$LINENO: checking for alloca" >&5
20323 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20324 if test "${ac_cv_func_alloca_works+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 cat >conftest.$ac_ext <<_ACEOF
20328 #line $LINENO "configure"
20329 #include "confdefs.h"
20331 # define alloca __builtin_alloca
20334 # include <malloc.h>
20335 # define alloca _alloca
20338 # include <alloca.h>
20343 # ifndef alloca /* predefined by HP cc +Olibcalls */
20351 #ifdef F77_DUMMY_MAIN
20352 # ifdef __cplusplus
20355 int F77_DUMMY_MAIN() { return 1; }
20360 char *p = (char *) alloca (1);
20365 rm -f conftest.$ac_objext conftest$ac_exeext
20366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20367 (eval $ac_link) 2>&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); } &&
20371 { ac_try='test -s conftest$ac_exeext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 ac_cv_func_alloca_works=yes
20379 echo "$as_me: failed program was:" >&5
20380 cat conftest.$ac_ext >&5
20381 ac_cv_func_alloca_works=no
20383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20385 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20386 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20388 if test $ac_cv_func_alloca_works = yes; then
20390 cat >>confdefs.h <<\_ACEOF
20391 #define HAVE_ALLOCA 1
20395 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20396 # that cause trouble. Some versions do not even contain alloca or
20397 # contain a buggy version. If you still want to use their alloca,
20398 # use ar to extract alloca.o from them instead of compiling alloca.c.
20400 ALLOCA=alloca.$ac_objext
20402 cat >>confdefs.h <<\_ACEOF
20407 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20408 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20409 if test "${ac_cv_os_cray+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20412 cat >conftest.$ac_ext <<_ACEOF
20413 #line $LINENO "configure"
20414 #include "confdefs.h"
20415 #if defined(CRAY) && ! defined(CRAY2)
20422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20423 egrep "webecray" >/dev/null 2>&1; then
20431 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20432 echo "${ECHO_T}$ac_cv_os_cray" >&6
20433 if test $ac_cv_os_cray = yes; then
20434 for ac_func in _getb67 GETB67 getb67; do
20435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20436 echo "$as_me:$LINENO: checking for $ac_func" >&5
20437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20438 if eval "test \"\${$as_ac_var+set}\" = set"; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 cat >conftest.$ac_ext <<_ACEOF
20442 #line $LINENO "configure"
20443 #include "confdefs.h"
20444 /* System header to define __stub macros and hopefully few prototypes,
20445 which can conflict with char $ac_func (); below. */
20446 #include <assert.h>
20447 /* Override any gcc2 internal prototype to avoid an error. */
20451 /* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20456 #ifdef F77_DUMMY_MAIN
20457 # ifdef __cplusplus
20460 int F77_DUMMY_MAIN() { return 1; }
20465 /* The GNU C library defines this for functions which it implements
20466 to always fail with ENOSYS. Some functions are actually named
20467 something starting with __ and the normal name is an alias. */
20468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20478 rm -f conftest.$ac_objext conftest$ac_exeext
20479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20480 (eval $ac_link) 2>&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } &&
20484 { ac_try='test -s conftest$ac_exeext'
20485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486 (eval $ac_try) 2>&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; }; then
20490 eval "$as_ac_var=yes"
20492 echo "$as_me: failed program was:" >&5
20493 cat conftest.$ac_ext >&5
20494 eval "$as_ac_var=no"
20496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20500 if test `eval echo '${'$as_ac_var'}'` = yes; then
20502 cat >>confdefs.h <<_ACEOF
20503 #define CRAY_STACKSEG_END $ac_func
20512 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20513 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20514 if test "${ac_cv_c_stack_direction+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20517 if test "$cross_compiling" = yes; then
20518 ac_cv_c_stack_direction=0
20520 cat >conftest.$ac_ext <<_ACEOF
20521 #line $LINENO "configure"
20522 #include "confdefs.h"
20524 find_stack_direction ()
20526 static char *addr = 0;
20531 return find_stack_direction ();
20534 return (&dummy > addr) ? 1 : -1;
20540 exit (find_stack_direction () < 0);
20543 rm -f conftest$ac_exeext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20545 (eval $ac_link) 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_c_stack_direction=1
20556 echo "$as_me: program exited with status $ac_status" >&5
20557 echo "$as_me: failed program was:" >&5
20558 cat conftest.$ac_ext >&5
20559 ( exit $ac_status )
20560 ac_cv_c_stack_direction=-1
20562 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20565 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20566 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20568 cat >>confdefs.h <<_ACEOF
20569 #define STACK_DIRECTION $ac_cv_c_stack_direction
20575 if test $ac_cv_c_compiler_gnu = yes; then
20576 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20577 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20578 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 ac_pattern="Autoconf.*'x'"
20582 cat >conftest.$ac_ext <<_ACEOF
20583 #line $LINENO "configure"
20584 #include "confdefs.h"
20588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20589 egrep "$ac_pattern" >/dev/null 2>&1; then
20590 ac_cv_prog_gcc_traditional=yes
20592 ac_cv_prog_gcc_traditional=no
20597 if test $ac_cv_prog_gcc_traditional = no; then
20598 cat >conftest.$ac_ext <<_ACEOF
20599 #line $LINENO "configure"
20600 #include "confdefs.h"
20601 #include <termio.h>
20604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20605 egrep "$ac_pattern" >/dev/null 2>&1; then
20606 ac_cv_prog_gcc_traditional=yes
20612 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20613 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20614 if test $ac_cv_prog_gcc_traditional = yes; then
20615 CC="$CC -traditional"
20619 echo "$as_me:$LINENO: checking for working memcmp" >&5
20620 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20621 if test "${ac_cv_func_memcmp_working+set}" = set; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20624 if test "$cross_compiling" = yes; then
20625 ac_cv_func_memcmp_working=no
20627 cat >conftest.$ac_ext <<_ACEOF
20628 #line $LINENO "configure"
20629 #include "confdefs.h"
20631 #ifdef F77_DUMMY_MAIN
20632 # ifdef __cplusplus
20635 int F77_DUMMY_MAIN() { return 1; }
20641 /* Some versions of memcmp are not 8-bit clean. */
20642 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20643 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20646 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20647 or more and with at least one buffer not starting on a 4-byte boundary.
20648 William Lewis provided this test program. */
20653 for (i = 0; i < 4; i++)
20657 strcpy (a, "--------01111111");
20658 strcpy (b, "--------10000000");
20659 if (memcmp (a, b, 16) >= 0)
20669 rm -f conftest$ac_exeext
20670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20671 (eval $ac_link) 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_cv_func_memcmp_working=yes
20682 echo "$as_me: program exited with status $ac_status" >&5
20683 echo "$as_me: failed program was:" >&5
20684 cat conftest.$ac_ext >&5
20685 ( exit $ac_status )
20686 ac_cv_func_memcmp_working=no
20688 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20691 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20692 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20693 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20697 for ac_header in stdlib.h unistd.h
20699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20701 echo "$as_me:$LINENO: checking for $ac_header" >&5
20702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20709 # Is the header compilable?
20710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20712 cat >conftest.$ac_ext <<_ACEOF
20713 #line $LINENO "configure"
20714 #include "confdefs.h"
20715 $ac_includes_default
20716 #include <$ac_header>
20718 rm -f conftest.$ac_objext
20719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20720 (eval $ac_compile) 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } &&
20724 { ac_try='test -s conftest.$ac_objext'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 ac_header_compiler=yes
20732 echo "$as_me: failed program was:" >&5
20733 cat conftest.$ac_ext >&5
20734 ac_header_compiler=no
20736 rm -f conftest.$ac_objext conftest.$ac_ext
20737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20738 echo "${ECHO_T}$ac_header_compiler" >&6
20740 # Is the header present?
20741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20743 cat >conftest.$ac_ext <<_ACEOF
20744 #line $LINENO "configure"
20745 #include "confdefs.h"
20746 #include <$ac_header>
20748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20751 egrep -v '^ *\+' conftest.er1 >conftest.err
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } >/dev/null; then
20756 if test -s conftest.err; then
20757 ac_cpp_err=$ac_c_preproc_warn_flag
20764 if test -z "$ac_cpp_err"; then
20765 ac_header_preproc=yes
20767 echo "$as_me: failed program was:" >&5
20768 cat conftest.$ac_ext >&5
20769 ac_header_preproc=no
20771 rm -f conftest.err conftest.$ac_ext
20772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20773 echo "${ECHO_T}$ac_header_preproc" >&6
20775 # So? What about this header?
20776 case $ac_header_compiler:$ac_header_preproc in
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20790 echo "$as_me:$LINENO: checking for $ac_header" >&5
20791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20795 eval "$as_ac_Header=$ac_header_preproc"
20797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20802 cat >>confdefs.h <<_ACEOF
20803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20811 for ac_func in getpagesize
20813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20814 echo "$as_me:$LINENO: checking for $ac_func" >&5
20815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20816 if eval "test \"\${$as_ac_var+set}\" = set"; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 cat >conftest.$ac_ext <<_ACEOF
20820 #line $LINENO "configure"
20821 #include "confdefs.h"
20822 /* System header to define __stub macros and hopefully few prototypes,
20823 which can conflict with char $ac_func (); below. */
20824 #include <assert.h>
20825 /* Override any gcc2 internal prototype to avoid an error. */
20829 /* We use char because int might match the return type of a gcc2
20830 builtin and then its argument prototype would still apply. */
20834 #ifdef F77_DUMMY_MAIN
20835 # ifdef __cplusplus
20838 int F77_DUMMY_MAIN() { return 1; }
20843 /* The GNU C library defines this for functions which it implements
20844 to always fail with ENOSYS. Some functions are actually named
20845 something starting with __ and the normal name is an alias. */
20846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20856 rm -f conftest.$ac_objext conftest$ac_exeext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20858 (eval $ac_link) 2>&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } &&
20862 { ac_try='test -s conftest$ac_exeext'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 eval "$as_ac_var=yes"
20870 echo "$as_me: failed program was:" >&5
20871 cat conftest.$ac_ext >&5
20872 eval "$as_ac_var=no"
20874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20878 if test `eval echo '${'$as_ac_var'}'` = yes; then
20879 cat >>confdefs.h <<_ACEOF
20880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20886 echo "$as_me:$LINENO: checking for working mmap" >&5
20887 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20888 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 if test "$cross_compiling" = yes; then
20892 ac_cv_func_mmap_fixed_mapped=no
20894 cat >conftest.$ac_ext <<_ACEOF
20895 #line $LINENO "configure"
20896 #include "confdefs.h"
20897 $ac_includes_default
20898 /* malloc might have been renamed as rpl_malloc. */
20901 /* Thanks to Mike Haertel and Jim Avera for this test.
20902 Here is a matrix of mmap possibilities:
20903 mmap private not fixed
20904 mmap private fixed at somewhere currently unmapped
20905 mmap private fixed at somewhere already mapped
20906 mmap shared not fixed
20907 mmap shared fixed at somewhere currently unmapped
20908 mmap shared fixed at somewhere already mapped
20909 For private mappings, we should verify that changes cannot be read()
20910 back from the file, nor mmap's back from the file at a different
20911 address. (There have been systems where private was not correctly
20912 implemented like the infamous i386 svr4.0, and systems where the
20913 VM page cache was not coherent with the file system buffer cache
20914 like early versions of FreeBSD and possibly contemporary NetBSD.)
20915 For shared mappings, we should conversely verify that changes get
20916 propagated back to all the places they're supposed to be.
20918 Grep wants private fixed already mapped.
20919 The main things grep needs to know about mmap are:
20920 * does it exist and is it safe to write into the mmap'd area
20921 * how to use it (BSD variants) */
20924 #include <sys/mman.h>
20926 #if !STDC_HEADERS && !HAVE_STDLIB_H
20930 /* This mess was copied from the GNU getpagesize.h. */
20931 #if !HAVE_GETPAGESIZE
20932 /* Assume that all systems that can run configure have sys/param.h. */
20933 # if !HAVE_SYS_PARAM_H
20934 # define HAVE_SYS_PARAM_H 1
20937 # ifdef _SC_PAGESIZE
20938 # define getpagesize() sysconf(_SC_PAGESIZE)
20939 # else /* no _SC_PAGESIZE */
20940 # if HAVE_SYS_PARAM_H
20941 # include <sys/param.h>
20942 # ifdef EXEC_PAGESIZE
20943 # define getpagesize() EXEC_PAGESIZE
20944 # else /* no EXEC_PAGESIZE */
20946 # define getpagesize() NBPG * CLSIZE
20949 # endif /* no CLSIZE */
20950 # else /* no NBPG */
20952 # define getpagesize() NBPC
20953 # else /* no NBPC */
20955 # define getpagesize() PAGESIZE
20956 # endif /* PAGESIZE */
20957 # endif /* no NBPC */
20958 # endif /* no NBPG */
20959 # endif /* no EXEC_PAGESIZE */
20960 # else /* no HAVE_SYS_PARAM_H */
20961 # define getpagesize() 8192 /* punt totally */
20962 # endif /* no HAVE_SYS_PARAM_H */
20963 # endif /* no _SC_PAGESIZE */
20965 #endif /* no HAVE_GETPAGESIZE */
20970 char *data, *data2, *data3;
20974 pagesize = getpagesize ();
20976 /* First, make a file with some known garbage in it. */
20977 data = (char *) malloc (pagesize);
20980 for (i = 0; i < pagesize; ++i)
20981 *(data + i) = rand ();
20983 fd = creat ("conftest.mmap", 0600);
20986 if (write (fd, data, pagesize) != pagesize)
20990 /* Next, try to mmap the file at a fixed address which already has
20991 something else allocated at it. If we can, also make sure that
20992 we see the same garbage. */
20993 fd = open ("conftest.mmap", O_RDWR);
20996 data2 = (char *) malloc (2 * pagesize);
20999 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21000 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21001 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21003 for (i = 0; i < pagesize; ++i)
21004 if (*(data + i) != *(data2 + i))
21007 /* Finally, make sure that changes to the mapped area do not
21008 percolate back to the file as seen by read(). (This is a bug on
21009 some variants of i386 svr4.0.) */
21010 for (i = 0; i < pagesize; ++i)
21011 *(data2 + i) = *(data2 + i) + 1;
21012 data3 = (char *) malloc (pagesize);
21015 if (read (fd, data3, pagesize) != pagesize)
21017 for (i = 0; i < pagesize; ++i)
21018 if (*(data + i) != *(data3 + i))
21024 rm -f conftest$ac_exeext
21025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21026 (eval $ac_link) 2>&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ac_cv_func_mmap_fixed_mapped=yes
21037 echo "$as_me: program exited with status $ac_status" >&5
21038 echo "$as_me: failed program was:" >&5
21039 cat conftest.$ac_ext >&5
21040 ( exit $ac_status )
21041 ac_cv_func_mmap_fixed_mapped=no
21043 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21046 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21047 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21048 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21050 cat >>confdefs.h <<\_ACEOF
21051 #define HAVE_MMAP 1
21055 rm -f conftest.mmap
21057 echo "$as_me:$LINENO: checking for mmap of files" >&5
21058 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21059 if test "${ac_cv_func_mmap_file+set}" = set; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 ac_cpp='$CPP $CPPFLAGS'
21066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21070 if test "$cross_compiling" = yes; then
21071 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
21072 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21073 { (exit 1); exit 1; }; }
21075 cat >conftest.$ac_ext <<_ACEOF
21076 #line $LINENO "configure"
21077 #include "confdefs.h"
21079 #ifdef HAVE_SYS_MMAN_H
21080 #include <sys/mman.h>
21083 #ifdef HAVE_SYS_TYPES_H
21084 #include <sys/types.h>
21087 #ifdef HAVE_FCNTL_H
21093 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21095 rm -f conftest$ac_exeext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21097 (eval $ac_link) 2>&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; }; then
21106 ac_cv_func_mmap_file=yes
21108 echo "$as_me: program exited with status $ac_status" >&5
21109 echo "$as_me: failed program was:" >&5
21110 cat conftest.$ac_ext >&5
21111 ( exit $ac_status )
21112 ac_cv_func_mmap_file=no
21114 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21117 ac_cpp='$CPP $CPPFLAGS'
21118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21124 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21125 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21126 if test "$ac_cv_func_mmap_file" = yes; then
21127 cat >>confdefs.h <<\_ACEOF
21128 #define HAVE_MMAP_FILE 1
21135 if test ${ac_cv_func_mmap_file} = "no"
21137 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21138 echo "$as_me: error: mmap() of files required but not found" >&2;}
21139 { (exit 1); exit 1; }; }
21141 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21142 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21143 if test "${ac_cv_header_mmap_anon+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21149 ac_cpp='$CPP $CPPFLAGS'
21150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21154 cat >conftest.$ac_ext <<_ACEOF
21155 #line $LINENO "configure"
21156 #include "confdefs.h"
21157 #include <sys/mman.h>
21158 #include <unistd.h>
21160 #ifdef F77_DUMMY_MAIN
21161 # ifdef __cplusplus
21164 int F77_DUMMY_MAIN() { return 1; }
21169 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21174 rm -f conftest.$ac_objext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176 (eval $ac_compile) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } &&
21180 { ac_try='test -s conftest.$ac_objext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 ac_cv_header_mmap_anon=yes
21188 echo "$as_me: failed program was:" >&5
21189 cat conftest.$ac_ext >&5
21190 ac_cv_header_mmap_anon=no
21192 rm -f conftest.$ac_objext conftest.$ac_ext
21194 ac_cpp='$CPP $CPPFLAGS'
21195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21201 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21202 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21203 if test "$ac_cv_header_mmap_anon" = yes; then
21204 cat >>confdefs.h <<\_ACEOF
21205 #define HAVE_MMAP_ANONYMOUS 1
21210 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21211 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21212 if test "${ac_cv_type_signal+set}" = set; then
21213 echo $ECHO_N "(cached) $ECHO_C" >&6
21215 cat >conftest.$ac_ext <<_ACEOF
21216 #line $LINENO "configure"
21217 #include "confdefs.h"
21218 #include <sys/types.h>
21219 #include <signal.h>
21224 extern "C" void (*signal (int, void (*)(int)))(int);
21226 void (*signal ()) ();
21229 #ifdef F77_DUMMY_MAIN
21230 # ifdef __cplusplus
21233 int F77_DUMMY_MAIN() { return 1; }
21243 rm -f conftest.$ac_objext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245 (eval $ac_compile) 2>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -s conftest.$ac_objext'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 ac_cv_type_signal=void
21257 echo "$as_me: failed program was:" >&5
21258 cat conftest.$ac_ext >&5
21259 ac_cv_type_signal=int
21261 rm -f conftest.$ac_objext conftest.$ac_ext
21263 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21264 echo "${ECHO_T}$ac_cv_type_signal" >&6
21266 cat >>confdefs.h <<_ACEOF
21267 #define RETSIGTYPE $ac_cv_type_signal
21280 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21283 echo "$as_me:$LINENO: checking for $ac_func" >&5
21284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21285 if eval "test \"\${$as_ac_var+set}\" = set"; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 cat >conftest.$ac_ext <<_ACEOF
21289 #line $LINENO "configure"
21290 #include "confdefs.h"
21291 /* System header to define __stub macros and hopefully few prototypes,
21292 which can conflict with char $ac_func (); below. */
21293 #include <assert.h>
21294 /* Override any gcc2 internal prototype to avoid an error. */
21298 /* We use char because int might match the return type of a gcc2
21299 builtin and then its argument prototype would still apply. */
21303 #ifdef F77_DUMMY_MAIN
21304 # ifdef __cplusplus
21307 int F77_DUMMY_MAIN() { return 1; }
21312 /* The GNU C library defines this for functions which it implements
21313 to always fail with ENOSYS. Some functions are actually named
21314 something starting with __ and the normal name is an alias. */
21315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21325 rm -f conftest.$ac_objext conftest$ac_exeext
21326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21327 (eval $ac_link) 2>&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try='test -s conftest$ac_exeext'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; }; then
21337 eval "$as_ac_var=yes"
21339 echo "$as_me: failed program was:" >&5
21340 cat conftest.$ac_ext >&5
21341 eval "$as_ac_var=no"
21343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21347 if test `eval echo '${'$as_ac_var'}'` = yes; then
21348 cat >>confdefs.h <<_ACEOF
21349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21357 echo "$as_me:$LINENO: checking for mmap" >&5
21358 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21359 if test "${ac_cv_func_mmap+set}" = set; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 cat >conftest.$ac_ext <<_ACEOF
21363 #line $LINENO "configure"
21364 #include "confdefs.h"
21365 /* System header to define __stub macros and hopefully few prototypes,
21366 which can conflict with char mmap (); below. */
21367 #include <assert.h>
21368 /* Override any gcc2 internal prototype to avoid an error. */
21372 /* We use char because int might match the return type of a gcc2
21373 builtin and then its argument prototype would still apply. */
21377 #ifdef F77_DUMMY_MAIN
21378 # ifdef __cplusplus
21381 int F77_DUMMY_MAIN() { return 1; }
21386 /* The GNU C library defines this for functions which it implements
21387 to always fail with ENOSYS. Some functions are actually named
21388 something starting with __ and the normal name is an alias. */
21389 #if defined (__stub_mmap) || defined (__stub___mmap)
21399 rm -f conftest.$ac_objext conftest$ac_exeext
21400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21401 (eval $ac_link) 2>&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } &&
21405 { ac_try='test -s conftest$ac_exeext'
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; }; then
21411 ac_cv_func_mmap=yes
21413 echo "$as_me: failed program was:" >&5
21414 cat conftest.$ac_ext >&5
21417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21419 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21420 echo "${ECHO_T}$ac_cv_func_mmap" >&6
21421 if test $ac_cv_func_mmap = yes; then
21424 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
21425 echo "$as_me: error: Function mmap() required but not found" >&2;}
21426 { (exit 1); exit 1; }; }
21429 echo "$as_me:$LINENO: checking for mprotect" >&5
21430 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21431 if test "${ac_cv_func_mprotect+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 cat >conftest.$ac_ext <<_ACEOF
21435 #line $LINENO "configure"
21436 #include "confdefs.h"
21437 /* System header to define __stub macros and hopefully few prototypes,
21438 which can conflict with char mprotect (); below. */
21439 #include <assert.h>
21440 /* Override any gcc2 internal prototype to avoid an error. */
21444 /* We use char because int might match the return type of a gcc2
21445 builtin and then its argument prototype would still apply. */
21449 #ifdef F77_DUMMY_MAIN
21450 # ifdef __cplusplus
21453 int F77_DUMMY_MAIN() { return 1; }
21458 /* The GNU C library defines this for functions which it implements
21459 to always fail with ENOSYS. Some functions are actually named
21460 something starting with __ and the normal name is an alias. */
21461 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21471 rm -f conftest.$ac_objext conftest$ac_exeext
21472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21473 (eval $ac_link) 2>&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } &&
21477 { ac_try='test -s conftest$ac_exeext'
21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
21483 ac_cv_func_mprotect=yes
21485 echo "$as_me: failed program was:" >&5
21486 cat conftest.$ac_ext >&5
21487 ac_cv_func_mprotect=no
21489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21491 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21492 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21493 if test $ac_cv_func_mprotect = yes; then
21496 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21497 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21498 { (exit 1); exit 1; }; }
21502 # Check whether --enable-purify or --disable-purify was given.
21503 if test "${enable_purify+set}" = set; then
21504 enableval="$enable_purify"
21505 ENABLE_PURIFY=ENABLE_PURIFY=1
21511 # Check whether --enable-optimized or --disable-optimized was given.
21512 if test "${enable_optimized+set}" = set; then
21513 enableval="$enable_optimized"
21514 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21520 # Check whether --enable-spec or --disable-spec was given.
21521 if test "${enable_spec+set}" = set; then
21522 enableval="$enable_spec"
21523 USE_SPEC=USE_SPEC=1
21529 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21530 if test "${enable_precompiled_bytecode+set}" = set; then
21531 enableval="$enable_precompiled_bytecode"
21532 UPB=USE_PRECOMPILED_BYTECODE=1
21539 *i*86*) # Check whether --enable-jit or --disable-jit was given.
21540 if test "${enable_jit+set}" = set; then
21541 enableval="$enable_jit"
21542 JIT=TARGET_HAS_JIT=1
21554 # Check whether --with-spec or --without-spec was given.
21555 if test "${with_spec+set}" = set; then
21556 withval="$with_spec"
21560 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21564 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21565 if test "${with_llvmgccdir+set}" = set; then
21566 withval="$with_llvmgccdir"
21567 LLVMGCCDIR=$withval
21571 # Check whether --with-bcrepos or --without-bcrepos was given.
21572 if test "${with_bcrepos+set}" = set; then
21573 withval="$with_bcrepos"
21577 BCR=/home/vadve/lattner/LLVMPrograms
21581 # Check whether --with-papi or --without-papi was given.
21582 if test "${with_papi+set}" = set; then
21583 withval="$with_papi"
21587 PAPIDIR=/home/vadve/shared/papi-2.3.4.1
21591 # Check whether --with-objroot or --without-objroot was given.
21592 if test "${with_objroot+set}" = set; then
21593 withval="$with_objroot"
21601 # Check whether --with-purify or --without-purify was given.
21602 if test "${with_purify+set}" = set; then
21603 withval="$with_purify"
21608 ac_config_files="$ac_config_files Makefile.config"
21609 cat >confcache <<\_ACEOF
21610 # This file is a shell script that caches the results of configure
21611 # tests run on this system so they can be shared between configure
21612 # scripts and configure runs, see configure's option --config-cache.
21613 # It is not useful on other systems. If it contains results you don't
21614 # want to keep, you may remove or edit it.
21616 # config.status only pays attention to the cache file if you give it
21617 # the --recheck option to rerun configure.
21619 # `ac_cv_env_foo' variables (set or unset) will be overriden when
21620 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21621 # following values.
21625 # The following way of writing the cache mishandles newlines in values,
21626 # but we know of no workaround that is simple, portable, and efficient.
21627 # So, don't put newlines in cache variables' values.
21628 # Ultrix sh set writes to stderr and can't be redirected directly,
21629 # and sets the high bit in the cache file unless we assign to the vars.
21632 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21634 # `set' does not quote correctly, so add quotes (double-quote
21635 # substitution turns \\\\ into \\, and sed turns \\ into \).
21638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21641 # `set' quotes correctly as required by POSIX, so do not add quotes.
21643 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21652 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21654 if cmp -s $cache_file confcache; then :; else
21655 if test -w $cache_file; then
21656 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21657 cat confcache >$cache_file
21659 echo "not updating unwritable cache $cache_file"
21664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21665 # Let make expand exec_prefix.
21666 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21668 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21669 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21670 # trailing colons and then remove the whole line if VPATH becomes empty
21671 # (actually we leave an empty line to preserve line numbers).
21672 if test "x$srcdir" = x.; then
21673 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21674 s/:*\$(srcdir):*/:/;
21675 s/:*\${srcdir}:*/:/;
21677 s/^\([^=]*=[ ]*\):*/\1/;
21683 DEFS=-DHAVE_CONFIG_H
21686 : ${CONFIG_STATUS=./config.status}
21687 ac_clean_files_save=$ac_clean_files
21688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21689 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21690 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21691 cat >$CONFIG_STATUS <<_ACEOF
21693 # Generated by $as_me.
21694 # Run this file to recreate the current configuration.
21695 # Compiler output produced by configure, useful for debugging
21696 # configure, is in config.log if it exists.
21699 SHELL=\${CONFIG_SHELL-$SHELL}
21702 cat >>$CONFIG_STATUS <<\_ACEOF
21704 ## --------------------- ##
21705 ## M4sh Initialization. ##
21706 ## --------------------- ##
21708 # Be Bourne compatible
21709 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21712 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21717 # Support unset when possible.
21718 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21724 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
21725 { $as_unset LANG || test "${LANG+set}" != set; } ||
21726 { LANG=C; export LANG; }
21727 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
21728 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
21729 { LC_ALL=C; export LC_ALL; }
21730 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
21731 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
21732 { LC_TIME=C; export LC_TIME; }
21733 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
21734 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
21735 { LC_CTYPE=C; export LC_CTYPE; }
21736 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
21737 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
21738 { LANGUAGE=C; export LANGUAGE; }
21739 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
21740 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
21741 { LC_COLLATE=C; export LC_COLLATE; }
21742 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
21743 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
21744 { LC_NUMERIC=C; export LC_NUMERIC; }
21745 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
21746 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
21747 { LC_MESSAGES=C; export LC_MESSAGES; }
21750 # Name of the executable.
21751 as_me=`(basename "$0") 2>/dev/null ||
21752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21753 X"$0" : 'X\(//\)$' \| \
21754 X"$0" : 'X\(/\)$' \| \
21755 . : '\(.\)' 2>/dev/null ||
21757 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21758 /^X\/\(\/\/\)$/{ s//\1/; q; }
21759 /^X\/\(\/\).*/{ s//\1/; q; }
21762 # PATH needs CR, and LINENO needs CR and PATH.
21763 # Avoid depending upon Character Ranges.
21764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21767 as_cr_digits='0123456789'
21768 as_cr_alnum=$as_cr_Letters$as_cr_digits
21770 # The user is always right.
21771 if test "${PATH_SEPARATOR+set}" != set; then
21772 echo "#! /bin/sh" >conftest.sh
21773 echo "exit 0" >>conftest.sh
21774 chmod +x conftest.sh
21775 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
21784 as_lineno_1=$LINENO
21785 as_lineno_2=$LINENO
21786 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21787 test "x$as_lineno_1" != "x$as_lineno_2" &&
21788 test "x$as_lineno_3" = "x$as_lineno_2" || {
21789 # Find who we are. Look in the path if we contain no path at all
21792 *[\\/]* ) as_myself=$0 ;;
21793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21794 for as_dir in $PATH
21797 test -z "$as_dir" && as_dir=.
21798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21803 # We did not find ourselves, most probably we were run as `sh COMMAND'
21804 # in which case we are not to be found in the path.
21805 if test "x$as_myself" = x; then
21808 if test ! -f "$as_myself"; then
21809 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21810 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21811 { (exit 1); exit 1; }; }
21813 case $CONFIG_SHELL in
21815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21816 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21819 test -z "$as_dir" && as_dir=.
21820 for as_base in sh bash ksh sh5; do
21823 if ("$as_dir/$as_base" -c '
21824 as_lineno_1=$LINENO
21825 as_lineno_2=$LINENO
21826 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21827 test "x$as_lineno_1" != "x$as_lineno_2" &&
21828 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21829 CONFIG_SHELL=$as_dir/$as_base
21830 export CONFIG_SHELL
21831 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21839 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21840 # uniformly replaced by the line number. The first 'sed' inserts a
21841 # line-number line before each line; the second 'sed' does the real
21842 # work. The second script uses 'N' to pair each line-number line
21843 # with the numbered line, and appends trailing '-' during
21844 # substitution so that $LINENO is not a special case at line end.
21845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21846 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21847 sed '=' <$as_myself |
21852 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21855 s,^['$as_cr_digits']*\n,,
21856 ' >$as_me.lineno &&
21857 chmod +x $as_me.lineno ||
21858 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21859 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21860 { (exit 1); exit 1; }; }
21862 # Don't try to exec as it changes $[0], causing all sort of problems
21863 # (the dirname of $[0] is not the place where we might find the
21864 # original and so on. Autoconf is especially sensible to this).
21866 # Exit status is that of the last command.
21871 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21872 *c*,-n*) ECHO_N= ECHO_C='
21874 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21875 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21878 if expr a : '\(a\)' >/dev/null 2>&1; then
21884 rm -f conf$$ conf$$.exe conf$$.file
21886 if ln -s conf$$.file conf$$ 2>/dev/null; then
21887 # We could just check for DJGPP; but this test a) works b) is more generic
21888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21889 if test -f conf$$.exe; then
21890 # Don't use ln at all; we don't have any links
21895 elif ln conf$$.file conf$$ 2>/dev/null; then
21900 rm -f conf$$ conf$$.exe conf$$.file
21902 as_executable_p="test -f"
21904 # Sed expression to map a string onto a valid CPP name.
21905 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21907 # Sed expression to map a string onto a valid variable name.
21908 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21912 # We need space, tab and new line, in precisely that order.
21918 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
21922 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21923 # report actual input values of CONFIG_FILES etc. instead of their
21924 # values after options handling. Logging --version etc. is OK.
21928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21929 ## Running $as_me. ##
21934 This file was extended by [LLVM] $as_me [1.0], which was
21935 generated by GNU Autoconf 2.53. Invocation command line was
21937 CONFIG_FILES = $CONFIG_FILES
21938 CONFIG_HEADERS = $CONFIG_HEADERS
21939 CONFIG_LINKS = $CONFIG_LINKS
21940 CONFIG_COMMANDS = $CONFIG_COMMANDS
21944 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21948 # Files that config.status was made for.
21949 if test -n "$ac_config_files"; then
21950 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21953 if test -n "$ac_config_headers"; then
21954 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21957 if test -n "$ac_config_links"; then
21958 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21961 if test -n "$ac_config_commands"; then
21962 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21965 cat >>$CONFIG_STATUS <<\_ACEOF
21968 \`$as_me' instantiates files from templates according to the
21969 current configuration.
21971 Usage: $0 [OPTIONS] [FILE]...
21973 -h, --help print this help, then exit
21974 -V, --version print version number, then exit
21975 -d, --debug don't remove temporary files
21976 --recheck update $as_me by reconfiguring in the same conditions
21977 --file=FILE[:TEMPLATE]
21978 instantiate the configuration file FILE
21979 --header=FILE[:TEMPLATE]
21980 instantiate the configuration header FILE
21982 Configuration files:
21985 Configuration headers:
21988 Report bugs to <bug-autoconf@gnu.org>."
21991 cat >>$CONFIG_STATUS <<_ACEOF
21993 [LLVM] config.status [1.0]
21994 configured by $0, generated by GNU Autoconf 2.53,
21995 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21997 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21998 Free Software Foundation, Inc.
21999 This config.status script is free software; the Free Software Foundation
22000 gives unlimited permission to copy, distribute and modify it."
22005 cat >>$CONFIG_STATUS <<\_ACEOF
22006 # If no file are specified by the user, then we need to provide default
22007 # value. By we need to know if files were specified by the user.
22013 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22014 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22016 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22020 *) # This is not an option, so the user has probably given explicit
22022 ac_need_defaults=false;;
22026 # Handling of the options.
22028 cat >>$CONFIG_STATUS <<_ACEOF
22029 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22030 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22031 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22034 --version | --vers* | -V )
22035 echo "$ac_cs_version"; exit 0 ;;
22037 # Conflict between --help and --header
22038 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22039 Try \`$0 --help' for more information." >&5
22040 echo "$as_me: error: ambiguous option: $1
22041 Try \`$0 --help' for more information." >&2;}
22042 { (exit 1); exit 1; }; };;
22043 --help | --hel | -h )
22044 echo "$ac_cs_usage"; exit 0 ;;
22045 --debug | --d* | -d )
22047 --file | --fil | --fi | --f )
22049 CONFIG_FILES="$CONFIG_FILES $1"
22050 ac_need_defaults=false;;
22051 --header | --heade | --head | --hea )
22053 CONFIG_HEADERS="$CONFIG_HEADERS $1"
22054 ac_need_defaults=false;;
22056 # This is an error.
22057 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22058 Try \`$0 --help' for more information." >&5
22059 echo "$as_me: error: unrecognized option: $1
22060 Try \`$0 --help' for more information." >&2;}
22061 { (exit 1); exit 1; }; } ;;
22063 *) ac_config_targets="$ac_config_targets $1" ;;
22075 cat >>$CONFIG_STATUS <<\_ACEOF
22076 for ac_config_target in $ac_config_targets
22078 case "$ac_config_target" in
22079 # Handling of arguments.
22080 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22081 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22084 { (exit 1); exit 1; }; };;
22088 # If the user did not use the arguments to specify the items to instantiate,
22089 # then the envvar interface is used. Set only those that are not.
22090 # We use the long form for the default assignment because of an extremely
22091 # bizarre bug on SunOS 4.1.3.
22092 if $ac_need_defaults; then
22093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22097 # Create a temporary directory, and hook for its removal unless debugging.
22100 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22101 trap '{ (exit 1); exit 1; }' 1 2 13 15
22104 # Create a (secure) tmp directory for tmp files.
22107 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
22108 test -n "$tmp" && test -d "$tmp"
22111 tmp=$TMPDIR/cs$$-$RANDOM
22112 (umask 077 && mkdir $tmp)
22115 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
22116 { (exit 1); exit 1; }
22121 cat >>$CONFIG_STATUS <<_ACEOF
22124 # CONFIG_FILES section.
22127 # No need to generate the scripts if there are no CONFIG_FILES.
22128 # This happens for instance when ./config.status config.h
22129 if test -n "\$CONFIG_FILES"; then
22130 # Protect against being on the right side of a sed subst in config.status.
22131 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22132 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22133 s,@SHELL@,$SHELL,;t t
22134 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22135 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22136 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22137 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22138 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22139 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22140 s,@exec_prefix@,$exec_prefix,;t t
22141 s,@prefix@,$prefix,;t t
22142 s,@program_transform_name@,$program_transform_name,;t t
22143 s,@bindir@,$bindir,;t t
22144 s,@sbindir@,$sbindir,;t t
22145 s,@libexecdir@,$libexecdir,;t t
22146 s,@datadir@,$datadir,;t t
22147 s,@sysconfdir@,$sysconfdir,;t t
22148 s,@sharedstatedir@,$sharedstatedir,;t t
22149 s,@localstatedir@,$localstatedir,;t t
22150 s,@libdir@,$libdir,;t t
22151 s,@includedir@,$includedir,;t t
22152 s,@oldincludedir@,$oldincludedir,;t t
22153 s,@infodir@,$infodir,;t t
22154 s,@mandir@,$mandir,;t t
22155 s,@build_alias@,$build_alias,;t t
22156 s,@host_alias@,$host_alias,;t t
22157 s,@target_alias@,$target_alias,;t t
22158 s,@DEFS@,$DEFS,;t t
22159 s,@ECHO_C@,$ECHO_C,;t t
22160 s,@ECHO_N@,$ECHO_N,;t t
22161 s,@ECHO_T@,$ECHO_T,;t t
22162 s,@LIBS@,$LIBS,;t t
22163 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22164 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22165 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22166 s,@build@,$build,;t t
22167 s,@build_cpu@,$build_cpu,;t t
22168 s,@build_vendor@,$build_vendor,;t t
22169 s,@build_os@,$build_os,;t t
22170 s,@host@,$host,;t t
22171 s,@host_cpu@,$host_cpu,;t t
22172 s,@host_vendor@,$host_vendor,;t t
22173 s,@host_os@,$host_os,;t t
22174 s,@target@,$target,;t t
22175 s,@target_cpu@,$target_cpu,;t t
22176 s,@target_vendor@,$target_vendor,;t t
22177 s,@target_os@,$target_os,;t t
22179 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22180 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22181 s,@ARCH@,$ARCH,;t t
22183 s,@CXXFLAGS@,$CXXFLAGS,;t t
22184 s,@LDFLAGS@,$LDFLAGS,;t t
22185 s,@CPPFLAGS@,$CPPFLAGS,;t t
22186 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22187 s,@EXEEXT@,$EXEEXT,;t t
22188 s,@OBJEXT@,$OBJEXT,;t t
22190 s,@CFLAGS@,$CFLAGS,;t t
22191 s,@ac_ct_CC@,$ac_ct_CC,;t t
22193 s,@ifGNUmake@,$ifGNUmake,;t t
22195 s,@LEXLIB@,$LEXLIB,;t t
22196 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22197 s,@YACC@,$YACC,;t t
22198 s,@EGREP@,$EGREP,;t t
22199 s,@LN_S@,$LN_S,;t t
22200 s,@ECHO@,$ECHO,;t t
22202 s,@ac_ct_AR@,$ac_ct_AR,;t t
22203 s,@RANLIB@,$RANLIB,;t t
22204 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22205 s,@STRIP@,$STRIP,;t t
22206 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22207 s,@CXXCPP@,$CXXCPP,;t t
22209 s,@FFLAGS@,$FFLAGS,;t t
22210 s,@ac_ct_F77@,$ac_ct_F77,;t t
22211 s,@LIBTOOL@,$LIBTOOL,;t t
22214 s,@MKDIR@,$MKDIR,;t t
22215 s,@DATE@,$DATE,;t t
22218 s,@ETAGS@,$ETAGS,;t t
22219 s,@PURIFY@,$PURIFY,;t t
22220 s,@ALLOCA@,$ALLOCA,;t t
22221 s,@LIBOBJS@,$LIBOBJS,;t t
22222 s,@MMAP_FILE@,$MMAP_FILE,;t t
22223 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
22224 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22225 s,@USE_SPEC@,$USE_SPEC,;t t
22228 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22230 s,@PAPIDIR@,$PAPIDIR,;t t
22231 s,@OBJROOT@,$OBJROOT,;t t
22236 cat >>$CONFIG_STATUS <<\_ACEOF
22237 # Split the substitutions into bite-sized pieces for seds with
22238 # small command number limits, like on Digital OSF/1 and HP-UX.
22239 ac_max_sed_lines=48
22240 ac_sed_frag=1 # Number of current file.
22241 ac_beg=1 # First line for current file.
22242 ac_end=$ac_max_sed_lines # Line after last line for current file.
22245 while $ac_more_lines; do
22246 if test $ac_beg -gt 1; then
22247 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22249 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22251 if test ! -s $tmp/subs.frag; then
22252 ac_more_lines=false
22254 # The purpose of the label and of the branching condition is to
22255 # speed up the sed processing (if there are no `@' at all, there
22256 # is no need to browse any of the substitutions).
22257 # These are the two extra sed commands mentioned above.
22259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22260 if test -z "$ac_sed_cmds"; then
22261 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22263 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22265 ac_sed_frag=`expr $ac_sed_frag + 1`
22267 ac_end=`expr $ac_end + $ac_max_sed_lines`
22270 if test -z "$ac_sed_cmds"; then
22273 fi # test -n "$CONFIG_FILES"
22276 cat >>$CONFIG_STATUS <<\_ACEOF
22277 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22278 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22280 - | *:- | *:-:* ) # input from stdin
22282 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22284 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22285 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22286 * ) ac_file_in=$ac_file.in ;;
22289 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22290 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22292 X"$ac_file" : 'X\(//\)[^/]' \| \
22293 X"$ac_file" : 'X\(//\)$' \| \
22294 X"$ac_file" : 'X\(/\)' \| \
22295 . : '\(.\)' 2>/dev/null ||
22297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22299 /^X\(\/\/\)$/{ s//\1/; q; }
22300 /^X\(\/\).*/{ s//\1/; q; }
22302 { case "$ac_dir" in
22303 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22307 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22308 case $as_mkdir_dir in
22309 # Skip DOS drivespec
22310 ?:) as_incr_dir=$as_mkdir_dir ;;
22312 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22313 test -d "$as_incr_dir" ||
22314 mkdir "$as_incr_dir" ||
22315 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
22316 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
22317 { (exit 1); exit 1; }; }
22324 if test "$ac_dir" != .; then
22325 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22326 # A "../" for each directory in $ac_dir_suffix.
22327 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22329 ac_dir_suffix= ac_top_builddir=
22333 .) # No --srcdir option. We are building in place.
22335 if test -z "$ac_top_builddir"; then
22338 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22340 [\\/]* | ?:[\\/]* ) # Absolute path.
22341 ac_srcdir=$srcdir$ac_dir_suffix;
22342 ac_top_srcdir=$srcdir ;;
22343 *) # Relative path.
22344 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22345 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22347 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22349 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22350 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
22351 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22352 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22357 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22360 if test x"$ac_file" != x-; then
22361 { echo "$as_me:$LINENO: creating $ac_file" >&5
22362 echo "$as_me: creating $ac_file" >&6;}
22365 # Let's still pretend it is `configure' which instantiates (i.e., don't
22366 # use $as_me), people would be surprised to read:
22367 # /* config.h. Generated by config.status. */
22368 if test x"$ac_file" = x-; then
22371 configure_input="$ac_file. "
22373 configure_input=$configure_input"Generated from `echo $ac_file_in |
22374 sed 's,.*/,,'` by configure."
22376 # First look for the input files in the build tree, otherwise in the
22378 ac_file_inputs=`IFS=:
22379 for f in $ac_file_in; do
22381 -) echo $tmp/stdin ;;
22383 # Absolute (can't be DOS-style, as IFS=:)
22384 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22385 echo "$as_me: error: cannot find input file: $f" >&2;}
22386 { (exit 1); exit 1; }; }
22389 if test -f "$f"; then
22392 elif test -f "$srcdir/$f"; then
22397 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22398 echo "$as_me: error: cannot find input file: $f" >&2;}
22399 { (exit 1); exit 1; }; }
22402 done` || { (exit 1); exit 1; }
22404 cat >>$CONFIG_STATUS <<_ACEOF
22408 cat >>$CONFIG_STATUS <<\_ACEOF
22410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22411 s,@configure_input@,$configure_input,;t t
22412 s,@srcdir@,$ac_srcdir,;t t
22413 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22414 s,@top_srcdir@,$ac_top_srcdir,;t t
22415 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22416 s,@builddir@,$ac_builddir,;t t
22417 s,@abs_builddir@,$ac_abs_builddir,;t t
22418 s,@top_builddir@,$ac_top_builddir,;t t
22419 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22420 s,@INSTALL@,$ac_INSTALL,;t t
22421 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22423 if test x"$ac_file" != x-; then
22424 mv $tmp/out $ac_file
22432 cat >>$CONFIG_STATUS <<\_ACEOF
22435 # CONFIG_HEADER section.
22438 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22439 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22441 # ac_d sets the value in "#define NAME VALUE" lines.
22442 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22443 ac_dB='[ ].*$,\1#\2'
22446 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22447 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22448 ac_uB='$,\1#\2define\3'
22452 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22455 - | *:- | *:-:* ) # input from stdin
22457 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22459 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22461 * ) ac_file_in=$ac_file.in ;;
22464 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22465 echo "$as_me: creating $ac_file" >&6;}
22467 # First look for the input files in the build tree, otherwise in the
22469 ac_file_inputs=`IFS=:
22470 for f in $ac_file_in; do
22472 -) echo $tmp/stdin ;;
22474 # Absolute (can't be DOS-style, as IFS=:)
22475 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22476 echo "$as_me: error: cannot find input file: $f" >&2;}
22477 { (exit 1); exit 1; }; }
22480 if test -f "$f"; then
22483 elif test -f "$srcdir/$f"; then
22488 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22489 echo "$as_me: error: cannot find input file: $f" >&2;}
22490 { (exit 1); exit 1; }; }
22493 done` || { (exit 1); exit 1; }
22494 # Remove the trailing spaces.
22495 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22499 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22500 # `conftest.undefs', that substitutes the proper values into
22501 # config.h.in to produce config.h. The first handles `#define'
22502 # templates, and the second `#undef' templates.
22503 # And first: Protect against being on the right side of a sed subst in
22504 # config.status. Protect against being in an unquoted here document
22505 # in config.status.
22506 rm -f conftest.defines conftest.undefs
22507 # Using a here document instead of a string reduces the quoting nightmare.
22508 # Putting comments in sed scripts is not portable.
22510 # `end' is used to avoid that the second main sed command (meant for
22511 # 0-ary CPP macros) applies to n-ary macro definitions.
22512 # See the Autoconf documentation for `clear'.
22513 cat >confdef2sed.sed <<\_ACEOF
22518 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22520 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22523 # If some macros were called several times there might be several times
22524 # the same #defines, which is useless. Nevertheless, we may not want to
22525 # sort them, since we want the *last* AC-DEFINE to be honored.
22526 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22527 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22528 rm -f confdef2sed.sed
22530 # This sed command replaces #undef with comments. This is necessary, for
22531 # example, in the case of _POSIX_SOURCE, which is predefined and required
22532 # on some systems where configure will not decide to define it.
22533 cat >>conftest.undefs <<\_ACEOF
22534 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22537 # Break up conftest.defines because some shells have a limit on the size
22538 # of here documents, and old seds have small limits too (100 cmds).
22539 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22540 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22541 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22542 echo ' :' >>$CONFIG_STATUS
22543 rm -f conftest.tail
22544 while grep . conftest.defines >/dev/null
22546 # Write a limited-size here document to $tmp/defines.sed.
22547 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22548 # Speed up: don't consider the non `#define' lines.
22549 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22550 # Work around the forget-to-reset-the-flag bug.
22551 echo 't clr' >>$CONFIG_STATUS
22552 echo ': clr' >>$CONFIG_STATUS
22553 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22555 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22557 mv $tmp/out $tmp/in
22559 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22560 rm -f conftest.defines
22561 mv conftest.tail conftest.defines
22563 rm -f conftest.defines
22564 echo ' fi # egrep' >>$CONFIG_STATUS
22565 echo >>$CONFIG_STATUS
22567 # Break up conftest.undefs because some shells have a limit on the size
22568 # of here documents, and old seds have small limits too (100 cmds).
22569 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22570 rm -f conftest.tail
22571 while grep . conftest.undefs >/dev/null
22573 # Write a limited-size here document to $tmp/undefs.sed.
22574 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22575 # Speed up: don't consider the non `#undef'
22576 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22577 # Work around the forget-to-reset-the-flag bug.
22578 echo 't clr' >>$CONFIG_STATUS
22579 echo ': clr' >>$CONFIG_STATUS
22580 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22582 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22584 mv $tmp/out $tmp/in
22586 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22587 rm -f conftest.undefs
22588 mv conftest.tail conftest.undefs
22590 rm -f conftest.undefs
22592 cat >>$CONFIG_STATUS <<\_ACEOF
22593 # Let's still pretend it is `configure' which instantiates (i.e., don't
22594 # use $as_me), people would be surprised to read:
22595 # /* config.h. Generated by config.status. */
22596 if test x"$ac_file" = x-; then
22597 echo "/* Generated by configure. */" >$tmp/config.h
22599 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22601 cat $tmp/in >>$tmp/config.h
22603 if test x"$ac_file" != x-; then
22604 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
22605 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22606 echo "$as_me: $ac_file is unchanged" >&6;}
22608 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22610 X"$ac_file" : 'X\(//\)[^/]' \| \
22611 X"$ac_file" : 'X\(//\)$' \| \
22612 X"$ac_file" : 'X\(/\)' \| \
22613 . : '\(.\)' 2>/dev/null ||
22615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22617 /^X\(\/\/\)$/{ s//\1/; q; }
22618 /^X\(\/\).*/{ s//\1/; q; }
22620 { case "$ac_dir" in
22621 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22625 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22626 case $as_mkdir_dir in
22627 # Skip DOS drivespec
22628 ?:) as_incr_dir=$as_mkdir_dir ;;
22630 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22631 test -d "$as_incr_dir" ||
22632 mkdir "$as_incr_dir" ||
22633 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
22634 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
22635 { (exit 1); exit 1; }; }
22641 mv $tmp/config.h $ac_file
22645 rm -f $tmp/config.h
22650 cat >>$CONFIG_STATUS <<\_ACEOF
22652 { (exit 0); exit 0; }
22654 chmod +x $CONFIG_STATUS
22655 ac_clean_files=$ac_clean_files_save
22658 # configure is writing to config.log, and then calls config.status.
22659 # config.status does its own redirection, appending to config.log.
22660 # Unfortunately, on DOS this fails, as config.log is still kept open
22661 # by configure, so config.status won't be able to write to it; its
22662 # output is simply discarded. So we exec the FD to /dev/null,
22663 # effectively closing config.log, so it can be properly (re)opened and
22664 # appended to by config.status. When coming back to configure, we
22665 # need to make the FD available again.
22666 if test "$no_create" != yes; then
22669 $SHELL $CONFIG_STATUS || ac_cs_success=false
22671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22672 # would make configure fail if this is the last instruction.
22673 $ac_cs_success || { (exit 1); exit 1; }