2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for libchise 0.2.0.
5 # Report bugs to <chise-en@m17n.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=${tagnames+${tagnames},}CXX
397 tagnames=${tagnames+${tagnames},}F77
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
423 PACKAGE_NAME='libchise'
424 PACKAGE_TARNAME='libchise'
425 PACKAGE_VERSION='0.2.0'
426 PACKAGE_STRING='libchise 0.2.0'
427 PACKAGE_BUGREPORT='chise-en@m17n.org'
429 ac_unique_file="chise.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA LIBOBJS LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures libchise 0.2.0 to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012 --target=TARGET configure for building compilers for TARGET [HOST]
1016 if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of libchise 0.2.0:";;
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
1031 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1035 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1036 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1037 --with-pic try to use only PIC/non-PIC objects [default=use
1040 include additional configurations [automatic]
1042 Some influential environment variables:
1043 CC C compiler command
1044 CFLAGS C compiler flags
1045 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1046 nonstandard directory <lib dir>
1047 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1048 headers in a nonstandard directory <include dir>
1050 CXX C++ compiler command
1051 CXXFLAGS C++ compiler flags
1052 CXXCPP C++ preprocessor
1053 F77 Fortran 77 compiler command
1054 FFLAGS Fortran 77 compiler flags
1056 Use these variables to override the choices made by `configure' or to help
1057 it to find libraries and programs with nonstandard names/locations.
1059 Report bugs to <chise-en@m17n.org>.
1063 if test "$ac_init_help" = "recursive"; then
1064 # If there are subdirs, report their specific --help.
1066 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1067 test -d $ac_dir || continue
1070 if test "$ac_dir" != .; then
1071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1072 # A "../" for each directory in $ac_dir_suffix.
1073 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1075 ac_dir_suffix= ac_top_builddir=
1079 .) # No --srcdir option. We are building in place.
1081 if test -z "$ac_top_builddir"; then
1084 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1086 [\\/]* | ?:[\\/]* ) # Absolute path.
1087 ac_srcdir=$srcdir$ac_dir_suffix;
1088 ac_top_srcdir=$srcdir ;;
1090 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1091 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1093 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1095 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1096 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1097 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1098 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1101 # Check for guested configure; otherwise get Cygnus style configure.
1102 if test -f $ac_srcdir/configure.gnu; then
1104 $SHELL $ac_srcdir/configure.gnu --help=recursive
1105 elif test -f $ac_srcdir/configure; then
1107 $SHELL $ac_srcdir/configure --help=recursive
1108 elif test -f $ac_srcdir/configure.ac ||
1109 test -f $ac_srcdir/configure.in; then
1111 $ac_configure --help
1113 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1119 test -n "$ac_init_help" && exit 0
1120 if $ac_init_version; then
1122 libchise configure 0.2.0
1123 generated by GNU Autoconf 2.57
1125 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1126 Free Software Foundation, Inc.
1127 This configure script is free software; the Free Software Foundation
1128 gives unlimited permission to copy, distribute and modify it.
1134 This file contains any messages produced by compilers while
1135 running configure, to aid debugging if configure makes a mistake.
1137 It was created by libchise $as_me 0.2.0, which was
1138 generated by GNU Autoconf 2.57. Invocation command line was
1149 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1150 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1151 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1152 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1153 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1155 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1156 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1158 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1159 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1160 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1161 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1162 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1163 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1164 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1172 test -z "$as_dir" && as_dir=.
1173 echo "PATH: $as_dir"
1188 # Keep a trace of the command line.
1189 # Strip out --no-create and --no-recursion so they do not pile up.
1190 # Strip out --silent because we don't want to record it for future runs.
1191 # Also quote any args containing shell meta-characters.
1192 # Make two passes to allow for proper duplicate-argument suppression.
1197 ac_must_keep_next=false
1203 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1207 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1208 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1211 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1213 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1214 if test $ac_must_keep_next = true; then
1215 ac_must_keep_next=false # Got value, back to normal.
1218 *=* | --config-cache | -C | -disable-* | --disable-* \
1219 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1220 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1221 | -with-* | --with-* | -without-* | --without-* | --x)
1222 case "$ac_configure_args0 " in
1223 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1226 -* ) ac_must_keep_next=true ;;
1229 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1230 # Get rid of the leading space.
1236 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1237 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1239 # When interrupted or exit'd, cleanup temporary files, and complete
1240 # config.log. We remove comments because anyway the quotes in there
1241 # would cause problems or look ugly.
1242 # WARNING: Be sure not to use single quotes in there, as some shells,
1243 # such as our DU 5.0 friend, will then `close' the trap.
1244 trap 'exit_status=$?
1245 # Save into config.log some information that might help in debugging.
1250 ## ---------------- ##
1251 ## Cache variables. ##
1252 ## ---------------- ##
1255 # The following way of writing the cache mishandles newlines in values,
1258 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1261 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1266 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1273 ## ----------------- ##
1274 ## Output variables. ##
1275 ## ----------------- ##
1278 for ac_var in $ac_subst_vars
1280 eval ac_val=$`echo $ac_var`
1281 echo "$ac_var='"'"'$ac_val'"'"'"
1285 if test -n "$ac_subst_files"; then
1292 for ac_var in $ac_subst_files
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1300 if test -s confdefs.h; then
1307 sed "/^$/d" confdefs.h | sort
1310 test "$ac_signal" != 0 &&
1311 echo "$as_me: caught signal $ac_signal"
1312 echo "$as_me: exit $exit_status"
1314 rm -f core core.* *.core &&
1315 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1318 for ac_signal in 1 2 13 15; do
1319 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1323 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1324 rm -rf conftest* confdefs.h
1325 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1328 # Predefined preprocessor variables.
1330 cat >>confdefs.h <<_ACEOF
1331 #define PACKAGE_NAME "$PACKAGE_NAME"
1335 cat >>confdefs.h <<_ACEOF
1336 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_STRING "$PACKAGE_STRING"
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1355 # Let the site file select an alternate cache file if it wants to.
1356 # Prefer explicitly selected file to automatically selected ones.
1357 if test -z "$CONFIG_SITE"; then
1358 if test "x$prefix" != xNONE; then
1359 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1361 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1364 for ac_site_file in $CONFIG_SITE; do
1365 if test -r "$ac_site_file"; then
1366 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1367 echo "$as_me: loading site script $ac_site_file" >&6;}
1368 sed 's/^/| /' "$ac_site_file" >&5
1373 if test -r "$cache_file"; then
1374 # Some versions of bash will fail to source /dev/null (special
1375 # files actually), so we avoid doing that.
1376 if test -f "$cache_file"; then
1377 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1378 echo "$as_me: loading cache $cache_file" >&6;}
1380 [\\/]* | ?:[\\/]* ) . $cache_file;;
1381 *) . ./$cache_file;;
1385 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1386 echo "$as_me: creating cache $cache_file" >&6;}
1390 # Check that the precious variables saved in the cache have kept the same
1392 ac_cache_corrupted=false
1393 for ac_var in `(set) 2>&1 |
1394 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1395 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1396 eval ac_new_set=\$ac_env_${ac_var}_set
1397 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1398 eval ac_new_val="\$ac_env_${ac_var}_value"
1399 case $ac_old_set,$ac_new_set in
1401 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1402 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1403 ac_cache_corrupted=: ;;
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1406 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1410 if test "x$ac_old_val" != "x$ac_new_val"; then
1411 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1412 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1413 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1414 echo "$as_me: former value: $ac_old_val" >&2;}
1415 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1416 echo "$as_me: current value: $ac_new_val" >&2;}
1417 ac_cache_corrupted=:
1420 # Pass precious variables to config.status.
1421 if test "$ac_new_set" = set; then
1423 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1424 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1425 *) ac_arg=$ac_var=$ac_new_val ;;
1427 case " $ac_configure_args " in
1428 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1429 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1433 if $ac_cache_corrupted; then
1434 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1435 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1436 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1437 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1438 { (exit 1); exit 1; }; }
1442 ac_cpp='$CPP $CPPFLAGS'
1443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1474 ac_config_headers="$ac_config_headers config.h"
1478 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1479 if test -f $ac_dir/install-sh; then
1481 ac_install_sh="$ac_aux_dir/install-sh -c"
1483 elif test -f $ac_dir/install.sh; then
1485 ac_install_sh="$ac_aux_dir/install.sh -c"
1487 elif test -f $ac_dir/shtool; then
1489 ac_install_sh="$ac_aux_dir/shtool install -c"
1493 if test -z "$ac_aux_dir"; then
1494 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1495 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1496 { (exit 1); exit 1; }; }
1498 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1499 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1500 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1502 # Make sure we can run config.sub.
1503 $ac_config_sub sun4 >/dev/null 2>&1 ||
1504 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1505 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1506 { (exit 1); exit 1; }; }
1508 echo "$as_me:$LINENO: checking build system type" >&5
1509 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1510 if test "${ac_cv_build+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 ac_cv_build_alias=$build_alias
1514 test -z "$ac_cv_build_alias" &&
1515 ac_cv_build_alias=`$ac_config_guess`
1516 test -z "$ac_cv_build_alias" &&
1517 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1518 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1519 { (exit 1); exit 1; }; }
1520 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1522 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1523 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1527 echo "${ECHO_T}$ac_cv_build" >&6
1529 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534 echo "$as_me:$LINENO: checking host system type" >&5
1535 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536 if test "${ac_cv_host+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 ac_cv_host_alias=$host_alias
1540 test -z "$ac_cv_host_alias" &&
1541 ac_cv_host_alias=$ac_cv_build_alias
1542 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1543 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545 { (exit 1); exit 1; }; }
1548 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1549 echo "${ECHO_T}$ac_cv_host" >&6
1551 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556 echo "$as_me:$LINENO: checking target system type" >&5
1557 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558 if test "${ac_cv_target+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 ac_cv_target_alias=$target_alias
1562 test "x$ac_cv_target_alias" = "x" &&
1563 ac_cv_target_alias=$ac_cv_host_alias
1564 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1570 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1571 echo "${ECHO_T}$ac_cv_target" >&6
1572 target=$ac_cv_target
1573 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578 # The aliases save the names the user supplied, while $host etc.
1579 # will get canonicalized.
1580 test -n "$target_alias" &&
1581 test "$program_prefix$program_suffix$program_transform_name" = \
1583 program_prefix=${target_alias}-
1585 # Checks for programs.
1587 ac_cpp='$CPP $CPPFLAGS'
1588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1591 if test -n "$ac_tool_prefix"; then
1592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 if test -n "$CC"; then
1620 echo "$as_me:$LINENO: result: $CC" >&5
1621 echo "${ECHO_T}$CC" >&6
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1628 if test -z "$ac_cv_prog_CC"; then
1630 # Extract the first word of "gcc", so it can be a program name with args.
1631 set dummy gcc; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 if test -n "$ac_ct_CC"; then
1638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 test -z "$as_dir" && as_dir=.
1645 for ac_exec_ext in '' $ac_executable_extensions; do
1646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1647 ac_cv_prog_ac_ct_CC="gcc"
1648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1657 if test -n "$ac_ct_CC"; then
1658 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1659 echo "${ECHO_T}$ac_ct_CC" >&6
1661 echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1670 if test -z "$CC"; then
1671 if test -n "$ac_tool_prefix"; then
1672 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1673 set dummy ${ac_tool_prefix}cc; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_CC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 if test -n "$CC"; then
1680 ac_cv_prog_CC="$CC" # Let the user override the test.
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_CC="${ac_tool_prefix}cc"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 if test -n "$CC"; then
1700 echo "$as_me:$LINENO: result: $CC" >&5
1701 echo "${ECHO_T}$CC" >&6
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1708 if test -z "$ac_cv_prog_CC"; then
1710 # Extract the first word of "cc", so it can be a program name with args.
1711 set dummy cc; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 if test -n "$ac_ct_CC"; then
1718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_ac_ct_CC="cc"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1737 if test -n "$ac_ct_CC"; then
1738 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1739 echo "${ECHO_T}$ac_ct_CC" >&6
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1751 if test -z "$CC"; then
1752 # Extract the first word of "cc", so it can be a program name with args.
1753 set dummy cc; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_CC+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 if test -n "$CC"; then
1760 ac_cv_prog_CC="$CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1771 ac_prog_rejected=yes
1775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 if test $ac_prog_rejected = yes; then
1782 # We found a bogon in the path, so make sure we never use it.
1783 set dummy $ac_cv_prog_CC
1785 if test $# != 0; then
1786 # We chose a different compiler from the bogus one.
1787 # However, it has the same basename, so the bogon will be chosen
1788 # first if we set CC to just the basename; use the full file name.
1790 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1796 if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1805 if test -z "$CC"; then
1806 if test -n "$ac_tool_prefix"; then
1809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_CC+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 if test -n "$CC"; then
1817 ac_cv_prog_CC="$CC" # Let the user override the test.
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 if test -n "$CC"; then
1837 echo "$as_me:$LINENO: result: $CC" >&5
1838 echo "${ECHO_T}$CC" >&6
1840 echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1844 test -n "$CC" && break
1847 if test -z "$CC"; then
1851 # Extract the first word of "$ac_prog", so it can be a program name with args.
1852 set dummy $ac_prog; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 if test -n "$ac_ct_CC"; then
1859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_ac_ct_CC="$ac_prog"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1878 if test -n "$ac_ct_CC"; then
1879 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1880 echo "${ECHO_T}$ac_ct_CC" >&6
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1886 test -n "$ac_ct_CC" && break
1895 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: no acceptable C compiler found in \$PATH
1898 See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1901 # Provide some information about the compiler.
1902 echo "$as_me:$LINENO:" \
1903 "checking for C compiler version" >&5
1904 ac_compiler=`set X $ac_compile; echo $2`
1905 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1906 (eval $ac_compiler --version </dev/null >&5) 2>&5
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }
1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1911 (eval $ac_compiler -v </dev/null >&5) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }
1915 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1916 (eval $ac_compiler -V </dev/null >&5) 2>&5
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }
1921 cat >conftest.$ac_ext <<_ACEOF
1922 #line $LINENO "configure"
1925 cat confdefs.h >>conftest.$ac_ext
1926 cat >>conftest.$ac_ext <<_ACEOF
1927 /* end confdefs.h. */
1937 ac_clean_files_save=$ac_clean_files
1938 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1939 # Try to create an executable without -o first, disregard a.out.
1940 # It will help us diagnose broken compilers, and finding out an intuition
1942 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1943 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1944 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1945 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1946 (eval $ac_link_default) 2>&5
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; then
1950 # Find the output, starting from the most likely. This scheme is
1951 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1954 # Be careful to initialize this variable, since it used to be cached.
1955 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1957 # b.out is created by i960 compilers.
1958 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1960 test -f "$ac_file" || continue
1962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1965 # This is the source file.
1968 # We found the default executable, but exeext='' is most
1972 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1973 # FIXME: I believe we export ac_cv_exeext for Libtool,
1974 # but it would be cool to find out if it's true. Does anybody
1975 # maintain Libtool? --akim.
1983 echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1986 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1987 See \`config.log' for more details." >&5
1988 echo "$as_me: error: C compiler cannot create executables
1989 See \`config.log' for more details." >&2;}
1990 { (exit 77); exit 77; }; }
1993 ac_exeext=$ac_cv_exeext
1994 echo "$as_me:$LINENO: result: $ac_file" >&5
1995 echo "${ECHO_T}$ac_file" >&6
1997 # Check the compiler produces executables we can run. If not, either
1998 # the compiler is broken, or we cross compile.
1999 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2000 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2001 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2002 # If not cross compiling, check that we can run a simple program.
2003 if test "$cross_compiling" != yes; then
2004 if { ac_try='./$ac_file'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2012 if test "$cross_compiling" = maybe; then
2015 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2016 If you meant to cross compile, use \`--host'.
2017 See \`config.log' for more details." >&5
2018 echo "$as_me: error: cannot run C compiled programs.
2019 If you meant to cross compile, use \`--host'.
2020 See \`config.log' for more details." >&2;}
2021 { (exit 1); exit 1; }; }
2025 echo "$as_me:$LINENO: result: yes" >&5
2026 echo "${ECHO_T}yes" >&6
2028 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2029 ac_clean_files=$ac_clean_files_save
2030 # Check the compiler produces executables we can run. If not, either
2031 # the compiler is broken, or we cross compile.
2032 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2034 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2035 echo "${ECHO_T}$cross_compiling" >&6
2037 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2040 (eval $ac_link) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; then
2044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2045 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2046 # work properly (i.e., refer to `conftest.exe'), while it won't with
2048 for ac_file in conftest.exe conftest conftest.*; do
2049 test -f "$ac_file" || continue
2051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2062 See \`config.log' for more details." >&2;}
2063 { (exit 1); exit 1; }; }
2066 rm -f conftest$ac_cv_exeext
2067 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2068 echo "${ECHO_T}$ac_cv_exeext" >&6
2070 rm -f conftest.$ac_ext
2071 EXEEXT=$ac_cv_exeext
2073 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2074 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2075 if test "${ac_cv_objext+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 cat >conftest.$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2082 cat confdefs.h >>conftest.$ac_ext
2083 cat >>conftest.$ac_ext <<_ACEOF
2084 /* end confdefs.h. */
2094 rm -f conftest.o conftest.obj
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; then
2100 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2103 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2111 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2114 See \`config.log' for more details." >&2;}
2115 { (exit 1); exit 1; }; }
2118 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2120 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2121 echo "${ECHO_T}$ac_cv_objext" >&6
2122 OBJEXT=$ac_cv_objext
2124 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2125 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2126 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); } &&
2154 { ac_try='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2167 rm -f conftest.$ac_objext conftest.$ac_ext
2168 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2171 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2172 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2173 GCC=`test $ac_compiler_gnu = yes && echo yes`
2174 ac_test_CFLAGS=${CFLAGS+set}
2175 ac_save_CFLAGS=$CFLAGS
2177 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2178 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2179 if test "${ac_cv_prog_cc_g+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 cat >conftest.$ac_ext <<_ACEOF
2183 #line $LINENO "configure"
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -s conftest.$ac_objext'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2217 rm -f conftest.$ac_objext conftest.$ac_ext
2219 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2220 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2221 if test "$ac_test_CFLAGS" = set; then
2222 CFLAGS=$ac_save_CFLAGS
2223 elif test $ac_cv_prog_cc_g = yes; then
2224 if test "$GCC" = yes; then
2230 if test "$GCC" = yes; then
2236 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2237 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2238 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 ac_cv_prog_cc_stdc=no
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #line $LINENO "configure"
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2252 #include <sys/types.h>
2253 #include <sys/stat.h>
2254 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2255 struct buf { int x; };
2256 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2257 static char *e (p, i)
2263 static char *f (char * (*g) (char **, int), char **p, ...)
2268 s = g (p, va_arg (v,int));
2272 int test (int i, double x);
2273 struct s1 {int (*f) (int a);};
2274 struct s2 {int (*f) (double a);};
2275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2286 # Don't try gcc -ansi; that turns off useful extensions and
2287 # breaks some systems' header files.
2288 # AIX -qlanglvl=ansi
2289 # Ultrix and OSF/1 -std1
2290 # HP-UX 10.20 and later -Ae
2291 # HP-UX older versions -Aa -D_HPUX_SOURCE
2292 # SVR4 -Xc -D__EXTENSIONS__
2293 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2295 CC="$ac_save_CC $ac_arg"
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 ac_cv_prog_cc_stdc=$ac_arg
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.$ac_objext
2317 rm -f conftest.$ac_ext conftest.$ac_objext
2322 case "x$ac_cv_prog_cc_stdc" in
2324 echo "$as_me:$LINENO: result: none needed" >&5
2325 echo "${ECHO_T}none needed" >&6 ;;
2327 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2329 CC="$CC $ac_cv_prog_cc_stdc" ;;
2332 # Some people use a C++ compiler to compile C. Since we use `exit',
2333 # in C++ we need to declare it. In case someone uses the same compiler
2334 # for both compiling C and C++ we need to have the C++ compiler decide
2335 # the declaration of exit, since it's the most demanding environment.
2336 cat >conftest.$ac_ext <<_ACEOF
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
2353 for ac_declaration in \
2355 '#include <stdlib.h>' \
2356 'extern "C" void std::exit (int) throw (); using std::exit;' \
2357 'extern "C" void std::exit (int); using std::exit;' \
2358 'extern "C" void exit (int) throw ();' \
2359 'extern "C" void exit (int);' \
2362 cat >conftest.$ac_ext <<_ACEOF
2363 #line $LINENO "configure"
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2398 rm -f conftest.$ac_objext conftest.$ac_ext
2399 cat >conftest.$ac_ext <<_ACEOF
2400 #line $LINENO "configure"
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -s conftest.$ac_objext'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2429 echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2433 rm -f conftest.$ac_objext conftest.$ac_ext
2436 if test -n "$ac_declaration"; then
2437 echo '#ifdef __cplusplus' >>confdefs.h
2438 echo $ac_declaration >>confdefs.h
2439 echo '#endif' >>confdefs.h
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f conftest.$ac_objext conftest.$ac_ext
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 # Check whether --enable-shared or --disable-shared was given.
2455 if test "${enable_shared+set}" = set; then
2456 enableval="$enable_shared"
2457 p=${PACKAGE-default}
2459 yes) enable_shared=yes ;;
2460 no) enable_shared=no ;;
2463 # Look at the argument we got. We use all the common list separators.
2464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2465 for pkg in $enableval; do
2467 if test "X$pkg" = "X$p"; then
2478 # Check whether --enable-static or --disable-static was given.
2479 if test "${enable_static+set}" = set; then
2480 enableval="$enable_static"
2481 p=${PACKAGE-default}
2483 yes) enable_static=yes ;;
2484 no) enable_static=no ;;
2487 # Look at the argument we got. We use all the common list separators.
2488 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2489 for pkg in $enableval; do
2491 if test "X$pkg" = "X$p"; then
2502 # Check whether --enable-fast-install or --disable-fast-install was given.
2503 if test "${enable_fast_install+set}" = set; then
2504 enableval="$enable_fast_install"
2505 p=${PACKAGE-default}
2507 yes) enable_fast_install=yes ;;
2508 no) enable_fast_install=no ;;
2510 enable_fast_install=no
2511 # Look at the argument we got. We use all the common list separators.
2512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2513 for pkg in $enableval; do
2515 if test "X$pkg" = "X$p"; then
2516 enable_fast_install=yes
2523 enable_fast_install=yes
2526 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2527 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2528 if test "${lt_cv_path_SED+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 # Loop through the user's path and test for sed and gsed.
2532 # Then use that list of sed's as ones to test for truncation.
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 test -z "$as_dir" && as_dir=.
2538 for lt_ac_prog in sed gsed; do
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2541 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2548 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2549 # along with /bin/sed that truncates output.
2550 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2551 test ! -f $lt_ac_sed && break
2552 cat /dev/null > conftest.in
2554 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2555 # Check for GNU sed and select it if it is found.
2556 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2557 lt_cv_path_SED=$lt_ac_sed
2561 cat conftest.in conftest.in >conftest.tmp
2562 mv conftest.tmp conftest.in
2563 cp conftest.in conftest.nl
2565 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2566 cmp -s conftest.out conftest.nl || break
2567 # 10000 chars as input seems more than enough
2568 test $lt_ac_count -gt 10 && break
2569 lt_ac_count=`expr $lt_ac_count + 1`
2570 if test $lt_ac_count -gt $lt_ac_max; then
2571 lt_ac_max=$lt_ac_count
2572 lt_cv_path_SED=$lt_ac_sed
2580 echo "$as_me:$LINENO: result: $SED" >&5
2581 echo "${ECHO_T}$SED" >&6
2583 echo "$as_me:$LINENO: checking for egrep" >&5
2584 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2585 if test "${ac_cv_prog_egrep+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2589 then ac_cv_prog_egrep='grep -E'
2590 else ac_cv_prog_egrep='egrep'
2593 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2594 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2595 EGREP=$ac_cv_prog_egrep
2599 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2600 if test "${with_gnu_ld+set}" = set; then
2601 withval="$with_gnu_ld"
2602 test "$withval" = no || with_gnu_ld=yes
2607 if test "$GCC" = yes; then
2608 # Check if gcc -print-prog-name=ld gives a path.
2609 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2610 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2613 # gcc leaves a trailing carriage return which upsets mingw
2614 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2616 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2619 # Accept absolute paths.
2621 re_direlt='/[^/][^/]*/\.\./'
2622 # Canonicalize the pathname of ld
2623 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2624 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2625 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2627 test -z "$LD" && LD="$ac_prog"
2630 # If it fails, then pretend we aren't using GCC.
2634 # If it is relative, then search for the first ld in PATH.
2638 elif test "$with_gnu_ld" = yes; then
2639 echo "$as_me:$LINENO: checking for GNU ld" >&5
2640 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2642 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2643 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2645 if test "${lt_cv_path_LD+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -z "$LD"; then
2649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2650 for ac_dir in $PATH; do
2652 test -z "$ac_dir" && ac_dir=.
2653 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2654 lt_cv_path_LD="$ac_dir/$ac_prog"
2655 # Check to see if the program is GNU ld. I'd rather use --version,
2656 # but apparently some GNU ld's only accept -v.
2657 # Break only if it was the GNU/non-GNU ld that we prefer.
2658 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2659 *GNU* | *'with BFD'*)
2660 test "$with_gnu_ld" != no && break
2663 test "$with_gnu_ld" != yes && break
2670 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2675 if test -n "$LD"; then
2676 echo "$as_me:$LINENO: result: $LD" >&5
2677 echo "${ECHO_T}$LD" >&6
2679 echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6
2682 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2683 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2684 { (exit 1); exit 1; }; }
2685 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2686 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2687 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2691 case `$LD -v 2>&1 </dev/null` in
2692 *GNU* | *'with BFD'*)
2693 lt_cv_prog_gnu_ld=yes
2696 lt_cv_prog_gnu_ld=no
2700 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2701 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2702 with_gnu_ld=$lt_cv_prog_gnu_ld
2705 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2706 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2707 if test "${lt_cv_ld_reload_flag+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 lt_cv_ld_reload_flag='-r'
2712 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2713 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2714 reload_flag=$lt_cv_ld_reload_flag
2715 case $reload_flag in
2717 *) reload_flag=" $reload_flag" ;;
2719 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2721 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2722 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2723 if test "${lt_cv_path_NM+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 if test -n "$NM"; then
2727 # Let the user override the test.
2730 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2731 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2733 test -z "$ac_dir" && ac_dir=.
2734 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2735 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2736 # Check to see if the nm accepts a BSD-compat flag.
2737 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2738 # nm: unknown option "B" ignored
2739 # Tru64's nm complains that /dev/null is an invalid object file
2740 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2741 */dev/null* | *'Invalid file or object type'*)
2742 lt_cv_path_NM="$tmp_nm -B"
2746 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2748 lt_cv_path_NM="$tmp_nm -p"
2752 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2753 continue # so that we can try to find one that supports BSD flags
2760 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2763 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2764 echo "${ECHO_T}$lt_cv_path_NM" >&6
2767 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2768 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2770 if test "$LN_S" = "ln -s"; then
2771 echo "$as_me:$LINENO: result: yes" >&5
2772 echo "${ECHO_T}yes" >&6
2774 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2775 echo "${ECHO_T}no, using $LN_S" >&6
2778 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2779 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2780 if test "${lt_cv_deplibs_check_method+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 lt_cv_file_magic_cmd='$MAGIC_CMD'
2784 lt_cv_file_magic_test_file=
2785 lt_cv_deplibs_check_method='unknown'
2786 # Need to set the preceding variable on all platforms that support
2787 # interlibrary dependencies.
2788 # 'none' -- dependencies not supported.
2789 # `unknown' -- same as none, but documents that we really don't know.
2790 # 'pass_all' -- all dependencies passed with no checks.
2791 # 'test_compile' -- check by making test program.
2792 # 'file_magic [[regex]]' -- check by looking for files in library path
2793 # which responds to the $file_magic_cmd with a given extended regex.
2794 # If you have `file' or equivalent on your system and you're not sure
2795 # whether `pass_all' will *always* work, you probably want this one.
2799 lt_cv_deplibs_check_method=pass_all
2803 lt_cv_deplibs_check_method=pass_all
2807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2808 lt_cv_file_magic_cmd='/usr/bin/file -L'
2809 lt_cv_file_magic_test_file=/shlib/libc.so
2812 cygwin* | mingw* | pw32*)
2813 # win32_libid is a shell function defined in ltmain.sh
2814 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2815 lt_cv_file_magic_cmd='win32_libid'
2818 darwin* | rhapsody*)
2819 # this will be overwritten by pass_all, but leave it in just in case
2820 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2821 lt_cv_file_magic_cmd='/usr/bin/file -L'
2823 rhapsody* | darwin1.[012])
2824 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2827 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2830 lt_cv_deplibs_check_method=pass_all
2833 freebsd* | kfreebsd*-gnu)
2834 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2837 # Not sure whether the presence of OpenBSD here was a mistake.
2838 # Let's accept both of them until this is cleared up.
2839 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2840 lt_cv_file_magic_cmd=/usr/bin/file
2841 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2845 lt_cv_deplibs_check_method=pass_all
2850 lt_cv_deplibs_check_method=pass_all
2853 hpux10.20* | hpux11*)
2854 lt_cv_file_magic_cmd=/usr/bin/file
2857 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2858 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2861 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]'
2862 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2865 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2866 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2871 irix5* | irix6* | nonstopux*)
2873 irix5* | nonstopux*)
2874 # this will be overridden with pass_all, but let us keep it just in case
2875 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2879 *-32|*"-32 ") libmagic=32-bit;;
2880 *-n32|*"-n32 ") libmagic=N32;;
2881 *-64|*"-64 ") libmagic=64-bit;;
2882 *) libmagic=never-match;;
2884 # this will be overridden with pass_all, but let us keep it just in case
2885 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2888 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2889 lt_cv_deplibs_check_method=pass_all
2892 # This must be Linux ELF.
2894 # linux always uses pass_all now, this code is the old way (tm)
2896 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
2897 lt_cv_deplibs_check_method=pass_all ;;
2899 # glibc up to 2.1.1 does not perform some relocations on ARM
2900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2902 lt_cv_deplibs_check_method=pass_all
2903 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2907 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2916 lt_cv_file_magic_cmd=/usr/bin/file
2917 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2921 lt_cv_deplibs_check_method=unknown
2925 lt_cv_file_magic_cmd=/usr/bin/file
2926 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2927 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2930 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2934 osf3* | osf4* | osf5*)
2935 # this will be overridden with pass_all, but let us keep it just in case
2936 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2937 lt_cv_file_magic_test_file=/shlib/libc.so
2938 lt_cv_deplibs_check_method=pass_all
2942 lt_cv_deplibs_check_method=pass_all
2946 lt_cv_deplibs_check_method=pass_all
2947 lt_cv_file_magic_test_file=/lib/libc.so
2950 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2951 case $host_vendor in
2953 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]'
2954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2957 lt_cv_deplibs_check_method=pass_all
2960 lt_cv_file_magic_cmd='/bin/file'
2961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2964 lt_cv_file_magic_cmd='/bin/file'
2965 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2966 lt_cv_file_magic_test_file=/lib/libc.so
2969 lt_cv_deplibs_check_method=pass_all
2974 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
2975 lt_cv_deplibs_check_method=pass_all
2980 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2981 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2982 file_magic_cmd=$lt_cv_file_magic_cmd
2983 deplibs_check_method=$lt_cv_deplibs_check_method
2984 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2989 # If no C compiler was specified, use CC.
2992 # Allow CC to be a program name with arguments.
2996 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2997 if test "${enable_libtool_lock+set}" = set; then
2998 enableval="$enable_libtool_lock"
3001 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3003 # Some flags need to be propagated to the compiler or linker for good
3007 # Find out which ABI we are using.
3008 echo 'int i;' > conftest.$ac_ext
3009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; then
3014 case `/usr/bin/file conftest.$ac_objext` in
3026 # Find out which ABI we are using.
3027 echo '#line 3027 "configure"' > conftest.$ac_ext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029 (eval $ac_compile) 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; then
3033 if test "$lt_cv_prog_gnu_ld" = yes; then
3034 case `/usr/bin/file conftest.$ac_objext` in
3036 LD="${LD-ld} -melf32bsmip"
3039 LD="${LD-ld} -melf32bmipn32"
3042 LD="${LD-ld} -melf64bmip"
3046 case `/usr/bin/file conftest.$ac_objext` in
3062 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3063 # Find out which ABI we are using.
3064 echo 'int i;' > conftest.$ac_ext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066 (eval $ac_compile) 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
3070 case "`/usr/bin/file conftest.o`" in
3074 LD="${LD-ld} -m elf_i386"
3076 ppc64-*linux*|powerpc64-*linux*)
3077 LD="${LD-ld} -m elf32ppclinux"
3080 LD="${LD-ld} -m elf_s390"
3083 LD="${LD-ld} -m elf32_sparc"
3090 LD="${LD-ld} -m elf_x86_64"
3092 ppc*-*linux*|powerpc*-*linux*)
3093 LD="${LD-ld} -m elf64ppc"
3096 LD="${LD-ld} -m elf64_s390"
3099 LD="${LD-ld} -m elf64_sparc"
3109 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3110 SAVE_CFLAGS="$CFLAGS"
3111 CFLAGS="$CFLAGS -belf"
3112 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3113 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3114 if test "${lt_cv_cc_needs_belf+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 cat >conftest.$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3139 rm -f conftest.$ac_objext conftest$ac_exeext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141 (eval $ac_link) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -s conftest$ac_exeext'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 lt_cv_cc_needs_belf=yes
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 lt_cv_cc_needs_belf=no
3158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3160 ac_cpp='$CPP $CPPFLAGS'
3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3167 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3168 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3169 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3170 CFLAGS="$SAVE_CFLAGS"
3176 need_locks="$enable_libtool_lock"
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3185 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3186 # On Suns, sometimes $CPP names a directory.
3187 if test -n "$CPP" && test -d "$CPP"; then
3190 if test -z "$CPP"; then
3191 if test "${ac_cv_prog_CPP+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 # Double quotes because CPP needs to be expanded
3195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3198 for ac_c_preproc_warn_flag in '' yes
3200 # Use a header file that comes with gcc, so configuring glibc
3201 # with a fresh cross-compiler works.
3202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3203 # <limits.h> exists even on freestanding compilers.
3204 # On the NeXT, cc -E runs the code through the compiler's parser,
3205 # not just through cpp. "Syntax error" is here to catch this case.
3206 cat >conftest.$ac_ext <<_ACEOF
3207 #line $LINENO "configure"
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3214 # include <limits.h>
3216 # include <assert.h>
3220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3223 grep -v '^ *+' conftest.er1 >conftest.err
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } >/dev/null; then
3228 if test -s conftest.err; then
3229 ac_cpp_err=$ac_c_preproc_warn_flag
3236 if test -z "$ac_cpp_err"; then
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3242 # Broken: fails on valid input.
3245 rm -f conftest.err conftest.$ac_ext
3247 # OK, works on sane cases. Now check whether non-existent headers
3248 # can be detected and how.
3249 cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3256 #include <ac_nonexistent.h>
3258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3261 grep -v '^ *+' conftest.er1 >conftest.err
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } >/dev/null; then
3266 if test -s conftest.err; then
3267 ac_cpp_err=$ac_c_preproc_warn_flag
3274 if test -z "$ac_cpp_err"; then
3275 # Broken: success on invalid input.
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 # Passes both tests.
3285 rm -f conftest.err conftest.$ac_ext
3288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3289 rm -f conftest.err conftest.$ac_ext
3290 if $ac_preproc_ok; then
3302 echo "$as_me:$LINENO: result: $CPP" >&5
3303 echo "${ECHO_T}$CPP" >&6
3305 for ac_c_preproc_warn_flag in '' yes
3307 # Use a header file that comes with gcc, so configuring glibc
3308 # with a fresh cross-compiler works.
3309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3310 # <limits.h> exists even on freestanding compilers.
3311 # On the NeXT, cc -E runs the code through the compiler's parser,
3312 # not just through cpp. "Syntax error" is here to catch this case.
3313 cat >conftest.$ac_ext <<_ACEOF
3314 #line $LINENO "configure"
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3321 # include <limits.h>
3323 # include <assert.h>
3327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } >/dev/null; then
3335 if test -s conftest.err; then
3336 ac_cpp_err=$ac_c_preproc_warn_flag
3343 if test -z "$ac_cpp_err"; then
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 # Broken: fails on valid input.
3352 rm -f conftest.err conftest.$ac_ext
3354 # OK, works on sane cases. Now check whether non-existent headers
3355 # can be detected and how.
3356 cat >conftest.$ac_ext <<_ACEOF
3357 #line $LINENO "configure"
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 #include <ac_nonexistent.h>
3365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3368 grep -v '^ *+' conftest.er1 >conftest.err
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } >/dev/null; then
3373 if test -s conftest.err; then
3374 ac_cpp_err=$ac_c_preproc_warn_flag
3381 if test -z "$ac_cpp_err"; then
3382 # Broken: success on invalid input.
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3388 # Passes both tests.
3392 rm -f conftest.err conftest.$ac_ext
3395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3396 rm -f conftest.err conftest.$ac_ext
3397 if $ac_preproc_ok; then
3400 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3401 See \`config.log' for more details." >&5
3402 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3403 See \`config.log' for more details." >&2;}
3404 { (exit 1); exit 1; }; }
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3415 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3416 if test "${ac_cv_header_stdc+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 cat >conftest.$ac_ext <<_ACEOF
3420 #line $LINENO "configure"
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_header_stdc=yes
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 ac_cv_header_stdc=no
3458 rm -f conftest.$ac_objext conftest.$ac_ext
3460 if test $ac_cv_header_stdc = yes; then
3461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3462 cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 $EGREP "memchr" >/dev/null 2>&1; then
3476 ac_cv_header_stdc=no
3482 if test $ac_cv_header_stdc = yes; then
3483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3484 cat >conftest.$ac_ext <<_ACEOF
3485 #line $LINENO "configure"
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3495 $EGREP "free" >/dev/null 2>&1; then
3498 ac_cv_header_stdc=no
3504 if test $ac_cv_header_stdc = yes; then
3505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3506 if test "$cross_compiling" = yes; then
3509 cat >conftest.$ac_ext <<_ACEOF
3510 #line $LINENO "configure"
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3517 #if ((' ' & 0x0FF) == 0x020)
3518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3521 # define ISLOWER(c) \
3522 (('a' <= (c) && (c) <= 'i') \
3523 || ('j' <= (c) && (c) <= 'r') \
3524 || ('s' <= (c) && (c) <= 'z'))
3525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3533 for (i = 0; i < 256; i++)
3534 if (XOR (islower (i), ISLOWER (i))
3535 || toupper (i) != TOUPPER (i))
3540 rm -f conftest$ac_exeext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3542 (eval $ac_link) 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3553 echo "$as_me: program exited with status $ac_status" >&5
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3558 ac_cv_header_stdc=no
3560 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3564 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3565 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3566 if test $ac_cv_header_stdc = yes; then
3568 cat >>confdefs.h <<\_ACEOF
3569 #define STDC_HEADERS 1
3574 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3584 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3585 inttypes.h stdint.h unistd.h
3587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3588 echo "$as_me:$LINENO: checking for $ac_header" >&5
3589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 cat >conftest.$ac_ext <<_ACEOF
3594 #line $LINENO "configure"
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 $ac_includes_default
3602 #include <$ac_header>
3604 rm -f conftest.$ac_objext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 eval "$as_ac_Header=yes"
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 eval "$as_ac_Header=no"
3623 rm -f conftest.$ac_objext conftest.$ac_ext
3625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3628 cat >>confdefs.h <<_ACEOF
3629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3638 for ac_header in dlfcn.h
3640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3642 echo "$as_me:$LINENO: checking for $ac_header" >&5
3643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3650 # Is the header compilable?
3651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3653 cat >conftest.$ac_ext <<_ACEOF
3654 #line $LINENO "configure"
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3660 $ac_includes_default
3661 #include <$ac_header>
3663 rm -f conftest.$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665 (eval $ac_compile) 2>&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -s conftest.$ac_objext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 ac_header_compiler=yes
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 ac_header_compiler=no
3682 rm -f conftest.$ac_objext conftest.$ac_ext
3683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3684 echo "${ECHO_T}$ac_header_compiler" >&6
3686 # Is the header present?
3687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3689 cat >conftest.$ac_ext <<_ACEOF
3690 #line $LINENO "configure"
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696 #include <$ac_header>
3698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3701 grep -v '^ *+' conftest.er1 >conftest.err
3703 cat conftest.err >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } >/dev/null; then
3706 if test -s conftest.err; then
3707 ac_cpp_err=$ac_c_preproc_warn_flag
3714 if test -z "$ac_cpp_err"; then
3715 ac_header_preproc=yes
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3720 ac_header_preproc=no
3722 rm -f conftest.err conftest.$ac_ext
3723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3724 echo "${ECHO_T}$ac_header_preproc" >&6
3726 # So? What about this header?
3727 case $ac_header_compiler:$ac_header_preproc in
3729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3735 ## ------------------------------------ ##
3736 ## Report this to bug-autoconf@gnu.org. ##
3737 ## ------------------------------------ ##
3740 sed "s/^/$as_me: WARNING: /" >&2
3743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3751 ## ------------------------------------ ##
3752 ## Report this to bug-autoconf@gnu.org. ##
3753 ## ------------------------------------ ##
3756 sed "s/^/$as_me: WARNING: /" >&2
3759 echo "$as_me:$LINENO: checking for $ac_header" >&5
3760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 eval "$as_ac_Header=$ac_header_preproc"
3766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3771 cat >>confdefs.h <<_ACEOF
3772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3780 ac_cpp='$CXXCPP $CPPFLAGS'
3781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3784 if test -n "$ac_tool_prefix"; then
3785 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3789 echo "$as_me:$LINENO: checking for $ac_word" >&5
3790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3791 if test "${ac_cv_prog_CXX+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 if test -n "$CXX"; then
3795 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 if test -n "$CXX"; then
3815 echo "$as_me:$LINENO: result: $CXX" >&5
3816 echo "${ECHO_T}$CXX" >&6
3818 echo "$as_me:$LINENO: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3822 test -n "$CXX" && break
3825 if test -z "$CXX"; then
3827 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3829 # Extract the first word of "$ac_prog", so it can be a program name with args.
3830 set dummy $ac_prog; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 if test -n "$ac_ct_CXX"; then
3837 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_ac_ct_CXX="$ac_prog"
3847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3856 if test -n "$ac_ct_CXX"; then
3857 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3858 echo "${ECHO_T}$ac_ct_CXX" >&6
3860 echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6
3864 test -n "$ac_ct_CXX" && break
3866 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3872 # Provide some information about the compiler.
3873 echo "$as_me:$LINENO:" \
3874 "checking for C++ compiler version" >&5
3875 ac_compiler=`set X $ac_compile; echo $2`
3876 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3877 (eval $ac_compiler --version </dev/null >&5) 2>&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }
3881 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3882 (eval $ac_compiler -v </dev/null >&5) 2>&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }
3886 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3887 (eval $ac_compiler -V </dev/null >&5) 2>&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }
3892 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3893 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3894 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 cat >conftest.$ac_ext <<_ACEOF
3898 #line $LINENO "configure"
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3916 rm -f conftest.$ac_objext
3917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918 (eval $ac_compile) 2>&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3935 rm -f conftest.$ac_objext conftest.$ac_ext
3936 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3939 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3940 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3941 GXX=`test $ac_compiler_gnu = yes && echo yes`
3942 ac_test_CXXFLAGS=${CXXFLAGS+set}
3943 ac_save_CXXFLAGS=$CXXFLAGS
3945 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3946 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3947 if test "${ac_cv_prog_cxx_g+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 cat >conftest.$ac_ext <<_ACEOF
3951 #line $LINENO "configure"
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 ac_cv_prog_cxx_g=yes
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3985 rm -f conftest.$ac_objext conftest.$ac_ext
3987 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3988 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3989 if test "$ac_test_CXXFLAGS" = set; then
3990 CXXFLAGS=$ac_save_CXXFLAGS
3991 elif test $ac_cv_prog_cxx_g = yes; then
3992 if test "$GXX" = yes; then
3998 if test "$GXX" = yes; then
4004 for ac_declaration in \
4006 '#include <stdlib.h>' \
4007 'extern "C" void std::exit (int) throw (); using std::exit;' \
4008 'extern "C" void std::exit (int); using std::exit;' \
4009 'extern "C" void exit (int) throw ();' \
4010 'extern "C" void exit (int);' \
4013 cat >conftest.$ac_ext <<_ACEOF
4014 #line $LINENO "configure"
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4030 rm -f conftest.$ac_objext
4031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032 (eval $ac_compile) 2>&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4049 rm -f conftest.$ac_objext conftest.$ac_ext
4050 cat >conftest.$ac_ext <<_ACEOF
4051 #line $LINENO "configure"
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4084 rm -f conftest.$ac_objext conftest.$ac_ext
4087 if test -n "$ac_declaration"; then
4088 echo '#ifdef __cplusplus' >>confdefs.h
4089 echo $ac_declaration >>confdefs.h
4090 echo '#endif' >>confdefs.h
4094 ac_cpp='$CXXCPP $CPPFLAGS'
4095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4100 ac_cpp='$CXXCPP $CPPFLAGS'
4101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4104 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4105 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4106 if test -z "$CXXCPP"; then
4107 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 # Double quotes because CXXCPP needs to be expanded
4111 for CXXCPP in "$CXX -E" "/lib/cpp"
4114 for ac_cxx_preproc_warn_flag in '' yes
4116 # Use a header file that comes with gcc, so configuring glibc
4117 # with a fresh cross-compiler works.
4118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119 # <limits.h> exists even on freestanding compilers.
4120 # On the NeXT, cc -E runs the code through the compiler's parser,
4121 # not just through cpp. "Syntax error" is here to catch this case.
4122 cat >conftest.$ac_ext <<_ACEOF
4123 #line $LINENO "configure"
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4130 # include <limits.h>
4132 # include <assert.h>
4136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } >/dev/null; then
4144 if test -s conftest.err; then
4145 ac_cpp_err=$ac_cxx_preproc_warn_flag
4152 if test -z "$ac_cpp_err"; then
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4158 # Broken: fails on valid input.
4161 rm -f conftest.err conftest.$ac_ext
4163 # OK, works on sane cases. Now check whether non-existent headers
4164 # can be detected and how.
4165 cat >conftest.$ac_ext <<_ACEOF
4166 #line $LINENO "configure"
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 #include <ac_nonexistent.h>
4174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev/null; then
4182 if test -s conftest.err; then
4183 ac_cpp_err=$ac_cxx_preproc_warn_flag
4190 if test -z "$ac_cpp_err"; then
4191 # Broken: success on invalid input.
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 # Passes both tests.
4201 rm -f conftest.err conftest.$ac_ext
4204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4205 rm -f conftest.err conftest.$ac_ext
4206 if $ac_preproc_ok; then
4211 ac_cv_prog_CXXCPP=$CXXCPP
4214 CXXCPP=$ac_cv_prog_CXXCPP
4216 ac_cv_prog_CXXCPP=$CXXCPP
4218 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4219 echo "${ECHO_T}$CXXCPP" >&6
4221 for ac_cxx_preproc_warn_flag in '' yes
4223 # Use a header file that comes with gcc, so configuring glibc
4224 # with a fresh cross-compiler works.
4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226 # <limits.h> exists even on freestanding compilers.
4227 # On the NeXT, cc -E runs the code through the compiler's parser,
4228 # not just through cpp. "Syntax error" is here to catch this case.
4229 cat >conftest.$ac_ext <<_ACEOF
4230 #line $LINENO "configure"
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4237 # include <limits.h>
4239 # include <assert.h>
4243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev/null; then
4251 if test -s conftest.err; then
4252 ac_cpp_err=$ac_cxx_preproc_warn_flag
4259 if test -z "$ac_cpp_err"; then
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4265 # Broken: fails on valid input.
4268 rm -f conftest.err conftest.$ac_ext
4270 # OK, works on sane cases. Now check whether non-existent headers
4271 # can be detected and how.
4272 cat >conftest.$ac_ext <<_ACEOF
4273 #line $LINENO "configure"
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4279 #include <ac_nonexistent.h>
4281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } >/dev/null; then
4289 if test -s conftest.err; then
4290 ac_cpp_err=$ac_cxx_preproc_warn_flag
4297 if test -z "$ac_cpp_err"; then
4298 # Broken: success on invalid input.
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 # Passes both tests.
4308 rm -f conftest.err conftest.$ac_ext
4311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4312 rm -f conftest.err conftest.$ac_ext
4313 if $ac_preproc_ok; then
4316 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4317 See \`config.log' for more details." >&5
4318 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4319 See \`config.log' for more details." >&2;}
4320 { (exit 1); exit 1; }; }
4324 ac_cpp='$CXXCPP $CPPFLAGS'
4325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4331 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4332 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4334 if test -n "$ac_tool_prefix"; then
4335 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4339 echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4341 if test "${ac_cv_prog_F77+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 if test -n "$F77"; then
4345 ac_cv_prog_F77="$F77" # Let the user override the test.
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 if test -n "$F77"; then
4365 echo "$as_me:$LINENO: result: $F77" >&5
4366 echo "${ECHO_T}$F77" >&6
4368 echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6
4372 test -n "$F77" && break
4375 if test -z "$F77"; then
4377 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4379 # Extract the first word of "$ac_prog", so it can be a program name with args.
4380 set dummy $ac_prog; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 if test -n "$ac_ct_F77"; then
4387 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_ac_ct_F77="$ac_prog"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4406 if test -n "$ac_ct_F77"; then
4407 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4408 echo "${ECHO_T}$ac_ct_F77" >&6
4410 echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6
4414 test -n "$ac_ct_F77" && break
4421 # Provide some information about the compiler.
4422 echo "$as_me:4422:" \
4423 "checking for Fortran 77 compiler version" >&5
4424 ac_compiler=`set X $ac_compile; echo $2`
4425 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4426 (eval $ac_compiler --version </dev/null >&5) 2>&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }
4430 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4431 (eval $ac_compiler -v </dev/null >&5) 2>&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }
4435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4436 (eval $ac_compiler -V </dev/null >&5) 2>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }
4441 # If we don't use `.F' as extension, the preprocessor is not run on the
4445 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4446 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4447 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 cat >conftest.$ac_ext <<_ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4460 (eval $ac_compile) 2>&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try='test -s conftest.$ac_objext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4477 rm -f conftest.$ac_objext conftest.$ac_ext
4478 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4481 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4482 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4484 G77=`test $ac_compiler_gnu = yes && echo yes`
4485 ac_test_FFLAGS=${FFLAGS+set}
4486 ac_save_FFLAGS=$FFLAGS
4488 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4489 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4490 if test "${ac_cv_prog_f77_g+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 cat >conftest.$ac_ext <<_ACEOF
4499 rm -f conftest.$ac_objext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501 (eval $ac_compile) 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_prog_f77_g=yes
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4518 rm -f conftest.$ac_objext conftest.$ac_ext
4521 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4522 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4523 if test "$ac_test_FFLAGS" = set; then
4524 FFLAGS=$ac_save_FFLAGS
4525 elif test $ac_cv_prog_f77_g = yes; then
4526 if test "$G77" = yes; then
4532 if test "$G77" = yes; then
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4548 # find the maximum length of command line arguments
4549 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4550 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 # On DJGPP, this test can blow up pretty badly due to problems in libc
4560 # (any single argument exceeding 2000 bytes causes a buffer overrun
4561 # during glob expansion). Even if it were fixed, the result of this
4562 # check would be larger than it should be.
4563 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4567 # Under GNU Hurd, this test is not required because there is
4568 # no limit to the length of command line arguments.
4569 # Libtool will interpret -1 as no limit whatsoever
4570 lt_cv_sys_max_cmd_len=-1;
4574 # On Win9x/ME, this test blows up -- it succeeds, but takes
4575 # about 5 minutes as the teststring grows exponentially.
4576 # Worse, since 9x/ME are not pre-emptively multitasking,
4577 # you end up with a "frozen" computer, even though with patience
4578 # the test eventually succeeds (with a max line length of 256k).
4579 # Instead, let's just punt: use the minimum linelength reported by
4580 # all of the supported platforms: 8192 (on NT/2K/XP).
4581 lt_cv_sys_max_cmd_len=8192;
4585 # On AmigaOS with pdksh, this test takes hours, literally.
4586 # So we just punt and use a minimum line length of 8192.
4587 lt_cv_sys_max_cmd_len=8192;
4591 # If test is not a shell built-in, we'll probably end up computing a
4592 # maximum length that is only half of the actual maximum length, but
4594 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4595 = "XX$testring") >/dev/null 2>&1 &&
4596 new_result=`expr "X$testring" : ".*" 2>&1` &&
4597 lt_cv_sys_max_cmd_len=$new_result &&
4598 test $i != 17 # 1/2 MB should be enough
4601 testring=$testring$testring
4604 # Add a significant safety factor because C++ compilers can tack on massive
4605 # amounts of additional arguments before passing them to the linker.
4606 # It appears as though 1/2 is a usable value.
4607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4613 if test -n $lt_cv_sys_max_cmd_len ; then
4614 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4615 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4617 echo "$as_me:$LINENO: result: none" >&5
4618 echo "${ECHO_T}none" >&6
4624 # Check for command to grab the raw symbol name followed by C symbol from nm.
4625 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4626 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4627 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 # These are sane defaults that work on at least a few old systems.
4632 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4634 # Character class describing NM global symbol codes.
4635 symcode='[BCDEGRST]'
4637 # Regexp to match symbols that can be accessed directly from C.
4638 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4640 # Transform the above into a raw symbol and a C symbol.
4641 symxfrm='\1 \2\3 \3'
4643 # Transform an extracted symbol line into a proper C declaration
4644 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4646 # Transform an extracted symbol line into symbol name and symbol address
4647 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'"
4649 # Define system-specific variables.
4654 cygwin* | mingw* | pw32*)
4655 symcode='[ABCDGISTW]'
4657 hpux*) # Its linker distinguishes data from code symbols
4658 if test "$host_cpu" = ia64; then
4659 symcode='[ABCDEGRST]'
4661 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4662 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'"
4665 symcode='[BCDEGRST]'
4668 symcode='[BCDEGQRST]'
4678 # Handle CRLF in mingw tool chain
4682 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4686 # If we're using GNU nm, then use its standard symbol codes.
4687 case `$NM -V 2>&1` in
4688 *GNU* | *'with BFD'*)
4689 symcode='[ABCDGIRSTW]' ;;
4692 # Try without a prefix undercore, then with it.
4693 for ac_symprfx in "" "_"; do
4695 # Write the raw and C identifiers.
4696 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4698 # Check to see that the pipe works correctly.
4702 cat > conftest.$ac_ext <<EOF
4707 void nm_test_func(){}
4711 int main(){nm_test_var='a';nm_test_func();return(0);}
4714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715 (eval $ac_compile) 2>&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; then
4719 # Now try to grab the symbols.
4721 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4722 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } && test -s "$nlist"; then
4726 # Try sorting and uniquifying the output.
4727 if sort "$nlist" | uniq > "$nlist"T; then
4728 mv -f "$nlist"T "$nlist"
4733 # Make sure that we snagged all the symbols we need.
4734 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4735 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4736 cat <<EOF > conftest.$ac_ext
4742 # Now generate the symbol file.
4743 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4745 cat <<EOF >> conftest.$ac_ext
4746 #if defined (__STDC__) && __STDC__
4747 # define lt_ptr_t void *
4749 # define lt_ptr_t char *
4753 /* The mapping between symbol names and symbols. */
4758 lt_preloaded_symbols[] =
4761 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4762 cat <<\EOF >> conftest.$ac_ext
4770 # Now try linking the two files.
4771 mv conftest.$ac_objext conftstm.$ac_objext
4772 lt_save_LIBS="$LIBS"
4773 lt_save_CFLAGS="$CFLAGS"
4774 LIBS="conftstm.$ac_objext"
4775 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4777 (eval $ac_link) 2>&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4783 LIBS="$lt_save_LIBS"
4784 CFLAGS="$lt_save_CFLAGS"
4786 echo "cannot find nm_test_func in $nlist" >&5
4789 echo "cannot find nm_test_var in $nlist" >&5
4792 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4795 echo "$progname: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4798 rm -f conftest* conftst*
4800 # Do not use the global_symbol_pipe unless it works.
4801 if test "$pipe_works" = yes; then
4804 lt_cv_sys_global_symbol_pipe=
4810 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4811 lt_cv_sys_global_symbol_to_cdecl=
4813 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4814 echo "$as_me:$LINENO: result: failed" >&5
4815 echo "${ECHO_T}failed" >&6
4817 echo "$as_me:$LINENO: result: ok" >&5
4818 echo "${ECHO_T}ok" >&6
4821 echo "$as_me:$LINENO: checking for objdir" >&5
4822 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4823 if test "${lt_cv_objdir+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 rm -f .libs 2>/dev/null
4827 mkdir .libs 2>/dev/null
4828 if test -d .libs; then
4831 # MS-DOS does not allow filenames that begin with a dot.
4834 rmdir .libs 2>/dev/null
4836 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4837 echo "${ECHO_T}$lt_cv_objdir" >&6
4838 objdir=$lt_cv_objdir
4846 # AIX sometimes has problems with the GCC collect2 program. For some
4847 # reason, if we set the COLLECT_NAMES environment variable, the problems
4848 # vanish in a puff of smoke.
4849 if test "X${COLLECT_NAMES+set}" != Xset; then
4851 export COLLECT_NAMES
4856 # Sed substitution that helps us do robust quoting. It backslashifies
4857 # metacharacters that are still active within double-quoted strings.
4858 Xsed='sed -e s/^X//'
4859 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4861 # Same as above, but do not quote variable references.
4862 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4864 # Sed substitution to delay expansion of an escaped shell variable in a
4865 # double_quote_subst'ed string.
4866 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4868 # Sed substitution to avoid accidental globbing in evaled expressions
4869 no_glob_subst='s/\*/\\\*/g'
4875 default_ofile=libtool
4876 can_build_shared=yes
4878 # All known linkers require a `.a' archive for static linking (except M$VC,
4879 # which needs '.lib').
4881 ltmain="$ac_aux_dir/ltmain.sh"
4882 ofile="$default_ofile"
4883 with_gnu_ld="$lt_cv_prog_gnu_ld"
4885 if test -n "$ac_tool_prefix"; then
4886 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4887 set dummy ${ac_tool_prefix}ar; ac_word=$2
4888 echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4890 if test "${ac_cv_prog_AR+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 if test -n "$AR"; then
4894 ac_cv_prog_AR="$AR" # Let the user override the test.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903 ac_cv_prog_AR="${ac_tool_prefix}ar"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 if test -n "$AR"; then
4914 echo "$as_me:$LINENO: result: $AR" >&5
4915 echo "${ECHO_T}$AR" >&6
4917 echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6
4922 if test -z "$ac_cv_prog_AR"; then
4924 # Extract the first word of "ar", so it can be a program name with args.
4925 set dummy ar; ac_word=$2
4926 echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 if test -n "$ac_ct_AR"; then
4932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_ac_ct_AR="ar"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4952 if test -n "$ac_ct_AR"; then
4953 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4954 echo "${ECHO_T}$ac_ct_AR" >&6
4956 echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6
4965 if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4968 echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4970 if test "${ac_cv_prog_RANLIB+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 if test -n "$RANLIB"; then
4974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 RANLIB=$ac_cv_prog_RANLIB
4993 if test -n "$RANLIB"; then
4994 echo "$as_me:$LINENO: result: $RANLIB" >&5
4995 echo "${ECHO_T}$RANLIB" >&6
4997 echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6
5002 if test -z "$ac_cv_prog_RANLIB"; then
5003 ac_ct_RANLIB=$RANLIB
5004 # Extract the first word of "ranlib", so it can be a program name with args.
5005 set dummy ranlib; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 if test -n "$ac_ct_RANLIB"; then
5012 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_ac_ct_RANLIB="ranlib"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5031 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5032 if test -n "$ac_ct_RANLIB"; then
5033 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5034 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5036 echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6
5040 RANLIB=$ac_ct_RANLIB
5042 RANLIB="$ac_cv_prog_RANLIB"
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5047 set dummy ${ac_tool_prefix}strip; ac_word=$2
5048 echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5050 if test "${ac_cv_prog_STRIP+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 if test -n "$STRIP"; then
5054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 STRIP=$ac_cv_prog_STRIP
5073 if test -n "$STRIP"; then
5074 echo "$as_me:$LINENO: result: $STRIP" >&5
5075 echo "${ECHO_T}$STRIP" >&6
5077 echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6
5082 if test -z "$ac_cv_prog_STRIP"; then
5084 # Extract the first word of "strip", so it can be a program name with args.
5085 set dummy strip; ac_word=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 if test -n "$ac_ct_STRIP"; then
5092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_ac_ct_STRIP="strip"
5102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5112 if test -n "$ac_ct_STRIP"; then
5113 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5114 echo "${ECHO_T}$ac_ct_STRIP" >&6
5116 echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6
5122 STRIP="$ac_cv_prog_STRIP"
5127 old_CFLAGS="$CFLAGS"
5129 # Set sane defaults for various variables
5130 test -z "$AR" && AR=ar
5131 test -z "$AR_FLAGS" && AR_FLAGS=cru
5132 test -z "$AS" && AS=as
5133 test -z "$CC" && CC=cc
5134 test -z "$LTCC" && LTCC=$CC
5135 test -z "$DLLTOOL" && DLLTOOL=dlltool
5136 test -z "$LD" && LD=ld
5137 test -z "$LN_S" && LN_S="ln -s"
5138 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5139 test -z "$NM" && NM=nm
5140 test -z "$SED" && SED=sed
5141 test -z "$OBJDUMP" && OBJDUMP=objdump
5142 test -z "$RANLIB" && RANLIB=:
5143 test -z "$STRIP" && STRIP=:
5144 test -z "$ac_objext" && ac_objext=o
5146 # Determine commands to create old-style static archives.
5147 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5148 old_postinstall_cmds='chmod 644 $oldlib'
5149 old_postuninstall_cmds=
5151 if test -n "$RANLIB"; then
5154 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5157 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5160 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5163 # Only perform the check for file, if the check method requires it
5164 case $deplibs_check_method in
5166 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5167 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5168 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5169 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5177 lt_save_MAGIC_CMD="$MAGIC_CMD"
5178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5180 for ac_dir in $ac_dummy; do
5182 test -z "$ac_dir" && ac_dir=.
5183 if test -f $ac_dir/${ac_tool_prefix}file; then
5184 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5185 if test -n "$file_magic_test_file"; then
5186 case $deplibs_check_method in
5188 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5191 $EGREP "$file_magic_regex" > /dev/null; then
5196 *** Warning: the command libtool uses to detect shared libraries,
5197 *** $file_magic_cmd, produces output that libtool cannot recognize.
5198 *** The result is that libtool may fail to recognize shared libraries
5199 *** as such. This will affect the creation of libtool libraries that
5200 *** depend on shared libraries, but programs linked with such libtool
5201 *** libraries will work regardless of this problem. Nevertheless, you
5202 *** may want to report the problem to your system manager and/or to
5203 *** bug-libtool@gnu.org
5213 MAGIC_CMD="$lt_save_MAGIC_CMD"
5218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5219 if test -n "$MAGIC_CMD"; then
5220 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5221 echo "${ECHO_T}$MAGIC_CMD" >&6
5223 echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5227 if test -z "$lt_cv_path_MAGIC_CMD"; then
5228 if test -n "$ac_tool_prefix"; then
5229 echo "$as_me:$LINENO: checking for file" >&5
5230 echo $ECHO_N "checking for file... $ECHO_C" >&6
5231 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5239 lt_save_MAGIC_CMD="$MAGIC_CMD"
5240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5241 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5242 for ac_dir in $ac_dummy; do
5244 test -z "$ac_dir" && ac_dir=.
5245 if test -f $ac_dir/file; then
5246 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5247 if test -n "$file_magic_test_file"; then
5248 case $deplibs_check_method in
5250 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5251 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5252 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5253 $EGREP "$file_magic_regex" > /dev/null; then
5258 *** Warning: the command libtool uses to detect shared libraries,
5259 *** $file_magic_cmd, produces output that libtool cannot recognize.
5260 *** The result is that libtool may fail to recognize shared libraries
5261 *** as such. This will affect the creation of libtool libraries that
5262 *** depend on shared libraries, but programs linked with such libtool
5263 *** libraries will work regardless of this problem. Nevertheless, you
5264 *** may want to report the problem to your system manager and/or to
5265 *** bug-libtool@gnu.org
5275 MAGIC_CMD="$lt_save_MAGIC_CMD"
5280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5281 if test -n "$MAGIC_CMD"; then
5282 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5283 echo "${ECHO_T}$MAGIC_CMD" >&6
5285 echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5301 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5302 if test "${enable_libtool_lock+set}" = set; then
5303 enableval="$enable_libtool_lock"
5306 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5309 # Check whether --with-pic or --without-pic was given.
5310 if test "${with_pic+set}" = set; then
5316 test -z "$pic_mode" && pic_mode=default
5318 # Use C for the default configuration in the libtool script
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328 # Source file extension for C test sources.
5331 # Object file extension for compiled C test sources.
5335 # Code to be used in simple compile tests
5336 lt_simple_compile_test_code="int some_variable = 0;\n"
5338 # Code to be used in simple link tests
5339 lt_simple_link_test_code='int main(){return(0);}\n'
5342 # If no C compiler was specified, use CC.
5345 # Allow CC to be a program name with arguments.
5350 # Check for any special shared library compilation flags.
5353 if test "$GCC" = no; then
5356 lt_prog_cc_shlib='-belf'
5360 if test -n "$lt_prog_cc_shlib"; then
5361 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5362 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5363 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5365 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5366 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5367 lt_cv_prog_cc_can_build_shared=no
5373 # Check to make sure the static flag actually works.
5375 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5376 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5377 if test "${lt_prog_compiler_static_works+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 lt_prog_compiler_static_works=no
5381 save_LDFLAGS="$LDFLAGS"
5382 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5383 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5385 # The compiler can only warn and ignore the option if not recognized
5386 # So say no if there are warnings
5387 if test -s conftest.err; then
5388 # Append any errors to the config.log.
5389 cat conftest.err 1>&5
5391 lt_prog_compiler_static_works=yes
5395 LDFLAGS="$save_LDFLAGS"
5398 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5399 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5401 if test x"$lt_prog_compiler_static_works" = xyes; then
5404 lt_prog_compiler_static=
5410 ## There is no encapsulation within the following macros, do not change
5411 ## the running order or otherwise move them around unless you know exactly
5412 ## what you are doing...
5414 lt_prog_compiler_no_builtin_flag=
5416 if test "$GCC" = yes; then
5417 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5420 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5421 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5422 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 lt_cv_prog_compiler_rtti_exceptions=no
5426 ac_outfile=conftest.$ac_objext
5427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5428 lt_compiler_flag="-fno-rtti -fno-exceptions"
5429 # Insert the option either (1) after the last *FLAGS variable, or
5430 # (2) before a word containing "conftest.", or (3) at the end.
5431 # Note that $ac_compile itself does not contain backslashes and begins
5432 # with a dollar sign (not a hyphen), so the echo should work correctly.
5433 # The option is referenced via a variable to avoid confusing sed.
5434 lt_compile=`echo "$ac_compile" | $SED \
5435 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5437 -e 's:$: $lt_compiler_flag:'`
5438 (eval echo "\"\$as_me:5438: $lt_compile\"" >&5)
5439 (eval "$lt_compile" 2>conftest.err)
5441 cat conftest.err >&5
5442 echo "$as_me:5442: \$? = $ac_status" >&5
5443 if (exit $ac_status) && test -s "$ac_outfile"; then
5444 # The compiler can only warn and ignore the option if not recognized
5445 # So say no if there are warnings
5446 if test ! -s conftest.err; then
5447 lt_cv_prog_compiler_rtti_exceptions=yes
5453 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5454 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5457 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5464 lt_prog_compiler_wl=
5465 lt_prog_compiler_pic=
5466 lt_prog_compiler_static=
5468 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5469 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5471 if test "$GCC" = yes; then
5472 lt_prog_compiler_wl='-Wl,'
5473 lt_prog_compiler_static='-static'
5477 # All AIX code is PIC.
5478 if test "$host_cpu" = ia64; then
5479 # AIX 5 now supports IA64 processor
5480 lt_prog_compiler_static='-Bstatic'
5485 # FIXME: we need at least 68020 code to build shared libraries, but
5486 # adding the `-m68020' flag to GCC prevents building anything better,
5488 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5491 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5492 # PIC is the default for these OSes.
5495 mingw* | pw32* | os2*)
5496 # This hack is so that the source file can tell whether it is being
5497 # built for inclusion in a dll (and should export symbols for example).
5498 lt_prog_compiler_pic='-DDLL_EXPORT'
5501 darwin* | rhapsody*)
5502 # PIC is the default on this platform
5503 # Common symbols not allowed in MH_DYLIB files
5504 lt_prog_compiler_pic='-fno-common'
5508 # Just because we use GCC doesn't mean we suddenly get shared libraries
5509 # on systems that don't support them.
5510 lt_prog_compiler_can_build_shared=no
5515 if test -d /usr/nec; then
5516 lt_prog_compiler_pic=-Kconform_pic
5521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5528 lt_prog_compiler_pic='-fPIC'
5534 lt_prog_compiler_pic='-fPIC'
5538 # PORTME Check for flag to pass linker flags through the system compiler.
5541 lt_prog_compiler_wl='-Wl,'
5542 if test "$host_cpu" = ia64; then
5543 # AIX 5 now supports IA64 processor
5544 lt_prog_compiler_static='-Bstatic'
5546 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5550 mingw* | pw32* | os2*)
5551 # This hack is so that the source file can tell whether it is being
5552 # built for inclusion in a dll (and should export symbols for example).
5553 lt_prog_compiler_pic='-DDLL_EXPORT'
5556 hpux9* | hpux10* | hpux11*)
5557 lt_prog_compiler_wl='-Wl,'
5558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5565 lt_prog_compiler_pic='+Z'
5568 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5569 lt_prog_compiler_static='${wl}-a ${wl}archive'
5572 irix5* | irix6* | nonstopux*)
5573 lt_prog_compiler_wl='-Wl,'
5574 # PIC (with -KPIC) is the default.
5575 lt_prog_compiler_static='-non_shared'
5579 lt_prog_compiler_pic='-KPIC'
5580 lt_prog_compiler_static='-Bstatic'
5586 lt_prog_compiler_wl='-Wl,'
5587 lt_prog_compiler_pic='-KPIC'
5588 lt_prog_compiler_static='-static'
5591 lt_prog_compiler_wl='-Wl,'
5592 # All Alpha code is PIC.
5593 lt_prog_compiler_static='-non_shared'
5598 osf3* | osf4* | osf5*)
5599 lt_prog_compiler_wl='-Wl,'
5600 # All OSF/1 code is PIC.
5601 lt_prog_compiler_static='-non_shared'
5605 lt_prog_compiler_pic='-Kpic'
5606 lt_prog_compiler_static='-dn'
5610 lt_prog_compiler_wl='-Wl,'
5611 lt_prog_compiler_pic='-KPIC'
5612 lt_prog_compiler_static='-Bstatic'
5616 lt_prog_compiler_wl='-Qoption ld '
5617 lt_prog_compiler_pic='-PIC'
5618 lt_prog_compiler_static='-Bstatic'
5621 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5622 lt_prog_compiler_wl='-Wl,'
5623 lt_prog_compiler_pic='-KPIC'
5624 lt_prog_compiler_static='-Bstatic'
5628 if test -d /usr/nec ;then
5629 lt_prog_compiler_pic='-Kconform_pic'
5630 lt_prog_compiler_static='-Bstatic'
5635 lt_prog_compiler_pic='-pic'
5636 lt_prog_compiler_static='-Bstatic'
5640 lt_prog_compiler_can_build_shared=no
5645 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5646 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5649 # Check to make sure the PIC flag actually works.
5651 if test -n "$lt_prog_compiler_pic"; then
5653 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5654 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5655 if test "${lt_prog_compiler_pic_works+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 lt_prog_compiler_pic_works=no
5659 ac_outfile=conftest.$ac_objext
5660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5661 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5662 # Insert the option either (1) after the last *FLAGS variable, or
5663 # (2) before a word containing "conftest.", or (3) at the end.
5664 # Note that $ac_compile itself does not contain backslashes and begins
5665 # with a dollar sign (not a hyphen), so the echo should work correctly.
5666 # The option is referenced via a variable to avoid confusing sed.
5667 lt_compile=`echo "$ac_compile" | $SED \
5668 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5670 -e 's:$: $lt_compiler_flag:'`
5671 (eval echo "\"\$as_me:5671: $lt_compile\"" >&5)
5672 (eval "$lt_compile" 2>conftest.err)
5674 cat conftest.err >&5
5675 echo "$as_me:5675: \$? = $ac_status" >&5
5676 if (exit $ac_status) && test -s "$ac_outfile"; then
5677 # The compiler can only warn and ignore the option if not recognized
5678 # So say no if there are warnings
5679 if test ! -s conftest.err; then
5680 lt_prog_compiler_pic_works=yes
5686 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5687 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5689 if test x"$lt_prog_compiler_pic_works" = xyes; then
5690 case $lt_prog_compiler_pic in
5692 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5695 lt_prog_compiler_pic=
5696 lt_prog_compiler_can_build_shared=no
5701 # For platforms which do not support PIC, -DPIC is meaningless:
5703 lt_prog_compiler_pic=
5706 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5712 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 lt_cv_prog_compiler_c_o=no
5716 $rm -r conftest 2>/dev/null
5720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5722 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5723 # that will create temporary files in the current directory regardless of
5724 # the output directory. Thus, making CWD read-only will cause this test
5725 # to fail, enabling locking or at least warning the user not to do parallel
5729 lt_compiler_flag="-o out/conftest2.$ac_objext"
5730 # Insert the option either (1) after the last *FLAGS variable, or
5731 # (2) before a word containing "conftest.", or (3) at the end.
5732 # Note that $ac_compile itself does not contain backslashes and begins
5733 # with a dollar sign (not a hyphen), so the echo should work correctly.
5734 lt_compile=`echo "$ac_compile" | $SED \
5735 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5737 -e 's:$: $lt_compiler_flag:'`
5738 (eval echo "\"\$as_me:5738: $lt_compile\"" >&5)
5739 (eval "$lt_compile" 2>out/conftest.err)
5741 cat out/conftest.err >&5
5742 echo "$as_me:5742: \$? = $ac_status" >&5
5743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5745 # The compiler can only warn and ignore the option if not recognized
5746 # So say no if there are warnings
5747 if test ! -s out/conftest.err; then
5748 lt_cv_prog_compiler_c_o=yes
5753 # SGI C++ compiler will create directory out/ii_files/ for
5754 # template instantiation
5755 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5756 $rm out/* && rmdir out
5762 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5763 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5766 hard_links="nottested"
5767 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5768 # do not overwrite the value of need_locks provided by the user
5769 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5770 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5775 ln conftest.a conftest.b 2>&5 || hard_links=no
5776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5777 echo "$as_me:$LINENO: result: $hard_links" >&5
5778 echo "${ECHO_T}$hard_links" >&6
5779 if test "$hard_links" = no; then
5780 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5781 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5788 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5789 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5792 allow_undefined_flag=
5793 enable_shared_with_static_runtimes=no
5795 archive_expsym_cmds=
5796 old_archive_From_new_cmds=
5797 old_archive_from_expsyms_cmds=
5798 export_dynamic_flag_spec=
5799 whole_archive_flag_spec=
5800 thread_safe_flag_spec=
5801 hardcode_libdir_flag_spec=
5802 hardcode_libdir_flag_spec_ld=
5803 hardcode_libdir_separator=
5806 hardcode_shlibpath_var=unsupported
5807 link_all_deplibs=unknown
5808 hardcode_automatic=no
5811 always_export_symbols=no
5812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5813 # include_expsyms should be a list of space-separated symbols to be *always*
5814 # included in the symbol list
5816 # exclude_expsyms can be an extended regexp of symbols to exclude
5817 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5818 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5819 # as well as any symbol that contains `d'.
5820 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5821 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5822 # platforms (ab)use it in PIC code, but their linkers get confused if
5823 # the symbol is explicitly referenced. Since portable code cannot
5824 # rely on this symbol name, it's probably fine to never include it in
5825 # preloaded symbol tables.
5826 extract_expsyms_cmds=
5829 cygwin* | mingw* | pw32*)
5830 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5831 # When not using gcc, we currently assume that we are using
5832 # Microsoft Visual C++.
5833 if test "$GCC" != yes; then
5843 if test "$with_gnu_ld" = yes; then
5844 # If archive_cmds runs LD, not CC, wlarc should be empty
5847 # See if GNU ld supports shared libraries.
5849 aix3* | aix4* | aix5*)
5850 # On AIX/PPC, the GNU linker is very broken
5851 if test "$host_cpu" != ia64; then
5855 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5856 *** to be unable to reliably create shared libraries on AIX.
5857 *** Therefore, libtool is disabling shared libraries support. If you
5858 *** really care for shared libraries, you may want to modify your PATH
5859 *** so that a non-GNU linker is found, and then restart.
5866 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)'
5867 hardcode_libdir_flag_spec='-L$libdir'
5868 hardcode_minus_L=yes
5870 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5871 # that the semantics of dynamic libraries on AmigaOS, at least up
5872 # to version 4, is to share data among multiple programs linked
5873 # with the same dynamic library. Since this doesn't match the
5874 # behavior of shared libraries on other platforms, we can't use
5880 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5881 allow_undefined_flag=unsupported
5882 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5883 # support --undefined. This deserves some investigation. FIXME
5884 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5890 cygwin* | mingw* | pw32*)
5891 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
5892 # as there is no search path for DLLs.
5893 hardcode_libdir_flag_spec='-L$libdir'
5894 allow_undefined_flag=unsupported
5895 always_export_symbols=no
5896 enable_shared_with_static_runtimes=yes
5897 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
5899 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5901 # If the export-symbols file already is a .def file (1st line
5902 # is EXPORTS), use it as is; otherwise, prepend...
5903 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5904 cp $export_symbols $output_objdir/$soname.def;
5906 echo EXPORTS > $output_objdir/$soname.def;
5907 cat $export_symbols >> $output_objdir/$soname.def;
5909 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5916 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5917 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5926 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5930 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5931 *** create shared libraries on Solaris systems. Therefore, libtool
5932 *** is disabling shared libraries support. We urge you to upgrade GNU
5933 *** binutils to release 2.9.1 or newer. Another option is to modify
5934 *** your PATH or compiler configuration so that the native linker is
5935 *** used, and then restart.
5938 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5947 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5950 hardcode_shlibpath_var=no
5954 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5955 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5956 archive_cmds="$tmp_archive_cmds"
5957 supports_anon_versioning=no
5958 case `$LD -v 2>/dev/null` in
5959 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5960 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5961 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5962 *\ 2.11.*) ;; # other 2.11 versions
5963 *) supports_anon_versioning=yes ;;
5965 if test $supports_anon_versioning = yes; then
5966 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5968 $echo "local: *; };" >> $output_objdir/$libname.ver~
5969 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5971 archive_expsym_cmds="$tmp_archive_cmds"
5979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5988 if test "$ld_shlibs" = yes; then
5989 runpath_var=LD_RUN_PATH
5990 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5991 export_dynamic_flag_spec='${wl}--export-dynamic'
5992 # ancient GNU ld didn't support --whole-archive et. al.
5993 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5994 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5996 whole_archive_flag_spec=
6000 # PORTME fill in a description of your system's linker (not GNU ld)
6003 allow_undefined_flag=unsupported
6004 always_export_symbols=yes
6005 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'
6006 # Note: this linker hardcodes the directories in LIBPATH if there
6007 # are no directories specified by -L.
6008 hardcode_minus_L=yes
6009 if test "$GCC" = yes && test -z "$link_static_flag"; then
6010 # Neither direct hardcoding nor static linking is supported with a
6012 hardcode_direct=unsupported
6017 if test "$host_cpu" = ia64; then
6018 # On IA64, the linker does run time linking by default, so we don't
6019 # have to do anything special.
6020 aix_use_runtimelinking=no
6021 exp_sym_flag='-Bexport'
6024 # If we're using GNU nm, then we don't want the "-C" option.
6025 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6026 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6027 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'
6029 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'
6031 aix_use_runtimelinking=no
6033 # Test if we are trying to use run time linking or normal
6034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6035 # need to do runtime linking.
6036 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6037 for ld_flag in $LDFLAGS; do
6038 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6039 aix_use_runtimelinking=yes
6045 exp_sym_flag='-bexport'
6046 no_entry_flag='-bnoentry'
6049 # When large executables or shared objects are built, AIX ld can
6050 # have problems creating the table of contents. If linking a library
6051 # or program results in "error TOC overflow" add -mminimal-toc to
6052 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6053 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6057 hardcode_libdir_separator=':'
6058 link_all_deplibs=yes
6060 if test "$GCC" = yes; then
6061 case $host_os in aix4.012|aix4.012.*)
6062 # We only want to do this on AIX 4.2 and lower, the check
6063 # below for broken collect2 doesn't work under 4.3+
6064 collect2name=`${CC} -print-prog-name=collect2`
6065 if test -f "$collect2name" && \
6066 strings "$collect2name" | grep resolve_lib_name >/dev/null
6068 # We have reworked collect2
6071 # We have old collect2
6072 hardcode_direct=unsupported
6073 # It fails to find uninstalled libraries when the uninstalled
6074 # path is not listed in the libpath. Setting hardcode_minus_L
6075 # to unsupported forces relinking
6076 hardcode_minus_L=yes
6077 hardcode_libdir_flag_spec='-L$libdir'
6078 hardcode_libdir_separator=
6081 shared_flag='-shared'
6084 if test "$host_cpu" = ia64; then
6085 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6086 # chokes on -Wl,-G. The following line is correct:
6089 if test "$aix_use_runtimelinking" = yes; then
6090 shared_flag='${wl}-G'
6092 shared_flag='${wl}-bM:SRE'
6097 # It seems that -bexpall does not export symbols beginning with
6098 # underscore (_), so it is better to generate a list of symbols to export.
6099 always_export_symbols=yes
6100 if test "$aix_use_runtimelinking" = yes; then
6101 # Warning - without using the other runtime loading flags (-brtl),
6102 # -berok will link without error, but may produce a broken library.
6103 allow_undefined_flag='-berok'
6104 # Determine the default libpath from the value encoded in an empty executable.
6105 cat >conftest.$ac_ext <<_ACEOF
6106 #line $LINENO "configure"
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6121 rm -f conftest.$ac_objext conftest$ac_exeext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123 (eval $ac_link) 2>&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -s conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6136 # Check for a 64-bit object if we didn't find anything.
6137 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; }
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6147 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6148 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"
6150 if test "$host_cpu" = ia64; then
6151 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6152 allow_undefined_flag="-z nodefs"
6153 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"
6155 # Determine the default libpath from the value encoded in an empty executable.
6156 cat >conftest.$ac_ext <<_ACEOF
6157 #line $LINENO "configure"
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174 (eval $ac_link) 2>&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try='test -s conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6187 # Check for a 64-bit object if we didn't find anything.
6188 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; }
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6198 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6199 # Warning - without using the other run time loading flags,
6200 # -berok will link without error, but may produce a broken library.
6201 no_undefined_flag=' ${wl}-bernotok'
6202 allow_undefined_flag=' ${wl}-berok'
6203 # -bexpall does not export symbols beginning with underscore (_)
6204 always_export_symbols=yes
6205 # Exported symbols can be pulled into shared objects from archives
6206 whole_archive_flag_spec=' '
6207 archive_cmds_need_lc=yes
6208 # This is similar to how AIX traditionally builds it's shared libraries.
6209 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'
6215 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)'
6216 hardcode_libdir_flag_spec='-L$libdir'
6217 hardcode_minus_L=yes
6218 # see comment about different semantics on the GNU ld section
6223 export_dynamic_flag_spec=-rdynamic
6226 cygwin* | mingw* | pw32*)
6227 # When not using gcc, we currently assume that we are using
6228 # Microsoft Visual C++.
6229 # hardcode_libdir_flag_spec is actually meaningless, as there is
6230 # no search path for DLLs.
6231 hardcode_libdir_flag_spec=' '
6232 allow_undefined_flag=unsupported
6233 # Tell ltmain to make .lib files, not .a files.
6235 # Tell ltmain to make .dll files, not .so files.
6237 # FIXME: Setting linknames here is a bad hack.
6238 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6239 # The linker will automatically build a .lib file if we build a DLL.
6240 old_archive_From_new_cmds='true'
6241 # FIXME: Should let the user specify the lib program.
6242 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6243 fix_srcfile_path='`cygpath -w "$srcfile"`'
6244 enable_shared_with_static_runtimes=yes
6247 darwin* | rhapsody*)
6248 if test "$GXX" = yes ; then
6249 archive_cmds_need_lc=no
6251 rhapsody* | darwin1.[012])
6252 allow_undefined_flag='-undefined suppress'
6255 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6256 allow_undefined_flag='-flat_namespace -undefined suppress'
6258 case ${MACOSX_DEPLOYMENT_TARGET} in
6260 allow_undefined_flag='-flat_namespace -undefined suppress'
6263 allow_undefined_flag='-undefined dynamic_lookup'
6269 lt_int_apple_cc_single_mod=no
6270 output_verbose_link_cmd='echo'
6271 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6272 lt_int_apple_cc_single_mod=yes
6274 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6275 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6277 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'
6279 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6281 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6282 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}'
6284 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}'
6286 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6288 hardcode_automatic=yes
6289 hardcode_shlibpath_var=unsupported
6290 whole_archive_flag_spec='-all_load $convenience'
6291 link_all_deplibs=yes
6298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6299 hardcode_libdir_flag_spec='-L$libdir'
6300 hardcode_shlibpath_var=no
6307 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6308 # support. Future versions do this automatically, but an explicit c++rt0.o
6309 # does not break anything, and helps significantly (at the cost of a little
6312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6313 hardcode_libdir_flag_spec='-R$libdir'
6315 hardcode_shlibpath_var=no
6318 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6322 hardcode_minus_L=yes
6323 hardcode_shlibpath_var=no
6326 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6327 freebsd* | kfreebsd*-gnu)
6328 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6329 hardcode_libdir_flag_spec='-R$libdir'
6331 hardcode_shlibpath_var=no
6335 if test "$GCC" = yes; then
6336 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'
6338 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'
6340 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6341 hardcode_libdir_separator=:
6344 # hardcode_minus_L: Not really in the search PATH,
6345 # but as the default location of the library.
6346 hardcode_minus_L=yes
6347 export_dynamic_flag_spec='${wl}-E'
6351 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6354 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6357 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6363 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6366 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6370 if test "$with_gnu_ld" = no; then
6373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6374 hardcode_libdir_flag_spec_ld='+b $libdir'
6375 hardcode_libdir_separator=:
6377 hardcode_shlibpath_var=no
6380 hardcode_libdir_flag_spec='-L$libdir'
6382 hardcode_shlibpath_var=no
6384 # hardcode_minus_L: Not really in the search PATH,
6385 # but as the default location of the library.
6386 hardcode_minus_L=yes
6389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6390 hardcode_libdir_separator=:
6392 export_dynamic_flag_spec='${wl}-E'
6394 # hardcode_minus_L: Not really in the search PATH,
6395 # but as the default location of the library.
6396 hardcode_minus_L=yes
6402 irix5* | irix6* | nonstopux*)
6403 if test "$GCC" = yes; then
6404 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'
6406 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'
6407 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6410 hardcode_libdir_separator=:
6411 link_all_deplibs=yes
6415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6418 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6420 hardcode_libdir_flag_spec='-R$libdir'
6422 hardcode_shlibpath_var=no
6426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6429 hardcode_libdir_separator=:
6430 hardcode_shlibpath_var=no
6435 hardcode_shlibpath_var=no
6436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6437 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6438 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6439 export_dynamic_flag_spec='${wl}-E'
6442 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6443 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6444 hardcode_libdir_flag_spec='-R$libdir'
6447 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6455 hardcode_libdir_flag_spec='-L$libdir'
6456 hardcode_minus_L=yes
6457 allow_undefined_flag=unsupported
6458 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'
6459 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6463 if test "$GCC" = yes; then
6464 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6465 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'
6467 allow_undefined_flag=' -expect_unresolved \*'
6468 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'
6470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6471 hardcode_libdir_separator=:
6474 osf4* | osf5*) # as osf3* with the addition of -msym flag
6475 if test "$GCC" = yes; then
6476 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6477 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'
6478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6480 allow_undefined_flag=' -expect_unresolved \*'
6481 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'
6482 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6483 $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'
6485 # Both c and cxx compiler support -rpath directly
6486 hardcode_libdir_flag_spec='-rpath $libdir'
6488 hardcode_libdir_separator=:
6492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6493 hardcode_shlibpath_var=no
6494 export_dynamic_flag_spec='${wl}-Bexport'
6495 runpath_var=LD_RUN_PATH
6496 hardcode_runpath_var=yes
6500 no_undefined_flag=' -z text'
6501 if test "$GCC" = yes; then
6502 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6503 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6504 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6506 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6507 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6508 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6510 hardcode_libdir_flag_spec='-R$libdir'
6511 hardcode_shlibpath_var=no
6513 solaris2.[0-5] | solaris2.[0-5].*) ;;
6514 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6515 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6517 link_all_deplibs=yes
6521 if test "x$host_vendor" = xsequent; then
6522 # Use $CC to link under sequent, because it throws in some extra .o
6523 # files that make .init and .fini sections work.
6524 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6526 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6528 hardcode_libdir_flag_spec='-L$libdir'
6530 hardcode_minus_L=yes
6531 hardcode_shlibpath_var=no
6535 case $host_vendor in
6537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6538 hardcode_direct=yes # is this really true???
6541 ## LD is ld it makes a PLAMLIB
6542 ## CC just makes a GrossModule.
6543 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6544 reload_cmds='$CC -r -o $output$reload_objs'
6548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6549 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6552 runpath_var='LD_RUN_PATH'
6553 hardcode_shlibpath_var=no
6557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6558 hardcode_shlibpath_var=no
6559 export_dynamic_flag_spec='-Bexport'
6563 if test -d /usr/nec; then
6564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6565 hardcode_shlibpath_var=no
6566 runpath_var=LD_RUN_PATH
6567 hardcode_runpath_var=yes
6573 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6576 hardcode_shlibpath_var=no
6577 hardcode_runpath_var=yes
6578 runpath_var=LD_RUN_PATH
6581 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6582 no_undefined_flag='${wl}-z ${wl}text'
6583 if test "$GCC" = yes; then
6584 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6586 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6588 runpath_var='LD_RUN_PATH'
6589 hardcode_shlibpath_var=no
6593 no_undefined_flag=' -z text'
6594 # $CC -shared without GNU ld will not create a library from C++
6595 # object files and a static libstdc++, better avoid it by now
6596 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6597 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6598 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6599 hardcode_libdir_flag_spec=
6600 hardcode_shlibpath_var=no
6601 runpath_var='LD_RUN_PATH'
6605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6606 hardcode_libdir_flag_spec='-L$libdir'
6607 hardcode_shlibpath_var=no
6616 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6617 echo "${ECHO_T}$ld_shlibs" >&6
6618 test "$ld_shlibs" = no && can_build_shared=no
6620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6621 if test "$GCC" = yes; then
6622 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6626 # Do we need to explicitly link libc?
6628 case "x$archive_cmds_need_lc" in
6630 # Assume -lc should be added
6631 archive_cmds_need_lc=yes
6633 if test "$enable_shared" = yes && test "$GCC" = yes; then
6634 case $archive_cmds in
6636 # FIXME: we may have to deal with multi-command sequences.
6639 # Test whether the compiler implicitly links with -lc since on some
6640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6641 # to ld, don't add -lc before -lgcc.
6642 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6643 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648 (eval $ac_compile) 2>&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } 2>conftest.err; then
6654 libobjs=conftest.$ac_objext
6656 wl=$lt_prog_compiler_wl
6662 lt_save_allow_undefined_flag=$allow_undefined_flag
6663 allow_undefined_flag=
6664 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6665 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }
6670 archive_cmds_need_lc=no
6672 archive_cmds_need_lc=yes
6674 allow_undefined_flag=$lt_save_allow_undefined_flag
6676 cat conftest.err 1>&5
6679 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6680 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6687 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6688 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6690 libname_spec='lib$name'
6698 shlibpath_overrides_runpath=unknown
6700 dynamic_linker="$host_os ld.so"
6701 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6702 if test "$GCC" = yes; then
6703 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6704 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6705 # if the path contains ";" then we assume it to be the separator
6706 # otherwise default to the standard path separator (i.e. ":") - it is
6707 # assumed that no part of a normal pathname contains ";" but that should
6708 # okay in the real world where ";" in dirpaths is itself problematic.
6709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6716 need_lib_prefix=unknown
6717 hardcode_into_libs=no
6719 # when you set need_version to no, make sure it does not cause -set_version
6720 # flags to be left without arguments
6721 need_version=unknown
6726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6727 shlibpath_var=LIBPATH
6729 # AIX 3 has no versioning support, so we append a major version to the name.
6730 soname_spec='${libname}${release}${shared_ext}$major'
6737 hardcode_into_libs=yes
6738 if test "$host_cpu" = ia64; then
6739 # AIX 5 supports IA64
6740 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6741 shlibpath_var=LD_LIBRARY_PATH
6743 # With GCC up to 2.95.x, collect2 would create an import file
6744 # for dependence libraries. The import file would start with
6745 # the line `#! .'. This would cause the generated library to
6746 # depend on `.', always an invalid library. This was fixed in
6747 # development snapshots of GCC prior to 3.0.
6749 aix4 | aix4.[01] | aix4.[01].*)
6750 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6752 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6759 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6760 # soname into executable. Probably we can add versioning support to
6761 # collect2, so additional links can be useful in future.
6762 if test "$aix_use_runtimelinking" = yes; then
6763 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6764 # instead of lib<name>.a to let people know that these are not
6765 # typical AIX shared libraries.
6766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6768 # We preserve .a as extension for shared libraries through AIX4.2
6769 # and later when we are not doing run time linking.
6770 library_names_spec='${libname}${release}.a $libname.a'
6771 soname_spec='${libname}${release}${shared_ext}$major'
6773 shlibpath_var=LIBPATH
6778 library_names_spec='$libname.ixlibrary $libname.a'
6779 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6780 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'
6784 library_names_spec='${libname}${shared_ext}'
6785 dynamic_linker="$host_os ld.so"
6786 shlibpath_var=LIBRARY_PATH
6792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6793 soname_spec='${libname}${release}${shared_ext}$major'
6794 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6795 shlibpath_var=LD_LIBRARY_PATH
6796 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6797 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6798 # the default ld.so.conf also contains /usr/contrib/lib and
6799 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6800 # libtool to hard-code these into programs
6803 cygwin* | mingw* | pw32*)
6804 version_type=windows
6809 case $GCC,$host_os in
6810 yes,cygwin* | yes,mingw* | yes,pw32*)
6811 library_names_spec='$libname.dll.a'
6812 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6813 postinstall_cmds='base_file=`basename \${file}`~
6814 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6815 dldir=$destdir/`dirname \$dlpath`~
6816 test -d \$dldir || mkdir -p \$dldir~
6817 $install_prog $dir/$dlname \$dldir/$dlname'
6818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6819 dlpath=$dir/\$dldll~
6821 shlibpath_overrides_runpath=yes
6825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6827 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6830 # MinGW DLLs use traditional 'lib' prefix
6831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6833 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6834 # It is most probably a Windows format PATH printed by
6835 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6836 # path with ; separators, and with drive letters. We can handle the
6837 # drive letters (cygwin fileutils understands them), so leave them,
6838 # especially as we might pass files found there to a mingw objdump,
6839 # which wouldn't understand a cygwinified path. Ahh.
6840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6846 # pw32 DLLs use 'pw' prefix rather than 'lib'
6847 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6853 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6856 dynamic_linker='Win32 ld.exe'
6857 # FIXME: first we should search . and the directory the executable is in
6861 darwin* | rhapsody*)
6862 dynamic_linker="$host_os dyld"
6866 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6867 soname_spec='${libname}${release}${major}$shared_ext'
6868 shlibpath_overrides_runpath=yes
6869 shlibpath_var=DYLD_LIBRARY_PATH
6870 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6871 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6872 if test "$GCC" = yes; then
6873 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"`
6875 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6877 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6885 soname_spec='${libname}${release}${shared_ext}$major'
6886 shlibpath_var=LD_LIBRARY_PATH
6897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6898 soname_spec='${libname}${release}${shared_ext}$major'
6899 shlibpath_var=LD_LIBRARY_PATH
6900 shlibpath_overrides_runpath=no
6901 hardcode_into_libs=yes
6902 dynamic_linker='GNU ld.so'
6906 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6907 version_type=freebsd-$objformat
6908 case $version_type in
6910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6919 shlibpath_var=LD_LIBRARY_PATH
6922 shlibpath_overrides_runpath=yes
6924 freebsd3.01* | freebsdelf3.01*)
6925 shlibpath_overrides_runpath=yes
6926 hardcode_into_libs=yes
6929 shlibpath_overrides_runpath=no
6930 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
6942 hardcode_into_libs=yes
6945 hpux9* | hpux10* | hpux11*)
6946 # Give a soname corresponding to the major version so that dld.sl refuses to
6947 # link against other versions.
6954 hardcode_into_libs=yes
6955 dynamic_linker="$host_os dld.so"
6956 shlibpath_var=LD_LIBRARY_PATH
6957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6959 soname_spec='${libname}${release}${shared_ext}$major'
6960 if test "X$HPUX_IA64_MODE" = X32; then
6961 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6963 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6969 hardcode_into_libs=yes
6970 dynamic_linker="$host_os dld.sl"
6971 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6974 soname_spec='${libname}${release}${shared_ext}$major'
6975 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6980 dynamic_linker="$host_os dld.sl"
6981 shlibpath_var=SHLIB_PATH
6982 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6984 soname_spec='${libname}${release}${shared_ext}$major'
6987 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6988 postinstall_cmds='chmod 555 $lib'
6991 irix5* | irix6* | nonstopux*)
6993 nonstopux*) version_type=nonstopux ;;
6995 if test "$lt_cv_prog_gnu_ld" = yes; then
7003 soname_spec='${libname}${release}${shared_ext}$major'
7004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7006 irix5* | nonstopux*)
7010 case $LD in # libtool.m4 will add one of these switches to LD
7011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7012 libsuff= shlibsuff= libmagic=32-bit;;
7013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7014 libsuff=32 shlibsuff=N32 libmagic=N32;;
7015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7017 *) libsuff= shlibsuff= libmagic=never-match;;
7021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7022 shlibpath_overrides_runpath=no
7023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7025 hardcode_into_libs=yes
7028 # No shared lib support for Linux oldld, aout, or coff.
7029 linux*oldld* | linux*aout* | linux*coff*)
7033 # This must be Linux ELF.
7038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7039 soname_spec='${libname}${release}${shared_ext}$major'
7040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7041 shlibpath_var=LD_LIBRARY_PATH
7042 shlibpath_overrides_runpath=no
7043 # This implies no fast_install, which is unacceptable.
7044 # Some rework will be needed to allow for fast_install
7045 # before this can be enabled.
7046 hardcode_into_libs=yes
7048 # We used to test for /lib/ld.so.1 and disable shared libraries on
7049 # powerpc, because MkLinux only supported shared libraries with the
7050 # GNU dynamic linker. Since this was broken with cross compilers,
7051 # most powerpc-linux boxes support dynamic linking these days and
7052 # people can always --disable-shared, the test was removed, and we
7053 # assume the GNU/Linux dynamic linker is in use.
7054 dynamic_linker='GNU/Linux ld.so'
7061 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7064 dynamic_linker='NetBSD (a.out) ld.so'
7066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7067 soname_spec='${libname}${release}${shared_ext}$major'
7068 dynamic_linker='NetBSD ld.elf_so'
7070 shlibpath_var=LD_LIBRARY_PATH
7071 shlibpath_overrides_runpath=yes
7072 hardcode_into_libs=yes
7077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7078 shlibpath_var=LD_LIBRARY_PATH
7079 shlibpath_overrides_runpath=yes
7086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7087 soname_spec='${libname}${release}${shared_ext}$major'
7088 shlibpath_var=LD_LIBRARY_PATH
7089 shlibpath_overrides_runpath=yes
7096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7098 shlibpath_var=LD_LIBRARY_PATH
7099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7101 openbsd2.[89] | openbsd2.[89].*)
7102 shlibpath_overrides_runpath=no
7105 shlibpath_overrides_runpath=yes
7109 shlibpath_overrides_runpath=yes
7114 libname_spec='$name'
7117 library_names_spec='$libname${shared_ext} $libname.a'
7118 dynamic_linker='OS/2 ld.exe'
7119 shlibpath_var=LIBPATH
7122 osf3* | osf4* | osf5*)
7126 soname_spec='${libname}${release}${shared_ext}$major'
7127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7128 shlibpath_var=LD_LIBRARY_PATH
7129 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7130 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7135 soname_spec='${libname}${release}${shared_ext}$major'
7136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7137 shlibpath_var=LD_LIBRARY_PATH
7144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7145 soname_spec='${libname}${release}${shared_ext}$major'
7146 shlibpath_var=LD_LIBRARY_PATH
7147 shlibpath_overrides_runpath=yes
7148 hardcode_into_libs=yes
7149 # ldd complains unless libraries are executable
7150 postinstall_cmds='chmod +x $lib'
7155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7156 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7157 shlibpath_var=LD_LIBRARY_PATH
7158 shlibpath_overrides_runpath=yes
7159 if test "$with_gnu_ld" = yes; then
7165 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7168 soname_spec='${libname}${release}${shared_ext}$major'
7169 shlibpath_var=LD_LIBRARY_PATH
7170 case $host_vendor in
7172 shlibpath_overrides_runpath=no
7174 export_dynamic_flag_spec='${wl}-Blargedynsym'
7175 runpath_var=LD_RUN_PATH
7183 shlibpath_overrides_runpath=no
7184 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7190 if test -d /usr/nec ;then
7192 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7193 soname_spec='$libname${shared_ext}.$major'
7194 shlibpath_var=LD_LIBRARY_PATH
7200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7201 soname_spec='${libname}${release}${shared_ext}$major'
7202 shlibpath_var=LD_LIBRARY_PATH
7209 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7210 echo "${ECHO_T}$dynamic_linker" >&6
7211 test "$dynamic_linker" = no && can_build_shared=no
7213 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7214 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7216 if test -n "$hardcode_libdir_flag_spec" || \
7217 test -n "$runpath_var " || \
7218 test "X$hardcode_automatic"="Xyes" ; then
7220 # We can hardcode non-existant directories.
7221 if test "$hardcode_direct" != no &&
7222 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7223 # have to relink, otherwise we might link with an installed library
7224 # when we should be linking with a yet-to-be-installed one
7225 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7226 test "$hardcode_minus_L" != no; then
7227 # Linking always hardcodes the temporary library directory.
7228 hardcode_action=relink
7230 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7231 hardcode_action=immediate
7234 # We cannot hardcode anything, or else we can only hardcode existing
7236 hardcode_action=unsupported
7238 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7239 echo "${ECHO_T}$hardcode_action" >&6
7241 if test "$hardcode_action" = relink; then
7242 # Fast installation is not supported
7243 enable_fast_install=no
7244 elif test "$shlibpath_overrides_runpath" = yes ||
7245 test "$enable_shared" = no; then
7246 # Fast installation is not necessary
7247 enable_fast_install=needless
7252 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7253 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7254 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7255 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7256 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7257 echo "$as_me:$LINENO: result: yes" >&5
7258 echo "${ECHO_T}yes" >&6
7260 # FIXME - insert some real tests, host_os isn't really good enough
7263 if test -n "$STRIP" ; then
7264 striplib="$STRIP -x"
7265 echo "$as_me:$LINENO: result: yes" >&5
7266 echo "${ECHO_T}yes" >&6
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7273 echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6
7279 if test "x$enable_dlopen" != xyes; then
7280 enable_dlopen=unknown
7281 enable_dlopen_self=unknown
7282 enable_dlopen_self_static=unknown
7289 lt_cv_dlopen="load_add_on"
7291 lt_cv_dlopen_self=yes
7295 lt_cv_dlopen="LoadLibrary"
7300 lt_cv_dlopen="dlopen"
7305 # if libdl is installed we need to link against it
7306 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7307 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7308 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 ac_check_lib_save_LIBS=$LIBS
7313 cat >conftest.$ac_ext <<_ACEOF
7314 #line $LINENO "configure"
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7321 /* Override any gcc2 internal prototype to avoid an error. */
7325 /* We use char because int might match the return type of a gcc2
7326 builtin and then its argument prototype would still apply. */
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7338 (eval $ac_link) 2>&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } &&
7342 { ac_try='test -s conftest$ac_exeext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_cv_lib_dl_dlopen=yes
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7353 ac_cv_lib_dl_dlopen=no
7355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7356 LIBS=$ac_check_lib_save_LIBS
7358 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7359 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7360 if test $ac_cv_lib_dl_dlopen = yes; then
7361 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7366 lt_cv_dlopen_self=yes
7373 echo "$as_me:$LINENO: checking for shl_load" >&5
7374 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7375 if test "${ac_cv_func_shl_load+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 cat >conftest.$ac_ext <<_ACEOF
7379 #line $LINENO "configure"
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7385 /* System header to define __stub macros and hopefully few prototypes,
7386 which can conflict with char shl_load (); below.
7387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7388 <limits.h> exists even on freestanding compilers. */
7390 # include <limits.h>
7392 # include <assert.h>
7394 /* Override any gcc2 internal prototype to avoid an error. */
7399 /* We use char because int might match the return type of a gcc2
7400 builtin and then its argument prototype would still apply. */
7402 /* The GNU C library defines this for functions which it implements
7403 to always fail with ENOSYS. Some functions are actually named
7404 something starting with __ and the normal name is an alias. */
7405 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7408 char (*f) () = shl_load;
7417 return f != shl_load;
7422 rm -f conftest.$ac_objext conftest$ac_exeext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7424 (eval $ac_link) 2>&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -s conftest$ac_exeext'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7434 ac_cv_func_shl_load=yes
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 ac_cv_func_shl_load=no
7441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7443 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7444 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7445 if test $ac_cv_func_shl_load = yes; then
7446 lt_cv_dlopen="shl_load"
7448 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7449 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7450 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 ac_check_lib_save_LIBS=$LIBS
7455 cat >conftest.$ac_ext <<_ACEOF
7456 #line $LINENO "configure"
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7463 /* Override any gcc2 internal prototype to avoid an error. */
7467 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480 (eval $ac_link) 2>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -s conftest$ac_exeext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_lib_dld_shl_load=yes
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 ac_cv_lib_dld_shl_load=no
7497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7498 LIBS=$ac_check_lib_save_LIBS
7500 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7501 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7502 if test $ac_cv_lib_dld_shl_load = yes; then
7503 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7505 echo "$as_me:$LINENO: checking for dlopen" >&5
7506 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7507 if test "${ac_cv_func_dlopen+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 cat >conftest.$ac_ext <<_ACEOF
7511 #line $LINENO "configure"
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 /* System header to define __stub macros and hopefully few prototypes,
7518 which can conflict with char dlopen (); below.
7519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7520 <limits.h> exists even on freestanding compilers. */
7522 # include <limits.h>
7524 # include <assert.h>
7526 /* Override any gcc2 internal prototype to avoid an error. */
7531 /* We use char because int might match the return type of a gcc2
7532 builtin and then its argument prototype would still apply. */
7534 /* The GNU C library defines this for functions which it implements
7535 to always fail with ENOSYS. Some functions are actually named
7536 something starting with __ and the normal name is an alias. */
7537 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7540 char (*f) () = dlopen;
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -s conftest$ac_exeext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_cv_func_dlopen=yes
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 ac_cv_func_dlopen=no
7573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7575 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7576 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7577 if test $ac_cv_func_dlopen = yes; then
7578 lt_cv_dlopen="dlopen"
7580 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7581 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 ac_check_lib_save_LIBS=$LIBS
7587 cat >conftest.$ac_ext <<_ACEOF
7588 #line $LINENO "configure"
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7595 /* Override any gcc2 internal prototype to avoid an error. */
7599 /* We use char because int might match the return type of a gcc2
7600 builtin and then its argument prototype would still apply. */
7610 rm -f conftest.$ac_objext conftest$ac_exeext
7611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7612 (eval $ac_link) 2>&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } &&
7616 { ac_try='test -s conftest$ac_exeext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 ac_cv_lib_dl_dlopen=yes
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7627 ac_cv_lib_dl_dlopen=no
7629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7630 LIBS=$ac_check_lib_save_LIBS
7632 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7633 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7634 if test $ac_cv_lib_dl_dlopen = yes; then
7635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7637 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7638 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7639 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 ac_check_lib_save_LIBS=$LIBS
7644 cat >conftest.$ac_ext <<_ACEOF
7645 #line $LINENO "configure"
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h. */
7652 /* Override any gcc2 internal prototype to avoid an error. */
7656 /* We use char because int might match the return type of a gcc2
7657 builtin and then its argument prototype would still apply. */
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669 (eval $ac_link) 2>&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
7673 { ac_try='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_lib_svld_dlopen=yes
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_cv_lib_svld_dlopen=no
7686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7687 LIBS=$ac_check_lib_save_LIBS
7689 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7691 if test $ac_cv_lib_svld_dlopen = yes; then
7692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7694 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 ac_check_lib_save_LIBS=$LIBS
7701 cat >conftest.$ac_ext <<_ACEOF
7702 #line $LINENO "configure"
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7709 /* Override any gcc2 internal prototype to avoid an error. */
7713 /* We use char because int might match the return type of a gcc2
7714 builtin and then its argument prototype would still apply. */
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726 (eval $ac_link) 2>&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try='test -s conftest$ac_exeext'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; }; then
7736 ac_cv_lib_dld_dld_link=yes
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7741 ac_cv_lib_dld_dld_link=no
7743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7744 LIBS=$ac_check_lib_save_LIBS
7746 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7747 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7748 if test $ac_cv_lib_dld_dld_link = yes; then
7749 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7770 if test "x$lt_cv_dlopen" != xno; then
7776 case $lt_cv_dlopen in
7778 save_CPPFLAGS="$CPPFLAGS"
7779 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7781 save_LDFLAGS="$LDFLAGS"
7782 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7785 LIBS="$lt_cv_dlopen_libs $LIBS"
7787 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7788 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7789 if test "${lt_cv_dlopen_self+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 if test "$cross_compiling" = yes; then :
7793 lt_cv_dlopen_self=cross
7795 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7796 lt_status=$lt_dlunknown
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7798 "configure"
7799 #include "confdefs.h"
7808 # define LT_DLGLOBAL RTLD_GLOBAL
7811 # define LT_DLGLOBAL DL_GLOBAL
7813 # define LT_DLGLOBAL 0
7817 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7818 find out it does not work in some platform. */
7819 #ifndef LT_DLLAZY_OR_NOW
7821 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7824 # define LT_DLLAZY_OR_NOW DL_LAZY
7827 # define LT_DLLAZY_OR_NOW RTLD_NOW
7830 # define LT_DLLAZY_OR_NOW DL_NOW
7832 # define LT_DLLAZY_OR_NOW 0
7840 extern "C" void exit (int);
7843 void fnord() { int i=42;}
7846 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7847 int status = $lt_dlunknown;
7851 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7852 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7853 /* dlclose (self); */
7859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7860 (eval $ac_link) 2>&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7864 (./conftest; exit; ) 2>/dev/null
7867 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7868 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7869 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7872 # compilation failed
7873 lt_cv_dlopen_self=no
7880 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7881 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7883 if test "x$lt_cv_dlopen_self" = xyes; then
7884 LDFLAGS="$LDFLAGS $link_static_flag"
7885 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7886 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7887 if test "${lt_cv_dlopen_self_static+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 if test "$cross_compiling" = yes; then :
7891 lt_cv_dlopen_self_static=cross
7893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7894 lt_status=$lt_dlunknown
7895 cat > conftest.$ac_ext <<EOF
7896 #line 7896 "configure"
7897 #include "confdefs.h"
7906 # define LT_DLGLOBAL RTLD_GLOBAL
7909 # define LT_DLGLOBAL DL_GLOBAL
7911 # define LT_DLGLOBAL 0
7915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7916 find out it does not work in some platform. */
7917 #ifndef LT_DLLAZY_OR_NOW
7919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7922 # define LT_DLLAZY_OR_NOW DL_LAZY
7925 # define LT_DLLAZY_OR_NOW RTLD_NOW
7928 # define LT_DLLAZY_OR_NOW DL_NOW
7930 # define LT_DLLAZY_OR_NOW 0
7938 extern "C" void exit (int);
7941 void fnord() { int i=42;}
7944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7945 int status = $lt_dlunknown;
7949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7950 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7951 /* dlclose (self); */
7957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7958 (eval $ac_link) 2>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7962 (./conftest; exit; ) 2>/dev/null
7965 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7966 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7967 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7970 # compilation failed
7971 lt_cv_dlopen_self_static=no
7978 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7979 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7982 CPPFLAGS="$save_CPPFLAGS"
7983 LDFLAGS="$save_LDFLAGS"
7988 case $lt_cv_dlopen_self in
7989 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7990 *) enable_dlopen_self=unknown ;;
7993 case $lt_cv_dlopen_self_static in
7994 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7995 *) enable_dlopen_self_static=unknown ;;
8000 # Report which librarie types wil actually be built
8001 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8002 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8003 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8004 echo "${ECHO_T}$can_build_shared" >&6
8006 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8007 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8008 test "$can_build_shared" = "no" && enable_shared=no
8010 # On AIX, shared libraries and static libraries use the same namespace, and
8011 # are all built from PIC.
8014 test "$enable_shared" = yes && enable_static=no
8015 if test -n "$RANLIB"; then
8016 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8017 postinstall_cmds='$RANLIB $lib'
8022 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8023 test "$enable_shared" = yes && enable_static=no
8026 darwin* | rhapsody*)
8027 if test "$GCC" = yes; then
8028 archive_cmds_need_lc=no
8030 rhapsody* | darwin1.[012])
8031 allow_undefined_flag='-undefined suppress'
8034 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8035 allow_undefined_flag='-flat_namespace -undefined suppress'
8037 case ${MACOSX_DEPLOYMENT_TARGET} in
8039 allow_undefined_flag='-flat_namespace -undefined suppress'
8042 allow_undefined_flag='-undefined dynamic_lookup'
8048 output_verbose_link_cmd='echo'
8049 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8050 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8051 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8052 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}'
8053 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8055 hardcode_automatic=yes
8056 hardcode_shlibpath_var=unsupported
8057 whole_archive_flag_spec='-all_load $convenience'
8058 link_all_deplibs=yes
8064 echo "$as_me:$LINENO: result: $enable_shared" >&5
8065 echo "${ECHO_T}$enable_shared" >&6
8067 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8068 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8069 # Make sure either enable_shared or enable_static is yes.
8070 test "$enable_shared" = yes || enable_static=yes
8071 echo "$as_me:$LINENO: result: $enable_static" >&5
8072 echo "${ECHO_T}$enable_static" >&6
8074 # The else clause should only fire when bootstrapping the
8075 # libtool distribution, otherwise you forgot to ship ltmain.sh
8076 # with your package, and you will get complaints that there are
8077 # no rules to generate ltmain.sh.
8078 if test -f "$ltmain"; then
8079 # See if we are running on zsh, and set the options which allow our commands through
8080 # without removal of \ escapes.
8081 if test -n "${ZSH_VERSION+set}" ; then
8082 setopt NO_GLOB_SUBST
8084 # Now quote all the things that may contain metacharacters while being
8085 # careful not to overquote the AC_SUBSTed values. We take copies of the
8086 # variables and quote the copies for generation of the libtool script.
8087 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8089 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8090 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8091 deplibs_check_method reload_flag reload_cmds need_locks \
8092 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8093 lt_cv_sys_global_symbol_to_c_name_address \
8094 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8095 old_postinstall_cmds old_postuninstall_cmds \
8099 lt_prog_compiler_wl \
8100 lt_prog_compiler_pic \
8101 lt_prog_compiler_static \
8102 lt_prog_compiler_no_builtin_flag \
8103 export_dynamic_flag_spec \
8104 thread_safe_flag_spec \
8105 whole_archive_flag_spec \
8106 enable_shared_with_static_runtimes \
8108 old_archive_from_new_cmds \
8113 compiler_lib_search_path \
8115 archive_expsym_cmds \
8117 postuninstall_cmds \
8118 old_archive_from_expsyms_cmds \
8119 allow_undefined_flag \
8121 export_symbols_cmds \
8122 hardcode_libdir_flag_spec \
8123 hardcode_libdir_flag_spec_ld \
8124 hardcode_libdir_separator \
8125 hardcode_automatic \
8127 module_expsym_cmds \
8128 lt_cv_prog_compiler_c_o \
8133 old_archive_cmds | \
8134 old_archive_from_new_cmds | \
8136 archive_expsym_cmds | \
8138 module_expsym_cmds | \
8139 old_archive_from_expsyms_cmds | \
8140 export_symbols_cmds | \
8141 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8142 postinstall_cmds | postuninstall_cmds | \
8143 old_postinstall_cmds | old_postuninstall_cmds | \
8144 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8145 # Double-quote double-evaled strings.
8146 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8149 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8155 *'\$0 --fallback-echo"')
8156 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8161 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8163 { echo "$as_me:$LINENO: creating $ofile" >&5
8164 echo "$as_me: creating $ofile" >&6;}
8166 cat <<__EOF__ >> "$cfgfile"
8169 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8170 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8171 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8173 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8174 # Free Software Foundation, Inc.
8176 # This file is part of GNU Libtool:
8177 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8179 # This program is free software; you can redistribute it and/or modify
8180 # it under the terms of the GNU General Public License as published by
8181 # the Free Software Foundation; either version 2 of the License, or
8182 # (at your option) any later version.
8184 # This program is distributed in the hope that it will be useful, but
8185 # WITHOUT ANY WARRANTY; without even the implied warranty of
8186 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8187 # General Public License for more details.
8189 # You should have received a copy of the GNU General Public License
8190 # along with this program; if not, write to the Free Software
8191 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8193 # As a special exception to the GNU General Public License, if you
8194 # distribute this file as part of a program that contains a
8195 # configuration script generated by Autoconf, you may include it under
8196 # the same distribution terms that you use for the rest of that program.
8198 # A sed program that does not truncate output.
8201 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8202 Xsed="$SED -e s/^X//"
8204 # The HP-UX ksh and POSIX shell print the target directory to stdout
8206 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8208 # The names of the tagged configurations supported by this script.
8211 # ### BEGIN LIBTOOL CONFIG
8213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8215 # Shell to use when invoking shell scripts.
8218 # Whether or not to build shared libraries.
8219 build_libtool_libs=$enable_shared
8221 # Whether or not to build static libraries.
8222 build_old_libs=$enable_static
8224 # Whether or not to add -lc for building shared libraries.
8225 build_libtool_need_lc=$archive_cmds_need_lc
8227 # Whether or not to disallow shared libs when runtime libs are static
8228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8230 # Whether or not to optimize for fast installation.
8231 fast_install=$enable_fast_install
8234 host_alias=$host_alias
8237 # An echo program that does not interpret backslashes.
8242 AR_FLAGS=$lt_AR_FLAGS
8247 # A language-specific compiler.
8250 # Is the compiler the GNU C compiler?
8256 # The linker used to build libraries.
8259 # Whether we need hard or soft links.
8262 # A BSD-compatible nm program.
8265 # A symbol stripping program
8268 # Used to examine libraries when file_magic_cmd begins "file"
8269 MAGIC_CMD=$MAGIC_CMD
8271 # Used on cygwin: DLL creation program.
8274 # Used on cygwin: object dumper.
8277 # Used on cygwin: assembler.
8280 # The name of the directory that contains temporary libtool files.
8283 # How to create reloadable object files.
8284 reload_flag=$lt_reload_flag
8285 reload_cmds=$lt_reload_cmds
8287 # How to pass a linker flag through the compiler.
8288 wl=$lt_lt_prog_compiler_wl
8290 # Object file suffix (normally "o").
8293 # Old archive suffix (normally "a").
8296 # Shared library suffix (normally ".so").
8299 # Executable file suffix (normally "").
8302 # Additional compiler flags for building library objects.
8303 pic_flag=$lt_lt_prog_compiler_pic
8306 # What is the maximum length of a command?
8307 max_cmd_len=$lt_cv_sys_max_cmd_len
8309 # Does compiler simultaneously support -c and -o options?
8310 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8312 # Must we lock files when doing compilation ?
8313 need_locks=$lt_need_locks
8315 # Do we need the lib prefix for modules?
8316 need_lib_prefix=$need_lib_prefix
8318 # Do we need a version for libraries?
8319 need_version=$need_version
8321 # Whether dlopen is supported.
8322 dlopen_support=$enable_dlopen
8324 # Whether dlopen of programs is supported.
8325 dlopen_self=$enable_dlopen_self
8327 # Whether dlopen of statically linked programs is supported.
8328 dlopen_self_static=$enable_dlopen_self_static
8330 # Compiler flag to prevent dynamic linking.
8331 link_static_flag=$lt_lt_prog_compiler_static
8333 # Compiler flag to turn off builtin functions.
8334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8336 # Compiler flag to allow reflexive dlopens.
8337 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8339 # Compiler flag to generate shared objects directly from archives.
8340 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8342 # Compiler flag to generate thread-safe objects.
8343 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8345 # Library versioning type.
8346 version_type=$version_type
8348 # Format of library name prefix.
8349 libname_spec=$lt_libname_spec
8351 # List of archive names. First name is the real one, the rest are links.
8352 # The last name is the one that the linker finds with -lNAME.
8353 library_names_spec=$lt_library_names_spec
8355 # The coded name of the library, if different from the real name.
8356 soname_spec=$lt_soname_spec
8358 # Commands used to build and install an old-style archive.
8360 old_archive_cmds=$lt_old_archive_cmds
8361 old_postinstall_cmds=$lt_old_postinstall_cmds
8362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8364 # Create an old-style archive from a shared archive.
8365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8367 # Create a temporary old-style archive to link instead of a shared archive.
8368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8370 # Commands used to build and install a shared archive.
8371 archive_cmds=$lt_archive_cmds
8372 archive_expsym_cmds=$lt_archive_expsym_cmds
8373 postinstall_cmds=$lt_postinstall_cmds
8374 postuninstall_cmds=$lt_postuninstall_cmds
8376 # Commands used to build a loadable module (assumed same as above if empty)
8377 module_cmds=$lt_module_cmds
8378 module_expsym_cmds=$lt_module_expsym_cmds
8380 # Commands to strip libraries.
8381 old_striplib=$lt_old_striplib
8382 striplib=$lt_striplib
8384 # Dependencies to place before the objects being linked to create a
8386 predep_objects=$lt_predep_objects
8388 # Dependencies to place after the objects being linked to create a
8390 postdep_objects=$lt_postdep_objects
8392 # Dependencies to place before the objects being linked to create a
8396 # Dependencies to place after the objects being linked to create a
8398 postdeps=$lt_postdeps
8400 # The library search path used internally by the compiler when linking
8402 compiler_lib_search_path=$lt_compiler_lib_search_path
8404 # Method to check whether dependent libraries are shared objects.
8405 deplibs_check_method=$lt_deplibs_check_method
8407 # Command to use when deplibs_check_method == file_magic.
8408 file_magic_cmd=$lt_file_magic_cmd
8410 # Flag that allows shared libraries with undefined symbols to be built.
8411 allow_undefined_flag=$lt_allow_undefined_flag
8413 # Flag that forces no undefined symbols.
8414 no_undefined_flag=$lt_no_undefined_flag
8416 # Commands used to finish a libtool library installation in a directory.
8417 finish_cmds=$lt_finish_cmds
8419 # Same as above, but a single script fragment to be evaled but not shown.
8420 finish_eval=$lt_finish_eval
8422 # Take the output of nm and produce a listing of raw symbols and C names.
8423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8425 # Transform the output of nm in a proper C declaration
8426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8428 # Transform the output of nm in a C name address pair
8429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8431 # This is the shared library runtime path variable.
8432 runpath_var=$runpath_var
8434 # This is the shared library path variable.
8435 shlibpath_var=$shlibpath_var
8437 # Is shlibpath searched before the hard-coded library search path?
8438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8440 # How to hardcode a shared library path into an executable.
8441 hardcode_action=$hardcode_action
8443 # Whether we should hardcode library paths into libraries.
8444 hardcode_into_libs=$hardcode_into_libs
8446 # Flag to hardcode \$libdir into a binary during linking.
8447 # This must work even if \$libdir does not exist.
8448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8450 # If ld is used when linking, flag to hardcode \$libdir into
8451 # a binary during linking. This must work even if \$libdir does
8453 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8455 # Whether we need a single -rpath flag with a separated argument.
8456 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8458 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8460 hardcode_direct=$hardcode_direct
8462 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8464 hardcode_minus_L=$hardcode_minus_L
8466 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8467 # the resulting binary.
8468 hardcode_shlibpath_var=$hardcode_shlibpath_var
8470 # Set to yes if building a shared library automatically hardcodes DIR into the library
8471 # and all subsequent libraries and executables linked against it.
8472 hardcode_automatic=$hardcode_automatic
8474 # Variables whose values should be saved in libtool wrapper scripts and
8475 # restored at relink time.
8476 variables_saved_for_relink="$variables_saved_for_relink"
8478 # Whether libtool must link a program against all its dependency libraries.
8479 link_all_deplibs=$link_all_deplibs
8481 # Compile-time system search path for libraries
8482 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8484 # Run-time system search path for libraries
8485 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8487 # Fix the shell variable \$srcfile for the compiler.
8488 fix_srcfile_path="$fix_srcfile_path"
8490 # Set to yes if exported symbols are required.
8491 always_export_symbols=$always_export_symbols
8493 # The commands to list exported symbols.
8494 export_symbols_cmds=$lt_export_symbols_cmds
8496 # The commands to extract the exported symbol list from a shared archive.
8497 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8499 # Symbols that should not be listed in the preloaded symbols.
8500 exclude_expsyms=$lt_exclude_expsyms
8502 # Symbols that must always be exported.
8503 include_expsyms=$lt_include_expsyms
8505 # ### END LIBTOOL CONFIG
8512 cat <<\EOF >> "$cfgfile"
8514 # AIX sometimes has problems with the GCC collect2 program. For some
8515 # reason, if we set the COLLECT_NAMES environment variable, the problems
8516 # vanish in a puff of smoke.
8517 if test "X${COLLECT_NAMES+set}" != Xset; then
8519 export COLLECT_NAMES
8525 # We use sed instead of cat because bash on DJGPP gets confused if
8526 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8527 # text mode, it properly converts lines to CR/LF. This bash problem
8528 # is reportedly fixed, but why not run on old versions too?
8529 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8531 mv -f "$cfgfile" "$ofile" || \
8532 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8536 # If there is no Makefile yet, we rely on a make rule to execute
8537 # `config.status --recheck' to rerun these tests and create the
8538 # libtool script then.
8539 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8540 if test -f "$ltmain_in"; then
8541 test -f Makefile && make "$ltmain"
8547 ac_cpp='$CPP $CPPFLAGS'
8548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8555 # Check whether --with-tags or --without-tags was given.
8556 if test "${with_tags+set}" = set; then
8557 withval="$with_tags"
8561 if test -f "$ltmain" && test -n "$tagnames"; then
8562 if test ! -f "${ofile}"; then
8563 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8564 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8567 if test -z "$LTCC"; then
8568 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8569 if test -z "$LTCC"; then
8570 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8571 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8574 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8578 # Extract list of available tagged configurations in $ofile.
8579 # Note that this assumes the entire list is on one line.
8580 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8583 for tagname in $tagnames; do
8585 # Check whether tagname contains only valid characters
8586 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8588 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8589 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8590 { (exit 1); exit 1; }; }
8594 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8596 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8597 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8598 { (exit 1); exit 1; }; }
8601 # Update the list of available tags.
8602 if test -n "$tagname"; then
8603 echo appending configuration tag \"$tagname\" to $ofile
8607 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8609 ac_cpp='$CXXCPP $CPPFLAGS'
8610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8617 archive_cmds_need_lc_CXX=no
8618 allow_undefined_flag_CXX=
8619 always_export_symbols_CXX=no
8620 archive_expsym_cmds_CXX=
8621 export_dynamic_flag_spec_CXX=
8622 hardcode_direct_CXX=no
8623 hardcode_libdir_flag_spec_CXX=
8624 hardcode_libdir_flag_spec_ld_CXX=
8625 hardcode_libdir_separator_CXX=
8626 hardcode_minus_L_CXX=no
8627 hardcode_automatic_CXX=no
8629 module_expsym_cmds_CXX=
8630 link_all_deplibs_CXX=unknown
8631 old_archive_cmds_CXX=$old_archive_cmds
8632 no_undefined_flag_CXX=
8633 whole_archive_flag_spec_CXX=
8634 enable_shared_with_static_runtimes_CXX=no
8636 # Dependencies to place before and after the object being linked:
8638 postdep_objects_CXX=
8641 compiler_lib_search_path_CXX=
8643 # Source file extension for C++ test sources.
8646 # Object file extension for compiled C++ test sources.
8650 # Code to be used in simple compile tests
8651 lt_simple_compile_test_code="int some_variable = 0;\n"
8653 # Code to be used in simple link tests
8654 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8656 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8658 # If no C compiler was specified, use CC.
8661 # Allow CC to be a program name with arguments.
8665 # Allow CC to be a program name with arguments.
8670 lt_save_with_gnu_ld=$with_gnu_ld
8671 lt_save_path_LD=$lt_cv_path_LD
8672 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8673 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8675 unset lt_cv_prog_gnu_ld
8677 if test -n "${lt_cv_path_LDCXX+set}"; then
8678 lt_cv_path_LD=$lt_cv_path_LDCXX
8682 test -z "${LDCXX+set}" || LD=$LDCXX
8686 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8688 # We don't want -fno-exception wen compiling C++ code, so set the
8689 # no_builtin_flag separately
8690 if test "$GXX" = yes; then
8691 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8693 lt_prog_compiler_no_builtin_flag_CXX=
8696 if test "$GXX" = yes; then
8697 # Set up default GNU C++ configuration
8700 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8701 if test "${with_gnu_ld+set}" = set; then
8702 withval="$with_gnu_ld"
8703 test "$withval" = no || with_gnu_ld=yes
8708 if test "$GCC" = yes; then
8709 # Check if gcc -print-prog-name=ld gives a path.
8710 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8711 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8714 # gcc leaves a trailing carriage return which upsets mingw
8715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8720 # Accept absolute paths.
8722 re_direlt='/[^/][^/]*/\.\./'
8723 # Canonicalize the pathname of ld
8724 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8725 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8726 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8728 test -z "$LD" && LD="$ac_prog"
8731 # If it fails, then pretend we aren't using GCC.
8735 # If it is relative, then search for the first ld in PATH.
8739 elif test "$with_gnu_ld" = yes; then
8740 echo "$as_me:$LINENO: checking for GNU ld" >&5
8741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8743 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8746 if test "${lt_cv_path_LD+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 if test -z "$LD"; then
8750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8751 for ac_dir in $PATH; do
8753 test -z "$ac_dir" && ac_dir=.
8754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8755 lt_cv_path_LD="$ac_dir/$ac_prog"
8756 # Check to see if the program is GNU ld. I'd rather use --version,
8757 # but apparently some GNU ld's only accept -v.
8758 # Break only if it was the GNU/non-GNU ld that we prefer.
8759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8760 *GNU* | *'with BFD'*)
8761 test "$with_gnu_ld" != no && break
8764 test "$with_gnu_ld" != yes && break
8771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8776 if test -n "$LD"; then
8777 echo "$as_me:$LINENO: result: $LD" >&5
8778 echo "${ECHO_T}$LD" >&6
8780 echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6
8783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8785 { (exit 1); exit 1; }; }
8786 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8792 case `$LD -v 2>&1 </dev/null` in
8793 *GNU* | *'with BFD'*)
8794 lt_cv_prog_gnu_ld=yes
8797 lt_cv_prog_gnu_ld=no
8801 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8802 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
8803 with_gnu_ld=$lt_cv_prog_gnu_ld
8807 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8808 # archiving commands below assume that GNU ld is being used.
8809 if test "$with_gnu_ld" = yes; then
8810 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811 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'
8813 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8816 # If archive_cmds runs LD, not CC, wlarc should be empty
8817 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8818 # investigate it a little bit more. (MM)
8821 # ancient GNU ld didn't support --whole-archive et. al.
8822 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8823 grep 'no-whole-archive' > /dev/null; then
8824 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8826 whole_archive_flag_spec_CXX=
8832 # A generic and very simple default shared library creation
8833 # command for GNU C++ for the case where it uses the native
8834 # linker, instead of GNU ld. If possible, this setting should
8835 # overridden to take advantage of the native linker features on
8836 # the platform it is being used on.
8837 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8840 # Commands to make compiler produce verbose output that lists
8841 # what "hidden" libraries, object files and flags are used when
8842 # linking a shared library.
8843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8851 # PORTME: fill in a description of your system's C++ link characteristics
8852 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8853 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8857 # FIXME: insert proper C++ library support
8861 if test "$host_cpu" = ia64; then
8862 # On IA64, the linker does run time linking by default, so we don't
8863 # have to do anything special.
8864 aix_use_runtimelinking=no
8865 exp_sym_flag='-Bexport'
8868 aix_use_runtimelinking=no
8870 # Test if we are trying to use run time linking or normal
8871 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8872 # need to do runtime linking.
8873 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8874 for ld_flag in $LDFLAGS; do
8877 aix_use_runtimelinking=yes
8884 exp_sym_flag='-bexport'
8885 no_entry_flag='-bnoentry'
8888 # When large executables or shared objects are built, AIX ld can
8889 # have problems creating the table of contents. If linking a library
8890 # or program results in "error TOC overflow" add -mminimal-toc to
8891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8895 hardcode_direct_CXX=yes
8896 hardcode_libdir_separator_CXX=':'
8897 link_all_deplibs_CXX=yes
8899 if test "$GXX" = yes; then
8900 case $host_os in aix4.012|aix4.012.*)
8901 # We only want to do this on AIX 4.2 and lower, the check
8902 # below for broken collect2 doesn't work under 4.3+
8903 collect2name=`${CC} -print-prog-name=collect2`
8904 if test -f "$collect2name" && \
8905 strings "$collect2name" | grep resolve_lib_name >/dev/null
8907 # We have reworked collect2
8908 hardcode_direct_CXX=yes
8910 # We have old collect2
8911 hardcode_direct_CXX=unsupported
8912 # It fails to find uninstalled libraries when the uninstalled
8913 # path is not listed in the libpath. Setting hardcode_minus_L
8914 # to unsupported forces relinking
8915 hardcode_minus_L_CXX=yes
8916 hardcode_libdir_flag_spec_CXX='-L$libdir'
8917 hardcode_libdir_separator_CXX=
8920 shared_flag='-shared'
8923 if test "$host_cpu" = ia64; then
8924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8925 # chokes on -Wl,-G. The following line is correct:
8928 if test "$aix_use_runtimelinking" = yes; then
8929 shared_flag='${wl}-G'
8931 shared_flag='${wl}-bM:SRE'
8936 # It seems that -bexpall does not export symbols beginning with
8937 # underscore (_), so it is better to generate a list of symbols to export.
8938 always_export_symbols_CXX=yes
8939 if test "$aix_use_runtimelinking" = yes; then
8940 # Warning - without using the other runtime loading flags (-brtl),
8941 # -berok will link without error, but may produce a broken library.
8942 allow_undefined_flag_CXX='-berok'
8943 # Determine the default libpath from the value encoded in an empty executable.
8944 cat >conftest.$ac_ext <<_ACEOF
8945 #line $LINENO "configure"
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962 (eval $ac_link) 2>&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8975 # Check for a 64-bit object if we didn't find anything.
8976 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; }
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8986 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8988 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"
8990 if test "$host_cpu" = ia64; then
8991 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
8992 allow_undefined_flag_CXX="-z nodefs"
8993 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"
8995 # Determine the default libpath from the value encoded in an empty executable.
8996 cat >conftest.$ac_ext <<_ACEOF
8997 #line $LINENO "configure"
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try='test -s conftest$ac_exeext'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9027 # Check for a 64-bit object if we didn't find anything.
9028 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; }
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9038 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9039 # Warning - without using the other run time loading flags,
9040 # -berok will link without error, but may produce a broken library.
9041 no_undefined_flag_CXX=' ${wl}-bernotok'
9042 allow_undefined_flag_CXX=' ${wl}-berok'
9043 # -bexpall does not export symbols beginning with underscore (_)
9044 always_export_symbols_CXX=yes
9045 # Exported symbols can be pulled into shared objects from archives
9046 whole_archive_flag_spec_CXX=' '
9047 archive_cmds_need_lc_CXX=yes
9048 # This is similar to how AIX traditionally builds it's shared libraries.
9049 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'
9054 case $cc_basename in
9056 # FIXME: insert proper C++ library support
9062 cygwin* | mingw* | pw32*)
9063 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9064 # as there is no search path for DLLs.
9065 hardcode_libdir_flag_spec_CXX='-L$libdir'
9066 allow_undefined_flag_CXX=unsupported
9067 always_export_symbols_CXX=no
9068 enable_shared_with_static_runtimes_CXX=yes
9070 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9071 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'
9072 # If the export-symbols file already is a .def file (1st line
9073 # is EXPORTS), use it as is; otherwise, prepend...
9074 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9075 cp $export_symbols $output_objdir/$soname.def;
9077 echo EXPORTS > $output_objdir/$soname.def;
9078 cat $export_symbols >> $output_objdir/$soname.def;
9080 $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'
9086 darwin* | rhapsody*)
9087 if test "$GXX" = yes; then
9088 archive_cmds_need_lc_CXX=no
9090 rhapsody* | darwin1.[012])
9091 allow_undefined_flag_CXX='-undefined suppress'
9094 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9095 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9097 case ${MACOSX_DEPLOYMENT_TARGET} in
9099 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9102 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9108 lt_int_apple_cc_single_mod=no
9109 output_verbose_link_cmd='echo'
9110 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9111 lt_int_apple_cc_single_mod=yes
9113 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9114 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9116 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'
9118 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9120 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9121 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9122 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}'
9124 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}'
9126 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9127 hardcode_direct_CXX=no
9128 hardcode_automatic_CXX=yes
9129 hardcode_shlibpath_var_CXX=unsupported
9130 whole_archive_flag_spec_CXX='-all_load $convenience'
9131 link_all_deplibs_CXX=yes
9138 case $cc_basename in
9140 # FIXME: insert proper C++ library support
9144 # Green Hills C++ Compiler
9145 # FIXME: insert proper C++ library support
9149 # FIXME: insert proper C++ library support
9155 # C++ shared libraries reported to be fairly broken before switch to ELF
9159 archive_cmds_need_lc_CXX=no
9161 freebsd* | kfreebsd*-gnu)
9162 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9169 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9170 hardcode_libdir_separator_CXX=:
9171 export_dynamic_flag_spec_CXX='${wl}-E'
9172 hardcode_direct_CXX=yes
9173 hardcode_minus_L_CXX=yes # Not in the search PATH,
9174 # but as the default
9175 # location of the library.
9177 case $cc_basename in
9179 # FIXME: insert proper C++ library support
9183 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'
9184 # Commands to make compiler produce verbose output that lists
9185 # what "hidden" libraries, object files and flags are used when
9186 # linking a shared library.
9188 # There doesn't appear to be a way to prevent this compiler from
9189 # explicitly linking system object files so we need to strip them
9190 # from the output so that they don't get included in the library
9192 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'
9195 if test "$GXX" = yes; then
9196 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'
9198 # FIXME: insert proper C++ library support
9205 if test $with_gnu_ld = no; then
9208 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9209 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9210 hardcode_libdir_separator_CXX=:
9213 hardcode_libdir_flag_spec_CXX='-L$libdir'
9216 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9217 hardcode_libdir_separator_CXX=:
9218 export_dynamic_flag_spec_CXX='${wl}-E'
9224 hardcode_direct_CXX=no
9225 hardcode_shlibpath_var_CXX=no
9228 hardcode_direct_CXX=no
9229 hardcode_shlibpath_var_CXX=no
9230 hardcode_minus_L_CXX=yes # Not in the search PATH,
9231 # but as the default
9232 # location of the library.
9235 hardcode_direct_CXX=yes
9236 hardcode_minus_L_CXX=yes # Not in the search PATH,
9237 # but as the default
9238 # location of the library.
9242 case $cc_basename in
9244 # FIXME: insert proper C++ library support
9250 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9253 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9256 # Commands to make compiler produce verbose output that lists
9257 # what "hidden" libraries, object files and flags are used when
9258 # linking a shared library.
9260 # There doesn't appear to be a way to prevent this compiler from
9261 # explicitly linking system object files so we need to strip them
9262 # from the output so that they don't get included in the library
9264 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'
9267 if test "$GXX" = yes; then
9268 if test $with_gnu_ld = no; then
9271 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9274 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'
9279 # FIXME: insert proper C++ library support
9286 case $cc_basename in
9289 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'
9291 # Archives containing C++ object files must be created using
9292 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9293 # necessary to make sure instantiated templates are included
9295 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9298 if test "$GXX" = yes; then
9299 if test "$with_gnu_ld" = no; then
9300 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'
9302 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'
9305 link_all_deplibs_CXX=yes
9308 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9309 hardcode_libdir_separator_CXX=:
9312 case $cc_basename in
9314 # Kuck and Associates, Inc. (KAI) C++ Compiler
9316 # KCC will only create a shared library if the output file
9317 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9318 # to its proper name (with version) after linking.
9319 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'
9320 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'
9321 # Commands to make compiler produce verbose output that lists
9322 # what "hidden" libraries, object files and flags are used when
9323 # linking a shared library.
9325 # There doesn't appear to be a way to prevent this compiler from
9326 # explicitly linking system object files so we need to strip them
9327 # from the output so that they don't get included in the library
9329 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'
9331 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9332 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9334 # Archives containing C++ object files must be created using
9335 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9336 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9341 archive_cmds_need_lc_CXX=no
9342 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 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'
9344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9346 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351 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'
9353 runpath_var=LD_RUN_PATH
9354 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9355 hardcode_libdir_separator_CXX=:
9357 # Commands to make compiler produce verbose output that lists
9358 # what "hidden" libraries, object files and flags are used when
9359 # linking a shared library.
9361 # There doesn't appear to be a way to prevent this compiler from
9362 # explicitly linking system object files so we need to strip them
9363 # from the output so that they don't get included in the library
9365 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'
9370 # FIXME: insert proper C++ library support
9374 # FIXME: insert proper C++ library support
9378 case $cc_basename in
9380 # FIXME: insert proper C++ library support
9384 # FIXME: insert proper C++ library support
9390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9391 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9393 hardcode_libdir_flag_spec_CXX='-R$libdir'
9394 hardcode_direct_CXX=yes
9395 hardcode_shlibpath_var_CXX=no
9397 # Workaround some broken pre-1.5 toolchains
9398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9401 case $cc_basename in
9403 # Kuck and Associates, Inc. (KAI) C++ Compiler
9405 # KCC will only create a shared library if the output file
9406 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9407 # to its proper name (with version) after linking.
9408 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'
9410 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9411 hardcode_libdir_separator_CXX=:
9413 # Archives containing C++ object files must be created using
9414 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9415 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9419 # Rational C++ 2.4.1
9420 # FIXME: insert proper C++ library support
9424 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9425 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'
9427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9428 hardcode_libdir_separator_CXX=:
9430 # Commands to make compiler produce verbose output that lists
9431 # what "hidden" libraries, object files and flags are used when
9432 # linking a shared library.
9434 # There doesn't appear to be a way to prevent this compiler from
9435 # explicitly linking system object files so we need to strip them
9436 # from the output so that they don't get included in the library
9438 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'
9441 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9442 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9443 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'
9445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9446 hardcode_libdir_separator_CXX=:
9448 # Commands to make compiler produce verbose output that lists
9449 # what "hidden" libraries, object files and flags are used when
9450 # linking a shared library.
9451 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9454 # FIXME: insert proper C++ library support
9461 case $cc_basename in
9463 # Kuck and Associates, Inc. (KAI) C++ Compiler
9465 # KCC will only create a shared library if the output file
9466 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9467 # to its proper name (with version) after linking.
9468 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'
9470 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9471 hardcode_libdir_separator_CXX=:
9473 # Archives containing C++ object files must be created using
9474 # the KAI C++ compiler.
9475 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9478 # Rational C++ 2.4.1
9479 # FIXME: insert proper C++ library support
9483 allow_undefined_flag_CXX=' -expect_unresolved \*'
9484 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'
9485 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9486 echo "-hidden">> $lib.exp~
9487 $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~
9490 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9491 hardcode_libdir_separator_CXX=:
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.
9497 # There doesn't appear to be a way to prevent this compiler from
9498 # explicitly linking system object files so we need to strip them
9499 # from the output so that they don't get included in the library
9501 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'
9504 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9505 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9506 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'
9508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9509 hardcode_libdir_separator_CXX=:
9511 # Commands to make compiler produce verbose output that lists
9512 # what "hidden" libraries, object files and flags are used when
9513 # linking a shared library.
9514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9517 # FIXME: insert proper C++ library support
9524 # FIXME: insert proper C++ library support
9528 archive_cmds_need_lc_CXX=no
9529 case $cc_basename in
9531 # FIXME: insert proper C++ library support
9535 # FIXME: insert proper C++ library support
9541 case $cc_basename in
9544 # FIXME: insert proper C++ library support
9549 # FIXME: insert proper C++ library support
9553 # FIXME: insert proper C++ library support
9559 case $cc_basename in
9561 # Sun C++ 4.2, 5.x and Centerline C++
9562 no_undefined_flag_CXX=' -zdefs'
9563 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9564 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9565 $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'
9567 hardcode_libdir_flag_spec_CXX='-R$libdir'
9568 hardcode_shlibpath_var_CXX=no
9570 solaris2.0-5 | solaris2.0-5.*) ;;
9572 # The C++ compiler is used as linker so we must use $wl
9573 # flag to pass the commands to the underlying system
9575 # Supported since Solaris 2.6 (maybe 2.5.1?)
9576 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9579 link_all_deplibs_CXX=yes
9581 # Commands to make compiler produce verbose output that lists
9582 # what "hidden" libraries, object files and flags are used when
9583 # linking a shared library.
9585 # There doesn't appear to be a way to prevent this compiler from
9586 # explicitly linking system object files so we need to strip them
9587 # from the output so that they don't get included in the library
9589 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'
9591 # Archives containing C++ object files must be created using
9592 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9593 # necessary to make sure instantiated templates are included
9595 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9598 # Green Hills C++ Compiler
9599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9601 # The C++ compiler must be used to create the archive.
9602 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9605 # GNU C++ compiler with Solaris linker
9606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9607 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9608 if $CC --version | grep -v '^2\.7' > /dev/null; then
9609 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9610 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9611 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9613 # Commands to make compiler produce verbose output that lists
9614 # what "hidden" libraries, object files and flags are used when
9615 # linking a shared library.
9616 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9618 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9620 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9621 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9622 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9624 # Commands to make compiler produce verbose output that lists
9625 # what "hidden" libraries, object files and flags are used when
9626 # linking a shared library.
9627 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9630 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9635 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9636 archive_cmds_need_lc_CXX=no
9639 case $cc_basename in
9641 # NonStop-UX NCC 3.20
9642 # FIXME: insert proper C++ library support
9646 # FIXME: insert proper C++ library support
9652 # FIXME: insert proper C++ library support
9656 # FIXME: insert proper C++ library support
9660 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9661 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9662 test "$ld_shlibs_CXX" = no && can_build_shared=no
9668 ## There is no encapsulation within the following macros, do not change
9669 ## the running order or otherwise move them around unless you know exactly
9670 ## what you are doing...
9672 cat > conftest.$ac_ext <<EOF
9676 Foo (void) { a = 0; }
9682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9683 (eval $ac_compile) 2>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; then
9687 # Parse the compiler output and extract the necessary
9688 # objects, libraries and library flags.
9690 # Sentinel used to keep track of whether or not we are before
9691 # the conftest object file.
9692 pre_test_object_deps_done=no
9694 # The `*' in the case matches for architectures that use `case' in
9695 # $output_verbose_cmd can trigger glob expansion during the loop
9696 # eval without this substitution.
9697 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9699 for p in `eval $output_verbose_link_cmd`; do
9703 # Some compilers place space between "-{L,R}" and the path.
9706 || test $p = "-R"; then
9713 if test "$pre_test_object_deps_done" = no; then
9716 # Internal compiler library paths should come after those
9717 # provided the user. The postdeps already come after the
9718 # user supplied libs so there is no need to process them.
9719 if test -z "$compiler_lib_search_path_CXX"; then
9720 compiler_lib_search_path_CXX="${prev}${p}"
9722 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9725 # The "-l" case would never come before the object being
9726 # linked, so don't bother handling this case.
9729 if test -z "$postdeps_CXX"; then
9730 postdeps_CXX="${prev}${p}"
9732 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9738 # This assumes that the test object file only shows up
9739 # once in the compiler output.
9740 if test "$p" = "conftest.$objext"; then
9741 pre_test_object_deps_done=yes
9745 if test "$pre_test_object_deps_done" = no; then
9746 if test -z "$predep_objects_CXX"; then
9747 predep_objects_CXX="$p"
9749 predep_objects_CXX="$predep_objects_CXX $p"
9752 if test -z "$postdep_objects_CXX"; then
9753 postdep_objects_CXX="$p"
9755 postdep_objects_CXX="$postdep_objects_CXX $p"
9760 *) ;; # Ignore the rest.
9768 echo "libtool.m4: error: problem compiling CXX test program"
9771 $rm -f confest.$objext
9773 case " $postdeps_CXX " in
9774 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9777 lt_prog_compiler_wl_CXX=
9778 lt_prog_compiler_pic_CXX=
9779 lt_prog_compiler_static_CXX=
9781 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9782 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9784 # C++ specific cases for pic, static, wl, etc.
9785 if test "$GXX" = yes; then
9786 lt_prog_compiler_wl_CXX='-Wl,'
9787 lt_prog_compiler_static_CXX='-static'
9791 # All AIX code is PIC.
9792 if test "$host_cpu" = ia64; then
9793 # AIX 5 now supports IA64 processor
9794 lt_prog_compiler_static_CXX='-Bstatic'
9798 # FIXME: we need at least 68020 code to build shared libraries, but
9799 # adding the `-m68020' flag to GCC prevents building anything better,
9801 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9803 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9804 # PIC is the default for these OSes.
9806 mingw* | os2* | pw32*)
9807 # This hack is so that the source file can tell whether it is being
9808 # built for inclusion in a dll (and should export symbols for example).
9809 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9811 darwin* | rhapsody*)
9812 # PIC is the default on this platform
9813 # Common symbols not allowed in MH_DYLIB files
9814 lt_prog_compiler_pic_CXX='-fno-common'
9817 # DJGPP does not support shared libraries at all
9818 lt_prog_compiler_pic_CXX=
9821 if test -d /usr/nec; then
9822 lt_prog_compiler_pic_CXX=-Kconform_pic
9826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9832 lt_prog_compiler_pic_CXX='-fPIC'
9837 lt_prog_compiler_pic_CXX='-fPIC'
9843 # All AIX code is PIC.
9844 if test "$host_cpu" = ia64; then
9845 # AIX 5 now supports IA64 processor
9846 lt_prog_compiler_static_CXX='-Bstatic'
9848 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9852 case $cc_basename in
9854 # Green Hills C++ Compiler
9855 # _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"
9860 case $cc_basename in
9862 lt_prog_compiler_pic_CXX='-KPIC'
9865 # Green Hills C++ Compiler
9866 lt_prog_compiler_pic_CXX='-pic'
9872 freebsd* | kfreebsd*-gnu)
9873 # FreeBSD uses GNU C++
9875 hpux9* | hpux10* | hpux11*)
9876 case $cc_basename in
9878 lt_prog_compiler_wl_CXX='-Wl,'
9879 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9880 if test "$host_cpu" != ia64; then
9881 lt_prog_compiler_pic_CXX='+Z'
9885 lt_prog_compiler_wl_CXX='-Wl,'
9886 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9892 lt_prog_compiler_pic_CXX='+Z'
9900 irix5* | irix6* | nonstopux*)
9901 case $cc_basename in
9903 lt_prog_compiler_wl_CXX='-Wl,'
9904 lt_prog_compiler_static_CXX='-non_shared'
9905 # CC pic flag -KPIC is the default.
9912 case $cc_basename in
9915 lt_prog_compiler_wl_CXX='--backend -Wl,'
9916 lt_prog_compiler_pic_CXX='-fPIC'
9920 lt_prog_compiler_wl_CXX='-Wl,'
9921 lt_prog_compiler_pic_CXX='-KPIC'
9922 lt_prog_compiler_static_CXX='-static'
9926 # Make sure the PIC flag is empty. It appears that all Alpha
9927 # Linux and Compaq Tru64 Unix objects are PIC.
9928 lt_prog_compiler_pic_CXX=
9929 lt_prog_compiler_static_CXX='-non_shared'
9940 case $cc_basename in
9942 lt_prog_compiler_pic_CXX='-W c,exportall'
9950 osf3* | osf4* | osf5*)
9951 case $cc_basename in
9953 lt_prog_compiler_wl_CXX='--backend -Wl,'
9956 # Rational C++ 2.4.1
9957 lt_prog_compiler_pic_CXX='-pic'
9960 # Digital/Compaq C++
9961 lt_prog_compiler_wl_CXX='-Wl,'
9962 # Make sure the PIC flag is empty. It appears that all Alpha
9963 # Linux and Compaq Tru64 Unix objects are PIC.
9964 lt_prog_compiler_pic_CXX=
9965 lt_prog_compiler_static_CXX='-non_shared'
9974 case $cc_basename in
9976 lt_prog_compiler_pic_CXX='-fPIC'
9983 case $cc_basename in
9985 # Sun C++ 4.2, 5.x and Centerline C++
9986 lt_prog_compiler_pic_CXX='-KPIC'
9987 lt_prog_compiler_static_CXX='-Bstatic'
9988 lt_prog_compiler_wl_CXX='-Qoption ld '
9991 # Green Hills C++ Compiler
9992 lt_prog_compiler_pic_CXX='-PIC'
9999 case $cc_basename in
10002 lt_prog_compiler_pic_CXX='-pic'
10003 lt_prog_compiler_static_CXX='-Bstatic'
10007 lt_prog_compiler_pic_CXX='-pic'
10014 case $cc_basename in
10016 # NonStop-UX NCC 3.20
10017 lt_prog_compiler_pic_CXX='-KPIC'
10028 lt_prog_compiler_can_build_shared_CXX=no
10033 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10034 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10037 # Check to make sure the PIC flag actually works.
10039 if test -n "$lt_prog_compiler_pic_CXX"; then
10041 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10042 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10043 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 lt_prog_compiler_pic_works_CXX=no
10047 ac_outfile=conftest.$ac_objext
10048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10049 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10050 # Insert the option either (1) after the last *FLAGS variable, or
10051 # (2) before a word containing "conftest.", or (3) at the end.
10052 # Note that $ac_compile itself does not contain backslashes and begins
10053 # with a dollar sign (not a hyphen), so the echo should work correctly.
10054 # The option is referenced via a variable to avoid confusing sed.
10055 lt_compile=`echo "$ac_compile" | $SED \
10056 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10058 -e 's:$: $lt_compiler_flag:'`
10059 (eval echo "\"\$as_me:10059: $lt_compile\"" >&5)
10060 (eval "$lt_compile" 2>conftest.err)
10062 cat conftest.err >&5
10063 echo "$as_me:10063: \$? = $ac_status" >&5
10064 if (exit $ac_status) && test -s "$ac_outfile"; then
10065 # The compiler can only warn and ignore the option if not recognized
10066 # So say no if there are warnings
10067 if test ! -s conftest.err; then
10068 lt_prog_compiler_pic_works_CXX=yes
10074 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10075 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10077 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10078 case $lt_prog_compiler_pic_CXX in
10080 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10083 lt_prog_compiler_pic_CXX=
10084 lt_prog_compiler_can_build_shared_CXX=no
10089 # For platforms which do not support PIC, -DPIC is meaningless:
10091 lt_prog_compiler_pic_CXX=
10094 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10098 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10099 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10100 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 lt_cv_prog_compiler_c_o_CXX=no
10104 $rm -r conftest 2>/dev/null
10108 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10110 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10111 # that will create temporary files in the current directory regardless of
10112 # the output directory. Thus, making CWD read-only will cause this test
10113 # to fail, enabling locking or at least warning the user not to do parallel
10117 lt_compiler_flag="-o out/conftest2.$ac_objext"
10118 # Insert the option either (1) after the last *FLAGS variable, or
10119 # (2) before a word containing "conftest.", or (3) at the end.
10120 # Note that $ac_compile itself does not contain backslashes and begins
10121 # with a dollar sign (not a hyphen), so the echo should work correctly.
10122 lt_compile=`echo "$ac_compile" | $SED \
10123 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10125 -e 's:$: $lt_compiler_flag:'`
10126 (eval echo "\"\$as_me:10126: $lt_compile\"" >&5)
10127 (eval "$lt_compile" 2>out/conftest.err)
10129 cat out/conftest.err >&5
10130 echo "$as_me:10130: \$? = $ac_status" >&5
10131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10133 # The compiler can only warn and ignore the option if not recognized
10134 # So say no if there are warnings
10135 if test ! -s out/conftest.err; then
10136 lt_cv_prog_compiler_c_o_CXX=yes
10141 # SGI C++ compiler will create directory out/ii_files/ for
10142 # template instantiation
10143 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10144 $rm out/* && rmdir out
10150 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10154 hard_links="nottested"
10155 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10156 # do not overwrite the value of need_locks provided by the user
10157 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10163 ln conftest.a conftest.b 2>&5 || hard_links=no
10164 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10165 echo "$as_me:$LINENO: result: $hard_links" >&5
10166 echo "${ECHO_T}$hard_links" >&6
10167 if test "$hard_links" = no; then
10168 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10176 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10179 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10182 # If we're using GNU nm, then we don't want the "-C" option.
10183 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10184 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10185 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'
10187 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'
10191 export_symbols_cmds_CXX="$ltdll_cmds"
10194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10197 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10201 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10202 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10203 test "$ld_shlibs_CXX" = no && can_build_shared=no
10205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10206 if test "$GCC" = yes; then
10207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10211 # Do we need to explicitly link libc?
10213 case "x$archive_cmds_need_lc_CXX" in
10215 # Assume -lc should be added
10216 archive_cmds_need_lc_CXX=yes
10218 if test "$enable_shared" = yes && test "$GCC" = yes; then
10219 case $archive_cmds_CXX in
10221 # FIXME: we may have to deal with multi-command sequences.
10224 # Test whether the compiler implicitly links with -lc since on some
10225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10226 # to ld, don't add -lc before -lgcc.
10227 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10228 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233 (eval $ac_compile) 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } 2>conftest.err; then
10239 libobjs=conftest.$ac_objext
10241 wl=$lt_prog_compiler_wl_CXX
10247 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10248 allow_undefined_flag_CXX=
10249 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10250 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }
10255 archive_cmds_need_lc_CXX=no
10257 archive_cmds_need_lc_CXX=yes
10259 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10261 cat conftest.err 1>&5
10264 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10265 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10272 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10273 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10274 library_names_spec=
10275 libname_spec='lib$name'
10279 postuninstall_cmds=
10283 shlibpath_overrides_runpath=unknown
10285 dynamic_linker="$host_os ld.so"
10286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10287 if test "$GCC" = yes; then
10288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10289 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10290 # if the path contains ";" then we assume it to be the separator
10291 # otherwise default to the standard path separator (i.e. ":") - it is
10292 # assumed that no part of a normal pathname contains ";" but that should
10293 # okay in the real world where ";" in dirpaths is itself problematic.
10294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10301 need_lib_prefix=unknown
10302 hardcode_into_libs=no
10304 # when you set need_version to no, make sure it does not cause -set_version
10305 # flags to be left without arguments
10306 need_version=unknown
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10312 shlibpath_var=LIBPATH
10314 # AIX 3 has no versioning support, so we append a major version to the name.
10315 soname_spec='${libname}${release}${shared_ext}$major'
10322 hardcode_into_libs=yes
10323 if test "$host_cpu" = ia64; then
10324 # AIX 5 supports IA64
10325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10326 shlibpath_var=LD_LIBRARY_PATH
10328 # With GCC up to 2.95.x, collect2 would create an import file
10329 # for dependence libraries. The import file would start with
10330 # the line `#! .'. This would cause the generated library to
10331 # depend on `.', always an invalid library. This was fixed in
10332 # development snapshots of GCC prior to 3.0.
10334 aix4 | aix4.[01] | aix4.[01].*)
10335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10337 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10340 can_build_shared=no
10344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10345 # soname into executable. Probably we can add versioning support to
10346 # collect2, so additional links can be useful in future.
10347 if test "$aix_use_runtimelinking" = yes; then
10348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10349 # instead of lib<name>.a to let people know that these are not
10350 # typical AIX shared libraries.
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 # We preserve .a as extension for shared libraries through AIX4.2
10354 # and later when we are not doing run time linking.
10355 library_names_spec='${libname}${release}.a $libname.a'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10358 shlibpath_var=LIBPATH
10363 library_names_spec='$libname.ixlibrary $libname.a'
10364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10365 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'
10369 library_names_spec='${libname}${shared_ext}'
10370 dynamic_linker="$host_os ld.so"
10371 shlibpath_var=LIBRARY_PATH
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10383 # the default ld.so.conf also contains /usr/contrib/lib and
10384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10385 # libtool to hard-code these into programs
10388 cygwin* | mingw* | pw32*)
10389 version_type=windows
10394 case $GCC,$host_os in
10395 yes,cygwin* | yes,mingw* | yes,pw32*)
10396 library_names_spec='$libname.dll.a'
10397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10398 postinstall_cmds='base_file=`basename \${file}`~
10399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10400 dldir=$destdir/`dirname \$dlpath`~
10401 test -d \$dldir || mkdir -p \$dldir~
10402 $install_prog $dir/$dlname \$dldir/$dlname'
10403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10404 dlpath=$dir/\$dldll~
10406 shlibpath_overrides_runpath=yes
10410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10411 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10412 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10415 # MinGW DLLs use traditional 'lib' prefix
10416 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10418 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10419 # It is most probably a Windows format PATH printed by
10420 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10421 # path with ; separators, and with drive letters. We can handle the
10422 # drive letters (cygwin fileutils understands them), so leave them,
10423 # especially as we might pass files found there to a mingw objdump,
10424 # which wouldn't understand a cygwinified path. Ahh.
10425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10431 # pw32 DLLs use 'pw' prefix rather than 'lib'
10432 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10441 dynamic_linker='Win32 ld.exe'
10442 # FIXME: first we should search . and the directory the executable is in
10446 darwin* | rhapsody*)
10447 dynamic_linker="$host_os dyld"
10448 version_type=darwin
10451 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10452 soname_spec='${libname}${release}${major}$shared_ext'
10453 shlibpath_overrides_runpath=yes
10454 shlibpath_var=DYLD_LIBRARY_PATH
10455 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10456 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10457 if test "$GCC" = yes; then
10458 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"`
10460 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10462 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 shlibpath_var=LD_LIBRARY_PATH
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 shlibpath_overrides_runpath=no
10486 hardcode_into_libs=yes
10487 dynamic_linker='GNU ld.so'
10491 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10492 version_type=freebsd-$objformat
10493 case $version_type in
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10504 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=yes
10509 freebsd3.01* | freebsdelf3.01*)
10510 shlibpath_overrides_runpath=yes
10511 hardcode_into_libs=yes
10514 shlibpath_overrides_runpath=no
10515 hardcode_into_libs=yes
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10525 soname_spec='${libname}${release}${shared_ext}$major'
10526 shlibpath_var=LD_LIBRARY_PATH
10527 hardcode_into_libs=yes
10530 hpux9* | hpux10* | hpux11*)
10531 # Give a soname corresponding to the major version so that dld.sl refuses to
10532 # link against other versions.
10536 case "$host_cpu" in
10539 hardcode_into_libs=yes
10540 dynamic_linker="$host_os dld.so"
10541 shlibpath_var=LD_LIBRARY_PATH
10542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 if test "X$HPUX_IA64_MODE" = X32; then
10546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10554 hardcode_into_libs=yes
10555 dynamic_linker="$host_os dld.sl"
10556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10565 dynamic_linker="$host_os dld.sl"
10566 shlibpath_var=SHLIB_PATH
10567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10572 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10573 postinstall_cmds='chmod 555 $lib'
10576 irix5* | irix6* | nonstopux*)
10578 nonstopux*) version_type=nonstopux ;;
10580 if test "$lt_cv_prog_gnu_ld" = yes; then
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10591 irix5* | nonstopux*)
10592 libsuff= shlibsuff=
10595 case $LD in # libtool.m4 will add one of these switches to LD
10596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10597 libsuff= shlibsuff= libmagic=32-bit;;
10598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10599 libsuff=32 shlibsuff=N32 libmagic=N32;;
10600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10602 *) libsuff= shlibsuff= libmagic=never-match;;
10606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10607 shlibpath_overrides_runpath=no
10608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10610 hardcode_into_libs=yes
10613 # No shared lib support for Linux oldld, aout, or coff.
10614 linux*oldld* | linux*aout* | linux*coff*)
10618 # This must be Linux ELF.
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 shlibpath_overrides_runpath=no
10628 # This implies no fast_install, which is unacceptable.
10629 # Some rework will be needed to allow for fast_install
10630 # before this can be enabled.
10631 hardcode_into_libs=yes
10633 # We used to test for /lib/ld.so.1 and disable shared libraries on
10634 # powerpc, because MkLinux only supported shared libraries with the
10635 # GNU dynamic linker. Since this was broken with cross compilers,
10636 # most powerpc-linux boxes support dynamic linking these days and
10637 # people can always --disable-shared, the test was removed, and we
10638 # assume the GNU/Linux dynamic linker is in use.
10639 dynamic_linker='GNU/Linux ld.so'
10646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10649 dynamic_linker='NetBSD (a.out) ld.so'
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 dynamic_linker='NetBSD ld.elf_so'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=yes
10657 hardcode_into_libs=yes
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 shlibpath_overrides_runpath=yes
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10686 openbsd2.[89] | openbsd2.[89].*)
10687 shlibpath_overrides_runpath=no
10690 shlibpath_overrides_runpath=yes
10694 shlibpath_overrides_runpath=yes
10699 libname_spec='$name'
10702 library_names_spec='$libname${shared_ext} $libname.a'
10703 dynamic_linker='OS/2 ld.exe'
10704 shlibpath_var=LIBPATH
10707 osf3* | osf4* | osf5*)
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10715 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 shlibpath_var=LD_LIBRARY_PATH
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 shlibpath_var=LD_LIBRARY_PATH
10732 shlibpath_overrides_runpath=yes
10733 hardcode_into_libs=yes
10734 # ldd complains unless libraries are executable
10735 postinstall_cmds='chmod +x $lib'
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10741 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10742 shlibpath_var=LD_LIBRARY_PATH
10743 shlibpath_overrides_runpath=yes
10744 if test "$with_gnu_ld" = yes; then
10750 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753 soname_spec='${libname}${release}${shared_ext}$major'
10754 shlibpath_var=LD_LIBRARY_PATH
10755 case $host_vendor in
10757 shlibpath_overrides_runpath=no
10759 export_dynamic_flag_spec='${wl}-Blargedynsym'
10760 runpath_var=LD_RUN_PATH
10768 shlibpath_overrides_runpath=no
10769 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10775 if test -d /usr/nec ;then
10777 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10778 soname_spec='$libname${shared_ext}.$major'
10779 shlibpath_var=LD_LIBRARY_PATH
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 shlibpath_var=LD_LIBRARY_PATH
10794 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10795 echo "${ECHO_T}$dynamic_linker" >&6
10796 test "$dynamic_linker" = no && can_build_shared=no
10798 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10799 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10800 hardcode_action_CXX=
10801 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10802 test -n "$runpath_var CXX" || \
10803 test "X$hardcode_automatic_CXX"="Xyes" ; then
10805 # We can hardcode non-existant directories.
10806 if test "$hardcode_direct_CXX" != no &&
10807 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10808 # have to relink, otherwise we might link with an installed library
10809 # when we should be linking with a yet-to-be-installed one
10810 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10811 test "$hardcode_minus_L_CXX" != no; then
10812 # Linking always hardcodes the temporary library directory.
10813 hardcode_action_CXX=relink
10815 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10816 hardcode_action_CXX=immediate
10819 # We cannot hardcode anything, or else we can only hardcode existing
10821 hardcode_action_CXX=unsupported
10823 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10824 echo "${ECHO_T}$hardcode_action_CXX" >&6
10826 if test "$hardcode_action_CXX" = relink; then
10827 # Fast installation is not supported
10828 enable_fast_install=no
10829 elif test "$shlibpath_overrides_runpath" = yes ||
10830 test "$enable_shared" = no; then
10831 # Fast installation is not necessary
10832 enable_fast_install=needless
10837 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10838 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10839 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10840 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10841 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10842 echo "$as_me:$LINENO: result: yes" >&5
10843 echo "${ECHO_T}yes" >&6
10845 # FIXME - insert some real tests, host_os isn't really good enough
10848 if test -n "$STRIP" ; then
10849 striplib="$STRIP -x"
10850 echo "$as_me:$LINENO: result: yes" >&5
10851 echo "${ECHO_T}yes" >&6
10853 echo "$as_me:$LINENO: result: no" >&5
10854 echo "${ECHO_T}no" >&6
10858 echo "$as_me:$LINENO: result: no" >&5
10859 echo "${ECHO_T}no" >&6
10864 if test "x$enable_dlopen" != xyes; then
10865 enable_dlopen=unknown
10866 enable_dlopen_self=unknown
10867 enable_dlopen_self_static=unknown
10874 lt_cv_dlopen="load_add_on"
10876 lt_cv_dlopen_self=yes
10880 lt_cv_dlopen="LoadLibrary"
10885 lt_cv_dlopen="dlopen"
10890 # if libdl is installed we need to link against it
10891 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10892 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10893 if test "${ac_cv_lib_dl_dlopen+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"
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10906 /* Override any gcc2 internal prototype to avoid an error. */
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10921 rm -f conftest.$ac_objext conftest$ac_exeext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10923 (eval $ac_link) 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } &&
10927 { ac_try='test -s conftest$ac_exeext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_lib_dl_dlopen=yes
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10938 ac_cv_lib_dl_dlopen=no
10940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10941 LIBS=$ac_check_lib_save_LIBS
10943 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10944 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10945 if test $ac_cv_lib_dl_dlopen = yes; then
10946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10949 lt_cv_dlopen="dyld"
10951 lt_cv_dlopen_self=yes
10958 echo "$as_me:$LINENO: checking for shl_load" >&5
10959 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10960 if test "${ac_cv_func_shl_load+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 /* System header to define __stub macros and hopefully few prototypes,
10971 which can conflict with char shl_load (); below.
10972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973 <limits.h> exists even on freestanding compilers. */
10975 # include <limits.h>
10977 # include <assert.h>
10979 /* Override any gcc2 internal prototype to avoid an error. */
10984 /* We use char because int might match the return type of a gcc2
10985 builtin and then its argument prototype would still apply. */
10987 /* The GNU C library defines this for functions which it implements
10988 to always fail with ENOSYS. Some functions are actually named
10989 something starting with __ and the normal name is an alias. */
10990 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10993 char (*f) () = shl_load;
11002 return f != shl_load;
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11009 (eval $ac_link) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -s conftest$ac_exeext'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 ac_cv_func_shl_load=yes
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11024 ac_cv_func_shl_load=no
11026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11028 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11029 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11030 if test $ac_cv_func_shl_load = yes; then
11031 lt_cv_dlopen="shl_load"
11033 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11034 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 ac_check_lib_save_LIBS=$LIBS
11040 cat >conftest.$ac_ext <<_ACEOF
11041 #line $LINENO "configure"
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11048 /* Override any gcc2 internal prototype to avoid an error. */
11052 /* We use char because int might match the return type of a gcc2
11053 builtin and then its argument prototype would still apply. */
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11065 (eval $ac_link) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -s conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_lib_dld_shl_load=yes
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 ac_cv_lib_dld_shl_load=no
11082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11085 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11086 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11087 if test $ac_cv_lib_dld_shl_load = yes; then
11088 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11090 echo "$as_me:$LINENO: checking for dlopen" >&5
11091 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11092 if test "${ac_cv_func_dlopen+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 cat >conftest.$ac_ext <<_ACEOF
11096 #line $LINENO "configure"
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 /* System header to define __stub macros and hopefully few prototypes,
11103 which can conflict with char dlopen (); below.
11104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11105 <limits.h> exists even on freestanding compilers. */
11107 # include <limits.h>
11109 # include <assert.h>
11111 /* Override any gcc2 internal prototype to avoid an error. */
11116 /* We use char because int might match the return type of a gcc2
11117 builtin and then its argument prototype would still apply. */
11119 /* The GNU C library defines this for functions which it implements
11120 to always fail with ENOSYS. Some functions are actually named
11121 something starting with __ and the normal name is an alias. */
11122 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11125 char (*f) () = dlopen;
11134 return f != dlopen;
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11141 (eval $ac_link) 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -s conftest$ac_exeext'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_cv_func_dlopen=yes
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 ac_cv_func_dlopen=no
11158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11160 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11161 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11162 if test $ac_cv_func_dlopen = yes; then
11163 lt_cv_dlopen="dlopen"
11165 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11166 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11167 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 ac_check_lib_save_LIBS=$LIBS
11172 cat >conftest.$ac_ext <<_ACEOF
11173 #line $LINENO "configure"
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11180 /* Override any gcc2 internal prototype to avoid an error. */
11184 /* We use char because int might match the return type of a gcc2
11185 builtin and then its argument prototype would still apply. */
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11197 (eval $ac_link) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try='test -s conftest$ac_exeext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_lib_dl_dlopen=yes
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_cv_lib_dl_dlopen=no
11214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11215 LIBS=$ac_check_lib_save_LIBS
11217 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11218 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11219 if test $ac_cv_lib_dl_dlopen = yes; then
11220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11222 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11223 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11224 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11227 ac_check_lib_save_LIBS=$LIBS
11228 LIBS="-lsvld $LIBS"
11229 cat >conftest.$ac_ext <<_ACEOF
11230 #line $LINENO "configure"
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11237 /* Override any gcc2 internal prototype to avoid an error. */
11241 /* We use char because int might match the return type of a gcc2
11242 builtin and then its argument prototype would still apply. */
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254 (eval $ac_link) 2>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -s conftest$ac_exeext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 ac_cv_lib_svld_dlopen=yes
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 ac_cv_lib_svld_dlopen=no
11271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11272 LIBS=$ac_check_lib_save_LIBS
11274 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11275 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11276 if test $ac_cv_lib_svld_dlopen = yes; then
11277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11279 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11280 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11281 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 ac_check_lib_save_LIBS=$LIBS
11286 cat >conftest.$ac_ext <<_ACEOF
11287 #line $LINENO "configure"
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11294 /* Override any gcc2 internal prototype to avoid an error. */
11298 /* We use char because int might match the return type of a gcc2
11299 builtin and then its argument prototype would still apply. */
11309 rm -f conftest.$ac_objext conftest$ac_exeext
11310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11311 (eval $ac_link) 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -s conftest$ac_exeext'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 ac_cv_lib_dld_dld_link=yes
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11326 ac_cv_lib_dld_dld_link=no
11328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11329 LIBS=$ac_check_lib_save_LIBS
11331 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11332 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11333 if test $ac_cv_lib_dld_dld_link = yes; then
11334 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11355 if test "x$lt_cv_dlopen" != xno; then
11361 case $lt_cv_dlopen in
11363 save_CPPFLAGS="$CPPFLAGS"
11364 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11366 save_LDFLAGS="$LDFLAGS"
11367 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11370 LIBS="$lt_cv_dlopen_libs $LIBS"
11372 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11373 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11374 if test "${lt_cv_dlopen_self+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 if test "$cross_compiling" = yes; then :
11378 lt_cv_dlopen_self=cross
11380 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11381 lt_status=$lt_dlunknown
11382 cat > conftest.$ac_ext <<EOF
11383 #line 11383 "configure"
11384 #include "confdefs.h"
11393 # define LT_DLGLOBAL RTLD_GLOBAL
11396 # define LT_DLGLOBAL DL_GLOBAL
11398 # define LT_DLGLOBAL 0
11402 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11403 find out it does not work in some platform. */
11404 #ifndef LT_DLLAZY_OR_NOW
11406 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11409 # define LT_DLLAZY_OR_NOW DL_LAZY
11412 # define LT_DLLAZY_OR_NOW RTLD_NOW
11415 # define LT_DLLAZY_OR_NOW DL_NOW
11417 # define LT_DLLAZY_OR_NOW 0
11425 extern "C" void exit (int);
11428 void fnord() { int i=42;}
11431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11432 int status = $lt_dlunknown;
11436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11437 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11438 /* dlclose (self); */
11444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11445 (eval $ac_link) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11449 (./conftest; exit; ) 2>/dev/null
11451 case x$lt_status in
11452 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11453 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11454 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11457 # compilation failed
11458 lt_cv_dlopen_self=no
11465 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11466 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11468 if test "x$lt_cv_dlopen_self" = xyes; then
11469 LDFLAGS="$LDFLAGS $link_static_flag"
11470 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11471 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11472 if test "${lt_cv_dlopen_self_static+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 if test "$cross_compiling" = yes; then :
11476 lt_cv_dlopen_self_static=cross
11478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11479 lt_status=$lt_dlunknown
11480 cat > conftest.$ac_ext <<EOF
11481 #line 11481 "configure"
11482 #include "confdefs.h"
11491 # define LT_DLGLOBAL RTLD_GLOBAL
11494 # define LT_DLGLOBAL DL_GLOBAL
11496 # define LT_DLGLOBAL 0
11500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11501 find out it does not work in some platform. */
11502 #ifndef LT_DLLAZY_OR_NOW
11504 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11507 # define LT_DLLAZY_OR_NOW DL_LAZY
11510 # define LT_DLLAZY_OR_NOW RTLD_NOW
11513 # define LT_DLLAZY_OR_NOW DL_NOW
11515 # define LT_DLLAZY_OR_NOW 0
11523 extern "C" void exit (int);
11526 void fnord() { int i=42;}
11529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11530 int status = $lt_dlunknown;
11534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11535 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11536 /* dlclose (self); */
11542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11543 (eval $ac_link) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11547 (./conftest; exit; ) 2>/dev/null
11549 case x$lt_status in
11550 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11551 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11552 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11555 # compilation failed
11556 lt_cv_dlopen_self_static=no
11563 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11564 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11567 CPPFLAGS="$save_CPPFLAGS"
11568 LDFLAGS="$save_LDFLAGS"
11573 case $lt_cv_dlopen_self in
11574 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11575 *) enable_dlopen_self=unknown ;;
11578 case $lt_cv_dlopen_self_static in
11579 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11580 *) enable_dlopen_self_static=unknown ;;
11585 # The else clause should only fire when bootstrapping the
11586 # libtool distribution, otherwise you forgot to ship ltmain.sh
11587 # with your package, and you will get complaints that there are
11588 # no rules to generate ltmain.sh.
11589 if test -f "$ltmain"; then
11590 # See if we are running on zsh, and set the options which allow our commands through
11591 # without removal of \ escapes.
11592 if test -n "${ZSH_VERSION+set}" ; then
11593 setopt NO_GLOB_SUBST
11595 # Now quote all the things that may contain metacharacters while being
11596 # careful not to overquote the AC_SUBSTed values. We take copies of the
11597 # variables and quote the copies for generation of the libtool script.
11598 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11600 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11601 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11602 deplibs_check_method reload_flag reload_cmds need_locks \
11603 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11604 lt_cv_sys_global_symbol_to_c_name_address \
11605 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11606 old_postinstall_cmds old_postuninstall_cmds \
11610 lt_prog_compiler_wl_CXX \
11611 lt_prog_compiler_pic_CXX \
11612 lt_prog_compiler_static_CXX \
11613 lt_prog_compiler_no_builtin_flag_CXX \
11614 export_dynamic_flag_spec_CXX \
11615 thread_safe_flag_spec_CXX \
11616 whole_archive_flag_spec_CXX \
11617 enable_shared_with_static_runtimes_CXX \
11618 old_archive_cmds_CXX \
11619 old_archive_from_new_cmds_CXX \
11620 predep_objects_CXX \
11621 postdep_objects_CXX \
11624 compiler_lib_search_path_CXX \
11626 archive_expsym_cmds_CXX \
11627 postinstall_cmds_CXX \
11628 postuninstall_cmds_CXX \
11629 old_archive_from_expsyms_cmds_CXX \
11630 allow_undefined_flag_CXX \
11631 no_undefined_flag_CXX \
11632 export_symbols_cmds_CXX \
11633 hardcode_libdir_flag_spec_CXX \
11634 hardcode_libdir_flag_spec_ld_CXX \
11635 hardcode_libdir_separator_CXX \
11636 hardcode_automatic_CXX \
11638 module_expsym_cmds_CXX \
11639 lt_cv_prog_compiler_c_o_CXX \
11640 exclude_expsyms_CXX \
11641 include_expsyms_CXX; do
11644 old_archive_cmds_CXX | \
11645 old_archive_from_new_cmds_CXX | \
11646 archive_cmds_CXX | \
11647 archive_expsym_cmds_CXX | \
11648 module_cmds_CXX | \
11649 module_expsym_cmds_CXX | \
11650 old_archive_from_expsyms_cmds_CXX | \
11651 export_symbols_cmds_CXX | \
11652 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11653 postinstall_cmds | postuninstall_cmds | \
11654 old_postinstall_cmds | old_postuninstall_cmds | \
11655 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11656 # Double-quote double-evaled strings.
11657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11666 *'\$0 --fallback-echo"')
11667 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11673 cat <<__EOF__ >> "$cfgfile"
11674 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11676 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11678 # Shell to use when invoking shell scripts.
11681 # Whether or not to build shared libraries.
11682 build_libtool_libs=$enable_shared
11684 # Whether or not to build static libraries.
11685 build_old_libs=$enable_static
11687 # Whether or not to add -lc for building shared libraries.
11688 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11690 # Whether or not to disallow shared libs when runtime libs are static
11691 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11693 # Whether or not to optimize for fast installation.
11694 fast_install=$enable_fast_install
11697 host_alias=$host_alias
11700 # An echo program that does not interpret backslashes.
11705 AR_FLAGS=$lt_AR_FLAGS
11710 # A language-specific compiler.
11711 CC=$lt_compiler_CXX
11713 # Is the compiler the GNU C compiler?
11719 # The linker used to build libraries.
11722 # Whether we need hard or soft links.
11725 # A BSD-compatible nm program.
11728 # A symbol stripping program
11731 # Used to examine libraries when file_magic_cmd begins "file"
11732 MAGIC_CMD=$MAGIC_CMD
11734 # Used on cygwin: DLL creation program.
11737 # Used on cygwin: object dumper.
11740 # Used on cygwin: assembler.
11743 # The name of the directory that contains temporary libtool files.
11746 # How to create reloadable object files.
11747 reload_flag=$lt_reload_flag
11748 reload_cmds=$lt_reload_cmds
11750 # How to pass a linker flag through the compiler.
11751 wl=$lt_lt_prog_compiler_wl_CXX
11753 # Object file suffix (normally "o").
11754 objext="$ac_objext"
11756 # Old archive suffix (normally "a").
11759 # Shared library suffix (normally ".so").
11762 # Executable file suffix (normally "").
11765 # Additional compiler flags for building library objects.
11766 pic_flag=$lt_lt_prog_compiler_pic_CXX
11769 # What is the maximum length of a command?
11770 max_cmd_len=$lt_cv_sys_max_cmd_len
11772 # Does compiler simultaneously support -c and -o options?
11773 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11775 # Must we lock files when doing compilation ?
11776 need_locks=$lt_need_locks
11778 # Do we need the lib prefix for modules?
11779 need_lib_prefix=$need_lib_prefix
11781 # Do we need a version for libraries?
11782 need_version=$need_version
11784 # Whether dlopen is supported.
11785 dlopen_support=$enable_dlopen
11787 # Whether dlopen of programs is supported.
11788 dlopen_self=$enable_dlopen_self
11790 # Whether dlopen of statically linked programs is supported.
11791 dlopen_self_static=$enable_dlopen_self_static
11793 # Compiler flag to prevent dynamic linking.
11794 link_static_flag=$lt_lt_prog_compiler_static_CXX
11796 # Compiler flag to turn off builtin functions.
11797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11799 # Compiler flag to allow reflexive dlopens.
11800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11802 # Compiler flag to generate shared objects directly from archives.
11803 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11805 # Compiler flag to generate thread-safe objects.
11806 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11808 # Library versioning type.
11809 version_type=$version_type
11811 # Format of library name prefix.
11812 libname_spec=$lt_libname_spec
11814 # List of archive names. First name is the real one, the rest are links.
11815 # The last name is the one that the linker finds with -lNAME.
11816 library_names_spec=$lt_library_names_spec
11818 # The coded name of the library, if different from the real name.
11819 soname_spec=$lt_soname_spec
11821 # Commands used to build and install an old-style archive.
11823 old_archive_cmds=$lt_old_archive_cmds_CXX
11824 old_postinstall_cmds=$lt_old_postinstall_cmds
11825 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11827 # Create an old-style archive from a shared archive.
11828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11830 # Create a temporary old-style archive to link instead of a shared archive.
11831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11833 # Commands used to build and install a shared archive.
11834 archive_cmds=$lt_archive_cmds_CXX
11835 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11836 postinstall_cmds=$lt_postinstall_cmds
11837 postuninstall_cmds=$lt_postuninstall_cmds
11839 # Commands used to build a loadable module (assumed same as above if empty)
11840 module_cmds=$lt_module_cmds_CXX
11841 module_expsym_cmds=$lt_module_expsym_cmds_CXX
11843 # Commands to strip libraries.
11844 old_striplib=$lt_old_striplib
11845 striplib=$lt_striplib
11847 # Dependencies to place before the objects being linked to create a
11849 predep_objects=$lt_predep_objects_CXX
11851 # Dependencies to place after the objects being linked to create a
11853 postdep_objects=$lt_postdep_objects_CXX
11855 # Dependencies to place before the objects being linked to create a
11857 predeps=$lt_predeps_CXX
11859 # Dependencies to place after the objects being linked to create a
11861 postdeps=$lt_postdeps_CXX
11863 # The library search path used internally by the compiler when linking
11864 # a shared library.
11865 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11867 # Method to check whether dependent libraries are shared objects.
11868 deplibs_check_method=$lt_deplibs_check_method
11870 # Command to use when deplibs_check_method == file_magic.
11871 file_magic_cmd=$lt_file_magic_cmd
11873 # Flag that allows shared libraries with undefined symbols to be built.
11874 allow_undefined_flag=$lt_allow_undefined_flag_CXX
11876 # Flag that forces no undefined symbols.
11877 no_undefined_flag=$lt_no_undefined_flag_CXX
11879 # Commands used to finish a libtool library installation in a directory.
11880 finish_cmds=$lt_finish_cmds
11882 # Same as above, but a single script fragment to be evaled but not shown.
11883 finish_eval=$lt_finish_eval
11885 # Take the output of nm and produce a listing of raw symbols and C names.
11886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11888 # Transform the output of nm in a proper C declaration
11889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11891 # Transform the output of nm in a C name address pair
11892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11894 # This is the shared library runtime path variable.
11895 runpath_var=$runpath_var
11897 # This is the shared library path variable.
11898 shlibpath_var=$shlibpath_var
11900 # Is shlibpath searched before the hard-coded library search path?
11901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11903 # How to hardcode a shared library path into an executable.
11904 hardcode_action=$hardcode_action_CXX
11906 # Whether we should hardcode library paths into libraries.
11907 hardcode_into_libs=$hardcode_into_libs
11909 # Flag to hardcode \$libdir into a binary during linking.
11910 # This must work even if \$libdir does not exist.
11911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11913 # If ld is used when linking, flag to hardcode \$libdir into
11914 # a binary during linking. This must work even if \$libdir does
11916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
11918 # Whether we need a single -rpath flag with a separated argument.
11919 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11921 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11922 # resulting binary.
11923 hardcode_direct=$hardcode_direct_CXX
11925 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11926 # resulting binary.
11927 hardcode_minus_L=$hardcode_minus_L_CXX
11929 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11930 # the resulting binary.
11931 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11933 # Set to yes if building a shared library automatically hardcodes DIR into the library
11934 # and all subsequent libraries and executables linked against it.
11935 hardcode_automatic=$hardcode_automatic_CXX
11937 # Variables whose values should be saved in libtool wrapper scripts and
11938 # restored at relink time.
11939 variables_saved_for_relink="$variables_saved_for_relink"
11941 # Whether libtool must link a program against all its dependency libraries.
11942 link_all_deplibs=$link_all_deplibs_CXX
11944 # Compile-time system search path for libraries
11945 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11947 # Run-time system search path for libraries
11948 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11950 # Fix the shell variable \$srcfile for the compiler.
11951 fix_srcfile_path="$fix_srcfile_path_CXX"
11953 # Set to yes if exported symbols are required.
11954 always_export_symbols=$always_export_symbols_CXX
11956 # The commands to list exported symbols.
11957 export_symbols_cmds=$lt_export_symbols_cmds_CXX
11959 # The commands to extract the exported symbol list from a shared archive.
11960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11962 # Symbols that should not be listed in the preloaded symbols.
11963 exclude_expsyms=$lt_exclude_expsyms_CXX
11965 # Symbols that must always be exported.
11966 include_expsyms=$lt_include_expsyms_CXX
11968 # ### END LIBTOOL TAG CONFIG: $tagname
11974 # If there is no Makefile yet, we rely on a make rule to execute
11975 # `config.status --recheck' to rerun these tests and create the
11976 # libtool script then.
11977 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11978 if test -f "$ltmain_in"; then
11979 test -f Makefile && make "$ltmain"
11985 ac_cpp='$CPP $CPPFLAGS'
11986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11994 with_gnu_ldcxx=$with_gnu_ld
11995 with_gnu_ld=$lt_save_with_gnu_ld
11996 lt_cv_path_LDCXX=$lt_cv_path_LD
11997 lt_cv_path_LD=$lt_save_path_LD
11998 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
11999 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12007 if test -n "$F77" && test "X$F77" != "Xno"; then
12010 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12011 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12012 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12015 archive_cmds_need_lc_F77=no
12016 allow_undefined_flag_F77=
12017 always_export_symbols_F77=no
12018 archive_expsym_cmds_F77=
12019 export_dynamic_flag_spec_F77=
12020 hardcode_direct_F77=no
12021 hardcode_libdir_flag_spec_F77=
12022 hardcode_libdir_flag_spec_ld_F77=
12023 hardcode_libdir_separator_F77=
12024 hardcode_minus_L_F77=no
12025 hardcode_automatic_F77=no
12027 module_expsym_cmds_F77=
12028 link_all_deplibs_F77=unknown
12029 old_archive_cmds_F77=$old_archive_cmds
12030 no_undefined_flag_F77=
12031 whole_archive_flag_spec_F77=
12032 enable_shared_with_static_runtimes_F77=no
12034 # Source file extension for f77 test sources.
12037 # Object file extension for compiled f77 test sources.
12041 # Code to be used in simple compile tests
12042 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12044 # Code to be used in simple link tests
12045 lt_simple_link_test_code=" program t\n end\n"
12047 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12049 # If no C compiler was specified, use CC.
12052 # Allow CC to be a program name with arguments.
12056 # Allow CC to be a program name with arguments.
12061 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12063 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12064 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12065 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12066 echo "${ECHO_T}$can_build_shared" >&6
12068 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12069 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12070 test "$can_build_shared" = "no" && enable_shared=no
12072 # On AIX, shared libraries and static libraries use the same namespace, and
12073 # are all built from PIC.
12076 test "$enable_shared" = yes && enable_static=no
12077 if test -n "$RANLIB"; then
12078 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12079 postinstall_cmds='$RANLIB $lib'
12083 test "$enable_shared" = yes && enable_static=no
12086 echo "$as_me:$LINENO: result: $enable_shared" >&5
12087 echo "${ECHO_T}$enable_shared" >&6
12089 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12090 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12091 # Make sure either enable_shared or enable_static is yes.
12092 test "$enable_shared" = yes || enable_static=yes
12093 echo "$as_me:$LINENO: result: $enable_static" >&5
12094 echo "${ECHO_T}$enable_static" >&6
12096 test "$ld_shlibs_F77" = no && can_build_shared=no
12101 lt_prog_compiler_wl_F77=
12102 lt_prog_compiler_pic_F77=
12103 lt_prog_compiler_static_F77=
12105 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12106 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12108 if test "$GCC" = yes; then
12109 lt_prog_compiler_wl_F77='-Wl,'
12110 lt_prog_compiler_static_F77='-static'
12114 # All AIX code is PIC.
12115 if test "$host_cpu" = ia64; then
12116 # AIX 5 now supports IA64 processor
12117 lt_prog_compiler_static_F77='-Bstatic'
12122 # FIXME: we need at least 68020 code to build shared libraries, but
12123 # adding the `-m68020' flag to GCC prevents building anything better,
12125 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12128 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12129 # PIC is the default for these OSes.
12132 mingw* | pw32* | os2*)
12133 # This hack is so that the source file can tell whether it is being
12134 # built for inclusion in a dll (and should export symbols for example).
12135 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12138 darwin* | rhapsody*)
12139 # PIC is the default on this platform
12140 # Common symbols not allowed in MH_DYLIB files
12141 lt_prog_compiler_pic_F77='-fno-common'
12145 # Just because we use GCC doesn't mean we suddenly get shared libraries
12146 # on systems that don't support them.
12147 lt_prog_compiler_can_build_shared_F77=no
12152 if test -d /usr/nec; then
12153 lt_prog_compiler_pic_F77=-Kconform_pic
12158 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12159 # not for PA HP-UX.
12160 case "$host_cpu" in
12165 lt_prog_compiler_pic_F77='-fPIC'
12171 lt_prog_compiler_pic_F77='-fPIC'
12175 # PORTME Check for flag to pass linker flags through the system compiler.
12178 lt_prog_compiler_wl_F77='-Wl,'
12179 if test "$host_cpu" = ia64; then
12180 # AIX 5 now supports IA64 processor
12181 lt_prog_compiler_static_F77='-Bstatic'
12183 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12187 mingw* | pw32* | os2*)
12188 # This hack is so that the source file can tell whether it is being
12189 # built for inclusion in a dll (and should export symbols for example).
12190 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12193 hpux9* | hpux10* | hpux11*)
12194 lt_prog_compiler_wl_F77='-Wl,'
12195 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12196 # not for PA HP-UX.
12197 case "$host_cpu" in
12202 lt_prog_compiler_pic_F77='+Z'
12205 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12206 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12209 irix5* | irix6* | nonstopux*)
12210 lt_prog_compiler_wl_F77='-Wl,'
12211 # PIC (with -KPIC) is the default.
12212 lt_prog_compiler_static_F77='-non_shared'
12216 lt_prog_compiler_pic_F77='-KPIC'
12217 lt_prog_compiler_static_F77='-Bstatic'
12223 lt_prog_compiler_wl_F77='-Wl,'
12224 lt_prog_compiler_pic_F77='-KPIC'
12225 lt_prog_compiler_static_F77='-static'
12228 lt_prog_compiler_wl_F77='-Wl,'
12229 # All Alpha code is PIC.
12230 lt_prog_compiler_static_F77='-non_shared'
12235 osf3* | osf4* | osf5*)
12236 lt_prog_compiler_wl_F77='-Wl,'
12237 # All OSF/1 code is PIC.
12238 lt_prog_compiler_static_F77='-non_shared'
12242 lt_prog_compiler_pic_F77='-Kpic'
12243 lt_prog_compiler_static_F77='-dn'
12247 lt_prog_compiler_wl_F77='-Wl,'
12248 lt_prog_compiler_pic_F77='-KPIC'
12249 lt_prog_compiler_static_F77='-Bstatic'
12253 lt_prog_compiler_wl_F77='-Qoption ld '
12254 lt_prog_compiler_pic_F77='-PIC'
12255 lt_prog_compiler_static_F77='-Bstatic'
12258 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12259 lt_prog_compiler_wl_F77='-Wl,'
12260 lt_prog_compiler_pic_F77='-KPIC'
12261 lt_prog_compiler_static_F77='-Bstatic'
12265 if test -d /usr/nec ;then
12266 lt_prog_compiler_pic_F77='-Kconform_pic'
12267 lt_prog_compiler_static_F77='-Bstatic'
12272 lt_prog_compiler_pic_F77='-pic'
12273 lt_prog_compiler_static_F77='-Bstatic'
12277 lt_prog_compiler_can_build_shared_F77=no
12282 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12283 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12286 # Check to make sure the PIC flag actually works.
12288 if test -n "$lt_prog_compiler_pic_F77"; then
12290 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12291 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12292 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 lt_prog_compiler_pic_works_F77=no
12296 ac_outfile=conftest.$ac_objext
12297 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12298 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12299 # Insert the option either (1) after the last *FLAGS variable, or
12300 # (2) before a word containing "conftest.", or (3) at the end.
12301 # Note that $ac_compile itself does not contain backslashes and begins
12302 # with a dollar sign (not a hyphen), so the echo should work correctly.
12303 # The option is referenced via a variable to avoid confusing sed.
12304 lt_compile=`echo "$ac_compile" | $SED \
12305 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12307 -e 's:$: $lt_compiler_flag:'`
12308 (eval echo "\"\$as_me:12308: $lt_compile\"" >&5)
12309 (eval "$lt_compile" 2>conftest.err)
12311 cat conftest.err >&5
12312 echo "$as_me:12312: \$? = $ac_status" >&5
12313 if (exit $ac_status) && test -s "$ac_outfile"; then
12314 # The compiler can only warn and ignore the option if not recognized
12315 # So say no if there are warnings
12316 if test ! -s conftest.err; then
12317 lt_prog_compiler_pic_works_F77=yes
12323 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12324 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12326 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12327 case $lt_prog_compiler_pic_F77 in
12329 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12332 lt_prog_compiler_pic_F77=
12333 lt_prog_compiler_can_build_shared_F77=no
12338 # For platforms which do not support PIC, -DPIC is meaningless:
12340 lt_prog_compiler_pic_F77=
12343 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12347 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12349 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 lt_cv_prog_compiler_c_o_F77=no
12353 $rm -r conftest 2>/dev/null
12357 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12359 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12360 # that will create temporary files in the current directory regardless of
12361 # the output directory. Thus, making CWD read-only will cause this test
12362 # to fail, enabling locking or at least warning the user not to do parallel
12366 lt_compiler_flag="-o out/conftest2.$ac_objext"
12367 # Insert the option either (1) after the last *FLAGS variable, or
12368 # (2) before a word containing "conftest.", or (3) at the end.
12369 # Note that $ac_compile itself does not contain backslashes and begins
12370 # with a dollar sign (not a hyphen), so the echo should work correctly.
12371 lt_compile=`echo "$ac_compile" | $SED \
12372 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12374 -e 's:$: $lt_compiler_flag:'`
12375 (eval echo "\"\$as_me:12375: $lt_compile\"" >&5)
12376 (eval "$lt_compile" 2>out/conftest.err)
12378 cat out/conftest.err >&5
12379 echo "$as_me:12379: \$? = $ac_status" >&5
12380 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12382 # The compiler can only warn and ignore the option if not recognized
12383 # So say no if there are warnings
12384 if test ! -s out/conftest.err; then
12385 lt_cv_prog_compiler_c_o_F77=yes
12390 # SGI C++ compiler will create directory out/ii_files/ for
12391 # template instantiation
12392 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12393 $rm out/* && rmdir out
12399 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12400 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12403 hard_links="nottested"
12404 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12405 # do not overwrite the value of need_locks provided by the user
12406 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12407 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12410 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12412 ln conftest.a conftest.b 2>&5 || hard_links=no
12413 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12414 echo "$as_me:$LINENO: result: $hard_links" >&5
12415 echo "${ECHO_T}$hard_links" >&6
12416 if test "$hard_links" = no; then
12417 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12418 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12425 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12426 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12429 allow_undefined_flag_F77=
12430 enable_shared_with_static_runtimes_F77=no
12432 archive_expsym_cmds_F77=
12433 old_archive_From_new_cmds_F77=
12434 old_archive_from_expsyms_cmds_F77=
12435 export_dynamic_flag_spec_F77=
12436 whole_archive_flag_spec_F77=
12437 thread_safe_flag_spec_F77=
12438 hardcode_libdir_flag_spec_F77=
12439 hardcode_libdir_flag_spec_ld_F77=
12440 hardcode_libdir_separator_F77=
12441 hardcode_direct_F77=no
12442 hardcode_minus_L_F77=no
12443 hardcode_shlibpath_var_F77=unsupported
12444 link_all_deplibs_F77=unknown
12445 hardcode_automatic_F77=no
12447 module_expsym_cmds_F77=
12448 always_export_symbols_F77=no
12449 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12450 # include_expsyms should be a list of space-separated symbols to be *always*
12451 # included in the symbol list
12452 include_expsyms_F77=
12453 # exclude_expsyms can be an extended regexp of symbols to exclude
12454 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12455 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12456 # as well as any symbol that contains `d'.
12457 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12458 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12459 # platforms (ab)use it in PIC code, but their linkers get confused if
12460 # the symbol is explicitly referenced. Since portable code cannot
12461 # rely on this symbol name, it's probably fine to never include it in
12462 # preloaded symbol tables.
12463 extract_expsyms_cmds=
12466 cygwin* | mingw* | pw32*)
12467 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12468 # When not using gcc, we currently assume that we are using
12469 # Microsoft Visual C++.
12470 if test "$GCC" != yes; then
12480 if test "$with_gnu_ld" = yes; then
12481 # If archive_cmds runs LD, not CC, wlarc should be empty
12484 # See if GNU ld supports shared libraries.
12486 aix3* | aix4* | aix5*)
12487 # On AIX/PPC, the GNU linker is very broken
12488 if test "$host_cpu" != ia64; then
12492 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12493 *** to be unable to reliably create shared libraries on AIX.
12494 *** Therefore, libtool is disabling shared libraries support. If you
12495 *** really care for shared libraries, you may want to modify your PATH
12496 *** so that a non-GNU linker is found, and then restart.
12503 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)'
12504 hardcode_libdir_flag_spec_F77='-L$libdir'
12505 hardcode_minus_L_F77=yes
12507 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12508 # that the semantics of dynamic libraries on AmigaOS, at least up
12509 # to version 4, is to share data among multiple programs linked
12510 # with the same dynamic library. Since this doesn't match the
12511 # behavior of shared libraries on other platforms, we can't use
12517 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12518 allow_undefined_flag_F77=unsupported
12519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12520 # support --undefined. This deserves some investigation. FIXME
12521 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12527 cygwin* | mingw* | pw32*)
12528 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12529 # as there is no search path for DLLs.
12530 hardcode_libdir_flag_spec_F77='-L$libdir'
12531 allow_undefined_flag_F77=unsupported
12532 always_export_symbols_F77=no
12533 enable_shared_with_static_runtimes_F77=yes
12534 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12536 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12537 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12538 # If the export-symbols file already is a .def file (1st line
12539 # is EXPORTS), use it as is; otherwise, prepend...
12540 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12541 cp $export_symbols $output_objdir/$soname.def;
12543 echo EXPORTS > $output_objdir/$soname.def;
12544 cat $export_symbols >> $output_objdir/$soname.def;
12546 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12553 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12554 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12557 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12558 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12563 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12567 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12568 *** create shared libraries on Solaris systems. Therefore, libtool
12569 *** is disabling shared libraries support. We urge you to upgrade GNU
12570 *** binutils to release 2.9.1 or newer. Another option is to modify
12571 *** your PATH or compiler configuration so that the native linker is
12572 *** used, and then restart.
12575 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12576 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12577 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12584 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12586 hardcode_direct_F77=yes
12587 hardcode_shlibpath_var_F77=no
12591 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12592 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12593 archive_cmds_F77="$tmp_archive_cmds"
12594 supports_anon_versioning=no
12595 case `$LD -v 2>/dev/null` in
12596 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12597 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12598 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12599 *\ 2.11.*) ;; # other 2.11 versions
12600 *) supports_anon_versioning=yes ;;
12602 if test $supports_anon_versioning = yes; then
12603 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12605 $echo "local: *; };" >> $output_objdir/$libname.ver~
12606 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12608 archive_expsym_cmds_F77="$tmp_archive_cmds"
12616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12617 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12618 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12625 if test "$ld_shlibs_F77" = yes; then
12626 runpath_var=LD_RUN_PATH
12627 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12628 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12629 # ancient GNU ld didn't support --whole-archive et. al.
12630 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12631 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12633 whole_archive_flag_spec_F77=
12637 # PORTME fill in a description of your system's linker (not GNU ld)
12640 allow_undefined_flag_F77=unsupported
12641 always_export_symbols_F77=yes
12642 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'
12643 # Note: this linker hardcodes the directories in LIBPATH if there
12644 # are no directories specified by -L.
12645 hardcode_minus_L_F77=yes
12646 if test "$GCC" = yes && test -z "$link_static_flag"; then
12647 # Neither direct hardcoding nor static linking is supported with a
12649 hardcode_direct_F77=unsupported
12654 if test "$host_cpu" = ia64; then
12655 # On IA64, the linker does run time linking by default, so we don't
12656 # have to do anything special.
12657 aix_use_runtimelinking=no
12658 exp_sym_flag='-Bexport'
12661 # If we're using GNU nm, then we don't want the "-C" option.
12662 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12663 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12664 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'
12666 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'
12668 aix_use_runtimelinking=no
12670 # Test if we are trying to use run time linking or normal
12671 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12672 # need to do runtime linking.
12673 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12674 for ld_flag in $LDFLAGS; do
12675 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12676 aix_use_runtimelinking=yes
12682 exp_sym_flag='-bexport'
12683 no_entry_flag='-bnoentry'
12686 # When large executables or shared objects are built, AIX ld can
12687 # have problems creating the table of contents. If linking a library
12688 # or program results in "error TOC overflow" add -mminimal-toc to
12689 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12690 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12692 archive_cmds_F77=''
12693 hardcode_direct_F77=yes
12694 hardcode_libdir_separator_F77=':'
12695 link_all_deplibs_F77=yes
12697 if test "$GCC" = yes; then
12698 case $host_os in aix4.012|aix4.012.*)
12699 # We only want to do this on AIX 4.2 and lower, the check
12700 # below for broken collect2 doesn't work under 4.3+
12701 collect2name=`${CC} -print-prog-name=collect2`
12702 if test -f "$collect2name" && \
12703 strings "$collect2name" | grep resolve_lib_name >/dev/null
12705 # We have reworked collect2
12706 hardcode_direct_F77=yes
12708 # We have old collect2
12709 hardcode_direct_F77=unsupported
12710 # It fails to find uninstalled libraries when the uninstalled
12711 # path is not listed in the libpath. Setting hardcode_minus_L
12712 # to unsupported forces relinking
12713 hardcode_minus_L_F77=yes
12714 hardcode_libdir_flag_spec_F77='-L$libdir'
12715 hardcode_libdir_separator_F77=
12718 shared_flag='-shared'
12721 if test "$host_cpu" = ia64; then
12722 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12723 # chokes on -Wl,-G. The following line is correct:
12726 if test "$aix_use_runtimelinking" = yes; then
12727 shared_flag='${wl}-G'
12729 shared_flag='${wl}-bM:SRE'
12734 # It seems that -bexpall does not export symbols beginning with
12735 # underscore (_), so it is better to generate a list of symbols to export.
12736 always_export_symbols_F77=yes
12737 if test "$aix_use_runtimelinking" = yes; then
12738 # Warning - without using the other runtime loading flags (-brtl),
12739 # -berok will link without error, but may produce a broken library.
12740 allow_undefined_flag_F77='-berok'
12741 # Determine the default libpath from the value encoded in an empty executable.
12742 cat >conftest.$ac_ext <<_ACEOF
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749 (eval $ac_link) 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -s conftest$ac_exeext'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12762 # Check for a 64-bit object if we didn't find anything.
12763 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; }
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12773 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12774 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"
12776 if test "$host_cpu" = ia64; then
12777 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12778 allow_undefined_flag_F77="-z nodefs"
12779 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"
12781 # Determine the default libpath from the value encoded in an empty executable.
12782 cat >conftest.$ac_ext <<_ACEOF
12787 rm -f conftest.$ac_objext conftest$ac_exeext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789 (eval $ac_link) 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -s conftest$ac_exeext'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12800 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12802 # Check for a 64-bit object if we didn't find anything.
12803 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; }
12806 echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12813 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12814 # Warning - without using the other run time loading flags,
12815 # -berok will link without error, but may produce a broken library.
12816 no_undefined_flag_F77=' ${wl}-bernotok'
12817 allow_undefined_flag_F77=' ${wl}-berok'
12818 # -bexpall does not export symbols beginning with underscore (_)
12819 always_export_symbols_F77=yes
12820 # Exported symbols can be pulled into shared objects from archives
12821 whole_archive_flag_spec_F77=' '
12822 archive_cmds_need_lc_F77=yes
12823 # This is similar to how AIX traditionally builds it's shared libraries.
12824 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'
12830 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)'
12831 hardcode_libdir_flag_spec_F77='-L$libdir'
12832 hardcode_minus_L_F77=yes
12833 # see comment about different semantics on the GNU ld section
12838 export_dynamic_flag_spec_F77=-rdynamic
12841 cygwin* | mingw* | pw32*)
12842 # When not using gcc, we currently assume that we are using
12843 # Microsoft Visual C++.
12844 # hardcode_libdir_flag_spec is actually meaningless, as there is
12845 # no search path for DLLs.
12846 hardcode_libdir_flag_spec_F77=' '
12847 allow_undefined_flag_F77=unsupported
12848 # Tell ltmain to make .lib files, not .a files.
12850 # Tell ltmain to make .dll files, not .so files.
12852 # FIXME: Setting linknames here is a bad hack.
12853 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12854 # The linker will automatically build a .lib file if we build a DLL.
12855 old_archive_From_new_cmds_F77='true'
12856 # FIXME: Should let the user specify the lib program.
12857 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
12858 fix_srcfile_path='`cygpath -w "$srcfile"`'
12859 enable_shared_with_static_runtimes_F77=yes
12862 darwin* | rhapsody*)
12863 if test "$GXX" = yes ; then
12864 archive_cmds_need_lc_F77=no
12866 rhapsody* | darwin1.[012])
12867 allow_undefined_flag_F77='-undefined suppress'
12870 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12871 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
12873 case ${MACOSX_DEPLOYMENT_TARGET} in
12875 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
12878 allow_undefined_flag_F77='-undefined dynamic_lookup'
12884 lt_int_apple_cc_single_mod=no
12885 output_verbose_link_cmd='echo'
12886 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12887 lt_int_apple_cc_single_mod=yes
12889 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12890 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12892 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'
12894 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12895 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12896 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12897 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}'
12899 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}'
12901 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12902 hardcode_direct_F77=no
12903 hardcode_automatic_F77=yes
12904 hardcode_shlibpath_var_F77=unsupported
12905 whole_archive_flag_spec_F77='-all_load $convenience'
12906 link_all_deplibs_F77=yes
12913 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12914 hardcode_libdir_flag_spec_F77='-L$libdir'
12915 hardcode_shlibpath_var_F77=no
12922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12923 # support. Future versions do this automatically, but an explicit c++rt0.o
12924 # does not break anything, and helps significantly (at the cost of a little
12927 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12928 hardcode_libdir_flag_spec_F77='-R$libdir'
12929 hardcode_direct_F77=yes
12930 hardcode_shlibpath_var_F77=no
12933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12935 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12936 hardcode_direct_F77=yes
12937 hardcode_minus_L_F77=yes
12938 hardcode_shlibpath_var_F77=no
12941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12942 freebsd* | kfreebsd*-gnu)
12943 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12944 hardcode_libdir_flag_spec_F77='-R$libdir'
12945 hardcode_direct_F77=yes
12946 hardcode_shlibpath_var_F77=no
12950 if test "$GCC" = yes; then
12951 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'
12953 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'
12955 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12956 hardcode_libdir_separator_F77=:
12957 hardcode_direct_F77=yes
12959 # hardcode_minus_L: Not really in the search PATH,
12960 # but as the default location of the library.
12961 hardcode_minus_L_F77=yes
12962 export_dynamic_flag_spec_F77='${wl}-E'
12966 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12967 case "$host_cpu" in
12969 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12972 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12976 case "$host_cpu" in
12978 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12981 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12985 if test "$with_gnu_ld" = no; then
12986 case "$host_cpu" in
12988 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12989 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
12990 hardcode_libdir_separator_F77=:
12991 hardcode_direct_F77=no
12992 hardcode_shlibpath_var_F77=no
12995 hardcode_libdir_flag_spec_F77='-L$libdir'
12996 hardcode_direct_F77=no
12997 hardcode_shlibpath_var_F77=no
12999 # hardcode_minus_L: Not really in the search PATH,
13000 # but as the default location of the library.
13001 hardcode_minus_L_F77=yes
13004 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13005 hardcode_libdir_separator_F77=:
13006 hardcode_direct_F77=yes
13007 export_dynamic_flag_spec_F77='${wl}-E'
13009 # hardcode_minus_L: Not really in the search PATH,
13010 # but as the default location of the library.
13011 hardcode_minus_L_F77=yes
13017 irix5* | irix6* | nonstopux*)
13018 if test "$GCC" = yes; then
13019 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'
13021 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'
13022 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13024 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13025 hardcode_libdir_separator_F77=:
13026 link_all_deplibs_F77=yes
13030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13031 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13033 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13035 hardcode_libdir_flag_spec_F77='-R$libdir'
13036 hardcode_direct_F77=yes
13037 hardcode_shlibpath_var_F77=no
13041 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13042 hardcode_direct_F77=yes
13043 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13044 hardcode_libdir_separator_F77=:
13045 hardcode_shlibpath_var_F77=no
13049 hardcode_direct_F77=yes
13050 hardcode_shlibpath_var_F77=no
13051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13052 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13053 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13054 export_dynamic_flag_spec_F77='${wl}-E'
13057 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13058 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13059 hardcode_libdir_flag_spec_F77='-R$libdir'
13062 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13063 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13070 hardcode_libdir_flag_spec_F77='-L$libdir'
13071 hardcode_minus_L_F77=yes
13072 allow_undefined_flag_F77=unsupported
13073 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'
13074 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13078 if test "$GCC" = yes; then
13079 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13080 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'
13082 allow_undefined_flag_F77=' -expect_unresolved \*'
13083 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'
13085 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13086 hardcode_libdir_separator_F77=:
13089 osf4* | osf5*) # as osf3* with the addition of -msym flag
13090 if test "$GCC" = yes; then
13091 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13092 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'
13093 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13095 allow_undefined_flag_F77=' -expect_unresolved \*'
13096 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'
13097 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~
13098 $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'
13100 # Both c and cxx compiler support -rpath directly
13101 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13103 hardcode_libdir_separator_F77=:
13107 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13108 hardcode_shlibpath_var_F77=no
13109 export_dynamic_flag_spec_F77='${wl}-Bexport'
13110 runpath_var=LD_RUN_PATH
13111 hardcode_runpath_var=yes
13115 no_undefined_flag_F77=' -z text'
13116 if test "$GCC" = yes; then
13117 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13118 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13119 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13121 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13122 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13123 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13125 hardcode_libdir_flag_spec_F77='-R$libdir'
13126 hardcode_shlibpath_var_F77=no
13128 solaris2.[0-5] | solaris2.[0-5].*) ;;
13129 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13130 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13132 link_all_deplibs_F77=yes
13136 if test "x$host_vendor" = xsequent; then
13137 # Use $CC to link under sequent, because it throws in some extra .o
13138 # files that make .init and .fini sections work.
13139 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13141 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13143 hardcode_libdir_flag_spec_F77='-L$libdir'
13144 hardcode_direct_F77=yes
13145 hardcode_minus_L_F77=yes
13146 hardcode_shlibpath_var_F77=no
13150 case $host_vendor in
13152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13153 hardcode_direct_F77=yes # is this really true???
13156 ## LD is ld it makes a PLAMLIB
13157 ## CC just makes a GrossModule.
13158 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13159 reload_cmds_F77='$CC -r -o $output$reload_objs'
13160 hardcode_direct_F77=no
13163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13164 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13167 runpath_var='LD_RUN_PATH'
13168 hardcode_shlibpath_var_F77=no
13172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13173 hardcode_shlibpath_var_F77=no
13174 export_dynamic_flag_spec_F77='-Bexport'
13178 if test -d /usr/nec; then
13179 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13180 hardcode_shlibpath_var_F77=no
13181 runpath_var=LD_RUN_PATH
13182 hardcode_runpath_var=yes
13188 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13189 hardcode_direct_F77=yes
13190 hardcode_minus_L_F77=no
13191 hardcode_shlibpath_var_F77=no
13192 hardcode_runpath_var=yes
13193 runpath_var=LD_RUN_PATH
13196 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13197 no_undefined_flag_F77='${wl}-z ${wl}text'
13198 if test "$GCC" = yes; then
13199 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13201 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13203 runpath_var='LD_RUN_PATH'
13204 hardcode_shlibpath_var_F77=no
13208 no_undefined_flag_F77=' -z text'
13209 # $CC -shared without GNU ld will not create a library from C++
13210 # object files and a static libstdc++, better avoid it by now
13211 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13212 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13214 hardcode_libdir_flag_spec_F77=
13215 hardcode_shlibpath_var_F77=no
13216 runpath_var='LD_RUN_PATH'
13220 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13221 hardcode_libdir_flag_spec_F77='-L$libdir'
13222 hardcode_shlibpath_var_F77=no
13231 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13232 echo "${ECHO_T}$ld_shlibs_F77" >&6
13233 test "$ld_shlibs_F77" = no && can_build_shared=no
13235 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13236 if test "$GCC" = yes; then
13237 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13241 # Do we need to explicitly link libc?
13243 case "x$archive_cmds_need_lc_F77" in
13245 # Assume -lc should be added
13246 archive_cmds_need_lc_F77=yes
13248 if test "$enable_shared" = yes && test "$GCC" = yes; then
13249 case $archive_cmds_F77 in
13251 # FIXME: we may have to deal with multi-command sequences.
13254 # Test whether the compiler implicitly links with -lc since on some
13255 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13256 # to ld, don't add -lc before -lgcc.
13257 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13258 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263 (eval $ac_compile) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } 2>conftest.err; then
13269 libobjs=conftest.$ac_objext
13271 wl=$lt_prog_compiler_wl_F77
13277 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13278 allow_undefined_flag_F77=
13279 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13280 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }
13285 archive_cmds_need_lc_F77=no
13287 archive_cmds_need_lc_F77=yes
13289 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13291 cat conftest.err 1>&5
13294 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13295 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13302 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13303 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13304 library_names_spec=
13305 libname_spec='lib$name'
13309 postuninstall_cmds=
13313 shlibpath_overrides_runpath=unknown
13315 dynamic_linker="$host_os ld.so"
13316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13317 if test "$GCC" = yes; then
13318 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13319 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13320 # if the path contains ";" then we assume it to be the separator
13321 # otherwise default to the standard path separator (i.e. ":") - it is
13322 # assumed that no part of a normal pathname contains ";" but that should
13323 # okay in the real world where ";" in dirpaths is itself problematic.
13324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13331 need_lib_prefix=unknown
13332 hardcode_into_libs=no
13334 # when you set need_version to no, make sure it does not cause -set_version
13335 # flags to be left without arguments
13336 need_version=unknown
13341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13342 shlibpath_var=LIBPATH
13344 # AIX 3 has no versioning support, so we append a major version to the name.
13345 soname_spec='${libname}${release}${shared_ext}$major'
13352 hardcode_into_libs=yes
13353 if test "$host_cpu" = ia64; then
13354 # AIX 5 supports IA64
13355 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13356 shlibpath_var=LD_LIBRARY_PATH
13358 # With GCC up to 2.95.x, collect2 would create an import file
13359 # for dependence libraries. The import file would start with
13360 # the line `#! .'. This would cause the generated library to
13361 # depend on `.', always an invalid library. This was fixed in
13362 # development snapshots of GCC prior to 3.0.
13364 aix4 | aix4.[01] | aix4.[01].*)
13365 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13367 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13370 can_build_shared=no
13374 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13375 # soname into executable. Probably we can add versioning support to
13376 # collect2, so additional links can be useful in future.
13377 if test "$aix_use_runtimelinking" = yes; then
13378 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13379 # instead of lib<name>.a to let people know that these are not
13380 # typical AIX shared libraries.
13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13383 # We preserve .a as extension for shared libraries through AIX4.2
13384 # and later when we are not doing run time linking.
13385 library_names_spec='${libname}${release}.a $libname.a'
13386 soname_spec='${libname}${release}${shared_ext}$major'
13388 shlibpath_var=LIBPATH
13393 library_names_spec='$libname.ixlibrary $libname.a'
13394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13395 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'
13399 library_names_spec='${libname}${shared_ext}'
13400 dynamic_linker="$host_os ld.so"
13401 shlibpath_var=LIBRARY_PATH
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408 soname_spec='${libname}${release}${shared_ext}$major'
13409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13410 shlibpath_var=LD_LIBRARY_PATH
13411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13413 # the default ld.so.conf also contains /usr/contrib/lib and
13414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13415 # libtool to hard-code these into programs
13418 cygwin* | mingw* | pw32*)
13419 version_type=windows
13424 case $GCC,$host_os in
13425 yes,cygwin* | yes,mingw* | yes,pw32*)
13426 library_names_spec='$libname.dll.a'
13427 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13428 postinstall_cmds='base_file=`basename \${file}`~
13429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13430 dldir=$destdir/`dirname \$dlpath`~
13431 test -d \$dldir || mkdir -p \$dldir~
13432 $install_prog $dir/$dlname \$dldir/$dlname'
13433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13434 dlpath=$dir/\$dldll~
13436 shlibpath_overrides_runpath=yes
13440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13441 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13442 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13445 # MinGW DLLs use traditional 'lib' prefix
13446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13448 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13449 # It is most probably a Windows format PATH printed by
13450 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13451 # path with ; separators, and with drive letters. We can handle the
13452 # drive letters (cygwin fileutils understands them), so leave them,
13453 # especially as we might pass files found there to a mingw objdump,
13454 # which wouldn't understand a cygwinified path. Ahh.
13455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13461 # pw32 DLLs use 'pw' prefix rather than 'lib'
13462 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13468 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13471 dynamic_linker='Win32 ld.exe'
13472 # FIXME: first we should search . and the directory the executable is in
13476 darwin* | rhapsody*)
13477 dynamic_linker="$host_os dyld"
13478 version_type=darwin
13481 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13482 soname_spec='${libname}${release}${major}$shared_ext'
13483 shlibpath_overrides_runpath=yes
13484 shlibpath_var=DYLD_LIBRARY_PATH
13485 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13486 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13487 if test "$GCC" = yes; then
13488 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"`
13490 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13500 soname_spec='${libname}${release}${shared_ext}$major'
13501 shlibpath_var=LD_LIBRARY_PATH
13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13513 soname_spec='${libname}${release}${shared_ext}$major'
13514 shlibpath_var=LD_LIBRARY_PATH
13515 shlibpath_overrides_runpath=no
13516 hardcode_into_libs=yes
13517 dynamic_linker='GNU ld.so'
13521 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13522 version_type=freebsd-$objformat
13523 case $version_type in
13525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13534 shlibpath_var=LD_LIBRARY_PATH
13537 shlibpath_overrides_runpath=yes
13539 freebsd3.01* | freebsdelf3.01*)
13540 shlibpath_overrides_runpath=yes
13541 hardcode_into_libs=yes
13544 shlibpath_overrides_runpath=no
13545 hardcode_into_libs=yes
13554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13555 soname_spec='${libname}${release}${shared_ext}$major'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 hardcode_into_libs=yes
13560 hpux9* | hpux10* | hpux11*)
13561 # Give a soname corresponding to the major version so that dld.sl refuses to
13562 # link against other versions.
13566 case "$host_cpu" in
13569 hardcode_into_libs=yes
13570 dynamic_linker="$host_os dld.so"
13571 shlibpath_var=LD_LIBRARY_PATH
13572 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574 soname_spec='${libname}${release}${shared_ext}$major'
13575 if test "X$HPUX_IA64_MODE" = X32; then
13576 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13578 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13584 hardcode_into_libs=yes
13585 dynamic_linker="$host_os dld.sl"
13586 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13589 soname_spec='${libname}${release}${shared_ext}$major'
13590 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13591 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13595 dynamic_linker="$host_os dld.sl"
13596 shlibpath_var=SHLIB_PATH
13597 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13599 soname_spec='${libname}${release}${shared_ext}$major'
13602 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13603 postinstall_cmds='chmod 555 $lib'
13606 irix5* | irix6* | nonstopux*)
13608 nonstopux*) version_type=nonstopux ;;
13610 if test "$lt_cv_prog_gnu_ld" = yes; then
13618 soname_spec='${libname}${release}${shared_ext}$major'
13619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13621 irix5* | nonstopux*)
13622 libsuff= shlibsuff=
13625 case $LD in # libtool.m4 will add one of these switches to LD
13626 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13627 libsuff= shlibsuff= libmagic=32-bit;;
13628 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13629 libsuff=32 shlibsuff=N32 libmagic=N32;;
13630 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13631 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13632 *) libsuff= shlibsuff= libmagic=never-match;;
13636 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13637 shlibpath_overrides_runpath=no
13638 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13639 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13640 hardcode_into_libs=yes
13643 # No shared lib support for Linux oldld, aout, or coff.
13644 linux*oldld* | linux*aout* | linux*coff*)
13648 # This must be Linux ELF.
13653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13654 soname_spec='${libname}${release}${shared_ext}$major'
13655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13656 shlibpath_var=LD_LIBRARY_PATH
13657 shlibpath_overrides_runpath=no
13658 # This implies no fast_install, which is unacceptable.
13659 # Some rework will be needed to allow for fast_install
13660 # before this can be enabled.
13661 hardcode_into_libs=yes
13663 # We used to test for /lib/ld.so.1 and disable shared libraries on
13664 # powerpc, because MkLinux only supported shared libraries with the
13665 # GNU dynamic linker. Since this was broken with cross compilers,
13666 # most powerpc-linux boxes support dynamic linking these days and
13667 # people can always --disable-shared, the test was removed, and we
13668 # assume the GNU/Linux dynamic linker is in use.
13669 dynamic_linker='GNU/Linux ld.so'
13676 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13679 dynamic_linker='NetBSD (a.out) ld.so'
13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13682 soname_spec='${libname}${release}${shared_ext}$major'
13683 dynamic_linker='NetBSD ld.elf_so'
13685 shlibpath_var=LD_LIBRARY_PATH
13686 shlibpath_overrides_runpath=yes
13687 hardcode_into_libs=yes
13692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13693 shlibpath_var=LD_LIBRARY_PATH
13694 shlibpath_overrides_runpath=yes
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702 soname_spec='${libname}${release}${shared_ext}$major'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 shlibpath_overrides_runpath=yes
13711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13713 shlibpath_var=LD_LIBRARY_PATH
13714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13716 openbsd2.[89] | openbsd2.[89].*)
13717 shlibpath_overrides_runpath=no
13720 shlibpath_overrides_runpath=yes
13724 shlibpath_overrides_runpath=yes
13729 libname_spec='$name'
13732 library_names_spec='$libname${shared_ext} $libname.a'
13733 dynamic_linker='OS/2 ld.exe'
13734 shlibpath_var=LIBPATH
13737 osf3* | osf4* | osf5*)
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13743 shlibpath_var=LD_LIBRARY_PATH
13744 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13745 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13752 shlibpath_var=LD_LIBRARY_PATH
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760 soname_spec='${libname}${release}${shared_ext}$major'
13761 shlibpath_var=LD_LIBRARY_PATH
13762 shlibpath_overrides_runpath=yes
13763 hardcode_into_libs=yes
13764 # ldd complains unless libraries are executable
13765 postinstall_cmds='chmod +x $lib'
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13771 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13772 shlibpath_var=LD_LIBRARY_PATH
13773 shlibpath_overrides_runpath=yes
13774 if test "$with_gnu_ld" = yes; then
13780 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13783 soname_spec='${libname}${release}${shared_ext}$major'
13784 shlibpath_var=LD_LIBRARY_PATH
13785 case $host_vendor in
13787 shlibpath_overrides_runpath=no
13789 export_dynamic_flag_spec='${wl}-Blargedynsym'
13790 runpath_var=LD_RUN_PATH
13798 shlibpath_overrides_runpath=no
13799 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13805 if test -d /usr/nec ;then
13807 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13808 soname_spec='$libname${shared_ext}.$major'
13809 shlibpath_var=LD_LIBRARY_PATH
13815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13816 soname_spec='${libname}${release}${shared_ext}$major'
13817 shlibpath_var=LD_LIBRARY_PATH
13824 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13825 echo "${ECHO_T}$dynamic_linker" >&6
13826 test "$dynamic_linker" = no && can_build_shared=no
13828 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13829 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13830 hardcode_action_F77=
13831 if test -n "$hardcode_libdir_flag_spec_F77" || \
13832 test -n "$runpath_var F77" || \
13833 test "X$hardcode_automatic_F77"="Xyes" ; then
13835 # We can hardcode non-existant directories.
13836 if test "$hardcode_direct_F77" != no &&
13837 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13838 # have to relink, otherwise we might link with an installed library
13839 # when we should be linking with a yet-to-be-installed one
13840 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13841 test "$hardcode_minus_L_F77" != no; then
13842 # Linking always hardcodes the temporary library directory.
13843 hardcode_action_F77=relink
13845 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13846 hardcode_action_F77=immediate
13849 # We cannot hardcode anything, or else we can only hardcode existing
13851 hardcode_action_F77=unsupported
13853 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13854 echo "${ECHO_T}$hardcode_action_F77" >&6
13856 if test "$hardcode_action_F77" = relink; then
13857 # Fast installation is not supported
13858 enable_fast_install=no
13859 elif test "$shlibpath_overrides_runpath" = yes ||
13860 test "$enable_shared" = no; then
13861 # Fast installation is not necessary
13862 enable_fast_install=needless
13867 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13868 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13869 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13870 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13871 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13872 echo "$as_me:$LINENO: result: yes" >&5
13873 echo "${ECHO_T}yes" >&6
13875 # FIXME - insert some real tests, host_os isn't really good enough
13878 if test -n "$STRIP" ; then
13879 striplib="$STRIP -x"
13880 echo "$as_me:$LINENO: result: yes" >&5
13881 echo "${ECHO_T}yes" >&6
13883 echo "$as_me:$LINENO: result: no" >&5
13884 echo "${ECHO_T}no" >&6
13888 echo "$as_me:$LINENO: result: no" >&5
13889 echo "${ECHO_T}no" >&6
13896 # The else clause should only fire when bootstrapping the
13897 # libtool distribution, otherwise you forgot to ship ltmain.sh
13898 # with your package, and you will get complaints that there are
13899 # no rules to generate ltmain.sh.
13900 if test -f "$ltmain"; then
13901 # See if we are running on zsh, and set the options which allow our commands through
13902 # without removal of \ escapes.
13903 if test -n "${ZSH_VERSION+set}" ; then
13904 setopt NO_GLOB_SUBST
13906 # Now quote all the things that may contain metacharacters while being
13907 # careful not to overquote the AC_SUBSTed values. We take copies of the
13908 # variables and quote the copies for generation of the libtool script.
13909 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13911 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13912 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13913 deplibs_check_method reload_flag reload_cmds need_locks \
13914 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13915 lt_cv_sys_global_symbol_to_c_name_address \
13916 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13917 old_postinstall_cmds old_postuninstall_cmds \
13921 lt_prog_compiler_wl_F77 \
13922 lt_prog_compiler_pic_F77 \
13923 lt_prog_compiler_static_F77 \
13924 lt_prog_compiler_no_builtin_flag_F77 \
13925 export_dynamic_flag_spec_F77 \
13926 thread_safe_flag_spec_F77 \
13927 whole_archive_flag_spec_F77 \
13928 enable_shared_with_static_runtimes_F77 \
13929 old_archive_cmds_F77 \
13930 old_archive_from_new_cmds_F77 \
13931 predep_objects_F77 \
13932 postdep_objects_F77 \
13935 compiler_lib_search_path_F77 \
13937 archive_expsym_cmds_F77 \
13938 postinstall_cmds_F77 \
13939 postuninstall_cmds_F77 \
13940 old_archive_from_expsyms_cmds_F77 \
13941 allow_undefined_flag_F77 \
13942 no_undefined_flag_F77 \
13943 export_symbols_cmds_F77 \
13944 hardcode_libdir_flag_spec_F77 \
13945 hardcode_libdir_flag_spec_ld_F77 \
13946 hardcode_libdir_separator_F77 \
13947 hardcode_automatic_F77 \
13949 module_expsym_cmds_F77 \
13950 lt_cv_prog_compiler_c_o_F77 \
13951 exclude_expsyms_F77 \
13952 include_expsyms_F77; do
13955 old_archive_cmds_F77 | \
13956 old_archive_from_new_cmds_F77 | \
13957 archive_cmds_F77 | \
13958 archive_expsym_cmds_F77 | \
13959 module_cmds_F77 | \
13960 module_expsym_cmds_F77 | \
13961 old_archive_from_expsyms_cmds_F77 | \
13962 export_symbols_cmds_F77 | \
13963 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13964 postinstall_cmds | postuninstall_cmds | \
13965 old_postinstall_cmds | old_postuninstall_cmds | \
13966 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13967 # Double-quote double-evaled strings.
13968 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13971 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13977 *'\$0 --fallback-echo"')
13978 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13984 cat <<__EOF__ >> "$cfgfile"
13985 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13987 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13989 # Shell to use when invoking shell scripts.
13992 # Whether or not to build shared libraries.
13993 build_libtool_libs=$enable_shared
13995 # Whether or not to build static libraries.
13996 build_old_libs=$enable_static
13998 # Whether or not to add -lc for building shared libraries.
13999 build_libtool_need_lc=$archive_cmds_need_lc_F77
14001 # Whether or not to disallow shared libs when runtime libs are static
14002 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14004 # Whether or not to optimize for fast installation.
14005 fast_install=$enable_fast_install
14008 host_alias=$host_alias
14011 # An echo program that does not interpret backslashes.
14016 AR_FLAGS=$lt_AR_FLAGS
14021 # A language-specific compiler.
14022 CC=$lt_compiler_F77
14024 # Is the compiler the GNU C compiler?
14030 # The linker used to build libraries.
14033 # Whether we need hard or soft links.
14036 # A BSD-compatible nm program.
14039 # A symbol stripping program
14042 # Used to examine libraries when file_magic_cmd begins "file"
14043 MAGIC_CMD=$MAGIC_CMD
14045 # Used on cygwin: DLL creation program.
14048 # Used on cygwin: object dumper.
14051 # Used on cygwin: assembler.
14054 # The name of the directory that contains temporary libtool files.
14057 # How to create reloadable object files.
14058 reload_flag=$lt_reload_flag
14059 reload_cmds=$lt_reload_cmds
14061 # How to pass a linker flag through the compiler.
14062 wl=$lt_lt_prog_compiler_wl_F77
14064 # Object file suffix (normally "o").
14065 objext="$ac_objext"
14067 # Old archive suffix (normally "a").
14070 # Shared library suffix (normally ".so").
14073 # Executable file suffix (normally "").
14076 # Additional compiler flags for building library objects.
14077 pic_flag=$lt_lt_prog_compiler_pic_F77
14080 # What is the maximum length of a command?
14081 max_cmd_len=$lt_cv_sys_max_cmd_len
14083 # Does compiler simultaneously support -c and -o options?
14084 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14086 # Must we lock files when doing compilation ?
14087 need_locks=$lt_need_locks
14089 # Do we need the lib prefix for modules?
14090 need_lib_prefix=$need_lib_prefix
14092 # Do we need a version for libraries?
14093 need_version=$need_version
14095 # Whether dlopen is supported.
14096 dlopen_support=$enable_dlopen
14098 # Whether dlopen of programs is supported.
14099 dlopen_self=$enable_dlopen_self
14101 # Whether dlopen of statically linked programs is supported.
14102 dlopen_self_static=$enable_dlopen_self_static
14104 # Compiler flag to prevent dynamic linking.
14105 link_static_flag=$lt_lt_prog_compiler_static_F77
14107 # Compiler flag to turn off builtin functions.
14108 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14110 # Compiler flag to allow reflexive dlopens.
14111 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14113 # Compiler flag to generate shared objects directly from archives.
14114 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14116 # Compiler flag to generate thread-safe objects.
14117 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14119 # Library versioning type.
14120 version_type=$version_type
14122 # Format of library name prefix.
14123 libname_spec=$lt_libname_spec
14125 # List of archive names. First name is the real one, the rest are links.
14126 # The last name is the one that the linker finds with -lNAME.
14127 library_names_spec=$lt_library_names_spec
14129 # The coded name of the library, if different from the real name.
14130 soname_spec=$lt_soname_spec
14132 # Commands used to build and install an old-style archive.
14134 old_archive_cmds=$lt_old_archive_cmds_F77
14135 old_postinstall_cmds=$lt_old_postinstall_cmds
14136 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14138 # Create an old-style archive from a shared archive.
14139 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14141 # Create a temporary old-style archive to link instead of a shared archive.
14142 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14144 # Commands used to build and install a shared archive.
14145 archive_cmds=$lt_archive_cmds_F77
14146 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14147 postinstall_cmds=$lt_postinstall_cmds
14148 postuninstall_cmds=$lt_postuninstall_cmds
14150 # Commands used to build a loadable module (assumed same as above if empty)
14151 module_cmds=$lt_module_cmds_F77
14152 module_expsym_cmds=$lt_module_expsym_cmds_F77
14154 # Commands to strip libraries.
14155 old_striplib=$lt_old_striplib
14156 striplib=$lt_striplib
14158 # Dependencies to place before the objects being linked to create a
14160 predep_objects=$lt_predep_objects_F77
14162 # Dependencies to place after the objects being linked to create a
14164 postdep_objects=$lt_postdep_objects_F77
14166 # Dependencies to place before the objects being linked to create a
14168 predeps=$lt_predeps_F77
14170 # Dependencies to place after the objects being linked to create a
14172 postdeps=$lt_postdeps_F77
14174 # The library search path used internally by the compiler when linking
14175 # a shared library.
14176 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14178 # Method to check whether dependent libraries are shared objects.
14179 deplibs_check_method=$lt_deplibs_check_method
14181 # Command to use when deplibs_check_method == file_magic.
14182 file_magic_cmd=$lt_file_magic_cmd
14184 # Flag that allows shared libraries with undefined symbols to be built.
14185 allow_undefined_flag=$lt_allow_undefined_flag_F77
14187 # Flag that forces no undefined symbols.
14188 no_undefined_flag=$lt_no_undefined_flag_F77
14190 # Commands used to finish a libtool library installation in a directory.
14191 finish_cmds=$lt_finish_cmds
14193 # Same as above, but a single script fragment to be evaled but not shown.
14194 finish_eval=$lt_finish_eval
14196 # Take the output of nm and produce a listing of raw symbols and C names.
14197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14199 # Transform the output of nm in a proper C declaration
14200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14202 # Transform the output of nm in a C name address pair
14203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14205 # This is the shared library runtime path variable.
14206 runpath_var=$runpath_var
14208 # This is the shared library path variable.
14209 shlibpath_var=$shlibpath_var
14211 # Is shlibpath searched before the hard-coded library search path?
14212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14214 # How to hardcode a shared library path into an executable.
14215 hardcode_action=$hardcode_action_F77
14217 # Whether we should hardcode library paths into libraries.
14218 hardcode_into_libs=$hardcode_into_libs
14220 # Flag to hardcode \$libdir into a binary during linking.
14221 # This must work even if \$libdir does not exist.
14222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14224 # If ld is used when linking, flag to hardcode \$libdir into
14225 # a binary during linking. This must work even if \$libdir does
14227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14229 # Whether we need a single -rpath flag with a separated argument.
14230 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14232 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14233 # resulting binary.
14234 hardcode_direct=$hardcode_direct_F77
14236 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14237 # resulting binary.
14238 hardcode_minus_L=$hardcode_minus_L_F77
14240 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14241 # the resulting binary.
14242 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14244 # Set to yes if building a shared library automatically hardcodes DIR into the library
14245 # and all subsequent libraries and executables linked against it.
14246 hardcode_automatic=$hardcode_automatic_F77
14248 # Variables whose values should be saved in libtool wrapper scripts and
14249 # restored at relink time.
14250 variables_saved_for_relink="$variables_saved_for_relink"
14252 # Whether libtool must link a program against all its dependency libraries.
14253 link_all_deplibs=$link_all_deplibs_F77
14255 # Compile-time system search path for libraries
14256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14258 # Run-time system search path for libraries
14259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14261 # Fix the shell variable \$srcfile for the compiler.
14262 fix_srcfile_path="$fix_srcfile_path_F77"
14264 # Set to yes if exported symbols are required.
14265 always_export_symbols=$always_export_symbols_F77
14267 # The commands to list exported symbols.
14268 export_symbols_cmds=$lt_export_symbols_cmds_F77
14270 # The commands to extract the exported symbol list from a shared archive.
14271 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14273 # Symbols that should not be listed in the preloaded symbols.
14274 exclude_expsyms=$lt_exclude_expsyms_F77
14276 # Symbols that must always be exported.
14277 include_expsyms=$lt_include_expsyms_F77
14279 # ### END LIBTOOL TAG CONFIG: $tagname
14285 # If there is no Makefile yet, we rely on a make rule to execute
14286 # `config.status --recheck' to rerun these tests and create the
14287 # libtool script then.
14288 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14289 if test -f "$ltmain_in"; then
14290 test -f Makefile && make "$ltmain"
14296 ac_cpp='$CPP $CPPFLAGS'
14297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14309 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14313 # Source file extension for Java test sources.
14316 # Object file extension for compiled Java test sources.
14320 # Code to be used in simple compile tests
14321 lt_simple_compile_test_code="class foo {}\n"
14323 # Code to be used in simple link tests
14324 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14326 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14328 # If no C compiler was specified, use CC.
14331 # Allow CC to be a program name with arguments.
14335 # Allow CC to be a program name with arguments.
14341 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14342 archive_cmds_need_lc_GCJ=no
14345 ## There is no encapsulation within the following macros, do not change
14346 ## the running order or otherwise move them around unless you know exactly
14347 ## what you are doing...
14349 lt_prog_compiler_no_builtin_flag_GCJ=
14351 if test "$GCC" = yes; then
14352 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14355 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14356 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14357 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 lt_cv_prog_compiler_rtti_exceptions=no
14361 ac_outfile=conftest.$ac_objext
14362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14363 lt_compiler_flag="-fno-rtti -fno-exceptions"
14364 # Insert the option either (1) after the last *FLAGS variable, or
14365 # (2) before a word containing "conftest.", or (3) at the end.
14366 # Note that $ac_compile itself does not contain backslashes and begins
14367 # with a dollar sign (not a hyphen), so the echo should work correctly.
14368 # The option is referenced via a variable to avoid confusing sed.
14369 lt_compile=`echo "$ac_compile" | $SED \
14370 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14372 -e 's:$: $lt_compiler_flag:'`
14373 (eval echo "\"\$as_me:14373: $lt_compile\"" >&5)
14374 (eval "$lt_compile" 2>conftest.err)
14376 cat conftest.err >&5
14377 echo "$as_me:14377: \$? = $ac_status" >&5
14378 if (exit $ac_status) && test -s "$ac_outfile"; then
14379 # The compiler can only warn and ignore the option if not recognized
14380 # So say no if there are warnings
14381 if test ! -s conftest.err; then
14382 lt_cv_prog_compiler_rtti_exceptions=yes
14388 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14389 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14391 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14392 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14399 lt_prog_compiler_wl_GCJ=
14400 lt_prog_compiler_pic_GCJ=
14401 lt_prog_compiler_static_GCJ=
14403 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14404 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14406 if test "$GCC" = yes; then
14407 lt_prog_compiler_wl_GCJ='-Wl,'
14408 lt_prog_compiler_static_GCJ='-static'
14412 # All AIX code is PIC.
14413 if test "$host_cpu" = ia64; then
14414 # AIX 5 now supports IA64 processor
14415 lt_prog_compiler_static_GCJ='-Bstatic'
14420 # FIXME: we need at least 68020 code to build shared libraries, but
14421 # adding the `-m68020' flag to GCC prevents building anything better,
14423 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14426 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14427 # PIC is the default for these OSes.
14430 mingw* | pw32* | os2*)
14431 # This hack is so that the source file can tell whether it is being
14432 # built for inclusion in a dll (and should export symbols for example).
14433 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14436 darwin* | rhapsody*)
14437 # PIC is the default on this platform
14438 # Common symbols not allowed in MH_DYLIB files
14439 lt_prog_compiler_pic_GCJ='-fno-common'
14443 # Just because we use GCC doesn't mean we suddenly get shared libraries
14444 # on systems that don't support them.
14445 lt_prog_compiler_can_build_shared_GCJ=no
14450 if test -d /usr/nec; then
14451 lt_prog_compiler_pic_GCJ=-Kconform_pic
14456 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14457 # not for PA HP-UX.
14458 case "$host_cpu" in
14463 lt_prog_compiler_pic_GCJ='-fPIC'
14469 lt_prog_compiler_pic_GCJ='-fPIC'
14473 # PORTME Check for flag to pass linker flags through the system compiler.
14476 lt_prog_compiler_wl_GCJ='-Wl,'
14477 if test "$host_cpu" = ia64; then
14478 # AIX 5 now supports IA64 processor
14479 lt_prog_compiler_static_GCJ='-Bstatic'
14481 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14485 mingw* | pw32* | os2*)
14486 # This hack is so that the source file can tell whether it is being
14487 # built for inclusion in a dll (and should export symbols for example).
14488 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14491 hpux9* | hpux10* | hpux11*)
14492 lt_prog_compiler_wl_GCJ='-Wl,'
14493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14494 # not for PA HP-UX.
14495 case "$host_cpu" in
14500 lt_prog_compiler_pic_GCJ='+Z'
14503 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14504 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14507 irix5* | irix6* | nonstopux*)
14508 lt_prog_compiler_wl_GCJ='-Wl,'
14509 # PIC (with -KPIC) is the default.
14510 lt_prog_compiler_static_GCJ='-non_shared'
14514 lt_prog_compiler_pic_GCJ='-KPIC'
14515 lt_prog_compiler_static_GCJ='-Bstatic'
14521 lt_prog_compiler_wl_GCJ='-Wl,'
14522 lt_prog_compiler_pic_GCJ='-KPIC'
14523 lt_prog_compiler_static_GCJ='-static'
14526 lt_prog_compiler_wl_GCJ='-Wl,'
14527 # All Alpha code is PIC.
14528 lt_prog_compiler_static_GCJ='-non_shared'
14533 osf3* | osf4* | osf5*)
14534 lt_prog_compiler_wl_GCJ='-Wl,'
14535 # All OSF/1 code is PIC.
14536 lt_prog_compiler_static_GCJ='-non_shared'
14540 lt_prog_compiler_pic_GCJ='-Kpic'
14541 lt_prog_compiler_static_GCJ='-dn'
14545 lt_prog_compiler_wl_GCJ='-Wl,'
14546 lt_prog_compiler_pic_GCJ='-KPIC'
14547 lt_prog_compiler_static_GCJ='-Bstatic'
14551 lt_prog_compiler_wl_GCJ='-Qoption ld '
14552 lt_prog_compiler_pic_GCJ='-PIC'
14553 lt_prog_compiler_static_GCJ='-Bstatic'
14556 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14557 lt_prog_compiler_wl_GCJ='-Wl,'
14558 lt_prog_compiler_pic_GCJ='-KPIC'
14559 lt_prog_compiler_static_GCJ='-Bstatic'
14563 if test -d /usr/nec ;then
14564 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14565 lt_prog_compiler_static_GCJ='-Bstatic'
14570 lt_prog_compiler_pic_GCJ='-pic'
14571 lt_prog_compiler_static_GCJ='-Bstatic'
14575 lt_prog_compiler_can_build_shared_GCJ=no
14580 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14581 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14584 # Check to make sure the PIC flag actually works.
14586 if test -n "$lt_prog_compiler_pic_GCJ"; then
14588 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14589 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14590 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 lt_prog_compiler_pic_works_GCJ=no
14594 ac_outfile=conftest.$ac_objext
14595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14596 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14597 # Insert the option either (1) after the last *FLAGS variable, or
14598 # (2) before a word containing "conftest.", or (3) at the end.
14599 # Note that $ac_compile itself does not contain backslashes and begins
14600 # with a dollar sign (not a hyphen), so the echo should work correctly.
14601 # The option is referenced via a variable to avoid confusing sed.
14602 lt_compile=`echo "$ac_compile" | $SED \
14603 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14605 -e 's:$: $lt_compiler_flag:'`
14606 (eval echo "\"\$as_me:14606: $lt_compile\"" >&5)
14607 (eval "$lt_compile" 2>conftest.err)
14609 cat conftest.err >&5
14610 echo "$as_me:14610: \$? = $ac_status" >&5
14611 if (exit $ac_status) && test -s "$ac_outfile"; then
14612 # The compiler can only warn and ignore the option if not recognized
14613 # So say no if there are warnings
14614 if test ! -s conftest.err; then
14615 lt_prog_compiler_pic_works_GCJ=yes
14621 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14622 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14624 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14625 case $lt_prog_compiler_pic_GCJ in
14627 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14630 lt_prog_compiler_pic_GCJ=
14631 lt_prog_compiler_can_build_shared_GCJ=no
14636 # For platforms which do not support PIC, -DPIC is meaningless:
14638 lt_prog_compiler_pic_GCJ=
14641 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14645 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14646 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14647 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 lt_cv_prog_compiler_c_o_GCJ=no
14651 $rm -r conftest 2>/dev/null
14655 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14657 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14658 # that will create temporary files in the current directory regardless of
14659 # the output directory. Thus, making CWD read-only will cause this test
14660 # to fail, enabling locking or at least warning the user not to do parallel
14664 lt_compiler_flag="-o out/conftest2.$ac_objext"
14665 # Insert the option either (1) after the last *FLAGS variable, or
14666 # (2) before a word containing "conftest.", or (3) at the end.
14667 # Note that $ac_compile itself does not contain backslashes and begins
14668 # with a dollar sign (not a hyphen), so the echo should work correctly.
14669 lt_compile=`echo "$ac_compile" | $SED \
14670 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14672 -e 's:$: $lt_compiler_flag:'`
14673 (eval echo "\"\$as_me:14673: $lt_compile\"" >&5)
14674 (eval "$lt_compile" 2>out/conftest.err)
14676 cat out/conftest.err >&5
14677 echo "$as_me:14677: \$? = $ac_status" >&5
14678 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14680 # The compiler can only warn and ignore the option if not recognized
14681 # So say no if there are warnings
14682 if test ! -s out/conftest.err; then
14683 lt_cv_prog_compiler_c_o_GCJ=yes
14688 # SGI C++ compiler will create directory out/ii_files/ for
14689 # template instantiation
14690 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14691 $rm out/* && rmdir out
14697 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14698 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14701 hard_links="nottested"
14702 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14703 # do not overwrite the value of need_locks provided by the user
14704 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14705 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14708 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14710 ln conftest.a conftest.b 2>&5 || hard_links=no
14711 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14712 echo "$as_me:$LINENO: result: $hard_links" >&5
14713 echo "${ECHO_T}$hard_links" >&6
14714 if test "$hard_links" = no; then
14715 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14716 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14723 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14724 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14727 allow_undefined_flag_GCJ=
14728 enable_shared_with_static_runtimes_GCJ=no
14730 archive_expsym_cmds_GCJ=
14731 old_archive_From_new_cmds_GCJ=
14732 old_archive_from_expsyms_cmds_GCJ=
14733 export_dynamic_flag_spec_GCJ=
14734 whole_archive_flag_spec_GCJ=
14735 thread_safe_flag_spec_GCJ=
14736 hardcode_libdir_flag_spec_GCJ=
14737 hardcode_libdir_flag_spec_ld_GCJ=
14738 hardcode_libdir_separator_GCJ=
14739 hardcode_direct_GCJ=no
14740 hardcode_minus_L_GCJ=no
14741 hardcode_shlibpath_var_GCJ=unsupported
14742 link_all_deplibs_GCJ=unknown
14743 hardcode_automatic_GCJ=no
14745 module_expsym_cmds_GCJ=
14746 always_export_symbols_GCJ=no
14747 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14748 # include_expsyms should be a list of space-separated symbols to be *always*
14749 # included in the symbol list
14750 include_expsyms_GCJ=
14751 # exclude_expsyms can be an extended regexp of symbols to exclude
14752 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14753 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14754 # as well as any symbol that contains `d'.
14755 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14756 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14757 # platforms (ab)use it in PIC code, but their linkers get confused if
14758 # the symbol is explicitly referenced. Since portable code cannot
14759 # rely on this symbol name, it's probably fine to never include it in
14760 # preloaded symbol tables.
14761 extract_expsyms_cmds=
14764 cygwin* | mingw* | pw32*)
14765 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14766 # When not using gcc, we currently assume that we are using
14767 # Microsoft Visual C++.
14768 if test "$GCC" != yes; then
14778 if test "$with_gnu_ld" = yes; then
14779 # If archive_cmds runs LD, not CC, wlarc should be empty
14782 # See if GNU ld supports shared libraries.
14784 aix3* | aix4* | aix5*)
14785 # On AIX/PPC, the GNU linker is very broken
14786 if test "$host_cpu" != ia64; then
14790 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14791 *** to be unable to reliably create shared libraries on AIX.
14792 *** Therefore, libtool is disabling shared libraries support. If you
14793 *** really care for shared libraries, you may want to modify your PATH
14794 *** so that a non-GNU linker is found, and then restart.
14801 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)'
14802 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14803 hardcode_minus_L_GCJ=yes
14805 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14806 # that the semantics of dynamic libraries on AmigaOS, at least up
14807 # to version 4, is to share data among multiple programs linked
14808 # with the same dynamic library. Since this doesn't match the
14809 # behavior of shared libraries on other platforms, we can't use
14815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14816 allow_undefined_flag_GCJ=unsupported
14817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14818 # support --undefined. This deserves some investigation. FIXME
14819 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14825 cygwin* | mingw* | pw32*)
14826 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14827 # as there is no search path for DLLs.
14828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14829 allow_undefined_flag_GCJ=unsupported
14830 always_export_symbols_GCJ=no
14831 enable_shared_with_static_runtimes_GCJ=yes
14832 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14834 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14835 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14836 # If the export-symbols file already is a .def file (1st line
14837 # is EXPORTS), use it as is; otherwise, prepend...
14838 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14839 cp $export_symbols $output_objdir/$soname.def;
14841 echo EXPORTS > $output_objdir/$soname.def;
14842 cat $export_symbols >> $output_objdir/$soname.def;
14844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14851 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14852 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14855 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14856 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14861 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14865 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14866 *** create shared libraries on Solaris systems. Therefore, libtool
14867 *** is disabling shared libraries support. We urge you to upgrade GNU
14868 *** binutils to release 2.9.1 or newer. Another option is to modify
14869 *** your PATH or compiler configuration so that the native linker is
14870 *** used, and then restart.
14873 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14874 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14875 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14882 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14884 hardcode_direct_GCJ=yes
14885 hardcode_shlibpath_var_GCJ=no
14889 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14890 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14891 archive_cmds_GCJ="$tmp_archive_cmds"
14892 supports_anon_versioning=no
14893 case `$LD -v 2>/dev/null` in
14894 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14895 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14896 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14897 *\ 2.11.*) ;; # other 2.11 versions
14898 *) supports_anon_versioning=yes ;;
14900 if test $supports_anon_versioning = yes; then
14901 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
14902 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14903 $echo "local: *; };" >> $output_objdir/$libname.ver~
14904 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14906 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
14914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14915 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14916 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14923 if test "$ld_shlibs_GCJ" = yes; then
14924 runpath_var=LD_RUN_PATH
14925 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14926 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14927 # ancient GNU ld didn't support --whole-archive et. al.
14928 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14929 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14931 whole_archive_flag_spec_GCJ=
14935 # PORTME fill in a description of your system's linker (not GNU ld)
14938 allow_undefined_flag_GCJ=unsupported
14939 always_export_symbols_GCJ=yes
14940 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'
14941 # Note: this linker hardcodes the directories in LIBPATH if there
14942 # are no directories specified by -L.
14943 hardcode_minus_L_GCJ=yes
14944 if test "$GCC" = yes && test -z "$link_static_flag"; then
14945 # Neither direct hardcoding nor static linking is supported with a
14947 hardcode_direct_GCJ=unsupported
14952 if test "$host_cpu" = ia64; then
14953 # On IA64, the linker does run time linking by default, so we don't
14954 # have to do anything special.
14955 aix_use_runtimelinking=no
14956 exp_sym_flag='-Bexport'
14959 # If we're using GNU nm, then we don't want the "-C" option.
14960 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14961 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14962 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'
14964 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'
14966 aix_use_runtimelinking=no
14968 # Test if we are trying to use run time linking or normal
14969 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14970 # need to do runtime linking.
14971 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14972 for ld_flag in $LDFLAGS; do
14973 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14974 aix_use_runtimelinking=yes
14980 exp_sym_flag='-bexport'
14981 no_entry_flag='-bnoentry'
14984 # When large executables or shared objects are built, AIX ld can
14985 # have problems creating the table of contents. If linking a library
14986 # or program results in "error TOC overflow" add -mminimal-toc to
14987 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14988 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14990 archive_cmds_GCJ=''
14991 hardcode_direct_GCJ=yes
14992 hardcode_libdir_separator_GCJ=':'
14993 link_all_deplibs_GCJ=yes
14995 if test "$GCC" = yes; then
14996 case $host_os in aix4.012|aix4.012.*)
14997 # We only want to do this on AIX 4.2 and lower, the check
14998 # below for broken collect2 doesn't work under 4.3+
14999 collect2name=`${CC} -print-prog-name=collect2`
15000 if test -f "$collect2name" && \
15001 strings "$collect2name" | grep resolve_lib_name >/dev/null
15003 # We have reworked collect2
15004 hardcode_direct_GCJ=yes
15006 # We have old collect2
15007 hardcode_direct_GCJ=unsupported
15008 # It fails to find uninstalled libraries when the uninstalled
15009 # path is not listed in the libpath. Setting hardcode_minus_L
15010 # to unsupported forces relinking
15011 hardcode_minus_L_GCJ=yes
15012 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15013 hardcode_libdir_separator_GCJ=
15016 shared_flag='-shared'
15019 if test "$host_cpu" = ia64; then
15020 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15021 # chokes on -Wl,-G. The following line is correct:
15024 if test "$aix_use_runtimelinking" = yes; then
15025 shared_flag='${wl}-G'
15027 shared_flag='${wl}-bM:SRE'
15032 # It seems that -bexpall does not export symbols beginning with
15033 # underscore (_), so it is better to generate a list of symbols to export.
15034 always_export_symbols_GCJ=yes
15035 if test "$aix_use_runtimelinking" = yes; then
15036 # Warning - without using the other runtime loading flags (-brtl),
15037 # -berok will link without error, but may produce a broken library.
15038 allow_undefined_flag_GCJ='-berok'
15039 # Determine the default libpath from the value encoded in an empty executable.
15040 cat >conftest.$ac_ext <<_ACEOF
15041 #line $LINENO "configure"
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15056 rm -f conftest.$ac_objext conftest$ac_exeext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15058 (eval $ac_link) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -s conftest$ac_exeext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15071 # Check for a 64-bit object if we didn't find anything.
15072 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; }
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15082 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15083 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"
15085 if test "$host_cpu" = ia64; then
15086 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15087 allow_undefined_flag_GCJ="-z nodefs"
15088 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"
15090 # Determine the default libpath from the value encoded in an empty executable.
15091 cat >conftest.$ac_ext <<_ACEOF
15092 #line $LINENO "configure"
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15107 rm -f conftest.$ac_objext conftest$ac_exeext
15108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15109 (eval $ac_link) 2>&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
15113 { ac_try='test -s conftest$ac_exeext'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15122 # Check for a 64-bit object if we didn't find anything.
15123 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; }
15126 echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15133 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15134 # Warning - without using the other run time loading flags,
15135 # -berok will link without error, but may produce a broken library.
15136 no_undefined_flag_GCJ=' ${wl}-bernotok'
15137 allow_undefined_flag_GCJ=' ${wl}-berok'
15138 # -bexpall does not export symbols beginning with underscore (_)
15139 always_export_symbols_GCJ=yes
15140 # Exported symbols can be pulled into shared objects from archives
15141 whole_archive_flag_spec_GCJ=' '
15142 archive_cmds_need_lc_GCJ=yes
15143 # This is similar to how AIX traditionally builds it's shared libraries.
15144 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'
15150 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)'
15151 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15152 hardcode_minus_L_GCJ=yes
15153 # see comment about different semantics on the GNU ld section
15158 export_dynamic_flag_spec_GCJ=-rdynamic
15161 cygwin* | mingw* | pw32*)
15162 # When not using gcc, we currently assume that we are using
15163 # Microsoft Visual C++.
15164 # hardcode_libdir_flag_spec is actually meaningless, as there is
15165 # no search path for DLLs.
15166 hardcode_libdir_flag_spec_GCJ=' '
15167 allow_undefined_flag_GCJ=unsupported
15168 # Tell ltmain to make .lib files, not .a files.
15170 # Tell ltmain to make .dll files, not .so files.
15172 # FIXME: Setting linknames here is a bad hack.
15173 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15174 # The linker will automatically build a .lib file if we build a DLL.
15175 old_archive_From_new_cmds_GCJ='true'
15176 # FIXME: Should let the user specify the lib program.
15177 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15178 fix_srcfile_path='`cygpath -w "$srcfile"`'
15179 enable_shared_with_static_runtimes_GCJ=yes
15182 darwin* | rhapsody*)
15183 if test "$GXX" = yes ; then
15184 archive_cmds_need_lc_GCJ=no
15186 rhapsody* | darwin1.[012])
15187 allow_undefined_flag_GCJ='-undefined suppress'
15190 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15191 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15193 case ${MACOSX_DEPLOYMENT_TARGET} in
15195 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15198 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15204 lt_int_apple_cc_single_mod=no
15205 output_verbose_link_cmd='echo'
15206 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15207 lt_int_apple_cc_single_mod=yes
15209 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15210 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15212 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'
15214 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15215 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15216 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15217 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}'
15219 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}'
15221 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15222 hardcode_direct_GCJ=no
15223 hardcode_automatic_GCJ=yes
15224 hardcode_shlibpath_var_GCJ=unsupported
15225 whole_archive_flag_spec_GCJ='-all_load $convenience'
15226 link_all_deplibs_GCJ=yes
15233 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15235 hardcode_shlibpath_var_GCJ=no
15242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15243 # support. Future versions do this automatically, but an explicit c++rt0.o
15244 # does not break anything, and helps significantly (at the cost of a little
15247 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15248 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15249 hardcode_direct_GCJ=yes
15250 hardcode_shlibpath_var_GCJ=no
15253 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15255 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15256 hardcode_direct_GCJ=yes
15257 hardcode_minus_L_GCJ=yes
15258 hardcode_shlibpath_var_GCJ=no
15261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15262 freebsd* | kfreebsd*-gnu)
15263 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15264 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15265 hardcode_direct_GCJ=yes
15266 hardcode_shlibpath_var_GCJ=no
15270 if test "$GCC" = yes; then
15271 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'
15273 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'
15275 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15276 hardcode_libdir_separator_GCJ=:
15277 hardcode_direct_GCJ=yes
15279 # hardcode_minus_L: Not really in the search PATH,
15280 # but as the default location of the library.
15281 hardcode_minus_L_GCJ=yes
15282 export_dynamic_flag_spec_GCJ='${wl}-E'
15286 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15287 case "$host_cpu" in
15289 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15292 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15296 case "$host_cpu" in
15298 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15301 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15305 if test "$with_gnu_ld" = no; then
15306 case "$host_cpu" in
15308 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15309 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15310 hardcode_libdir_separator_GCJ=:
15311 hardcode_direct_GCJ=no
15312 hardcode_shlibpath_var_GCJ=no
15315 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15316 hardcode_direct_GCJ=no
15317 hardcode_shlibpath_var_GCJ=no
15319 # hardcode_minus_L: Not really in the search PATH,
15320 # but as the default location of the library.
15321 hardcode_minus_L_GCJ=yes
15324 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15325 hardcode_libdir_separator_GCJ=:
15326 hardcode_direct_GCJ=yes
15327 export_dynamic_flag_spec_GCJ='${wl}-E'
15329 # hardcode_minus_L: Not really in the search PATH,
15330 # but as the default location of the library.
15331 hardcode_minus_L_GCJ=yes
15337 irix5* | irix6* | nonstopux*)
15338 if test "$GCC" = yes; then
15339 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'
15341 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'
15342 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15344 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15345 hardcode_libdir_separator_GCJ=:
15346 link_all_deplibs_GCJ=yes
15350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15351 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15353 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15355 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15356 hardcode_direct_GCJ=yes
15357 hardcode_shlibpath_var_GCJ=no
15361 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15362 hardcode_direct_GCJ=yes
15363 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15364 hardcode_libdir_separator_GCJ=:
15365 hardcode_shlibpath_var_GCJ=no
15369 hardcode_direct_GCJ=yes
15370 hardcode_shlibpath_var_GCJ=no
15371 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15372 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15373 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15374 export_dynamic_flag_spec_GCJ='${wl}-E'
15377 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15378 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15379 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15382 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15383 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15390 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15391 hardcode_minus_L_GCJ=yes
15392 allow_undefined_flag_GCJ=unsupported
15393 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'
15394 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15398 if test "$GCC" = yes; then
15399 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15400 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'
15402 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15403 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'
15405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15406 hardcode_libdir_separator_GCJ=:
15409 osf4* | osf5*) # as osf3* with the addition of -msym flag
15410 if test "$GCC" = yes; then
15411 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15412 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'
15413 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15415 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15416 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'
15417 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~
15418 $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'
15420 # Both c and cxx compiler support -rpath directly
15421 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15423 hardcode_libdir_separator_GCJ=:
15427 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428 hardcode_shlibpath_var_GCJ=no
15429 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15430 runpath_var=LD_RUN_PATH
15431 hardcode_runpath_var=yes
15435 no_undefined_flag_GCJ=' -z text'
15436 if test "$GCC" = yes; then
15437 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15438 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15439 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15441 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15442 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15445 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15446 hardcode_shlibpath_var_GCJ=no
15448 solaris2.[0-5] | solaris2.[0-5].*) ;;
15449 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15450 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15452 link_all_deplibs_GCJ=yes
15456 if test "x$host_vendor" = xsequent; then
15457 # Use $CC to link under sequent, because it throws in some extra .o
15458 # files that make .init and .fini sections work.
15459 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15461 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15463 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15464 hardcode_direct_GCJ=yes
15465 hardcode_minus_L_GCJ=yes
15466 hardcode_shlibpath_var_GCJ=no
15470 case $host_vendor in
15472 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473 hardcode_direct_GCJ=yes # is this really true???
15476 ## LD is ld it makes a PLAMLIB
15477 ## CC just makes a GrossModule.
15478 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15479 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15480 hardcode_direct_GCJ=no
15483 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15487 runpath_var='LD_RUN_PATH'
15488 hardcode_shlibpath_var_GCJ=no
15492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15493 hardcode_shlibpath_var_GCJ=no
15494 export_dynamic_flag_spec_GCJ='-Bexport'
15498 if test -d /usr/nec; then
15499 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15500 hardcode_shlibpath_var_GCJ=no
15501 runpath_var=LD_RUN_PATH
15502 hardcode_runpath_var=yes
15508 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15509 hardcode_direct_GCJ=yes
15510 hardcode_minus_L_GCJ=no
15511 hardcode_shlibpath_var_GCJ=no
15512 hardcode_runpath_var=yes
15513 runpath_var=LD_RUN_PATH
15516 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15517 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15518 if test "$GCC" = yes; then
15519 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15521 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15523 runpath_var='LD_RUN_PATH'
15524 hardcode_shlibpath_var_GCJ=no
15528 no_undefined_flag_GCJ=' -z text'
15529 # $CC -shared without GNU ld will not create a library from C++
15530 # object files and a static libstdc++, better avoid it by now
15531 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15532 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15533 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15534 hardcode_libdir_flag_spec_GCJ=
15535 hardcode_shlibpath_var_GCJ=no
15536 runpath_var='LD_RUN_PATH'
15540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15542 hardcode_shlibpath_var_GCJ=no
15551 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15552 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15553 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15556 if test "$GCC" = yes; then
15557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15561 # Do we need to explicitly link libc?
15563 case "x$archive_cmds_need_lc_GCJ" in
15565 # Assume -lc should be added
15566 archive_cmds_need_lc_GCJ=yes
15568 if test "$enable_shared" = yes && test "$GCC" = yes; then
15569 case $archive_cmds_GCJ in
15571 # FIXME: we may have to deal with multi-command sequences.
15574 # Test whether the compiler implicitly links with -lc since on some
15575 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15576 # to ld, don't add -lc before -lgcc.
15577 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15578 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583 (eval $ac_compile) 2>&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } 2>conftest.err; then
15589 libobjs=conftest.$ac_objext
15591 wl=$lt_prog_compiler_wl_GCJ
15597 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15598 allow_undefined_flag_GCJ=
15599 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15600 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }
15605 archive_cmds_need_lc_GCJ=no
15607 archive_cmds_need_lc_GCJ=yes
15609 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15611 cat conftest.err 1>&5
15614 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15615 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15622 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15623 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15624 library_names_spec=
15625 libname_spec='lib$name'
15629 postuninstall_cmds=
15633 shlibpath_overrides_runpath=unknown
15635 dynamic_linker="$host_os ld.so"
15636 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15637 if test "$GCC" = yes; then
15638 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15639 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15640 # if the path contains ";" then we assume it to be the separator
15641 # otherwise default to the standard path separator (i.e. ":") - it is
15642 # assumed that no part of a normal pathname contains ";" but that should
15643 # okay in the real world where ";" in dirpaths is itself problematic.
15644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15649 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15651 need_lib_prefix=unknown
15652 hardcode_into_libs=no
15654 # when you set need_version to no, make sure it does not cause -set_version
15655 # flags to be left without arguments
15656 need_version=unknown
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15662 shlibpath_var=LIBPATH
15664 # AIX 3 has no versioning support, so we append a major version to the name.
15665 soname_spec='${libname}${release}${shared_ext}$major'
15672 hardcode_into_libs=yes
15673 if test "$host_cpu" = ia64; then
15674 # AIX 5 supports IA64
15675 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15676 shlibpath_var=LD_LIBRARY_PATH
15678 # With GCC up to 2.95.x, collect2 would create an import file
15679 # for dependence libraries. The import file would start with
15680 # the line `#! .'. This would cause the generated library to
15681 # depend on `.', always an invalid library. This was fixed in
15682 # development snapshots of GCC prior to 3.0.
15684 aix4 | aix4.[01] | aix4.[01].*)
15685 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15687 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15690 can_build_shared=no
15694 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15695 # soname into executable. Probably we can add versioning support to
15696 # collect2, so additional links can be useful in future.
15697 if test "$aix_use_runtimelinking" = yes; then
15698 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15699 # instead of lib<name>.a to let people know that these are not
15700 # typical AIX shared libraries.
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703 # We preserve .a as extension for shared libraries through AIX4.2
15704 # and later when we are not doing run time linking.
15705 library_names_spec='${libname}${release}.a $libname.a'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15708 shlibpath_var=LIBPATH
15713 library_names_spec='$libname.ixlibrary $libname.a'
15714 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15715 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'
15719 library_names_spec='${libname}${shared_ext}'
15720 dynamic_linker="$host_os ld.so"
15721 shlibpath_var=LIBRARY_PATH
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15730 shlibpath_var=LD_LIBRARY_PATH
15731 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15732 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15733 # the default ld.so.conf also contains /usr/contrib/lib and
15734 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15735 # libtool to hard-code these into programs
15738 cygwin* | mingw* | pw32*)
15739 version_type=windows
15744 case $GCC,$host_os in
15745 yes,cygwin* | yes,mingw* | yes,pw32*)
15746 library_names_spec='$libname.dll.a'
15747 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15748 postinstall_cmds='base_file=`basename \${file}`~
15749 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15750 dldir=$destdir/`dirname \$dlpath`~
15751 test -d \$dldir || mkdir -p \$dldir~
15752 $install_prog $dir/$dlname \$dldir/$dlname'
15753 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15754 dlpath=$dir/\$dldll~
15756 shlibpath_overrides_runpath=yes
15760 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15761 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15762 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15765 # MinGW DLLs use traditional 'lib' prefix
15766 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15767 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15768 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15769 # It is most probably a Windows format PATH printed by
15770 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15771 # path with ; separators, and with drive letters. We can handle the
15772 # drive letters (cygwin fileutils understands them), so leave them,
15773 # especially as we might pass files found there to a mingw objdump,
15774 # which wouldn't understand a cygwinified path. Ahh.
15775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15781 # pw32 DLLs use 'pw' prefix rather than 'lib'
15782 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15788 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15791 dynamic_linker='Win32 ld.exe'
15792 # FIXME: first we should search . and the directory the executable is in
15796 darwin* | rhapsody*)
15797 dynamic_linker="$host_os dyld"
15798 version_type=darwin
15801 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15802 soname_spec='${libname}${release}${major}$shared_ext'
15803 shlibpath_overrides_runpath=yes
15804 shlibpath_var=DYLD_LIBRARY_PATH
15805 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15806 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15807 if test "$GCC" = yes; then
15808 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"`
15810 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15812 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15820 soname_spec='${libname}${release}${shared_ext}$major'
15821 shlibpath_var=LD_LIBRARY_PATH
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15834 shlibpath_var=LD_LIBRARY_PATH
15835 shlibpath_overrides_runpath=no
15836 hardcode_into_libs=yes
15837 dynamic_linker='GNU ld.so'
15841 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15842 version_type=freebsd-$objformat
15843 case $version_type in
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15854 shlibpath_var=LD_LIBRARY_PATH
15857 shlibpath_overrides_runpath=yes
15859 freebsd3.01* | freebsdelf3.01*)
15860 shlibpath_overrides_runpath=yes
15861 hardcode_into_libs=yes
15864 shlibpath_overrides_runpath=no
15865 hardcode_into_libs=yes
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 shlibpath_var=LD_LIBRARY_PATH
15877 hardcode_into_libs=yes
15880 hpux9* | hpux10* | hpux11*)
15881 # Give a soname corresponding to the major version so that dld.sl refuses to
15882 # link against other versions.
15886 case "$host_cpu" in
15889 hardcode_into_libs=yes
15890 dynamic_linker="$host_os dld.so"
15891 shlibpath_var=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 if test "X$HPUX_IA64_MODE" = X32; then
15896 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15904 hardcode_into_libs=yes
15905 dynamic_linker="$host_os dld.sl"
15906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909 soname_spec='${libname}${release}${shared_ext}$major'
15910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15915 dynamic_linker="$host_os dld.sl"
15916 shlibpath_var=SHLIB_PATH
15917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919 soname_spec='${libname}${release}${shared_ext}$major'
15922 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15923 postinstall_cmds='chmod 555 $lib'
15926 irix5* | irix6* | nonstopux*)
15928 nonstopux*) version_type=nonstopux ;;
15930 if test "$lt_cv_prog_gnu_ld" = yes; then
15938 soname_spec='${libname}${release}${shared_ext}$major'
15939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15941 irix5* | nonstopux*)
15942 libsuff= shlibsuff=
15945 case $LD in # libtool.m4 will add one of these switches to LD
15946 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15947 libsuff= shlibsuff= libmagic=32-bit;;
15948 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15949 libsuff=32 shlibsuff=N32 libmagic=N32;;
15950 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15951 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15952 *) libsuff= shlibsuff= libmagic=never-match;;
15956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15957 shlibpath_overrides_runpath=no
15958 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15959 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15960 hardcode_into_libs=yes
15963 # No shared lib support for Linux oldld, aout, or coff.
15964 linux*oldld* | linux*aout* | linux*coff*)
15968 # This must be Linux ELF.
15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974 soname_spec='${libname}${release}${shared_ext}$major'
15975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 shlibpath_overrides_runpath=no
15978 # This implies no fast_install, which is unacceptable.
15979 # Some rework will be needed to allow for fast_install
15980 # before this can be enabled.
15981 hardcode_into_libs=yes
15983 # We used to test for /lib/ld.so.1 and disable shared libraries on
15984 # powerpc, because MkLinux only supported shared libraries with the
15985 # GNU dynamic linker. Since this was broken with cross compilers,
15986 # most powerpc-linux boxes support dynamic linking these days and
15987 # people can always --disable-shared, the test was removed, and we
15988 # assume the GNU/Linux dynamic linker is in use.
15989 dynamic_linker='GNU/Linux ld.so'
15996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15999 dynamic_linker='NetBSD (a.out) ld.so'
16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16002 soname_spec='${libname}${release}${shared_ext}$major'
16003 dynamic_linker='NetBSD ld.elf_so'
16005 shlibpath_var=LD_LIBRARY_PATH
16006 shlibpath_overrides_runpath=yes
16007 hardcode_into_libs=yes
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013 shlibpath_var=LD_LIBRARY_PATH
16014 shlibpath_overrides_runpath=yes
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022 soname_spec='${libname}${release}${shared_ext}$major'
16023 shlibpath_var=LD_LIBRARY_PATH
16024 shlibpath_overrides_runpath=yes
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16033 shlibpath_var=LD_LIBRARY_PATH
16034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16036 openbsd2.[89] | openbsd2.[89].*)
16037 shlibpath_overrides_runpath=no
16040 shlibpath_overrides_runpath=yes
16044 shlibpath_overrides_runpath=yes
16049 libname_spec='$name'
16052 library_names_spec='$libname${shared_ext} $libname.a'
16053 dynamic_linker='OS/2 ld.exe'
16054 shlibpath_var=LIBPATH
16057 osf3* | osf4* | osf5*)
16061 soname_spec='${libname}${release}${shared_ext}$major'
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063 shlibpath_var=LD_LIBRARY_PATH
16064 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16065 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16070 soname_spec='${libname}${release}${shared_ext}$major'
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072 shlibpath_var=LD_LIBRARY_PATH
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 shlibpath_overrides_runpath=yes
16083 hardcode_into_libs=yes
16084 # ldd complains unless libraries are executable
16085 postinstall_cmds='chmod +x $lib'
16090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16091 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16092 shlibpath_var=LD_LIBRARY_PATH
16093 shlibpath_overrides_runpath=yes
16094 if test "$with_gnu_ld" = yes; then
16100 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103 soname_spec='${libname}${release}${shared_ext}$major'
16104 shlibpath_var=LD_LIBRARY_PATH
16105 case $host_vendor in
16107 shlibpath_overrides_runpath=no
16109 export_dynamic_flag_spec='${wl}-Blargedynsym'
16110 runpath_var=LD_RUN_PATH
16118 shlibpath_overrides_runpath=no
16119 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16125 if test -d /usr/nec ;then
16127 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16128 soname_spec='$libname${shared_ext}.$major'
16129 shlibpath_var=LD_LIBRARY_PATH
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16136 soname_spec='${libname}${release}${shared_ext}$major'
16137 shlibpath_var=LD_LIBRARY_PATH
16144 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16145 echo "${ECHO_T}$dynamic_linker" >&6
16146 test "$dynamic_linker" = no && can_build_shared=no
16148 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16149 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16150 hardcode_action_GCJ=
16151 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16152 test -n "$runpath_var GCJ" || \
16153 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16155 # We can hardcode non-existant directories.
16156 if test "$hardcode_direct_GCJ" != no &&
16157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16158 # have to relink, otherwise we might link with an installed library
16159 # when we should be linking with a yet-to-be-installed one
16160 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16161 test "$hardcode_minus_L_GCJ" != no; then
16162 # Linking always hardcodes the temporary library directory.
16163 hardcode_action_GCJ=relink
16165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16166 hardcode_action_GCJ=immediate
16169 # We cannot hardcode anything, or else we can only hardcode existing
16171 hardcode_action_GCJ=unsupported
16173 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16174 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16176 if test "$hardcode_action_GCJ" = relink; then
16177 # Fast installation is not supported
16178 enable_fast_install=no
16179 elif test "$shlibpath_overrides_runpath" = yes ||
16180 test "$enable_shared" = no; then
16181 # Fast installation is not necessary
16182 enable_fast_install=needless
16187 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16188 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16189 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16191 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16192 echo "$as_me:$LINENO: result: yes" >&5
16193 echo "${ECHO_T}yes" >&6
16195 # FIXME - insert some real tests, host_os isn't really good enough
16198 if test -n "$STRIP" ; then
16199 striplib="$STRIP -x"
16200 echo "$as_me:$LINENO: result: yes" >&5
16201 echo "${ECHO_T}yes" >&6
16203 echo "$as_me:$LINENO: result: no" >&5
16204 echo "${ECHO_T}no" >&6
16208 echo "$as_me:$LINENO: result: no" >&5
16209 echo "${ECHO_T}no" >&6
16214 if test "x$enable_dlopen" != xyes; then
16215 enable_dlopen=unknown
16216 enable_dlopen_self=unknown
16217 enable_dlopen_self_static=unknown
16224 lt_cv_dlopen="load_add_on"
16226 lt_cv_dlopen_self=yes
16230 lt_cv_dlopen="LoadLibrary"
16235 lt_cv_dlopen="dlopen"
16240 # if libdl is installed we need to link against it
16241 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16242 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 ac_check_lib_save_LIBS=$LIBS
16248 cat >conftest.$ac_ext <<_ACEOF
16249 #line $LINENO "configure"
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16256 /* Override any gcc2 internal prototype to avoid an error. */
16260 /* We use char because int might match the return type of a gcc2
16261 builtin and then its argument prototype would still apply. */
16271 rm -f conftest.$ac_objext conftest$ac_exeext
16272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16273 (eval $ac_link) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
16277 { ac_try='test -s conftest$ac_exeext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_lib_dl_dlopen=yes
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_cv_lib_dl_dlopen=no
16290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16291 LIBS=$ac_check_lib_save_LIBS
16293 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16295 if test $ac_cv_lib_dl_dlopen = yes; then
16296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16299 lt_cv_dlopen="dyld"
16301 lt_cv_dlopen_self=yes
16308 echo "$as_me:$LINENO: checking for shl_load" >&5
16309 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16310 if test "${ac_cv_func_shl_load+set}" = set; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16313 cat >conftest.$ac_ext <<_ACEOF
16314 #line $LINENO "configure"
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16320 /* System header to define __stub macros and hopefully few prototypes,
16321 which can conflict with char shl_load (); below.
16322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16323 <limits.h> exists even on freestanding compilers. */
16325 # include <limits.h>
16327 # include <assert.h>
16329 /* Override any gcc2 internal prototype to avoid an error. */
16334 /* We use char because int might match the return type of a gcc2
16335 builtin and then its argument prototype would still apply. */
16337 /* The GNU C library defines this for functions which it implements
16338 to always fail with ENOSYS. Some functions are actually named
16339 something starting with __ and the normal name is an alias. */
16340 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16343 char (*f) () = shl_load;
16352 return f != shl_load;
16357 rm -f conftest.$ac_objext conftest$ac_exeext
16358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16359 (eval $ac_link) 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } &&
16363 { ac_try='test -s conftest$ac_exeext'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_cv_func_shl_load=yes
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 ac_cv_func_shl_load=no
16376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16378 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16379 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16380 if test $ac_cv_func_shl_load = yes; then
16381 lt_cv_dlopen="shl_load"
16383 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16384 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16385 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 ac_check_lib_save_LIBS=$LIBS
16390 cat >conftest.$ac_ext <<_ACEOF
16391 #line $LINENO "configure"
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16398 /* Override any gcc2 internal prototype to avoid an error. */
16402 /* We use char because int might match the return type of a gcc2
16403 builtin and then its argument prototype would still apply. */
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16415 (eval $ac_link) 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
16419 { ac_try='test -s conftest$ac_exeext'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_cv_lib_dld_shl_load=yes
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_cv_lib_dld_shl_load=no
16432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16433 LIBS=$ac_check_lib_save_LIBS
16435 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16436 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16437 if test $ac_cv_lib_dld_shl_load = yes; then
16438 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16440 echo "$as_me:$LINENO: checking for dlopen" >&5
16441 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16442 if test "${ac_cv_func_dlopen+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 cat >conftest.$ac_ext <<_ACEOF
16446 #line $LINENO "configure"
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 /* System header to define __stub macros and hopefully few prototypes,
16453 which can conflict with char dlopen (); below.
16454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16455 <limits.h> exists even on freestanding compilers. */
16457 # include <limits.h>
16459 # include <assert.h>
16461 /* Override any gcc2 internal prototype to avoid an error. */
16466 /* We use char because int might match the return type of a gcc2
16467 builtin and then its argument prototype would still apply. */
16469 /* The GNU C library defines this for functions which it implements
16470 to always fail with ENOSYS. Some functions are actually named
16471 something starting with __ and the normal name is an alias. */
16472 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16475 char (*f) () = dlopen;
16484 return f != dlopen;
16489 rm -f conftest.$ac_objext conftest$ac_exeext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16491 (eval $ac_link) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -s conftest$ac_exeext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_cv_func_dlopen=yes
16503 echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16506 ac_cv_func_dlopen=no
16508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16510 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16511 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16512 if test $ac_cv_func_dlopen = yes; then
16513 lt_cv_dlopen="dlopen"
16515 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16516 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16517 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 ac_check_lib_save_LIBS=$LIBS
16522 cat >conftest.$ac_ext <<_ACEOF
16523 #line $LINENO "configure"
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16530 /* Override any gcc2 internal prototype to avoid an error. */
16534 /* We use char because int might match the return type of a gcc2
16535 builtin and then its argument prototype would still apply. */
16545 rm -f conftest.$ac_objext conftest$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547 (eval $ac_link) 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -s conftest$ac_exeext'
16552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553 (eval $ac_try) 2>&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); }; }; then
16557 ac_cv_lib_dl_dlopen=yes
16559 echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16562 ac_cv_lib_dl_dlopen=no
16564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16565 LIBS=$ac_check_lib_save_LIBS
16567 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16568 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16569 if test $ac_cv_lib_dl_dlopen = yes; then
16570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16572 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16573 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16574 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 ac_check_lib_save_LIBS=$LIBS
16578 LIBS="-lsvld $LIBS"
16579 cat >conftest.$ac_ext <<_ACEOF
16580 #line $LINENO "configure"
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16587 /* Override any gcc2 internal prototype to avoid an error. */
16591 /* We use char because int might match the return type of a gcc2
16592 builtin and then its argument prototype would still apply. */
16602 rm -f conftest.$ac_objext conftest$ac_exeext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16604 (eval $ac_link) 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -s conftest$ac_exeext'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_cv_lib_svld_dlopen=yes
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 ac_cv_lib_svld_dlopen=no
16621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16622 LIBS=$ac_check_lib_save_LIBS
16624 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16625 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16626 if test $ac_cv_lib_svld_dlopen = yes; then
16627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16629 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16630 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16631 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 ac_check_lib_save_LIBS=$LIBS
16636 cat >conftest.$ac_ext <<_ACEOF
16637 #line $LINENO "configure"
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16644 /* Override any gcc2 internal prototype to avoid an error. */
16648 /* We use char because int might match the return type of a gcc2
16649 builtin and then its argument prototype would still apply. */
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16661 (eval $ac_link) 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -s conftest$ac_exeext'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 ac_cv_lib_dld_dld_link=yes
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 ac_cv_lib_dld_dld_link=no
16678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16679 LIBS=$ac_check_lib_save_LIBS
16681 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16682 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16683 if test $ac_cv_lib_dld_dld_link = yes; then
16684 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16705 if test "x$lt_cv_dlopen" != xno; then
16711 case $lt_cv_dlopen in
16713 save_CPPFLAGS="$CPPFLAGS"
16714 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16716 save_LDFLAGS="$LDFLAGS"
16717 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16720 LIBS="$lt_cv_dlopen_libs $LIBS"
16722 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16723 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16724 if test "${lt_cv_dlopen_self+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 if test "$cross_compiling" = yes; then :
16728 lt_cv_dlopen_self=cross
16730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16731 lt_status=$lt_dlunknown
16732 cat > conftest.$ac_ext <<EOF
16733 #line 16733 "configure"
16734 #include "confdefs.h"
16743 # define LT_DLGLOBAL RTLD_GLOBAL
16746 # define LT_DLGLOBAL DL_GLOBAL
16748 # define LT_DLGLOBAL 0
16752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16753 find out it does not work in some platform. */
16754 #ifndef LT_DLLAZY_OR_NOW
16756 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16759 # define LT_DLLAZY_OR_NOW DL_LAZY
16762 # define LT_DLLAZY_OR_NOW RTLD_NOW
16765 # define LT_DLLAZY_OR_NOW DL_NOW
16767 # define LT_DLLAZY_OR_NOW 0
16775 extern "C" void exit (int);
16778 void fnord() { int i=42;}
16781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16782 int status = $lt_dlunknown;
16786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16787 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16788 /* dlclose (self); */
16794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16795 (eval $ac_link) 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16799 (./conftest; exit; ) 2>/dev/null
16801 case x$lt_status in
16802 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16803 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16804 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16807 # compilation failed
16808 lt_cv_dlopen_self=no
16815 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16816 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16818 if test "x$lt_cv_dlopen_self" = xyes; then
16819 LDFLAGS="$LDFLAGS $link_static_flag"
16820 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16821 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16822 if test "${lt_cv_dlopen_self_static+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 if test "$cross_compiling" = yes; then :
16826 lt_cv_dlopen_self_static=cross
16828 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16829 lt_status=$lt_dlunknown
16830 cat > conftest.$ac_ext <<EOF
16831 #line 16831 "configure"
16832 #include "confdefs.h"
16841 # define LT_DLGLOBAL RTLD_GLOBAL
16844 # define LT_DLGLOBAL DL_GLOBAL
16846 # define LT_DLGLOBAL 0
16850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16851 find out it does not work in some platform. */
16852 #ifndef LT_DLLAZY_OR_NOW
16854 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16857 # define LT_DLLAZY_OR_NOW DL_LAZY
16860 # define LT_DLLAZY_OR_NOW RTLD_NOW
16863 # define LT_DLLAZY_OR_NOW DL_NOW
16865 # define LT_DLLAZY_OR_NOW 0
16873 extern "C" void exit (int);
16876 void fnord() { int i=42;}
16879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16880 int status = $lt_dlunknown;
16884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16885 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16886 /* dlclose (self); */
16892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16893 (eval $ac_link) 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16897 (./conftest; exit; ) 2>/dev/null
16899 case x$lt_status in
16900 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16901 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16902 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16905 # compilation failed
16906 lt_cv_dlopen_self_static=no
16913 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16914 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16917 CPPFLAGS="$save_CPPFLAGS"
16918 LDFLAGS="$save_LDFLAGS"
16923 case $lt_cv_dlopen_self in
16924 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16925 *) enable_dlopen_self=unknown ;;
16928 case $lt_cv_dlopen_self_static in
16929 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16930 *) enable_dlopen_self_static=unknown ;;
16935 # The else clause should only fire when bootstrapping the
16936 # libtool distribution, otherwise you forgot to ship ltmain.sh
16937 # with your package, and you will get complaints that there are
16938 # no rules to generate ltmain.sh.
16939 if test -f "$ltmain"; then
16940 # See if we are running on zsh, and set the options which allow our commands through
16941 # without removal of \ escapes.
16942 if test -n "${ZSH_VERSION+set}" ; then
16943 setopt NO_GLOB_SUBST
16945 # Now quote all the things that may contain metacharacters while being
16946 # careful not to overquote the AC_SUBSTed values. We take copies of the
16947 # variables and quote the copies for generation of the libtool script.
16948 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16950 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16951 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16952 deplibs_check_method reload_flag reload_cmds need_locks \
16953 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16954 lt_cv_sys_global_symbol_to_c_name_address \
16955 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16956 old_postinstall_cmds old_postuninstall_cmds \
16960 lt_prog_compiler_wl_GCJ \
16961 lt_prog_compiler_pic_GCJ \
16962 lt_prog_compiler_static_GCJ \
16963 lt_prog_compiler_no_builtin_flag_GCJ \
16964 export_dynamic_flag_spec_GCJ \
16965 thread_safe_flag_spec_GCJ \
16966 whole_archive_flag_spec_GCJ \
16967 enable_shared_with_static_runtimes_GCJ \
16968 old_archive_cmds_GCJ \
16969 old_archive_from_new_cmds_GCJ \
16970 predep_objects_GCJ \
16971 postdep_objects_GCJ \
16974 compiler_lib_search_path_GCJ \
16976 archive_expsym_cmds_GCJ \
16977 postinstall_cmds_GCJ \
16978 postuninstall_cmds_GCJ \
16979 old_archive_from_expsyms_cmds_GCJ \
16980 allow_undefined_flag_GCJ \
16981 no_undefined_flag_GCJ \
16982 export_symbols_cmds_GCJ \
16983 hardcode_libdir_flag_spec_GCJ \
16984 hardcode_libdir_flag_spec_ld_GCJ \
16985 hardcode_libdir_separator_GCJ \
16986 hardcode_automatic_GCJ \
16988 module_expsym_cmds_GCJ \
16989 lt_cv_prog_compiler_c_o_GCJ \
16990 exclude_expsyms_GCJ \
16991 include_expsyms_GCJ; do
16994 old_archive_cmds_GCJ | \
16995 old_archive_from_new_cmds_GCJ | \
16996 archive_cmds_GCJ | \
16997 archive_expsym_cmds_GCJ | \
16998 module_cmds_GCJ | \
16999 module_expsym_cmds_GCJ | \
17000 old_archive_from_expsyms_cmds_GCJ | \
17001 export_symbols_cmds_GCJ | \
17002 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17003 postinstall_cmds | postuninstall_cmds | \
17004 old_postinstall_cmds | old_postuninstall_cmds | \
17005 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17006 # Double-quote double-evaled strings.
17007 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17010 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17016 *'\$0 --fallback-echo"')
17017 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17023 cat <<__EOF__ >> "$cfgfile"
17024 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17026 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17028 # Shell to use when invoking shell scripts.
17031 # Whether or not to build shared libraries.
17032 build_libtool_libs=$enable_shared
17034 # Whether or not to build static libraries.
17035 build_old_libs=$enable_static
17037 # Whether or not to add -lc for building shared libraries.
17038 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17040 # Whether or not to disallow shared libs when runtime libs are static
17041 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17043 # Whether or not to optimize for fast installation.
17044 fast_install=$enable_fast_install
17047 host_alias=$host_alias
17050 # An echo program that does not interpret backslashes.
17055 AR_FLAGS=$lt_AR_FLAGS
17060 # A language-specific compiler.
17061 CC=$lt_compiler_GCJ
17063 # Is the compiler the GNU C compiler?
17069 # The linker used to build libraries.
17072 # Whether we need hard or soft links.
17075 # A BSD-compatible nm program.
17078 # A symbol stripping program
17081 # Used to examine libraries when file_magic_cmd begins "file"
17082 MAGIC_CMD=$MAGIC_CMD
17084 # Used on cygwin: DLL creation program.
17087 # Used on cygwin: object dumper.
17090 # Used on cygwin: assembler.
17093 # The name of the directory that contains temporary libtool files.
17096 # How to create reloadable object files.
17097 reload_flag=$lt_reload_flag
17098 reload_cmds=$lt_reload_cmds
17100 # How to pass a linker flag through the compiler.
17101 wl=$lt_lt_prog_compiler_wl_GCJ
17103 # Object file suffix (normally "o").
17104 objext="$ac_objext"
17106 # Old archive suffix (normally "a").
17109 # Shared library suffix (normally ".so").
17112 # Executable file suffix (normally "").
17115 # Additional compiler flags for building library objects.
17116 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17119 # What is the maximum length of a command?
17120 max_cmd_len=$lt_cv_sys_max_cmd_len
17122 # Does compiler simultaneously support -c and -o options?
17123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17125 # Must we lock files when doing compilation ?
17126 need_locks=$lt_need_locks
17128 # Do we need the lib prefix for modules?
17129 need_lib_prefix=$need_lib_prefix
17131 # Do we need a version for libraries?
17132 need_version=$need_version
17134 # Whether dlopen is supported.
17135 dlopen_support=$enable_dlopen
17137 # Whether dlopen of programs is supported.
17138 dlopen_self=$enable_dlopen_self
17140 # Whether dlopen of statically linked programs is supported.
17141 dlopen_self_static=$enable_dlopen_self_static
17143 # Compiler flag to prevent dynamic linking.
17144 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17146 # Compiler flag to turn off builtin functions.
17147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17149 # Compiler flag to allow reflexive dlopens.
17150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17152 # Compiler flag to generate shared objects directly from archives.
17153 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17155 # Compiler flag to generate thread-safe objects.
17156 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17158 # Library versioning type.
17159 version_type=$version_type
17161 # Format of library name prefix.
17162 libname_spec=$lt_libname_spec
17164 # List of archive names. First name is the real one, the rest are links.
17165 # The last name is the one that the linker finds with -lNAME.
17166 library_names_spec=$lt_library_names_spec
17168 # The coded name of the library, if different from the real name.
17169 soname_spec=$lt_soname_spec
17171 # Commands used to build and install an old-style archive.
17173 old_archive_cmds=$lt_old_archive_cmds_GCJ
17174 old_postinstall_cmds=$lt_old_postinstall_cmds
17175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17177 # Create an old-style archive from a shared archive.
17178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17180 # Create a temporary old-style archive to link instead of a shared archive.
17181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17183 # Commands used to build and install a shared archive.
17184 archive_cmds=$lt_archive_cmds_GCJ
17185 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17186 postinstall_cmds=$lt_postinstall_cmds
17187 postuninstall_cmds=$lt_postuninstall_cmds
17189 # Commands used to build a loadable module (assumed same as above if empty)
17190 module_cmds=$lt_module_cmds_GCJ
17191 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17193 # Commands to strip libraries.
17194 old_striplib=$lt_old_striplib
17195 striplib=$lt_striplib
17197 # Dependencies to place before the objects being linked to create a
17199 predep_objects=$lt_predep_objects_GCJ
17201 # Dependencies to place after the objects being linked to create a
17203 postdep_objects=$lt_postdep_objects_GCJ
17205 # Dependencies to place before the objects being linked to create a
17207 predeps=$lt_predeps_GCJ
17209 # Dependencies to place after the objects being linked to create a
17211 postdeps=$lt_postdeps_GCJ
17213 # The library search path used internally by the compiler when linking
17214 # a shared library.
17215 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17217 # Method to check whether dependent libraries are shared objects.
17218 deplibs_check_method=$lt_deplibs_check_method
17220 # Command to use when deplibs_check_method == file_magic.
17221 file_magic_cmd=$lt_file_magic_cmd
17223 # Flag that allows shared libraries with undefined symbols to be built.
17224 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17226 # Flag that forces no undefined symbols.
17227 no_undefined_flag=$lt_no_undefined_flag_GCJ
17229 # Commands used to finish a libtool library installation in a directory.
17230 finish_cmds=$lt_finish_cmds
17232 # Same as above, but a single script fragment to be evaled but not shown.
17233 finish_eval=$lt_finish_eval
17235 # Take the output of nm and produce a listing of raw symbols and C names.
17236 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17238 # Transform the output of nm in a proper C declaration
17239 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17241 # Transform the output of nm in a C name address pair
17242 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17244 # This is the shared library runtime path variable.
17245 runpath_var=$runpath_var
17247 # This is the shared library path variable.
17248 shlibpath_var=$shlibpath_var
17250 # Is shlibpath searched before the hard-coded library search path?
17251 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17253 # How to hardcode a shared library path into an executable.
17254 hardcode_action=$hardcode_action_GCJ
17256 # Whether we should hardcode library paths into libraries.
17257 hardcode_into_libs=$hardcode_into_libs
17259 # Flag to hardcode \$libdir into a binary during linking.
17260 # This must work even if \$libdir does not exist.
17261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17263 # If ld is used when linking, flag to hardcode \$libdir into
17264 # a binary during linking. This must work even if \$libdir does
17266 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17268 # Whether we need a single -rpath flag with a separated argument.
17269 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17271 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17272 # resulting binary.
17273 hardcode_direct=$hardcode_direct_GCJ
17275 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17276 # resulting binary.
17277 hardcode_minus_L=$hardcode_minus_L_GCJ
17279 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17280 # the resulting binary.
17281 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17283 # Set to yes if building a shared library automatically hardcodes DIR into the library
17284 # and all subsequent libraries and executables linked against it.
17285 hardcode_automatic=$hardcode_automatic_GCJ
17287 # Variables whose values should be saved in libtool wrapper scripts and
17288 # restored at relink time.
17289 variables_saved_for_relink="$variables_saved_for_relink"
17291 # Whether libtool must link a program against all its dependency libraries.
17292 link_all_deplibs=$link_all_deplibs_GCJ
17294 # Compile-time system search path for libraries
17295 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17297 # Run-time system search path for libraries
17298 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17300 # Fix the shell variable \$srcfile for the compiler.
17301 fix_srcfile_path="$fix_srcfile_path_GCJ"
17303 # Set to yes if exported symbols are required.
17304 always_export_symbols=$always_export_symbols_GCJ
17306 # The commands to list exported symbols.
17307 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17309 # The commands to extract the exported symbol list from a shared archive.
17310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17312 # Symbols that should not be listed in the preloaded symbols.
17313 exclude_expsyms=$lt_exclude_expsyms_GCJ
17315 # Symbols that must always be exported.
17316 include_expsyms=$lt_include_expsyms_GCJ
17318 # ### END LIBTOOL TAG CONFIG: $tagname
17324 # If there is no Makefile yet, we rely on a make rule to execute
17325 # `config.status --recheck' to rerun these tests and create the
17326 # libtool script then.
17327 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17328 if test -f "$ltmain_in"; then
17329 test -f Makefile && make "$ltmain"
17335 ac_cpp='$CPP $CPPFLAGS'
17336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17351 # Source file extension for RC test sources.
17354 # Object file extension for compiled RC test sources.
17358 # Code to be used in simple compile tests
17359 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17361 # Code to be used in simple link tests
17362 lt_simple_link_test_code="$lt_simple_compile_test_code"
17364 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17366 # If no C compiler was specified, use CC.
17369 # Allow CC to be a program name with arguments.
17373 # Allow CC to be a program name with arguments.
17378 lt_cv_prog_compiler_c_o_RC=yes
17380 # The else clause should only fire when bootstrapping the
17381 # libtool distribution, otherwise you forgot to ship ltmain.sh
17382 # with your package, and you will get complaints that there are
17383 # no rules to generate ltmain.sh.
17384 if test -f "$ltmain"; then
17385 # See if we are running on zsh, and set the options which allow our commands through
17386 # without removal of \ escapes.
17387 if test -n "${ZSH_VERSION+set}" ; then
17388 setopt NO_GLOB_SUBST
17390 # Now quote all the things that may contain metacharacters while being
17391 # careful not to overquote the AC_SUBSTed values. We take copies of the
17392 # variables and quote the copies for generation of the libtool script.
17393 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17397 deplibs_check_method reload_flag reload_cmds need_locks \
17398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17399 lt_cv_sys_global_symbol_to_c_name_address \
17400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17401 old_postinstall_cmds old_postuninstall_cmds \
17405 lt_prog_compiler_wl_RC \
17406 lt_prog_compiler_pic_RC \
17407 lt_prog_compiler_static_RC \
17408 lt_prog_compiler_no_builtin_flag_RC \
17409 export_dynamic_flag_spec_RC \
17410 thread_safe_flag_spec_RC \
17411 whole_archive_flag_spec_RC \
17412 enable_shared_with_static_runtimes_RC \
17413 old_archive_cmds_RC \
17414 old_archive_from_new_cmds_RC \
17415 predep_objects_RC \
17416 postdep_objects_RC \
17419 compiler_lib_search_path_RC \
17421 archive_expsym_cmds_RC \
17422 postinstall_cmds_RC \
17423 postuninstall_cmds_RC \
17424 old_archive_from_expsyms_cmds_RC \
17425 allow_undefined_flag_RC \
17426 no_undefined_flag_RC \
17427 export_symbols_cmds_RC \
17428 hardcode_libdir_flag_spec_RC \
17429 hardcode_libdir_flag_spec_ld_RC \
17430 hardcode_libdir_separator_RC \
17431 hardcode_automatic_RC \
17433 module_expsym_cmds_RC \
17434 lt_cv_prog_compiler_c_o_RC \
17435 exclude_expsyms_RC \
17436 include_expsyms_RC; do
17439 old_archive_cmds_RC | \
17440 old_archive_from_new_cmds_RC | \
17441 archive_cmds_RC | \
17442 archive_expsym_cmds_RC | \
17444 module_expsym_cmds_RC | \
17445 old_archive_from_expsyms_cmds_RC | \
17446 export_symbols_cmds_RC | \
17447 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17448 postinstall_cmds | postuninstall_cmds | \
17449 old_postinstall_cmds | old_postuninstall_cmds | \
17450 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17451 # Double-quote double-evaled strings.
17452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17461 *'\$0 --fallback-echo"')
17462 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17468 cat <<__EOF__ >> "$cfgfile"
17469 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17471 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17473 # Shell to use when invoking shell scripts.
17476 # Whether or not to build shared libraries.
17477 build_libtool_libs=$enable_shared
17479 # Whether or not to build static libraries.
17480 build_old_libs=$enable_static
17482 # Whether or not to add -lc for building shared libraries.
17483 build_libtool_need_lc=$archive_cmds_need_lc_RC
17485 # Whether or not to disallow shared libs when runtime libs are static
17486 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17488 # Whether or not to optimize for fast installation.
17489 fast_install=$enable_fast_install
17492 host_alias=$host_alias
17495 # An echo program that does not interpret backslashes.
17500 AR_FLAGS=$lt_AR_FLAGS
17505 # A language-specific compiler.
17508 # Is the compiler the GNU C compiler?
17514 # The linker used to build libraries.
17517 # Whether we need hard or soft links.
17520 # A BSD-compatible nm program.
17523 # A symbol stripping program
17526 # Used to examine libraries when file_magic_cmd begins "file"
17527 MAGIC_CMD=$MAGIC_CMD
17529 # Used on cygwin: DLL creation program.
17532 # Used on cygwin: object dumper.
17535 # Used on cygwin: assembler.
17538 # The name of the directory that contains temporary libtool files.
17541 # How to create reloadable object files.
17542 reload_flag=$lt_reload_flag
17543 reload_cmds=$lt_reload_cmds
17545 # How to pass a linker flag through the compiler.
17546 wl=$lt_lt_prog_compiler_wl_RC
17548 # Object file suffix (normally "o").
17549 objext="$ac_objext"
17551 # Old archive suffix (normally "a").
17554 # Shared library suffix (normally ".so").
17557 # Executable file suffix (normally "").
17560 # Additional compiler flags for building library objects.
17561 pic_flag=$lt_lt_prog_compiler_pic_RC
17564 # What is the maximum length of a command?
17565 max_cmd_len=$lt_cv_sys_max_cmd_len
17567 # Does compiler simultaneously support -c and -o options?
17568 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17570 # Must we lock files when doing compilation ?
17571 need_locks=$lt_need_locks
17573 # Do we need the lib prefix for modules?
17574 need_lib_prefix=$need_lib_prefix
17576 # Do we need a version for libraries?
17577 need_version=$need_version
17579 # Whether dlopen is supported.
17580 dlopen_support=$enable_dlopen
17582 # Whether dlopen of programs is supported.
17583 dlopen_self=$enable_dlopen_self
17585 # Whether dlopen of statically linked programs is supported.
17586 dlopen_self_static=$enable_dlopen_self_static
17588 # Compiler flag to prevent dynamic linking.
17589 link_static_flag=$lt_lt_prog_compiler_static_RC
17591 # Compiler flag to turn off builtin functions.
17592 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17594 # Compiler flag to allow reflexive dlopens.
17595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17597 # Compiler flag to generate shared objects directly from archives.
17598 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17600 # Compiler flag to generate thread-safe objects.
17601 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17603 # Library versioning type.
17604 version_type=$version_type
17606 # Format of library name prefix.
17607 libname_spec=$lt_libname_spec
17609 # List of archive names. First name is the real one, the rest are links.
17610 # The last name is the one that the linker finds with -lNAME.
17611 library_names_spec=$lt_library_names_spec
17613 # The coded name of the library, if different from the real name.
17614 soname_spec=$lt_soname_spec
17616 # Commands used to build and install an old-style archive.
17618 old_archive_cmds=$lt_old_archive_cmds_RC
17619 old_postinstall_cmds=$lt_old_postinstall_cmds
17620 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17622 # Create an old-style archive from a shared archive.
17623 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17625 # Create a temporary old-style archive to link instead of a shared archive.
17626 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17628 # Commands used to build and install a shared archive.
17629 archive_cmds=$lt_archive_cmds_RC
17630 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17631 postinstall_cmds=$lt_postinstall_cmds
17632 postuninstall_cmds=$lt_postuninstall_cmds
17634 # Commands used to build a loadable module (assumed same as above if empty)
17635 module_cmds=$lt_module_cmds_RC
17636 module_expsym_cmds=$lt_module_expsym_cmds_RC
17638 # Commands to strip libraries.
17639 old_striplib=$lt_old_striplib
17640 striplib=$lt_striplib
17642 # Dependencies to place before the objects being linked to create a
17644 predep_objects=$lt_predep_objects_RC
17646 # Dependencies to place after the objects being linked to create a
17648 postdep_objects=$lt_postdep_objects_RC
17650 # Dependencies to place before the objects being linked to create a
17652 predeps=$lt_predeps_RC
17654 # Dependencies to place after the objects being linked to create a
17656 postdeps=$lt_postdeps_RC
17658 # The library search path used internally by the compiler when linking
17659 # a shared library.
17660 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17662 # Method to check whether dependent libraries are shared objects.
17663 deplibs_check_method=$lt_deplibs_check_method
17665 # Command to use when deplibs_check_method == file_magic.
17666 file_magic_cmd=$lt_file_magic_cmd
17668 # Flag that allows shared libraries with undefined symbols to be built.
17669 allow_undefined_flag=$lt_allow_undefined_flag_RC
17671 # Flag that forces no undefined symbols.
17672 no_undefined_flag=$lt_no_undefined_flag_RC
17674 # Commands used to finish a libtool library installation in a directory.
17675 finish_cmds=$lt_finish_cmds
17677 # Same as above, but a single script fragment to be evaled but not shown.
17678 finish_eval=$lt_finish_eval
17680 # Take the output of nm and produce a listing of raw symbols and C names.
17681 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17683 # Transform the output of nm in a proper C declaration
17684 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17686 # Transform the output of nm in a C name address pair
17687 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17689 # This is the shared library runtime path variable.
17690 runpath_var=$runpath_var
17692 # This is the shared library path variable.
17693 shlibpath_var=$shlibpath_var
17695 # Is shlibpath searched before the hard-coded library search path?
17696 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17698 # How to hardcode a shared library path into an executable.
17699 hardcode_action=$hardcode_action_RC
17701 # Whether we should hardcode library paths into libraries.
17702 hardcode_into_libs=$hardcode_into_libs
17704 # Flag to hardcode \$libdir into a binary during linking.
17705 # This must work even if \$libdir does not exist.
17706 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17708 # If ld is used when linking, flag to hardcode \$libdir into
17709 # a binary during linking. This must work even if \$libdir does
17711 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17713 # Whether we need a single -rpath flag with a separated argument.
17714 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17716 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17717 # resulting binary.
17718 hardcode_direct=$hardcode_direct_RC
17720 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17721 # resulting binary.
17722 hardcode_minus_L=$hardcode_minus_L_RC
17724 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17725 # the resulting binary.
17726 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17728 # Set to yes if building a shared library automatically hardcodes DIR into the library
17729 # and all subsequent libraries and executables linked against it.
17730 hardcode_automatic=$hardcode_automatic_RC
17732 # Variables whose values should be saved in libtool wrapper scripts and
17733 # restored at relink time.
17734 variables_saved_for_relink="$variables_saved_for_relink"
17736 # Whether libtool must link a program against all its dependency libraries.
17737 link_all_deplibs=$link_all_deplibs_RC
17739 # Compile-time system search path for libraries
17740 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17742 # Run-time system search path for libraries
17743 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17745 # Fix the shell variable \$srcfile for the compiler.
17746 fix_srcfile_path="$fix_srcfile_path_RC"
17748 # Set to yes if exported symbols are required.
17749 always_export_symbols=$always_export_symbols_RC
17751 # The commands to list exported symbols.
17752 export_symbols_cmds=$lt_export_symbols_cmds_RC
17754 # The commands to extract the exported symbol list from a shared archive.
17755 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17757 # Symbols that should not be listed in the preloaded symbols.
17758 exclude_expsyms=$lt_exclude_expsyms_RC
17760 # Symbols that must always be exported.
17761 include_expsyms=$lt_include_expsyms_RC
17763 # ### END LIBTOOL TAG CONFIG: $tagname
17769 # If there is no Makefile yet, we rely on a make rule to execute
17770 # `config.status --recheck' to rerun these tests and create the
17771 # libtool script then.
17772 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17773 if test -f "$ltmain_in"; then
17774 test -f Makefile && make "$ltmain"
17780 ac_cpp='$CPP $CPPFLAGS'
17781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17790 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17791 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17792 { (exit 1); exit 1; }; }
17796 # Append the new tag name to the list of available tags.
17797 if test -n "$tagname" ; then
17798 available_tags="$available_tags $tagname"
17804 # Now substitute the updated list of available tags.
17805 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17806 mv "${ofile}T" "$ofile"
17810 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17811 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17812 { (exit 1); exit 1; }; }
17818 # This can be used to rebuild libtool when needed
17819 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17821 # Always use our own libtool.
17822 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17824 # Prevent multiple expansion
17845 # AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
17846 # /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
17848 # Checks for libraries.
17849 if test -f /sw/include/db3/db.h; then
17850 CFLAGS="-I/sw/include/db3 $CFLAGS"
17851 LIBS="-L/sw/lib -ldb-3 $LIBS"
17852 elif test -f /sw/include/db4/db.h; then
17853 CFLAGS="-I/sw/include/db4 $CFLAGS"
17854 LIBS="-L/sw/lib -ldb-4 $LIBS"
17859 # Checks for header files.
17861 # Checks for typedefs, structures, and compiler characteristics.
17862 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17863 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17864 if test "${ac_cv_c_const+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17867 cat >conftest.$ac_ext <<_ACEOF
17868 #line $LINENO "configure"
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17878 /* FIXME: Include the comments suggested by Paul. */
17879 #ifndef __cplusplus
17880 /* Ultrix mips cc rejects this. */
17881 typedef int charset[2];
17883 /* SunOS 4.1.1 cc rejects this. */
17884 char const *const *ccp;
17886 /* NEC SVR4.0.2 mips cc rejects this. */
17887 struct point {int x, y;};
17888 static struct point const zero = {0,0};
17889 /* AIX XL C 1.02.0.0 rejects this.
17890 It does not let you subtract one const X* pointer from another in
17891 an arm of an if-expression whose if-part is not a constant
17893 const char *g = "string";
17894 ccp = &g + (g ? g-g : 0);
17895 /* HPUX 7.0 cc rejects these. */
17898 ccp = (char const *const *) p;
17899 { /* SCO 3.2v4 cc rejects this. */
17901 char const *s = 0 ? (char *) 0 : (char const *) 0;
17905 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17906 int x[] = {25, 17};
17907 const int *foo = &x[0];
17910 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17911 typedef const int *iptr;
17915 { /* AIX XL C 1.02.0.0 rejects this saying
17916 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17917 struct s { int j; const int *ap[3]; };
17918 struct s *b; b->j = 5;
17920 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17921 const int foo = 10;
17929 rm -f conftest.$ac_objext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17931 (eval $ac_compile) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -s conftest.$ac_objext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17948 rm -f conftest.$ac_objext conftest.$ac_ext
17950 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17951 echo "${ECHO_T}$ac_cv_c_const" >&6
17952 if test $ac_cv_c_const = no; then
17954 cat >>confdefs.h <<\_ACEOF
17960 echo "$as_me:$LINENO: checking for inline" >&5
17961 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17962 if test "${ac_cv_c_inline+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 for ac_kw in inline __inline__ __inline; do
17967 cat >conftest.$ac_ext <<_ACEOF
17968 #line $LINENO "configure"
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17974 #ifndef __cplusplus
17976 static $ac_kw foo_t static_foo () {return 0; }
17977 $ac_kw foo_t foo () {return 0; }
17981 rm -f conftest.$ac_objext
17982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17983 (eval $ac_compile) 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
17987 { ac_try='test -s conftest.$ac_objext'
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; }; then
17993 ac_cv_c_inline=$ac_kw; break
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17999 rm -f conftest.$ac_objext conftest.$ac_ext
18003 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18004 echo "${ECHO_T}$ac_cv_c_inline" >&6
18005 case $ac_cv_c_inline in
18008 cat >>confdefs.h <<\_ACEOF
18012 *) cat >>confdefs.h <<_ACEOF
18013 #define inline $ac_cv_c_inline
18019 # Checks for library functions.
18020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18021 # for constant arguments. Useless!
18022 echo "$as_me:$LINENO: checking for working alloca.h" >&5
18023 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
18024 if test "${ac_cv_working_alloca_h+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 cat >conftest.$ac_ext <<_ACEOF
18028 #line $LINENO "configure"
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18034 #include <alloca.h>
18038 char *p = (char *) alloca (2 * sizeof (int));
18043 rm -f conftest.$ac_objext conftest$ac_exeext
18044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18045 (eval $ac_link) 2>&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } &&
18049 { ac_try='test -s conftest$ac_exeext'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_cv_working_alloca_h=yes
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 ac_cv_working_alloca_h=no
18062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18064 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18065 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18066 if test $ac_cv_working_alloca_h = yes; then
18068 cat >>confdefs.h <<\_ACEOF
18069 #define HAVE_ALLOCA_H 1
18074 echo "$as_me:$LINENO: checking for alloca" >&5
18075 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18076 if test "${ac_cv_func_alloca_works+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 cat >conftest.$ac_ext <<_ACEOF
18080 #line $LINENO "configure"
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18087 # define alloca __builtin_alloca
18090 # include <malloc.h>
18091 # define alloca _alloca
18094 # include <alloca.h>
18099 # ifndef alloca /* predefined by HP cc +Olibcalls */
18110 char *p = (char *) alloca (1);
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18117 (eval $ac_link) 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } &&
18121 { ac_try='test -s conftest$ac_exeext'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_cv_func_alloca_works=yes
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18132 ac_cv_func_alloca_works=no
18134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18136 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18137 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18139 if test $ac_cv_func_alloca_works = yes; then
18141 cat >>confdefs.h <<\_ACEOF
18142 #define HAVE_ALLOCA 1
18146 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18147 # that cause trouble. Some versions do not even contain alloca or
18148 # contain a buggy version. If you still want to use their alloca,
18149 # use ar to extract alloca.o from them instead of compiling alloca.c.
18151 ALLOCA=alloca.$ac_objext
18153 cat >>confdefs.h <<\_ACEOF
18158 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18159 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18160 if test "${ac_cv_os_cray+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 cat >conftest.$ac_ext <<_ACEOF
18164 #line $LINENO "configure"
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 #if defined(CRAY) && ! defined(CRAY2)
18177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18178 $EGREP "webecray" >/dev/null 2>&1; then
18186 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18187 echo "${ECHO_T}$ac_cv_os_cray" >&6
18188 if test $ac_cv_os_cray = yes; then
18189 for ac_func in _getb67 GETB67 getb67; do
18190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18191 echo "$as_me:$LINENO: checking for $ac_func" >&5
18192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18193 if eval "test \"\${$as_ac_var+set}\" = set"; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18196 cat >conftest.$ac_ext <<_ACEOF
18197 #line $LINENO "configure"
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18203 /* System header to define __stub macros and hopefully few prototypes,
18204 which can conflict with char $ac_func (); below.
18205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18206 <limits.h> exists even on freestanding compilers. */
18208 # include <limits.h>
18210 # include <assert.h>
18212 /* Override any gcc2 internal prototype to avoid an error. */
18217 /* We use char because int might match the return type of a gcc2
18218 builtin and then its argument prototype would still apply. */
18220 /* The GNU C library defines this for functions which it implements
18221 to always fail with ENOSYS. Some functions are actually named
18222 something starting with __ and the normal name is an alias. */
18223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18226 char (*f) () = $ac_func;
18235 return f != $ac_func;
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242 (eval $ac_link) 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } &&
18246 { ac_try='test -s conftest$ac_exeext'
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18252 eval "$as_ac_var=yes"
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18257 eval "$as_ac_var=no"
18259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18263 if test `eval echo '${'$as_ac_var'}'` = yes; then
18265 cat >>confdefs.h <<_ACEOF
18266 #define CRAY_STACKSEG_END $ac_func
18275 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18276 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18277 if test "${ac_cv_c_stack_direction+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 if test "$cross_compiling" = yes; then
18281 ac_cv_c_stack_direction=0
18283 cat >conftest.$ac_ext <<_ACEOF
18284 #line $LINENO "configure"
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18291 find_stack_direction ()
18293 static char *addr = 0;
18298 return find_stack_direction ();
18301 return (&dummy > addr) ? 1 : -1;
18307 exit (find_stack_direction () < 0);
18310 rm -f conftest$ac_exeext
18311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18312 (eval $ac_link) 2>&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_c_stack_direction=1
18323 echo "$as_me: program exited with status $ac_status" >&5
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 ( exit $ac_status )
18328 ac_cv_c_stack_direction=-1
18330 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18333 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18334 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18336 cat >>confdefs.h <<_ACEOF
18337 #define STACK_DIRECTION $ac_cv_c_stack_direction
18343 echo "$as_me:$LINENO: checking for working strnlen" >&5
18344 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18345 if test "${ac_cv_func_strnlen_working+set}" = set; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18348 if test "$cross_compiling" = yes; then
18349 ac_cv_func_strnlen_working=no
18351 cat >conftest.$ac_ext <<_ACEOF
18352 #line $LINENO "configure"
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18364 #define S_LEN (sizeof S - 1)
18366 /* At least one implementation is buggy: that of AIX 4.3 would
18367 give strnlen (S, 1) == 3. */
18370 for (i = 0; i < S_LEN + 1; ++i)
18372 int expected = i <= S_LEN ? i : S_LEN;
18373 if (strnlen (S, i) != expected)
18382 rm -f conftest$ac_exeext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18384 (eval $ac_link) 2>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
18393 ac_cv_func_strnlen_working=yes
18395 echo "$as_me: program exited with status $ac_status" >&5
18396 echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18399 ( exit $ac_status )
18400 ac_cv_func_strnlen_working=no
18402 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18405 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18406 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18407 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18411 for ac_func in strnlen
18413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18414 echo "$as_me:$LINENO: checking for $ac_func" >&5
18415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18416 if eval "test \"\${$as_ac_var+set}\" = set"; then
18417 echo $ECHO_N "(cached) $ECHO_C" >&6
18419 cat >conftest.$ac_ext <<_ACEOF
18420 #line $LINENO "configure"
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18426 /* System header to define __stub macros and hopefully few prototypes,
18427 which can conflict with char $ac_func (); below.
18428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429 <limits.h> exists even on freestanding compilers. */
18431 # include <limits.h>
18433 # include <assert.h>
18435 /* Override any gcc2 internal prototype to avoid an error. */
18440 /* We use char because int might match the return type of a gcc2
18441 builtin and then its argument prototype would still apply. */
18443 /* The GNU C library defines this for functions which it implements
18444 to always fail with ENOSYS. Some functions are actually named
18445 something starting with __ and the normal name is an alias. */
18446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18449 char (*f) () = $ac_func;
18458 return f != $ac_func;
18463 rm -f conftest.$ac_objext conftest$ac_exeext
18464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18465 (eval $ac_link) 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
18469 { ac_try='test -s conftest$ac_exeext'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 eval "$as_ac_var=yes"
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18480 eval "$as_ac_var=no"
18482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18486 if test `eval echo '${'$as_ac_var'}'` = yes; then
18487 cat >>confdefs.h <<_ACEOF
18488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18495 ac_config_files="$ac_config_files Makefile"
18497 cat >confcache <<\_ACEOF
18498 # This file is a shell script that caches the results of configure
18499 # tests run on this system so they can be shared between configure
18500 # scripts and configure runs, see configure's option --config-cache.
18501 # It is not useful on other systems. If it contains results you don't
18502 # want to keep, you may remove or edit it.
18504 # config.status only pays attention to the cache file if you give it
18505 # the --recheck option to rerun configure.
18507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18509 # following values.
18513 # The following way of writing the cache mishandles newlines in values,
18514 # but we know of no workaround that is simple, portable, and efficient.
18515 # So, don't put newlines in cache variables' values.
18516 # Ultrix sh set writes to stderr and can't be redirected directly,
18517 # and sets the high bit in the cache file unless we assign to the vars.
18520 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18522 # `set' does not quote correctly, so add quotes (double-quote
18523 # substitution turns \\\\ into \\, and sed turns \\ into \).
18526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18529 # `set' quotes correctly as required by POSIX, so do not add quotes.
18531 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18538 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18540 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18542 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18543 if test -w $cache_file; then
18544 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18545 cat confcache >$cache_file
18547 echo "not updating unwritable cache $cache_file"
18552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18553 # Let make expand exec_prefix.
18554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18556 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18557 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18558 # trailing colons and then remove the whole line if VPATH becomes empty
18559 # (actually we leave an empty line to preserve line numbers).
18560 if test "x$srcdir" = x.; then
18561 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18562 s/:*\$(srcdir):*/:/;
18563 s/:*\${srcdir}:*/:/;
18565 s/^\([^=]*=[ ]*\):*/\1/;
18571 DEFS=-DHAVE_CONFIG_H
18575 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18576 # 1. Remove the extension, and $U if already installed.
18577 ac_i=`echo "$ac_i" |
18578 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18580 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18581 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18583 LIBOBJS=$ac_libobjs
18585 LTLIBOBJS=$ac_ltlibobjs
18589 : ${CONFIG_STATUS=./config.status}
18590 ac_clean_files_save=$ac_clean_files
18591 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18592 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18593 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18594 cat >$CONFIG_STATUS <<_ACEOF
18596 # Generated by $as_me.
18597 # Run this file to recreate the current configuration.
18598 # Compiler output produced by configure, useful for debugging
18599 # configure, is in config.log if it exists.
18602 ac_cs_recheck=false
18604 SHELL=\${CONFIG_SHELL-$SHELL}
18607 cat >>$CONFIG_STATUS <<\_ACEOF
18608 ## --------------------- ##
18609 ## M4sh Initialization. ##
18610 ## --------------------- ##
18612 # Be Bourne compatible
18613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18616 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18617 # is contrary to our usage. Disable this feature.
18618 alias -g '${1+"$@"}'='"$@"'
18619 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18623 # Support unset when possible.
18624 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18631 # Work around bugs in pre-3.0 UWIN ksh.
18632 $as_unset ENV MAIL MAILPATH
18639 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18640 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18641 LC_TELEPHONE LC_TIME
18643 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18644 eval $as_var=C; export $as_var
18650 # Required to use basename.
18651 if expr a : '\(a\)' >/dev/null 2>&1; then
18657 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18658 as_basename=basename
18664 # Name of the executable.
18665 as_me=`$as_basename "$0" ||
18666 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18667 X"$0" : 'X\(//\)$' \| \
18668 X"$0" : 'X\(/\)$' \| \
18669 . : '\(.\)' 2>/dev/null ||
18671 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18672 /^X\/\(\/\/\)$/{ s//\1/; q; }
18673 /^X\/\(\/\).*/{ s//\1/; q; }
18677 # PATH needs CR, and LINENO needs CR and PATH.
18678 # Avoid depending upon Character Ranges.
18679 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18680 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18681 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18682 as_cr_digits='0123456789'
18683 as_cr_alnum=$as_cr_Letters$as_cr_digits
18685 # The user is always right.
18686 if test "${PATH_SEPARATOR+set}" != set; then
18687 echo "#! /bin/sh" >conf$$.sh
18688 echo "exit 0" >>conf$$.sh
18690 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18699 as_lineno_1=$LINENO
18700 as_lineno_2=$LINENO
18701 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18702 test "x$as_lineno_1" != "x$as_lineno_2" &&
18703 test "x$as_lineno_3" = "x$as_lineno_2" || {
18704 # Find who we are. Look in the path if we contain no path at all
18707 *[\\/]* ) as_myself=$0 ;;
18708 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18709 for as_dir in $PATH
18712 test -z "$as_dir" && as_dir=.
18713 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18718 # We did not find ourselves, most probably we were run as `sh COMMAND'
18719 # in which case we are not to be found in the path.
18720 if test "x$as_myself" = x; then
18723 if test ! -f "$as_myself"; then
18724 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18725 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18726 { (exit 1); exit 1; }; }
18728 case $CONFIG_SHELL in
18730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18731 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18734 test -z "$as_dir" && as_dir=.
18735 for as_base in sh bash ksh sh5; do
18738 if ("$as_dir/$as_base" -c '
18739 as_lineno_1=$LINENO
18740 as_lineno_2=$LINENO
18741 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18742 test "x$as_lineno_1" != "x$as_lineno_2" &&
18743 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18744 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18745 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18746 CONFIG_SHELL=$as_dir/$as_base
18747 export CONFIG_SHELL
18748 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18756 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18757 # uniformly replaced by the line number. The first 'sed' inserts a
18758 # line-number line before each line; the second 'sed' does the real
18759 # work. The second script uses 'N' to pair each line-number line
18760 # with the numbered line, and appends trailing '-' during
18761 # substitution so that $LINENO is not a special case at line end.
18762 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18763 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18764 sed '=' <$as_myself |
18769 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18772 s,^['$as_cr_digits']*\n,,
18773 ' >$as_me.lineno &&
18774 chmod +x $as_me.lineno ||
18775 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18776 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18777 { (exit 1); exit 1; }; }
18779 # Don't try to exec as it changes $[0], causing all sort of problems
18780 # (the dirname of $[0] is not the place where we might find the
18781 # original and so on. Autoconf is especially sensible to this).
18783 # Exit status is that of the last command.
18788 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18789 *c*,-n*) ECHO_N= ECHO_C='
18791 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18792 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18795 if expr a : '\(a\)' >/dev/null 2>&1; then
18801 rm -f conf$$ conf$$.exe conf$$.file
18803 if ln -s conf$$.file conf$$ 2>/dev/null; then
18804 # We could just check for DJGPP; but this test a) works b) is more generic
18805 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18806 if test -f conf$$.exe; then
18807 # Don't use ln at all; we don't have any links
18812 elif ln conf$$.file conf$$ 2>/dev/null; then
18817 rm -f conf$$ conf$$.exe conf$$.file
18819 if mkdir -p . 2>/dev/null; then
18825 as_executable_p="test -f"
18827 # Sed expression to map a string onto a valid CPP name.
18828 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18830 # Sed expression to map a string onto a valid variable name.
18831 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18835 # We need space, tab and new line, in precisely that order.
18845 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18846 # report actual input values of CONFIG_FILES etc. instead of their
18847 # values after options handling. Logging --version etc. is OK.
18851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18852 ## Running $as_me. ##
18857 This file was extended by libchise $as_me 0.2.0, which was
18858 generated by GNU Autoconf 2.57. Invocation command line was
18860 CONFIG_FILES = $CONFIG_FILES
18861 CONFIG_HEADERS = $CONFIG_HEADERS
18862 CONFIG_LINKS = $CONFIG_LINKS
18863 CONFIG_COMMANDS = $CONFIG_COMMANDS
18867 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18871 # Files that config.status was made for.
18872 if test -n "$ac_config_files"; then
18873 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18876 if test -n "$ac_config_headers"; then
18877 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18880 if test -n "$ac_config_links"; then
18881 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18884 if test -n "$ac_config_commands"; then
18885 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18888 cat >>$CONFIG_STATUS <<\_ACEOF
18891 \`$as_me' instantiates files from templates according to the
18892 current configuration.
18894 Usage: $0 [OPTIONS] [FILE]...
18896 -h, --help print this help, then exit
18897 -V, --version print version number, then exit
18898 -q, --quiet do not print progress messages
18899 -d, --debug don't remove temporary files
18900 --recheck update $as_me by reconfiguring in the same conditions
18901 --file=FILE[:TEMPLATE]
18902 instantiate the configuration file FILE
18903 --header=FILE[:TEMPLATE]
18904 instantiate the configuration header FILE
18906 Configuration files:
18909 Configuration headers:
18912 Report bugs to <bug-autoconf@gnu.org>."
18915 cat >>$CONFIG_STATUS <<_ACEOF
18917 libchise config.status 0.2.0
18918 configured by $0, generated by GNU Autoconf 2.57,
18919 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18921 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18922 Free Software Foundation, Inc.
18923 This config.status script is free software; the Free Software Foundation
18924 gives unlimited permission to copy, distribute and modify it."
18928 cat >>$CONFIG_STATUS <<\_ACEOF
18929 # If no file are specified by the user, then we need to provide default
18930 # value. By we need to know if files were specified by the user.
18936 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18937 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18945 *) # This is not an option, so the user has probably given explicit
18948 ac_need_defaults=false;;
18952 # Handling of the options.
18954 cat >>$CONFIG_STATUS <<\_ACEOF
18955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18957 --version | --vers* | -V )
18958 echo "$ac_cs_version"; exit 0 ;;
18960 # Conflict between --help and --header
18961 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18962 Try \`$0 --help' for more information." >&5
18963 echo "$as_me: error: ambiguous option: $1
18964 Try \`$0 --help' for more information." >&2;}
18965 { (exit 1); exit 1; }; };;
18966 --help | --hel | -h )
18967 echo "$ac_cs_usage"; exit 0 ;;
18968 --debug | --d* | -d )
18970 --file | --fil | --fi | --f )
18972 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18973 ac_need_defaults=false;;
18974 --header | --heade | --head | --hea )
18976 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18977 ac_need_defaults=false;;
18978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18979 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18982 # This is an error.
18983 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18984 Try \`$0 --help' for more information." >&5
18985 echo "$as_me: error: unrecognized option: $1
18986 Try \`$0 --help' for more information." >&2;}
18987 { (exit 1); exit 1; }; } ;;
18989 *) ac_config_targets="$ac_config_targets $1" ;;
18995 ac_configure_extra_args=
18997 if $ac_cs_silent; then
18999 ac_configure_extra_args="$ac_configure_extra_args --silent"
19003 cat >>$CONFIG_STATUS <<_ACEOF
19004 if \$ac_cs_recheck; then
19005 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19006 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19015 cat >>$CONFIG_STATUS <<\_ACEOF
19016 for ac_config_target in $ac_config_targets
19018 case "$ac_config_target" in
19019 # Handling of arguments.
19020 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19021 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19022 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19023 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19024 { (exit 1); exit 1; }; };;
19028 # If the user did not use the arguments to specify the items to instantiate,
19029 # then the envvar interface is used. Set only those that are not.
19030 # We use the long form for the default assignment because of an extremely
19031 # bizarre bug on SunOS 4.1.3.
19032 if $ac_need_defaults; then
19033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19037 # Have a temporary directory for convenience. Make it in the build tree
19038 # simply because there is no reason to put it here, and in addition,
19039 # creating and moving files from /tmp can sometimes cause problems.
19040 # Create a temporary directory, and hook for its removal unless debugging.
19043 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19044 trap '{ (exit 1); exit 1; }' 1 2 13 15
19047 # Create a (secure) tmp directory for tmp files.
19050 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19051 test -n "$tmp" && test -d "$tmp"
19054 tmp=./confstat$$-$RANDOM
19055 (umask 077 && mkdir $tmp)
19058 echo "$me: cannot create a temporary directory in ." >&2
19059 { (exit 1); exit 1; }
19064 cat >>$CONFIG_STATUS <<_ACEOF
19067 # CONFIG_FILES section.
19070 # No need to generate the scripts if there are no CONFIG_FILES.
19071 # This happens for instance when ./config.status config.h
19072 if test -n "\$CONFIG_FILES"; then
19073 # Protect against being on the right side of a sed subst in config.status.
19074 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19075 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19076 s,@SHELL@,$SHELL,;t t
19077 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19078 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19079 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19080 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19081 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19082 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19083 s,@exec_prefix@,$exec_prefix,;t t
19084 s,@prefix@,$prefix,;t t
19085 s,@program_transform_name@,$program_transform_name,;t t
19086 s,@bindir@,$bindir,;t t
19087 s,@sbindir@,$sbindir,;t t
19088 s,@libexecdir@,$libexecdir,;t t
19089 s,@datadir@,$datadir,;t t
19090 s,@sysconfdir@,$sysconfdir,;t t
19091 s,@sharedstatedir@,$sharedstatedir,;t t
19092 s,@localstatedir@,$localstatedir,;t t
19093 s,@libdir@,$libdir,;t t
19094 s,@includedir@,$includedir,;t t
19095 s,@oldincludedir@,$oldincludedir,;t t
19096 s,@infodir@,$infodir,;t t
19097 s,@mandir@,$mandir,;t t
19098 s,@build_alias@,$build_alias,;t t
19099 s,@host_alias@,$host_alias,;t t
19100 s,@target_alias@,$target_alias,;t t
19101 s,@DEFS@,$DEFS,;t t
19102 s,@ECHO_C@,$ECHO_C,;t t
19103 s,@ECHO_N@,$ECHO_N,;t t
19104 s,@ECHO_T@,$ECHO_T,;t t
19105 s,@LIBS@,$LIBS,;t t
19106 s,@build@,$build,;t t
19107 s,@build_cpu@,$build_cpu,;t t
19108 s,@build_vendor@,$build_vendor,;t t
19109 s,@build_os@,$build_os,;t t
19110 s,@host@,$host,;t t
19111 s,@host_cpu@,$host_cpu,;t t
19112 s,@host_vendor@,$host_vendor,;t t
19113 s,@host_os@,$host_os,;t t
19114 s,@target@,$target,;t t
19115 s,@target_cpu@,$target_cpu,;t t
19116 s,@target_vendor@,$target_vendor,;t t
19117 s,@target_os@,$target_os,;t t
19119 s,@CFLAGS@,$CFLAGS,;t t
19120 s,@LDFLAGS@,$LDFLAGS,;t t
19121 s,@CPPFLAGS@,$CPPFLAGS,;t t
19122 s,@ac_ct_CC@,$ac_ct_CC,;t t
19123 s,@EXEEXT@,$EXEEXT,;t t
19124 s,@OBJEXT@,$OBJEXT,;t t
19125 s,@EGREP@,$EGREP,;t t
19126 s,@LN_S@,$LN_S,;t t
19127 s,@ECHO@,$ECHO,;t t
19129 s,@ac_ct_AR@,$ac_ct_AR,;t t
19130 s,@RANLIB@,$RANLIB,;t t
19131 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19132 s,@STRIP@,$STRIP,;t t
19133 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19136 s,@CXXFLAGS@,$CXXFLAGS,;t t
19137 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19138 s,@CXXCPP@,$CXXCPP,;t t
19140 s,@FFLAGS@,$FFLAGS,;t t
19141 s,@ac_ct_F77@,$ac_ct_F77,;t t
19142 s,@LIBTOOL@,$LIBTOOL,;t t
19143 s,@ALLOCA@,$ALLOCA,;t t
19144 s,@LIBOBJS@,$LIBOBJS,;t t
19145 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19150 cat >>$CONFIG_STATUS <<\_ACEOF
19151 # Split the substitutions into bite-sized pieces for seds with
19152 # small command number limits, like on Digital OSF/1 and HP-UX.
19153 ac_max_sed_lines=48
19154 ac_sed_frag=1 # Number of current file.
19155 ac_beg=1 # First line for current file.
19156 ac_end=$ac_max_sed_lines # Line after last line for current file.
19159 while $ac_more_lines; do
19160 if test $ac_beg -gt 1; then
19161 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19163 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19165 if test ! -s $tmp/subs.frag; then
19166 ac_more_lines=false
19168 # The purpose of the label and of the branching condition is to
19169 # speed up the sed processing (if there are no `@' at all, there
19170 # is no need to browse any of the substitutions).
19171 # These are the two extra sed commands mentioned above.
19173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19174 if test -z "$ac_sed_cmds"; then
19175 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19177 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19179 ac_sed_frag=`expr $ac_sed_frag + 1`
19181 ac_end=`expr $ac_end + $ac_max_sed_lines`
19184 if test -z "$ac_sed_cmds"; then
19187 fi # test -n "$CONFIG_FILES"
19190 cat >>$CONFIG_STATUS <<\_ACEOF
19191 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19192 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19194 - | *:- | *:-:* ) # input from stdin
19196 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19197 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19198 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19199 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19200 * ) ac_file_in=$ac_file.in ;;
19203 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19204 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19206 X"$ac_file" : 'X\(//\)[^/]' \| \
19207 X"$ac_file" : 'X\(//\)$' \| \
19208 X"$ac_file" : 'X\(/\)' \| \
19209 . : '\(.\)' 2>/dev/null ||
19211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19213 /^X\(\/\/\)$/{ s//\1/; q; }
19214 /^X\(\/\).*/{ s//\1/; q; }
19216 { if $as_mkdir_p; then
19221 while test ! -d "$as_dir"; do
19222 as_dirs="$as_dir $as_dirs"
19223 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19225 X"$as_dir" : 'X\(//\)[^/]' \| \
19226 X"$as_dir" : 'X\(//\)$' \| \
19227 X"$as_dir" : 'X\(/\)' \| \
19228 . : '\(.\)' 2>/dev/null ||
19230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19232 /^X\(\/\/\)$/{ s//\1/; q; }
19233 /^X\(\/\).*/{ s//\1/; q; }
19236 test ! -n "$as_dirs" || mkdir $as_dirs
19237 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19238 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19239 { (exit 1); exit 1; }; }; }
19243 if test "$ac_dir" != .; then
19244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19245 # A "../" for each directory in $ac_dir_suffix.
19246 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19248 ac_dir_suffix= ac_top_builddir=
19252 .) # No --srcdir option. We are building in place.
19254 if test -z "$ac_top_builddir"; then
19257 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19259 [\\/]* | ?:[\\/]* ) # Absolute path.
19260 ac_srcdir=$srcdir$ac_dir_suffix;
19261 ac_top_srcdir=$srcdir ;;
19262 *) # Relative path.
19263 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19264 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19266 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19268 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19269 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19270 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19271 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19275 if test x"$ac_file" != x-; then
19276 { echo "$as_me:$LINENO: creating $ac_file" >&5
19277 echo "$as_me: creating $ac_file" >&6;}
19280 # Let's still pretend it is `configure' which instantiates (i.e., don't
19281 # use $as_me), people would be surprised to read:
19282 # /* config.h. Generated by config.status. */
19283 if test x"$ac_file" = x-; then
19286 configure_input="$ac_file. "
19288 configure_input=$configure_input"Generated from `echo $ac_file_in |
19289 sed 's,.*/,,'` by configure."
19291 # First look for the input files in the build tree, otherwise in the
19293 ac_file_inputs=`IFS=:
19294 for f in $ac_file_in; do
19296 -) echo $tmp/stdin ;;
19298 # Absolute (can't be DOS-style, as IFS=:)
19299 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19300 echo "$as_me: error: cannot find input file: $f" >&2;}
19301 { (exit 1); exit 1; }; }
19304 if test -f "$f"; then
19307 elif test -f "$srcdir/$f"; then
19312 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19313 echo "$as_me: error: cannot find input file: $f" >&2;}
19314 { (exit 1); exit 1; }; }
19317 done` || { (exit 1); exit 1; }
19319 cat >>$CONFIG_STATUS <<_ACEOF
19323 cat >>$CONFIG_STATUS <<\_ACEOF
19325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19326 s,@configure_input@,$configure_input,;t t
19327 s,@srcdir@,$ac_srcdir,;t t
19328 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19329 s,@top_srcdir@,$ac_top_srcdir,;t t
19330 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19331 s,@builddir@,$ac_builddir,;t t
19332 s,@abs_builddir@,$ac_abs_builddir,;t t
19333 s,@top_builddir@,$ac_top_builddir,;t t
19334 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19335 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19337 if test x"$ac_file" != x-; then
19338 mv $tmp/out $ac_file
19346 cat >>$CONFIG_STATUS <<\_ACEOF
19349 # CONFIG_HEADER section.
19352 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19353 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19355 # ac_d sets the value in "#define NAME VALUE" lines.
19356 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19357 ac_dB='[ ].*$,\1#\2'
19360 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19361 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19362 ac_uB='$,\1#\2define\3'
19366 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19369 - | *:- | *:-:* ) # input from stdin
19371 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19372 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19373 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19375 * ) ac_file_in=$ac_file.in ;;
19378 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19379 echo "$as_me: creating $ac_file" >&6;}
19381 # First look for the input files in the build tree, otherwise in the
19383 ac_file_inputs=`IFS=:
19384 for f in $ac_file_in; do
19386 -) echo $tmp/stdin ;;
19388 # Absolute (can't be DOS-style, as IFS=:)
19389 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19390 echo "$as_me: error: cannot find input file: $f" >&2;}
19391 { (exit 1); exit 1; }; }
19394 if test -f "$f"; then
19397 elif test -f "$srcdir/$f"; then
19402 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19403 echo "$as_me: error: cannot find input file: $f" >&2;}
19404 { (exit 1); exit 1; }; }
19407 done` || { (exit 1); exit 1; }
19408 # Remove the trailing spaces.
19409 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19413 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19414 # `conftest.undefs', that substitutes the proper values into
19415 # config.h.in to produce config.h. The first handles `#define'
19416 # templates, and the second `#undef' templates.
19417 # And first: Protect against being on the right side of a sed subst in
19418 # config.status. Protect against being in an unquoted here document
19419 # in config.status.
19420 rm -f conftest.defines conftest.undefs
19421 # Using a here document instead of a string reduces the quoting nightmare.
19422 # Putting comments in sed scripts is not portable.
19424 # `end' is used to avoid that the second main sed command (meant for
19425 # 0-ary CPP macros) applies to n-ary macro definitions.
19426 # See the Autoconf documentation for `clear'.
19427 cat >confdef2sed.sed <<\_ACEOF
19432 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19434 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19437 # If some macros were called several times there might be several times
19438 # the same #defines, which is useless. Nevertheless, we may not want to
19439 # sort them, since we want the *last* AC-DEFINE to be honored.
19440 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19441 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19442 rm -f confdef2sed.sed
19444 # This sed command replaces #undef with comments. This is necessary, for
19445 # example, in the case of _POSIX_SOURCE, which is predefined and required
19446 # on some systems where configure will not decide to define it.
19447 cat >>conftest.undefs <<\_ACEOF
19448 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19451 # Break up conftest.defines because some shells have a limit on the size
19452 # of here documents, and old seds have small limits too (100 cmds).
19453 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19454 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19455 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19456 echo ' :' >>$CONFIG_STATUS
19457 rm -f conftest.tail
19458 while grep . conftest.defines >/dev/null
19460 # Write a limited-size here document to $tmp/defines.sed.
19461 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19462 # Speed up: don't consider the non `#define' lines.
19463 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19464 # Work around the forget-to-reset-the-flag bug.
19465 echo 't clr' >>$CONFIG_STATUS
19466 echo ': clr' >>$CONFIG_STATUS
19467 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19469 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19471 mv $tmp/out $tmp/in
19473 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19474 rm -f conftest.defines
19475 mv conftest.tail conftest.defines
19477 rm -f conftest.defines
19478 echo ' fi # grep' >>$CONFIG_STATUS
19479 echo >>$CONFIG_STATUS
19481 # Break up conftest.undefs because some shells have a limit on the size
19482 # of here documents, and old seds have small limits too (100 cmds).
19483 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19484 rm -f conftest.tail
19485 while grep . conftest.undefs >/dev/null
19487 # Write a limited-size here document to $tmp/undefs.sed.
19488 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19489 # Speed up: don't consider the non `#undef'
19490 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19491 # Work around the forget-to-reset-the-flag bug.
19492 echo 't clr' >>$CONFIG_STATUS
19493 echo ': clr' >>$CONFIG_STATUS
19494 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19496 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19498 mv $tmp/out $tmp/in
19500 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19501 rm -f conftest.undefs
19502 mv conftest.tail conftest.undefs
19504 rm -f conftest.undefs
19506 cat >>$CONFIG_STATUS <<\_ACEOF
19507 # Let's still pretend it is `configure' which instantiates (i.e., don't
19508 # use $as_me), people would be surprised to read:
19509 # /* config.h. Generated by config.status. */
19510 if test x"$ac_file" = x-; then
19511 echo "/* Generated by configure. */" >$tmp/config.h
19513 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19515 cat $tmp/in >>$tmp/config.h
19517 if test x"$ac_file" != x-; then
19518 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19519 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19520 echo "$as_me: $ac_file is unchanged" >&6;}
19522 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19523 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19524 X"$ac_file" : 'X\(//\)[^/]' \| \
19525 X"$ac_file" : 'X\(//\)$' \| \
19526 X"$ac_file" : 'X\(/\)' \| \
19527 . : '\(.\)' 2>/dev/null ||
19529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19531 /^X\(\/\/\)$/{ s//\1/; q; }
19532 /^X\(\/\).*/{ s//\1/; q; }
19534 { if $as_mkdir_p; then
19539 while test ! -d "$as_dir"; do
19540 as_dirs="$as_dir $as_dirs"
19541 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19543 X"$as_dir" : 'X\(//\)[^/]' \| \
19544 X"$as_dir" : 'X\(//\)$' \| \
19545 X"$as_dir" : 'X\(/\)' \| \
19546 . : '\(.\)' 2>/dev/null ||
19548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19550 /^X\(\/\/\)$/{ s//\1/; q; }
19551 /^X\(\/\).*/{ s//\1/; q; }
19554 test ! -n "$as_dirs" || mkdir $as_dirs
19555 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19556 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19557 { (exit 1); exit 1; }; }; }
19560 mv $tmp/config.h $ac_file
19564 rm -f $tmp/config.h
19569 cat >>$CONFIG_STATUS <<\_ACEOF
19571 { (exit 0); exit 0; }
19573 chmod +x $CONFIG_STATUS
19574 ac_clean_files=$ac_clean_files_save
19577 # configure is writing to config.log, and then calls config.status.
19578 # config.status does its own redirection, appending to config.log.
19579 # Unfortunately, on DOS this fails, as config.log is still kept open
19580 # by configure, so config.status won't be able to write to it; its
19581 # output is simply discarded. So we exec the FD to /dev/null,
19582 # effectively closing config.log, so it can be properly (re)opened and
19583 # appended to by config.status. When coming back to configure, we
19584 # need to make the FD available again.
19585 if test "$no_create" != yes; then
19587 ac_config_status_args=
19588 test "$silent" = yes &&
19589 ac_config_status_args="$ac_config_status_args --quiet"
19591 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19593 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19594 # would make configure fail if this is the last instruction.
19595 $ac_cs_success || { (exit 1); exit 1; }