2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for JSON C Library 0.3.
5 # Report bugs to <michael@metaparadigm.com>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='JSON C Library'
425 PACKAGE_TARNAME='json-c'
426 PACKAGE_VERSION='0.3'
427 PACKAGE_STRING='JSON C Library 0.3'
428 PACKAGE_BUGREPORT='michael@metaparadigm.com'
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL 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 JSON C Library 0.3 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 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020 if test -n "$ac_init_help"; then
1021 case $ac_init_help in
1022 short | recursive ) echo "Configuration of JSON C Library 0.3:";;
1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1041 --with-pic try to use only PIC/non-PIC objects [default=use
1044 include additional configurations [automatic]
1046 Some influential environment variables:
1047 CC C compiler command
1048 CFLAGS C compiler flags
1049 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1050 nonstandard directory <lib dir>
1051 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052 headers in a nonstandard directory <include dir>
1054 CXX C++ compiler command
1055 CXXFLAGS C++ compiler flags
1056 CXXCPP C++ preprocessor
1057 F77 Fortran 77 compiler command
1058 FFLAGS Fortran 77 compiler flags
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1063 Report bugs to <michael@metaparadigm.com>.
1067 if test "$ac_init_help" = "recursive"; then
1068 # If there are subdirs, report their specific --help.
1070 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071 test -d $ac_dir || continue
1074 if test "$ac_dir" != .; then
1075 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076 # A "../" for each directory in $ac_dir_suffix.
1077 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079 ac_dir_suffix= ac_top_builddir=
1083 .) # No --srcdir option. We are building in place.
1085 if test -z "$ac_top_builddir"; then
1088 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090 [\\/]* | ?:[\\/]* ) # Absolute path.
1091 ac_srcdir=$srcdir$ac_dir_suffix;
1092 ac_top_srcdir=$srcdir ;;
1094 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098 # Do not use `cd foo && pwd` to compute absolute paths, because
1099 # the directories may not exist.
1101 .) ac_abs_builddir="$ac_dir";;
1104 .) ac_abs_builddir=`pwd`;;
1105 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1106 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109 case $ac_abs_builddir in
1110 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1112 case ${ac_top_builddir}. in
1113 .) ac_abs_top_builddir=$ac_abs_builddir;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118 case $ac_abs_builddir in
1119 .) ac_abs_srcdir=$ac_srcdir;;
1122 .) ac_abs_srcdir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1124 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1130 case $ac_top_srcdir in
1131 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138 # Check for guested configure; otherwise get Cygnus style configure.
1139 if test -f $ac_srcdir/configure.gnu; then
1141 $SHELL $ac_srcdir/configure.gnu --help=recursive
1142 elif test -f $ac_srcdir/configure; then
1144 $SHELL $ac_srcdir/configure --help=recursive
1145 elif test -f $ac_srcdir/configure.ac ||
1146 test -f $ac_srcdir/configure.in; then
1148 $ac_configure --help
1150 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156 test -n "$ac_init_help" && exit 0
1157 if $ac_init_version; then
1159 JSON C Library configure 0.3
1160 generated by GNU Autoconf 2.59
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1173 It was created by JSON C Library $as_me 0.3, which was
1174 generated by GNU Autoconf 2.59. Invocation command line was
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 test -z "$as_dir" && as_dir=.
1209 echo "PATH: $as_dir"
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_must_keep_next=false
1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250 if test $ac_must_keep_next = true; then
1251 ac_must_keep_next=false # Got value, back to normal.
1254 *=* | --config-cache | -C | -disable-* | --disable-* \
1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257 | -with-* | --with-* | -without-* | --without-* | --x)
1258 case "$ac_configure_args0 " in
1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 -* ) ac_must_keep_next=true ;;
1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266 # Get rid of the leading space.
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log. We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281 # Save into config.log some information that might help in debugging.
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1291 # The following way of writing the cache mishandles newlines in values,
1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1314 for ac_var in $ac_subst_vars
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -n "$ac_subst_files"; then
1328 for ac_var in $ac_subst_files
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -s confdefs.h; then
1343 sed "/^$/d" confdefs.h | sort
1346 test "$ac_signal" != 0 &&
1347 echo "$as_me: caught signal $ac_signal"
1348 echo "$as_me: exit $exit_status"
1350 rm -f core *.core &&
1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354 for ac_signal in 1 2 13 15; do
1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 # Predefined preprocessor variables.
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394 if test "x$prefix" != xNONE; then
1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 for ac_site_file in $CONFIG_SITE; do
1401 if test -r "$ac_site_file"; then
1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404 sed 's/^/| /' "$ac_site_file" >&5
1409 if test -r "$cache_file"; then
1410 # Some versions of bash will fail to source /dev/null (special
1411 # files actually), so we avoid doing that.
1412 if test -f "$cache_file"; then
1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1416 [\\/]* | ?:[\\/]* ) . $cache_file;;
1417 *) . ./$cache_file;;
1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1426 # Check that the precious variables saved in the cache have kept the same
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432 eval ac_new_set=\$ac_env_${ac_var}_set
1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434 eval ac_new_val="\$ac_env_${ac_var}_value"
1435 case $ac_old_set,$ac_new_set in
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1446 if test "x$ac_old_val" != "x$ac_new_val"; then
1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1450 echo "$as_me: former value: $ac_old_val" >&2;}
1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1452 echo "$as_me: current value: $ac_new_val" >&2;}
1453 ac_cache_corrupted=:
1456 # Pass precious variables to config.status.
1457 if test "$ac_new_set" = set; then
1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 *) ac_arg=$ac_var=$ac_new_val ;;
1463 case " $ac_configure_args " in
1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 if $ac_cache_corrupted; then
1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474 { (exit 1); exit 1; }; }
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510 am__api_version="1.4"
1512 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1513 if test -f $ac_dir/install-sh; then
1515 ac_install_sh="$ac_aux_dir/install-sh -c"
1517 elif test -f $ac_dir/install.sh; then
1519 ac_install_sh="$ac_aux_dir/install.sh -c"
1521 elif test -f $ac_dir/shtool; then
1523 ac_install_sh="$ac_aux_dir/shtool install -c"
1527 if test -z "$ac_aux_dir"; then
1528 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1529 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1530 { (exit 1); exit 1; }; }
1532 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1533 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1534 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1536 # Find a good install program. We prefer a C program (faster),
1537 # so one script is as good as another. But avoid the broken or
1538 # incompatible versions:
1539 # SysV /etc/install, /usr/sbin/install
1540 # SunOS /usr/etc/install
1541 # IRIX /sbin/install
1543 # AmigaOS /C/install, which installs bootblocks on floppy discs
1544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # OS/2's system install, which has a completely different semantic
1548 # ./install, which can be erroneously created by make from ./install.sh.
1549 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1550 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1551 if test -z "$INSTALL"; then
1552 if test "${ac_cv_path_install+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 test -z "$as_dir" && as_dir=.
1560 # Account for people who put trailing slashes in PATH elements.
1562 ./ | .// | /cC/* | \
1563 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1564 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1567 # OSF1 and SCO ODT 3.0 have their own names for install.
1568 # Don't use installbsd from OSF since it installs stuff as root
1570 for ac_prog in ginstall scoinst install; do
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1573 if test $ac_prog = install &&
1574 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1575 # AIX install. It has an incompatible calling convention.
1577 elif test $ac_prog = install &&
1578 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1579 # program-specific install script used by HP pwplus--don't use.
1582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1594 if test "${ac_cv_path_install+set}" = set; then
1595 INSTALL=$ac_cv_path_install
1597 # As a last resort, use the slow shell script. We don't cache a
1598 # path for INSTALL within a source directory, because that will
1599 # break other packages using the cache if that directory is
1600 # removed, or if the path is relative.
1601 INSTALL=$ac_install_sh
1604 echo "$as_me:$LINENO: result: $INSTALL" >&5
1605 echo "${ECHO_T}$INSTALL" >&6
1607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1608 # It thinks the first close brace ends the variable substitution.
1609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1615 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1616 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1619 echo timestamp > conftestfile
1620 # Do `set' in a subshell so we don't clobber the current shell's
1621 # arguments. Must try -L first in case configure is actually a
1622 # symlink; some systems play weird games with the mod time of symlinks
1623 # (eg FreeBSD returns the mod time of the symlink's containing
1626 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1627 if test "$*" = "X"; then
1629 set X `ls -t $srcdir/configure conftestfile`
1631 if test "$*" != "X $srcdir/configure conftestfile" \
1632 && test "$*" != "X conftestfile $srcdir/configure"; then
1634 # If neither matched, then we have a broken ls. This can happen
1635 # if, for instance, CONFIG_SHELL is bash and it inherits a
1636 # broken ls alias from the environment. This has actually
1637 # happened. Such a system could not be considered "sane".
1638 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1639 alias in your environment" >&5
1640 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1641 alias in your environment" >&2;}
1642 { (exit 1); exit 1; }; }
1645 test "$2" = conftestfile
1651 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1652 Check your system clock" >&5
1653 echo "$as_me: error: newly created file is older than distributed files!
1654 Check your system clock" >&2;}
1655 { (exit 1); exit 1; }; }
1658 echo "$as_me:$LINENO: result: yes" >&5
1659 echo "${ECHO_T}yes" >&6
1660 test "$program_prefix" != NONE &&
1661 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1662 # Use a double $ so make ignores it.
1663 test "$program_suffix" != NONE &&
1664 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1665 # Double any \ or $. echo might interpret backslashes.
1666 # By default was `s,x,x', remove it if useless.
1667 cat <<\_ACEOF >conftest.sed
1668 s/[\\$]/&&/g;s/;s,x,x,$//
1670 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1673 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1674 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1675 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1676 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 cat >conftest.make <<\_ACEOF
1681 @echo 'ac_maketemp="$(MAKE)"'
1683 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1684 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1685 if test -n "$ac_maketemp"; then
1686 eval ac_cv_prog_make_${ac_make}_set=yes
1688 eval ac_cv_prog_make_${ac_make}_set=no
1692 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1693 echo "$as_me:$LINENO: result: yes" >&5
1694 echo "${ECHO_T}yes" >&6
1697 echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1699 SET_MAKE="MAKE=${MAKE-make}"
1703 PACKAGE=JSON C Library
1707 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1708 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1709 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1710 { (exit 1); exit 1; }; }
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE "$PACKAGE"
1718 cat >>confdefs.h <<_ACEOF
1719 #define VERSION "$VERSION"
1724 missing_dir=`cd $ac_aux_dir && pwd`
1725 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1726 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1727 # Run test in a subshell; some versions of sh will print an error if
1728 # an executable is not found, even if stderr is redirected.
1729 # Redirect stdin to placate older versions of autoconf. Sigh.
1730 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1731 ACLOCAL=aclocal-${am__api_version}
1732 echo "$as_me:$LINENO: result: found" >&5
1733 echo "${ECHO_T}found" >&6
1735 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1736 echo "$as_me:$LINENO: result: missing" >&5
1737 echo "${ECHO_T}missing" >&6
1740 echo "$as_me:$LINENO: checking for working autoconf" >&5
1741 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1742 # Run test in a subshell; some versions of sh will print an error if
1743 # an executable is not found, even if stderr is redirected.
1744 # Redirect stdin to placate older versions of autoconf. Sigh.
1745 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1747 echo "$as_me:$LINENO: result: found" >&5
1748 echo "${ECHO_T}found" >&6
1750 AUTOCONF="$missing_dir/missing autoconf"
1751 echo "$as_me:$LINENO: result: missing" >&5
1752 echo "${ECHO_T}missing" >&6
1755 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1756 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1757 # Run test in a subshell; some versions of sh will print an error if
1758 # an executable is not found, even if stderr is redirected.
1759 # Redirect stdin to placate older versions of autoconf. Sigh.
1760 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1761 AUTOMAKE=automake-${am__api_version}
1762 echo "$as_me:$LINENO: result: found" >&5
1763 echo "${ECHO_T}found" >&6
1765 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1766 echo "$as_me:$LINENO: result: missing" >&5
1767 echo "${ECHO_T}missing" >&6
1770 echo "$as_me:$LINENO: checking for working autoheader" >&5
1771 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1772 # Run test in a subshell; some versions of sh will print an error if
1773 # an executable is not found, even if stderr is redirected.
1774 # Redirect stdin to placate older versions of autoconf. Sigh.
1775 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1776 AUTOHEADER=autoheader
1777 echo "$as_me:$LINENO: result: found" >&5
1778 echo "${ECHO_T}found" >&6
1780 AUTOHEADER="$missing_dir/missing autoheader"
1781 echo "$as_me:$LINENO: result: missing" >&5
1782 echo "${ECHO_T}missing" >&6
1785 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1786 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1787 # Run test in a subshell; some versions of sh will print an error if
1788 # an executable is not found, even if stderr is redirected.
1789 # Redirect stdin to placate older versions of autoconf. Sigh.
1790 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1792 echo "$as_me:$LINENO: result: found" >&5
1793 echo "${ECHO_T}found" >&6
1795 MAKEINFO="$missing_dir/missing makeinfo"
1796 echo "$as_me:$LINENO: result: missing" >&5
1797 echo "${ECHO_T}missing" >&6
1802 # Checks for programs.
1804 # Checks for libraries.
1806 # Checks for header files.
1808 ac_config_headers="$ac_config_headers config.h"
1810 ac_config_commands="$ac_config_commands default-1"
1813 ac_cpp='$CPP $CPPFLAGS'
1814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1817 if test -n "$ac_tool_prefix"; then
1818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1849 echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1854 if test -z "$ac_cv_prog_CC"; then
1856 # Extract the first word of "gcc", so it can be a program name with args.
1857 set dummy gcc; ac_word=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_ac_ct_CC="gcc"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1896 if test -z "$CC"; then
1897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}cc; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 ac_cv_prog_CC="${ac_tool_prefix}cc"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 if test -n "$CC"; then
1926 echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1934 if test -z "$ac_cv_prog_CC"; then
1936 # Extract the first word of "cc", so it can be a program name with args.
1937 set dummy cc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 if test -n "$ac_ct_CC"; then
1944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_ac_ct_CC="cc"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1963 if test -n "$ac_ct_CC"; then
1964 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965 echo "${ECHO_T}$ac_ct_CC" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1977 if test -z "$CC"; then
1978 # Extract the first word of "cc", so it can be a program name with args.
1979 set dummy cc; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997 ac_prog_rejected=yes
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 if test $ac_prog_rejected = yes; then
2008 # We found a bogon in the path, so make sure we never use it.
2009 set dummy $ac_cv_prog_CC
2011 if test $# != 0; then
2012 # We chose a different compiler from the bogus one.
2013 # However, it has the same basename, so the bogon will be chosen
2014 # first if we set CC to just the basename; use the full file name.
2016 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2022 if test -n "$CC"; then
2023 echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2031 if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CC"; then
2063 echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2070 test -n "$CC" && break
2073 if test -z "$CC"; then
2077 # Extract the first word of "$ac_prog", so it can be a program name with args.
2078 set dummy $ac_prog; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 if test -n "$ac_ct_CC"; then
2085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094 ac_cv_prog_ac_ct_CC="$ac_prog"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2112 test -n "$ac_ct_CC" && break
2121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2127 # Provide some information about the compiler.
2128 echo "$as_me:$LINENO:" \
2129 "checking for C compiler version" >&5
2130 ac_compiler=`set X $ac_compile; echo $2`
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2132 (eval $ac_compiler --version </dev/null >&5) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2137 (eval $ac_compiler -v </dev/null >&5) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2142 (eval $ac_compiler -V </dev/null >&5) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2147 cat >conftest.$ac_ext <<_ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2167 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2171 (eval $ac_link_default) 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 # Find the output, starting from the most likely. This scheme is
2176 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179 # Be careful to initialize this variable, since it used to be cached.
2180 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2182 # b.out is created by i960 compilers.
2183 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2185 test -f "$ac_file" || continue
2187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190 # This is the source file.
2193 # We found the default executable, but exeext='' is most
2197 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 # FIXME: I believe we export ac_cv_exeext for Libtool,
2199 # but it would be cool to find out if it's true. Does anybody
2200 # maintain Libtool? --akim.
2208 echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215 { (exit 77); exit 77; }; }
2218 ac_exeext=$ac_cv_exeext
2219 echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6
2222 # Check the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229 if { ac_try='./$ac_file'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 if test "$cross_compiling" = maybe; then
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2250 echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check the compiler produces executables we can run. If not, either
2256 # the compiler is broken, or we cross compile.
2257 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2259 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6
2262 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2265 (eval $ac_link) 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2273 for ac_file in conftest.exe conftest conftest.*; do
2274 test -f "$ac_file" || continue
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2291 rm -f conftest$ac_cv_exeext
2292 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6
2295 rm -f conftest.$ac_ext
2296 EXEEXT=$ac_cv_exeext
2298 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300 if test "${ac_cv_objext+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2318 rm -f conftest.o conftest.obj
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6
2346 OBJEXT=$ac_cv_objext
2348 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.$ac_ext <<_ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2403 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405 GCC=`test $ac_compiler_gnu = yes && echo yes`
2406 ac_test_CFLAGS=${CFLAGS+set}
2407 ac_save_CFLAGS=$CFLAGS
2409 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411 if test "${ac_cv_prog_cc_g+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2433 grep -v '^ *+' conftest.er1 >conftest.err
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461 if test "$ac_test_CFLAGS" = set; then
2462 CFLAGS=$ac_save_CFLAGS
2463 elif test $ac_cv_prog_cc_g = yes; then
2464 if test "$GCC" = yes; then
2470 if test "$GCC" = yes; then
2476 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 ac_cv_prog_cc_stdc=no
2483 cat >conftest.$ac_ext <<_ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2491 #include <sys/types.h>
2492 #include <sys/stat.h>
2493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2494 struct buf { int x; };
2495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496 static char *e (p, i)
2502 static char *f (char * (*g) (char **, int), char **p, ...)
2507 s = g (p, va_arg (v,int));
2512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2513 function prototypes and stuff, but not '\xHH' hex character constants.
2514 These don't provoke an error unfortunately, instead are silently treated
2515 as 'x'. The following induces an error, until -std1 is added to get
2516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2517 array size at least. It's necessary to write '\x00'==0 to get something
2518 that's true only with -std1. */
2519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521 int test (int i, double x);
2522 struct s1 {int (*f) (int a);};
2523 struct s2 {int (*f) (double a);};
2524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2530 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2535 # Don't try gcc -ansi; that turns off useful extensions and
2536 # breaks some systems' header files.
2537 # AIX -qlanglvl=ansi
2538 # Ultrix and OSF/1 -std1
2539 # HP-UX 10.20 and later -Ae
2540 # HP-UX older versions -Aa -D_HPUX_SOURCE
2541 # SVR4 -Xc -D__EXTENSIONS__
2542 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544 CC="$ac_save_CC $ac_arg"
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 ac_cv_prog_cc_stdc=$ac_arg
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext
2575 rm -f conftest.$ac_ext conftest.$ac_objext
2580 case "x$ac_cv_prog_cc_stdc" in
2582 echo "$as_me:$LINENO: result: none needed" >&5
2583 echo "${ECHO_T}none needed" >&6 ;;
2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587 CC="$CC $ac_cv_prog_cc_stdc" ;;
2590 # Some people use a C++ compiler to compile C. Since we use `exit',
2591 # in C++ we need to declare it. In case someone uses the same compiler
2592 # for both compiling C and C++ we need to have the C++ compiler decide
2593 # the declaration of exit, since it's the most demanding environment.
2594 cat >conftest.$ac_ext <<_ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 for ac_declaration in \
2622 'extern "C" void std::exit (int) throw (); using std::exit;' \
2623 'extern "C" void std::exit (int); using std::exit;' \
2624 'extern "C" void exit (int) throw ();' \
2625 'extern "C" void exit (int);' \
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>conftest.er1
2692 grep -v '^ *+' conftest.er1 >conftest.err
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; } &&
2703 { ac_try='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718 if test -n "$ac_declaration"; then
2719 echo '#ifdef __cplusplus' >>confdefs.h
2720 echo $ac_declaration >>confdefs.h
2721 echo '#endif' >>confdefs.h
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2743 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2744 # On Suns, sometimes $CPP names a directory.
2745 if test -n "$CPP" && test -d "$CPP"; then
2748 if test -z "$CPP"; then
2749 if test "${ac_cv_prog_CPP+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 # Double quotes because CPP needs to be expanded
2753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2756 for ac_c_preproc_warn_flag in '' yes
2758 # Use a header file that comes with gcc, so configuring glibc
2759 # with a fresh cross-compiler works.
2760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2761 # <limits.h> exists even on freestanding compilers.
2762 # On the NeXT, cc -E runs the code through the compiler's parser,
2763 # not just through cpp. "Syntax error" is here to catch this case.
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2771 # include <limits.h>
2773 # include <assert.h>
2777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2780 grep -v '^ *+' conftest.er1 >conftest.err
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } >/dev/null; then
2785 if test -s conftest.err; then
2786 ac_cpp_err=$ac_c_preproc_warn_flag
2787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2794 if test -z "$ac_cpp_err"; then
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 # Broken: fails on valid input.
2803 rm -f conftest.err conftest.$ac_ext
2805 # OK, works on sane cases. Now check whether non-existent headers
2806 # can be detected and how.
2807 cat >conftest.$ac_ext <<_ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2813 #include <ac_nonexistent.h>
2815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2818 grep -v '^ *+' conftest.er1 >conftest.err
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } >/dev/null; then
2823 if test -s conftest.err; then
2824 ac_cpp_err=$ac_c_preproc_warn_flag
2825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2832 if test -z "$ac_cpp_err"; then
2833 # Broken: success on invalid input.
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2839 # Passes both tests.
2843 rm -f conftest.err conftest.$ac_ext
2846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2847 rm -f conftest.err conftest.$ac_ext
2848 if $ac_preproc_ok; then
2860 echo "$as_me:$LINENO: result: $CPP" >&5
2861 echo "${ECHO_T}$CPP" >&6
2863 for ac_c_preproc_warn_flag in '' yes
2865 # Use a header file that comes with gcc, so configuring glibc
2866 # with a fresh cross-compiler works.
2867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2868 # <limits.h> exists even on freestanding compilers.
2869 # On the NeXT, cc -E runs the code through the compiler's parser,
2870 # not just through cpp. "Syntax error" is here to catch this case.
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2878 # include <limits.h>
2880 # include <assert.h>
2884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887 grep -v '^ *+' conftest.er1 >conftest.err
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } >/dev/null; then
2892 if test -s conftest.err; then
2893 ac_cpp_err=$ac_c_preproc_warn_flag
2894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2901 if test -z "$ac_cpp_err"; then
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 # Broken: fails on valid input.
2910 rm -f conftest.err conftest.$ac_ext
2912 # OK, works on sane cases. Now check whether non-existent headers
2913 # can be detected and how.
2914 cat >conftest.$ac_ext <<_ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 #include <ac_nonexistent.h>
2922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925 grep -v '^ *+' conftest.er1 >conftest.err
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } >/dev/null; then
2930 if test -s conftest.err; then
2931 ac_cpp_err=$ac_c_preproc_warn_flag
2932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939 if test -z "$ac_cpp_err"; then
2940 # Broken: success on invalid input.
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 # Passes both tests.
2950 rm -f conftest.err conftest.$ac_ext
2953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2954 rm -f conftest.err conftest.$ac_ext
2955 if $ac_preproc_ok; then
2958 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2966 ac_cpp='$CPP $CPPFLAGS'
2967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 echo "$as_me:$LINENO: checking for egrep" >&5
2973 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2974 if test "${ac_cv_prog_egrep+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2978 then ac_cv_prog_egrep='grep -E'
2979 else ac_cv_prog_egrep='egrep'
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2983 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2984 EGREP=$ac_cv_prog_egrep
2987 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2988 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2989 if test "${ac_cv_header_stdc+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 cat >conftest.$ac_ext <<_ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3032 ac_cv_header_stdc=yes
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 ac_cv_header_stdc=no
3039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041 if test $ac_cv_header_stdc = yes; then
3042 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3053 $EGREP "memchr" >/dev/null 2>&1; then
3056 ac_cv_header_stdc=no
3062 if test $ac_cv_header_stdc = yes; then
3063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3074 $EGREP "free" >/dev/null 2>&1; then
3077 ac_cv_header_stdc=no
3083 if test $ac_cv_header_stdc = yes; then
3084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3085 if test "$cross_compiling" = yes; then
3088 cat >conftest.$ac_ext <<_ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3095 #if ((' ' & 0x0FF) == 0x020)
3096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3099 # define ISLOWER(c) \
3100 (('a' <= (c) && (c) <= 'i') \
3101 || ('j' <= (c) && (c) <= 'r') \
3102 || ('s' <= (c) && (c) <= 'z'))
3103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3111 for (i = 0; i < 256; i++)
3112 if (XOR (islower (i), ISLOWER (i))
3113 || toupper (i) != TOUPPER (i))
3118 rm -f conftest$ac_exeext
3119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3120 (eval $ac_link) 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3131 echo "$as_me: program exited with status $ac_status" >&5
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3136 ac_cv_header_stdc=no
3138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3142 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3143 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3144 if test $ac_cv_header_stdc = yes; then
3146 cat >>confdefs.h <<\_ACEOF
3147 #define STDC_HEADERS 1
3152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3163 inttypes.h stdint.h unistd.h
3165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3166 echo "$as_me:$LINENO: checking for $ac_header" >&5
3167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3177 $ac_includes_default
3179 #include <$ac_header>
3181 rm -f conftest.$ac_objext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183 (eval $ac_compile) 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 eval "$as_ac_Header=yes"
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 eval "$as_ac_Header=no"
3209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3214 cat >>confdefs.h <<_ACEOF
3215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3230 for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/param.h stdarg.h
3232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3234 echo "$as_me:$LINENO: checking for $ac_header" >&5
3235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3242 # Is the header compilable?
3243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3245 cat >conftest.$ac_ext <<_ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3251 $ac_includes_default
3252 #include <$ac_header>
3254 rm -f conftest.$ac_objext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256 (eval $ac_compile) 2>conftest.er1
3258 grep -v '^ *+' conftest.er1 >conftest.err
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_header_compiler=yes
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 ac_header_compiler=no
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3284 echo "${ECHO_T}$ac_header_compiler" >&6
3286 # Is the header present?
3287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <$ac_header>
3297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } >/dev/null; then
3305 if test -s conftest.err; then
3306 ac_cpp_err=$ac_c_preproc_warn_flag
3307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3314 if test -z "$ac_cpp_err"; then
3315 ac_header_preproc=yes
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 ac_header_preproc=no
3322 rm -f conftest.err conftest.$ac_ext
3323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3324 echo "${ECHO_T}$ac_header_preproc" >&6
3326 # So? What about this header?
3327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3333 ac_header_preproc=yes
3336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3350 ## --------------------------------------- ##
3351 ## Report this to michael@metaparadigm.com ##
3352 ## --------------------------------------- ##
3355 sed "s/^/$as_me: WARNING: /" >&2
3358 echo "$as_me:$LINENO: checking for $ac_header" >&5
3359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 eval "$as_ac_Header=\$ac_header_preproc"
3365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3370 cat >>confdefs.h <<_ACEOF
3371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3379 # Checks for typedefs, structures, and compiler characteristics.
3380 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3381 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3382 if test "${ac_cv_c_const+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3395 /* FIXME: Include the comments suggested by Paul. */
3397 /* Ultrix mips cc rejects this. */
3398 typedef int charset[2];
3400 /* SunOS 4.1.1 cc rejects this. */
3401 char const *const *ccp;
3403 /* NEC SVR4.0.2 mips cc rejects this. */
3404 struct point {int x, y;};
3405 static struct point const zero = {0,0};
3406 /* AIX XL C 1.02.0.0 rejects this.
3407 It does not let you subtract one const X* pointer from another in
3408 an arm of an if-expression whose if-part is not a constant
3410 const char *g = "string";
3411 ccp = &g + (g ? g-g : 0);
3412 /* HPUX 7.0 cc rejects these. */
3415 ccp = (char const *const *) p;
3416 { /* SCO 3.2v4 cc rejects this. */
3418 char const *s = 0 ? (char *) 0 : (char const *) 0;
3422 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3424 const int *foo = &x[0];
3427 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3428 typedef const int *iptr;
3432 { /* AIX XL C 1.02.0.0 rejects this saying
3433 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3434 struct s { int j; const int *ap[3]; };
3435 struct s *b; b->j = 5;
3437 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } &&
3455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; } &&
3461 { ac_try='test -s conftest.$ac_objext'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3476 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3477 echo "${ECHO_T}$ac_cv_c_const" >&6
3478 if test $ac_cv_c_const = no; then
3480 cat >>confdefs.h <<\_ACEOF
3486 echo "$as_me:$LINENO: checking for size_t" >&5
3487 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3488 if test "${ac_cv_type_size_t+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 cat >conftest.$ac_ext <<_ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497 $ac_includes_default
3503 if (sizeof (size_t))
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>conftest.er1
3513 grep -v '^ *+' conftest.er1 >conftest.err
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_cv_type_size_t=yes
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 ac_cv_type_size_t=no
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3540 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3541 if test $ac_cv_type_size_t = yes; then
3545 cat >>confdefs.h <<_ACEOF
3546 #define size_t unsigned
3552 # Checks for library functions.
3554 for ac_func in vprintf
3556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3557 echo "$as_me:$LINENO: checking for $ac_func" >&5
3558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3559 if eval "test \"\${$as_ac_var+set}\" = set"; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3570 #define $ac_func innocuous_$ac_func
3572 /* System header to define __stub macros and hopefully few prototypes,
3573 which can conflict with char $ac_func (); below.
3574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3575 <limits.h> exists even on freestanding compilers. */
3578 # include <limits.h>
3580 # include <assert.h>
3585 /* Override any gcc2 internal prototype to avoid an error. */
3590 /* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3593 /* The GNU C library defines this for functions which it implements
3594 to always fail with ENOSYS. Some functions are actually named
3595 something starting with __ and the normal name is an alias. */
3596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 char (*f) () = $ac_func;
3608 return f != $ac_func;
3613 rm -f conftest.$ac_objext conftest$ac_exeext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3615 (eval $ac_link) 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest$ac_exeext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 eval "$as_ac_var=yes"
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 eval "$as_ac_var=no"
3641 rm -f conftest.err conftest.$ac_objext \
3642 conftest$ac_exeext conftest.$ac_ext
3644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3646 if test `eval echo '${'$as_ac_var'}'` = yes; then
3647 cat >>confdefs.h <<_ACEOF
3648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3651 echo "$as_me:$LINENO: checking for _doprnt" >&5
3652 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3653 if test "${ac_cv_func__doprnt+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
3663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3664 #define _doprnt innocuous__doprnt
3666 /* System header to define __stub macros and hopefully few prototypes,
3667 which can conflict with char _doprnt (); below.
3668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669 <limits.h> exists even on freestanding compilers. */
3672 # include <limits.h>
3674 # include <assert.h>
3679 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3687 /* The GNU C library defines this for functions which it implements
3688 to always fail with ENOSYS. Some functions are actually named
3689 something starting with __ and the normal name is an alias. */
3690 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3693 char (*f) () = _doprnt;
3702 return f != _doprnt;
3707 rm -f conftest.$ac_objext conftest$ac_exeext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3709 (eval $ac_link) 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest$ac_exeext'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_cv_func__doprnt=yes
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 ac_cv_func__doprnt=no
3735 rm -f conftest.err conftest.$ac_objext \
3736 conftest$ac_exeext conftest.$ac_ext
3738 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3739 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3740 if test $ac_cv_func__doprnt = yes; then
3742 cat >>confdefs.h <<\_ACEOF
3743 #define HAVE_DOPRNT 1
3752 echo "$as_me:$LINENO: checking for working memcmp" >&5
3753 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3754 if test "${ac_cv_func_memcmp_working+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test "$cross_compiling" = yes; then
3758 ac_cv_func_memcmp_working=no
3760 cat >conftest.$ac_ext <<_ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 $ac_includes_default
3771 /* Some versions of memcmp are not 8-bit clean. */
3772 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3773 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3776 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3777 or more and with at least one buffer not starting on a 4-byte boundary.
3778 William Lewis provided this test program. */
3783 for (i = 0; i < 4; i++)
3787 strcpy (a, "--------01111111");
3788 strcpy (b, "--------10000000");
3789 if (memcmp (a, b, 16) >= 0)
3799 rm -f conftest$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_cv_func_memcmp_working=yes
3812 echo "$as_me: program exited with status $ac_status" >&5
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3817 ac_cv_func_memcmp_working=no
3819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
3823 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
3824 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
3825 "memcmp.$ac_objext" | \
3826 *" memcmp.$ac_objext" | \
3827 "memcmp.$ac_objext "* | \
3828 *" memcmp.$ac_objext "* ) ;;
3829 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
3834 for ac_header in stdlib.h
3836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3838 echo "$as_me:$LINENO: checking for $ac_header" >&5
3839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3846 # Is the header compilable?
3847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 $ac_includes_default
3856 #include <$ac_header>
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 ac_header_compiler=yes
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_header_compiler=no
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3888 echo "${ECHO_T}$ac_header_compiler" >&6
3890 # Is the header present?
3891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 #include <$ac_header>
3901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3904 grep -v '^ *+' conftest.er1 >conftest.err
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } >/dev/null; then
3909 if test -s conftest.err; then
3910 ac_cpp_err=$ac_c_preproc_warn_flag
3911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3918 if test -z "$ac_cpp_err"; then
3919 ac_header_preproc=yes
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 ac_header_preproc=no
3926 rm -f conftest.err conftest.$ac_ext
3927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3928 echo "${ECHO_T}$ac_header_preproc" >&6
3930 # So? What about this header?
3931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3937 ac_header_preproc=yes
3940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3954 ## --------------------------------------- ##
3955 ## Report this to michael@metaparadigm.com ##
3956 ## --------------------------------------- ##
3959 sed "s/^/$as_me: WARNING: /" >&2
3962 echo "$as_me:$LINENO: checking for $ac_header" >&5
3963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 eval "$as_ac_Header=\$ac_header_preproc"
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3974 cat >>confdefs.h <<_ACEOF
3975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3982 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
3983 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
3984 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test "$cross_compiling" = yes; then
3988 ac_cv_func_malloc_0_nonnull=no
3990 cat >conftest.$ac_ext <<_ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3996 #if STDC_HEADERS || HAVE_STDLIB_H
3997 # include <stdlib.h>
4005 exit (malloc (0) ? 0 : 1);
4010 rm -f conftest$ac_exeext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_cv_func_malloc_0_nonnull=yes
4023 echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4028 ac_cv_func_malloc_0_nonnull=no
4030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4033 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4034 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4035 if test $ac_cv_func_malloc_0_nonnull = yes; then
4037 cat >>confdefs.h <<\_ACEOF
4038 #define HAVE_MALLOC 1
4042 cat >>confdefs.h <<\_ACEOF
4043 #define HAVE_MALLOC 0
4047 "malloc.$ac_objext" | \
4048 *" malloc.$ac_objext" | \
4049 "malloc.$ac_objext "* | \
4050 *" malloc.$ac_objext "* ) ;;
4051 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4055 cat >>confdefs.h <<\_ACEOF
4056 #define malloc rpl_malloc
4064 for ac_header in stdlib.h
4066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4068 echo "$as_me:$LINENO: checking for $ac_header" >&5
4069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4076 # Is the header compilable?
4077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4079 cat >conftest.$ac_ext <<_ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 $ac_includes_default
4086 #include <$ac_header>
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>conftest.er1
4092 grep -v '^ *+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 ac_header_compiler=yes
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 ac_header_compiler=no
4116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4118 echo "${ECHO_T}$ac_header_compiler" >&6
4120 # Is the header present?
4121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #include <$ac_header>
4131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } >/dev/null; then
4139 if test -s conftest.err; then
4140 ac_cpp_err=$ac_c_preproc_warn_flag
4141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4148 if test -z "$ac_cpp_err"; then
4149 ac_header_preproc=yes
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 ac_header_preproc=no
4156 rm -f conftest.err conftest.$ac_ext
4157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4158 echo "${ECHO_T}$ac_header_preproc" >&6
4160 # So? What about this header?
4161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4167 ac_header_preproc=yes
4170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4184 ## --------------------------------------- ##
4185 ## Report this to michael@metaparadigm.com ##
4186 ## --------------------------------------- ##
4189 sed "s/^/$as_me: WARNING: /" >&2
4192 echo "$as_me:$LINENO: checking for $ac_header" >&5
4193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 eval "$as_ac_Header=\$ac_header_preproc"
4199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4204 cat >>confdefs.h <<_ACEOF
4205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4212 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
4213 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
4214 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 if test "$cross_compiling" = yes; then
4218 ac_cv_func_realloc_0_nonnull=no
4220 cat >conftest.$ac_ext <<_ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 #if STDC_HEADERS || HAVE_STDLIB_H
4227 # include <stdlib.h>
4235 exit (realloc (0, 0) ? 0 : 1);
4240 rm -f conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 ac_cv_func_realloc_0_nonnull=yes
4253 echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4258 ac_cv_func_realloc_0_nonnull=no
4260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4263 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
4264 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
4265 if test $ac_cv_func_realloc_0_nonnull = yes; then
4267 cat >>confdefs.h <<\_ACEOF
4268 #define HAVE_REALLOC 1
4272 cat >>confdefs.h <<\_ACEOF
4273 #define HAVE_REALLOC 0
4277 "realloc.$ac_objext" | \
4278 *" realloc.$ac_objext" | \
4279 "realloc.$ac_objext "* | \
4280 *" realloc.$ac_objext "* ) ;;
4281 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
4285 cat >>confdefs.h <<\_ACEOF
4286 #define realloc rpl_realloc
4300 for ac_func in strndup strerror vsnprintf vasprintf open vsyslog strncasecmp
4302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4303 echo "$as_me:$LINENO: checking for $ac_func" >&5
4304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4305 if eval "test \"\${$as_ac_var+set}\" = set"; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4316 #define $ac_func innocuous_$ac_func
4318 /* System header to define __stub macros and hopefully few prototypes,
4319 which can conflict with char $ac_func (); below.
4320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 <limits.h> exists even on freestanding compilers. */
4324 # include <limits.h>
4326 # include <assert.h>
4331 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4339 /* The GNU C library defines this for functions which it implements
4340 to always fail with ENOSYS. Some functions are actually named
4341 something starting with __ and the normal name is an alias. */
4342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4345 char (*f) () = $ac_func;
4354 return f != $ac_func;
4359 rm -f conftest.$ac_objext conftest$ac_exeext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4361 (eval $ac_link) 2>conftest.er1
4363 grep -v '^ *+' conftest.er1 >conftest.err
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try='test -s conftest$ac_exeext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 eval "$as_ac_var=yes"
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 eval "$as_ac_var=no"
4387 rm -f conftest.err conftest.$ac_objext \
4388 conftest$ac_exeext conftest.$ac_ext
4390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4392 if test `eval echo '${'$as_ac_var'}'` = yes; then
4393 cat >>confdefs.h <<_ACEOF
4394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4401 # Check whether --enable-shared or --disable-shared was given.
4402 if test "${enable_shared+set}" = set; then
4403 enableval="$enable_shared"
4404 p=${PACKAGE-default}
4406 yes) enable_shared=yes ;;
4407 no) enable_shared=no ;;
4410 # Look at the argument we got. We use all the common list separators.
4411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4412 for pkg in $enableval; do
4414 if test "X$pkg" = "X$p"; then
4425 # Check whether --enable-static or --disable-static was given.
4426 if test "${enable_static+set}" = set; then
4427 enableval="$enable_static"
4428 p=${PACKAGE-default}
4430 yes) enable_static=yes ;;
4431 no) enable_static=no ;;
4434 # Look at the argument we got. We use all the common list separators.
4435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4436 for pkg in $enableval; do
4438 if test "X$pkg" = "X$p"; then
4449 # Check whether --enable-fast-install or --disable-fast-install was given.
4450 if test "${enable_fast_install+set}" = set; then
4451 enableval="$enable_fast_install"
4452 p=${PACKAGE-default}
4454 yes) enable_fast_install=yes ;;
4455 no) enable_fast_install=no ;;
4457 enable_fast_install=no
4458 # Look at the argument we got. We use all the common list separators.
4459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4460 for pkg in $enableval; do
4462 if test "X$pkg" = "X$p"; then
4463 enable_fast_install=yes
4470 enable_fast_install=yes
4473 # Make sure we can run config.sub.
4474 $ac_config_sub sun4 >/dev/null 2>&1 ||
4475 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4476 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4477 { (exit 1); exit 1; }; }
4479 echo "$as_me:$LINENO: checking build system type" >&5
4480 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4481 if test "${ac_cv_build+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 ac_cv_build_alias=$build_alias
4485 test -z "$ac_cv_build_alias" &&
4486 ac_cv_build_alias=`$ac_config_guess`
4487 test -z "$ac_cv_build_alias" &&
4488 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4489 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4490 { (exit 1); exit 1; }; }
4491 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4493 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4494 { (exit 1); exit 1; }; }
4497 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4498 echo "${ECHO_T}$ac_cv_build" >&6
4500 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4501 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4502 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4505 echo "$as_me:$LINENO: checking host system type" >&5
4506 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4507 if test "${ac_cv_host+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 ac_cv_host_alias=$host_alias
4511 test -z "$ac_cv_host_alias" &&
4512 ac_cv_host_alias=$ac_cv_build_alias
4513 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4515 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4516 { (exit 1); exit 1; }; }
4519 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4520 echo "${ECHO_T}$ac_cv_host" >&6
4522 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4523 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4524 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4527 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4528 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4529 if test "${lt_cv_path_SED+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 # Loop through the user's path and test for sed and gsed.
4533 # Then use that list of sed's as ones to test for truncation.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for lt_ac_prog in sed gsed; do
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4542 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4549 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4550 # along with /bin/sed that truncates output.
4551 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4552 test ! -f $lt_ac_sed && continue
4553 cat /dev/null > conftest.in
4555 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4556 # Check for GNU sed and select it if it is found.
4557 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4558 lt_cv_path_SED=$lt_ac_sed
4562 cat conftest.in conftest.in >conftest.tmp
4563 mv conftest.tmp conftest.in
4564 cp conftest.in conftest.nl
4566 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4567 cmp -s conftest.out conftest.nl || break
4568 # 10000 chars as input seems more than enough
4569 test $lt_ac_count -gt 10 && break
4570 lt_ac_count=`expr $lt_ac_count + 1`
4571 if test $lt_ac_count -gt $lt_ac_max; then
4572 lt_ac_max=$lt_ac_count
4573 lt_cv_path_SED=$lt_ac_sed
4581 echo "$as_me:$LINENO: result: $SED" >&5
4582 echo "${ECHO_T}$SED" >&6
4585 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4586 if test "${with_gnu_ld+set}" = set; then
4587 withval="$with_gnu_ld"
4588 test "$withval" = no || with_gnu_ld=yes
4593 if test "$GCC" = yes; then
4594 # Check if gcc -print-prog-name=ld gives a path.
4595 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4596 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4599 # gcc leaves a trailing carriage return which upsets mingw
4600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4605 # Accept absolute paths.
4607 re_direlt='/[^/][^/]*/\.\./'
4608 # Canonicalize the pathname of ld
4609 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4610 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4611 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4613 test -z "$LD" && LD="$ac_prog"
4616 # If it fails, then pretend we aren't using GCC.
4620 # If it is relative, then search for the first ld in PATH.
4624 elif test "$with_gnu_ld" = yes; then
4625 echo "$as_me:$LINENO: checking for GNU ld" >&5
4626 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4628 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4629 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4631 if test "${lt_cv_path_LD+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 if test -z "$LD"; then
4635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4636 for ac_dir in $PATH; do
4638 test -z "$ac_dir" && ac_dir=.
4639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4640 lt_cv_path_LD="$ac_dir/$ac_prog"
4641 # Check to see if the program is GNU ld. I'd rather use --version,
4642 # but apparently some variants of GNU ld only accept -v.
4643 # Break only if it was the GNU/non-GNU ld that we prefer.
4644 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4645 *GNU* | *'with BFD'*)
4646 test "$with_gnu_ld" != no && break
4649 test "$with_gnu_ld" != yes && break
4656 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4661 if test -n "$LD"; then
4662 echo "$as_me:$LINENO: result: $LD" >&5
4663 echo "${ECHO_T}$LD" >&6
4665 echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6
4668 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4669 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4670 { (exit 1); exit 1; }; }
4671 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4672 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4673 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4677 case `$LD -v 2>&1 </dev/null` in
4678 *GNU* | *'with BFD'*)
4679 lt_cv_prog_gnu_ld=yes
4682 lt_cv_prog_gnu_ld=no
4686 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4687 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4688 with_gnu_ld=$lt_cv_prog_gnu_ld
4691 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4692 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4693 if test "${lt_cv_ld_reload_flag+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 lt_cv_ld_reload_flag='-r'
4698 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4699 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4700 reload_flag=$lt_cv_ld_reload_flag
4701 case $reload_flag in
4703 *) reload_flag=" $reload_flag" ;;
4705 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4708 if test "$GCC" = yes; then
4709 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4711 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4716 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4717 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4718 if test "${lt_cv_path_NM+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 if test -n "$NM"; then
4722 # Let the user override the test.
4725 lt_nm_to_check="${ac_tool_prefix}nm"
4726 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4727 lt_nm_to_check="$lt_nm_to_check nm"
4729 for lt_tmp_nm in $lt_nm_to_check; do
4730 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4731 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4733 test -z "$ac_dir" && ac_dir=.
4734 tmp_nm="$ac_dir/$lt_tmp_nm"
4735 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4736 # Check to see if the nm accepts a BSD-compat flag.
4737 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4738 # nm: unknown option "B" ignored
4739 # Tru64's nm complains that /dev/null is an invalid object file
4740 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4741 */dev/null* | *'Invalid file or object type'*)
4742 lt_cv_path_NM="$tmp_nm -B"
4746 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4748 lt_cv_path_NM="$tmp_nm -p"
4752 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4753 continue # so that we can try to find one that supports BSD flags
4762 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4765 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4766 echo "${ECHO_T}$lt_cv_path_NM" >&6
4769 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4770 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4772 if test "$LN_S" = "ln -s"; then
4773 echo "$as_me:$LINENO: result: yes" >&5
4774 echo "${ECHO_T}yes" >&6
4776 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4777 echo "${ECHO_T}no, using $LN_S" >&6
4780 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4781 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4782 if test "${lt_cv_deplibs_check_method+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 lt_cv_file_magic_cmd='$MAGIC_CMD'
4786 lt_cv_file_magic_test_file=
4787 lt_cv_deplibs_check_method='unknown'
4788 # Need to set the preceding variable on all platforms that support
4789 # interlibrary dependencies.
4790 # 'none' -- dependencies not supported.
4791 # `unknown' -- same as none, but documents that we really don't know.
4792 # 'pass_all' -- all dependencies passed with no checks.
4793 # 'test_compile' -- check by making test program.
4794 # 'file_magic [[regex]]' -- check by looking for files in library path
4795 # which responds to the $file_magic_cmd with a given extended regex.
4796 # If you have `file' or equivalent on your system and you're not sure
4797 # whether `pass_all' will *always* work, you probably want this one.
4801 lt_cv_deplibs_check_method=pass_all
4805 lt_cv_deplibs_check_method=pass_all
4809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4810 lt_cv_file_magic_cmd='/usr/bin/file -L'
4811 lt_cv_file_magic_test_file=/shlib/libc.so
4815 # func_win32_libid is a shell function defined in ltmain.sh
4816 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4817 lt_cv_file_magic_cmd='func_win32_libid'
4821 # Base MSYS/MinGW do not provide the 'file' command needed by
4822 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4823 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4824 lt_cv_file_magic_cmd='$OBJDUMP -f'
4827 darwin* | rhapsody*)
4828 lt_cv_deplibs_check_method=pass_all
4831 freebsd* | kfreebsd*-gnu | dragonfly*)
4832 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4835 # Not sure whether the presence of OpenBSD here was a mistake.
4836 # Let's accept both of them until this is cleared up.
4837 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4838 lt_cv_file_magic_cmd=/usr/bin/file
4839 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4843 lt_cv_deplibs_check_method=pass_all
4848 lt_cv_deplibs_check_method=pass_all
4851 hpux10.20* | hpux11*)
4852 lt_cv_file_magic_cmd=/usr/bin/file
4855 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4856 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4859 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]'
4860 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4863 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4864 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4870 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4871 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4874 irix5* | irix6* | nonstopux*)
4876 *-32|*"-32 ") libmagic=32-bit;;
4877 *-n32|*"-n32 ") libmagic=N32;;
4878 *-64|*"-64 ") libmagic=64-bit;;
4879 *) libmagic=never-match;;
4881 lt_cv_deplibs_check_method=pass_all
4884 # This must be Linux ELF.
4886 lt_cv_deplibs_check_method=pass_all
4889 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4890 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4899 lt_cv_file_magic_cmd=/usr/bin/file
4900 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4904 lt_cv_deplibs_check_method=unknown
4908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4915 osf3* | osf4* | osf5*)
4916 lt_cv_deplibs_check_method=pass_all
4920 lt_cv_deplibs_check_method=pass_all
4924 case $host_vendor in
4926 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]'
4927 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4930 lt_cv_deplibs_check_method=pass_all
4933 lt_cv_file_magic_cmd='/bin/file'
4934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4937 lt_cv_file_magic_cmd='/bin/file'
4938 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4939 lt_cv_file_magic_test_file=/lib/libc.so
4942 lt_cv_deplibs_check_method=pass_all
4945 lt_cv_deplibs_check_method=pass_all
4950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4951 lt_cv_deplibs_check_method=pass_all
4956 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4957 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4958 file_magic_cmd=$lt_cv_file_magic_cmd
4959 deplibs_check_method=$lt_cv_deplibs_check_method
4960 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4965 # If no C compiler was specified, use CC.
4968 # If no C compiler flags were specified, use CFLAGS.
4969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4971 # Allow CC to be a program name with arguments.
4974 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4975 if test "${enable_libtool_lock+set}" = set; then
4976 enableval="$enable_libtool_lock"
4979 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4981 # Some flags need to be propagated to the compiler or linker for good
4985 # Find out which ABI we are using.
4986 echo 'int i;' > conftest.$ac_ext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988 (eval $ac_compile) 2>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; then
4992 case `/usr/bin/file conftest.$ac_objext` in
5004 # Find out which ABI we are using.
5005 echo '#line 5005 "configure"' > conftest.$ac_ext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; then
5011 if test "$lt_cv_prog_gnu_ld" = yes; then
5012 case `/usr/bin/file conftest.$ac_objext` in
5014 LD="${LD-ld} -melf32bsmip"
5017 LD="${LD-ld} -melf32bmipn32"
5020 LD="${LD-ld} -melf64bmip"
5024 case `/usr/bin/file conftest.$ac_objext` in
5040 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5041 # Find out which ABI we are using.
5042 echo 'int i;' > conftest.$ac_ext
5043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044 (eval $ac_compile) 2>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; then
5048 case `/usr/bin/file conftest.o` in
5052 LD="${LD-ld} -m elf_i386"
5054 ppc64-*linux*|powerpc64-*linux*)
5055 LD="${LD-ld} -m elf32ppclinux"
5058 LD="${LD-ld} -m elf_s390"
5061 LD="${LD-ld} -m elf32_sparc"
5068 LD="${LD-ld} -m elf_x86_64"
5070 ppc*-*linux*|powerpc*-*linux*)
5071 LD="${LD-ld} -m elf64ppc"
5074 LD="${LD-ld} -m elf64_s390"
5077 LD="${LD-ld} -m elf64_sparc"
5087 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5088 SAVE_CFLAGS="$CFLAGS"
5089 CFLAGS="$CFLAGS -belf"
5090 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5091 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5092 if test "${lt_cv_cc_needs_belf+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118 (eval $ac_link) 2>conftest.er1
5120 grep -v '^ *+' conftest.er1 >conftest.err
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } &&
5125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; } &&
5131 { ac_try='test -s conftest$ac_exeext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 lt_cv_cc_needs_belf=yes
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 lt_cv_cc_needs_belf=no
5144 rm -f conftest.err conftest.$ac_objext \
5145 conftest$ac_exeext conftest.$ac_ext
5147 ac_cpp='$CPP $CPPFLAGS'
5148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5154 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5155 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5156 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5157 CFLAGS="$SAVE_CFLAGS"
5161 # Find out which ABI we are using.
5162 echo 'int i;' > conftest.$ac_ext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; then
5168 case `/usr/bin/file conftest.o` in
5170 case $lt_cv_prog_gnu_ld in
5171 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5172 *) LD="${LD-ld} -64" ;;
5183 need_locks="$enable_libtool_lock"
5187 for ac_header in dlfcn.h
5189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5191 echo "$as_me:$LINENO: checking for $ac_header" >&5
5192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5199 # Is the header compilable?
5200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5202 cat >conftest.$ac_ext <<_ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 $ac_includes_default
5209 #include <$ac_header>
5211 rm -f conftest.$ac_objext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213 (eval $ac_compile) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try='test -s conftest.$ac_objext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_header_compiler=yes
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5237 ac_header_compiler=no
5239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5241 echo "${ECHO_T}$ac_header_compiler" >&6
5243 # Is the header present?
5244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5246 cat >conftest.$ac_ext <<_ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 #include <$ac_header>
5254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5257 grep -v '^ *+' conftest.er1 >conftest.err
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } >/dev/null; then
5262 if test -s conftest.err; then
5263 ac_cpp_err=$ac_c_preproc_warn_flag
5264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5271 if test -z "$ac_cpp_err"; then
5272 ac_header_preproc=yes
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 ac_header_preproc=no
5279 rm -f conftest.err conftest.$ac_ext
5280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5281 echo "${ECHO_T}$ac_header_preproc" >&6
5283 # So? What about this header?
5284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5290 ac_header_preproc=yes
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5307 ## --------------------------------------- ##
5308 ## Report this to michael@metaparadigm.com ##
5309 ## --------------------------------------- ##
5312 sed "s/^/$as_me: WARNING: /" >&2
5315 echo "$as_me:$LINENO: checking for $ac_header" >&5
5316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 eval "$as_ac_Header=\$ac_header_preproc"
5322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5327 cat >>confdefs.h <<_ACEOF
5328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5336 ac_cpp='$CXXCPP $CPPFLAGS'
5337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5340 if test -n "$ac_tool_prefix"; then
5341 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5345 echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347 if test "${ac_cv_prog_CXX+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 if test -n "$CXX"; then
5351 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 if test -n "$CXX"; then
5371 echo "$as_me:$LINENO: result: $CXX" >&5
5372 echo "${ECHO_T}$CXX" >&6
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5378 test -n "$CXX" && break
5381 if test -z "$CXX"; then
5383 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5385 # Extract the first word of "$ac_prog", so it can be a program name with args.
5386 set dummy $ac_prog; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 if test -n "$ac_ct_CXX"; then
5393 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_ac_ct_CXX="$ac_prog"
5403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5412 if test -n "$ac_ct_CXX"; then
5413 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5414 echo "${ECHO_T}$ac_ct_CXX" >&6
5416 echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5420 test -n "$ac_ct_CXX" && break
5422 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5428 # Provide some information about the compiler.
5429 echo "$as_me:$LINENO:" \
5430 "checking for C++ compiler version" >&5
5431 ac_compiler=`set X $ac_compile; echo $2`
5432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5433 (eval $ac_compiler --version </dev/null >&5) 2>&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }
5437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5438 (eval $ac_compiler -v </dev/null >&5) 2>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }
5442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5443 (eval $ac_compiler -V </dev/null >&5) 2>&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }
5448 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5449 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5450 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5475 grep -v '^ *+' conftest.er1 >conftest.err
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; } &&
5486 { ac_try='test -s conftest.$ac_objext'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5503 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5504 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5505 GXX=`test $ac_compiler_gnu = yes && echo yes`
5506 ac_test_CXXFLAGS=${CXXFLAGS+set}
5507 ac_save_CXXFLAGS=$CXXFLAGS
5509 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5510 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5511 if test "${ac_cv_prog_cxx_g+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5529 rm -f conftest.$ac_objext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531 (eval $ac_compile) 2>conftest.er1
5533 grep -v '^ *+' conftest.er1 >conftest.err
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; } &&
5544 { ac_try='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_cv_prog_cxx_g=yes
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5559 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5560 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5561 if test "$ac_test_CXXFLAGS" = set; then
5562 CXXFLAGS=$ac_save_CXXFLAGS
5563 elif test $ac_cv_prog_cxx_g = yes; then
5564 if test "$GXX" = yes; then
5570 if test "$GXX" = yes; then
5576 for ac_declaration in \
5578 'extern "C" void std::exit (int) throw (); using std::exit;' \
5579 'extern "C" void std::exit (int); using std::exit;' \
5580 'extern "C" void exit (int) throw ();' \
5581 'extern "C" void exit (int);' \
5584 cat >conftest.$ac_ext <<_ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5644 rm -f conftest.$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; } &&
5659 { ac_try='test -s conftest.$ac_objext'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5674 if test -n "$ac_declaration"; then
5675 echo '#ifdef __cplusplus' >>confdefs.h
5676 echo $ac_declaration >>confdefs.h
5677 echo '#endif' >>confdefs.h
5681 ac_cpp='$CXXCPP $CPPFLAGS'
5682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5688 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5689 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5690 (test "X$CXX" != "Xg++"))) ; then
5692 ac_cpp='$CXXCPP $CPPFLAGS'
5693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5696 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5697 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5698 if test -z "$CXXCPP"; then
5699 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 # Double quotes because CXXCPP needs to be expanded
5703 for CXXCPP in "$CXX -E" "/lib/cpp"
5706 for ac_cxx_preproc_warn_flag in '' yes
5708 # Use a header file that comes with gcc, so configuring glibc
5709 # with a fresh cross-compiler works.
5710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5711 # <limits.h> exists even on freestanding compilers.
5712 # On the NeXT, cc -E runs the code through the compiler's parser,
5713 # not just through cpp. "Syntax error" is here to catch this case.
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5721 # include <limits.h>
5723 # include <assert.h>
5727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5730 grep -v '^ *+' conftest.er1 >conftest.err
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } >/dev/null; then
5735 if test -s conftest.err; then
5736 ac_cpp_err=$ac_cxx_preproc_warn_flag
5737 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5744 if test -z "$ac_cpp_err"; then
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 # Broken: fails on valid input.
5753 rm -f conftest.err conftest.$ac_ext
5755 # OK, works on sane cases. Now check whether non-existent headers
5756 # can be detected and how.
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 #include <ac_nonexistent.h>
5765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } >/dev/null; then
5773 if test -s conftest.err; then
5774 ac_cpp_err=$ac_cxx_preproc_warn_flag
5775 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5782 if test -z "$ac_cpp_err"; then
5783 # Broken: success on invalid input.
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5789 # Passes both tests.
5793 rm -f conftest.err conftest.$ac_ext
5796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5797 rm -f conftest.err conftest.$ac_ext
5798 if $ac_preproc_ok; then
5803 ac_cv_prog_CXXCPP=$CXXCPP
5806 CXXCPP=$ac_cv_prog_CXXCPP
5808 ac_cv_prog_CXXCPP=$CXXCPP
5810 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5811 echo "${ECHO_T}$CXXCPP" >&6
5813 for ac_cxx_preproc_warn_flag in '' yes
5815 # Use a header file that comes with gcc, so configuring glibc
5816 # with a fresh cross-compiler works.
5817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5818 # <limits.h> exists even on freestanding compilers.
5819 # On the NeXT, cc -E runs the code through the compiler's parser,
5820 # not just through cpp. "Syntax error" is here to catch this case.
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5828 # include <limits.h>
5830 # include <assert.h>
5834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5837 grep -v '^ *+' conftest.er1 >conftest.err
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } >/dev/null; then
5842 if test -s conftest.err; then
5843 ac_cpp_err=$ac_cxx_preproc_warn_flag
5844 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5851 if test -z "$ac_cpp_err"; then
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5857 # Broken: fails on valid input.
5860 rm -f conftest.err conftest.$ac_ext
5862 # OK, works on sane cases. Now check whether non-existent headers
5863 # can be detected and how.
5864 cat >conftest.$ac_ext <<_ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 #include <ac_nonexistent.h>
5872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5875 grep -v '^ *+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } >/dev/null; then
5880 if test -s conftest.err; then
5881 ac_cpp_err=$ac_cxx_preproc_warn_flag
5882 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5889 if test -z "$ac_cpp_err"; then
5890 # Broken: success on invalid input.
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 # Passes both tests.
5900 rm -f conftest.err conftest.$ac_ext
5903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5904 rm -f conftest.err conftest.$ac_ext
5905 if $ac_preproc_ok; then
5908 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5909 See \`config.log' for more details." >&5
5910 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5911 See \`config.log' for more details." >&2;}
5912 { (exit 1); exit 1; }; }
5916 ac_cpp='$CXXCPP $CPPFLAGS'
5917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5925 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5926 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5928 if test -n "$ac_tool_prefix"; then
5929 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5933 echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5935 if test "${ac_cv_prog_F77+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 if test -n "$F77"; then
5939 ac_cv_prog_F77="$F77" # Let the user override the test.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 if test -n "$F77"; then
5959 echo "$as_me:$LINENO: result: $F77" >&5
5960 echo "${ECHO_T}$F77" >&6
5962 echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6
5966 test -n "$F77" && break
5969 if test -z "$F77"; then
5971 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5973 # Extract the first word of "$ac_prog", so it can be a program name with args.
5974 set dummy $ac_prog; ac_word=$2
5975 echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5977 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 if test -n "$ac_ct_F77"; then
5981 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990 ac_cv_prog_ac_ct_F77="$ac_prog"
5991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6000 if test -n "$ac_ct_F77"; then
6001 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6002 echo "${ECHO_T}$ac_ct_F77" >&6
6004 echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6008 test -n "$ac_ct_F77" && break
6015 # Provide some information about the compiler.
6016 echo "$as_me:6016:" \
6017 "checking for Fortran 77 compiler version" >&5
6018 ac_compiler=`set X $ac_compile; echo $2`
6019 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6020 (eval $ac_compiler --version </dev/null >&5) 2>&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }
6024 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6025 (eval $ac_compiler -v </dev/null >&5) 2>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }
6029 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6030 (eval $ac_compiler -V </dev/null >&5) 2>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }
6036 # If we don't use `.F' as extension, the preprocessor is not run on the
6037 # input file. (Note that this only needs to work for GNU compilers.)
6040 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6041 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6042 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 cat >conftest.$ac_ext <<_ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>conftest.er1
6057 grep -v '^ *+' conftest.er1 >conftest.err
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; } &&
6068 { ac_try='test -s conftest.$ac_objext'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6082 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6085 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6086 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6088 ac_test_FFLAGS=${FFLAGS+set}
6089 ac_save_FFLAGS=$FFLAGS
6091 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6092 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6093 if test "${ac_cv_prog_f77_g+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 cat >conftest.$ac_ext <<_ACEOF
6102 rm -f conftest.$ac_objext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6104 (eval $ac_compile) 2>conftest.er1
6106 grep -v '^ *+' conftest.er1 >conftest.err
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; } &&
6117 { ac_try='test -s conftest.$ac_objext'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6123 ac_cv_prog_f77_g=yes
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6133 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6134 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6135 if test "$ac_test_FFLAGS" = set; then
6136 FFLAGS=$ac_save_FFLAGS
6137 elif test $ac_cv_prog_f77_g = yes; then
6138 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6144 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6151 G77=`test $ac_compiler_gnu = yes && echo yes`
6153 ac_cpp='$CPP $CPPFLAGS'
6154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6160 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6162 # find the maximum length of command line arguments
6163 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6164 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6165 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 # On DJGPP, this test can blow up pretty badly due to problems in libc
6174 # (any single argument exceeding 2000 bytes causes a buffer overrun
6175 # during glob expansion). Even if it were fixed, the result of this
6176 # check would be larger than it should be.
6177 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6181 # Under GNU Hurd, this test is not required because there is
6182 # no limit to the length of command line arguments.
6183 # Libtool will interpret -1 as no limit whatsoever
6184 lt_cv_sys_max_cmd_len=-1;
6188 # On Win9x/ME, this test blows up -- it succeeds, but takes
6189 # about 5 minutes as the teststring grows exponentially.
6190 # Worse, since 9x/ME are not pre-emptively multitasking,
6191 # you end up with a "frozen" computer, even though with patience
6192 # the test eventually succeeds (with a max line length of 256k).
6193 # Instead, let's just punt: use the minimum linelength reported by
6194 # all of the supported platforms: 8192 (on NT/2K/XP).
6195 lt_cv_sys_max_cmd_len=8192;
6199 # On AmigaOS with pdksh, this test takes hours, literally.
6200 # So we just punt and use a minimum line length of 8192.
6201 lt_cv_sys_max_cmd_len=8192;
6204 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6205 # This has been around since 386BSD, at least. Likely further.
6206 if test -x /sbin/sysctl; then
6207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208 elif test -x /usr/sbin/sysctl; then
6209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6213 # And add a safety zone
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6219 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220 lt_cv_sys_max_cmd_len=196608
6224 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6225 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6226 # nice to cause kernel panics so lets avoid the loop below.
6227 # First set a reasonable default.
6228 lt_cv_sys_max_cmd_len=16384
6230 if test -x /sbin/sysconfig; then
6231 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6232 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6237 lt_cv_sys_max_cmd_len=102400
6239 sysv5* | sco5v6* | sysv4.2uw2*)
6240 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6241 if test -n "$kargmax"; then
6242 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6244 lt_cv_sys_max_cmd_len=32768
6248 # If test is not a shell built-in, we'll probably end up computing a
6249 # maximum length that is only half of the actual maximum length, but
6251 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6252 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6253 = "XX$teststring") >/dev/null 2>&1 &&
6254 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6255 lt_cv_sys_max_cmd_len=$new_result &&
6256 test $i != 17 # 1/2 MB should be enough
6259 teststring=$teststring$teststring
6262 # Add a significant safety factor because C++ compilers can tack on massive
6263 # amounts of additional arguments before passing them to the linker.
6264 # It appears as though 1/2 is a usable value.
6265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6271 if test -n $lt_cv_sys_max_cmd_len ; then
6272 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6273 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6275 echo "$as_me:$LINENO: result: none" >&5
6276 echo "${ECHO_T}none" >&6
6282 # Check for command to grab the raw symbol name followed by C symbol from nm.
6283 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6284 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6285 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 # These are sane defaults that work on at least a few old systems.
6290 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6292 # Character class describing NM global symbol codes.
6293 symcode='[BCDEGRST]'
6295 # Regexp to match symbols that can be accessed directly from C.
6296 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6298 # Transform an extracted symbol line into a proper C declaration
6299 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6301 # Transform an extracted symbol line into symbol name and symbol address
6302 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'"
6304 # Define system-specific variables.
6309 cygwin* | mingw* | pw32*)
6310 symcode='[ABCDGISTW]'
6312 hpux*) # Its linker distinguishes data from code symbols
6313 if test "$host_cpu" = ia64; then
6314 symcode='[ABCDEGRST]'
6316 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6317 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'"
6320 if test "$host_cpu" = ia64; then
6321 symcode='[ABCDGIRSTW]'
6322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6323 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'"
6327 symcode='[BCDEGRST]'
6330 symcode='[BCDEGQRST]'
6341 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6349 # Handle CRLF in mingw tool chain
6353 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6357 # If we're using GNU nm, then use its standard symbol codes.
6358 case `$NM -V 2>&1` in
6359 *GNU* | *'with BFD'*)
6360 symcode='[ABCDGIRSTW]' ;;
6363 # Try without a prefix undercore, then with it.
6364 for ac_symprfx in "" "_"; do
6366 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6367 symxfrm="\\1 $ac_symprfx\\2 \\2"
6369 # Write the raw and C identifiers.
6370 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6372 # Check to see that the pipe works correctly.
6376 cat > conftest.$ac_ext <<EOF
6381 void nm_test_func(){}
6385 int main(){nm_test_var='a';nm_test_func();return(0);}
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; then
6393 # Now try to grab the symbols.
6395 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6396 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && test -s "$nlist"; then
6400 # Try sorting and uniquifying the output.
6401 if sort "$nlist" | uniq > "$nlist"T; then
6402 mv -f "$nlist"T "$nlist"
6407 # Make sure that we snagged all the symbols we need.
6408 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6409 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6410 cat <<EOF > conftest.$ac_ext
6416 # Now generate the symbol file.
6417 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6419 cat <<EOF >> conftest.$ac_ext
6420 #if defined (__STDC__) && __STDC__
6421 # define lt_ptr_t void *
6423 # define lt_ptr_t char *
6427 /* The mapping between symbol names and symbols. */
6432 lt_preloaded_symbols[] =
6435 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6436 cat <<\EOF >> conftest.$ac_ext
6444 # Now try linking the two files.
6445 mv conftest.$ac_objext conftstm.$ac_objext
6446 lt_save_LIBS="$LIBS"
6447 lt_save_CFLAGS="$CFLAGS"
6448 LIBS="conftstm.$ac_objext"
6449 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6457 LIBS="$lt_save_LIBS"
6458 CFLAGS="$lt_save_CFLAGS"
6460 echo "cannot find nm_test_func in $nlist" >&5
6463 echo "cannot find nm_test_var in $nlist" >&5
6466 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6469 echo "$progname: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6472 rm -f conftest* conftst*
6474 # Do not use the global_symbol_pipe unless it works.
6475 if test "$pipe_works" = yes; then
6478 lt_cv_sys_global_symbol_pipe=
6484 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6485 lt_cv_sys_global_symbol_to_cdecl=
6487 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6488 echo "$as_me:$LINENO: result: failed" >&5
6489 echo "${ECHO_T}failed" >&6
6491 echo "$as_me:$LINENO: result: ok" >&5
6492 echo "${ECHO_T}ok" >&6
6495 echo "$as_me:$LINENO: checking for objdir" >&5
6496 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6497 if test "${lt_cv_objdir+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 rm -f .libs 2>/dev/null
6501 mkdir .libs 2>/dev/null
6502 if test -d .libs; then
6505 # MS-DOS does not allow filenames that begin with a dot.
6508 rmdir .libs 2>/dev/null
6510 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6511 echo "${ECHO_T}$lt_cv_objdir" >&6
6512 objdir=$lt_cv_objdir
6520 # AIX sometimes has problems with the GCC collect2 program. For some
6521 # reason, if we set the COLLECT_NAMES environment variable, the problems
6522 # vanish in a puff of smoke.
6523 if test "X${COLLECT_NAMES+set}" != Xset; then
6525 export COLLECT_NAMES
6530 # Sed substitution that helps us do robust quoting. It backslashifies
6531 # metacharacters that are still active within double-quoted strings.
6532 Xsed='sed -e 1s/^X//'
6533 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6535 # Same as above, but do not quote variable references.
6536 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6538 # Sed substitution to delay expansion of an escaped shell variable in a
6539 # double_quote_subst'ed string.
6540 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6542 # Sed substitution to avoid accidental globbing in evaled expressions
6543 no_glob_subst='s/\*/\\\*/g'
6549 default_ofile=libtool
6550 can_build_shared=yes
6552 # All known linkers require a `.a' archive for static linking (except MSVC,
6553 # which needs '.lib').
6555 ltmain="$ac_aux_dir/ltmain.sh"
6556 ofile="$default_ofile"
6557 with_gnu_ld="$lt_cv_prog_gnu_ld"
6559 if test -n "$ac_tool_prefix"; then
6560 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6561 set dummy ${ac_tool_prefix}ar; ac_word=$2
6562 echo "$as_me:$LINENO: checking for $ac_word" >&5
6563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6564 if test "${ac_cv_prog_AR+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 if test -n "$AR"; then
6568 ac_cv_prog_AR="$AR" # Let the user override the test.
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_prog_AR="${ac_tool_prefix}ar"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 if test -n "$AR"; then
6588 echo "$as_me:$LINENO: result: $AR" >&5
6589 echo "${ECHO_T}$AR" >&6
6591 echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6
6596 if test -z "$ac_cv_prog_AR"; then
6598 # Extract the first word of "ar", so it can be a program name with args.
6599 set dummy ar; ac_word=$2
6600 echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6602 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 if test -n "$ac_ct_AR"; then
6606 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6615 ac_cv_prog_ac_ct_AR="ar"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6625 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6626 if test -n "$ac_ct_AR"; then
6627 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6628 echo "${ECHO_T}$ac_ct_AR" >&6
6630 echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6642 echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6644 if test "${ac_cv_prog_RANLIB+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 if test -n "$RANLIB"; then
6648 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 RANLIB=$ac_cv_prog_RANLIB
6667 if test -n "$RANLIB"; then
6668 echo "$as_me:$LINENO: result: $RANLIB" >&5
6669 echo "${ECHO_T}$RANLIB" >&6
6671 echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6
6676 if test -z "$ac_cv_prog_RANLIB"; then
6677 ac_ct_RANLIB=$RANLIB
6678 # Extract the first word of "ranlib", so it can be a program name with args.
6679 set dummy ranlib; ac_word=$2
6680 echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6682 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 if test -n "$ac_ct_RANLIB"; then
6686 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_ac_ct_RANLIB="ranlib"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6705 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6706 if test -n "$ac_ct_RANLIB"; then
6707 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6708 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6710 echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6
6714 RANLIB=$ac_ct_RANLIB
6716 RANLIB="$ac_cv_prog_RANLIB"
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}strip; ac_word=$2
6722 echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6724 if test "${ac_cv_prog_STRIP+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 if test -n "$STRIP"; then
6728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 STRIP=$ac_cv_prog_STRIP
6747 if test -n "$STRIP"; then
6748 echo "$as_me:$LINENO: result: $STRIP" >&5
6749 echo "${ECHO_T}$STRIP" >&6
6751 echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6
6756 if test -z "$ac_cv_prog_STRIP"; then
6758 # Extract the first word of "strip", so it can be a program name with args.
6759 set dummy strip; ac_word=$2
6760 echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6762 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test -n "$ac_ct_STRIP"; then
6766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_ac_ct_STRIP="strip"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6786 if test -n "$ac_ct_STRIP"; then
6787 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6788 echo "${ECHO_T}$ac_ct_STRIP" >&6
6790 echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6
6796 STRIP="$ac_cv_prog_STRIP"
6801 old_CFLAGS="$CFLAGS"
6803 # Set sane defaults for various variables
6804 test -z "$AR" && AR=ar
6805 test -z "$AR_FLAGS" && AR_FLAGS=cru
6806 test -z "$AS" && AS=as
6807 test -z "$CC" && CC=cc
6808 test -z "$LTCC" && LTCC=$CC
6809 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6810 test -z "$DLLTOOL" && DLLTOOL=dlltool
6811 test -z "$LD" && LD=ld
6812 test -z "$LN_S" && LN_S="ln -s"
6813 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6814 test -z "$NM" && NM=nm
6815 test -z "$SED" && SED=sed
6816 test -z "$OBJDUMP" && OBJDUMP=objdump
6817 test -z "$RANLIB" && RANLIB=:
6818 test -z "$STRIP" && STRIP=:
6819 test -z "$ac_objext" && ac_objext=o
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6826 if test -n "$RANLIB"; then
6829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6835 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6838 for cc_temp in $compiler""; do
6840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6846 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6849 # Only perform the check for file, if the check method requires it
6850 case $deplibs_check_method in
6852 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6853 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6854 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6855 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6863 lt_save_MAGIC_CMD="$MAGIC_CMD"
6864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6865 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6866 for ac_dir in $ac_dummy; do
6868 test -z "$ac_dir" && ac_dir=.
6869 if test -f $ac_dir/${ac_tool_prefix}file; then
6870 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6871 if test -n "$file_magic_test_file"; then
6872 case $deplibs_check_method in
6874 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6876 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6877 $EGREP "$file_magic_regex" > /dev/null; then
6882 *** Warning: the command libtool uses to detect shared libraries,
6883 *** $file_magic_cmd, produces output that libtool cannot recognize.
6884 *** The result is that libtool may fail to recognize shared libraries
6885 *** as such. This will affect the creation of libtool libraries that
6886 *** depend on shared libraries, but programs linked with such libtool
6887 *** libraries will work regardless of this problem. Nevertheless, you
6888 *** may want to report the problem to your system manager and/or to
6889 *** bug-libtool@gnu.org
6899 MAGIC_CMD="$lt_save_MAGIC_CMD"
6904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6905 if test -n "$MAGIC_CMD"; then
6906 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6907 echo "${ECHO_T}$MAGIC_CMD" >&6
6909 echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6
6913 if test -z "$lt_cv_path_MAGIC_CMD"; then
6914 if test -n "$ac_tool_prefix"; then
6915 echo "$as_me:$LINENO: checking for file" >&5
6916 echo $ECHO_N "checking for file... $ECHO_C" >&6
6917 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6925 lt_save_MAGIC_CMD="$MAGIC_CMD"
6926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6928 for ac_dir in $ac_dummy; do
6930 test -z "$ac_dir" && ac_dir=.
6931 if test -f $ac_dir/file; then
6932 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6933 if test -n "$file_magic_test_file"; then
6934 case $deplibs_check_method in
6936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6939 $EGREP "$file_magic_regex" > /dev/null; then
6944 *** Warning: the command libtool uses to detect shared libraries,
6945 *** $file_magic_cmd, produces output that libtool cannot recognize.
6946 *** The result is that libtool may fail to recognize shared libraries
6947 *** as such. This will affect the creation of libtool libraries that
6948 *** depend on shared libraries, but programs linked with such libtool
6949 *** libraries will work regardless of this problem. Nevertheless, you
6950 *** may want to report the problem to your system manager and/or to
6951 *** bug-libtool@gnu.org
6961 MAGIC_CMD="$lt_save_MAGIC_CMD"
6966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6967 if test -n "$MAGIC_CMD"; then
6968 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6969 echo "${ECHO_T}$MAGIC_CMD" >&6
6971 echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6
6987 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6988 if test "${enable_libtool_lock+set}" = set; then
6989 enableval="$enable_libtool_lock"
6992 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6995 # Check whether --with-pic or --without-pic was given.
6996 if test "${with_pic+set}" = set; then
7002 test -z "$pic_mode" && pic_mode=default
7004 # Use C for the default configuration in the libtool script
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014 # Source file extension for C test sources.
7017 # Object file extension for compiled C test sources.
7021 # Code to be used in simple compile tests
7022 lt_simple_compile_test_code="int some_variable = 0;\n"
7024 # Code to be used in simple link tests
7025 lt_simple_link_test_code='int main(){return(0);}\n'
7028 # If no C compiler was specified, use CC.
7031 # If no C compiler flags were specified, use CFLAGS.
7032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7034 # Allow CC to be a program name with arguments.
7038 # save warnings/boilerplate of simple test code
7039 ac_outfile=conftest.$ac_objext
7040 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7041 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7042 _lt_compiler_boilerplate=`cat conftest.err`
7045 ac_outfile=conftest.$ac_objext
7046 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7047 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7048 _lt_linker_boilerplate=`cat conftest.err`
7053 lt_prog_compiler_no_builtin_flag=
7055 if test "$GCC" = yes; then
7056 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7059 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7060 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7061 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 lt_cv_prog_compiler_rtti_exceptions=no
7065 ac_outfile=conftest.$ac_objext
7066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7067 lt_compiler_flag="-fno-rtti -fno-exceptions"
7068 # Insert the option either (1) after the last *FLAGS variable, or
7069 # (2) before a word containing "conftest.", or (3) at the end.
7070 # Note that $ac_compile itself does not contain backslashes and begins
7071 # with a dollar sign (not a hyphen), so the echo should work correctly.
7072 # The option is referenced via a variable to avoid confusing sed.
7073 lt_compile=`echo "$ac_compile" | $SED \
7074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7076 -e 's:$: $lt_compiler_flag:'`
7077 (eval echo "\"\$as_me:7077: $lt_compile\"" >&5)
7078 (eval "$lt_compile" 2>conftest.err)
7080 cat conftest.err >&5
7081 echo "$as_me:7081: \$? = $ac_status" >&5
7082 if (exit $ac_status) && test -s "$ac_outfile"; then
7083 # The compiler can only warn and ignore the option if not recognized
7084 # So say no if there are warnings other than the usual output.
7085 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7088 lt_cv_prog_compiler_rtti_exceptions=yes
7094 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7095 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7097 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7098 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7105 lt_prog_compiler_wl=
7106 lt_prog_compiler_pic=
7107 lt_prog_compiler_static=
7109 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7110 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7112 if test "$GCC" = yes; then
7113 lt_prog_compiler_wl='-Wl,'
7114 lt_prog_compiler_static='-static'
7118 # All AIX code is PIC.
7119 if test "$host_cpu" = ia64; then
7120 # AIX 5 now supports IA64 processor
7121 lt_prog_compiler_static='-Bstatic'
7126 # FIXME: we need at least 68020 code to build shared libraries, but
7127 # adding the `-m68020' flag to GCC prevents building anything better,
7129 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7132 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7133 # PIC is the default for these OSes.
7136 mingw* | pw32* | os2*)
7137 # This hack is so that the source file can tell whether it is being
7138 # built for inclusion in a dll (and should export symbols for example).
7139 lt_prog_compiler_pic='-DDLL_EXPORT'
7142 darwin* | rhapsody*)
7143 # PIC is the default on this platform
7144 # Common symbols not allowed in MH_DYLIB files
7145 lt_prog_compiler_pic='-fno-common'
7149 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7150 # Instead, we relocate shared libraries at runtime.
7154 # Just because we use GCC doesn't mean we suddenly get shared libraries
7155 # on systems that don't support them.
7156 lt_prog_compiler_can_build_shared=no
7161 if test -d /usr/nec; then
7162 lt_prog_compiler_pic=-Kconform_pic
7167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7174 lt_prog_compiler_pic='-fPIC'
7180 lt_prog_compiler_pic='-fPIC'
7184 # PORTME Check for flag to pass linker flags through the system compiler.
7187 lt_prog_compiler_wl='-Wl,'
7188 if test "$host_cpu" = ia64; then
7189 # AIX 5 now supports IA64 processor
7190 lt_prog_compiler_static='-Bstatic'
7192 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7196 # PIC is the default on this platform
7197 # Common symbols not allowed in MH_DYLIB files
7198 case $cc_basename in
7200 lt_prog_compiler_pic='-qnocommon'
7201 lt_prog_compiler_wl='-Wl,'
7206 mingw* | pw32* | os2*)
7207 # This hack is so that the source file can tell whether it is being
7208 # built for inclusion in a dll (and should export symbols for example).
7209 lt_prog_compiler_pic='-DDLL_EXPORT'
7212 hpux9* | hpux10* | hpux11*)
7213 lt_prog_compiler_wl='-Wl,'
7214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7221 lt_prog_compiler_pic='+Z'
7224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7225 lt_prog_compiler_static='${wl}-a ${wl}archive'
7228 irix5* | irix6* | nonstopux*)
7229 lt_prog_compiler_wl='-Wl,'
7230 # PIC (with -KPIC) is the default.
7231 lt_prog_compiler_static='-non_shared'
7235 lt_prog_compiler_pic='-KPIC'
7236 lt_prog_compiler_static='-Bstatic'
7240 case $cc_basename in
7242 lt_prog_compiler_wl='-Wl,'
7243 lt_prog_compiler_pic='-KPIC'
7244 lt_prog_compiler_static='-static'
7246 pgcc* | pgf77* | pgf90* | pgf95*)
7247 # Portland Group compilers (*not* the Pentium gcc compiler,
7248 # which looks to be a dead project)
7249 lt_prog_compiler_wl='-Wl,'
7250 lt_prog_compiler_pic='-fpic'
7251 lt_prog_compiler_static='-Bstatic'
7254 lt_prog_compiler_wl='-Wl,'
7255 # All Alpha code is PIC.
7256 lt_prog_compiler_static='-non_shared'
7261 osf3* | osf4* | osf5*)
7262 lt_prog_compiler_wl='-Wl,'
7263 # All OSF/1 code is PIC.
7264 lt_prog_compiler_static='-non_shared'
7268 lt_prog_compiler_pic='-KPIC'
7269 lt_prog_compiler_static='-Bstatic'
7270 case $cc_basename in
7272 lt_prog_compiler_wl='-Qoption ld ';;
7274 lt_prog_compiler_wl='-Wl,';;
7279 lt_prog_compiler_wl='-Qoption ld '
7280 lt_prog_compiler_pic='-PIC'
7281 lt_prog_compiler_static='-Bstatic'
7284 sysv4 | sysv4.2uw2* | sysv4.3*)
7285 lt_prog_compiler_wl='-Wl,'
7286 lt_prog_compiler_pic='-KPIC'
7287 lt_prog_compiler_static='-Bstatic'
7291 if test -d /usr/nec ;then
7292 lt_prog_compiler_pic='-Kconform_pic'
7293 lt_prog_compiler_static='-Bstatic'
7297 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7298 lt_prog_compiler_wl='-Wl,'
7299 lt_prog_compiler_pic='-KPIC'
7300 lt_prog_compiler_static='-Bstatic'
7304 lt_prog_compiler_wl='-Wl,'
7305 lt_prog_compiler_can_build_shared=no
7309 lt_prog_compiler_pic='-pic'
7310 lt_prog_compiler_static='-Bstatic'
7314 lt_prog_compiler_can_build_shared=no
7319 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7320 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7323 # Check to make sure the PIC flag actually works.
7325 if test -n "$lt_prog_compiler_pic"; then
7327 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7328 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7329 if test "${lt_prog_compiler_pic_works+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 lt_prog_compiler_pic_works=no
7333 ac_outfile=conftest.$ac_objext
7334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7335 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7336 # Insert the option either (1) after the last *FLAGS variable, or
7337 # (2) before a word containing "conftest.", or (3) at the end.
7338 # Note that $ac_compile itself does not contain backslashes and begins
7339 # with a dollar sign (not a hyphen), so the echo should work correctly.
7340 # The option is referenced via a variable to avoid confusing sed.
7341 lt_compile=`echo "$ac_compile" | $SED \
7342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7344 -e 's:$: $lt_compiler_flag:'`
7345 (eval echo "\"\$as_me:7345: $lt_compile\"" >&5)
7346 (eval "$lt_compile" 2>conftest.err)
7348 cat conftest.err >&5
7349 echo "$as_me:7349: \$? = $ac_status" >&5
7350 if (exit $ac_status) && test -s "$ac_outfile"; then
7351 # The compiler can only warn and ignore the option if not recognized
7352 # So say no if there are warnings other than the usual output.
7353 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7356 lt_prog_compiler_pic_works=yes
7362 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7363 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7365 if test x"$lt_prog_compiler_pic_works" = xyes; then
7366 case $lt_prog_compiler_pic in
7368 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7371 lt_prog_compiler_pic=
7372 lt_prog_compiler_can_build_shared=no
7377 # For platforms which do not support PIC, -DPIC is meaningless:
7379 lt_prog_compiler_pic=
7382 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7387 # Check to make sure the static flag actually works.
7389 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7390 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7391 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7392 if test "${lt_prog_compiler_static_works+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 lt_prog_compiler_static_works=no
7396 save_LDFLAGS="$LDFLAGS"
7397 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7398 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7399 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7400 # The linker can only warn and ignore the option if not recognized
7401 # So say no if there are warnings
7402 if test -s conftest.err; then
7403 # Append any errors to the config.log.
7404 cat conftest.err 1>&5
7405 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7407 if diff conftest.exp conftest.er2 >/dev/null; then
7408 lt_prog_compiler_static_works=yes
7411 lt_prog_compiler_static_works=yes
7415 LDFLAGS="$save_LDFLAGS"
7418 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7419 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7421 if test x"$lt_prog_compiler_static_works" = xyes; then
7424 lt_prog_compiler_static=
7428 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7429 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7430 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 lt_cv_prog_compiler_c_o=no
7434 $rm -r conftest 2>/dev/null
7438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7440 lt_compiler_flag="-o out/conftest2.$ac_objext"
7441 # Insert the option either (1) after the last *FLAGS variable, or
7442 # (2) before a word containing "conftest.", or (3) at the end.
7443 # Note that $ac_compile itself does not contain backslashes and begins
7444 # with a dollar sign (not a hyphen), so the echo should work correctly.
7445 lt_compile=`echo "$ac_compile" | $SED \
7446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7448 -e 's:$: $lt_compiler_flag:'`
7449 (eval echo "\"\$as_me:7449: $lt_compile\"" >&5)
7450 (eval "$lt_compile" 2>out/conftest.err)
7452 cat out/conftest.err >&5
7453 echo "$as_me:7453: \$? = $ac_status" >&5
7454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7456 # The compiler can only warn and ignore the option if not recognized
7457 # So say no if there are warnings
7458 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7459 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7460 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7461 lt_cv_prog_compiler_c_o=yes
7466 # SGI C++ compiler will create directory out/ii_files/ for
7467 # template instantiation
7468 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7469 $rm out/* && rmdir out
7475 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7476 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7479 hard_links="nottested"
7480 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7481 # do not overwrite the value of need_locks provided by the user
7482 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7483 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7488 ln conftest.a conftest.b 2>&5 || hard_links=no
7489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7490 echo "$as_me:$LINENO: result: $hard_links" >&5
7491 echo "${ECHO_T}$hard_links" >&6
7492 if test "$hard_links" = no; then
7493 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7494 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7501 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7502 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7505 allow_undefined_flag=
7506 enable_shared_with_static_runtimes=no
7508 archive_expsym_cmds=
7509 old_archive_From_new_cmds=
7510 old_archive_from_expsyms_cmds=
7511 export_dynamic_flag_spec=
7512 whole_archive_flag_spec=
7513 thread_safe_flag_spec=
7514 hardcode_libdir_flag_spec=
7515 hardcode_libdir_flag_spec_ld=
7516 hardcode_libdir_separator=
7519 hardcode_shlibpath_var=unsupported
7520 link_all_deplibs=unknown
7521 hardcode_automatic=no
7524 always_export_symbols=no
7525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7526 # include_expsyms should be a list of space-separated symbols to be *always*
7527 # included in the symbol list
7529 # exclude_expsyms can be an extended regexp of symbols to exclude
7530 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7531 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7532 # as well as any symbol that contains `d'.
7533 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7534 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7535 # platforms (ab)use it in PIC code, but their linkers get confused if
7536 # the symbol is explicitly referenced. Since portable code cannot
7537 # rely on this symbol name, it's probably fine to never include it in
7538 # preloaded symbol tables.
7539 extract_expsyms_cmds=
7540 # Just being paranoid about ensuring that cc_basename is set.
7541 for cc_temp in $compiler""; do
7543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7549 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7552 cygwin* | mingw* | pw32*)
7553 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7554 # When not using gcc, we currently assume that we are using
7555 # Microsoft Visual C++.
7556 if test "$GCC" != yes; then
7561 # we just hope/assume this is gcc and not c89 (= MSVC++)
7570 if test "$with_gnu_ld" = yes; then
7571 # If archive_cmds runs LD, not CC, wlarc should be empty
7574 # Set some defaults for GNU ld with shared library support. These
7575 # are reset later if shared libraries are not supported. Putting them
7576 # here allows them to be overridden if necessary.
7577 runpath_var=LD_RUN_PATH
7578 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7579 export_dynamic_flag_spec='${wl}--export-dynamic'
7580 # ancient GNU ld didn't support --whole-archive et. al.
7581 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7582 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7584 whole_archive_flag_spec=
7586 supports_anon_versioning=no
7587 case `$LD -v 2>/dev/null` in
7588 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7589 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7590 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7591 *\ 2.11.*) ;; # other 2.11 versions
7592 *) supports_anon_versioning=yes ;;
7595 # See if GNU ld supports shared libraries.
7597 aix3* | aix4* | aix5*)
7598 # On AIX/PPC, the GNU linker is very broken
7599 if test "$host_cpu" != ia64; then
7603 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7604 *** to be unable to reliably create shared libraries on AIX.
7605 *** Therefore, libtool is disabling shared libraries support. If you
7606 *** really care for shared libraries, you may want to modify your PATH
7607 *** so that a non-GNU linker is found, and then restart.
7614 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)'
7615 hardcode_libdir_flag_spec='-L$libdir'
7616 hardcode_minus_L=yes
7618 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7619 # that the semantics of dynamic libraries on AmigaOS, at least up
7620 # to version 4, is to share data among multiple programs linked
7621 # with the same dynamic library. Since this doesn't match the
7622 # behavior of shared libraries on other platforms, we can't use
7628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7629 allow_undefined_flag=unsupported
7630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7631 # support --undefined. This deserves some investigation. FIXME
7632 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7638 cygwin* | mingw* | pw32*)
7639 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7640 # as there is no search path for DLLs.
7641 hardcode_libdir_flag_spec='-L$libdir'
7642 allow_undefined_flag=unsupported
7643 always_export_symbols=no
7644 enable_shared_with_static_runtimes=yes
7645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7647 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7649 # If the export-symbols file already is a .def file (1st line
7650 # is EXPORTS), use it as is; otherwise, prepend...
7651 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7652 cp $export_symbols $output_objdir/$soname.def;
7654 echo EXPORTS > $output_objdir/$soname.def;
7655 cat $export_symbols >> $output_objdir/$soname.def;
7657 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7665 hardcode_shlibpath_var=no
7666 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7667 export_dynamic_flag_spec='${wl}-E'
7668 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7669 # Instead, shared libraries are loaded at an image base (0x10000000 by
7670 # default) and relocated if they conflict, which is a slow very memory
7671 # consuming and fragmenting process. To avoid this, we pick a random,
7672 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7673 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7675 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7681 case $cc_basename,$host_cpu in
7682 pgcc*) # Portland Group C compiler
7683 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7684 tmp_addflag=' $pic_flag'
7686 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7687 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7688 tmp_addflag=' $pic_flag -Mnomain' ;;
7689 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7690 tmp_addflag=' -i_dynamic' ;;
7691 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7692 tmp_addflag=' -i_dynamic -nofor_main' ;;
7693 ifc* | ifort*) # Intel Fortran compiler
7694 tmp_addflag=' -nofor_main' ;;
7696 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7698 if test $supports_anon_versioning = yes; then
7699 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7701 $echo "local: *; };" >> $output_objdir/$libname.ver~
7702 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7710 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7712 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7721 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7725 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7726 *** create shared libraries on Solaris systems. Therefore, libtool
7727 *** is disabling shared libraries support. We urge you to upgrade GNU
7728 *** binutils to release 2.9.1 or newer. Another option is to modify
7729 *** your PATH or compiler configuration so that the native linker is
7730 *** used, and then restart.
7733 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7735 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7742 case `$LD -v 2>&1` in
7743 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7747 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7748 *** reliably create shared libraries on SCO systems. Therefore, libtool
7749 *** is disabling shared libraries support. We urge you to upgrade GNU
7750 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7751 *** your PATH or compiler configuration so that the native linker is
7752 *** used, and then restart.
7757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7758 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7769 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7772 hardcode_shlibpath_var=no
7776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7785 if test "$ld_shlibs" = no; then
7787 hardcode_libdir_flag_spec=
7788 export_dynamic_flag_spec=
7789 whole_archive_flag_spec=
7792 # PORTME fill in a description of your system's linker (not GNU ld)
7795 allow_undefined_flag=unsupported
7796 always_export_symbols=yes
7797 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'
7798 # Note: this linker hardcodes the directories in LIBPATH if there
7799 # are no directories specified by -L.
7800 hardcode_minus_L=yes
7801 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7802 # Neither direct hardcoding nor static linking is supported with a
7804 hardcode_direct=unsupported
7809 if test "$host_cpu" = ia64; then
7810 # On IA64, the linker does run time linking by default, so we don't
7811 # have to do anything special.
7812 aix_use_runtimelinking=no
7813 exp_sym_flag='-Bexport'
7816 # If we're using GNU nm, then we don't want the "-C" option.
7817 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7818 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7819 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'
7821 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'
7823 aix_use_runtimelinking=no
7825 # Test if we are trying to use run time linking or normal
7826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7827 # need to do runtime linking.
7828 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7829 for ld_flag in $LDFLAGS; do
7830 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7831 aix_use_runtimelinking=yes
7838 exp_sym_flag='-bexport'
7839 no_entry_flag='-bnoentry'
7842 # When large executables or shared objects are built, AIX ld can
7843 # have problems creating the table of contents. If linking a library
7844 # or program results in "error TOC overflow" add -mminimal-toc to
7845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7850 hardcode_libdir_separator=':'
7851 link_all_deplibs=yes
7853 if test "$GCC" = yes; then
7854 case $host_os in aix4.[012]|aix4.[012].*)
7855 # We only want to do this on AIX 4.2 and lower, the check
7856 # below for broken collect2 doesn't work under 4.3+
7857 collect2name=`${CC} -print-prog-name=collect2`
7858 if test -f "$collect2name" && \
7859 strings "$collect2name" | grep resolve_lib_name >/dev/null
7861 # We have reworked collect2
7864 # We have old collect2
7865 hardcode_direct=unsupported
7866 # It fails to find uninstalled libraries when the uninstalled
7867 # path is not listed in the libpath. Setting hardcode_minus_L
7868 # to unsupported forces relinking
7869 hardcode_minus_L=yes
7870 hardcode_libdir_flag_spec='-L$libdir'
7871 hardcode_libdir_separator=
7875 shared_flag='-shared'
7876 if test "$aix_use_runtimelinking" = yes; then
7877 shared_flag="$shared_flag "'${wl}-G'
7881 if test "$host_cpu" = ia64; then
7882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7883 # chokes on -Wl,-G. The following line is correct:
7886 if test "$aix_use_runtimelinking" = yes; then
7887 shared_flag='${wl}-G'
7889 shared_flag='${wl}-bM:SRE'
7894 # It seems that -bexpall does not export symbols beginning with
7895 # underscore (_), so it is better to generate a list of symbols to export.
7896 always_export_symbols=yes
7897 if test "$aix_use_runtimelinking" = yes; then
7898 # Warning - without using the other runtime loading flags (-brtl),
7899 # -berok will link without error, but may produce a broken library.
7900 allow_undefined_flag='-berok'
7901 # Determine the default libpath from the value encoded in an empty executable.
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>conftest.er1
7921 grep -v '^ *+' conftest.er1 >conftest.err
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; } &&
7932 { ac_try='test -s conftest$ac_exeext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7941 # Check for a 64-bit object if we didn't find anything.
7942 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; }
7945 echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7949 rm -f conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7953 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7954 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7956 if test "$host_cpu" = ia64; then
7957 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7958 allow_undefined_flag="-z nodefs"
7959 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7961 # Determine the default libpath from the value encoded in an empty executable.
7962 cat >conftest.$ac_ext <<_ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7979 (eval $ac_link) 2>conftest.er1
7981 grep -v '^ *+' conftest.er1 >conftest.err
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; } &&
7992 { ac_try='test -s conftest$ac_exeext'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8001 # Check for a 64-bit object if we didn't find anything.
8002 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; }
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8009 rm -f conftest.err conftest.$ac_objext \
8010 conftest$ac_exeext conftest.$ac_ext
8011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8014 # Warning - without using the other run time loading flags,
8015 # -berok will link without error, but may produce a broken library.
8016 no_undefined_flag=' ${wl}-bernotok'
8017 allow_undefined_flag=' ${wl}-berok'
8018 # Exported symbols can be pulled into shared objects from archives
8019 whole_archive_flag_spec='$convenience'
8020 archive_cmds_need_lc=yes
8021 # This is similar to how AIX traditionally builds its shared libraries.
8022 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8028 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)'
8029 hardcode_libdir_flag_spec='-L$libdir'
8030 hardcode_minus_L=yes
8031 # see comment about different semantics on the GNU ld section
8036 export_dynamic_flag_spec=-rdynamic
8039 cygwin* | mingw* | pw32*)
8040 # When not using gcc, we currently assume that we are using
8041 # Microsoft Visual C++.
8042 # hardcode_libdir_flag_spec is actually meaningless, as there is
8043 # no search path for DLLs.
8044 hardcode_libdir_flag_spec=' '
8045 allow_undefined_flag=unsupported
8046 # Tell ltmain to make .lib files, not .a files.
8048 # Tell ltmain to make .dll files, not .so files.
8050 # FIXME: Setting linknames here is a bad hack.
8051 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8052 # The linker will automatically build a .lib file if we build a DLL.
8053 old_archive_From_new_cmds='true'
8054 # FIXME: Should let the user specify the lib program.
8055 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8056 fix_srcfile_path='`cygpath -w "$srcfile"`'
8057 enable_shared_with_static_runtimes=yes
8060 darwin* | rhapsody*)
8062 rhapsody* | darwin1.[012])
8063 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8066 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8067 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8069 case ${MACOSX_DEPLOYMENT_TARGET} in
8071 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8074 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8080 archive_cmds_need_lc=no
8082 hardcode_automatic=yes
8083 hardcode_shlibpath_var=unsupported
8084 whole_archive_flag_spec=''
8085 link_all_deplibs=yes
8086 if test "$GCC" = yes ; then
8087 output_verbose_link_cmd='echo'
8088 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8089 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8090 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8091 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}'
8092 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}'
8094 case $cc_basename in
8096 output_verbose_link_cmd='echo'
8097 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8098 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8099 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8100 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8101 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}'
8111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8112 hardcode_libdir_flag_spec='-L$libdir'
8113 hardcode_shlibpath_var=no
8120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8121 # support. Future versions do this automatically, but an explicit c++rt0.o
8122 # does not break anything, and helps significantly (at the cost of a little
8125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8126 hardcode_libdir_flag_spec='-R$libdir'
8128 hardcode_shlibpath_var=no
8131 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8135 hardcode_minus_L=yes
8136 hardcode_shlibpath_var=no
8139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8140 freebsd* | dragonfly*)
8141 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8142 hardcode_libdir_flag_spec='-R$libdir'
8144 hardcode_shlibpath_var=no
8147 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
8149 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8150 hardcode_libdir_flag_spec='-R$libdir'
8152 hardcode_shlibpath_var=no
8157 if test "$GCC" = yes; then
8158 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'
8160 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'
8162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8163 hardcode_libdir_separator=:
8166 # hardcode_minus_L: Not really in the search PATH,
8167 # but as the default location of the library.
8168 hardcode_minus_L=yes
8169 export_dynamic_flag_spec='${wl}-E'
8173 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8174 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8176 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8178 if test "$with_gnu_ld" = no; then
8179 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8180 hardcode_libdir_separator=:
8183 export_dynamic_flag_spec='${wl}-E'
8185 # hardcode_minus_L: Not really in the search PATH,
8186 # but as the default location of the library.
8187 hardcode_minus_L=yes
8192 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8195 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8198 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8201 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8207 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8213 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8217 if test "$with_gnu_ld" = no; then
8218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8219 hardcode_libdir_separator=:
8223 hardcode_libdir_flag_spec_ld='+b $libdir'
8225 hardcode_shlibpath_var=no
8229 export_dynamic_flag_spec='${wl}-E'
8231 # hardcode_minus_L: Not really in the search PATH,
8232 # but as the default location of the library.
8233 hardcode_minus_L=yes
8239 irix5* | irix6* | nonstopux*)
8240 if test "$GCC" = yes; then
8241 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'
8243 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'
8244 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8247 hardcode_libdir_separator=:
8248 link_all_deplibs=yes
8251 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8255 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8257 hardcode_libdir_flag_spec='-R$libdir'
8259 hardcode_shlibpath_var=no
8263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8266 hardcode_libdir_separator=:
8267 hardcode_shlibpath_var=no
8272 hardcode_shlibpath_var=no
8273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8275 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8277 export_dynamic_flag_spec='${wl}-E'
8280 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8282 hardcode_libdir_flag_spec='-R$libdir'
8285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8293 hardcode_libdir_flag_spec='-L$libdir'
8294 hardcode_minus_L=yes
8295 allow_undefined_flag=unsupported
8296 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'
8297 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8301 if test "$GCC" = yes; then
8302 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8303 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'
8305 allow_undefined_flag=' -expect_unresolved \*'
8306 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'
8308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8309 hardcode_libdir_separator=:
8312 osf4* | osf5*) # as osf3* with the addition of -msym flag
8313 if test "$GCC" = yes; then
8314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8315 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'
8316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 allow_undefined_flag=' -expect_unresolved \*'
8319 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'
8320 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8321 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8323 # Both c and cxx compiler support -rpath directly
8324 hardcode_libdir_flag_spec='-rpath $libdir'
8326 hardcode_libdir_separator=:
8330 no_undefined_flag=' -z text'
8331 if test "$GCC" = yes; then
8333 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8334 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8335 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8338 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8339 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8342 hardcode_libdir_flag_spec='-R$libdir'
8343 hardcode_shlibpath_var=no
8345 solaris2.[0-5] | solaris2.[0-5].*) ;;
8347 # The compiler driver will combine linker options so we
8348 # cannot just pass the convience library names through
8349 # without $wl, iff we do not link with $LD.
8350 # Luckily, gcc supports the same syntax we need for Sun Studio.
8351 # Supported since Solaris 2.6 (maybe 2.5.1?)
8354 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8356 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8359 link_all_deplibs=yes
8363 if test "x$host_vendor" = xsequent; then
8364 # Use $CC to link under sequent, because it throws in some extra .o
8365 # files that make .init and .fini sections work.
8366 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8368 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8370 hardcode_libdir_flag_spec='-L$libdir'
8372 hardcode_minus_L=yes
8373 hardcode_shlibpath_var=no
8377 case $host_vendor in
8379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8380 hardcode_direct=yes # is this really true???
8383 ## LD is ld it makes a PLAMLIB
8384 ## CC just makes a GrossModule.
8385 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8386 reload_cmds='$CC -r -o $output$reload_objs'
8390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8394 runpath_var='LD_RUN_PATH'
8395 hardcode_shlibpath_var=no
8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_shlibpath_var=no
8401 export_dynamic_flag_spec='-Bexport'
8405 if test -d /usr/nec; then
8406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8407 hardcode_shlibpath_var=no
8408 runpath_var=LD_RUN_PATH
8409 hardcode_runpath_var=yes
8414 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8415 no_undefined_flag='${wl}-z,text'
8416 archive_cmds_need_lc=no
8417 hardcode_shlibpath_var=no
8418 runpath_var='LD_RUN_PATH'
8420 if test "$GCC" = yes; then
8421 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8429 sysv5* | sco3.2v5* | sco5v6*)
8430 # Note: We can NOT use -z defs as we might desire, because we do not
8431 # link with -lc, and that would cause any symbols used from libc to
8432 # always be unresolved, which means just about no library would
8433 # ever link correctly. If we're not using GNU ld we use -z text
8434 # though, which does catch some bad symbols but isn't as heavy-handed
8436 no_undefined_flag='${wl}-z,text'
8437 allow_undefined_flag='${wl}-z,nodefs'
8438 archive_cmds_need_lc=no
8439 hardcode_shlibpath_var=no
8440 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8441 hardcode_libdir_separator=':'
8442 link_all_deplibs=yes
8443 export_dynamic_flag_spec='${wl}-Bexport'
8444 runpath_var='LD_RUN_PATH'
8446 if test "$GCC" = yes; then
8447 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8448 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8450 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8451 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8457 hardcode_libdir_flag_spec='-L$libdir'
8458 hardcode_shlibpath_var=no
8467 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8468 echo "${ECHO_T}$ld_shlibs" >&6
8469 test "$ld_shlibs" = no && can_build_shared=no
8472 # Do we need to explicitly link libc?
8474 case "x$archive_cmds_need_lc" in
8476 # Assume -lc should be added
8477 archive_cmds_need_lc=yes
8479 if test "$enable_shared" = yes && test "$GCC" = yes; then
8480 case $archive_cmds in
8482 # FIXME: we may have to deal with multi-command sequences.
8485 # Test whether the compiler implicitly links with -lc since on some
8486 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8487 # to ld, don't add -lc before -lgcc.
8488 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8489 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } 2>conftest.err; then
8500 libobjs=conftest.$ac_objext
8502 wl=$lt_prog_compiler_wl
8503 pic_flag=$lt_prog_compiler_pic
8509 lt_save_allow_undefined_flag=$allow_undefined_flag
8510 allow_undefined_flag=
8511 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8512 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }
8517 archive_cmds_need_lc=no
8519 archive_cmds_need_lc=yes
8521 allow_undefined_flag=$lt_save_allow_undefined_flag
8523 cat conftest.err 1>&5
8526 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8527 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8534 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8537 libname_spec='lib$name'
8545 shlibpath_overrides_runpath=unknown
8547 dynamic_linker="$host_os ld.so"
8548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8549 if test "$GCC" = yes; then
8550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8552 # if the path contains ";" then we assume it to be the separator
8553 # otherwise default to the standard path separator (i.e. ":") - it is
8554 # assumed that no part of a normal pathname contains ";" but that should
8555 # okay in the real world where ";" in dirpaths is itself problematic.
8556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8563 need_lib_prefix=unknown
8564 hardcode_into_libs=no
8566 # when you set need_version to no, make sure it does not cause -set_version
8567 # flags to be left without arguments
8568 need_version=unknown
8573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8574 shlibpath_var=LIBPATH
8576 # AIX 3 has no versioning support, so we append a major version to the name.
8577 soname_spec='${libname}${release}${shared_ext}$major'
8584 hardcode_into_libs=yes
8585 if test "$host_cpu" = ia64; then
8586 # AIX 5 supports IA64
8587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8588 shlibpath_var=LD_LIBRARY_PATH
8590 # With GCC up to 2.95.x, collect2 would create an import file
8591 # for dependence libraries. The import file would start with
8592 # the line `#! .'. This would cause the generated library to
8593 # depend on `.', always an invalid library. This was fixed in
8594 # development snapshots of GCC prior to 3.0.
8596 aix4 | aix4.[01] | aix4.[01].*)
8597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8607 # soname into executable. Probably we can add versioning support to
8608 # collect2, so additional links can be useful in future.
8609 if test "$aix_use_runtimelinking" = yes; then
8610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8611 # instead of lib<name>.a to let people know that these are not
8612 # typical AIX shared libraries.
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8615 # We preserve .a as extension for shared libraries through AIX4.2
8616 # and later when we are not doing run time linking.
8617 library_names_spec='${libname}${release}.a $libname.a'
8618 soname_spec='${libname}${release}${shared_ext}$major'
8620 shlibpath_var=LIBPATH
8625 library_names_spec='$libname.ixlibrary $libname.a'
8626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8627 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'
8631 library_names_spec='${libname}${shared_ext}'
8632 dynamic_linker="$host_os ld.so"
8633 shlibpath_var=LIBRARY_PATH
8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640 soname_spec='${libname}${release}${shared_ext}$major'
8641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8642 shlibpath_var=LD_LIBRARY_PATH
8643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8645 # the default ld.so.conf also contains /usr/contrib/lib and
8646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8647 # libtool to hard-code these into programs
8650 cygwin* | mingw* | pw32*)
8651 version_type=windows
8656 case $GCC,$host_os in
8657 yes,cygwin* | yes,mingw* | yes,pw32*)
8658 library_names_spec='$libname.dll.a'
8659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8660 postinstall_cmds='base_file=`basename \${file}`~
8661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8662 dldir=$destdir/`dirname \$dlpath`~
8663 test -d \$dldir || mkdir -p \$dldir~
8664 $install_prog $dir/$dlname \$dldir/$dlname~
8665 chmod a+x \$dldir/$dlname'
8666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8667 dlpath=$dir/\$dldll~
8669 shlibpath_overrides_runpath=yes
8673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8678 # MinGW DLLs use traditional 'lib' prefix
8679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8682 # It is most probably a Windows format PATH printed by
8683 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8684 # path with ; separators, and with drive letters. We can handle the
8685 # drive letters (cygwin fileutils understands them), so leave them,
8686 # especially as we might pass files found there to a mingw objdump,
8687 # which wouldn't understand a cygwinified path. Ahh.
8688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8694 # pw32 DLLs use 'pw' prefix rather than 'lib'
8695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8704 dynamic_linker='Win32 ld.exe'
8705 # FIXME: first we should search . and the directory the executable is in
8709 darwin* | rhapsody*)
8710 dynamic_linker="$host_os dyld"
8714 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8715 soname_spec='${libname}${release}${major}$shared_ext'
8716 shlibpath_overrides_runpath=yes
8717 shlibpath_var=DYLD_LIBRARY_PATH
8718 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8719 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8720 if test "$GCC" = yes; then
8721 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"`
8723 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 shlibpath_var=LD_LIBRARY_PATH
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 shlibpath_var=LD_LIBRARY_PATH
8748 shlibpath_overrides_runpath=no
8749 hardcode_into_libs=yes
8750 dynamic_linker='GNU ld.so'
8753 freebsd* | dragonfly*)
8754 # DragonFly does not have aout. When/if they implement a new
8755 # versioning mechanism, adjust this.
8756 if test -x /usr/bin/objformat; then
8757 objformat=`/usr/bin/objformat`
8760 freebsd[123]*) objformat=aout ;;
8764 version_type=freebsd-$objformat
8765 case $version_type in
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8776 shlibpath_var=LD_LIBRARY_PATH
8779 shlibpath_overrides_runpath=yes
8781 freebsd3.[01]* | freebsdelf3.[01]*)
8782 shlibpath_overrides_runpath=yes
8783 hardcode_into_libs=yes
8785 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8786 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8787 shlibpath_overrides_runpath=no
8788 hardcode_into_libs=yes
8790 freebsd*) # from 4.6 on
8791 shlibpath_overrides_runpath=yes
8792 hardcode_into_libs=yes
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 shlibpath_var=LD_LIBRARY_PATH
8804 hardcode_into_libs=yes
8807 hpux9* | hpux10* | hpux11*)
8808 # Give a soname corresponding to the major version so that dld.sl refuses to
8809 # link against other versions.
8816 hardcode_into_libs=yes
8817 dynamic_linker="$host_os dld.so"
8818 shlibpath_var=LD_LIBRARY_PATH
8819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8821 soname_spec='${libname}${release}${shared_ext}$major'
8822 if test "X$HPUX_IA64_MODE" = X32; then
8823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8831 hardcode_into_libs=yes
8832 dynamic_linker="$host_os dld.sl"
8833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8842 dynamic_linker="$host_os dld.sl"
8843 shlibpath_var=SHLIB_PATH
8844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8849 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8850 postinstall_cmds='chmod 555 $lib'
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath=no
8862 hardcode_into_libs=yes
8865 irix5* | irix6* | nonstopux*)
8867 nonstopux*) version_type=nonstopux ;;
8869 if test "$lt_cv_prog_gnu_ld" = yes; then
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8880 irix5* | nonstopux*)
8884 case $LD in # libtool.m4 will add one of these switches to LD
8885 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8886 libsuff= shlibsuff= libmagic=32-bit;;
8887 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8888 libsuff=32 shlibsuff=N32 libmagic=N32;;
8889 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8890 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8891 *) libsuff= shlibsuff= libmagic=never-match;;
8895 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8896 shlibpath_overrides_runpath=no
8897 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8898 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8899 hardcode_into_libs=yes
8902 # No shared lib support for Linux oldld, aout, or coff.
8903 linux*oldld* | linux*aout* | linux*coff*)
8907 # This must be Linux ELF.
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=no
8917 # This implies no fast_install, which is unacceptable.
8918 # Some rework will be needed to allow for fast_install
8919 # before this can be enabled.
8920 hardcode_into_libs=yes
8922 # Append ld.so.conf contents to the search path
8923 if test -f /etc/ld.so.conf; then
8924 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8928 # We used to test for /lib/ld.so.1 and disable shared libraries on
8929 # powerpc, because MkLinux only supported shared libraries with the
8930 # GNU dynamic linker. Since this was broken with cross compilers,
8931 # most powerpc-linux boxes support dynamic linking these days and
8932 # people can always --disable-shared, the test was removed, and we
8933 # assume the GNU/Linux dynamic linker is in use.
8934 dynamic_linker='GNU/Linux ld.so'
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=no
8945 hardcode_into_libs=yes
8946 dynamic_linker='NetBSD ld.elf_so'
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8958 dynamic_linker='GNU ld.so'
8965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8968 dynamic_linker='NetBSD (a.out) ld.so'
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 dynamic_linker='NetBSD ld.elf_so'
8974 shlibpath_var=LD_LIBRARY_PATH
8975 shlibpath_overrides_runpath=yes
8976 hardcode_into_libs=yes
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 shlibpath_var=LD_LIBRARY_PATH
8983 shlibpath_overrides_runpath=yes
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=yes
8998 sys_lib_dlsearch_path_spec="/usr/lib"
9000 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9002 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9003 *) need_version=no ;;
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9010 openbsd2.[89] | openbsd2.[89].*)
9011 shlibpath_overrides_runpath=no
9014 shlibpath_overrides_runpath=yes
9018 shlibpath_overrides_runpath=yes
9023 libname_spec='$name'
9026 library_names_spec='$libname${shared_ext} $libname.a'
9027 dynamic_linker='OS/2 ld.exe'
9028 shlibpath_var=LIBPATH
9031 osf3* | osf4* | osf5*)
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9039 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes
9050 hardcode_into_libs=yes
9051 # ldd complains unless libraries are executable
9052 postinstall_cmds='chmod +x $lib'
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=yes
9061 if test "$with_gnu_ld" = yes; then
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 case $host_vendor in
9074 shlibpath_overrides_runpath=no
9076 export_dynamic_flag_spec='${wl}-Blargedynsym'
9077 runpath_var=LD_RUN_PATH
9085 shlibpath_overrides_runpath=no
9086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9092 if test -d /usr/nec ;then
9094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9095 soname_spec='$libname${shared_ext}.$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9101 version_type=freebsd-elf
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 hardcode_into_libs=yes
9108 if test "$with_gnu_ld" = yes; then
9109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9110 shlibpath_overrides_runpath=no
9112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9113 shlibpath_overrides_runpath=yes
9116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9120 sys_lib_dlsearch_path_spec='/usr/lib'
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 shlibpath_var=LD_LIBRARY_PATH
9134 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9135 echo "${ECHO_T}$dynamic_linker" >&6
9136 test "$dynamic_linker" = no && can_build_shared=no
9138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9139 if test "$GCC" = yes; then
9140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9143 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9144 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9146 if test -n "$hardcode_libdir_flag_spec" || \
9147 test -n "$runpath_var" || \
9148 test "X$hardcode_automatic" = "Xyes" ; then
9150 # We can hardcode non-existant directories.
9151 if test "$hardcode_direct" != no &&
9152 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9153 # have to relink, otherwise we might link with an installed library
9154 # when we should be linking with a yet-to-be-installed one
9155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9156 test "$hardcode_minus_L" != no; then
9157 # Linking always hardcodes the temporary library directory.
9158 hardcode_action=relink
9160 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9161 hardcode_action=immediate
9164 # We cannot hardcode anything, or else we can only hardcode existing
9166 hardcode_action=unsupported
9168 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9169 echo "${ECHO_T}$hardcode_action" >&6
9171 if test "$hardcode_action" = relink; then
9172 # Fast installation is not supported
9173 enable_fast_install=no
9174 elif test "$shlibpath_overrides_runpath" = yes ||
9175 test "$enable_shared" = no; then
9176 # Fast installation is not necessary
9177 enable_fast_install=needless
9182 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9183 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9184 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9185 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9186 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9187 echo "$as_me:$LINENO: result: yes" >&5
9188 echo "${ECHO_T}yes" >&6
9190 # FIXME - insert some real tests, host_os isn't really good enough
9193 if test -n "$STRIP" ; then
9194 striplib="$STRIP -x"
9195 echo "$as_me:$LINENO: result: yes" >&5
9196 echo "${ECHO_T}yes" >&6
9198 echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9203 echo "$as_me:$LINENO: result: no" >&5
9204 echo "${ECHO_T}no" >&6
9209 if test "x$enable_dlopen" != xyes; then
9210 enable_dlopen=unknown
9211 enable_dlopen_self=unknown
9212 enable_dlopen_self_static=unknown
9219 lt_cv_dlopen="load_add_on"
9221 lt_cv_dlopen_self=yes
9225 lt_cv_dlopen="LoadLibrary"
9230 lt_cv_dlopen="dlopen"
9235 # if libdl is installed we need to link against it
9236 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9237 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 ac_check_lib_save_LIBS=$LIBS
9243 cat >conftest.$ac_ext <<_ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9250 /* Override any gcc2 internal prototype to avoid an error. */
9254 /* We use char because int might match the return type of a gcc2
9255 builtin and then its argument prototype would still apply. */
9265 rm -f conftest.$ac_objext conftest$ac_exeext
9266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9267 (eval $ac_link) 2>conftest.er1
9269 grep -v '^ *+' conftest.er1 >conftest.err
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } &&
9274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try='test -s conftest$ac_exeext'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9286 ac_cv_lib_dl_dlopen=yes
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_cv_lib_dl_dlopen=no
9293 rm -f conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LIBS=$ac_check_lib_save_LIBS
9297 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9298 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9299 if test $ac_cv_lib_dl_dlopen = yes; then
9300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9305 lt_cv_dlopen_self=yes
9312 echo "$as_me:$LINENO: checking for shl_load" >&5
9313 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9314 if test "${ac_cv_func_shl_load+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 cat >conftest.$ac_ext <<_ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9323 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9325 #define shl_load innocuous_shl_load
9327 /* System header to define __stub macros and hopefully few prototypes,
9328 which can conflict with char shl_load (); below.
9329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9330 <limits.h> exists even on freestanding compilers. */
9333 # include <limits.h>
9335 # include <assert.h>
9340 /* Override any gcc2 internal prototype to avoid an error. */
9345 /* We use char because int might match the return type of a gcc2
9346 builtin and then its argument prototype would still apply. */
9348 /* The GNU C library defines this for functions which it implements
9349 to always fail with ENOSYS. Some functions are actually named
9350 something starting with __ and the normal name is an alias. */
9351 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9354 char (*f) () = shl_load;
9363 return f != shl_load;
9368 rm -f conftest.$ac_objext conftest$ac_exeext
9369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370 (eval $ac_link) 2>conftest.er1
9372 grep -v '^ *+' conftest.er1 >conftest.err
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest$ac_exeext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 ac_cv_func_shl_load=yes
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9394 ac_cv_func_shl_load=no
9396 rm -f conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9399 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9400 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9401 if test $ac_cv_func_shl_load = yes; then
9402 lt_cv_dlopen="shl_load"
9404 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9405 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9406 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 ac_check_lib_save_LIBS=$LIBS
9411 cat >conftest.$ac_ext <<_ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9418 /* Override any gcc2 internal prototype to avoid an error. */
9422 /* We use char because int might match the return type of a gcc2
9423 builtin and then its argument prototype would still apply. */
9433 rm -f conftest.$ac_objext conftest$ac_exeext
9434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9435 (eval $ac_link) 2>conftest.er1
9437 grep -v '^ *+' conftest.er1 >conftest.err
9439 cat conftest.err >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest$ac_exeext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9454 ac_cv_lib_dld_shl_load=yes
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_cv_lib_dld_shl_load=no
9461 rm -f conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
9463 LIBS=$ac_check_lib_save_LIBS
9465 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9466 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9467 if test $ac_cv_lib_dld_shl_load = yes; then
9468 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9470 echo "$as_me:$LINENO: checking for dlopen" >&5
9471 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9472 if test "${ac_cv_func_dlopen+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 cat >conftest.$ac_ext <<_ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9483 #define dlopen innocuous_dlopen
9485 /* System header to define __stub macros and hopefully few prototypes,
9486 which can conflict with char dlopen (); below.
9487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9488 <limits.h> exists even on freestanding compilers. */
9491 # include <limits.h>
9493 # include <assert.h>
9498 /* Override any gcc2 internal prototype to avoid an error. */
9503 /* We use char because int might match the return type of a gcc2
9504 builtin and then its argument prototype would still apply. */
9506 /* The GNU C library defines this for functions which it implements
9507 to always fail with ENOSYS. Some functions are actually named
9508 something starting with __ and the normal name is an alias. */
9509 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9512 char (*f) () = dlopen;
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9528 (eval $ac_link) 2>conftest.er1
9530 grep -v '^ *+' conftest.er1 >conftest.err
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; } &&
9541 { ac_try='test -s conftest$ac_exeext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_cv_func_dlopen=yes
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 ac_cv_func_dlopen=no
9554 rm -f conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9558 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9559 if test $ac_cv_func_dlopen = yes; then
9560 lt_cv_dlopen="dlopen"
9562 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9563 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 ac_check_lib_save_LIBS=$LIBS
9569 cat >conftest.$ac_ext <<_ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9576 /* Override any gcc2 internal prototype to avoid an error. */
9580 /* We use char because int might match the return type of a gcc2
9581 builtin and then its argument prototype would still apply. */
9591 rm -f conftest.$ac_objext conftest$ac_exeext
9592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593 (eval $ac_link) 2>conftest.er1
9595 grep -v '^ *+' conftest.er1 >conftest.err
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } &&
9600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try='test -s conftest$ac_exeext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_cv_lib_dl_dlopen=yes
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_cv_lib_dl_dlopen=no
9619 rm -f conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9621 LIBS=$ac_check_lib_save_LIBS
9623 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9624 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9625 if test $ac_cv_lib_dl_dlopen = yes; then
9626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9628 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9629 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9630 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 ac_check_lib_save_LIBS=$LIBS
9635 cat >conftest.$ac_ext <<_ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9642 /* Override any gcc2 internal prototype to avoid an error. */
9646 /* We use char because int might match the return type of a gcc2
9647 builtin and then its argument prototype would still apply. */
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659 (eval $ac_link) 2>conftest.er1
9661 grep -v '^ *+' conftest.er1 >conftest.err
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; } &&
9672 { ac_try='test -s conftest$ac_exeext'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 ac_cv_lib_svld_dlopen=yes
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ac_cv_lib_svld_dlopen=no
9685 rm -f conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9689 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9691 if test $ac_cv_lib_svld_dlopen = yes; then
9692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9694 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 ac_check_lib_save_LIBS=$LIBS
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9708 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; } &&
9738 { ac_try='test -s conftest$ac_exeext'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9744 ac_cv_lib_dld_dld_link=yes
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9749 ac_cv_lib_dld_dld_link=no
9751 rm -f conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9755 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9756 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9757 if test $ac_cv_lib_dld_dld_link = yes; then
9758 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9779 if test "x$lt_cv_dlopen" != xno; then
9785 case $lt_cv_dlopen in
9787 save_CPPFLAGS="$CPPFLAGS"
9788 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9790 save_LDFLAGS="$LDFLAGS"
9791 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9794 LIBS="$lt_cv_dlopen_libs $LIBS"
9796 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9797 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9798 if test "${lt_cv_dlopen_self+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 if test "$cross_compiling" = yes; then :
9802 lt_cv_dlopen_self=cross
9804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9805 lt_status=$lt_dlunknown
9806 cat > conftest.$ac_ext <<EOF
9807 #line 9807 "configure"
9808 #include "confdefs.h"
9817 # define LT_DLGLOBAL RTLD_GLOBAL
9820 # define LT_DLGLOBAL DL_GLOBAL
9822 # define LT_DLGLOBAL 0
9826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9827 find out it does not work in some platform. */
9828 #ifndef LT_DLLAZY_OR_NOW
9830 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9833 # define LT_DLLAZY_OR_NOW DL_LAZY
9836 # define LT_DLLAZY_OR_NOW RTLD_NOW
9839 # define LT_DLLAZY_OR_NOW DL_NOW
9841 # define LT_DLLAZY_OR_NOW 0
9849 extern "C" void exit (int);
9852 void fnord() { int i=42;}
9855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9856 int status = $lt_dlunknown;
9860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9861 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9862 /* dlclose (self); */
9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9875 (./conftest; exit; ) >&5 2>/dev/null
9878 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9879 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9880 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9883 # compilation failed
9884 lt_cv_dlopen_self=no
9891 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9892 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9894 if test "x$lt_cv_dlopen_self" = xyes; then
9895 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9896 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9897 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9898 if test "${lt_cv_dlopen_self_static+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 if test "$cross_compiling" = yes; then :
9902 lt_cv_dlopen_self_static=cross
9904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9905 lt_status=$lt_dlunknown
9906 cat > conftest.$ac_ext <<EOF
9907 #line 9907 "configure"
9908 #include "confdefs.h"
9917 # define LT_DLGLOBAL RTLD_GLOBAL
9920 # define LT_DLGLOBAL DL_GLOBAL
9922 # define LT_DLGLOBAL 0
9926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9927 find out it does not work in some platform. */
9928 #ifndef LT_DLLAZY_OR_NOW
9930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9933 # define LT_DLLAZY_OR_NOW DL_LAZY
9936 # define LT_DLLAZY_OR_NOW RTLD_NOW
9939 # define LT_DLLAZY_OR_NOW DL_NOW
9941 # define LT_DLLAZY_OR_NOW 0
9949 extern "C" void exit (int);
9952 void fnord() { int i=42;}
9955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9956 int status = $lt_dlunknown;
9960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9961 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9962 /* dlclose (self); */
9970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971 (eval $ac_link) 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9975 (./conftest; exit; ) >&5 2>/dev/null
9978 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9979 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9980 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9983 # compilation failed
9984 lt_cv_dlopen_self_static=no
9991 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9992 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9995 CPPFLAGS="$save_CPPFLAGS"
9996 LDFLAGS="$save_LDFLAGS"
10001 case $lt_cv_dlopen_self in
10002 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10003 *) enable_dlopen_self=unknown ;;
10006 case $lt_cv_dlopen_self_static in
10007 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10008 *) enable_dlopen_self_static=unknown ;;
10013 # Report which library types will actually be built
10014 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10015 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10016 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10017 echo "${ECHO_T}$can_build_shared" >&6
10019 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10020 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10021 test "$can_build_shared" = "no" && enable_shared=no
10023 # On AIX, shared libraries and static libraries use the same namespace, and
10024 # are all built from PIC.
10027 test "$enable_shared" = yes && enable_static=no
10028 if test -n "$RANLIB"; then
10029 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10030 postinstall_cmds='$RANLIB $lib'
10035 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10036 test "$enable_shared" = yes && enable_static=no
10040 echo "$as_me:$LINENO: result: $enable_shared" >&5
10041 echo "${ECHO_T}$enable_shared" >&6
10043 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10044 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10045 # Make sure either enable_shared or enable_static is yes.
10046 test "$enable_shared" = yes || enable_static=yes
10047 echo "$as_me:$LINENO: result: $enable_static" >&5
10048 echo "${ECHO_T}$enable_static" >&6
10050 # The else clause should only fire when bootstrapping the
10051 # libtool distribution, otherwise you forgot to ship ltmain.sh
10052 # with your package, and you will get complaints that there are
10053 # no rules to generate ltmain.sh.
10054 if test -f "$ltmain"; then
10055 # See if we are running on zsh, and set the options which allow our commands through
10056 # without removal of \ escapes.
10057 if test -n "${ZSH_VERSION+set}" ; then
10058 setopt NO_GLOB_SUBST
10060 # Now quote all the things that may contain metacharacters while being
10061 # careful not to overquote the AC_SUBSTed values. We take copies of the
10062 # variables and quote the copies for generation of the libtool script.
10063 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10065 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10066 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10067 deplibs_check_method reload_flag reload_cmds need_locks \
10068 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10069 lt_cv_sys_global_symbol_to_c_name_address \
10070 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10071 old_postinstall_cmds old_postuninstall_cmds \
10075 lt_prog_compiler_wl \
10076 lt_prog_compiler_pic \
10077 lt_prog_compiler_static \
10078 lt_prog_compiler_no_builtin_flag \
10079 export_dynamic_flag_spec \
10080 thread_safe_flag_spec \
10081 whole_archive_flag_spec \
10082 enable_shared_with_static_runtimes \
10084 old_archive_from_new_cmds \
10089 compiler_lib_search_path \
10091 archive_expsym_cmds \
10093 postuninstall_cmds \
10094 old_archive_from_expsyms_cmds \
10095 allow_undefined_flag \
10096 no_undefined_flag \
10097 export_symbols_cmds \
10098 hardcode_libdir_flag_spec \
10099 hardcode_libdir_flag_spec_ld \
10100 hardcode_libdir_separator \
10101 hardcode_automatic \
10103 module_expsym_cmds \
10104 lt_cv_prog_compiler_c_o \
10106 include_expsyms; do
10109 old_archive_cmds | \
10110 old_archive_from_new_cmds | \
10112 archive_expsym_cmds | \
10114 module_expsym_cmds | \
10115 old_archive_from_expsyms_cmds | \
10116 export_symbols_cmds | \
10117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10118 postinstall_cmds | postuninstall_cmds | \
10119 old_postinstall_cmds | old_postuninstall_cmds | \
10120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10121 # Double-quote double-evaled strings.
10122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10131 *'\$0 --fallback-echo"')
10132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10136 cfgfile="${ofile}T"
10137 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10139 { echo "$as_me:$LINENO: creating $ofile" >&5
10140 echo "$as_me: creating $ofile" >&6;}
10142 cat <<__EOF__ >> "$cfgfile"
10145 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10146 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10149 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10150 # Free Software Foundation, Inc.
10152 # This file is part of GNU Libtool:
10153 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10155 # This program is free software; you can redistribute it and/or modify
10156 # it under the terms of the GNU General Public License as published by
10157 # the Free Software Foundation; either version 3 of the License, or
10158 # (at your option) any later version.
10160 # This program is distributed in the hope that it will be useful, but
10161 # WITHOUT ANY WARRANTY; without even the implied warranty of
10162 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10163 # General Public License for more details.
10165 # You should have received a copy of the GNU General Public License
10166 # along with this program; if not, write to the Free Software
10167 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10169 # As a special exception to the GNU General Public License, if you
10170 # distribute this file as part of a program that contains a
10171 # configuration script generated by Autoconf, you may include it under
10172 # the same distribution terms that you use for the rest of that program.
10174 # A sed program that does not truncate output.
10177 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10178 Xsed="$SED -e 1s/^X//"
10180 # The HP-UX ksh and POSIX shell print the target directory to stdout
10181 # if CDPATH is set.
10182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10184 # The names of the tagged configurations supported by this script.
10187 # ### BEGIN LIBTOOL CONFIG
10189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10191 # Shell to use when invoking shell scripts.
10194 # Whether or not to build shared libraries.
10195 build_libtool_libs=$enable_shared
10197 # Whether or not to build static libraries.
10198 build_old_libs=$enable_static
10200 # Whether or not to add -lc for building shared libraries.
10201 build_libtool_need_lc=$archive_cmds_need_lc
10203 # Whether or not to disallow shared libs when runtime libs are static
10204 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10206 # Whether or not to optimize for fast installation.
10207 fast_install=$enable_fast_install
10210 host_alias=$host_alias
10214 # The build system.
10215 build_alias=$build_alias
10219 # An echo program that does not interpret backslashes.
10224 AR_FLAGS=$lt_AR_FLAGS
10229 # LTCC compiler flags.
10230 LTCFLAGS=$lt_LTCFLAGS
10232 # A language-specific compiler.
10235 # Is the compiler the GNU C compiler?
10241 # The linker used to build libraries.
10244 # Whether we need hard or soft links.
10247 # A BSD-compatible nm program.
10250 # A symbol stripping program
10253 # Used to examine libraries when file_magic_cmd begins "file"
10254 MAGIC_CMD=$MAGIC_CMD
10256 # Used on cygwin: DLL creation program.
10259 # Used on cygwin: object dumper.
10262 # Used on cygwin: assembler.
10265 # The name of the directory that contains temporary libtool files.
10268 # How to create reloadable object files.
10269 reload_flag=$lt_reload_flag
10270 reload_cmds=$lt_reload_cmds
10272 # How to pass a linker flag through the compiler.
10273 wl=$lt_lt_prog_compiler_wl
10275 # Object file suffix (normally "o").
10276 objext="$ac_objext"
10278 # Old archive suffix (normally "a").
10281 # Shared library suffix (normally ".so").
10282 shrext_cmds='$shrext_cmds'
10284 # Executable file suffix (normally "").
10287 # Additional compiler flags for building library objects.
10288 pic_flag=$lt_lt_prog_compiler_pic
10291 # What is the maximum length of a command?
10292 max_cmd_len=$lt_cv_sys_max_cmd_len
10294 # Does compiler simultaneously support -c and -o options?
10295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10297 # Must we lock files when doing compilation?
10298 need_locks=$lt_need_locks
10300 # Do we need the lib prefix for modules?
10301 need_lib_prefix=$need_lib_prefix
10303 # Do we need a version for libraries?
10304 need_version=$need_version
10306 # Whether dlopen is supported.
10307 dlopen_support=$enable_dlopen
10309 # Whether dlopen of programs is supported.
10310 dlopen_self=$enable_dlopen_self
10312 # Whether dlopen of statically linked programs is supported.
10313 dlopen_self_static=$enable_dlopen_self_static
10315 # Compiler flag to prevent dynamic linking.
10316 link_static_flag=$lt_lt_prog_compiler_static
10318 # Compiler flag to turn off builtin functions.
10319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10321 # Compiler flag to allow reflexive dlopens.
10322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10324 # Compiler flag to generate shared objects directly from archives.
10325 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10327 # Compiler flag to generate thread-safe objects.
10328 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10330 # Library versioning type.
10331 version_type=$version_type
10333 # Format of library name prefix.
10334 libname_spec=$lt_libname_spec
10336 # List of archive names. First name is the real one, the rest are links.
10337 # The last name is the one that the linker finds with -lNAME.
10338 library_names_spec=$lt_library_names_spec
10340 # The coded name of the library, if different from the real name.
10341 soname_spec=$lt_soname_spec
10343 # Commands used to build and install an old-style archive.
10345 old_archive_cmds=$lt_old_archive_cmds
10346 old_postinstall_cmds=$lt_old_postinstall_cmds
10347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10349 # Create an old-style archive from a shared archive.
10350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10352 # Create a temporary old-style archive to link instead of a shared archive.
10353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10355 # Commands used to build and install a shared archive.
10356 archive_cmds=$lt_archive_cmds
10357 archive_expsym_cmds=$lt_archive_expsym_cmds
10358 postinstall_cmds=$lt_postinstall_cmds
10359 postuninstall_cmds=$lt_postuninstall_cmds
10361 # Commands used to build a loadable module (assumed same as above if empty)
10362 module_cmds=$lt_module_cmds
10363 module_expsym_cmds=$lt_module_expsym_cmds
10365 # Commands to strip libraries.
10366 old_striplib=$lt_old_striplib
10367 striplib=$lt_striplib
10369 # Dependencies to place before the objects being linked to create a
10371 predep_objects=$lt_predep_objects
10373 # Dependencies to place after the objects being linked to create a
10375 postdep_objects=$lt_postdep_objects
10377 # Dependencies to place before the objects being linked to create a
10379 predeps=$lt_predeps
10381 # Dependencies to place after the objects being linked to create a
10383 postdeps=$lt_postdeps
10385 # The library search path used internally by the compiler when linking
10386 # a shared library.
10387 compiler_lib_search_path=$lt_compiler_lib_search_path
10389 # Method to check whether dependent libraries are shared objects.
10390 deplibs_check_method=$lt_deplibs_check_method
10392 # Command to use when deplibs_check_method == file_magic.
10393 file_magic_cmd=$lt_file_magic_cmd
10395 # Flag that allows shared libraries with undefined symbols to be built.
10396 allow_undefined_flag=$lt_allow_undefined_flag
10398 # Flag that forces no undefined symbols.
10399 no_undefined_flag=$lt_no_undefined_flag
10401 # Commands used to finish a libtool library installation in a directory.
10402 finish_cmds=$lt_finish_cmds
10404 # Same as above, but a single script fragment to be evaled but not shown.
10405 finish_eval=$lt_finish_eval
10407 # Take the output of nm and produce a listing of raw symbols and C names.
10408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10410 # Transform the output of nm in a proper C declaration
10411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10413 # Transform the output of nm in a C name address pair
10414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10416 # This is the shared library runtime path variable.
10417 runpath_var=$runpath_var
10419 # This is the shared library path variable.
10420 shlibpath_var=$shlibpath_var
10422 # Is shlibpath searched before the hard-coded library search path?
10423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10425 # How to hardcode a shared library path into an executable.
10426 hardcode_action=$hardcode_action
10428 # Whether we should hardcode library paths into libraries.
10429 hardcode_into_libs=$hardcode_into_libs
10431 # Flag to hardcode \$libdir into a binary during linking.
10432 # This must work even if \$libdir does not exist.
10433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10435 # If ld is used when linking, flag to hardcode \$libdir into
10436 # a binary during linking. This must work even if \$libdir does
10438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10440 # Whether we need a single -rpath flag with a separated argument.
10441 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10444 # resulting binary.
10445 hardcode_direct=$hardcode_direct
10447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10448 # resulting binary.
10449 hardcode_minus_L=$hardcode_minus_L
10451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10452 # the resulting binary.
10453 hardcode_shlibpath_var=$hardcode_shlibpath_var
10455 # Set to yes if building a shared library automatically hardcodes DIR into the library
10456 # and all subsequent libraries and executables linked against it.
10457 hardcode_automatic=$hardcode_automatic
10459 # Variables whose values should be saved in libtool wrapper scripts and
10460 # restored at relink time.
10461 variables_saved_for_relink="$variables_saved_for_relink"
10463 # Whether libtool must link a program against all its dependency libraries.
10464 link_all_deplibs=$link_all_deplibs
10466 # Compile-time system search path for libraries
10467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10469 # Run-time system search path for libraries
10470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10472 # Fix the shell variable \$srcfile for the compiler.
10473 fix_srcfile_path="$fix_srcfile_path"
10475 # Set to yes if exported symbols are required.
10476 always_export_symbols=$always_export_symbols
10478 # The commands to list exported symbols.
10479 export_symbols_cmds=$lt_export_symbols_cmds
10481 # The commands to extract the exported symbol list from a shared archive.
10482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10484 # Symbols that should not be listed in the preloaded symbols.
10485 exclude_expsyms=$lt_exclude_expsyms
10487 # Symbols that must always be exported.
10488 include_expsyms=$lt_include_expsyms
10490 # ### END LIBTOOL CONFIG
10497 cat <<\EOF >> "$cfgfile"
10499 # AIX sometimes has problems with the GCC collect2 program. For some
10500 # reason, if we set the COLLECT_NAMES environment variable, the problems
10501 # vanish in a puff of smoke.
10502 if test "X${COLLECT_NAMES+set}" != Xset; then
10504 export COLLECT_NAMES
10510 # We use sed instead of cat because bash on DJGPP gets confused if
10511 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10512 # text mode, it properly converts lines to CR/LF. This bash problem
10513 # is reportedly fixed, but why not run on old versions too?
10514 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10516 mv -f "$cfgfile" "$ofile" || \
10517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10521 # If there is no Makefile yet, we rely on a make rule to execute
10522 # `config.status --recheck' to rerun these tests and create the
10523 # libtool script then.
10524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10525 if test -f "$ltmain_in"; then
10526 test -f Makefile && make "$ltmain"
10532 ac_cpp='$CPP $CPPFLAGS'
10533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10540 # Check whether --with-tags or --without-tags was given.
10541 if test "${with_tags+set}" = set; then
10542 withval="$with_tags"
10543 tagnames="$withval"
10546 if test -f "$ltmain" && test -n "$tagnames"; then
10547 if test ! -f "${ofile}"; then
10548 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10549 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10552 if test -z "$LTCC"; then
10553 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10554 if test -z "$LTCC"; then
10555 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10556 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10559 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10562 if test -z "$LTCFLAGS"; then
10563 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10566 # Extract list of available tagged configurations in $ofile.
10567 # Note that this assumes the entire list is on one line.
10568 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10571 for tagname in $tagnames; do
10573 # Check whether tagname contains only valid characters
10574 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10576 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10577 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10578 { (exit 1); exit 1; }; }
10582 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10584 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10585 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10586 { (exit 1); exit 1; }; }
10589 # Update the list of available tags.
10590 if test -n "$tagname"; then
10591 echo appending configuration tag \"$tagname\" to $ofile
10595 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10596 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10597 (test "X$CXX" != "Xg++"))) ; then
10599 ac_cpp='$CXXCPP $CPPFLAGS'
10600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10607 archive_cmds_need_lc_CXX=no
10608 allow_undefined_flag_CXX=
10609 always_export_symbols_CXX=no
10610 archive_expsym_cmds_CXX=
10611 export_dynamic_flag_spec_CXX=
10612 hardcode_direct_CXX=no
10613 hardcode_libdir_flag_spec_CXX=
10614 hardcode_libdir_flag_spec_ld_CXX=
10615 hardcode_libdir_separator_CXX=
10616 hardcode_minus_L_CXX=no
10617 hardcode_shlibpath_var_CXX=unsupported
10618 hardcode_automatic_CXX=no
10620 module_expsym_cmds_CXX=
10621 link_all_deplibs_CXX=unknown
10622 old_archive_cmds_CXX=$old_archive_cmds
10623 no_undefined_flag_CXX=
10624 whole_archive_flag_spec_CXX=
10625 enable_shared_with_static_runtimes_CXX=no
10627 # Dependencies to place before and after the object being linked:
10628 predep_objects_CXX=
10629 postdep_objects_CXX=
10632 compiler_lib_search_path_CXX=
10634 # Source file extension for C++ test sources.
10637 # Object file extension for compiled C++ test sources.
10641 # Code to be used in simple compile tests
10642 lt_simple_compile_test_code="int some_variable = 0;\n"
10644 # Code to be used in simple link tests
10645 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10649 # If no C compiler was specified, use CC.
10652 # If no C compiler flags were specified, use CFLAGS.
10653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10655 # Allow CC to be a program name with arguments.
10659 # save warnings/boilerplate of simple test code
10660 ac_outfile=conftest.$ac_objext
10661 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10662 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10663 _lt_compiler_boilerplate=`cat conftest.err`
10666 ac_outfile=conftest.$ac_objext
10667 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10668 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10669 _lt_linker_boilerplate=`cat conftest.err`
10673 # Allow CC to be a program name with arguments.
10678 lt_save_with_gnu_ld=$with_gnu_ld
10679 lt_save_path_LD=$lt_cv_path_LD
10680 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10681 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10683 $as_unset lt_cv_prog_gnu_ld
10685 if test -n "${lt_cv_path_LDCXX+set}"; then
10686 lt_cv_path_LD=$lt_cv_path_LDCXX
10688 $as_unset lt_cv_path_LD
10690 test -z "${LDCXX+set}" || LD=$LDCXX
10694 for cc_temp in $compiler""; do
10696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10705 # We don't want -fno-exception wen compiling C++ code, so set the
10706 # no_builtin_flag separately
10707 if test "$GXX" = yes; then
10708 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10710 lt_prog_compiler_no_builtin_flag_CXX=
10713 if test "$GXX" = yes; then
10714 # Set up default GNU C++ configuration
10717 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10718 if test "${with_gnu_ld+set}" = set; then
10719 withval="$with_gnu_ld"
10720 test "$withval" = no || with_gnu_ld=yes
10725 if test "$GCC" = yes; then
10726 # Check if gcc -print-prog-name=ld gives a path.
10727 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10728 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10731 # gcc leaves a trailing carriage return which upsets mingw
10732 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10734 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10737 # Accept absolute paths.
10739 re_direlt='/[^/][^/]*/\.\./'
10740 # Canonicalize the pathname of ld
10741 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10742 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10743 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10745 test -z "$LD" && LD="$ac_prog"
10748 # If it fails, then pretend we aren't using GCC.
10752 # If it is relative, then search for the first ld in PATH.
10753 with_gnu_ld=unknown
10756 elif test "$with_gnu_ld" = yes; then
10757 echo "$as_me:$LINENO: checking for GNU ld" >&5
10758 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10760 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10761 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10763 if test "${lt_cv_path_LD+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 if test -z "$LD"; then
10767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10768 for ac_dir in $PATH; do
10770 test -z "$ac_dir" && ac_dir=.
10771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10772 lt_cv_path_LD="$ac_dir/$ac_prog"
10773 # Check to see if the program is GNU ld. I'd rather use --version,
10774 # but apparently some variants of GNU ld only accept -v.
10775 # Break only if it was the GNU/non-GNU ld that we prefer.
10776 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10777 *GNU* | *'with BFD'*)
10778 test "$with_gnu_ld" != no && break
10781 test "$with_gnu_ld" != yes && break
10788 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10792 LD="$lt_cv_path_LD"
10793 if test -n "$LD"; then
10794 echo "$as_me:$LINENO: result: $LD" >&5
10795 echo "${ECHO_T}$LD" >&6
10797 echo "$as_me:$LINENO: result: no" >&5
10798 echo "${ECHO_T}no" >&6
10800 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10801 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10802 { (exit 1); exit 1; }; }
10803 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10804 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10805 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10809 case `$LD -v 2>&1 </dev/null` in
10810 *GNU* | *'with BFD'*)
10811 lt_cv_prog_gnu_ld=yes
10814 lt_cv_prog_gnu_ld=no
10818 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10819 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10820 with_gnu_ld=$lt_cv_prog_gnu_ld
10824 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10825 # archiving commands below assume that GNU ld is being used.
10826 if test "$with_gnu_ld" = yes; then
10827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10828 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'
10830 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10833 # If archive_cmds runs LD, not CC, wlarc should be empty
10834 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10835 # investigate it a little bit more. (MM)
10838 # ancient GNU ld didn't support --whole-archive et. al.
10839 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10840 grep 'no-whole-archive' > /dev/null; then
10841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10843 whole_archive_flag_spec_CXX=
10849 # A generic and very simple default shared library creation
10850 # command for GNU C++ for the case where it uses the native
10851 # linker, instead of GNU ld. If possible, this setting should
10852 # overridden to take advantage of the native linker features on
10853 # the platform it is being used on.
10854 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10857 # Commands to make compiler produce verbose output that lists
10858 # what "hidden" libraries, object files and flags are used when
10859 # linking a shared library.
10860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10868 # PORTME: fill in a description of your system's C++ link characteristics
10869 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10870 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10874 # FIXME: insert proper C++ library support
10878 if test "$host_cpu" = ia64; then
10879 # On IA64, the linker does run time linking by default, so we don't
10880 # have to do anything special.
10881 aix_use_runtimelinking=no
10882 exp_sym_flag='-Bexport'
10885 aix_use_runtimelinking=no
10887 # Test if we are trying to use run time linking or normal
10888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10889 # need to do runtime linking.
10890 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10891 for ld_flag in $LDFLAGS; do
10894 aix_use_runtimelinking=yes
10902 exp_sym_flag='-bexport'
10903 no_entry_flag='-bnoentry'
10906 # When large executables or shared objects are built, AIX ld can
10907 # have problems creating the table of contents. If linking a library
10908 # or program results in "error TOC overflow" add -mminimal-toc to
10909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10912 archive_cmds_CXX=''
10913 hardcode_direct_CXX=yes
10914 hardcode_libdir_separator_CXX=':'
10915 link_all_deplibs_CXX=yes
10917 if test "$GXX" = yes; then
10918 case $host_os in aix4.[012]|aix4.[012].*)
10919 # We only want to do this on AIX 4.2 and lower, the check
10920 # below for broken collect2 doesn't work under 4.3+
10921 collect2name=`${CC} -print-prog-name=collect2`
10922 if test -f "$collect2name" && \
10923 strings "$collect2name" | grep resolve_lib_name >/dev/null
10925 # We have reworked collect2
10926 hardcode_direct_CXX=yes
10928 # We have old collect2
10929 hardcode_direct_CXX=unsupported
10930 # It fails to find uninstalled libraries when the uninstalled
10931 # path is not listed in the libpath. Setting hardcode_minus_L
10932 # to unsupported forces relinking
10933 hardcode_minus_L_CXX=yes
10934 hardcode_libdir_flag_spec_CXX='-L$libdir'
10935 hardcode_libdir_separator_CXX=
10939 shared_flag='-shared'
10940 if test "$aix_use_runtimelinking" = yes; then
10941 shared_flag="$shared_flag "'${wl}-G'
10945 if test "$host_cpu" = ia64; then
10946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10947 # chokes on -Wl,-G. The following line is correct:
10950 if test "$aix_use_runtimelinking" = yes; then
10951 shared_flag='${wl}-G'
10953 shared_flag='${wl}-bM:SRE'
10958 # It seems that -bexpall does not export symbols beginning with
10959 # underscore (_), so it is better to generate a list of symbols to export.
10960 always_export_symbols_CXX=yes
10961 if test "$aix_use_runtimelinking" = yes; then
10962 # Warning - without using the other runtime loading flags (-brtl),
10963 # -berok will link without error, but may produce a broken library.
10964 allow_undefined_flag_CXX='-berok'
10965 # Determine the default libpath from the value encoded in an empty executable.
10966 cat >conftest.$ac_ext <<_ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10983 (eval $ac_link) 2>conftest.er1
10985 grep -v '^ *+' conftest.er1 >conftest.err
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } &&
10990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 (eval $ac_try) 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; } &&
10996 { ac_try='test -s conftest$ac_exeext'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }; then
11003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11005 # Check for a 64-bit object if we didn't find anything.
11006 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; }
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11013 rm -f conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11017 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11019 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11021 if test "$host_cpu" = ia64; then
11022 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11023 allow_undefined_flag_CXX="-z nodefs"
11024 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11026 # Determine the default libpath from the value encoded in an empty executable.
11027 cat >conftest.$ac_ext <<_ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11042 rm -f conftest.$ac_objext conftest$ac_exeext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11044 (eval $ac_link) 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest$ac_exeext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11064 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11066 # Check for a 64-bit object if we didn't find anything.
11067 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; }
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11074 rm -f conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11078 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11079 # Warning - without using the other run time loading flags,
11080 # -berok will link without error, but may produce a broken library.
11081 no_undefined_flag_CXX=' ${wl}-bernotok'
11082 allow_undefined_flag_CXX=' ${wl}-berok'
11083 # Exported symbols can be pulled into shared objects from archives
11084 whole_archive_flag_spec_CXX='$convenience'
11085 archive_cmds_need_lc_CXX=yes
11086 # This is similar to how AIX traditionally builds its shared libraries.
11087 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11094 allow_undefined_flag_CXX=unsupported
11095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11096 # support --undefined. This deserves some investigation. FIXME
11097 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11104 case $cc_basename in
11106 # FIXME: insert proper C++ library support
11112 cygwin* | mingw* | pw32*)
11113 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11114 # as there is no search path for DLLs.
11115 hardcode_libdir_flag_spec_CXX='-L$libdir'
11116 allow_undefined_flag_CXX=unsupported
11117 always_export_symbols_CXX=no
11118 enable_shared_with_static_runtimes_CXX=yes
11120 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11121 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11122 # If the export-symbols file already is a .def file (1st line
11123 # is EXPORTS), use it as is; otherwise, prepend...
11124 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11125 cp $export_symbols $output_objdir/$soname.def;
11127 echo EXPORTS > $output_objdir/$soname.def;
11128 cat $export_symbols >> $output_objdir/$soname.def;
11130 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11135 darwin* | rhapsody*)
11137 rhapsody* | darwin1.[012])
11138 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11141 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11142 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11144 case ${MACOSX_DEPLOYMENT_TARGET} in
11146 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11149 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11155 archive_cmds_need_lc_CXX=no
11156 hardcode_direct_CXX=no
11157 hardcode_automatic_CXX=yes
11158 hardcode_shlibpath_var_CXX=unsupported
11159 whole_archive_flag_spec_CXX=''
11160 link_all_deplibs_CXX=yes
11162 if test "$GXX" = yes ; then
11163 lt_int_apple_cc_single_mod=no
11164 output_verbose_link_cmd='echo'
11165 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11166 lt_int_apple_cc_single_mod=yes
11168 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11169 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11171 archive_cmds_CXX='$CC -r -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'
11173 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11174 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11175 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11176 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}'
11178 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
11180 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}'
11182 case $cc_basename in
11184 output_verbose_link_cmd='echo'
11185 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11186 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11187 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11188 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11189 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}'
11199 case $cc_basename in
11201 # FIXME: insert proper C++ library support
11205 # Green Hills C++ Compiler
11206 # FIXME: insert proper C++ library support
11210 # FIXME: insert proper C++ library support
11216 # C++ shared libraries reported to be fairly broken before switch to ELF
11220 archive_cmds_need_lc_CXX=no
11222 freebsd* | kfreebsd*-gnu | dragonfly*)
11223 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11230 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11231 hardcode_libdir_separator_CXX=:
11232 export_dynamic_flag_spec_CXX='${wl}-E'
11233 hardcode_direct_CXX=yes
11234 hardcode_minus_L_CXX=yes # Not in the search PATH,
11235 # but as the default
11236 # location of the library.
11238 case $cc_basename in
11240 # FIXME: insert proper C++ library support
11244 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'
11245 # Commands to make compiler produce verbose output that lists
11246 # what "hidden" libraries, object files and flags are used when
11247 # linking a shared library.
11249 # There doesn't appear to be a way to prevent this compiler from
11250 # explicitly linking system object files so we need to strip them
11251 # from the output so that they don't get included in the library
11253 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'
11256 if test "$GXX" = yes; then
11257 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'
11259 # FIXME: insert proper C++ library support
11266 if test $with_gnu_ld = no; then
11267 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11268 hardcode_libdir_separator_CXX=:
11272 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11275 export_dynamic_flag_spec_CXX='${wl}-E'
11281 hardcode_direct_CXX=no
11282 hardcode_shlibpath_var_CXX=no
11285 hardcode_direct_CXX=yes
11286 hardcode_minus_L_CXX=yes # Not in the search PATH,
11287 # but as the default
11288 # location of the library.
11292 case $cc_basename in
11294 # FIXME: insert proper C++ library support
11300 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11303 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11306 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11309 # Commands to make compiler produce verbose output that lists
11310 # what "hidden" libraries, object files and flags are used when
11311 # linking a shared library.
11313 # There doesn't appear to be a way to prevent this compiler from
11314 # explicitly linking system object files so we need to strip them
11315 # from the output so that they don't get included in the library
11317 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'
11320 if test "$GXX" = yes; then
11321 if test $with_gnu_ld = no; then
11324 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11327 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11330 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'
11335 # FIXME: insert proper C++ library support
11342 hardcode_direct_CXX=no
11343 hardcode_shlibpath_var_CXX=no
11344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11345 export_dynamic_flag_spec_CXX='${wl}-E'
11346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11347 # Instead, shared libraries are loaded at an image base (0x10000000 by
11348 # default) and relocated if they conflict, which is a slow very memory
11349 # consuming and fragmenting process. To avoid this, we pick a random,
11350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11351 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11352 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11353 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11356 case $cc_basename in
11359 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 ${output_objdir}/so_locations -o $lib'
11361 # Archives containing C++ object files must be created using
11362 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11363 # necessary to make sure instantiated templates are included
11365 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11368 if test "$GXX" = yes; then
11369 if test "$with_gnu_ld" = no; then
11370 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}${output_objdir}/so_locations -o $lib'
11372 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'
11375 link_all_deplibs_CXX=yes
11378 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11379 hardcode_libdir_separator_CXX=:
11382 case $cc_basename in
11384 # Kuck and Associates, Inc. (KAI) C++ Compiler
11386 # KCC will only create a shared library if the output file
11387 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11388 # to its proper name (with version) after linking.
11389 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'
11390 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'
11391 # Commands to make compiler produce verbose output that lists
11392 # what "hidden" libraries, object files and flags are used when
11393 # linking a shared library.
11395 # There doesn't appear to be a way to prevent this compiler from
11396 # explicitly linking system object files so we need to strip them
11397 # from the output so that they don't get included in the library
11399 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'
11401 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11404 # Archives containing C++ object files must be created using
11405 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11406 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11411 # version 8.0 and above of icpc choke on multiply defined symbols
11412 # if we add $predep_objects and $postdep_objects, however 7.1 and
11413 # earlier do not add the objects themselves.
11414 case `$CC -V 2>&1` in
11416 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11417 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'
11419 *) # Version 8.0 or newer
11422 ia64*) tmp_idyn=' -i_dynamic';;
11424 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11425 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11428 archive_cmds_need_lc_CXX=no
11429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11430 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11431 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11434 # Portland Group C++ compiler
11435 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11436 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11438 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11440 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11444 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11445 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'
11447 runpath_var=LD_RUN_PATH
11448 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11449 hardcode_libdir_separator_CXX=:
11451 # Commands to make compiler produce verbose output that lists
11452 # what "hidden" libraries, object files and flags are used when
11453 # linking a shared library.
11455 # There doesn't appear to be a way to prevent this compiler from
11456 # explicitly linking system object files so we need to strip them
11457 # from the output so that they don't get included in the library
11459 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'
11464 # FIXME: insert proper C++ library support
11468 # FIXME: insert proper C++ library support
11472 case $cc_basename in
11474 # FIXME: insert proper C++ library support
11478 # FIXME: insert proper C++ library support
11483 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11485 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11487 hardcode_libdir_flag_spec_CXX='-R$libdir'
11488 hardcode_direct_CXX=yes
11489 hardcode_shlibpath_var_CXX=no
11491 # Workaround some broken pre-1.5 toolchains
11492 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11495 # C++ shared libraries are fairly broken
11499 hardcode_direct_CXX=yes
11500 hardcode_shlibpath_var_CXX=no
11501 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11502 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11503 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11504 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11505 export_dynamic_flag_spec_CXX='${wl}-E'
11506 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11508 output_verbose_link_cmd='echo'
11511 case $cc_basename in
11513 # Kuck and Associates, Inc. (KAI) C++ Compiler
11515 # KCC will only create a shared library if the output file
11516 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11517 # to its proper name (with version) after linking.
11518 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'
11520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11521 hardcode_libdir_separator_CXX=:
11523 # Archives containing C++ object files must be created using
11524 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11525 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11529 # Rational C++ 2.4.1
11530 # FIXME: insert proper C++ library support
11534 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11535 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 ${output_objdir}/so_locations -o $lib'
11537 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11538 hardcode_libdir_separator_CXX=:
11540 # Commands to make compiler produce verbose output that lists
11541 # what "hidden" libraries, object files and flags are used when
11542 # linking a shared library.
11544 # There doesn't appear to be a way to prevent this compiler from
11545 # explicitly linking system object files so we need to strip them
11546 # from the output so that they don't get included in the library
11548 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'
11551 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11552 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11553 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}${output_objdir}/so_locations -o $lib'
11555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11556 hardcode_libdir_separator_CXX=:
11558 # Commands to make compiler produce verbose output that lists
11559 # what "hidden" libraries, object files and flags are used when
11560 # linking a shared library.
11561 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11564 # FIXME: insert proper C++ library support
11571 case $cc_basename in
11573 # Kuck and Associates, Inc. (KAI) C++ Compiler
11575 # KCC will only create a shared library if the output file
11576 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11577 # to its proper name (with version) after linking.
11578 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'
11580 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11581 hardcode_libdir_separator_CXX=:
11583 # Archives containing C++ object files must be created using
11584 # the KAI C++ compiler.
11585 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11588 # Rational C++ 2.4.1
11589 # FIXME: insert proper C++ library support
11593 allow_undefined_flag_CXX=' -expect_unresolved \*'
11594 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 ${output_objdir}/so_locations -o $lib'
11595 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11596 echo "-hidden">> $lib.exp~
11597 $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 ${output_objdir}/so_locations -o $lib~
11600 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11601 hardcode_libdir_separator_CXX=:
11603 # Commands to make compiler produce verbose output that lists
11604 # what "hidden" libraries, object files and flags are used when
11605 # linking a shared library.
11607 # There doesn't appear to be a way to prevent this compiler from
11608 # explicitly linking system object files so we need to strip them
11609 # from the output so that they don't get included in the library
11611 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'
11614 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11615 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11616 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}${output_objdir}/so_locations -o $lib'
11618 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11619 hardcode_libdir_separator_CXX=:
11621 # Commands to make compiler produce verbose output that lists
11622 # what "hidden" libraries, object files and flags are used when
11623 # linking a shared library.
11624 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11627 # FIXME: insert proper C++ library support
11634 # FIXME: insert proper C++ library support
11638 case $cc_basename in
11641 # FIXME: insert proper C++ library support
11646 # FIXME: insert proper C++ library support
11650 # FIXME: insert proper C++ library support
11656 case $cc_basename in
11658 # Sun C++ 4.2, 5.x and Centerline C++
11659 archive_cmds_need_lc_CXX=yes
11660 no_undefined_flag_CXX=' -zdefs'
11661 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11662 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11663 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11665 hardcode_libdir_flag_spec_CXX='-R$libdir'
11666 hardcode_shlibpath_var_CXX=no
11668 solaris2.[0-5] | solaris2.[0-5].*) ;;
11670 # The C++ compiler is used as linker so we must use $wl
11671 # flag to pass the commands to the underlying system
11672 # linker. We must also pass each convience library through
11673 # to the system linker between allextract/defaultextract.
11674 # The C++ compiler will combine linker options so we
11675 # cannot just pass the convience library names through
11677 # Supported since Solaris 2.6 (maybe 2.5.1?)
11678 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11681 link_all_deplibs_CXX=yes
11683 output_verbose_link_cmd='echo'
11685 # Archives containing C++ object files must be created using
11686 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11687 # necessary to make sure instantiated templates are included
11689 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11692 # Green Hills C++ Compiler
11693 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11695 # The C++ compiler must be used to create the archive.
11696 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11699 # GNU C++ compiler with Solaris linker
11700 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11701 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11702 if $CC --version | grep -v '^2\.7' > /dev/null; then
11703 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11704 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11705 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11707 # Commands to make compiler produce verbose output that lists
11708 # what "hidden" libraries, object files and flags are used when
11709 # linking a shared library.
11710 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11712 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11714 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11715 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11716 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11718 # Commands to make compiler produce verbose output that lists
11719 # what "hidden" libraries, object files and flags are used when
11720 # linking a shared library.
11721 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11724 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11730 no_undefined_flag_CXX='${wl}-z,text'
11731 archive_cmds_need_lc_CXX=no
11732 hardcode_shlibpath_var_CXX=no
11733 runpath_var='LD_RUN_PATH'
11735 case $cc_basename in
11737 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11738 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11741 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11742 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11746 sysv5* | sco3.2v5* | sco5v6*)
11747 # Note: We can NOT use -z defs as we might desire, because we do not
11748 # link with -lc, and that would cause any symbols used from libc to
11749 # always be unresolved, which means just about no library would
11750 # ever link correctly. If we're not using GNU ld we use -z text
11751 # though, which does catch some bad symbols but isn't as heavy-handed
11753 # For security reasons, it is highly recommended that you always
11754 # use absolute paths for naming shared libraries, and exclude the
11755 # DT_RUNPATH tag from executables and libraries. But doing so
11756 # requires that you compile everything twice, which is a pain.
11757 # So that behaviour is only enabled if SCOABSPATH is set to a
11758 # non-empty value in the environment. Most likely only useful for
11759 # creating official distributions of packages.
11760 # This is a hack until libtool officially supports absolute path
11761 # names for shared libraries.
11762 no_undefined_flag_CXX='${wl}-z,text'
11763 allow_undefined_flag_CXX='${wl}-z,nodefs'
11764 archive_cmds_need_lc_CXX=no
11765 hardcode_shlibpath_var_CXX=no
11766 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11767 hardcode_libdir_separator_CXX=':'
11768 link_all_deplibs_CXX=yes
11769 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11770 runpath_var='LD_RUN_PATH'
11772 case $cc_basename in
11774 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11775 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11784 case $cc_basename in
11786 # NonStop-UX NCC 3.20
11787 # FIXME: insert proper C++ library support
11791 # FIXME: insert proper C++ library support
11797 # FIXME: insert proper C++ library support
11801 # FIXME: insert proper C++ library support
11805 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11806 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11807 test "$ld_shlibs_CXX" = no && can_build_shared=no
11813 cat > conftest.$ac_ext <<EOF
11817 Foo (void) { a = 0; }
11823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11824 (eval $ac_compile) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; then
11828 # Parse the compiler output and extract the necessary
11829 # objects, libraries and library flags.
11831 # Sentinel used to keep track of whether or not we are before
11832 # the conftest object file.
11833 pre_test_object_deps_done=no
11835 # The `*' in the case matches for architectures that use `case' in
11836 # $output_verbose_cmd can trigger glob expansion during the loop
11837 # eval without this substitution.
11838 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11840 for p in `eval $output_verbose_link_cmd`; do
11844 # Some compilers place space between "-{L,R}" and the path.
11845 # Remove the space.
11846 if test $p = "-L" \
11847 || test $p = "-R"; then
11854 if test "$pre_test_object_deps_done" = no; then
11857 # Internal compiler library paths should come after those
11858 # provided the user. The postdeps already come after the
11859 # user supplied libs so there is no need to process them.
11860 if test -z "$compiler_lib_search_path_CXX"; then
11861 compiler_lib_search_path_CXX="${prev}${p}"
11863 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11866 # The "-l" case would never come before the object being
11867 # linked, so don't bother handling this case.
11870 if test -z "$postdeps_CXX"; then
11871 postdeps_CXX="${prev}${p}"
11873 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11879 # This assumes that the test object file only shows up
11880 # once in the compiler output.
11881 if test "$p" = "conftest.$objext"; then
11882 pre_test_object_deps_done=yes
11886 if test "$pre_test_object_deps_done" = no; then
11887 if test -z "$predep_objects_CXX"; then
11888 predep_objects_CXX="$p"
11890 predep_objects_CXX="$predep_objects_CXX $p"
11893 if test -z "$postdep_objects_CXX"; then
11894 postdep_objects_CXX="$p"
11896 postdep_objects_CXX="$postdep_objects_CXX $p"
11901 *) ;; # Ignore the rest.
11909 echo "libtool.m4: error: problem compiling CXX test program"
11912 $rm -f confest.$objext
11914 # PORTME: override above test on systems where it is broken
11917 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11918 # hack all around it, let's just trust "g++" to DTRT.
11919 predep_objects_CXX=
11920 postdep_objects_CXX=
11925 case $cc_basename in
11927 # Adding this requires a known-good setup of shared libraries for
11928 # Sun compiler versions before 5.6, else PIC objects from an old
11929 # archive will be linked into the output, leading to subtle bugs.
11930 postdeps_CXX='-lCstd -lCrun'
11937 case " $postdeps_CXX " in
11938 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11941 lt_prog_compiler_wl_CXX=
11942 lt_prog_compiler_pic_CXX=
11943 lt_prog_compiler_static_CXX=
11945 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11946 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11948 # C++ specific cases for pic, static, wl, etc.
11949 if test "$GXX" = yes; then
11950 lt_prog_compiler_wl_CXX='-Wl,'
11951 lt_prog_compiler_static_CXX='-static'
11955 # All AIX code is PIC.
11956 if test "$host_cpu" = ia64; then
11957 # AIX 5 now supports IA64 processor
11958 lt_prog_compiler_static_CXX='-Bstatic'
11962 # FIXME: we need at least 68020 code to build shared libraries, but
11963 # adding the `-m68020' flag to GCC prevents building anything better,
11965 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11967 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11968 # PIC is the default for these OSes.
11970 mingw* | os2* | pw32*)
11971 # This hack is so that the source file can tell whether it is being
11972 # built for inclusion in a dll (and should export symbols for example).
11973 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11975 darwin* | rhapsody*)
11976 # PIC is the default on this platform
11977 # Common symbols not allowed in MH_DYLIB files
11978 lt_prog_compiler_pic_CXX='-fno-common'
11981 # DJGPP does not support shared libraries at all
11982 lt_prog_compiler_pic_CXX=
11985 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11986 # Instead, we relocate shared libraries at runtime.
11989 if test -d /usr/nec; then
11990 lt_prog_compiler_pic_CXX=-Kconform_pic
11994 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11995 # not for PA HP-UX.
12000 lt_prog_compiler_pic_CXX='-fPIC'
12005 lt_prog_compiler_pic_CXX='-fPIC'
12011 # All AIX code is PIC.
12012 if test "$host_cpu" = ia64; then
12013 # AIX 5 now supports IA64 processor
12014 lt_prog_compiler_static_CXX='-Bstatic'
12016 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12020 case $cc_basename in
12022 # Green Hills C++ Compiler
12023 # _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"
12028 # PIC is the default on this platform
12029 # Common symbols not allowed in MH_DYLIB files
12030 case $cc_basename in
12032 lt_prog_compiler_pic_CXX='-qnocommon'
12033 lt_prog_compiler_wl_CXX='-Wl,'
12038 case $cc_basename in
12040 lt_prog_compiler_pic_CXX='-KPIC'
12043 # Green Hills C++ Compiler
12044 lt_prog_compiler_pic_CXX='-pic'
12050 freebsd* | kfreebsd*-gnu | dragonfly*)
12051 # FreeBSD uses GNU C++
12053 hpux9* | hpux10* | hpux11*)
12054 case $cc_basename in
12056 lt_prog_compiler_wl_CXX='-Wl,'
12057 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12058 if test "$host_cpu" != ia64; then
12059 lt_prog_compiler_pic_CXX='+Z'
12063 lt_prog_compiler_wl_CXX='-Wl,'
12064 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12070 lt_prog_compiler_pic_CXX='+Z'
12079 # This is c89, which is MS Visual C++ (no shared libs)
12080 # Anyone wants to do a port?
12082 irix5* | irix6* | nonstopux*)
12083 case $cc_basename in
12085 lt_prog_compiler_wl_CXX='-Wl,'
12086 lt_prog_compiler_static_CXX='-non_shared'
12087 # CC pic flag -KPIC is the default.
12094 case $cc_basename in
12097 lt_prog_compiler_wl_CXX='--backend -Wl,'
12098 lt_prog_compiler_pic_CXX='-fPIC'
12102 lt_prog_compiler_wl_CXX='-Wl,'
12103 lt_prog_compiler_pic_CXX='-KPIC'
12104 lt_prog_compiler_static_CXX='-static'
12107 # Portland Group C++ compiler.
12108 lt_prog_compiler_wl_CXX='-Wl,'
12109 lt_prog_compiler_pic_CXX='-fpic'
12110 lt_prog_compiler_static_CXX='-Bstatic'
12114 # Make sure the PIC flag is empty. It appears that all Alpha
12115 # Linux and Compaq Tru64 Unix objects are PIC.
12116 lt_prog_compiler_pic_CXX=
12117 lt_prog_compiler_static_CXX='-non_shared'
12128 case $cc_basename in
12130 lt_prog_compiler_pic_CXX='-W c,exportall'
12136 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12138 osf3* | osf4* | osf5*)
12139 case $cc_basename in
12141 lt_prog_compiler_wl_CXX='--backend -Wl,'
12144 # Rational C++ 2.4.1
12145 lt_prog_compiler_pic_CXX='-pic'
12148 # Digital/Compaq C++
12149 lt_prog_compiler_wl_CXX='-Wl,'
12150 # Make sure the PIC flag is empty. It appears that all Alpha
12151 # Linux and Compaq Tru64 Unix objects are PIC.
12152 lt_prog_compiler_pic_CXX=
12153 lt_prog_compiler_static_CXX='-non_shared'
12162 case $cc_basename in
12164 # Sun C++ 4.2, 5.x and Centerline C++
12165 lt_prog_compiler_pic_CXX='-KPIC'
12166 lt_prog_compiler_static_CXX='-Bstatic'
12167 lt_prog_compiler_wl_CXX='-Qoption ld '
12170 # Green Hills C++ Compiler
12171 lt_prog_compiler_pic_CXX='-PIC'
12178 case $cc_basename in
12181 lt_prog_compiler_pic_CXX='-pic'
12182 lt_prog_compiler_static_CXX='-Bstatic'
12186 lt_prog_compiler_pic_CXX='-pic'
12193 case $cc_basename in
12195 # NonStop-UX NCC 3.20
12196 lt_prog_compiler_pic_CXX='-KPIC'
12202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12203 case $cc_basename in
12205 lt_prog_compiler_wl_CXX='-Wl,'
12206 lt_prog_compiler_pic_CXX='-KPIC'
12207 lt_prog_compiler_static_CXX='-Bstatic'
12214 lt_prog_compiler_can_build_shared_CXX=no
12219 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12220 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12223 # Check to make sure the PIC flag actually works.
12225 if test -n "$lt_prog_compiler_pic_CXX"; then
12227 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12228 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12229 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 lt_prog_compiler_pic_works_CXX=no
12233 ac_outfile=conftest.$ac_objext
12234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12235 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12236 # Insert the option either (1) after the last *FLAGS variable, or
12237 # (2) before a word containing "conftest.", or (3) at the end.
12238 # Note that $ac_compile itself does not contain backslashes and begins
12239 # with a dollar sign (not a hyphen), so the echo should work correctly.
12240 # The option is referenced via a variable to avoid confusing sed.
12241 lt_compile=`echo "$ac_compile" | $SED \
12242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12244 -e 's:$: $lt_compiler_flag:'`
12245 (eval echo "\"\$as_me:12245: $lt_compile\"" >&5)
12246 (eval "$lt_compile" 2>conftest.err)
12248 cat conftest.err >&5
12249 echo "$as_me:12249: \$? = $ac_status" >&5
12250 if (exit $ac_status) && test -s "$ac_outfile"; then
12251 # The compiler can only warn and ignore the option if not recognized
12252 # So say no if there are warnings other than the usual output.
12253 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12256 lt_prog_compiler_pic_works_CXX=yes
12262 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12263 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12265 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12266 case $lt_prog_compiler_pic_CXX in
12268 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12271 lt_prog_compiler_pic_CXX=
12272 lt_prog_compiler_can_build_shared_CXX=no
12277 # For platforms which do not support PIC, -DPIC is meaningless:
12279 lt_prog_compiler_pic_CXX=
12282 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12287 # Check to make sure the static flag actually works.
12289 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12290 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12291 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12292 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 lt_prog_compiler_static_works_CXX=no
12296 save_LDFLAGS="$LDFLAGS"
12297 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12298 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12299 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12300 # The linker can only warn and ignore the option if not recognized
12301 # So say no if there are warnings
12302 if test -s conftest.err; then
12303 # Append any errors to the config.log.
12304 cat conftest.err 1>&5
12305 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12307 if diff conftest.exp conftest.er2 >/dev/null; then
12308 lt_prog_compiler_static_works_CXX=yes
12311 lt_prog_compiler_static_works_CXX=yes
12315 LDFLAGS="$save_LDFLAGS"
12318 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12319 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12321 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12324 lt_prog_compiler_static_CXX=
12328 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12329 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12330 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 lt_cv_prog_compiler_c_o_CXX=no
12334 $rm -r conftest 2>/dev/null
12338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12340 lt_compiler_flag="-o out/conftest2.$ac_objext"
12341 # Insert the option either (1) after the last *FLAGS variable, or
12342 # (2) before a word containing "conftest.", or (3) at the end.
12343 # Note that $ac_compile itself does not contain backslashes and begins
12344 # with a dollar sign (not a hyphen), so the echo should work correctly.
12345 lt_compile=`echo "$ac_compile" | $SED \
12346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12348 -e 's:$: $lt_compiler_flag:'`
12349 (eval echo "\"\$as_me:12349: $lt_compile\"" >&5)
12350 (eval "$lt_compile" 2>out/conftest.err)
12352 cat out/conftest.err >&5
12353 echo "$as_me:12353: \$? = $ac_status" >&5
12354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12356 # The compiler can only warn and ignore the option if not recognized
12357 # So say no if there are warnings
12358 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12361 lt_cv_prog_compiler_c_o_CXX=yes
12366 # SGI C++ compiler will create directory out/ii_files/ for
12367 # template instantiation
12368 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12369 $rm out/* && rmdir out
12375 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12376 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12379 hard_links="nottested"
12380 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12381 # do not overwrite the value of need_locks provided by the user
12382 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12383 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12388 ln conftest.a conftest.b 2>&5 || hard_links=no
12389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12390 echo "$as_me:$LINENO: result: $hard_links" >&5
12391 echo "${ECHO_T}$hard_links" >&6
12392 if test "$hard_links" = no; then
12393 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12394 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12401 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12402 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12404 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12407 # If we're using GNU nm, then we don't want the "-C" option.
12408 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12409 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12410 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'
12412 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'
12416 export_symbols_cmds_CXX="$ltdll_cmds"
12419 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12422 link_all_deplibs_CXX=no
12425 link_all_deplibs_CXX=no
12428 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12432 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12433 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12434 test "$ld_shlibs_CXX" = no && can_build_shared=no
12437 # Do we need to explicitly link libc?
12439 case "x$archive_cmds_need_lc_CXX" in
12441 # Assume -lc should be added
12442 archive_cmds_need_lc_CXX=yes
12444 if test "$enable_shared" = yes && test "$GCC" = yes; then
12445 case $archive_cmds_CXX in
12447 # FIXME: we may have to deal with multi-command sequences.
12450 # Test whether the compiler implicitly links with -lc since on some
12451 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12452 # to ld, don't add -lc before -lgcc.
12453 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12454 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12456 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } 2>conftest.err; then
12465 libobjs=conftest.$ac_objext
12467 wl=$lt_prog_compiler_wl_CXX
12468 pic_flag=$lt_prog_compiler_pic_CXX
12474 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12475 allow_undefined_flag_CXX=
12476 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12477 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }
12482 archive_cmds_need_lc_CXX=no
12484 archive_cmds_need_lc_CXX=yes
12486 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12488 cat conftest.err 1>&5
12491 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12492 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12499 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12500 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12501 library_names_spec=
12502 libname_spec='lib$name'
12506 postuninstall_cmds=
12510 shlibpath_overrides_runpath=unknown
12512 dynamic_linker="$host_os ld.so"
12513 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12514 if test "$GCC" = yes; then
12515 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12516 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12517 # if the path contains ";" then we assume it to be the separator
12518 # otherwise default to the standard path separator (i.e. ":") - it is
12519 # assumed that no part of a normal pathname contains ";" but that should
12520 # okay in the real world where ";" in dirpaths is itself problematic.
12521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12526 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12528 need_lib_prefix=unknown
12529 hardcode_into_libs=no
12531 # when you set need_version to no, make sure it does not cause -set_version
12532 # flags to be left without arguments
12533 need_version=unknown
12538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12539 shlibpath_var=LIBPATH
12541 # AIX 3 has no versioning support, so we append a major version to the name.
12542 soname_spec='${libname}${release}${shared_ext}$major'
12549 hardcode_into_libs=yes
12550 if test "$host_cpu" = ia64; then
12551 # AIX 5 supports IA64
12552 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12553 shlibpath_var=LD_LIBRARY_PATH
12555 # With GCC up to 2.95.x, collect2 would create an import file
12556 # for dependence libraries. The import file would start with
12557 # the line `#! .'. This would cause the generated library to
12558 # depend on `.', always an invalid library. This was fixed in
12559 # development snapshots of GCC prior to 3.0.
12561 aix4 | aix4.[01] | aix4.[01].*)
12562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12564 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12567 can_build_shared=no
12571 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12572 # soname into executable. Probably we can add versioning support to
12573 # collect2, so additional links can be useful in future.
12574 if test "$aix_use_runtimelinking" = yes; then
12575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12576 # instead of lib<name>.a to let people know that these are not
12577 # typical AIX shared libraries.
12578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12580 # We preserve .a as extension for shared libraries through AIX4.2
12581 # and later when we are not doing run time linking.
12582 library_names_spec='${libname}${release}.a $libname.a'
12583 soname_spec='${libname}${release}${shared_ext}$major'
12585 shlibpath_var=LIBPATH
12590 library_names_spec='$libname.ixlibrary $libname.a'
12591 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12592 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'
12596 library_names_spec='${libname}${shared_ext}'
12597 dynamic_linker="$host_os ld.so"
12598 shlibpath_var=LIBRARY_PATH
12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12605 soname_spec='${libname}${release}${shared_ext}$major'
12606 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12607 shlibpath_var=LD_LIBRARY_PATH
12608 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12609 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12610 # the default ld.so.conf also contains /usr/contrib/lib and
12611 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12612 # libtool to hard-code these into programs
12615 cygwin* | mingw* | pw32*)
12616 version_type=windows
12621 case $GCC,$host_os in
12622 yes,cygwin* | yes,mingw* | yes,pw32*)
12623 library_names_spec='$libname.dll.a'
12624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12625 postinstall_cmds='base_file=`basename \${file}`~
12626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12627 dldir=$destdir/`dirname \$dlpath`~
12628 test -d \$dldir || mkdir -p \$dldir~
12629 $install_prog $dir/$dlname \$dldir/$dlname~
12630 chmod a+x \$dldir/$dlname'
12631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12632 dlpath=$dir/\$dldll~
12634 shlibpath_overrides_runpath=yes
12638 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12639 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12640 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12643 # MinGW DLLs use traditional 'lib' prefix
12644 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12645 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12646 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12647 # It is most probably a Windows format PATH printed by
12648 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12649 # path with ; separators, and with drive letters. We can handle the
12650 # drive letters (cygwin fileutils understands them), so leave them,
12651 # especially as we might pass files found there to a mingw objdump,
12652 # which wouldn't understand a cygwinified path. Ahh.
12653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12659 # pw32 DLLs use 'pw' prefix rather than 'lib'
12660 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12666 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12669 dynamic_linker='Win32 ld.exe'
12670 # FIXME: first we should search . and the directory the executable is in
12674 darwin* | rhapsody*)
12675 dynamic_linker="$host_os dyld"
12676 version_type=darwin
12679 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12680 soname_spec='${libname}${release}${major}$shared_ext'
12681 shlibpath_overrides_runpath=yes
12682 shlibpath_var=DYLD_LIBRARY_PATH
12683 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12684 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12685 if test "$GCC" = yes; then
12686 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"`
12688 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12690 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12698 soname_spec='${libname}${release}${shared_ext}$major'
12699 shlibpath_var=LD_LIBRARY_PATH
12710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12711 soname_spec='${libname}${release}${shared_ext}$major'
12712 shlibpath_var=LD_LIBRARY_PATH
12713 shlibpath_overrides_runpath=no
12714 hardcode_into_libs=yes
12715 dynamic_linker='GNU ld.so'
12718 freebsd* | dragonfly*)
12719 # DragonFly does not have aout. When/if they implement a new
12720 # versioning mechanism, adjust this.
12721 if test -x /usr/bin/objformat; then
12722 objformat=`/usr/bin/objformat`
12725 freebsd[123]*) objformat=aout ;;
12726 *) objformat=elf ;;
12729 version_type=freebsd-$objformat
12730 case $version_type in
12732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12741 shlibpath_var=LD_LIBRARY_PATH
12744 shlibpath_overrides_runpath=yes
12746 freebsd3.[01]* | freebsdelf3.[01]*)
12747 shlibpath_overrides_runpath=yes
12748 hardcode_into_libs=yes
12750 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12751 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12752 shlibpath_overrides_runpath=no
12753 hardcode_into_libs=yes
12755 freebsd*) # from 4.6 on
12756 shlibpath_overrides_runpath=yes
12757 hardcode_into_libs=yes
12766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12767 soname_spec='${libname}${release}${shared_ext}$major'
12768 shlibpath_var=LD_LIBRARY_PATH
12769 hardcode_into_libs=yes
12772 hpux9* | hpux10* | hpux11*)
12773 # Give a soname corresponding to the major version so that dld.sl refuses to
12774 # link against other versions.
12781 hardcode_into_libs=yes
12782 dynamic_linker="$host_os dld.so"
12783 shlibpath_var=LD_LIBRARY_PATH
12784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12786 soname_spec='${libname}${release}${shared_ext}$major'
12787 if test "X$HPUX_IA64_MODE" = X32; then
12788 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12790 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12796 hardcode_into_libs=yes
12797 dynamic_linker="$host_os dld.sl"
12798 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801 soname_spec='${libname}${release}${shared_ext}$major'
12802 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12807 dynamic_linker="$host_os dld.sl"
12808 shlibpath_var=SHLIB_PATH
12809 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12811 soname_spec='${libname}${release}${shared_ext}$major'
12814 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12815 postinstall_cmds='chmod 555 $lib'
12822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12823 soname_spec='${libname}${release}${shared_ext}$major'
12824 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12825 shlibpath_var=LD_LIBRARY_PATH
12826 shlibpath_overrides_runpath=no
12827 hardcode_into_libs=yes
12830 irix5* | irix6* | nonstopux*)
12832 nonstopux*) version_type=nonstopux ;;
12834 if test "$lt_cv_prog_gnu_ld" = yes; then
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12845 irix5* | nonstopux*)
12846 libsuff= shlibsuff=
12849 case $LD in # libtool.m4 will add one of these switches to LD
12850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12851 libsuff= shlibsuff= libmagic=32-bit;;
12852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12853 libsuff=32 shlibsuff=N32 libmagic=N32;;
12854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12855 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12856 *) libsuff= shlibsuff= libmagic=never-match;;
12860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12861 shlibpath_overrides_runpath=no
12862 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12863 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12864 hardcode_into_libs=yes
12867 # No shared lib support for Linux oldld, aout, or coff.
12868 linux*oldld* | linux*aout* | linux*coff*)
12872 # This must be Linux ELF.
12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12878 soname_spec='${libname}${release}${shared_ext}$major'
12879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12880 shlibpath_var=LD_LIBRARY_PATH
12881 shlibpath_overrides_runpath=no
12882 # This implies no fast_install, which is unacceptable.
12883 # Some rework will be needed to allow for fast_install
12884 # before this can be enabled.
12885 hardcode_into_libs=yes
12887 # Append ld.so.conf contents to the search path
12888 if test -f /etc/ld.so.conf; then
12889 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12893 # We used to test for /lib/ld.so.1 and disable shared libraries on
12894 # powerpc, because MkLinux only supported shared libraries with the
12895 # GNU dynamic linker. Since this was broken with cross compilers,
12896 # most powerpc-linux boxes support dynamic linking these days and
12897 # people can always --disable-shared, the test was removed, and we
12898 # assume the GNU/Linux dynamic linker is in use.
12899 dynamic_linker='GNU/Linux ld.so'
12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12907 soname_spec='${libname}${release}${shared_ext}$major'
12908 shlibpath_var=LD_LIBRARY_PATH
12909 shlibpath_overrides_runpath=no
12910 hardcode_into_libs=yes
12911 dynamic_linker='NetBSD ld.elf_so'
12918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12919 soname_spec='${libname}${release}${shared_ext}$major'
12920 shlibpath_var=LD_LIBRARY_PATH
12921 shlibpath_overrides_runpath=no
12922 hardcode_into_libs=yes
12923 dynamic_linker='GNU ld.so'
12930 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12933 dynamic_linker='NetBSD (a.out) ld.so'
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12936 soname_spec='${libname}${release}${shared_ext}$major'
12937 dynamic_linker='NetBSD ld.elf_so'
12939 shlibpath_var=LD_LIBRARY_PATH
12940 shlibpath_overrides_runpath=yes
12941 hardcode_into_libs=yes
12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12947 shlibpath_var=LD_LIBRARY_PATH
12948 shlibpath_overrides_runpath=yes
12955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12956 soname_spec='${libname}${release}${shared_ext}$major'
12957 shlibpath_var=LD_LIBRARY_PATH
12958 shlibpath_overrides_runpath=yes
12963 sys_lib_dlsearch_path_spec="/usr/lib"
12965 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12967 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12968 *) need_version=no ;;
12970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12972 shlibpath_var=LD_LIBRARY_PATH
12973 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12975 openbsd2.[89] | openbsd2.[89].*)
12976 shlibpath_overrides_runpath=no
12979 shlibpath_overrides_runpath=yes
12983 shlibpath_overrides_runpath=yes
12988 libname_spec='$name'
12991 library_names_spec='$libname${shared_ext} $libname.a'
12992 dynamic_linker='OS/2 ld.exe'
12993 shlibpath_var=LIBPATH
12996 osf3* | osf4* | osf5*)
13000 soname_spec='${libname}${release}${shared_ext}$major'
13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13002 shlibpath_var=LD_LIBRARY_PATH
13003 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13004 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13012 soname_spec='${libname}${release}${shared_ext}$major'
13013 shlibpath_var=LD_LIBRARY_PATH
13014 shlibpath_overrides_runpath=yes
13015 hardcode_into_libs=yes
13016 # ldd complains unless libraries are executable
13017 postinstall_cmds='chmod +x $lib'
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13024 shlibpath_var=LD_LIBRARY_PATH
13025 shlibpath_overrides_runpath=yes
13026 if test "$with_gnu_ld" = yes; then
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13035 soname_spec='${libname}${release}${shared_ext}$major'
13036 shlibpath_var=LD_LIBRARY_PATH
13037 case $host_vendor in
13039 shlibpath_overrides_runpath=no
13041 export_dynamic_flag_spec='${wl}-Blargedynsym'
13042 runpath_var=LD_RUN_PATH
13050 shlibpath_overrides_runpath=no
13051 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13057 if test -d /usr/nec ;then
13059 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13060 soname_spec='$libname${shared_ext}.$major'
13061 shlibpath_var=LD_LIBRARY_PATH
13065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13066 version_type=freebsd-elf
13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13070 soname_spec='${libname}${release}${shared_ext}$major'
13071 shlibpath_var=LD_LIBRARY_PATH
13072 hardcode_into_libs=yes
13073 if test "$with_gnu_ld" = yes; then
13074 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13075 shlibpath_overrides_runpath=no
13077 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13078 shlibpath_overrides_runpath=yes
13081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13085 sys_lib_dlsearch_path_spec='/usr/lib'
13090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13091 soname_spec='${libname}${release}${shared_ext}$major'
13092 shlibpath_var=LD_LIBRARY_PATH
13099 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13100 echo "${ECHO_T}$dynamic_linker" >&6
13101 test "$dynamic_linker" = no && can_build_shared=no
13103 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13104 if test "$GCC" = yes; then
13105 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13108 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13109 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13110 hardcode_action_CXX=
13111 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13112 test -n "$runpath_var_CXX" || \
13113 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13115 # We can hardcode non-existant directories.
13116 if test "$hardcode_direct_CXX" != no &&
13117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13118 # have to relink, otherwise we might link with an installed library
13119 # when we should be linking with a yet-to-be-installed one
13120 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13121 test "$hardcode_minus_L_CXX" != no; then
13122 # Linking always hardcodes the temporary library directory.
13123 hardcode_action_CXX=relink
13125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13126 hardcode_action_CXX=immediate
13129 # We cannot hardcode anything, or else we can only hardcode existing
13131 hardcode_action_CXX=unsupported
13133 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13134 echo "${ECHO_T}$hardcode_action_CXX" >&6
13136 if test "$hardcode_action_CXX" = relink; then
13137 # Fast installation is not supported
13138 enable_fast_install=no
13139 elif test "$shlibpath_overrides_runpath" = yes ||
13140 test "$enable_shared" = no; then
13141 # Fast installation is not necessary
13142 enable_fast_install=needless
13146 # The else clause should only fire when bootstrapping the
13147 # libtool distribution, otherwise you forgot to ship ltmain.sh
13148 # with your package, and you will get complaints that there are
13149 # no rules to generate ltmain.sh.
13150 if test -f "$ltmain"; then
13151 # See if we are running on zsh, and set the options which allow our commands through
13152 # without removal of \ escapes.
13153 if test -n "${ZSH_VERSION+set}" ; then
13154 setopt NO_GLOB_SUBST
13156 # Now quote all the things that may contain metacharacters while being
13157 # careful not to overquote the AC_SUBSTed values. We take copies of the
13158 # variables and quote the copies for generation of the libtool script.
13159 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13161 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13162 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13163 deplibs_check_method reload_flag reload_cmds need_locks \
13164 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13165 lt_cv_sys_global_symbol_to_c_name_address \
13166 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13167 old_postinstall_cmds old_postuninstall_cmds \
13171 lt_prog_compiler_wl_CXX \
13172 lt_prog_compiler_pic_CXX \
13173 lt_prog_compiler_static_CXX \
13174 lt_prog_compiler_no_builtin_flag_CXX \
13175 export_dynamic_flag_spec_CXX \
13176 thread_safe_flag_spec_CXX \
13177 whole_archive_flag_spec_CXX \
13178 enable_shared_with_static_runtimes_CXX \
13179 old_archive_cmds_CXX \
13180 old_archive_from_new_cmds_CXX \
13181 predep_objects_CXX \
13182 postdep_objects_CXX \
13185 compiler_lib_search_path_CXX \
13187 archive_expsym_cmds_CXX \
13188 postinstall_cmds_CXX \
13189 postuninstall_cmds_CXX \
13190 old_archive_from_expsyms_cmds_CXX \
13191 allow_undefined_flag_CXX \
13192 no_undefined_flag_CXX \
13193 export_symbols_cmds_CXX \
13194 hardcode_libdir_flag_spec_CXX \
13195 hardcode_libdir_flag_spec_ld_CXX \
13196 hardcode_libdir_separator_CXX \
13197 hardcode_automatic_CXX \
13199 module_expsym_cmds_CXX \
13200 lt_cv_prog_compiler_c_o_CXX \
13201 exclude_expsyms_CXX \
13202 include_expsyms_CXX; do
13205 old_archive_cmds_CXX | \
13206 old_archive_from_new_cmds_CXX | \
13207 archive_cmds_CXX | \
13208 archive_expsym_cmds_CXX | \
13209 module_cmds_CXX | \
13210 module_expsym_cmds_CXX | \
13211 old_archive_from_expsyms_cmds_CXX | \
13212 export_symbols_cmds_CXX | \
13213 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13214 postinstall_cmds | postuninstall_cmds | \
13215 old_postinstall_cmds | old_postuninstall_cmds | \
13216 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13217 # Double-quote double-evaled strings.
13218 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13221 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13227 *'\$0 --fallback-echo"')
13228 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13234 cat <<__EOF__ >> "$cfgfile"
13235 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13237 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13239 # Shell to use when invoking shell scripts.
13242 # Whether or not to build shared libraries.
13243 build_libtool_libs=$enable_shared
13245 # Whether or not to build static libraries.
13246 build_old_libs=$enable_static
13248 # Whether or not to add -lc for building shared libraries.
13249 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13251 # Whether or not to disallow shared libs when runtime libs are static
13252 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13254 # Whether or not to optimize for fast installation.
13255 fast_install=$enable_fast_install
13258 host_alias=$host_alias
13262 # The build system.
13263 build_alias=$build_alias
13267 # An echo program that does not interpret backslashes.
13272 AR_FLAGS=$lt_AR_FLAGS
13277 # LTCC compiler flags.
13278 LTCFLAGS=$lt_LTCFLAGS
13280 # A language-specific compiler.
13281 CC=$lt_compiler_CXX
13283 # Is the compiler the GNU C compiler?
13289 # The linker used to build libraries.
13292 # Whether we need hard or soft links.
13295 # A BSD-compatible nm program.
13298 # A symbol stripping program
13301 # Used to examine libraries when file_magic_cmd begins "file"
13302 MAGIC_CMD=$MAGIC_CMD
13304 # Used on cygwin: DLL creation program.
13307 # Used on cygwin: object dumper.
13310 # Used on cygwin: assembler.
13313 # The name of the directory that contains temporary libtool files.
13316 # How to create reloadable object files.
13317 reload_flag=$lt_reload_flag
13318 reload_cmds=$lt_reload_cmds
13320 # How to pass a linker flag through the compiler.
13321 wl=$lt_lt_prog_compiler_wl_CXX
13323 # Object file suffix (normally "o").
13324 objext="$ac_objext"
13326 # Old archive suffix (normally "a").
13329 # Shared library suffix (normally ".so").
13330 shrext_cmds='$shrext_cmds'
13332 # Executable file suffix (normally "").
13335 # Additional compiler flags for building library objects.
13336 pic_flag=$lt_lt_prog_compiler_pic_CXX
13339 # What is the maximum length of a command?
13340 max_cmd_len=$lt_cv_sys_max_cmd_len
13342 # Does compiler simultaneously support -c and -o options?
13343 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13345 # Must we lock files when doing compilation?
13346 need_locks=$lt_need_locks
13348 # Do we need the lib prefix for modules?
13349 need_lib_prefix=$need_lib_prefix
13351 # Do we need a version for libraries?
13352 need_version=$need_version
13354 # Whether dlopen is supported.
13355 dlopen_support=$enable_dlopen
13357 # Whether dlopen of programs is supported.
13358 dlopen_self=$enable_dlopen_self
13360 # Whether dlopen of statically linked programs is supported.
13361 dlopen_self_static=$enable_dlopen_self_static
13363 # Compiler flag to prevent dynamic linking.
13364 link_static_flag=$lt_lt_prog_compiler_static_CXX
13366 # Compiler flag to turn off builtin functions.
13367 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13369 # Compiler flag to allow reflexive dlopens.
13370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13372 # Compiler flag to generate shared objects directly from archives.
13373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13375 # Compiler flag to generate thread-safe objects.
13376 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13378 # Library versioning type.
13379 version_type=$version_type
13381 # Format of library name prefix.
13382 libname_spec=$lt_libname_spec
13384 # List of archive names. First name is the real one, the rest are links.
13385 # The last name is the one that the linker finds with -lNAME.
13386 library_names_spec=$lt_library_names_spec
13388 # The coded name of the library, if different from the real name.
13389 soname_spec=$lt_soname_spec
13391 # Commands used to build and install an old-style archive.
13393 old_archive_cmds=$lt_old_archive_cmds_CXX
13394 old_postinstall_cmds=$lt_old_postinstall_cmds
13395 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13397 # Create an old-style archive from a shared archive.
13398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13400 # Create a temporary old-style archive to link instead of a shared archive.
13401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13403 # Commands used to build and install a shared archive.
13404 archive_cmds=$lt_archive_cmds_CXX
13405 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13406 postinstall_cmds=$lt_postinstall_cmds
13407 postuninstall_cmds=$lt_postuninstall_cmds
13409 # Commands used to build a loadable module (assumed same as above if empty)
13410 module_cmds=$lt_module_cmds_CXX
13411 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13413 # Commands to strip libraries.
13414 old_striplib=$lt_old_striplib
13415 striplib=$lt_striplib
13417 # Dependencies to place before the objects being linked to create a
13419 predep_objects=$lt_predep_objects_CXX
13421 # Dependencies to place after the objects being linked to create a
13423 postdep_objects=$lt_postdep_objects_CXX
13425 # Dependencies to place before the objects being linked to create a
13427 predeps=$lt_predeps_CXX
13429 # Dependencies to place after the objects being linked to create a
13431 postdeps=$lt_postdeps_CXX
13433 # The library search path used internally by the compiler when linking
13434 # a shared library.
13435 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13437 # Method to check whether dependent libraries are shared objects.
13438 deplibs_check_method=$lt_deplibs_check_method
13440 # Command to use when deplibs_check_method == file_magic.
13441 file_magic_cmd=$lt_file_magic_cmd
13443 # Flag that allows shared libraries with undefined symbols to be built.
13444 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13446 # Flag that forces no undefined symbols.
13447 no_undefined_flag=$lt_no_undefined_flag_CXX
13449 # Commands used to finish a libtool library installation in a directory.
13450 finish_cmds=$lt_finish_cmds
13452 # Same as above, but a single script fragment to be evaled but not shown.
13453 finish_eval=$lt_finish_eval
13455 # Take the output of nm and produce a listing of raw symbols and C names.
13456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13458 # Transform the output of nm in a proper C declaration
13459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13461 # Transform the output of nm in a C name address pair
13462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13464 # This is the shared library runtime path variable.
13465 runpath_var=$runpath_var
13467 # This is the shared library path variable.
13468 shlibpath_var=$shlibpath_var
13470 # Is shlibpath searched before the hard-coded library search path?
13471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13473 # How to hardcode a shared library path into an executable.
13474 hardcode_action=$hardcode_action_CXX
13476 # Whether we should hardcode library paths into libraries.
13477 hardcode_into_libs=$hardcode_into_libs
13479 # Flag to hardcode \$libdir into a binary during linking.
13480 # This must work even if \$libdir does not exist.
13481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13483 # If ld is used when linking, flag to hardcode \$libdir into
13484 # a binary during linking. This must work even if \$libdir does
13486 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13488 # Whether we need a single -rpath flag with a separated argument.
13489 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13491 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13492 # resulting binary.
13493 hardcode_direct=$hardcode_direct_CXX
13495 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13496 # resulting binary.
13497 hardcode_minus_L=$hardcode_minus_L_CXX
13499 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13500 # the resulting binary.
13501 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13503 # Set to yes if building a shared library automatically hardcodes DIR into the library
13504 # and all subsequent libraries and executables linked against it.
13505 hardcode_automatic=$hardcode_automatic_CXX
13507 # Variables whose values should be saved in libtool wrapper scripts and
13508 # restored at relink time.
13509 variables_saved_for_relink="$variables_saved_for_relink"
13511 # Whether libtool must link a program against all its dependency libraries.
13512 link_all_deplibs=$link_all_deplibs_CXX
13514 # Compile-time system search path for libraries
13515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13517 # Run-time system search path for libraries
13518 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13520 # Fix the shell variable \$srcfile for the compiler.
13521 fix_srcfile_path="$fix_srcfile_path_CXX"
13523 # Set to yes if exported symbols are required.
13524 always_export_symbols=$always_export_symbols_CXX
13526 # The commands to list exported symbols.
13527 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13529 # The commands to extract the exported symbol list from a shared archive.
13530 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13532 # Symbols that should not be listed in the preloaded symbols.
13533 exclude_expsyms=$lt_exclude_expsyms_CXX
13535 # Symbols that must always be exported.
13536 include_expsyms=$lt_include_expsyms_CXX
13538 # ### END LIBTOOL TAG CONFIG: $tagname
13544 # If there is no Makefile yet, we rely on a make rule to execute
13545 # `config.status --recheck' to rerun these tests and create the
13546 # libtool script then.
13547 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13548 if test -f "$ltmain_in"; then
13549 test -f Makefile && make "$ltmain"
13555 ac_cpp='$CPP $CPPFLAGS'
13556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13564 with_gnu_ldcxx=$with_gnu_ld
13565 with_gnu_ld=$lt_save_with_gnu_ld
13566 lt_cv_path_LDCXX=$lt_cv_path_LD
13567 lt_cv_path_LD=$lt_save_path_LD
13568 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13569 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13577 if test -n "$F77" && test "X$F77" != "Xno"; then
13580 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13581 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13582 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13585 archive_cmds_need_lc_F77=no
13586 allow_undefined_flag_F77=
13587 always_export_symbols_F77=no
13588 archive_expsym_cmds_F77=
13589 export_dynamic_flag_spec_F77=
13590 hardcode_direct_F77=no
13591 hardcode_libdir_flag_spec_F77=
13592 hardcode_libdir_flag_spec_ld_F77=
13593 hardcode_libdir_separator_F77=
13594 hardcode_minus_L_F77=no
13595 hardcode_automatic_F77=no
13597 module_expsym_cmds_F77=
13598 link_all_deplibs_F77=unknown
13599 old_archive_cmds_F77=$old_archive_cmds
13600 no_undefined_flag_F77=
13601 whole_archive_flag_spec_F77=
13602 enable_shared_with_static_runtimes_F77=no
13604 # Source file extension for f77 test sources.
13607 # Object file extension for compiled f77 test sources.
13611 # Code to be used in simple compile tests
13612 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13614 # Code to be used in simple link tests
13615 lt_simple_link_test_code=" program t\n end\n"
13617 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13619 # If no C compiler was specified, use CC.
13622 # If no C compiler flags were specified, use CFLAGS.
13623 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13625 # Allow CC to be a program name with arguments.
13629 # save warnings/boilerplate of simple test code
13630 ac_outfile=conftest.$ac_objext
13631 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13632 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13633 _lt_compiler_boilerplate=`cat conftest.err`
13636 ac_outfile=conftest.$ac_objext
13637 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13638 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13639 _lt_linker_boilerplate=`cat conftest.err`
13643 # Allow CC to be a program name with arguments.
13648 for cc_temp in $compiler""; do
13650 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13651 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13656 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13659 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13660 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13661 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13662 echo "${ECHO_T}$can_build_shared" >&6
13664 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13665 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13666 test "$can_build_shared" = "no" && enable_shared=no
13668 # On AIX, shared libraries and static libraries use the same namespace, and
13669 # are all built from PIC.
13672 test "$enable_shared" = yes && enable_static=no
13673 if test -n "$RANLIB"; then
13674 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13675 postinstall_cmds='$RANLIB $lib'
13679 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13680 test "$enable_shared" = yes && enable_static=no
13684 echo "$as_me:$LINENO: result: $enable_shared" >&5
13685 echo "${ECHO_T}$enable_shared" >&6
13687 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13688 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13689 # Make sure either enable_shared or enable_static is yes.
13690 test "$enable_shared" = yes || enable_static=yes
13691 echo "$as_me:$LINENO: result: $enable_static" >&5
13692 echo "${ECHO_T}$enable_static" >&6
13697 lt_prog_compiler_wl_F77=
13698 lt_prog_compiler_pic_F77=
13699 lt_prog_compiler_static_F77=
13701 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13704 if test "$GCC" = yes; then
13705 lt_prog_compiler_wl_F77='-Wl,'
13706 lt_prog_compiler_static_F77='-static'
13710 # All AIX code is PIC.
13711 if test "$host_cpu" = ia64; then
13712 # AIX 5 now supports IA64 processor
13713 lt_prog_compiler_static_F77='-Bstatic'
13718 # FIXME: we need at least 68020 code to build shared libraries, but
13719 # adding the `-m68020' flag to GCC prevents building anything better,
13721 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13724 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13725 # PIC is the default for these OSes.
13728 mingw* | pw32* | os2*)
13729 # This hack is so that the source file can tell whether it is being
13730 # built for inclusion in a dll (and should export symbols for example).
13731 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13734 darwin* | rhapsody*)
13735 # PIC is the default on this platform
13736 # Common symbols not allowed in MH_DYLIB files
13737 lt_prog_compiler_pic_F77='-fno-common'
13741 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13742 # Instead, we relocate shared libraries at runtime.
13746 # Just because we use GCC doesn't mean we suddenly get shared libraries
13747 # on systems that don't support them.
13748 lt_prog_compiler_can_build_shared_F77=no
13753 if test -d /usr/nec; then
13754 lt_prog_compiler_pic_F77=-Kconform_pic
13759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13760 # not for PA HP-UX.
13766 lt_prog_compiler_pic_F77='-fPIC'
13772 lt_prog_compiler_pic_F77='-fPIC'
13776 # PORTME Check for flag to pass linker flags through the system compiler.
13779 lt_prog_compiler_wl_F77='-Wl,'
13780 if test "$host_cpu" = ia64; then
13781 # AIX 5 now supports IA64 processor
13782 lt_prog_compiler_static_F77='-Bstatic'
13784 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13788 # PIC is the default on this platform
13789 # Common symbols not allowed in MH_DYLIB files
13790 case $cc_basename in
13792 lt_prog_compiler_pic_F77='-qnocommon'
13793 lt_prog_compiler_wl_F77='-Wl,'
13798 mingw* | pw32* | os2*)
13799 # This hack is so that the source file can tell whether it is being
13800 # built for inclusion in a dll (and should export symbols for example).
13801 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13804 hpux9* | hpux10* | hpux11*)
13805 lt_prog_compiler_wl_F77='-Wl,'
13806 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13807 # not for PA HP-UX.
13813 lt_prog_compiler_pic_F77='+Z'
13816 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13817 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13820 irix5* | irix6* | nonstopux*)
13821 lt_prog_compiler_wl_F77='-Wl,'
13822 # PIC (with -KPIC) is the default.
13823 lt_prog_compiler_static_F77='-non_shared'
13827 lt_prog_compiler_pic_F77='-KPIC'
13828 lt_prog_compiler_static_F77='-Bstatic'
13832 case $cc_basename in
13834 lt_prog_compiler_wl_F77='-Wl,'
13835 lt_prog_compiler_pic_F77='-KPIC'
13836 lt_prog_compiler_static_F77='-static'
13838 pgcc* | pgf77* | pgf90* | pgf95*)
13839 # Portland Group compilers (*not* the Pentium gcc compiler,
13840 # which looks to be a dead project)
13841 lt_prog_compiler_wl_F77='-Wl,'
13842 lt_prog_compiler_pic_F77='-fpic'
13843 lt_prog_compiler_static_F77='-Bstatic'
13846 lt_prog_compiler_wl_F77='-Wl,'
13847 # All Alpha code is PIC.
13848 lt_prog_compiler_static_F77='-non_shared'
13853 osf3* | osf4* | osf5*)
13854 lt_prog_compiler_wl_F77='-Wl,'
13855 # All OSF/1 code is PIC.
13856 lt_prog_compiler_static_F77='-non_shared'
13860 lt_prog_compiler_pic_F77='-KPIC'
13861 lt_prog_compiler_static_F77='-Bstatic'
13862 case $cc_basename in
13863 f77* | f90* | f95*)
13864 lt_prog_compiler_wl_F77='-Qoption ld ';;
13866 lt_prog_compiler_wl_F77='-Wl,';;
13871 lt_prog_compiler_wl_F77='-Qoption ld '
13872 lt_prog_compiler_pic_F77='-PIC'
13873 lt_prog_compiler_static_F77='-Bstatic'
13876 sysv4 | sysv4.2uw2* | sysv4.3*)
13877 lt_prog_compiler_wl_F77='-Wl,'
13878 lt_prog_compiler_pic_F77='-KPIC'
13879 lt_prog_compiler_static_F77='-Bstatic'
13883 if test -d /usr/nec ;then
13884 lt_prog_compiler_pic_F77='-Kconform_pic'
13885 lt_prog_compiler_static_F77='-Bstatic'
13889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13890 lt_prog_compiler_wl_F77='-Wl,'
13891 lt_prog_compiler_pic_F77='-KPIC'
13892 lt_prog_compiler_static_F77='-Bstatic'
13896 lt_prog_compiler_wl_F77='-Wl,'
13897 lt_prog_compiler_can_build_shared_F77=no
13901 lt_prog_compiler_pic_F77='-pic'
13902 lt_prog_compiler_static_F77='-Bstatic'
13906 lt_prog_compiler_can_build_shared_F77=no
13911 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13912 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13915 # Check to make sure the PIC flag actually works.
13917 if test -n "$lt_prog_compiler_pic_F77"; then
13919 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13920 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13921 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 lt_prog_compiler_pic_works_F77=no
13925 ac_outfile=conftest.$ac_objext
13926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13927 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13928 # Insert the option either (1) after the last *FLAGS variable, or
13929 # (2) before a word containing "conftest.", or (3) at the end.
13930 # Note that $ac_compile itself does not contain backslashes and begins
13931 # with a dollar sign (not a hyphen), so the echo should work correctly.
13932 # The option is referenced via a variable to avoid confusing sed.
13933 lt_compile=`echo "$ac_compile" | $SED \
13934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13936 -e 's:$: $lt_compiler_flag:'`
13937 (eval echo "\"\$as_me:13937: $lt_compile\"" >&5)
13938 (eval "$lt_compile" 2>conftest.err)
13940 cat conftest.err >&5
13941 echo "$as_me:13941: \$? = $ac_status" >&5
13942 if (exit $ac_status) && test -s "$ac_outfile"; then
13943 # The compiler can only warn and ignore the option if not recognized
13944 # So say no if there are warnings other than the usual output.
13945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13948 lt_prog_compiler_pic_works_F77=yes
13954 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13955 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13957 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13958 case $lt_prog_compiler_pic_F77 in
13960 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13963 lt_prog_compiler_pic_F77=
13964 lt_prog_compiler_can_build_shared_F77=no
13969 # For platforms which do not support PIC, -DPIC is meaningless:
13971 lt_prog_compiler_pic_F77=
13974 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13979 # Check to make sure the static flag actually works.
13981 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13982 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13983 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13984 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 lt_prog_compiler_static_works_F77=no
13988 save_LDFLAGS="$LDFLAGS"
13989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13990 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13992 # The linker can only warn and ignore the option if not recognized
13993 # So say no if there are warnings
13994 if test -s conftest.err; then
13995 # Append any errors to the config.log.
13996 cat conftest.err 1>&5
13997 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13999 if diff conftest.exp conftest.er2 >/dev/null; then
14000 lt_prog_compiler_static_works_F77=yes
14003 lt_prog_compiler_static_works_F77=yes
14007 LDFLAGS="$save_LDFLAGS"
14010 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14011 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14013 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14016 lt_prog_compiler_static_F77=
14020 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14021 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14022 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 lt_cv_prog_compiler_c_o_F77=no
14026 $rm -r conftest 2>/dev/null
14030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14032 lt_compiler_flag="-o out/conftest2.$ac_objext"
14033 # Insert the option either (1) after the last *FLAGS variable, or
14034 # (2) before a word containing "conftest.", or (3) at the end.
14035 # Note that $ac_compile itself does not contain backslashes and begins
14036 # with a dollar sign (not a hyphen), so the echo should work correctly.
14037 lt_compile=`echo "$ac_compile" | $SED \
14038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14040 -e 's:$: $lt_compiler_flag:'`
14041 (eval echo "\"\$as_me:14041: $lt_compile\"" >&5)
14042 (eval "$lt_compile" 2>out/conftest.err)
14044 cat out/conftest.err >&5
14045 echo "$as_me:14045: \$? = $ac_status" >&5
14046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14048 # The compiler can only warn and ignore the option if not recognized
14049 # So say no if there are warnings
14050 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14053 lt_cv_prog_compiler_c_o_F77=yes
14058 # SGI C++ compiler will create directory out/ii_files/ for
14059 # template instantiation
14060 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14061 $rm out/* && rmdir out
14067 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14068 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14071 hard_links="nottested"
14072 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14073 # do not overwrite the value of need_locks provided by the user
14074 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14075 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14080 ln conftest.a conftest.b 2>&5 || hard_links=no
14081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14082 echo "$as_me:$LINENO: result: $hard_links" >&5
14083 echo "${ECHO_T}$hard_links" >&6
14084 if test "$hard_links" = no; then
14085 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14086 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14093 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14094 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14097 allow_undefined_flag_F77=
14098 enable_shared_with_static_runtimes_F77=no
14100 archive_expsym_cmds_F77=
14101 old_archive_From_new_cmds_F77=
14102 old_archive_from_expsyms_cmds_F77=
14103 export_dynamic_flag_spec_F77=
14104 whole_archive_flag_spec_F77=
14105 thread_safe_flag_spec_F77=
14106 hardcode_libdir_flag_spec_F77=
14107 hardcode_libdir_flag_spec_ld_F77=
14108 hardcode_libdir_separator_F77=
14109 hardcode_direct_F77=no
14110 hardcode_minus_L_F77=no
14111 hardcode_shlibpath_var_F77=unsupported
14112 link_all_deplibs_F77=unknown
14113 hardcode_automatic_F77=no
14115 module_expsym_cmds_F77=
14116 always_export_symbols_F77=no
14117 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14118 # include_expsyms should be a list of space-separated symbols to be *always*
14119 # included in the symbol list
14120 include_expsyms_F77=
14121 # exclude_expsyms can be an extended regexp of symbols to exclude
14122 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14123 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14124 # as well as any symbol that contains `d'.
14125 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14126 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14127 # platforms (ab)use it in PIC code, but their linkers get confused if
14128 # the symbol is explicitly referenced. Since portable code cannot
14129 # rely on this symbol name, it's probably fine to never include it in
14130 # preloaded symbol tables.
14131 extract_expsyms_cmds=
14132 # Just being paranoid about ensuring that cc_basename is set.
14133 for cc_temp in $compiler""; do
14135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14141 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14144 cygwin* | mingw* | pw32*)
14145 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14146 # When not using gcc, we currently assume that we are using
14147 # Microsoft Visual C++.
14148 if test "$GCC" != yes; then
14153 # we just hope/assume this is gcc and not c89 (= MSVC++)
14162 if test "$with_gnu_ld" = yes; then
14163 # If archive_cmds runs LD, not CC, wlarc should be empty
14166 # Set some defaults for GNU ld with shared library support. These
14167 # are reset later if shared libraries are not supported. Putting them
14168 # here allows them to be overridden if necessary.
14169 runpath_var=LD_RUN_PATH
14170 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14171 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14172 # ancient GNU ld didn't support --whole-archive et. al.
14173 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14174 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14176 whole_archive_flag_spec_F77=
14178 supports_anon_versioning=no
14179 case `$LD -v 2>/dev/null` in
14180 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14181 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14182 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14183 *\ 2.11.*) ;; # other 2.11 versions
14184 *) supports_anon_versioning=yes ;;
14187 # See if GNU ld supports shared libraries.
14189 aix3* | aix4* | aix5*)
14190 # On AIX/PPC, the GNU linker is very broken
14191 if test "$host_cpu" != ia64; then
14195 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14196 *** to be unable to reliably create shared libraries on AIX.
14197 *** Therefore, libtool is disabling shared libraries support. If you
14198 *** really care for shared libraries, you may want to modify your PATH
14199 *** so that a non-GNU linker is found, and then restart.
14206 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)'
14207 hardcode_libdir_flag_spec_F77='-L$libdir'
14208 hardcode_minus_L_F77=yes
14210 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14211 # that the semantics of dynamic libraries on AmigaOS, at least up
14212 # to version 4, is to share data among multiple programs linked
14213 # with the same dynamic library. Since this doesn't match the
14214 # behavior of shared libraries on other platforms, we can't use
14220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14221 allow_undefined_flag_F77=unsupported
14222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14223 # support --undefined. This deserves some investigation. FIXME
14224 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14230 cygwin* | mingw* | pw32*)
14231 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14232 # as there is no search path for DLLs.
14233 hardcode_libdir_flag_spec_F77='-L$libdir'
14234 allow_undefined_flag_F77=unsupported
14235 always_export_symbols_F77=no
14236 enable_shared_with_static_runtimes_F77=yes
14237 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14239 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14240 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14241 # If the export-symbols file already is a .def file (1st line
14242 # is EXPORTS), use it as is; otherwise, prepend...
14243 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14244 cp $export_symbols $output_objdir/$soname.def;
14246 echo EXPORTS > $output_objdir/$soname.def;
14247 cat $export_symbols >> $output_objdir/$soname.def;
14249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14256 hardcode_direct_F77=no
14257 hardcode_shlibpath_var_F77=no
14258 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14259 export_dynamic_flag_spec_F77='${wl}-E'
14260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14261 # Instead, shared libraries are loaded at an image base (0x10000000 by
14262 # default) and relocated if they conflict, which is a slow very memory
14263 # consuming and fragmenting process. To avoid this, we pick a random,
14264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14265 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14266 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14267 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14273 case $cc_basename,$host_cpu in
14274 pgcc*) # Portland Group C compiler
14275 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14276 tmp_addflag=' $pic_flag'
14278 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14279 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14280 tmp_addflag=' $pic_flag -Mnomain' ;;
14281 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14282 tmp_addflag=' -i_dynamic' ;;
14283 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14284 tmp_addflag=' -i_dynamic -nofor_main' ;;
14285 ifc* | ifort*) # Intel Fortran compiler
14286 tmp_addflag=' -nofor_main' ;;
14288 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14290 if test $supports_anon_versioning = yes; then
14291 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14293 $echo "local: *; };" >> $output_objdir/$libname.ver~
14294 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14296 link_all_deplibs_F77=no
14302 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14304 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14307 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14308 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14313 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14317 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14318 *** create shared libraries on Solaris systems. Therefore, libtool
14319 *** is disabling shared libraries support. We urge you to upgrade GNU
14320 *** binutils to release 2.9.1 or newer. Another option is to modify
14321 *** your PATH or compiler configuration so that the native linker is
14322 *** used, and then restart.
14325 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14326 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14327 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14334 case `$LD -v 2>&1` in
14335 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14339 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14340 *** reliably create shared libraries on SCO systems. Therefore, libtool
14341 *** is disabling shared libraries support. We urge you to upgrade GNU
14342 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14343 *** your PATH or compiler configuration so that the native linker is
14344 *** used, and then restart.
14349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14350 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14351 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14352 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14361 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14363 hardcode_direct_F77=yes
14364 hardcode_shlibpath_var_F77=no
14368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14369 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14370 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14377 if test "$ld_shlibs_F77" = no; then
14379 hardcode_libdir_flag_spec_F77=
14380 export_dynamic_flag_spec_F77=
14381 whole_archive_flag_spec_F77=
14384 # PORTME fill in a description of your system's linker (not GNU ld)
14387 allow_undefined_flag_F77=unsupported
14388 always_export_symbols_F77=yes
14389 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'
14390 # Note: this linker hardcodes the directories in LIBPATH if there
14391 # are no directories specified by -L.
14392 hardcode_minus_L_F77=yes
14393 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14394 # Neither direct hardcoding nor static linking is supported with a
14396 hardcode_direct_F77=unsupported
14401 if test "$host_cpu" = ia64; then
14402 # On IA64, the linker does run time linking by default, so we don't
14403 # have to do anything special.
14404 aix_use_runtimelinking=no
14405 exp_sym_flag='-Bexport'
14408 # If we're using GNU nm, then we don't want the "-C" option.
14409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14411 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'
14413 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'
14415 aix_use_runtimelinking=no
14417 # Test if we are trying to use run time linking or normal
14418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14419 # need to do runtime linking.
14420 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14421 for ld_flag in $LDFLAGS; do
14422 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14423 aix_use_runtimelinking=yes
14430 exp_sym_flag='-bexport'
14431 no_entry_flag='-bnoentry'
14434 # When large executables or shared objects are built, AIX ld can
14435 # have problems creating the table of contents. If linking a library
14436 # or program results in "error TOC overflow" add -mminimal-toc to
14437 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14438 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14440 archive_cmds_F77=''
14441 hardcode_direct_F77=yes
14442 hardcode_libdir_separator_F77=':'
14443 link_all_deplibs_F77=yes
14445 if test "$GCC" = yes; then
14446 case $host_os in aix4.[012]|aix4.[012].*)
14447 # We only want to do this on AIX 4.2 and lower, the check
14448 # below for broken collect2 doesn't work under 4.3+
14449 collect2name=`${CC} -print-prog-name=collect2`
14450 if test -f "$collect2name" && \
14451 strings "$collect2name" | grep resolve_lib_name >/dev/null
14453 # We have reworked collect2
14454 hardcode_direct_F77=yes
14456 # We have old collect2
14457 hardcode_direct_F77=unsupported
14458 # It fails to find uninstalled libraries when the uninstalled
14459 # path is not listed in the libpath. Setting hardcode_minus_L
14460 # to unsupported forces relinking
14461 hardcode_minus_L_F77=yes
14462 hardcode_libdir_flag_spec_F77='-L$libdir'
14463 hardcode_libdir_separator_F77=
14467 shared_flag='-shared'
14468 if test "$aix_use_runtimelinking" = yes; then
14469 shared_flag="$shared_flag "'${wl}-G'
14473 if test "$host_cpu" = ia64; then
14474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14475 # chokes on -Wl,-G. The following line is correct:
14478 if test "$aix_use_runtimelinking" = yes; then
14479 shared_flag='${wl}-G'
14481 shared_flag='${wl}-bM:SRE'
14486 # It seems that -bexpall does not export symbols beginning with
14487 # underscore (_), so it is better to generate a list of symbols to export.
14488 always_export_symbols_F77=yes
14489 if test "$aix_use_runtimelinking" = yes; then
14490 # Warning - without using the other runtime loading flags (-brtl),
14491 # -berok will link without error, but may produce a broken library.
14492 allow_undefined_flag_F77='-berok'
14493 # Determine the default libpath from the value encoded in an empty executable.
14494 cat >conftest.$ac_ext <<_ACEOF
14499 rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14501 (eval $ac_link) 2>conftest.er1
14503 grep -v '^ *+' conftest.er1 >conftest.err
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510 (eval $ac_try) 2>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; } &&
14514 { ac_try='test -s conftest$ac_exeext'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14521 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14523 # Check for a 64-bit object if we didn't find anything.
14524 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; }
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14531 rm -f conftest.err conftest.$ac_objext \
14532 conftest$ac_exeext conftest.$ac_ext
14533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14535 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14536 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14538 if test "$host_cpu" = ia64; then
14539 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14540 allow_undefined_flag_F77="-z nodefs"
14541 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14543 # Determine the default libpath from the value encoded in an empty executable.
14544 cat >conftest.$ac_ext <<_ACEOF
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551 (eval $ac_link) 2>conftest.er1
14553 grep -v '^ *+' conftest.er1 >conftest.err
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
14558 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; } &&
14564 { ac_try='test -s conftest$ac_exeext'
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14571 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14573 # Check for a 64-bit object if we didn't find anything.
14574 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; }
14577 echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14581 rm -f conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14585 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14586 # Warning - without using the other run time loading flags,
14587 # -berok will link without error, but may produce a broken library.
14588 no_undefined_flag_F77=' ${wl}-bernotok'
14589 allow_undefined_flag_F77=' ${wl}-berok'
14590 # Exported symbols can be pulled into shared objects from archives
14591 whole_archive_flag_spec_F77='$convenience'
14592 archive_cmds_need_lc_F77=yes
14593 # This is similar to how AIX traditionally builds its shared libraries.
14594 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14600 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)'
14601 hardcode_libdir_flag_spec_F77='-L$libdir'
14602 hardcode_minus_L_F77=yes
14603 # see comment about different semantics on the GNU ld section
14608 export_dynamic_flag_spec_F77=-rdynamic
14611 cygwin* | mingw* | pw32*)
14612 # When not using gcc, we currently assume that we are using
14613 # Microsoft Visual C++.
14614 # hardcode_libdir_flag_spec is actually meaningless, as there is
14615 # no search path for DLLs.
14616 hardcode_libdir_flag_spec_F77=' '
14617 allow_undefined_flag_F77=unsupported
14618 # Tell ltmain to make .lib files, not .a files.
14620 # Tell ltmain to make .dll files, not .so files.
14622 # FIXME: Setting linknames here is a bad hack.
14623 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14624 # The linker will automatically build a .lib file if we build a DLL.
14625 old_archive_From_new_cmds_F77='true'
14626 # FIXME: Should let the user specify the lib program.
14627 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14628 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14629 enable_shared_with_static_runtimes_F77=yes
14632 darwin* | rhapsody*)
14634 rhapsody* | darwin1.[012])
14635 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14638 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14639 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14641 case ${MACOSX_DEPLOYMENT_TARGET} in
14643 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14646 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14652 archive_cmds_need_lc_F77=no
14653 hardcode_direct_F77=no
14654 hardcode_automatic_F77=yes
14655 hardcode_shlibpath_var_F77=unsupported
14656 whole_archive_flag_spec_F77=''
14657 link_all_deplibs_F77=yes
14658 if test "$GCC" = yes ; then
14659 output_verbose_link_cmd='echo'
14660 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14661 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14662 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14663 archive_expsym_cmds_F77='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}'
14664 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}'
14666 case $cc_basename in
14668 output_verbose_link_cmd='echo'
14669 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14670 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14671 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14672 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14673 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}'
14683 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14684 hardcode_libdir_flag_spec_F77='-L$libdir'
14685 hardcode_shlibpath_var_F77=no
14692 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14693 # support. Future versions do this automatically, but an explicit c++rt0.o
14694 # does not break anything, and helps significantly (at the cost of a little
14697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14698 hardcode_libdir_flag_spec_F77='-R$libdir'
14699 hardcode_direct_F77=yes
14700 hardcode_shlibpath_var_F77=no
14703 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14705 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14706 hardcode_direct_F77=yes
14707 hardcode_minus_L_F77=yes
14708 hardcode_shlibpath_var_F77=no
14711 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14712 freebsd* | dragonfly*)
14713 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14714 hardcode_libdir_flag_spec_F77='-R$libdir'
14715 hardcode_direct_F77=yes
14716 hardcode_shlibpath_var_F77=no
14719 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14721 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14722 hardcode_libdir_flag_spec_F77='-R$libdir'
14723 hardcode_direct_F77=yes
14724 hardcode_shlibpath_var_F77=no
14725 link_all_deplibs_F77=no
14729 if test "$GCC" = yes; then
14730 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'
14732 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'
14734 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14735 hardcode_libdir_separator_F77=:
14736 hardcode_direct_F77=yes
14738 # hardcode_minus_L: Not really in the search PATH,
14739 # but as the default location of the library.
14740 hardcode_minus_L_F77=yes
14741 export_dynamic_flag_spec_F77='${wl}-E'
14745 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14746 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14748 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14750 if test "$with_gnu_ld" = no; then
14751 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14752 hardcode_libdir_separator_F77=:
14754 hardcode_direct_F77=yes
14755 export_dynamic_flag_spec_F77='${wl}-E'
14757 # hardcode_minus_L: Not really in the search PATH,
14758 # but as the default location of the library.
14759 hardcode_minus_L_F77=yes
14764 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14767 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14770 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14773 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14779 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14782 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14785 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14789 if test "$with_gnu_ld" = no; then
14790 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14791 hardcode_libdir_separator_F77=:
14795 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14796 hardcode_direct_F77=no
14797 hardcode_shlibpath_var_F77=no
14800 hardcode_direct_F77=yes
14801 export_dynamic_flag_spec_F77='${wl}-E'
14803 # hardcode_minus_L: Not really in the search PATH,
14804 # but as the default location of the library.
14805 hardcode_minus_L_F77=yes
14811 irix5* | irix6* | nonstopux*)
14812 if test "$GCC" = yes; then
14813 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'
14815 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'
14816 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14818 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14819 hardcode_libdir_separator_F77=:
14820 link_all_deplibs_F77=yes
14823 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14825 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14827 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14829 hardcode_libdir_flag_spec_F77='-R$libdir'
14830 hardcode_direct_F77=yes
14831 hardcode_shlibpath_var_F77=no
14835 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14836 hardcode_direct_F77=yes
14837 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14838 hardcode_libdir_separator_F77=:
14839 hardcode_shlibpath_var_F77=no
14843 hardcode_direct_F77=yes
14844 hardcode_shlibpath_var_F77=no
14845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14846 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14847 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14848 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14849 export_dynamic_flag_spec_F77='${wl}-E'
14852 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14853 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14854 hardcode_libdir_flag_spec_F77='-R$libdir'
14857 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14858 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14865 hardcode_libdir_flag_spec_F77='-L$libdir'
14866 hardcode_minus_L_F77=yes
14867 allow_undefined_flag_F77=unsupported
14868 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'
14869 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14873 if test "$GCC" = yes; then
14874 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14875 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'
14877 allow_undefined_flag_F77=' -expect_unresolved \*'
14878 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'
14880 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14881 hardcode_libdir_separator_F77=:
14884 osf4* | osf5*) # as osf3* with the addition of -msym flag
14885 if test "$GCC" = yes; then
14886 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14887 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'
14888 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14890 allow_undefined_flag_F77=' -expect_unresolved \*'
14891 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'
14892 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~
14893 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14895 # Both c and cxx compiler support -rpath directly
14896 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14898 hardcode_libdir_separator_F77=:
14902 no_undefined_flag_F77=' -z text'
14903 if test "$GCC" = yes; then
14905 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14906 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14907 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14910 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14911 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14912 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14914 hardcode_libdir_flag_spec_F77='-R$libdir'
14915 hardcode_shlibpath_var_F77=no
14917 solaris2.[0-5] | solaris2.[0-5].*) ;;
14919 # The compiler driver will combine linker options so we
14920 # cannot just pass the convience library names through
14921 # without $wl, iff we do not link with $LD.
14922 # Luckily, gcc supports the same syntax we need for Sun Studio.
14923 # Supported since Solaris 2.6 (maybe 2.5.1?)
14926 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14928 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14931 link_all_deplibs_F77=yes
14935 if test "x$host_vendor" = xsequent; then
14936 # Use $CC to link under sequent, because it throws in some extra .o
14937 # files that make .init and .fini sections work.
14938 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14940 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14942 hardcode_libdir_flag_spec_F77='-L$libdir'
14943 hardcode_direct_F77=yes
14944 hardcode_minus_L_F77=yes
14945 hardcode_shlibpath_var_F77=no
14949 case $host_vendor in
14951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14952 hardcode_direct_F77=yes # is this really true???
14955 ## LD is ld it makes a PLAMLIB
14956 ## CC just makes a GrossModule.
14957 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14958 reload_cmds_F77='$CC -r -o $output$reload_objs'
14959 hardcode_direct_F77=no
14962 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14963 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14966 runpath_var='LD_RUN_PATH'
14967 hardcode_shlibpath_var_F77=no
14971 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14972 hardcode_shlibpath_var_F77=no
14973 export_dynamic_flag_spec_F77='-Bexport'
14977 if test -d /usr/nec; then
14978 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14979 hardcode_shlibpath_var_F77=no
14980 runpath_var=LD_RUN_PATH
14981 hardcode_runpath_var=yes
14986 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14987 no_undefined_flag_F77='${wl}-z,text'
14988 archive_cmds_need_lc_F77=no
14989 hardcode_shlibpath_var_F77=no
14990 runpath_var='LD_RUN_PATH'
14992 if test "$GCC" = yes; then
14993 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14994 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14997 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15001 sysv5* | sco3.2v5* | sco5v6*)
15002 # Note: We can NOT use -z defs as we might desire, because we do not
15003 # link with -lc, and that would cause any symbols used from libc to
15004 # always be unresolved, which means just about no library would
15005 # ever link correctly. If we're not using GNU ld we use -z text
15006 # though, which does catch some bad symbols but isn't as heavy-handed
15008 no_undefined_flag_F77='${wl}-z,text'
15009 allow_undefined_flag_F77='${wl}-z,nodefs'
15010 archive_cmds_need_lc_F77=no
15011 hardcode_shlibpath_var_F77=no
15012 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15013 hardcode_libdir_separator_F77=':'
15014 link_all_deplibs_F77=yes
15015 export_dynamic_flag_spec_F77='${wl}-Bexport'
15016 runpath_var='LD_RUN_PATH'
15018 if test "$GCC" = yes; then
15019 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15020 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15022 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15023 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15028 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15029 hardcode_libdir_flag_spec_F77='-L$libdir'
15030 hardcode_shlibpath_var_F77=no
15039 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15040 echo "${ECHO_T}$ld_shlibs_F77" >&6
15041 test "$ld_shlibs_F77" = no && can_build_shared=no
15044 # Do we need to explicitly link libc?
15046 case "x$archive_cmds_need_lc_F77" in
15048 # Assume -lc should be added
15049 archive_cmds_need_lc_F77=yes
15051 if test "$enable_shared" = yes && test "$GCC" = yes; then
15052 case $archive_cmds_F77 in
15054 # FIXME: we may have to deal with multi-command sequences.
15057 # Test whether the compiler implicitly links with -lc since on some
15058 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15059 # to ld, don't add -lc before -lgcc.
15060 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15061 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066 (eval $ac_compile) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } 2>conftest.err; then
15072 libobjs=conftest.$ac_objext
15074 wl=$lt_prog_compiler_wl_F77
15075 pic_flag=$lt_prog_compiler_pic_F77
15081 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15082 allow_undefined_flag_F77=
15083 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15084 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }
15089 archive_cmds_need_lc_F77=no
15091 archive_cmds_need_lc_F77=yes
15093 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15095 cat conftest.err 1>&5
15098 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15099 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15106 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15107 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15108 library_names_spec=
15109 libname_spec='lib$name'
15113 postuninstall_cmds=
15117 shlibpath_overrides_runpath=unknown
15119 dynamic_linker="$host_os ld.so"
15120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15121 if test "$GCC" = yes; then
15122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15123 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15124 # if the path contains ";" then we assume it to be the separator
15125 # otherwise default to the standard path separator (i.e. ":") - it is
15126 # assumed that no part of a normal pathname contains ";" but that should
15127 # okay in the real world where ";" in dirpaths is itself problematic.
15128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15133 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15135 need_lib_prefix=unknown
15136 hardcode_into_libs=no
15138 # when you set need_version to no, make sure it does not cause -set_version
15139 # flags to be left without arguments
15140 need_version=unknown
15145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15146 shlibpath_var=LIBPATH
15148 # AIX 3 has no versioning support, so we append a major version to the name.
15149 soname_spec='${libname}${release}${shared_ext}$major'
15156 hardcode_into_libs=yes
15157 if test "$host_cpu" = ia64; then
15158 # AIX 5 supports IA64
15159 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15160 shlibpath_var=LD_LIBRARY_PATH
15162 # With GCC up to 2.95.x, collect2 would create an import file
15163 # for dependence libraries. The import file would start with
15164 # the line `#! .'. This would cause the generated library to
15165 # depend on `.', always an invalid library. This was fixed in
15166 # development snapshots of GCC prior to 3.0.
15168 aix4 | aix4.[01] | aix4.[01].*)
15169 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15171 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15174 can_build_shared=no
15178 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15179 # soname into executable. Probably we can add versioning support to
15180 # collect2, so additional links can be useful in future.
15181 if test "$aix_use_runtimelinking" = yes; then
15182 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15183 # instead of lib<name>.a to let people know that these are not
15184 # typical AIX shared libraries.
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187 # We preserve .a as extension for shared libraries through AIX4.2
15188 # and later when we are not doing run time linking.
15189 library_names_spec='${libname}${release}.a $libname.a'
15190 soname_spec='${libname}${release}${shared_ext}$major'
15192 shlibpath_var=LIBPATH
15197 library_names_spec='$libname.ixlibrary $libname.a'
15198 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15199 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'
15203 library_names_spec='${libname}${shared_ext}'
15204 dynamic_linker="$host_os ld.so"
15205 shlibpath_var=LIBRARY_PATH
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15216 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15217 # the default ld.so.conf also contains /usr/contrib/lib and
15218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15219 # libtool to hard-code these into programs
15222 cygwin* | mingw* | pw32*)
15223 version_type=windows
15228 case $GCC,$host_os in
15229 yes,cygwin* | yes,mingw* | yes,pw32*)
15230 library_names_spec='$libname.dll.a'
15231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15232 postinstall_cmds='base_file=`basename \${file}`~
15233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15234 dldir=$destdir/`dirname \$dlpath`~
15235 test -d \$dldir || mkdir -p \$dldir~
15236 $install_prog $dir/$dlname \$dldir/$dlname~
15237 chmod a+x \$dldir/$dlname'
15238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15239 dlpath=$dir/\$dldll~
15241 shlibpath_overrides_runpath=yes
15245 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15246 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15247 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15250 # MinGW DLLs use traditional 'lib' prefix
15251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15252 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15253 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15254 # It is most probably a Windows format PATH printed by
15255 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15256 # path with ; separators, and with drive letters. We can handle the
15257 # drive letters (cygwin fileutils understands them), so leave them,
15258 # especially as we might pass files found there to a mingw objdump,
15259 # which wouldn't understand a cygwinified path. Ahh.
15260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15266 # pw32 DLLs use 'pw' prefix rather than 'lib'
15267 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15273 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15276 dynamic_linker='Win32 ld.exe'
15277 # FIXME: first we should search . and the directory the executable is in
15281 darwin* | rhapsody*)
15282 dynamic_linker="$host_os dyld"
15283 version_type=darwin
15286 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15287 soname_spec='${libname}${release}${major}$shared_ext'
15288 shlibpath_overrides_runpath=yes
15289 shlibpath_var=DYLD_LIBRARY_PATH
15290 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15291 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15292 if test "$GCC" = yes; then
15293 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"`
15295 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 shlibpath_var=LD_LIBRARY_PATH
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 shlibpath_var=LD_LIBRARY_PATH
15320 shlibpath_overrides_runpath=no
15321 hardcode_into_libs=yes
15322 dynamic_linker='GNU ld.so'
15325 freebsd* | dragonfly*)
15326 # DragonFly does not have aout. When/if they implement a new
15327 # versioning mechanism, adjust this.
15328 if test -x /usr/bin/objformat; then
15329 objformat=`/usr/bin/objformat`
15332 freebsd[123]*) objformat=aout ;;
15333 *) objformat=elf ;;
15336 version_type=freebsd-$objformat
15337 case $version_type in
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15348 shlibpath_var=LD_LIBRARY_PATH
15351 shlibpath_overrides_runpath=yes
15353 freebsd3.[01]* | freebsdelf3.[01]*)
15354 shlibpath_overrides_runpath=yes
15355 hardcode_into_libs=yes
15357 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15358 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15359 shlibpath_overrides_runpath=no
15360 hardcode_into_libs=yes
15362 freebsd*) # from 4.6 on
15363 shlibpath_overrides_runpath=yes
15364 hardcode_into_libs=yes
15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15374 soname_spec='${libname}${release}${shared_ext}$major'
15375 shlibpath_var=LD_LIBRARY_PATH
15376 hardcode_into_libs=yes
15379 hpux9* | hpux10* | hpux11*)
15380 # Give a soname corresponding to the major version so that dld.sl refuses to
15381 # link against other versions.
15388 hardcode_into_libs=yes
15389 dynamic_linker="$host_os dld.so"
15390 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 if test "X$HPUX_IA64_MODE" = X32; then
15395 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15397 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15403 hardcode_into_libs=yes
15404 dynamic_linker="$host_os dld.sl"
15405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408 soname_spec='${libname}${release}${shared_ext}$major'
15409 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15414 dynamic_linker="$host_os dld.sl"
15415 shlibpath_var=SHLIB_PATH
15416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15421 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15422 postinstall_cmds='chmod 555 $lib'
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15432 shlibpath_var=LD_LIBRARY_PATH
15433 shlibpath_overrides_runpath=no
15434 hardcode_into_libs=yes
15437 irix5* | irix6* | nonstopux*)
15439 nonstopux*) version_type=nonstopux ;;
15441 if test "$lt_cv_prog_gnu_ld" = yes; then
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15452 irix5* | nonstopux*)
15453 libsuff= shlibsuff=
15456 case $LD in # libtool.m4 will add one of these switches to LD
15457 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15458 libsuff= shlibsuff= libmagic=32-bit;;
15459 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15460 libsuff=32 shlibsuff=N32 libmagic=N32;;
15461 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15462 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15463 *) libsuff= shlibsuff= libmagic=never-match;;
15467 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15468 shlibpath_overrides_runpath=no
15469 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15470 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15471 hardcode_into_libs=yes
15474 # No shared lib support for Linux oldld, aout, or coff.
15475 linux*oldld* | linux*aout* | linux*coff*)
15479 # This must be Linux ELF.
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 shlibpath_overrides_runpath=no
15489 # This implies no fast_install, which is unacceptable.
15490 # Some rework will be needed to allow for fast_install
15491 # before this can be enabled.
15492 hardcode_into_libs=yes
15494 # Append ld.so.conf contents to the search path
15495 if test -f /etc/ld.so.conf; then
15496 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15497 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15500 # We used to test for /lib/ld.so.1 and disable shared libraries on
15501 # powerpc, because MkLinux only supported shared libraries with the
15502 # GNU dynamic linker. Since this was broken with cross compilers,
15503 # most powerpc-linux boxes support dynamic linking these days and
15504 # people can always --disable-shared, the test was removed, and we
15505 # assume the GNU/Linux dynamic linker is in use.
15506 dynamic_linker='GNU/Linux ld.so'
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15514 soname_spec='${libname}${release}${shared_ext}$major'
15515 shlibpath_var=LD_LIBRARY_PATH
15516 shlibpath_overrides_runpath=no
15517 hardcode_into_libs=yes
15518 dynamic_linker='NetBSD ld.elf_so'
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 shlibpath_overrides_runpath=no
15529 hardcode_into_libs=yes
15530 dynamic_linker='GNU ld.so'
15537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15540 dynamic_linker='NetBSD (a.out) ld.so'
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15543 soname_spec='${libname}${release}${shared_ext}$major'
15544 dynamic_linker='NetBSD ld.elf_so'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=yes
15548 hardcode_into_libs=yes
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554 shlibpath_var=LD_LIBRARY_PATH
15555 shlibpath_overrides_runpath=yes
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 shlibpath_var=LD_LIBRARY_PATH
15565 shlibpath_overrides_runpath=yes
15570 sys_lib_dlsearch_path_spec="/usr/lib"
15572 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15574 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15575 *) need_version=no ;;
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15579 shlibpath_var=LD_LIBRARY_PATH
15580 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15582 openbsd2.[89] | openbsd2.[89].*)
15583 shlibpath_overrides_runpath=no
15586 shlibpath_overrides_runpath=yes
15590 shlibpath_overrides_runpath=yes
15595 libname_spec='$name'
15598 library_names_spec='$libname${shared_ext} $libname.a'
15599 dynamic_linker='OS/2 ld.exe'
15600 shlibpath_var=LIBPATH
15603 osf3* | osf4* | osf5*)
15607 soname_spec='${libname}${release}${shared_ext}$major'
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609 shlibpath_var=LD_LIBRARY_PATH
15610 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15611 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 shlibpath_overrides_runpath=yes
15622 hardcode_into_libs=yes
15623 # ldd complains unless libraries are executable
15624 postinstall_cmds='chmod +x $lib'
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15630 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15631 shlibpath_var=LD_LIBRARY_PATH
15632 shlibpath_overrides_runpath=yes
15633 if test "$with_gnu_ld" = yes; then
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 shlibpath_var=LD_LIBRARY_PATH
15644 case $host_vendor in
15646 shlibpath_overrides_runpath=no
15648 export_dynamic_flag_spec='${wl}-Blargedynsym'
15649 runpath_var=LD_RUN_PATH
15657 shlibpath_overrides_runpath=no
15658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15664 if test -d /usr/nec ;then
15666 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15667 soname_spec='$libname${shared_ext}.$major'
15668 shlibpath_var=LD_LIBRARY_PATH
15672 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15673 version_type=freebsd-elf
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 shlibpath_var=LD_LIBRARY_PATH
15679 hardcode_into_libs=yes
15680 if test "$with_gnu_ld" = yes; then
15681 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15682 shlibpath_overrides_runpath=no
15684 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15685 shlibpath_overrides_runpath=yes
15688 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15692 sys_lib_dlsearch_path_spec='/usr/lib'
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15698 soname_spec='${libname}${release}${shared_ext}$major'
15699 shlibpath_var=LD_LIBRARY_PATH
15706 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15707 echo "${ECHO_T}$dynamic_linker" >&6
15708 test "$dynamic_linker" = no && can_build_shared=no
15710 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15711 if test "$GCC" = yes; then
15712 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15715 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15716 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15717 hardcode_action_F77=
15718 if test -n "$hardcode_libdir_flag_spec_F77" || \
15719 test -n "$runpath_var_F77" || \
15720 test "X$hardcode_automatic_F77" = "Xyes" ; then
15722 # We can hardcode non-existant directories.
15723 if test "$hardcode_direct_F77" != no &&
15724 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15725 # have to relink, otherwise we might link with an installed library
15726 # when we should be linking with a yet-to-be-installed one
15727 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15728 test "$hardcode_minus_L_F77" != no; then
15729 # Linking always hardcodes the temporary library directory.
15730 hardcode_action_F77=relink
15732 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15733 hardcode_action_F77=immediate
15736 # We cannot hardcode anything, or else we can only hardcode existing
15738 hardcode_action_F77=unsupported
15740 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15741 echo "${ECHO_T}$hardcode_action_F77" >&6
15743 if test "$hardcode_action_F77" = relink; then
15744 # Fast installation is not supported
15745 enable_fast_install=no
15746 elif test "$shlibpath_overrides_runpath" = yes ||
15747 test "$enable_shared" = no; then
15748 # Fast installation is not necessary
15749 enable_fast_install=needless
15753 # The else clause should only fire when bootstrapping the
15754 # libtool distribution, otherwise you forgot to ship ltmain.sh
15755 # with your package, and you will get complaints that there are
15756 # no rules to generate ltmain.sh.
15757 if test -f "$ltmain"; then
15758 # See if we are running on zsh, and set the options which allow our commands through
15759 # without removal of \ escapes.
15760 if test -n "${ZSH_VERSION+set}" ; then
15761 setopt NO_GLOB_SUBST
15763 # Now quote all the things that may contain metacharacters while being
15764 # careful not to overquote the AC_SUBSTed values. We take copies of the
15765 # variables and quote the copies for generation of the libtool script.
15766 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15768 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15769 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15770 deplibs_check_method reload_flag reload_cmds need_locks \
15771 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15772 lt_cv_sys_global_symbol_to_c_name_address \
15773 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15774 old_postinstall_cmds old_postuninstall_cmds \
15778 lt_prog_compiler_wl_F77 \
15779 lt_prog_compiler_pic_F77 \
15780 lt_prog_compiler_static_F77 \
15781 lt_prog_compiler_no_builtin_flag_F77 \
15782 export_dynamic_flag_spec_F77 \
15783 thread_safe_flag_spec_F77 \
15784 whole_archive_flag_spec_F77 \
15785 enable_shared_with_static_runtimes_F77 \
15786 old_archive_cmds_F77 \
15787 old_archive_from_new_cmds_F77 \
15788 predep_objects_F77 \
15789 postdep_objects_F77 \
15792 compiler_lib_search_path_F77 \
15794 archive_expsym_cmds_F77 \
15795 postinstall_cmds_F77 \
15796 postuninstall_cmds_F77 \
15797 old_archive_from_expsyms_cmds_F77 \
15798 allow_undefined_flag_F77 \
15799 no_undefined_flag_F77 \
15800 export_symbols_cmds_F77 \
15801 hardcode_libdir_flag_spec_F77 \
15802 hardcode_libdir_flag_spec_ld_F77 \
15803 hardcode_libdir_separator_F77 \
15804 hardcode_automatic_F77 \
15806 module_expsym_cmds_F77 \
15807 lt_cv_prog_compiler_c_o_F77 \
15808 exclude_expsyms_F77 \
15809 include_expsyms_F77; do
15812 old_archive_cmds_F77 | \
15813 old_archive_from_new_cmds_F77 | \
15814 archive_cmds_F77 | \
15815 archive_expsym_cmds_F77 | \
15816 module_cmds_F77 | \
15817 module_expsym_cmds_F77 | \
15818 old_archive_from_expsyms_cmds_F77 | \
15819 export_symbols_cmds_F77 | \
15820 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15821 postinstall_cmds | postuninstall_cmds | \
15822 old_postinstall_cmds | old_postuninstall_cmds | \
15823 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15824 # Double-quote double-evaled strings.
15825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15834 *'\$0 --fallback-echo"')
15835 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15841 cat <<__EOF__ >> "$cfgfile"
15842 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15844 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15846 # Shell to use when invoking shell scripts.
15849 # Whether or not to build shared libraries.
15850 build_libtool_libs=$enable_shared
15852 # Whether or not to build static libraries.
15853 build_old_libs=$enable_static
15855 # Whether or not to add -lc for building shared libraries.
15856 build_libtool_need_lc=$archive_cmds_need_lc_F77
15858 # Whether or not to disallow shared libs when runtime libs are static
15859 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15861 # Whether or not to optimize for fast installation.
15862 fast_install=$enable_fast_install
15865 host_alias=$host_alias
15869 # The build system.
15870 build_alias=$build_alias
15874 # An echo program that does not interpret backslashes.
15879 AR_FLAGS=$lt_AR_FLAGS
15884 # LTCC compiler flags.
15885 LTCFLAGS=$lt_LTCFLAGS
15887 # A language-specific compiler.
15888 CC=$lt_compiler_F77
15890 # Is the compiler the GNU C compiler?
15896 # The linker used to build libraries.
15899 # Whether we need hard or soft links.
15902 # A BSD-compatible nm program.
15905 # A symbol stripping program
15908 # Used to examine libraries when file_magic_cmd begins "file"
15909 MAGIC_CMD=$MAGIC_CMD
15911 # Used on cygwin: DLL creation program.
15914 # Used on cygwin: object dumper.
15917 # Used on cygwin: assembler.
15920 # The name of the directory that contains temporary libtool files.
15923 # How to create reloadable object files.
15924 reload_flag=$lt_reload_flag
15925 reload_cmds=$lt_reload_cmds
15927 # How to pass a linker flag through the compiler.
15928 wl=$lt_lt_prog_compiler_wl_F77
15930 # Object file suffix (normally "o").
15931 objext="$ac_objext"
15933 # Old archive suffix (normally "a").
15936 # Shared library suffix (normally ".so").
15937 shrext_cmds='$shrext_cmds'
15939 # Executable file suffix (normally "").
15942 # Additional compiler flags for building library objects.
15943 pic_flag=$lt_lt_prog_compiler_pic_F77
15946 # What is the maximum length of a command?
15947 max_cmd_len=$lt_cv_sys_max_cmd_len
15949 # Does compiler simultaneously support -c and -o options?
15950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15952 # Must we lock files when doing compilation?
15953 need_locks=$lt_need_locks
15955 # Do we need the lib prefix for modules?
15956 need_lib_prefix=$need_lib_prefix
15958 # Do we need a version for libraries?
15959 need_version=$need_version
15961 # Whether dlopen is supported.
15962 dlopen_support=$enable_dlopen
15964 # Whether dlopen of programs is supported.
15965 dlopen_self=$enable_dlopen_self
15967 # Whether dlopen of statically linked programs is supported.
15968 dlopen_self_static=$enable_dlopen_self_static
15970 # Compiler flag to prevent dynamic linking.
15971 link_static_flag=$lt_lt_prog_compiler_static_F77
15973 # Compiler flag to turn off builtin functions.
15974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15976 # Compiler flag to allow reflexive dlopens.
15977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15979 # Compiler flag to generate shared objects directly from archives.
15980 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15982 # Compiler flag to generate thread-safe objects.
15983 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15985 # Library versioning type.
15986 version_type=$version_type
15988 # Format of library name prefix.
15989 libname_spec=$lt_libname_spec
15991 # List of archive names. First name is the real one, the rest are links.
15992 # The last name is the one that the linker finds with -lNAME.
15993 library_names_spec=$lt_library_names_spec
15995 # The coded name of the library, if different from the real name.
15996 soname_spec=$lt_soname_spec
15998 # Commands used to build and install an old-style archive.
16000 old_archive_cmds=$lt_old_archive_cmds_F77
16001 old_postinstall_cmds=$lt_old_postinstall_cmds
16002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16004 # Create an old-style archive from a shared archive.
16005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16007 # Create a temporary old-style archive to link instead of a shared archive.
16008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16010 # Commands used to build and install a shared archive.
16011 archive_cmds=$lt_archive_cmds_F77
16012 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16013 postinstall_cmds=$lt_postinstall_cmds
16014 postuninstall_cmds=$lt_postuninstall_cmds
16016 # Commands used to build a loadable module (assumed same as above if empty)
16017 module_cmds=$lt_module_cmds_F77
16018 module_expsym_cmds=$lt_module_expsym_cmds_F77
16020 # Commands to strip libraries.
16021 old_striplib=$lt_old_striplib
16022 striplib=$lt_striplib
16024 # Dependencies to place before the objects being linked to create a
16026 predep_objects=$lt_predep_objects_F77
16028 # Dependencies to place after the objects being linked to create a
16030 postdep_objects=$lt_postdep_objects_F77
16032 # Dependencies to place before the objects being linked to create a
16034 predeps=$lt_predeps_F77
16036 # Dependencies to place after the objects being linked to create a
16038 postdeps=$lt_postdeps_F77
16040 # The library search path used internally by the compiler when linking
16041 # a shared library.
16042 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16044 # Method to check whether dependent libraries are shared objects.
16045 deplibs_check_method=$lt_deplibs_check_method
16047 # Command to use when deplibs_check_method == file_magic.
16048 file_magic_cmd=$lt_file_magic_cmd
16050 # Flag that allows shared libraries with undefined symbols to be built.
16051 allow_undefined_flag=$lt_allow_undefined_flag_F77
16053 # Flag that forces no undefined symbols.
16054 no_undefined_flag=$lt_no_undefined_flag_F77
16056 # Commands used to finish a libtool library installation in a directory.
16057 finish_cmds=$lt_finish_cmds
16059 # Same as above, but a single script fragment to be evaled but not shown.
16060 finish_eval=$lt_finish_eval
16062 # Take the output of nm and produce a listing of raw symbols and C names.
16063 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16065 # Transform the output of nm in a proper C declaration
16066 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16068 # Transform the output of nm in a C name address pair
16069 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16071 # This is the shared library runtime path variable.
16072 runpath_var=$runpath_var
16074 # This is the shared library path variable.
16075 shlibpath_var=$shlibpath_var
16077 # Is shlibpath searched before the hard-coded library search path?
16078 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16080 # How to hardcode a shared library path into an executable.
16081 hardcode_action=$hardcode_action_F77
16083 # Whether we should hardcode library paths into libraries.
16084 hardcode_into_libs=$hardcode_into_libs
16086 # Flag to hardcode \$libdir into a binary during linking.
16087 # This must work even if \$libdir does not exist.
16088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16090 # If ld is used when linking, flag to hardcode \$libdir into
16091 # a binary during linking. This must work even if \$libdir does
16093 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16095 # Whether we need a single -rpath flag with a separated argument.
16096 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16098 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16099 # resulting binary.
16100 hardcode_direct=$hardcode_direct_F77
16102 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16103 # resulting binary.
16104 hardcode_minus_L=$hardcode_minus_L_F77
16106 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16107 # the resulting binary.
16108 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16110 # Set to yes if building a shared library automatically hardcodes DIR into the library
16111 # and all subsequent libraries and executables linked against it.
16112 hardcode_automatic=$hardcode_automatic_F77
16114 # Variables whose values should be saved in libtool wrapper scripts and
16115 # restored at relink time.
16116 variables_saved_for_relink="$variables_saved_for_relink"
16118 # Whether libtool must link a program against all its dependency libraries.
16119 link_all_deplibs=$link_all_deplibs_F77
16121 # Compile-time system search path for libraries
16122 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16124 # Run-time system search path for libraries
16125 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16127 # Fix the shell variable \$srcfile for the compiler.
16128 fix_srcfile_path="$fix_srcfile_path_F77"
16130 # Set to yes if exported symbols are required.
16131 always_export_symbols=$always_export_symbols_F77
16133 # The commands to list exported symbols.
16134 export_symbols_cmds=$lt_export_symbols_cmds_F77
16136 # The commands to extract the exported symbol list from a shared archive.
16137 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16139 # Symbols that should not be listed in the preloaded symbols.
16140 exclude_expsyms=$lt_exclude_expsyms_F77
16142 # Symbols that must always be exported.
16143 include_expsyms=$lt_include_expsyms_F77
16145 # ### END LIBTOOL TAG CONFIG: $tagname
16151 # If there is no Makefile yet, we rely on a make rule to execute
16152 # `config.status --recheck' to rerun these tests and create the
16153 # libtool script then.
16154 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16155 if test -f "$ltmain_in"; then
16156 test -f Makefile && make "$ltmain"
16162 ac_cpp='$CPP $CPPFLAGS'
16163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16175 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16179 # Source file extension for Java test sources.
16182 # Object file extension for compiled Java test sources.
16186 # Code to be used in simple compile tests
16187 lt_simple_compile_test_code="class foo {}\n"
16189 # Code to be used in simple link tests
16190 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16192 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16194 # If no C compiler was specified, use CC.
16197 # If no C compiler flags were specified, use CFLAGS.
16198 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16200 # Allow CC to be a program name with arguments.
16204 # save warnings/boilerplate of simple test code
16205 ac_outfile=conftest.$ac_objext
16206 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16207 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16208 _lt_compiler_boilerplate=`cat conftest.err`
16211 ac_outfile=conftest.$ac_objext
16212 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16213 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16214 _lt_linker_boilerplate=`cat conftest.err`
16218 # Allow CC to be a program name with arguments.
16223 for cc_temp in $compiler""; do
16225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16231 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16234 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16235 archive_cmds_need_lc_GCJ=no
16237 old_archive_cmds_GCJ=$old_archive_cmds
16240 lt_prog_compiler_no_builtin_flag_GCJ=
16242 if test "$GCC" = yes; then
16243 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16246 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16247 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16248 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 lt_cv_prog_compiler_rtti_exceptions=no
16252 ac_outfile=conftest.$ac_objext
16253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16254 lt_compiler_flag="-fno-rtti -fno-exceptions"
16255 # Insert the option either (1) after the last *FLAGS variable, or
16256 # (2) before a word containing "conftest.", or (3) at the end.
16257 # Note that $ac_compile itself does not contain backslashes and begins
16258 # with a dollar sign (not a hyphen), so the echo should work correctly.
16259 # The option is referenced via a variable to avoid confusing sed.
16260 lt_compile=`echo "$ac_compile" | $SED \
16261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16263 -e 's:$: $lt_compiler_flag:'`
16264 (eval echo "\"\$as_me:16264: $lt_compile\"" >&5)
16265 (eval "$lt_compile" 2>conftest.err)
16267 cat conftest.err >&5
16268 echo "$as_me:16268: \$? = $ac_status" >&5
16269 if (exit $ac_status) && test -s "$ac_outfile"; then
16270 # The compiler can only warn and ignore the option if not recognized
16271 # So say no if there are warnings other than the usual output.
16272 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16275 lt_cv_prog_compiler_rtti_exceptions=yes
16281 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16282 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16284 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16285 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16292 lt_prog_compiler_wl_GCJ=
16293 lt_prog_compiler_pic_GCJ=
16294 lt_prog_compiler_static_GCJ=
16296 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16297 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16299 if test "$GCC" = yes; then
16300 lt_prog_compiler_wl_GCJ='-Wl,'
16301 lt_prog_compiler_static_GCJ='-static'
16305 # All AIX code is PIC.
16306 if test "$host_cpu" = ia64; then
16307 # AIX 5 now supports IA64 processor
16308 lt_prog_compiler_static_GCJ='-Bstatic'
16313 # FIXME: we need at least 68020 code to build shared libraries, but
16314 # adding the `-m68020' flag to GCC prevents building anything better,
16316 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16319 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16320 # PIC is the default for these OSes.
16323 mingw* | pw32* | os2*)
16324 # This hack is so that the source file can tell whether it is being
16325 # built for inclusion in a dll (and should export symbols for example).
16326 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16329 darwin* | rhapsody*)
16330 # PIC is the default on this platform
16331 # Common symbols not allowed in MH_DYLIB files
16332 lt_prog_compiler_pic_GCJ='-fno-common'
16336 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16337 # Instead, we relocate shared libraries at runtime.
16341 # Just because we use GCC doesn't mean we suddenly get shared libraries
16342 # on systems that don't support them.
16343 lt_prog_compiler_can_build_shared_GCJ=no
16348 if test -d /usr/nec; then
16349 lt_prog_compiler_pic_GCJ=-Kconform_pic
16354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16355 # not for PA HP-UX.
16361 lt_prog_compiler_pic_GCJ='-fPIC'
16367 lt_prog_compiler_pic_GCJ='-fPIC'
16371 # PORTME Check for flag to pass linker flags through the system compiler.
16374 lt_prog_compiler_wl_GCJ='-Wl,'
16375 if test "$host_cpu" = ia64; then
16376 # AIX 5 now supports IA64 processor
16377 lt_prog_compiler_static_GCJ='-Bstatic'
16379 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16383 # PIC is the default on this platform
16384 # Common symbols not allowed in MH_DYLIB files
16385 case $cc_basename in
16387 lt_prog_compiler_pic_GCJ='-qnocommon'
16388 lt_prog_compiler_wl_GCJ='-Wl,'
16393 mingw* | pw32* | os2*)
16394 # This hack is so that the source file can tell whether it is being
16395 # built for inclusion in a dll (and should export symbols for example).
16396 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16399 hpux9* | hpux10* | hpux11*)
16400 lt_prog_compiler_wl_GCJ='-Wl,'
16401 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16402 # not for PA HP-UX.
16408 lt_prog_compiler_pic_GCJ='+Z'
16411 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16412 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16415 irix5* | irix6* | nonstopux*)
16416 lt_prog_compiler_wl_GCJ='-Wl,'
16417 # PIC (with -KPIC) is the default.
16418 lt_prog_compiler_static_GCJ='-non_shared'
16422 lt_prog_compiler_pic_GCJ='-KPIC'
16423 lt_prog_compiler_static_GCJ='-Bstatic'
16427 case $cc_basename in
16429 lt_prog_compiler_wl_GCJ='-Wl,'
16430 lt_prog_compiler_pic_GCJ='-KPIC'
16431 lt_prog_compiler_static_GCJ='-static'
16433 pgcc* | pgf77* | pgf90* | pgf95*)
16434 # Portland Group compilers (*not* the Pentium gcc compiler,
16435 # which looks to be a dead project)
16436 lt_prog_compiler_wl_GCJ='-Wl,'
16437 lt_prog_compiler_pic_GCJ='-fpic'
16438 lt_prog_compiler_static_GCJ='-Bstatic'
16441 lt_prog_compiler_wl_GCJ='-Wl,'
16442 # All Alpha code is PIC.
16443 lt_prog_compiler_static_GCJ='-non_shared'
16448 osf3* | osf4* | osf5*)
16449 lt_prog_compiler_wl_GCJ='-Wl,'
16450 # All OSF/1 code is PIC.
16451 lt_prog_compiler_static_GCJ='-non_shared'
16455 lt_prog_compiler_pic_GCJ='-KPIC'
16456 lt_prog_compiler_static_GCJ='-Bstatic'
16457 case $cc_basename in
16458 f77* | f90* | f95*)
16459 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16461 lt_prog_compiler_wl_GCJ='-Wl,';;
16466 lt_prog_compiler_wl_GCJ='-Qoption ld '
16467 lt_prog_compiler_pic_GCJ='-PIC'
16468 lt_prog_compiler_static_GCJ='-Bstatic'
16471 sysv4 | sysv4.2uw2* | sysv4.3*)
16472 lt_prog_compiler_wl_GCJ='-Wl,'
16473 lt_prog_compiler_pic_GCJ='-KPIC'
16474 lt_prog_compiler_static_GCJ='-Bstatic'
16478 if test -d /usr/nec ;then
16479 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16480 lt_prog_compiler_static_GCJ='-Bstatic'
16484 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16485 lt_prog_compiler_wl_GCJ='-Wl,'
16486 lt_prog_compiler_pic_GCJ='-KPIC'
16487 lt_prog_compiler_static_GCJ='-Bstatic'
16491 lt_prog_compiler_wl_GCJ='-Wl,'
16492 lt_prog_compiler_can_build_shared_GCJ=no
16496 lt_prog_compiler_pic_GCJ='-pic'
16497 lt_prog_compiler_static_GCJ='-Bstatic'
16501 lt_prog_compiler_can_build_shared_GCJ=no
16506 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16507 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16510 # Check to make sure the PIC flag actually works.
16512 if test -n "$lt_prog_compiler_pic_GCJ"; then
16514 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16515 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16516 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16519 lt_prog_compiler_pic_works_GCJ=no
16520 ac_outfile=conftest.$ac_objext
16521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16522 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16523 # Insert the option either (1) after the last *FLAGS variable, or
16524 # (2) before a word containing "conftest.", or (3) at the end.
16525 # Note that $ac_compile itself does not contain backslashes and begins
16526 # with a dollar sign (not a hyphen), so the echo should work correctly.
16527 # The option is referenced via a variable to avoid confusing sed.
16528 lt_compile=`echo "$ac_compile" | $SED \
16529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16531 -e 's:$: $lt_compiler_flag:'`
16532 (eval echo "\"\$as_me:16532: $lt_compile\"" >&5)
16533 (eval "$lt_compile" 2>conftest.err)
16535 cat conftest.err >&5
16536 echo "$as_me:16536: \$? = $ac_status" >&5
16537 if (exit $ac_status) && test -s "$ac_outfile"; then
16538 # The compiler can only warn and ignore the option if not recognized
16539 # So say no if there are warnings other than the usual output.
16540 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16543 lt_prog_compiler_pic_works_GCJ=yes
16549 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16550 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16552 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16553 case $lt_prog_compiler_pic_GCJ in
16555 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16558 lt_prog_compiler_pic_GCJ=
16559 lt_prog_compiler_can_build_shared_GCJ=no
16564 # For platforms which do not support PIC, -DPIC is meaningless:
16566 lt_prog_compiler_pic_GCJ=
16569 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16574 # Check to make sure the static flag actually works.
16576 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16577 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16578 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16579 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 lt_prog_compiler_static_works_GCJ=no
16583 save_LDFLAGS="$LDFLAGS"
16584 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16585 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16587 # The linker can only warn and ignore the option if not recognized
16588 # So say no if there are warnings
16589 if test -s conftest.err; then
16590 # Append any errors to the config.log.
16591 cat conftest.err 1>&5
16592 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16594 if diff conftest.exp conftest.er2 >/dev/null; then
16595 lt_prog_compiler_static_works_GCJ=yes
16598 lt_prog_compiler_static_works_GCJ=yes
16602 LDFLAGS="$save_LDFLAGS"
16605 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16606 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16608 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16611 lt_prog_compiler_static_GCJ=
16615 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16616 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16617 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 lt_cv_prog_compiler_c_o_GCJ=no
16621 $rm -r conftest 2>/dev/null
16625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16627 lt_compiler_flag="-o out/conftest2.$ac_objext"
16628 # Insert the option either (1) after the last *FLAGS variable, or
16629 # (2) before a word containing "conftest.", or (3) at the end.
16630 # Note that $ac_compile itself does not contain backslashes and begins
16631 # with a dollar sign (not a hyphen), so the echo should work correctly.
16632 lt_compile=`echo "$ac_compile" | $SED \
16633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16635 -e 's:$: $lt_compiler_flag:'`
16636 (eval echo "\"\$as_me:16636: $lt_compile\"" >&5)
16637 (eval "$lt_compile" 2>out/conftest.err)
16639 cat out/conftest.err >&5
16640 echo "$as_me:16640: \$? = $ac_status" >&5
16641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16643 # The compiler can only warn and ignore the option if not recognized
16644 # So say no if there are warnings
16645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16648 lt_cv_prog_compiler_c_o_GCJ=yes
16653 # SGI C++ compiler will create directory out/ii_files/ for
16654 # template instantiation
16655 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16656 $rm out/* && rmdir out
16662 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16663 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16666 hard_links="nottested"
16667 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16668 # do not overwrite the value of need_locks provided by the user
16669 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16670 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16675 ln conftest.a conftest.b 2>&5 || hard_links=no
16676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16677 echo "$as_me:$LINENO: result: $hard_links" >&5
16678 echo "${ECHO_T}$hard_links" >&6
16679 if test "$hard_links" = no; then
16680 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16681 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16688 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16689 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16692 allow_undefined_flag_GCJ=
16693 enable_shared_with_static_runtimes_GCJ=no
16695 archive_expsym_cmds_GCJ=
16696 old_archive_From_new_cmds_GCJ=
16697 old_archive_from_expsyms_cmds_GCJ=
16698 export_dynamic_flag_spec_GCJ=
16699 whole_archive_flag_spec_GCJ=
16700 thread_safe_flag_spec_GCJ=
16701 hardcode_libdir_flag_spec_GCJ=
16702 hardcode_libdir_flag_spec_ld_GCJ=
16703 hardcode_libdir_separator_GCJ=
16704 hardcode_direct_GCJ=no
16705 hardcode_minus_L_GCJ=no
16706 hardcode_shlibpath_var_GCJ=unsupported
16707 link_all_deplibs_GCJ=unknown
16708 hardcode_automatic_GCJ=no
16710 module_expsym_cmds_GCJ=
16711 always_export_symbols_GCJ=no
16712 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16713 # include_expsyms should be a list of space-separated symbols to be *always*
16714 # included in the symbol list
16715 include_expsyms_GCJ=
16716 # exclude_expsyms can be an extended regexp of symbols to exclude
16717 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16718 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16719 # as well as any symbol that contains `d'.
16720 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16721 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16722 # platforms (ab)use it in PIC code, but their linkers get confused if
16723 # the symbol is explicitly referenced. Since portable code cannot
16724 # rely on this symbol name, it's probably fine to never include it in
16725 # preloaded symbol tables.
16726 extract_expsyms_cmds=
16727 # Just being paranoid about ensuring that cc_basename is set.
16728 for cc_temp in $compiler""; do
16730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16736 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16739 cygwin* | mingw* | pw32*)
16740 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16741 # When not using gcc, we currently assume that we are using
16742 # Microsoft Visual C++.
16743 if test "$GCC" != yes; then
16748 # we just hope/assume this is gcc and not c89 (= MSVC++)
16757 if test "$with_gnu_ld" = yes; then
16758 # If archive_cmds runs LD, not CC, wlarc should be empty
16761 # Set some defaults for GNU ld with shared library support. These
16762 # are reset later if shared libraries are not supported. Putting them
16763 # here allows them to be overridden if necessary.
16764 runpath_var=LD_RUN_PATH
16765 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16766 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16767 # ancient GNU ld didn't support --whole-archive et. al.
16768 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16769 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16771 whole_archive_flag_spec_GCJ=
16773 supports_anon_versioning=no
16774 case `$LD -v 2>/dev/null` in
16775 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16778 *\ 2.11.*) ;; # other 2.11 versions
16779 *) supports_anon_versioning=yes ;;
16782 # See if GNU ld supports shared libraries.
16784 aix3* | aix4* | aix5*)
16785 # On AIX/PPC, the GNU linker is very broken
16786 if test "$host_cpu" != ia64; then
16790 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16791 *** to be unable to reliably create shared libraries on AIX.
16792 *** Therefore, libtool is disabling shared libraries support. If you
16793 *** really care for shared libraries, you may want to modify your PATH
16794 *** so that a non-GNU linker is found, and then restart.
16801 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)'
16802 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16803 hardcode_minus_L_GCJ=yes
16805 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16806 # that the semantics of dynamic libraries on AmigaOS, at least up
16807 # to version 4, is to share data among multiple programs linked
16808 # with the same dynamic library. Since this doesn't match the
16809 # behavior of shared libraries on other platforms, we can't use
16815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16816 allow_undefined_flag_GCJ=unsupported
16817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16818 # support --undefined. This deserves some investigation. FIXME
16819 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16825 cygwin* | mingw* | pw32*)
16826 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16827 # as there is no search path for DLLs.
16828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16829 allow_undefined_flag_GCJ=unsupported
16830 always_export_symbols_GCJ=no
16831 enable_shared_with_static_runtimes_GCJ=yes
16832 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16834 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16835 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16836 # If the export-symbols file already is a .def file (1st line
16837 # is EXPORTS), use it as is; otherwise, prepend...
16838 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16839 cp $export_symbols $output_objdir/$soname.def;
16841 echo EXPORTS > $output_objdir/$soname.def;
16842 cat $export_symbols >> $output_objdir/$soname.def;
16844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16851 hardcode_direct_GCJ=no
16852 hardcode_shlibpath_var_GCJ=no
16853 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16854 export_dynamic_flag_spec_GCJ='${wl}-E'
16855 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16856 # Instead, shared libraries are loaded at an image base (0x10000000 by
16857 # default) and relocated if they conflict, which is a slow very memory
16858 # consuming and fragmenting process. To avoid this, we pick a random,
16859 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16860 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16861 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16862 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16868 case $cc_basename,$host_cpu in
16869 pgcc*) # Portland Group C compiler
16870 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16871 tmp_addflag=' $pic_flag'
16873 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16874 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16875 tmp_addflag=' $pic_flag -Mnomain' ;;
16876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16877 tmp_addflag=' -i_dynamic' ;;
16878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16879 tmp_addflag=' -i_dynamic -nofor_main' ;;
16880 ifc* | ifort*) # Intel Fortran compiler
16881 tmp_addflag=' -nofor_main' ;;
16883 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16885 if test $supports_anon_versioning = yes; then
16886 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16887 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16888 $echo "local: *; };" >> $output_objdir/$libname.ver~
16889 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16891 link_all_deplibs_GCJ=no
16897 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16899 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16902 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16903 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16908 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16912 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16913 *** create shared libraries on Solaris systems. Therefore, libtool
16914 *** is disabling shared libraries support. We urge you to upgrade GNU
16915 *** binutils to release 2.9.1 or newer. Another option is to modify
16916 *** your PATH or compiler configuration so that the native linker is
16917 *** used, and then restart.
16920 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16922 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16929 case `$LD -v 2>&1` in
16930 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16934 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16935 *** reliably create shared libraries on SCO systems. Therefore, libtool
16936 *** is disabling shared libraries support. We urge you to upgrade GNU
16937 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16938 *** your PATH or compiler configuration so that the native linker is
16939 *** used, and then restart.
16944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16945 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16946 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16947 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16956 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16958 hardcode_direct_GCJ=yes
16959 hardcode_shlibpath_var_GCJ=no
16963 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16964 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16965 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16972 if test "$ld_shlibs_GCJ" = no; then
16974 hardcode_libdir_flag_spec_GCJ=
16975 export_dynamic_flag_spec_GCJ=
16976 whole_archive_flag_spec_GCJ=
16979 # PORTME fill in a description of your system's linker (not GNU ld)
16982 allow_undefined_flag_GCJ=unsupported
16983 always_export_symbols_GCJ=yes
16984 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'
16985 # Note: this linker hardcodes the directories in LIBPATH if there
16986 # are no directories specified by -L.
16987 hardcode_minus_L_GCJ=yes
16988 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16989 # Neither direct hardcoding nor static linking is supported with a
16991 hardcode_direct_GCJ=unsupported
16996 if test "$host_cpu" = ia64; then
16997 # On IA64, the linker does run time linking by default, so we don't
16998 # have to do anything special.
16999 aix_use_runtimelinking=no
17000 exp_sym_flag='-Bexport'
17003 # If we're using GNU nm, then we don't want the "-C" option.
17004 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17005 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17006 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'
17008 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'
17010 aix_use_runtimelinking=no
17012 # Test if we are trying to use run time linking or normal
17013 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17014 # need to do runtime linking.
17015 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17016 for ld_flag in $LDFLAGS; do
17017 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17018 aix_use_runtimelinking=yes
17025 exp_sym_flag='-bexport'
17026 no_entry_flag='-bnoentry'
17029 # When large executables or shared objects are built, AIX ld can
17030 # have problems creating the table of contents. If linking a library
17031 # or program results in "error TOC overflow" add -mminimal-toc to
17032 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17033 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17035 archive_cmds_GCJ=''
17036 hardcode_direct_GCJ=yes
17037 hardcode_libdir_separator_GCJ=':'
17038 link_all_deplibs_GCJ=yes
17040 if test "$GCC" = yes; then
17041 case $host_os in aix4.[012]|aix4.[012].*)
17042 # We only want to do this on AIX 4.2 and lower, the check
17043 # below for broken collect2 doesn't work under 4.3+
17044 collect2name=`${CC} -print-prog-name=collect2`
17045 if test -f "$collect2name" && \
17046 strings "$collect2name" | grep resolve_lib_name >/dev/null
17048 # We have reworked collect2
17049 hardcode_direct_GCJ=yes
17051 # We have old collect2
17052 hardcode_direct_GCJ=unsupported
17053 # It fails to find uninstalled libraries when the uninstalled
17054 # path is not listed in the libpath. Setting hardcode_minus_L
17055 # to unsupported forces relinking
17056 hardcode_minus_L_GCJ=yes
17057 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17058 hardcode_libdir_separator_GCJ=
17062 shared_flag='-shared'
17063 if test "$aix_use_runtimelinking" = yes; then
17064 shared_flag="$shared_flag "'${wl}-G'
17068 if test "$host_cpu" = ia64; then
17069 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17070 # chokes on -Wl,-G. The following line is correct:
17073 if test "$aix_use_runtimelinking" = yes; then
17074 shared_flag='${wl}-G'
17076 shared_flag='${wl}-bM:SRE'
17081 # It seems that -bexpall does not export symbols beginning with
17082 # underscore (_), so it is better to generate a list of symbols to export.
17083 always_export_symbols_GCJ=yes
17084 if test "$aix_use_runtimelinking" = yes; then
17085 # Warning - without using the other runtime loading flags (-brtl),
17086 # -berok will link without error, but may produce a broken library.
17087 allow_undefined_flag_GCJ='-berok'
17088 # Determine the default libpath from the value encoded in an empty executable.
17089 cat >conftest.$ac_ext <<_ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; } &&
17119 { ac_try='test -s conftest$ac_exeext'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17128 # Check for a 64-bit object if we didn't find anything.
17129 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; }
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17136 rm -f conftest.err conftest.$ac_objext \
17137 conftest$ac_exeext conftest.$ac_ext
17138 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17140 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17141 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17143 if test "$host_cpu" = ia64; then
17144 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17145 allow_undefined_flag_GCJ="-z nodefs"
17146 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17148 # Determine the default libpath from the value encoded in an empty executable.
17149 cat >conftest.$ac_ext <<_ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17166 (eval $ac_link) 2>conftest.er1
17168 grep -v '^ *+' conftest.er1 >conftest.err
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; } &&
17179 { ac_try='test -s conftest$ac_exeext'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17188 # Check for a 64-bit object if we didn't find anything.
17189 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; }
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17196 rm -f conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17198 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17200 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17201 # Warning - without using the other run time loading flags,
17202 # -berok will link without error, but may produce a broken library.
17203 no_undefined_flag_GCJ=' ${wl}-bernotok'
17204 allow_undefined_flag_GCJ=' ${wl}-berok'
17205 # Exported symbols can be pulled into shared objects from archives
17206 whole_archive_flag_spec_GCJ='$convenience'
17207 archive_cmds_need_lc_GCJ=yes
17208 # This is similar to how AIX traditionally builds its shared libraries.
17209 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17215 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)'
17216 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17217 hardcode_minus_L_GCJ=yes
17218 # see comment about different semantics on the GNU ld section
17223 export_dynamic_flag_spec_GCJ=-rdynamic
17226 cygwin* | mingw* | pw32*)
17227 # When not using gcc, we currently assume that we are using
17228 # Microsoft Visual C++.
17229 # hardcode_libdir_flag_spec is actually meaningless, as there is
17230 # no search path for DLLs.
17231 hardcode_libdir_flag_spec_GCJ=' '
17232 allow_undefined_flag_GCJ=unsupported
17233 # Tell ltmain to make .lib files, not .a files.
17235 # Tell ltmain to make .dll files, not .so files.
17237 # FIXME: Setting linknames here is a bad hack.
17238 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17239 # The linker will automatically build a .lib file if we build a DLL.
17240 old_archive_From_new_cmds_GCJ='true'
17241 # FIXME: Should let the user specify the lib program.
17242 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17243 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17244 enable_shared_with_static_runtimes_GCJ=yes
17247 darwin* | rhapsody*)
17249 rhapsody* | darwin1.[012])
17250 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17253 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17254 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17256 case ${MACOSX_DEPLOYMENT_TARGET} in
17258 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17261 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17267 archive_cmds_need_lc_GCJ=no
17268 hardcode_direct_GCJ=no
17269 hardcode_automatic_GCJ=yes
17270 hardcode_shlibpath_var_GCJ=unsupported
17271 whole_archive_flag_spec_GCJ=''
17272 link_all_deplibs_GCJ=yes
17273 if test "$GCC" = yes ; then
17274 output_verbose_link_cmd='echo'
17275 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17276 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17277 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17278 archive_expsym_cmds_GCJ='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}'
17279 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}'
17281 case $cc_basename in
17283 output_verbose_link_cmd='echo'
17284 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17285 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17286 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17287 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17288 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}'
17298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17299 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17300 hardcode_shlibpath_var_GCJ=no
17307 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17308 # support. Future versions do this automatically, but an explicit c++rt0.o
17309 # does not break anything, and helps significantly (at the cost of a little
17312 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17313 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17314 hardcode_direct_GCJ=yes
17315 hardcode_shlibpath_var_GCJ=no
17318 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17320 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17321 hardcode_direct_GCJ=yes
17322 hardcode_minus_L_GCJ=yes
17323 hardcode_shlibpath_var_GCJ=no
17326 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17327 freebsd* | dragonfly*)
17328 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17329 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17330 hardcode_direct_GCJ=yes
17331 hardcode_shlibpath_var_GCJ=no
17334 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
17336 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17337 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17338 hardcode_direct_GCJ=yes
17339 hardcode_shlibpath_var_GCJ=no
17340 link_all_deplibs_GCJ=no
17344 if test "$GCC" = yes; then
17345 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'
17347 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'
17349 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17350 hardcode_libdir_separator_GCJ=:
17351 hardcode_direct_GCJ=yes
17353 # hardcode_minus_L: Not really in the search PATH,
17354 # but as the default location of the library.
17355 hardcode_minus_L_GCJ=yes
17356 export_dynamic_flag_spec_GCJ='${wl}-E'
17360 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17361 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17363 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17365 if test "$with_gnu_ld" = no; then
17366 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17367 hardcode_libdir_separator_GCJ=:
17369 hardcode_direct_GCJ=yes
17370 export_dynamic_flag_spec_GCJ='${wl}-E'
17372 # hardcode_minus_L: Not really in the search PATH,
17373 # but as the default location of the library.
17374 hardcode_minus_L_GCJ=yes
17379 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17382 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17385 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17388 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17394 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17397 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17400 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17404 if test "$with_gnu_ld" = no; then
17405 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17406 hardcode_libdir_separator_GCJ=:
17410 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17411 hardcode_direct_GCJ=no
17412 hardcode_shlibpath_var_GCJ=no
17415 hardcode_direct_GCJ=yes
17416 export_dynamic_flag_spec_GCJ='${wl}-E'
17418 # hardcode_minus_L: Not really in the search PATH,
17419 # but as the default location of the library.
17420 hardcode_minus_L_GCJ=yes
17426 irix5* | irix6* | nonstopux*)
17427 if test "$GCC" = yes; then
17428 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'
17430 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'
17431 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17433 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17434 hardcode_libdir_separator_GCJ=:
17435 link_all_deplibs_GCJ=yes
17438 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17439 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17440 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17442 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17444 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17445 hardcode_direct_GCJ=yes
17446 hardcode_shlibpath_var_GCJ=no
17450 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17451 hardcode_direct_GCJ=yes
17452 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17453 hardcode_libdir_separator_GCJ=:
17454 hardcode_shlibpath_var_GCJ=no
17458 hardcode_direct_GCJ=yes
17459 hardcode_shlibpath_var_GCJ=no
17460 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17461 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17462 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17463 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17464 export_dynamic_flag_spec_GCJ='${wl}-E'
17467 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17468 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17469 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17472 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17480 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17481 hardcode_minus_L_GCJ=yes
17482 allow_undefined_flag_GCJ=unsupported
17483 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'
17484 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17488 if test "$GCC" = yes; then
17489 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17490 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'
17492 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17493 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'
17495 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17496 hardcode_libdir_separator_GCJ=:
17499 osf4* | osf5*) # as osf3* with the addition of -msym flag
17500 if test "$GCC" = yes; then
17501 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17502 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'
17503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17505 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17506 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'
17507 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~
17508 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17510 # Both c and cxx compiler support -rpath directly
17511 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17513 hardcode_libdir_separator_GCJ=:
17517 no_undefined_flag_GCJ=' -z text'
17518 if test "$GCC" = yes; then
17520 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17521 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17522 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17525 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17526 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17527 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17529 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17530 hardcode_shlibpath_var_GCJ=no
17532 solaris2.[0-5] | solaris2.[0-5].*) ;;
17534 # The compiler driver will combine linker options so we
17535 # cannot just pass the convience library names through
17536 # without $wl, iff we do not link with $LD.
17537 # Luckily, gcc supports the same syntax we need for Sun Studio.
17538 # Supported since Solaris 2.6 (maybe 2.5.1?)
17541 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17543 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17546 link_all_deplibs_GCJ=yes
17550 if test "x$host_vendor" = xsequent; then
17551 # Use $CC to link under sequent, because it throws in some extra .o
17552 # files that make .init and .fini sections work.
17553 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17555 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17557 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17558 hardcode_direct_GCJ=yes
17559 hardcode_minus_L_GCJ=yes
17560 hardcode_shlibpath_var_GCJ=no
17564 case $host_vendor in
17566 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17567 hardcode_direct_GCJ=yes # is this really true???
17570 ## LD is ld it makes a PLAMLIB
17571 ## CC just makes a GrossModule.
17572 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17573 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17574 hardcode_direct_GCJ=no
17577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17578 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17581 runpath_var='LD_RUN_PATH'
17582 hardcode_shlibpath_var_GCJ=no
17586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17587 hardcode_shlibpath_var_GCJ=no
17588 export_dynamic_flag_spec_GCJ='-Bexport'
17592 if test -d /usr/nec; then
17593 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17594 hardcode_shlibpath_var_GCJ=no
17595 runpath_var=LD_RUN_PATH
17596 hardcode_runpath_var=yes
17601 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17602 no_undefined_flag_GCJ='${wl}-z,text'
17603 archive_cmds_need_lc_GCJ=no
17604 hardcode_shlibpath_var_GCJ=no
17605 runpath_var='LD_RUN_PATH'
17607 if test "$GCC" = yes; then
17608 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17609 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17612 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17616 sysv5* | sco3.2v5* | sco5v6*)
17617 # Note: We can NOT use -z defs as we might desire, because we do not
17618 # link with -lc, and that would cause any symbols used from libc to
17619 # always be unresolved, which means just about no library would
17620 # ever link correctly. If we're not using GNU ld we use -z text
17621 # though, which does catch some bad symbols but isn't as heavy-handed
17623 no_undefined_flag_GCJ='${wl}-z,text'
17624 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17625 archive_cmds_need_lc_GCJ=no
17626 hardcode_shlibpath_var_GCJ=no
17627 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17628 hardcode_libdir_separator_GCJ=':'
17629 link_all_deplibs_GCJ=yes
17630 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17631 runpath_var='LD_RUN_PATH'
17633 if test "$GCC" = yes; then
17634 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17635 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17637 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17638 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17643 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17644 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17645 hardcode_shlibpath_var_GCJ=no
17654 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17655 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17656 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17659 # Do we need to explicitly link libc?
17661 case "x$archive_cmds_need_lc_GCJ" in
17663 # Assume -lc should be added
17664 archive_cmds_need_lc_GCJ=yes
17666 if test "$enable_shared" = yes && test "$GCC" = yes; then
17667 case $archive_cmds_GCJ in
17669 # FIXME: we may have to deal with multi-command sequences.
17672 # Test whether the compiler implicitly links with -lc since on some
17673 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17674 # to ld, don't add -lc before -lgcc.
17675 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17676 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17678 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17681 (eval $ac_compile) 2>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } 2>conftest.err; then
17687 libobjs=conftest.$ac_objext
17689 wl=$lt_prog_compiler_wl_GCJ
17690 pic_flag=$lt_prog_compiler_pic_GCJ
17696 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17697 allow_undefined_flag_GCJ=
17698 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17699 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }
17704 archive_cmds_need_lc_GCJ=no
17706 archive_cmds_need_lc_GCJ=yes
17708 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17710 cat conftest.err 1>&5
17713 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17714 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17721 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17722 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17723 library_names_spec=
17724 libname_spec='lib$name'
17728 postuninstall_cmds=
17732 shlibpath_overrides_runpath=unknown
17734 dynamic_linker="$host_os ld.so"
17735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17736 if test "$GCC" = yes; then
17737 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17738 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17739 # if the path contains ";" then we assume it to be the separator
17740 # otherwise default to the standard path separator (i.e. ":") - it is
17741 # assumed that no part of a normal pathname contains ";" but that should
17742 # okay in the real world where ";" in dirpaths is itself problematic.
17743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17750 need_lib_prefix=unknown
17751 hardcode_into_libs=no
17753 # when you set need_version to no, make sure it does not cause -set_version
17754 # flags to be left without arguments
17755 need_version=unknown
17760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17761 shlibpath_var=LIBPATH
17763 # AIX 3 has no versioning support, so we append a major version to the name.
17764 soname_spec='${libname}${release}${shared_ext}$major'
17771 hardcode_into_libs=yes
17772 if test "$host_cpu" = ia64; then
17773 # AIX 5 supports IA64
17774 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17775 shlibpath_var=LD_LIBRARY_PATH
17777 # With GCC up to 2.95.x, collect2 would create an import file
17778 # for dependence libraries. The import file would start with
17779 # the line `#! .'. This would cause the generated library to
17780 # depend on `.', always an invalid library. This was fixed in
17781 # development snapshots of GCC prior to 3.0.
17783 aix4 | aix4.[01] | aix4.[01].*)
17784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17786 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17789 can_build_shared=no
17793 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17794 # soname into executable. Probably we can add versioning support to
17795 # collect2, so additional links can be useful in future.
17796 if test "$aix_use_runtimelinking" = yes; then
17797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17798 # instead of lib<name>.a to let people know that these are not
17799 # typical AIX shared libraries.
17800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802 # We preserve .a as extension for shared libraries through AIX4.2
17803 # and later when we are not doing run time linking.
17804 library_names_spec='${libname}${release}.a $libname.a'
17805 soname_spec='${libname}${release}${shared_ext}$major'
17807 shlibpath_var=LIBPATH
17812 library_names_spec='$libname.ixlibrary $libname.a'
17813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17814 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'
17818 library_names_spec='${libname}${shared_ext}'
17819 dynamic_linker="$host_os ld.so"
17820 shlibpath_var=LIBRARY_PATH
17826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17827 soname_spec='${libname}${release}${shared_ext}$major'
17828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17829 shlibpath_var=LD_LIBRARY_PATH
17830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17832 # the default ld.so.conf also contains /usr/contrib/lib and
17833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17834 # libtool to hard-code these into programs
17837 cygwin* | mingw* | pw32*)
17838 version_type=windows
17843 case $GCC,$host_os in
17844 yes,cygwin* | yes,mingw* | yes,pw32*)
17845 library_names_spec='$libname.dll.a'
17846 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17847 postinstall_cmds='base_file=`basename \${file}`~
17848 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17849 dldir=$destdir/`dirname \$dlpath`~
17850 test -d \$dldir || mkdir -p \$dldir~
17851 $install_prog $dir/$dlname \$dldir/$dlname~
17852 chmod a+x \$dldir/$dlname'
17853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17854 dlpath=$dir/\$dldll~
17856 shlibpath_overrides_runpath=yes
17860 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17862 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17865 # MinGW DLLs use traditional 'lib' prefix
17866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17867 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17868 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17869 # It is most probably a Windows format PATH printed by
17870 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17871 # path with ; separators, and with drive letters. We can handle the
17872 # drive letters (cygwin fileutils understands them), so leave them,
17873 # especially as we might pass files found there to a mingw objdump,
17874 # which wouldn't understand a cygwinified path. Ahh.
17875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17881 # pw32 DLLs use 'pw' prefix rather than 'lib'
17882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17888 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17891 dynamic_linker='Win32 ld.exe'
17892 # FIXME: first we should search . and the directory the executable is in
17896 darwin* | rhapsody*)
17897 dynamic_linker="$host_os dyld"
17898 version_type=darwin
17901 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17902 soname_spec='${libname}${release}${major}$shared_ext'
17903 shlibpath_overrides_runpath=yes
17904 shlibpath_var=DYLD_LIBRARY_PATH
17905 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17906 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17907 if test "$GCC" = yes; then
17908 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"`
17910 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17912 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17920 soname_spec='${libname}${release}${shared_ext}$major'
17921 shlibpath_var=LD_LIBRARY_PATH
17932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17933 soname_spec='${libname}${release}${shared_ext}$major'
17934 shlibpath_var=LD_LIBRARY_PATH
17935 shlibpath_overrides_runpath=no
17936 hardcode_into_libs=yes
17937 dynamic_linker='GNU ld.so'
17940 freebsd* | dragonfly*)
17941 # DragonFly does not have aout. When/if they implement a new
17942 # versioning mechanism, adjust this.
17943 if test -x /usr/bin/objformat; then
17944 objformat=`/usr/bin/objformat`
17947 freebsd[123]*) objformat=aout ;;
17948 *) objformat=elf ;;
17951 version_type=freebsd-$objformat
17952 case $version_type in
17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17963 shlibpath_var=LD_LIBRARY_PATH
17966 shlibpath_overrides_runpath=yes
17968 freebsd3.[01]* | freebsdelf3.[01]*)
17969 shlibpath_overrides_runpath=yes
17970 hardcode_into_libs=yes
17972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17974 shlibpath_overrides_runpath=no
17975 hardcode_into_libs=yes
17977 freebsd*) # from 4.6 on
17978 shlibpath_overrides_runpath=yes
17979 hardcode_into_libs=yes
17988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17989 soname_spec='${libname}${release}${shared_ext}$major'
17990 shlibpath_var=LD_LIBRARY_PATH
17991 hardcode_into_libs=yes
17994 hpux9* | hpux10* | hpux11*)
17995 # Give a soname corresponding to the major version so that dld.sl refuses to
17996 # link against other versions.
18003 hardcode_into_libs=yes
18004 dynamic_linker="$host_os dld.so"
18005 shlibpath_var=LD_LIBRARY_PATH
18006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18008 soname_spec='${libname}${release}${shared_ext}$major'
18009 if test "X$HPUX_IA64_MODE" = X32; then
18010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18018 hardcode_into_libs=yes
18019 dynamic_linker="$host_os dld.sl"
18020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023 soname_spec='${libname}${release}${shared_ext}$major'
18024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18029 dynamic_linker="$host_os dld.sl"
18030 shlibpath_var=SHLIB_PATH
18031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18033 soname_spec='${libname}${release}${shared_ext}$major'
18036 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18037 postinstall_cmds='chmod 555 $lib'
18044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18045 soname_spec='${libname}${release}${shared_ext}$major'
18046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18047 shlibpath_var=LD_LIBRARY_PATH
18048 shlibpath_overrides_runpath=no
18049 hardcode_into_libs=yes
18052 irix5* | irix6* | nonstopux*)
18054 nonstopux*) version_type=nonstopux ;;
18056 if test "$lt_cv_prog_gnu_ld" = yes; then
18064 soname_spec='${libname}${release}${shared_ext}$major'
18065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18067 irix5* | nonstopux*)
18068 libsuff= shlibsuff=
18071 case $LD in # libtool.m4 will add one of these switches to LD
18072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18073 libsuff= shlibsuff= libmagic=32-bit;;
18074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18075 libsuff=32 shlibsuff=N32 libmagic=N32;;
18076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18078 *) libsuff= shlibsuff= libmagic=never-match;;
18082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18083 shlibpath_overrides_runpath=no
18084 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18085 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18086 hardcode_into_libs=yes
18089 # No shared lib support for Linux oldld, aout, or coff.
18090 linux*oldld* | linux*aout* | linux*coff*)
18094 # This must be Linux ELF.
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18102 shlibpath_var=LD_LIBRARY_PATH
18103 shlibpath_overrides_runpath=no
18104 # This implies no fast_install, which is unacceptable.
18105 # Some rework will be needed to allow for fast_install
18106 # before this can be enabled.
18107 hardcode_into_libs=yes
18109 # Append ld.so.conf contents to the search path
18110 if test -f /etc/ld.so.conf; then
18111 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18112 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18115 # We used to test for /lib/ld.so.1 and disable shared libraries on
18116 # powerpc, because MkLinux only supported shared libraries with the
18117 # GNU dynamic linker. Since this was broken with cross compilers,
18118 # most powerpc-linux boxes support dynamic linking these days and
18119 # people can always --disable-shared, the test was removed, and we
18120 # assume the GNU/Linux dynamic linker is in use.
18121 dynamic_linker='GNU/Linux ld.so'
18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18129 soname_spec='${libname}${release}${shared_ext}$major'
18130 shlibpath_var=LD_LIBRARY_PATH
18131 shlibpath_overrides_runpath=no
18132 hardcode_into_libs=yes
18133 dynamic_linker='NetBSD ld.elf_so'
18140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18141 soname_spec='${libname}${release}${shared_ext}$major'
18142 shlibpath_var=LD_LIBRARY_PATH
18143 shlibpath_overrides_runpath=no
18144 hardcode_into_libs=yes
18145 dynamic_linker='GNU ld.so'
18152 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18155 dynamic_linker='NetBSD (a.out) ld.so'
18157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18158 soname_spec='${libname}${release}${shared_ext}$major'
18159 dynamic_linker='NetBSD ld.elf_so'
18161 shlibpath_var=LD_LIBRARY_PATH
18162 shlibpath_overrides_runpath=yes
18163 hardcode_into_libs=yes
18168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18169 shlibpath_var=LD_LIBRARY_PATH
18170 shlibpath_overrides_runpath=yes
18177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18178 soname_spec='${libname}${release}${shared_ext}$major'
18179 shlibpath_var=LD_LIBRARY_PATH
18180 shlibpath_overrides_runpath=yes
18185 sys_lib_dlsearch_path_spec="/usr/lib"
18187 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18189 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18190 *) need_version=no ;;
18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18194 shlibpath_var=LD_LIBRARY_PATH
18195 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18197 openbsd2.[89] | openbsd2.[89].*)
18198 shlibpath_overrides_runpath=no
18201 shlibpath_overrides_runpath=yes
18205 shlibpath_overrides_runpath=yes
18210 libname_spec='$name'
18213 library_names_spec='$libname${shared_ext} $libname.a'
18214 dynamic_linker='OS/2 ld.exe'
18215 shlibpath_var=LIBPATH
18218 osf3* | osf4* | osf5*)
18222 soname_spec='${libname}${release}${shared_ext}$major'
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224 shlibpath_var=LD_LIBRARY_PATH
18225 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18226 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18234 soname_spec='${libname}${release}${shared_ext}$major'
18235 shlibpath_var=LD_LIBRARY_PATH
18236 shlibpath_overrides_runpath=yes
18237 hardcode_into_libs=yes
18238 # ldd complains unless libraries are executable
18239 postinstall_cmds='chmod +x $lib'
18244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18246 shlibpath_var=LD_LIBRARY_PATH
18247 shlibpath_overrides_runpath=yes
18248 if test "$with_gnu_ld" = yes; then
18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18257 soname_spec='${libname}${release}${shared_ext}$major'
18258 shlibpath_var=LD_LIBRARY_PATH
18259 case $host_vendor in
18261 shlibpath_overrides_runpath=no
18263 export_dynamic_flag_spec='${wl}-Blargedynsym'
18264 runpath_var=LD_RUN_PATH
18272 shlibpath_overrides_runpath=no
18273 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18279 if test -d /usr/nec ;then
18281 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18282 soname_spec='$libname${shared_ext}.$major'
18283 shlibpath_var=LD_LIBRARY_PATH
18287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18288 version_type=freebsd-elf
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18292 soname_spec='${libname}${release}${shared_ext}$major'
18293 shlibpath_var=LD_LIBRARY_PATH
18294 hardcode_into_libs=yes
18295 if test "$with_gnu_ld" = yes; then
18296 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18297 shlibpath_overrides_runpath=no
18299 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18300 shlibpath_overrides_runpath=yes
18303 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18307 sys_lib_dlsearch_path_spec='/usr/lib'
18312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18313 soname_spec='${libname}${release}${shared_ext}$major'
18314 shlibpath_var=LD_LIBRARY_PATH
18321 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18322 echo "${ECHO_T}$dynamic_linker" >&6
18323 test "$dynamic_linker" = no && can_build_shared=no
18325 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18326 if test "$GCC" = yes; then
18327 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18330 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18331 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18332 hardcode_action_GCJ=
18333 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18334 test -n "$runpath_var_GCJ" || \
18335 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18337 # We can hardcode non-existant directories.
18338 if test "$hardcode_direct_GCJ" != no &&
18339 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18340 # have to relink, otherwise we might link with an installed library
18341 # when we should be linking with a yet-to-be-installed one
18342 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18343 test "$hardcode_minus_L_GCJ" != no; then
18344 # Linking always hardcodes the temporary library directory.
18345 hardcode_action_GCJ=relink
18347 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18348 hardcode_action_GCJ=immediate
18351 # We cannot hardcode anything, or else we can only hardcode existing
18353 hardcode_action_GCJ=unsupported
18355 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18356 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18358 if test "$hardcode_action_GCJ" = relink; then
18359 # Fast installation is not supported
18360 enable_fast_install=no
18361 elif test "$shlibpath_overrides_runpath" = yes ||
18362 test "$enable_shared" = no; then
18363 # Fast installation is not necessary
18364 enable_fast_install=needless
18368 # The else clause should only fire when bootstrapping the
18369 # libtool distribution, otherwise you forgot to ship ltmain.sh
18370 # with your package, and you will get complaints that there are
18371 # no rules to generate ltmain.sh.
18372 if test -f "$ltmain"; then
18373 # See if we are running on zsh, and set the options which allow our commands through
18374 # without removal of \ escapes.
18375 if test -n "${ZSH_VERSION+set}" ; then
18376 setopt NO_GLOB_SUBST
18378 # Now quote all the things that may contain metacharacters while being
18379 # careful not to overquote the AC_SUBSTed values. We take copies of the
18380 # variables and quote the copies for generation of the libtool script.
18381 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18383 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18384 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18385 deplibs_check_method reload_flag reload_cmds need_locks \
18386 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18387 lt_cv_sys_global_symbol_to_c_name_address \
18388 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18389 old_postinstall_cmds old_postuninstall_cmds \
18393 lt_prog_compiler_wl_GCJ \
18394 lt_prog_compiler_pic_GCJ \
18395 lt_prog_compiler_static_GCJ \
18396 lt_prog_compiler_no_builtin_flag_GCJ \
18397 export_dynamic_flag_spec_GCJ \
18398 thread_safe_flag_spec_GCJ \
18399 whole_archive_flag_spec_GCJ \
18400 enable_shared_with_static_runtimes_GCJ \
18401 old_archive_cmds_GCJ \
18402 old_archive_from_new_cmds_GCJ \
18403 predep_objects_GCJ \
18404 postdep_objects_GCJ \
18407 compiler_lib_search_path_GCJ \
18409 archive_expsym_cmds_GCJ \
18410 postinstall_cmds_GCJ \
18411 postuninstall_cmds_GCJ \
18412 old_archive_from_expsyms_cmds_GCJ \
18413 allow_undefined_flag_GCJ \
18414 no_undefined_flag_GCJ \
18415 export_symbols_cmds_GCJ \
18416 hardcode_libdir_flag_spec_GCJ \
18417 hardcode_libdir_flag_spec_ld_GCJ \
18418 hardcode_libdir_separator_GCJ \
18419 hardcode_automatic_GCJ \
18421 module_expsym_cmds_GCJ \
18422 lt_cv_prog_compiler_c_o_GCJ \
18423 exclude_expsyms_GCJ \
18424 include_expsyms_GCJ; do
18427 old_archive_cmds_GCJ | \
18428 old_archive_from_new_cmds_GCJ | \
18429 archive_cmds_GCJ | \
18430 archive_expsym_cmds_GCJ | \
18431 module_cmds_GCJ | \
18432 module_expsym_cmds_GCJ | \
18433 old_archive_from_expsyms_cmds_GCJ | \
18434 export_symbols_cmds_GCJ | \
18435 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18436 postinstall_cmds | postuninstall_cmds | \
18437 old_postinstall_cmds | old_postuninstall_cmds | \
18438 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18439 # Double-quote double-evaled strings.
18440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18443 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18449 *'\$0 --fallback-echo"')
18450 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18456 cat <<__EOF__ >> "$cfgfile"
18457 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18459 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18461 # Shell to use when invoking shell scripts.
18464 # Whether or not to build shared libraries.
18465 build_libtool_libs=$enable_shared
18467 # Whether or not to build static libraries.
18468 build_old_libs=$enable_static
18470 # Whether or not to add -lc for building shared libraries.
18471 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18473 # Whether or not to disallow shared libs when runtime libs are static
18474 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18476 # Whether or not to optimize for fast installation.
18477 fast_install=$enable_fast_install
18480 host_alias=$host_alias
18484 # The build system.
18485 build_alias=$build_alias
18489 # An echo program that does not interpret backslashes.
18494 AR_FLAGS=$lt_AR_FLAGS
18499 # LTCC compiler flags.
18500 LTCFLAGS=$lt_LTCFLAGS
18502 # A language-specific compiler.
18503 CC=$lt_compiler_GCJ
18505 # Is the compiler the GNU C compiler?
18511 # The linker used to build libraries.
18514 # Whether we need hard or soft links.
18517 # A BSD-compatible nm program.
18520 # A symbol stripping program
18523 # Used to examine libraries when file_magic_cmd begins "file"
18524 MAGIC_CMD=$MAGIC_CMD
18526 # Used on cygwin: DLL creation program.
18529 # Used on cygwin: object dumper.
18532 # Used on cygwin: assembler.
18535 # The name of the directory that contains temporary libtool files.
18538 # How to create reloadable object files.
18539 reload_flag=$lt_reload_flag
18540 reload_cmds=$lt_reload_cmds
18542 # How to pass a linker flag through the compiler.
18543 wl=$lt_lt_prog_compiler_wl_GCJ
18545 # Object file suffix (normally "o").
18546 objext="$ac_objext"
18548 # Old archive suffix (normally "a").
18551 # Shared library suffix (normally ".so").
18552 shrext_cmds='$shrext_cmds'
18554 # Executable file suffix (normally "").
18557 # Additional compiler flags for building library objects.
18558 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18561 # What is the maximum length of a command?
18562 max_cmd_len=$lt_cv_sys_max_cmd_len
18564 # Does compiler simultaneously support -c and -o options?
18565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18567 # Must we lock files when doing compilation?
18568 need_locks=$lt_need_locks
18570 # Do we need the lib prefix for modules?
18571 need_lib_prefix=$need_lib_prefix
18573 # Do we need a version for libraries?
18574 need_version=$need_version
18576 # Whether dlopen is supported.
18577 dlopen_support=$enable_dlopen
18579 # Whether dlopen of programs is supported.
18580 dlopen_self=$enable_dlopen_self
18582 # Whether dlopen of statically linked programs is supported.
18583 dlopen_self_static=$enable_dlopen_self_static
18585 # Compiler flag to prevent dynamic linking.
18586 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18588 # Compiler flag to turn off builtin functions.
18589 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18591 # Compiler flag to allow reflexive dlopens.
18592 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18594 # Compiler flag to generate shared objects directly from archives.
18595 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18597 # Compiler flag to generate thread-safe objects.
18598 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18600 # Library versioning type.
18601 version_type=$version_type
18603 # Format of library name prefix.
18604 libname_spec=$lt_libname_spec
18606 # List of archive names. First name is the real one, the rest are links.
18607 # The last name is the one that the linker finds with -lNAME.
18608 library_names_spec=$lt_library_names_spec
18610 # The coded name of the library, if different from the real name.
18611 soname_spec=$lt_soname_spec
18613 # Commands used to build and install an old-style archive.
18615 old_archive_cmds=$lt_old_archive_cmds_GCJ
18616 old_postinstall_cmds=$lt_old_postinstall_cmds
18617 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18619 # Create an old-style archive from a shared archive.
18620 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18622 # Create a temporary old-style archive to link instead of a shared archive.
18623 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18625 # Commands used to build and install a shared archive.
18626 archive_cmds=$lt_archive_cmds_GCJ
18627 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18628 postinstall_cmds=$lt_postinstall_cmds
18629 postuninstall_cmds=$lt_postuninstall_cmds
18631 # Commands used to build a loadable module (assumed same as above if empty)
18632 module_cmds=$lt_module_cmds_GCJ
18633 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18635 # Commands to strip libraries.
18636 old_striplib=$lt_old_striplib
18637 striplib=$lt_striplib
18639 # Dependencies to place before the objects being linked to create a
18641 predep_objects=$lt_predep_objects_GCJ
18643 # Dependencies to place after the objects being linked to create a
18645 postdep_objects=$lt_postdep_objects_GCJ
18647 # Dependencies to place before the objects being linked to create a
18649 predeps=$lt_predeps_GCJ
18651 # Dependencies to place after the objects being linked to create a
18653 postdeps=$lt_postdeps_GCJ
18655 # The library search path used internally by the compiler when linking
18656 # a shared library.
18657 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18659 # Method to check whether dependent libraries are shared objects.
18660 deplibs_check_method=$lt_deplibs_check_method
18662 # Command to use when deplibs_check_method == file_magic.
18663 file_magic_cmd=$lt_file_magic_cmd
18665 # Flag that allows shared libraries with undefined symbols to be built.
18666 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18668 # Flag that forces no undefined symbols.
18669 no_undefined_flag=$lt_no_undefined_flag_GCJ
18671 # Commands used to finish a libtool library installation in a directory.
18672 finish_cmds=$lt_finish_cmds
18674 # Same as above, but a single script fragment to be evaled but not shown.
18675 finish_eval=$lt_finish_eval
18677 # Take the output of nm and produce a listing of raw symbols and C names.
18678 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18680 # Transform the output of nm in a proper C declaration
18681 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18683 # Transform the output of nm in a C name address pair
18684 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18686 # This is the shared library runtime path variable.
18687 runpath_var=$runpath_var
18689 # This is the shared library path variable.
18690 shlibpath_var=$shlibpath_var
18692 # Is shlibpath searched before the hard-coded library search path?
18693 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18695 # How to hardcode a shared library path into an executable.
18696 hardcode_action=$hardcode_action_GCJ
18698 # Whether we should hardcode library paths into libraries.
18699 hardcode_into_libs=$hardcode_into_libs
18701 # Flag to hardcode \$libdir into a binary during linking.
18702 # This must work even if \$libdir does not exist.
18703 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18705 # If ld is used when linking, flag to hardcode \$libdir into
18706 # a binary during linking. This must work even if \$libdir does
18708 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18710 # Whether we need a single -rpath flag with a separated argument.
18711 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18713 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18714 # resulting binary.
18715 hardcode_direct=$hardcode_direct_GCJ
18717 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18718 # resulting binary.
18719 hardcode_minus_L=$hardcode_minus_L_GCJ
18721 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18722 # the resulting binary.
18723 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18725 # Set to yes if building a shared library automatically hardcodes DIR into the library
18726 # and all subsequent libraries and executables linked against it.
18727 hardcode_automatic=$hardcode_automatic_GCJ
18729 # Variables whose values should be saved in libtool wrapper scripts and
18730 # restored at relink time.
18731 variables_saved_for_relink="$variables_saved_for_relink"
18733 # Whether libtool must link a program against all its dependency libraries.
18734 link_all_deplibs=$link_all_deplibs_GCJ
18736 # Compile-time system search path for libraries
18737 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18739 # Run-time system search path for libraries
18740 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18742 # Fix the shell variable \$srcfile for the compiler.
18743 fix_srcfile_path="$fix_srcfile_path_GCJ"
18745 # Set to yes if exported symbols are required.
18746 always_export_symbols=$always_export_symbols_GCJ
18748 # The commands to list exported symbols.
18749 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18751 # The commands to extract the exported symbol list from a shared archive.
18752 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18754 # Symbols that should not be listed in the preloaded symbols.
18755 exclude_expsyms=$lt_exclude_expsyms_GCJ
18757 # Symbols that must always be exported.
18758 include_expsyms=$lt_include_expsyms_GCJ
18760 # ### END LIBTOOL TAG CONFIG: $tagname
18766 # If there is no Makefile yet, we rely on a make rule to execute
18767 # `config.status --recheck' to rerun these tests and create the
18768 # libtool script then.
18769 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18770 if test -f "$ltmain_in"; then
18771 test -f Makefile && make "$ltmain"
18777 ac_cpp='$CPP $CPPFLAGS'
18778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18793 # Source file extension for RC test sources.
18796 # Object file extension for compiled RC test sources.
18800 # Code to be used in simple compile tests
18801 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18803 # Code to be used in simple link tests
18804 lt_simple_link_test_code="$lt_simple_compile_test_code"
18806 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18808 # If no C compiler was specified, use CC.
18811 # If no C compiler flags were specified, use CFLAGS.
18812 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18814 # Allow CC to be a program name with arguments.
18818 # save warnings/boilerplate of simple test code
18819 ac_outfile=conftest.$ac_objext
18820 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18821 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18822 _lt_compiler_boilerplate=`cat conftest.err`
18825 ac_outfile=conftest.$ac_objext
18826 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18827 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18828 _lt_linker_boilerplate=`cat conftest.err`
18832 # Allow CC to be a program name with arguments.
18837 for cc_temp in $compiler""; do
18839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18845 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18847 lt_cv_prog_compiler_c_o_RC=yes
18849 # The else clause should only fire when bootstrapping the
18850 # libtool distribution, otherwise you forgot to ship ltmain.sh
18851 # with your package, and you will get complaints that there are
18852 # no rules to generate ltmain.sh.
18853 if test -f "$ltmain"; then
18854 # See if we are running on zsh, and set the options which allow our commands through
18855 # without removal of \ escapes.
18856 if test -n "${ZSH_VERSION+set}" ; then
18857 setopt NO_GLOB_SUBST
18859 # Now quote all the things that may contain metacharacters while being
18860 # careful not to overquote the AC_SUBSTed values. We take copies of the
18861 # variables and quote the copies for generation of the libtool script.
18862 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18864 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18865 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18866 deplibs_check_method reload_flag reload_cmds need_locks \
18867 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18868 lt_cv_sys_global_symbol_to_c_name_address \
18869 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18870 old_postinstall_cmds old_postuninstall_cmds \
18874 lt_prog_compiler_wl_RC \
18875 lt_prog_compiler_pic_RC \
18876 lt_prog_compiler_static_RC \
18877 lt_prog_compiler_no_builtin_flag_RC \
18878 export_dynamic_flag_spec_RC \
18879 thread_safe_flag_spec_RC \
18880 whole_archive_flag_spec_RC \
18881 enable_shared_with_static_runtimes_RC \
18882 old_archive_cmds_RC \
18883 old_archive_from_new_cmds_RC \
18884 predep_objects_RC \
18885 postdep_objects_RC \
18888 compiler_lib_search_path_RC \
18890 archive_expsym_cmds_RC \
18891 postinstall_cmds_RC \
18892 postuninstall_cmds_RC \
18893 old_archive_from_expsyms_cmds_RC \
18894 allow_undefined_flag_RC \
18895 no_undefined_flag_RC \
18896 export_symbols_cmds_RC \
18897 hardcode_libdir_flag_spec_RC \
18898 hardcode_libdir_flag_spec_ld_RC \
18899 hardcode_libdir_separator_RC \
18900 hardcode_automatic_RC \
18902 module_expsym_cmds_RC \
18903 lt_cv_prog_compiler_c_o_RC \
18904 exclude_expsyms_RC \
18905 include_expsyms_RC; do
18908 old_archive_cmds_RC | \
18909 old_archive_from_new_cmds_RC | \
18910 archive_cmds_RC | \
18911 archive_expsym_cmds_RC | \
18913 module_expsym_cmds_RC | \
18914 old_archive_from_expsyms_cmds_RC | \
18915 export_symbols_cmds_RC | \
18916 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18917 postinstall_cmds | postuninstall_cmds | \
18918 old_postinstall_cmds | old_postuninstall_cmds | \
18919 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18920 # Double-quote double-evaled strings.
18921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18930 *'\$0 --fallback-echo"')
18931 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18937 cat <<__EOF__ >> "$cfgfile"
18938 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18940 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18942 # Shell to use when invoking shell scripts.
18945 # Whether or not to build shared libraries.
18946 build_libtool_libs=$enable_shared
18948 # Whether or not to build static libraries.
18949 build_old_libs=$enable_static
18951 # Whether or not to add -lc for building shared libraries.
18952 build_libtool_need_lc=$archive_cmds_need_lc_RC
18954 # Whether or not to disallow shared libs when runtime libs are static
18955 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18957 # Whether or not to optimize for fast installation.
18958 fast_install=$enable_fast_install
18961 host_alias=$host_alias
18965 # The build system.
18966 build_alias=$build_alias
18970 # An echo program that does not interpret backslashes.
18975 AR_FLAGS=$lt_AR_FLAGS
18980 # LTCC compiler flags.
18981 LTCFLAGS=$lt_LTCFLAGS
18983 # A language-specific compiler.
18986 # Is the compiler the GNU C compiler?
18992 # The linker used to build libraries.
18995 # Whether we need hard or soft links.
18998 # A BSD-compatible nm program.
19001 # A symbol stripping program
19004 # Used to examine libraries when file_magic_cmd begins "file"
19005 MAGIC_CMD=$MAGIC_CMD
19007 # Used on cygwin: DLL creation program.
19010 # Used on cygwin: object dumper.
19013 # Used on cygwin: assembler.
19016 # The name of the directory that contains temporary libtool files.
19019 # How to create reloadable object files.
19020 reload_flag=$lt_reload_flag
19021 reload_cmds=$lt_reload_cmds
19023 # How to pass a linker flag through the compiler.
19024 wl=$lt_lt_prog_compiler_wl_RC
19026 # Object file suffix (normally "o").
19027 objext="$ac_objext"
19029 # Old archive suffix (normally "a").
19032 # Shared library suffix (normally ".so").
19033 shrext_cmds='$shrext_cmds'
19035 # Executable file suffix (normally "").
19038 # Additional compiler flags for building library objects.
19039 pic_flag=$lt_lt_prog_compiler_pic_RC
19042 # What is the maximum length of a command?
19043 max_cmd_len=$lt_cv_sys_max_cmd_len
19045 # Does compiler simultaneously support -c and -o options?
19046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19048 # Must we lock files when doing compilation?
19049 need_locks=$lt_need_locks
19051 # Do we need the lib prefix for modules?
19052 need_lib_prefix=$need_lib_prefix
19054 # Do we need a version for libraries?
19055 need_version=$need_version
19057 # Whether dlopen is supported.
19058 dlopen_support=$enable_dlopen
19060 # Whether dlopen of programs is supported.
19061 dlopen_self=$enable_dlopen_self
19063 # Whether dlopen of statically linked programs is supported.
19064 dlopen_self_static=$enable_dlopen_self_static
19066 # Compiler flag to prevent dynamic linking.
19067 link_static_flag=$lt_lt_prog_compiler_static_RC
19069 # Compiler flag to turn off builtin functions.
19070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19072 # Compiler flag to allow reflexive dlopens.
19073 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19075 # Compiler flag to generate shared objects directly from archives.
19076 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19078 # Compiler flag to generate thread-safe objects.
19079 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19081 # Library versioning type.
19082 version_type=$version_type
19084 # Format of library name prefix.
19085 libname_spec=$lt_libname_spec
19087 # List of archive names. First name is the real one, the rest are links.
19088 # The last name is the one that the linker finds with -lNAME.
19089 library_names_spec=$lt_library_names_spec
19091 # The coded name of the library, if different from the real name.
19092 soname_spec=$lt_soname_spec
19094 # Commands used to build and install an old-style archive.
19096 old_archive_cmds=$lt_old_archive_cmds_RC
19097 old_postinstall_cmds=$lt_old_postinstall_cmds
19098 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19100 # Create an old-style archive from a shared archive.
19101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19103 # Create a temporary old-style archive to link instead of a shared archive.
19104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19106 # Commands used to build and install a shared archive.
19107 archive_cmds=$lt_archive_cmds_RC
19108 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19109 postinstall_cmds=$lt_postinstall_cmds
19110 postuninstall_cmds=$lt_postuninstall_cmds
19112 # Commands used to build a loadable module (assumed same as above if empty)
19113 module_cmds=$lt_module_cmds_RC
19114 module_expsym_cmds=$lt_module_expsym_cmds_RC
19116 # Commands to strip libraries.
19117 old_striplib=$lt_old_striplib
19118 striplib=$lt_striplib
19120 # Dependencies to place before the objects being linked to create a
19122 predep_objects=$lt_predep_objects_RC
19124 # Dependencies to place after the objects being linked to create a
19126 postdep_objects=$lt_postdep_objects_RC
19128 # Dependencies to place before the objects being linked to create a
19130 predeps=$lt_predeps_RC
19132 # Dependencies to place after the objects being linked to create a
19134 postdeps=$lt_postdeps_RC
19136 # The library search path used internally by the compiler when linking
19137 # a shared library.
19138 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19140 # Method to check whether dependent libraries are shared objects.
19141 deplibs_check_method=$lt_deplibs_check_method
19143 # Command to use when deplibs_check_method == file_magic.
19144 file_magic_cmd=$lt_file_magic_cmd
19146 # Flag that allows shared libraries with undefined symbols to be built.
19147 allow_undefined_flag=$lt_allow_undefined_flag_RC
19149 # Flag that forces no undefined symbols.
19150 no_undefined_flag=$lt_no_undefined_flag_RC
19152 # Commands used to finish a libtool library installation in a directory.
19153 finish_cmds=$lt_finish_cmds
19155 # Same as above, but a single script fragment to be evaled but not shown.
19156 finish_eval=$lt_finish_eval
19158 # Take the output of nm and produce a listing of raw symbols and C names.
19159 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19161 # Transform the output of nm in a proper C declaration
19162 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19164 # Transform the output of nm in a C name address pair
19165 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19167 # This is the shared library runtime path variable.
19168 runpath_var=$runpath_var
19170 # This is the shared library path variable.
19171 shlibpath_var=$shlibpath_var
19173 # Is shlibpath searched before the hard-coded library search path?
19174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19176 # How to hardcode a shared library path into an executable.
19177 hardcode_action=$hardcode_action_RC
19179 # Whether we should hardcode library paths into libraries.
19180 hardcode_into_libs=$hardcode_into_libs
19182 # Flag to hardcode \$libdir into a binary during linking.
19183 # This must work even if \$libdir does not exist.
19184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19186 # If ld is used when linking, flag to hardcode \$libdir into
19187 # a binary during linking. This must work even if \$libdir does
19189 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19191 # Whether we need a single -rpath flag with a separated argument.
19192 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19194 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19195 # resulting binary.
19196 hardcode_direct=$hardcode_direct_RC
19198 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19199 # resulting binary.
19200 hardcode_minus_L=$hardcode_minus_L_RC
19202 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19203 # the resulting binary.
19204 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19206 # Set to yes if building a shared library automatically hardcodes DIR into the library
19207 # and all subsequent libraries and executables linked against it.
19208 hardcode_automatic=$hardcode_automatic_RC
19210 # Variables whose values should be saved in libtool wrapper scripts and
19211 # restored at relink time.
19212 variables_saved_for_relink="$variables_saved_for_relink"
19214 # Whether libtool must link a program against all its dependency libraries.
19215 link_all_deplibs=$link_all_deplibs_RC
19217 # Compile-time system search path for libraries
19218 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19220 # Run-time system search path for libraries
19221 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19223 # Fix the shell variable \$srcfile for the compiler.
19224 fix_srcfile_path="$fix_srcfile_path_RC"
19226 # Set to yes if exported symbols are required.
19227 always_export_symbols=$always_export_symbols_RC
19229 # The commands to list exported symbols.
19230 export_symbols_cmds=$lt_export_symbols_cmds_RC
19232 # The commands to extract the exported symbol list from a shared archive.
19233 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19235 # Symbols that should not be listed in the preloaded symbols.
19236 exclude_expsyms=$lt_exclude_expsyms_RC
19238 # Symbols that must always be exported.
19239 include_expsyms=$lt_include_expsyms_RC
19241 # ### END LIBTOOL TAG CONFIG: $tagname
19247 # If there is no Makefile yet, we rely on a make rule to execute
19248 # `config.status --recheck' to rerun these tests and create the
19249 # libtool script then.
19250 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19251 if test -f "$ltmain_in"; then
19252 test -f Makefile && make "$ltmain"
19258 ac_cpp='$CPP $CPPFLAGS'
19259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19268 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19269 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19270 { (exit 1); exit 1; }; }
19274 # Append the new tag name to the list of available tags.
19275 if test -n "$tagname" ; then
19276 available_tags="$available_tags $tagname"
19282 # Now substitute the updated list of available tags.
19283 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19284 mv "${ofile}T" "$ofile"
19288 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19289 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19290 { (exit 1); exit 1; }; }
19296 # This can be used to rebuild libtool when needed
19297 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19299 # Always use our own libtool.
19300 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19302 # Prevent multiple expansion
19324 ac_config_files="$ac_config_files Makefile json.pc"
19325 cat >confcache <<\_ACEOF
19326 # This file is a shell script that caches the results of configure
19327 # tests run on this system so they can be shared between configure
19328 # scripts and configure runs, see configure's option --config-cache.
19329 # It is not useful on other systems. If it contains results you don't
19330 # want to keep, you may remove or edit it.
19332 # config.status only pays attention to the cache file if you give it
19333 # the --recheck option to rerun configure.
19335 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19336 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19337 # following values.
19341 # The following way of writing the cache mishandles newlines in values,
19342 # but we know of no workaround that is simple, portable, and efficient.
19343 # So, don't put newlines in cache variables' values.
19344 # Ultrix sh set writes to stderr and can't be redirected directly,
19345 # and sets the high bit in the cache file unless we assign to the vars.
19348 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19350 # `set' does not quote correctly, so add quotes (double-quote
19351 # substitution turns \\\\ into \\, and sed turns \\ into \).
19354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19357 # `set' quotes correctly as required by POSIX, so do not add quotes.
19359 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19368 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19370 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19371 if test -w $cache_file; then
19372 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19373 cat confcache >$cache_file
19375 echo "not updating unwritable cache $cache_file"
19380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19381 # Let make expand exec_prefix.
19382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19384 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19385 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19386 # trailing colons and then remove the whole line if VPATH becomes empty
19387 # (actually we leave an empty line to preserve line numbers).
19388 if test "x$srcdir" = x.; then
19389 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19390 s/:*\$(srcdir):*/:/;
19391 s/:*\${srcdir}:*/:/;
19393 s/^\([^=]*=[ ]*\):*/\1/;
19399 DEFS=-DHAVE_CONFIG_H
19403 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19404 # 1. Remove the extension, and $U if already installed.
19405 ac_i=`echo "$ac_i" |
19406 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19408 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19409 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19411 LIBOBJS=$ac_libobjs
19413 LTLIBOBJS=$ac_ltlibobjs
19417 : ${CONFIG_STATUS=./config.status}
19418 ac_clean_files_save=$ac_clean_files
19419 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19420 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19421 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19422 cat >$CONFIG_STATUS <<_ACEOF
19424 # Generated by $as_me.
19425 # Run this file to recreate the current configuration.
19426 # Compiler output produced by configure, useful for debugging
19427 # configure, is in config.log if it exists.
19430 ac_cs_recheck=false
19432 SHELL=\${CONFIG_SHELL-$SHELL}
19435 cat >>$CONFIG_STATUS <<\_ACEOF
19436 ## --------------------- ##
19437 ## M4sh Initialization. ##
19438 ## --------------------- ##
19440 # Be Bourne compatible
19441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19444 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19445 # is contrary to our usage. Disable this feature.
19446 alias -g '${1+"$@"}'='"$@"'
19447 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19450 DUALCASE=1; export DUALCASE # for MKS sh
19452 # Support unset when possible.
19453 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19460 # Work around bugs in pre-3.0 UWIN ksh.
19461 $as_unset ENV MAIL MAILPATH
19468 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19469 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19470 LC_TELEPHONE LC_TIME
19472 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19473 eval $as_var=C; export $as_var
19479 # Required to use basename.
19480 if expr a : '\(a\)' >/dev/null 2>&1; then
19486 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19487 as_basename=basename
19493 # Name of the executable.
19494 as_me=`$as_basename "$0" ||
19495 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19496 X"$0" : 'X\(//\)$' \| \
19497 X"$0" : 'X\(/\)$' \| \
19498 . : '\(.\)' 2>/dev/null ||
19500 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19501 /^X\/\(\/\/\)$/{ s//\1/; q; }
19502 /^X\/\(\/\).*/{ s//\1/; q; }
19506 # PATH needs CR, and LINENO needs CR and PATH.
19507 # Avoid depending upon Character Ranges.
19508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19511 as_cr_digits='0123456789'
19512 as_cr_alnum=$as_cr_Letters$as_cr_digits
19514 # The user is always right.
19515 if test "${PATH_SEPARATOR+set}" != set; then
19516 echo "#! /bin/sh" >conf$$.sh
19517 echo "exit 0" >>conf$$.sh
19519 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19528 as_lineno_1=$LINENO
19529 as_lineno_2=$LINENO
19530 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19531 test "x$as_lineno_1" != "x$as_lineno_2" &&
19532 test "x$as_lineno_3" = "x$as_lineno_2" || {
19533 # Find who we are. Look in the path if we contain no path at all
19536 *[\\/]* ) as_myself=$0 ;;
19537 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19538 for as_dir in $PATH
19541 test -z "$as_dir" && as_dir=.
19542 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19547 # We did not find ourselves, most probably we were run as `sh COMMAND'
19548 # in which case we are not to be found in the path.
19549 if test "x$as_myself" = x; then
19552 if test ! -f "$as_myself"; then
19553 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19554 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19555 { (exit 1); exit 1; }; }
19557 case $CONFIG_SHELL in
19559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19560 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19563 test -z "$as_dir" && as_dir=.
19564 for as_base in sh bash ksh sh5; do
19567 if ("$as_dir/$as_base" -c '
19568 as_lineno_1=$LINENO
19569 as_lineno_2=$LINENO
19570 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19571 test "x$as_lineno_1" != "x$as_lineno_2" &&
19572 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19573 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19574 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19575 CONFIG_SHELL=$as_dir/$as_base
19576 export CONFIG_SHELL
19577 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19585 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19586 # uniformly replaced by the line number. The first 'sed' inserts a
19587 # line-number line before each line; the second 'sed' does the real
19588 # work. The second script uses 'N' to pair each line-number line
19589 # with the numbered line, and appends trailing '-' during
19590 # substitution so that $LINENO is not a special case at line end.
19591 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19592 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19593 sed '=' <$as_myself |
19598 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19601 s,^['$as_cr_digits']*\n,,
19602 ' >$as_me.lineno &&
19603 chmod +x $as_me.lineno ||
19604 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19605 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19606 { (exit 1); exit 1; }; }
19608 # Don't try to exec as it changes $[0], causing all sort of problems
19609 # (the dirname of $[0] is not the place where we might find the
19610 # original and so on. Autoconf is especially sensible to this).
19612 # Exit status is that of the last command.
19617 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19618 *c*,-n*) ECHO_N= ECHO_C='
19620 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19621 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19624 if expr a : '\(a\)' >/dev/null 2>&1; then
19630 rm -f conf$$ conf$$.exe conf$$.file
19632 if ln -s conf$$.file conf$$ 2>/dev/null; then
19633 # We could just check for DJGPP; but this test a) works b) is more generic
19634 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19635 if test -f conf$$.exe; then
19636 # Don't use ln at all; we don't have any links
19641 elif ln conf$$.file conf$$ 2>/dev/null; then
19646 rm -f conf$$ conf$$.exe conf$$.file
19648 if mkdir -p . 2>/dev/null; then
19651 test -d ./-p && rmdir ./-p
19655 as_executable_p="test -f"
19657 # Sed expression to map a string onto a valid CPP name.
19658 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19660 # Sed expression to map a string onto a valid variable name.
19661 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19665 # We need space, tab and new line, in precisely that order.
19675 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19676 # report actual input values of CONFIG_FILES etc. instead of their
19677 # values after options handling. Logging --version etc. is OK.
19681 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19682 ## Running $as_me. ##
19687 This file was extended by JSON C Library $as_me 0.3, which was
19688 generated by GNU Autoconf 2.59. Invocation command line was
19690 CONFIG_FILES = $CONFIG_FILES
19691 CONFIG_HEADERS = $CONFIG_HEADERS
19692 CONFIG_LINKS = $CONFIG_LINKS
19693 CONFIG_COMMANDS = $CONFIG_COMMANDS
19697 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19701 # Files that config.status was made for.
19702 if test -n "$ac_config_files"; then
19703 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19706 if test -n "$ac_config_headers"; then
19707 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19710 if test -n "$ac_config_links"; then
19711 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19714 if test -n "$ac_config_commands"; then
19715 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19718 cat >>$CONFIG_STATUS <<\_ACEOF
19721 \`$as_me' instantiates files from templates according to the
19722 current configuration.
19724 Usage: $0 [OPTIONS] [FILE]...
19726 -h, --help print this help, then exit
19727 -V, --version print version number, then exit
19728 -q, --quiet do not print progress messages
19729 -d, --debug don't remove temporary files
19730 --recheck update $as_me by reconfiguring in the same conditions
19731 --file=FILE[:TEMPLATE]
19732 instantiate the configuration file FILE
19733 --header=FILE[:TEMPLATE]
19734 instantiate the configuration header FILE
19736 Configuration files:
19739 Configuration headers:
19742 Configuration commands:
19745 Report bugs to <bug-autoconf@gnu.org>."
19748 cat >>$CONFIG_STATUS <<_ACEOF
19750 JSON C Library config.status 0.3
19751 configured by $0, generated by GNU Autoconf 2.59,
19752 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19754 Copyright (C) 2003 Free Software Foundation, Inc.
19755 This config.status script is free software; the Free Software Foundation
19756 gives unlimited permission to copy, distribute and modify it."
19761 cat >>$CONFIG_STATUS <<\_ACEOF
19762 # If no file are specified by the user, then we need to provide default
19763 # value. By we need to know if files were specified by the user.
19769 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19770 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19778 *) # This is not an option, so the user has probably given explicit
19781 ac_need_defaults=false;;
19785 # Handling of the options.
19787 cat >>$CONFIG_STATUS <<\_ACEOF
19788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19790 --version | --vers* | -V )
19791 echo "$ac_cs_version"; exit 0 ;;
19793 # Conflict between --help and --header
19794 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19795 Try \`$0 --help' for more information." >&5
19796 echo "$as_me: error: ambiguous option: $1
19797 Try \`$0 --help' for more information." >&2;}
19798 { (exit 1); exit 1; }; };;
19799 --help | --hel | -h )
19800 echo "$ac_cs_usage"; exit 0 ;;
19801 --debug | --d* | -d )
19803 --file | --fil | --fi | --f )
19805 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19806 ac_need_defaults=false;;
19807 --header | --heade | --head | --hea )
19809 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19810 ac_need_defaults=false;;
19811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19812 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19815 # This is an error.
19816 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19817 Try \`$0 --help' for more information." >&5
19818 echo "$as_me: error: unrecognized option: $1
19819 Try \`$0 --help' for more information." >&2;}
19820 { (exit 1); exit 1; }; } ;;
19822 *) ac_config_targets="$ac_config_targets $1" ;;
19828 ac_configure_extra_args=
19830 if $ac_cs_silent; then
19832 ac_configure_extra_args="$ac_configure_extra_args --silent"
19836 cat >>$CONFIG_STATUS <<_ACEOF
19837 if \$ac_cs_recheck; then
19838 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19839 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19844 cat >>$CONFIG_STATUS <<_ACEOF
19846 # INIT-COMMANDS section.
19855 cat >>$CONFIG_STATUS <<\_ACEOF
19856 for ac_config_target in $ac_config_targets
19858 case "$ac_config_target" in
19859 # Handling of arguments.
19860 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19861 "json.pc" ) CONFIG_FILES="$CONFIG_FILES json.pc" ;;
19862 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19863 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19864 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19865 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19866 { (exit 1); exit 1; }; };;
19870 # If the user did not use the arguments to specify the items to instantiate,
19871 # then the envvar interface is used. Set only those that are not.
19872 # We use the long form for the default assignment because of an extremely
19873 # bizarre bug on SunOS 4.1.3.
19874 if $ac_need_defaults; then
19875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19880 # Have a temporary directory for convenience. Make it in the build tree
19881 # simply because there is no reason to put it here, and in addition,
19882 # creating and moving files from /tmp can sometimes cause problems.
19883 # Create a temporary directory, and hook for its removal unless debugging.
19886 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19887 trap '{ (exit 1); exit 1; }' 1 2 13 15
19890 # Create a (secure) tmp directory for tmp files.
19893 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19894 test -n "$tmp" && test -d "$tmp"
19897 tmp=./confstat$$-$RANDOM
19898 (umask 077 && mkdir $tmp)
19901 echo "$me: cannot create a temporary directory in ." >&2
19902 { (exit 1); exit 1; }
19907 cat >>$CONFIG_STATUS <<_ACEOF
19910 # CONFIG_FILES section.
19913 # No need to generate the scripts if there are no CONFIG_FILES.
19914 # This happens for instance when ./config.status config.h
19915 if test -n "\$CONFIG_FILES"; then
19916 # Protect against being on the right side of a sed subst in config.status.
19917 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19918 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19919 s,@SHELL@,$SHELL,;t t
19920 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19921 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19922 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19923 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19924 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19925 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19926 s,@exec_prefix@,$exec_prefix,;t t
19927 s,@prefix@,$prefix,;t t
19928 s,@program_transform_name@,$program_transform_name,;t t
19929 s,@bindir@,$bindir,;t t
19930 s,@sbindir@,$sbindir,;t t
19931 s,@libexecdir@,$libexecdir,;t t
19932 s,@datadir@,$datadir,;t t
19933 s,@sysconfdir@,$sysconfdir,;t t
19934 s,@sharedstatedir@,$sharedstatedir,;t t
19935 s,@localstatedir@,$localstatedir,;t t
19936 s,@libdir@,$libdir,;t t
19937 s,@includedir@,$includedir,;t t
19938 s,@oldincludedir@,$oldincludedir,;t t
19939 s,@infodir@,$infodir,;t t
19940 s,@mandir@,$mandir,;t t
19941 s,@build_alias@,$build_alias,;t t
19942 s,@host_alias@,$host_alias,;t t
19943 s,@target_alias@,$target_alias,;t t
19944 s,@DEFS@,$DEFS,;t t
19945 s,@ECHO_C@,$ECHO_C,;t t
19946 s,@ECHO_N@,$ECHO_N,;t t
19947 s,@ECHO_T@,$ECHO_T,;t t
19948 s,@LIBS@,$LIBS,;t t
19949 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19950 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19951 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19952 s,@PACKAGE@,$PACKAGE,;t t
19953 s,@VERSION@,$VERSION,;t t
19954 s,@ACLOCAL@,$ACLOCAL,;t t
19955 s,@AUTOCONF@,$AUTOCONF,;t t
19956 s,@AUTOMAKE@,$AUTOMAKE,;t t
19957 s,@AUTOHEADER@,$AUTOHEADER,;t t
19958 s,@MAKEINFO@,$MAKEINFO,;t t
19959 s,@SET_MAKE@,$SET_MAKE,;t t
19961 s,@CFLAGS@,$CFLAGS,;t t
19962 s,@LDFLAGS@,$LDFLAGS,;t t
19963 s,@CPPFLAGS@,$CPPFLAGS,;t t
19964 s,@ac_ct_CC@,$ac_ct_CC,;t t
19965 s,@EXEEXT@,$EXEEXT,;t t
19966 s,@OBJEXT@,$OBJEXT,;t t
19968 s,@EGREP@,$EGREP,;t t
19969 s,@LIBOBJS@,$LIBOBJS,;t t
19970 s,@build@,$build,;t t
19971 s,@build_cpu@,$build_cpu,;t t
19972 s,@build_vendor@,$build_vendor,;t t
19973 s,@build_os@,$build_os,;t t
19974 s,@host@,$host,;t t
19975 s,@host_cpu@,$host_cpu,;t t
19976 s,@host_vendor@,$host_vendor,;t t
19977 s,@host_os@,$host_os,;t t
19978 s,@LN_S@,$LN_S,;t t
19979 s,@ECHO@,$ECHO,;t t
19981 s,@ac_ct_AR@,$ac_ct_AR,;t t
19982 s,@RANLIB@,$RANLIB,;t t
19983 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19984 s,@STRIP@,$STRIP,;t t
19985 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19987 s,@CXXFLAGS@,$CXXFLAGS,;t t
19988 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19989 s,@CXXCPP@,$CXXCPP,;t t
19991 s,@FFLAGS@,$FFLAGS,;t t
19992 s,@ac_ct_F77@,$ac_ct_F77,;t t
19993 s,@LIBTOOL@,$LIBTOOL,;t t
19994 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19999 cat >>$CONFIG_STATUS <<\_ACEOF
20000 # Split the substitutions into bite-sized pieces for seds with
20001 # small command number limits, like on Digital OSF/1 and HP-UX.
20002 ac_max_sed_lines=48
20003 ac_sed_frag=1 # Number of current file.
20004 ac_beg=1 # First line for current file.
20005 ac_end=$ac_max_sed_lines # Line after last line for current file.
20008 while $ac_more_lines; do
20009 if test $ac_beg -gt 1; then
20010 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20012 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20014 if test ! -s $tmp/subs.frag; then
20015 ac_more_lines=false
20017 # The purpose of the label and of the branching condition is to
20018 # speed up the sed processing (if there are no `@' at all, there
20019 # is no need to browse any of the substitutions).
20020 # These are the two extra sed commands mentioned above.
20022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20023 if test -z "$ac_sed_cmds"; then
20024 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20026 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20028 ac_sed_frag=`expr $ac_sed_frag + 1`
20030 ac_end=`expr $ac_end + $ac_max_sed_lines`
20033 if test -z "$ac_sed_cmds"; then
20036 fi # test -n "$CONFIG_FILES"
20039 cat >>$CONFIG_STATUS <<\_ACEOF
20040 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20043 - | *:- | *:-:* ) # input from stdin
20045 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20047 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20049 * ) ac_file_in=$ac_file.in ;;
20052 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20055 X"$ac_file" : 'X\(//\)[^/]' \| \
20056 X"$ac_file" : 'X\(//\)$' \| \
20057 X"$ac_file" : 'X\(/\)' \| \
20058 . : '\(.\)' 2>/dev/null ||
20060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20062 /^X\(\/\/\)$/{ s//\1/; q; }
20063 /^X\(\/\).*/{ s//\1/; q; }
20065 { if $as_mkdir_p; then
20070 while test ! -d "$as_dir"; do
20071 as_dirs="$as_dir $as_dirs"
20072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20074 X"$as_dir" : 'X\(//\)[^/]' \| \
20075 X"$as_dir" : 'X\(//\)$' \| \
20076 X"$as_dir" : 'X\(/\)' \| \
20077 . : '\(.\)' 2>/dev/null ||
20079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20081 /^X\(\/\/\)$/{ s//\1/; q; }
20082 /^X\(\/\).*/{ s//\1/; q; }
20085 test ! -n "$as_dirs" || mkdir $as_dirs
20086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20087 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20088 { (exit 1); exit 1; }; }; }
20092 if test "$ac_dir" != .; then
20093 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20094 # A "../" for each directory in $ac_dir_suffix.
20095 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20097 ac_dir_suffix= ac_top_builddir=
20101 .) # No --srcdir option. We are building in place.
20103 if test -z "$ac_top_builddir"; then
20106 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20108 [\\/]* | ?:[\\/]* ) # Absolute path.
20109 ac_srcdir=$srcdir$ac_dir_suffix;
20110 ac_top_srcdir=$srcdir ;;
20111 *) # Relative path.
20112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20113 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20116 # Do not use `cd foo && pwd` to compute absolute paths, because
20117 # the directories may not exist.
20119 .) ac_abs_builddir="$ac_dir";;
20122 .) ac_abs_builddir=`pwd`;;
20123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20124 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20127 case $ac_abs_builddir in
20128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20130 case ${ac_top_builddir}. in
20131 .) ac_abs_top_builddir=$ac_abs_builddir;;
20132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20136 case $ac_abs_builddir in
20137 .) ac_abs_srcdir=$ac_srcdir;;
20140 .) ac_abs_srcdir=$ac_abs_builddir;;
20141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20145 case $ac_abs_builddir in
20146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20148 case $ac_top_srcdir in
20149 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20158 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20161 # Let's still pretend it is `configure' which instantiates (i.e., don't
20162 # use $as_me), people would be surprised to read:
20163 # /* config.h. Generated by config.status. */
20164 if test x"$ac_file" = x-; then
20167 configure_input="$ac_file. "
20169 configure_input=$configure_input"Generated from `echo $ac_file_in |
20170 sed 's,.*/,,'` by configure."
20172 # First look for the input files in the build tree, otherwise in the
20174 ac_file_inputs=`IFS=:
20175 for f in $ac_file_in; do
20177 -) echo $tmp/stdin ;;
20179 # Absolute (can't be DOS-style, as IFS=:)
20180 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20181 echo "$as_me: error: cannot find input file: $f" >&2;}
20182 { (exit 1); exit 1; }; }
20185 if test -f "$f"; then
20188 elif test -f "$srcdir/$f"; then
20193 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20194 echo "$as_me: error: cannot find input file: $f" >&2;}
20195 { (exit 1); exit 1; }; }
20198 done` || { (exit 1); exit 1; }
20200 if test x"$ac_file" != x-; then
20201 { echo "$as_me:$LINENO: creating $ac_file" >&5
20202 echo "$as_me: creating $ac_file" >&6;}
20206 cat >>$CONFIG_STATUS <<_ACEOF
20210 cat >>$CONFIG_STATUS <<\_ACEOF
20212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20213 s,@configure_input@,$configure_input,;t t
20214 s,@srcdir@,$ac_srcdir,;t t
20215 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20216 s,@top_srcdir@,$ac_top_srcdir,;t t
20217 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20218 s,@builddir@,$ac_builddir,;t t
20219 s,@abs_builddir@,$ac_abs_builddir,;t t
20220 s,@top_builddir@,$ac_top_builddir,;t t
20221 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20222 s,@INSTALL@,$ac_INSTALL,;t t
20223 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20225 if test x"$ac_file" != x-; then
20226 mv $tmp/out $ac_file
20234 cat >>$CONFIG_STATUS <<\_ACEOF
20237 # CONFIG_HEADER section.
20240 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20241 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20243 # ac_d sets the value in "#define NAME VALUE" lines.
20244 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20245 ac_dB='[ ].*$,\1#\2'
20248 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20249 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20250 ac_uB='$,\1#\2define\3'
20254 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20255 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20257 - | *:- | *:-:* ) # input from stdin
20259 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20260 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20261 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20262 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20263 * ) ac_file_in=$ac_file.in ;;
20266 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20267 echo "$as_me: creating $ac_file" >&6;}
20269 # First look for the input files in the build tree, otherwise in the
20271 ac_file_inputs=`IFS=:
20272 for f in $ac_file_in; do
20274 -) echo $tmp/stdin ;;
20276 # Absolute (can't be DOS-style, as IFS=:)
20277 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20278 echo "$as_me: error: cannot find input file: $f" >&2;}
20279 { (exit 1); exit 1; }; }
20280 # Do quote $f, to prevent DOS paths from being IFS'd.
20283 if test -f "$f"; then
20286 elif test -f "$srcdir/$f"; then
20291 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20292 echo "$as_me: error: cannot find input file: $f" >&2;}
20293 { (exit 1); exit 1; }; }
20296 done` || { (exit 1); exit 1; }
20297 # Remove the trailing spaces.
20298 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20302 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20303 # `conftest.undefs', that substitutes the proper values into
20304 # config.h.in to produce config.h. The first handles `#define'
20305 # templates, and the second `#undef' templates.
20306 # And first: Protect against being on the right side of a sed subst in
20307 # config.status. Protect against being in an unquoted here document
20308 # in config.status.
20309 rm -f conftest.defines conftest.undefs
20310 # Using a here document instead of a string reduces the quoting nightmare.
20311 # Putting comments in sed scripts is not portable.
20313 # `end' is used to avoid that the second main sed command (meant for
20314 # 0-ary CPP macros) applies to n-ary macro definitions.
20315 # See the Autoconf documentation for `clear'.
20316 cat >confdef2sed.sed <<\_ACEOF
20321 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20323 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20326 # If some macros were called several times there might be several times
20327 # the same #defines, which is useless. Nevertheless, we may not want to
20328 # sort them, since we want the *last* AC-DEFINE to be honored.
20329 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20330 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20331 rm -f confdef2sed.sed
20333 # This sed command replaces #undef with comments. This is necessary, for
20334 # example, in the case of _POSIX_SOURCE, which is predefined and required
20335 # on some systems where configure will not decide to define it.
20336 cat >>conftest.undefs <<\_ACEOF
20337 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20340 # Break up conftest.defines because some shells have a limit on the size
20341 # of here documents, and old seds have small limits too (100 cmds).
20342 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20343 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20344 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20345 echo ' :' >>$CONFIG_STATUS
20346 rm -f conftest.tail
20347 while grep . conftest.defines >/dev/null
20349 # Write a limited-size here document to $tmp/defines.sed.
20350 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20351 # Speed up: don't consider the non `#define' lines.
20352 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20353 # Work around the forget-to-reset-the-flag bug.
20354 echo 't clr' >>$CONFIG_STATUS
20355 echo ': clr' >>$CONFIG_STATUS
20356 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20358 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20360 mv $tmp/out $tmp/in
20362 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20363 rm -f conftest.defines
20364 mv conftest.tail conftest.defines
20366 rm -f conftest.defines
20367 echo ' fi # grep' >>$CONFIG_STATUS
20368 echo >>$CONFIG_STATUS
20370 # Break up conftest.undefs because some shells have a limit on the size
20371 # of here documents, and old seds have small limits too (100 cmds).
20372 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20373 rm -f conftest.tail
20374 while grep . conftest.undefs >/dev/null
20376 # Write a limited-size here document to $tmp/undefs.sed.
20377 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20378 # Speed up: don't consider the non `#undef'
20379 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20380 # Work around the forget-to-reset-the-flag bug.
20381 echo 't clr' >>$CONFIG_STATUS
20382 echo ': clr' >>$CONFIG_STATUS
20383 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20385 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20387 mv $tmp/out $tmp/in
20389 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20390 rm -f conftest.undefs
20391 mv conftest.tail conftest.undefs
20393 rm -f conftest.undefs
20395 cat >>$CONFIG_STATUS <<\_ACEOF
20396 # Let's still pretend it is `configure' which instantiates (i.e., don't
20397 # use $as_me), people would be surprised to read:
20398 # /* config.h. Generated by config.status. */
20399 if test x"$ac_file" = x-; then
20400 echo "/* Generated by configure. */" >$tmp/config.h
20402 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20404 cat $tmp/in >>$tmp/config.h
20406 if test x"$ac_file" != x-; then
20407 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20408 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20409 echo "$as_me: $ac_file is unchanged" >&6;}
20411 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20413 X"$ac_file" : 'X\(//\)[^/]' \| \
20414 X"$ac_file" : 'X\(//\)$' \| \
20415 X"$ac_file" : 'X\(/\)' \| \
20416 . : '\(.\)' 2>/dev/null ||
20418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20420 /^X\(\/\/\)$/{ s//\1/; q; }
20421 /^X\(\/\).*/{ s//\1/; q; }
20423 { if $as_mkdir_p; then
20428 while test ! -d "$as_dir"; do
20429 as_dirs="$as_dir $as_dirs"
20430 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20432 X"$as_dir" : 'X\(//\)[^/]' \| \
20433 X"$as_dir" : 'X\(//\)$' \| \
20434 X"$as_dir" : 'X\(/\)' \| \
20435 . : '\(.\)' 2>/dev/null ||
20437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20439 /^X\(\/\/\)$/{ s//\1/; q; }
20440 /^X\(\/\).*/{ s//\1/; q; }
20443 test ! -n "$as_dirs" || mkdir $as_dirs
20444 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20445 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20446 { (exit 1); exit 1; }; }; }
20449 mv $tmp/config.h $ac_file
20453 rm -f $tmp/config.h
20457 cat >>$CONFIG_STATUS <<\_ACEOF
20460 # CONFIG_COMMANDS section.
20462 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20463 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20464 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20465 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20466 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20467 X"$ac_dest" : 'X\(//\)[^/]' \| \
20468 X"$ac_dest" : 'X\(//\)$' \| \
20469 X"$ac_dest" : 'X\(/\)' \| \
20470 . : '\(.\)' 2>/dev/null ||
20472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20474 /^X\(\/\/\)$/{ s//\1/; q; }
20475 /^X\(\/\).*/{ s//\1/; q; }
20477 { if $as_mkdir_p; then
20482 while test ! -d "$as_dir"; do
20483 as_dirs="$as_dir $as_dirs"
20484 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20486 X"$as_dir" : 'X\(//\)[^/]' \| \
20487 X"$as_dir" : 'X\(//\)$' \| \
20488 X"$as_dir" : 'X\(/\)' \| \
20489 . : '\(.\)' 2>/dev/null ||
20491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20493 /^X\(\/\/\)$/{ s//\1/; q; }
20494 /^X\(\/\).*/{ s//\1/; q; }
20497 test ! -n "$as_dirs" || mkdir $as_dirs
20498 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20499 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20500 { (exit 1); exit 1; }; }; }
20504 if test "$ac_dir" != .; then
20505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20506 # A "../" for each directory in $ac_dir_suffix.
20507 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20509 ac_dir_suffix= ac_top_builddir=
20513 .) # No --srcdir option. We are building in place.
20515 if test -z "$ac_top_builddir"; then
20518 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20520 [\\/]* | ?:[\\/]* ) # Absolute path.
20521 ac_srcdir=$srcdir$ac_dir_suffix;
20522 ac_top_srcdir=$srcdir ;;
20523 *) # Relative path.
20524 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20525 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20528 # Do not use `cd foo && pwd` to compute absolute paths, because
20529 # the directories may not exist.
20531 .) ac_abs_builddir="$ac_dir";;
20534 .) ac_abs_builddir=`pwd`;;
20535 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20536 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20539 case $ac_abs_builddir in
20540 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20542 case ${ac_top_builddir}. in
20543 .) ac_abs_top_builddir=$ac_abs_builddir;;
20544 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20545 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20548 case $ac_abs_builddir in
20549 .) ac_abs_srcdir=$ac_srcdir;;
20552 .) ac_abs_srcdir=$ac_abs_builddir;;
20553 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20554 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20557 case $ac_abs_builddir in
20558 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20560 case $ac_top_srcdir in
20561 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20562 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20563 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20568 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20569 echo "$as_me: executing $ac_dest commands" >&6;}
20571 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
20576 cat >>$CONFIG_STATUS <<\_ACEOF
20578 { (exit 0); exit 0; }
20580 chmod +x $CONFIG_STATUS
20581 ac_clean_files=$ac_clean_files_save
20584 # configure is writing to config.log, and then calls config.status.
20585 # config.status does its own redirection, appending to config.log.
20586 # Unfortunately, on DOS this fails, as config.log is still kept open
20587 # by configure, so config.status won't be able to write to it; its
20588 # output is simply discarded. So we exec the FD to /dev/null,
20589 # effectively closing config.log, so it can be properly (re)opened and
20590 # appended to by config.status. When coming back to configure, we
20591 # need to make the FD available again.
20592 if test "$no_create" != yes; then
20594 ac_config_status_args=
20595 test "$silent" = yes &&
20596 ac_config_status_args="$ac_config_status_args --quiet"
20598 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20601 # would make configure fail if this is the last instruction.
20602 $ac_cs_success || { (exit 1); exit 1; }