2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="../../src/c++/common/base/base64.cpp"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CURL_LDFLAGS CURL_CFLAGS CPPUNIT_CXXFLAGS CPPUNIT_LDFLAGS CPPUNIT_TESTS LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CXX_set=${CXX+set}
908 ac_env_CXX_value=$CXX
909 ac_cv_env_CXX_set=${CXX+set}
910 ac_cv_env_CXX_value=$CXX
911 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
912 ac_env_CXXFLAGS_value=$CXXFLAGS
913 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CC_set=${CC+set}
925 ac_cv_env_CC_set=${CC+set}
926 ac_cv_env_CC_value=$CC
927 ac_env_CFLAGS_set=${CFLAGS+set}
928 ac_env_CFLAGS_value=$CFLAGS
929 ac_cv_env_CFLAGS_set=${CFLAGS+set}
930 ac_cv_env_CFLAGS_value=$CFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --disable-dependency-tracking speeds up one-time build
1028 --enable-dependency-tracking do not reject slow dependency extractors
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)
1036 --enable-unit-tests enables tests embedded in the source code of the
1037 library (changes content of the library)
1038 --enable-integration-tests
1039 enables tests outside of the library (can be used
1040 together with normal builds of the library)
1041 --enable-assert turn on assertions
1042 --enable-wchar enable Unicode wchar usage
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1051 include additional configurations [automatic]
1053 Some influential environment variables:
1054 CXX C++ compiler command
1055 CXXFLAGS C++ compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1060 CC C compiler command
1061 CFLAGS C compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1073 if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1080 if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 ac_dir_suffix= ac_top_builddir=
1089 .) # No --srcdir option. We are building in place.
1091 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1107 .) ac_abs_builddir="$ac_dir";;
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1154 $ac_configure --help
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1177 It was created by $as_me, which was
1178 generated by GNU Autoconf 2.59. Invocation command line was
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1198 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1199 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1202 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1203 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1204 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 test -z "$as_dir" && as_dir=.
1213 echo "PATH: $as_dir"
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_must_keep_next=false
1243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254 if test $ac_must_keep_next = true; then
1255 ac_must_keep_next=false # Got value, back to normal.
1258 *=* | --config-cache | -C | -disable-* | --disable-* \
1259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261 | -with-* | --with-* | -without-* | --without-* | --x)
1262 case "$ac_configure_args0 " in
1263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266 -* ) ac_must_keep_next=true ;;
1269 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270 # Get rid of the leading space.
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log. We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285 # Save into config.log some information that might help in debugging.
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1295 # The following way of writing the cache mishandles newlines in values,
1298 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1318 for ac_var in $ac_subst_vars
1320 eval ac_val=$`echo $ac_var`
1321 echo "$ac_var='"'"'$ac_val'"'"'"
1325 if test -n "$ac_subst_files"; then
1332 for ac_var in $ac_subst_files
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1340 if test -s confdefs.h; then
1347 sed "/^$/d" confdefs.h | sort
1350 test "$ac_signal" != 0 &&
1351 echo "$as_me: caught signal $ac_signal"
1352 echo "$as_me: exit $exit_status"
1354 rm -f core *.core &&
1355 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358 for ac_signal in 1 2 13 15; do
1359 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368 # Predefined preprocessor variables.
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398 if test "x$prefix" != xNONE; then
1399 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404 for ac_site_file in $CONFIG_SITE; do
1405 if test -r "$ac_site_file"; then
1406 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408 sed 's/^/| /' "$ac_site_file" >&5
1413 if test -r "$cache_file"; then
1414 # Some versions of bash will fail to source /dev/null (special
1415 # files actually), so we avoid doing that.
1416 if test -f "$cache_file"; then
1417 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1420 [\\/]* | ?:[\\/]* ) . $cache_file;;
1421 *) . ./$cache_file;;
1425 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1430 # Check that the precious variables saved in the cache have kept the same
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436 eval ac_new_set=\$ac_env_${ac_var}_set
1437 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438 eval ac_new_val="\$ac_env_${ac_var}_value"
1439 case $ac_old_set,$ac_new_set in
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1450 if test "x$ac_old_val" != "x$ac_new_val"; then
1451 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1454 echo "$as_me: former value: $ac_old_val" >&2;}
1455 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1456 echo "$as_me: current value: $ac_new_val" >&2;}
1457 ac_cache_corrupted=:
1460 # Pass precious variables to config.status.
1461 if test "$ac_new_set" = set; then
1463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465 *) ac_arg=$ac_var=$ac_new_val ;;
1467 case " $ac_configure_args " in
1468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1469 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 if $ac_cache_corrupted; then
1474 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478 { (exit 1); exit 1; }; }
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1507 if test -f $ac_dir/install-sh; then
1509 ac_install_sh="$ac_aux_dir/install-sh -c"
1511 elif test -f $ac_dir/install.sh; then
1513 ac_install_sh="$ac_aux_dir/install.sh -c"
1515 elif test -f $ac_dir/shtool; then
1517 ac_install_sh="$ac_aux_dir/shtool install -c"
1521 if test -z "$ac_aux_dir"; then
1522 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1523 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1524 { (exit 1); exit 1; }; }
1526 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1527 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1528 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1530 # Make sure we can run config.sub.
1531 $ac_config_sub sun4 >/dev/null 2>&1 ||
1532 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1533 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1534 { (exit 1); exit 1; }; }
1536 echo "$as_me:$LINENO: checking build system type" >&5
1537 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1538 if test "${ac_cv_build+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 ac_cv_build_alias=$build_alias
1542 test -z "$ac_cv_build_alias" &&
1543 ac_cv_build_alias=`$ac_config_guess`
1544 test -z "$ac_cv_build_alias" &&
1545 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1546 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1547 { (exit 1); exit 1; }; }
1548 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1549 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1550 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1551 { (exit 1); exit 1; }; }
1554 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1555 echo "${ECHO_T}$ac_cv_build" >&6
1557 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1558 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1559 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1562 echo "$as_me:$LINENO: checking host system type" >&5
1563 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1564 if test "${ac_cv_host+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 ac_cv_host_alias=$host_alias
1568 test -z "$ac_cv_host_alias" &&
1569 ac_cv_host_alias=$ac_cv_build_alias
1570 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1571 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1573 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1577 echo "${ECHO_T}$ac_cv_host" >&6
1579 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584 echo "$as_me:$LINENO: checking target system type" >&5
1585 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1586 if test "${ac_cv_target+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 ac_cv_target_alias=$target_alias
1590 test "x$ac_cv_target_alias" = "x" &&
1591 ac_cv_target_alias=$ac_cv_host_alias
1592 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1598 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1599 echo "${ECHO_T}$ac_cv_target" >&6
1600 target=$ac_cv_target
1601 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606 # The aliases save the names the user supplied, while $host etc.
1607 # will get canonicalized.
1608 test -n "$target_alias" &&
1609 test "$program_prefix$program_suffix$program_transform_name" = \
1611 program_prefix=${target_alias}-
1612 am__api_version="1.9"
1613 # Find a good install program. We prefer a C program (faster),
1614 # so one script is as good as another. But avoid the broken or
1615 # incompatible versions:
1616 # SysV /etc/install, /usr/sbin/install
1617 # SunOS /usr/etc/install
1618 # IRIX /sbin/install
1620 # AmigaOS /C/install, which installs bootblocks on floppy discs
1621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1624 # OS/2's system install, which has a completely different semantic
1625 # ./install, which can be erroneously created by make from ./install.sh.
1626 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1627 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1628 if test -z "$INSTALL"; then
1629 if test "${ac_cv_path_install+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 # Account for people who put trailing slashes in PATH elements.
1639 ./ | .// | /cC/* | \
1640 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1641 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1644 # OSF1 and SCO ODT 3.0 have their own names for install.
1645 # Don't use installbsd from OSF since it installs stuff as root
1647 for ac_prog in ginstall scoinst install; do
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1650 if test $ac_prog = install &&
1651 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1652 # AIX install. It has an incompatible calling convention.
1654 elif test $ac_prog = install &&
1655 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1656 # program-specific install script used by HP pwplus--don't use.
1659 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1671 if test "${ac_cv_path_install+set}" = set; then
1672 INSTALL=$ac_cv_path_install
1674 # As a last resort, use the slow shell script. We don't cache a
1675 # path for INSTALL within a source directory, because that will
1676 # break other packages using the cache if that directory is
1677 # removed, or if the path is relative.
1678 INSTALL=$ac_install_sh
1681 echo "$as_me:$LINENO: result: $INSTALL" >&5
1682 echo "${ECHO_T}$INSTALL" >&6
1684 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1685 # It thinks the first close brace ends the variable substitution.
1686 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1688 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1690 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1692 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1693 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1696 echo timestamp > conftest.file
1697 # Do `set' in a subshell so we don't clobber the current shell's
1698 # arguments. Must try -L first in case configure is actually a
1699 # symlink; some systems play weird games with the mod time of symlinks
1700 # (eg FreeBSD returns the mod time of the symlink's containing
1703 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1704 if test "$*" = "X"; then
1706 set X `ls -t $srcdir/configure conftest.file`
1709 if test "$*" != "X $srcdir/configure conftest.file" \
1710 && test "$*" != "X conftest.file $srcdir/configure"; then
1712 # If neither matched, then we have a broken ls. This can happen
1713 # if, for instance, CONFIG_SHELL is bash and it inherits a
1714 # broken ls alias from the environment. This has actually
1715 # happened. Such a system could not be considered "sane".
1716 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1717 alias in your environment" >&5
1718 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1719 alias in your environment" >&2;}
1720 { (exit 1); exit 1; }; }
1723 test "$2" = conftest.file
1729 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1730 Check your system clock" >&5
1731 echo "$as_me: error: newly created file is older than distributed files!
1732 Check your system clock" >&2;}
1733 { (exit 1); exit 1; }; }
1735 echo "$as_me:$LINENO: result: yes" >&5
1736 echo "${ECHO_T}yes" >&6
1737 test "$program_prefix" != NONE &&
1738 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1739 # Use a double $ so make ignores it.
1740 test "$program_suffix" != NONE &&
1741 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1742 # Double any \ or $. echo might interpret backslashes.
1743 # By default was `s,x,x', remove it if useless.
1744 cat <<\_ACEOF >conftest.sed
1745 s/[\\$]/&&/g;s/;s,x,x,$//
1747 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1750 # expand $ac_aux_dir to an absolute path
1751 am_aux_dir=`cd $ac_aux_dir && pwd`
1753 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1754 # Use eval to expand $SHELL
1755 if eval "$MISSING --run true"; then
1756 am_missing_run="$MISSING --run "
1759 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1760 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1763 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1764 # We used to keeping the `.' as first argument, in order to
1765 # allow $(mkdir_p) to be used without argument. As in
1766 # $(mkdir_p) $(somedir)
1767 # where $(somedir) is conditionally defined. However this is wrong
1769 # 1. if the package is installed by a user who cannot write `.'
1770 # make install will fail,
1771 # 2. the above comment should most certainly read
1772 # $(mkdir_p) $(DESTDIR)$(somedir)
1773 # so it does not work when $(somedir) is undefined and
1774 # $(DESTDIR) is not.
1775 # To support the latter case, we have to write
1776 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1777 # so the `.' trick is pointless.
1778 mkdir_p='mkdir -p --'
1780 # On NextStep and OpenStep, the `mkdir' command does not
1781 # recognize any option. It will interpret all options as
1782 # directories to create, and then abort because `.' already
1784 for d in ./-p ./--version;
1786 test -d $d && rmdir $d
1788 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1789 if test -f "$ac_aux_dir/mkinstalldirs"; then
1790 mkdir_p='$(mkinstalldirs)'
1792 mkdir_p='$(install_sh) -d'
1796 for ac_prog in gawk mawk nawk awk
1798 # Extract the first word of "$ac_prog", so it can be a program name with args.
1799 set dummy $ac_prog; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_AWK+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 if test -n "$AWK"; then
1806 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_AWK="$ac_prog"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 if test -n "$AWK"; then
1826 echo "$as_me:$LINENO: result: $AWK" >&5
1827 echo "${ECHO_T}$AWK" >&6
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1833 test -n "$AWK" && break
1836 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1837 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1838 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1839 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 cat >conftest.make <<\_ACEOF
1844 @echo 'ac_maketemp="$(MAKE)"'
1846 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1847 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1848 if test -n "$ac_maketemp"; then
1849 eval ac_cv_prog_make_${ac_make}_set=yes
1851 eval ac_cv_prog_make_${ac_make}_set=no
1855 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1856 echo "$as_me:$LINENO: result: yes" >&5
1857 echo "${ECHO_T}yes" >&6
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 SET_MAKE="MAKE=${MAKE-make}"
1865 rm -rf .tst 2>/dev/null
1866 mkdir .tst 2>/dev/null
1867 if test -d .tst; then
1872 rmdir .tst 2>/dev/null
1874 # test to see if srcdir already configured
1875 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1876 test -f $srcdir/config.status; then
1877 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1878 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1879 { (exit 1); exit 1; }; }
1882 # test whether we have cygpath
1883 if test -z "$CYGPATH_W"; then
1884 if (cygpath --version) >/dev/null 2>/dev/null; then
1885 CYGPATH_W='cygpath -w'
1892 # Define the identity of the package.
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE "$PACKAGE"
1902 cat >>confdefs.h <<_ACEOF
1903 #define VERSION "$VERSION"
1906 # Some tools Automake needs.
1908 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1911 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1914 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1917 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1920 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1922 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1924 # Installed binaries are usually stripped using `strip' when the user
1925 # run `make install-strip'. However `strip' might not be the right
1926 # tool to use in cross-compilation environments, therefore Automake
1927 # will honor the `STRIP' environment variable to overrule this program.
1928 if test "$cross_compiling" != no; then
1929 if test -n "$ac_tool_prefix"; then
1930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1931 set dummy ${ac_tool_prefix}strip; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_STRIP+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$STRIP"; then
1938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 STRIP=$ac_cv_prog_STRIP
1957 if test -n "$STRIP"; then
1958 echo "$as_me:$LINENO: result: $STRIP" >&5
1959 echo "${ECHO_T}$STRIP" >&6
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1966 if test -z "$ac_cv_prog_STRIP"; then
1968 # Extract the first word of "strip", so it can be a program name with args.
1969 set dummy strip; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$ac_ct_STRIP"; then
1976 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 ac_cv_prog_ac_ct_STRIP="strip"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1995 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1996 if test -n "$ac_ct_STRIP"; then
1997 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1998 echo "${ECHO_T}$ac_ct_STRIP" >&6
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2006 STRIP="$ac_cv_prog_STRIP"
2010 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2012 # We need awk for the "check" target. The system "awk" is bad on
2014 # Always define AMTAR for backward compatibility.
2016 AMTAR=${AMTAR-"${am_missing_run}tar"}
2018 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2024 ac_config_headers="$ac_config_headers config.h"
2028 ac_cpp='$CXXCPP $CPPFLAGS'
2029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2032 if test -n "$ac_tool_prefix"; then
2033 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
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_CXX+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$CXX"; then
2043 ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CXX"; then
2063 echo "$as_me:$LINENO: result: $CXX" >&5
2064 echo "${ECHO_T}$CXX" >&6
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2070 test -n "$CXX" && break
2073 if test -z "$CXX"; then
2075 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
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_CXX+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 if test -n "$ac_ct_CXX"; then
2085 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$ac_prog"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2104 if test -n "$ac_ct_CXX"; then
2105 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2106 echo "${ECHO_T}$ac_ct_CXX" >&6
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2112 test -n "$ac_ct_CXX" && break
2114 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2120 # Provide some information about the compiler.
2121 echo "$as_me:$LINENO:" \
2122 "checking for C++ compiler version" >&5
2123 ac_compiler=`set X $ac_compile; echo $2`
2124 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2125 (eval $ac_compiler --version </dev/null >&5) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2130 (eval $ac_compiler -v </dev/null >&5) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2135 (eval $ac_compiler -V </dev/null >&5) 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2140 cat >conftest.$ac_ext <<_ACEOF
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h. */
2155 ac_clean_files_save=$ac_clean_files
2156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2157 # Try to create an executable without -o first, disregard a.out.
2158 # It will help us diagnose broken compilers, and finding out an intuition
2160 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2161 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2163 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2164 (eval $ac_link_default) 2>&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
2168 # Find the output, starting from the most likely. This scheme is
2169 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2172 # Be careful to initialize this variable, since it used to be cached.
2173 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2175 # b.out is created by i960 compilers.
2176 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2178 test -f "$ac_file" || continue
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2183 # This is the source file.
2186 # We found the default executable, but exeext='' is most
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191 # FIXME: I believe we export ac_cv_exeext for Libtool,
2192 # but it would be cool to find out if it's true. Does anybody
2193 # maintain Libtool? --akim.
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2204 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: C++ compiler cannot create executables
2207 See \`config.log' for more details." >&2;}
2208 { (exit 77); exit 77; }; }
2211 ac_exeext=$ac_cv_exeext
2212 echo "$as_me:$LINENO: result: $ac_file" >&5
2213 echo "${ECHO_T}$ac_file" >&6
2215 # Check the compiler produces executables we can run. If not, either
2216 # the compiler is broken, or we cross compile.
2217 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2218 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2219 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220 # If not cross compiling, check that we can run a simple program.
2221 if test "$cross_compiling" != yes; then
2222 if { ac_try='./$ac_file'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2230 if test "$cross_compiling" = maybe; then
2233 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot run C++ compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2243 echo "$as_me:$LINENO: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6
2246 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247 ac_clean_files=$ac_clean_files_save
2248 # Check the compiler produces executables we can run. If not, either
2249 # the compiler is broken, or we cross compile.
2250 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2252 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253 echo "${ECHO_T}$cross_compiling" >&6
2255 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2258 (eval $ac_link) 2>&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; then
2262 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2263 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2264 # work properly (i.e., refer to `conftest.exe'), while it won't with
2266 for ac_file in conftest.exe conftest conftest.*; do
2267 test -f "$ac_file" || continue
2269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2270 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details." >&2;}
2281 { (exit 1); exit 1; }; }
2284 rm -f conftest$ac_cv_exeext
2285 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2286 echo "${ECHO_T}$ac_cv_exeext" >&6
2288 rm -f conftest.$ac_ext
2289 EXEEXT=$ac_cv_exeext
2291 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2292 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2293 if test "${ac_cv_objext+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 cat >conftest.$ac_ext <<_ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2311 rm -f conftest.o conftest.obj
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; then
2317 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2320 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2328 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
2335 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2337 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2338 echo "${ECHO_T}$ac_cv_objext" >&6
2339 OBJEXT=$ac_cv_objext
2341 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2342 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2343 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 cat >conftest.$ac_ext <<_ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h. */
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2368 grep -v '^ *+' conftest.er1 >conftest.err
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_cxx_werror_flag"
2374 || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2397 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2398 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2399 GXX=`test $ac_compiler_gnu = yes && echo yes`
2400 ac_test_CXXFLAGS=${CXXFLAGS+set}
2401 ac_save_CXXFLAGS=$CXXFLAGS
2403 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2404 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2405 if test "${ac_cv_prog_cxx_g+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 cat >conftest.$ac_ext <<_ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2423 rm -f conftest.$ac_objext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425 (eval $ac_compile) 2>conftest.er1
2427 grep -v '^ *+' conftest.er1 >conftest.err
2429 cat conftest.err >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } &&
2432 { ac_try='test -z "$ac_cxx_werror_flag"
2433 || test ! -s conftest.err'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2445 ac_cv_prog_cxx_g=yes
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2454 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2455 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2456 if test "$ac_test_CXXFLAGS" = set; then
2457 CXXFLAGS=$ac_save_CXXFLAGS
2458 elif test $ac_cv_prog_cxx_g = yes; then
2459 if test "$GXX" = yes; then
2465 if test "$GXX" = yes; then
2471 for ac_declaration in \
2473 'extern "C" void std::exit (int) throw (); using std::exit;' \
2474 'extern "C" void std::exit (int); using std::exit;' \
2475 'extern "C" void exit (int) throw ();' \
2476 'extern "C" void exit (int);' \
2479 cat >conftest.$ac_ext <<_ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2499 grep -v '^ *+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_cxx_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2525 cat >conftest.$ac_ext <<_ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_cxx_werror_flag"
2550 || test ! -s conftest.err'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571 if test -n "$ac_declaration"; then
2572 echo '#ifdef __cplusplus' >>confdefs.h
2573 echo $ac_declaration >>confdefs.h
2574 echo '#endif' >>confdefs.h
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 DEPDIR="${am__leading_dot}deps"
2584 ac_config_commands="$ac_config_commands depfiles"
2587 am_make=${MAKE-make}
2588 cat > confinc << 'END'
2593 # If we don't find an include directive, just comment out the code.
2594 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2595 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2599 # First try GNU make style include.
2600 echo "include confinc" > confmf
2601 # We grep out `Entering directory' and `Leaving directory'
2602 # messages which can occur if `w' ends up in MAKEFLAGS.
2603 # In particular we don't look at `^make:' because GNU make might
2604 # be invoked under some other name (usually "gmake"), in which
2605 # case it prints its new name instead of `make'.
2606 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2611 # Now try BSD make style include.
2612 if test "$am__include" = "#"; then
2613 echo '.include "confinc"' > confmf
2614 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2615 am__include=.include
2622 echo "$as_me:$LINENO: result: $_am_result" >&5
2623 echo "${ECHO_T}$_am_result" >&6
2624 rm -f confinc confmf
2626 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2627 if test "${enable_dependency_tracking+set}" = set; then
2628 enableval="$enable_dependency_tracking"
2631 if test "x$enable_dependency_tracking" != xno; then
2632 am_depcomp="$ac_aux_dir/depcomp"
2637 if test "x$enable_dependency_tracking" != xno; then
2648 depcc="$CXX" am_compiler_list=
2650 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2651 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2652 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2656 # We make a subdir and do the tests there. Otherwise we can end up
2657 # making bogus files that we don't know about and never remove. For
2658 # instance it was reported that on HP-UX the gcc test will end up
2659 # making a dummy file named `D' -- because `-MD' means `put the output
2662 # Copy depcomp to subdir because otherwise we won't find it if we're
2663 # using a relative directory.
2664 cp "$am_depcomp" conftest.dir
2666 # We will build objects and dependencies in a subdirectory because
2667 # it helps to detect inapplicable dependency modes. For instance
2668 # both Tru64's cc and ICC support -MD to output dependencies as a
2669 # side effect of compilation, but ICC will put the dependencies in
2670 # the current directory while Tru64 will put them in the object
2674 am_cv_CXX_dependencies_compiler_type=none
2675 if test "$am_compiler_list" = ""; then
2676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2678 for depmode in $am_compiler_list; do
2679 # Setup a source with many dependencies, because some compilers
2680 # like to wrap large dependency lists on column 80 (with \), and
2681 # we should not choose a depcomp mode which is confused by this.
2683 # We need to recreate these files for each test, as the compiler may
2684 # overwrite some of them when testing with obscure command lines.
2685 # This happens at least with the AIX C compiler.
2687 for i in 1 2 3 4 5 6; do
2688 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2689 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2690 # Solaris 8's {/usr,}/bin/sh.
2691 touch sub/conftst$i.h
2693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2697 # after this tag, mechanisms are not by side-effect, so they'll
2698 # only be used when explicitly requested
2699 if test "x$enable_dependency_tracking" = xyes; then
2707 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2708 # mode. It turns out that the SunPro C++ compiler does not properly
2709 # handle `-M -o', and we need to detect this.
2710 if depmode=$depmode \
2711 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2712 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2713 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2714 >/dev/null 2>conftest.err &&
2715 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2716 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2717 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2718 # icc doesn't choke on unknown options, it will just issue warnings
2719 # or remarks (even with -Werror). So we grep stderr for any message
2720 # that says an option was ignored or not supported.
2721 # When given -MP, icc 7.0 and 7.1 complain thusly:
2722 # icc: Command line warning: ignoring option '-M'; no argument required
2723 # The diagnosis changed in icc 8.0:
2724 # icc: Command line remark: option '-MP' not supported
2725 if (grep 'ignoring option' conftest.err ||
2726 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2727 am_cv_CXX_dependencies_compiler_type=$depmode
2736 am_cv_CXX_dependencies_compiler_type=none
2740 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2741 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2742 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2747 test "x$enable_dependency_tracking" != xno \
2748 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2749 am__fastdepCXX_TRUE=
2750 am__fastdepCXX_FALSE='#'
2752 am__fastdepCXX_TRUE='#'
2753 am__fastdepCXX_FALSE=
2757 # Check whether --enable-shared or --disable-shared was given.
2758 if test "${enable_shared+set}" = set; then
2759 enableval="$enable_shared"
2760 p=${PACKAGE-default}
2762 yes) enable_shared=yes ;;
2763 no) enable_shared=no ;;
2766 # Look at the argument we got. We use all the common list separators.
2767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2768 for pkg in $enableval; do
2770 if test "X$pkg" = "X$p"; then
2781 # Check whether --enable-static or --disable-static was given.
2782 if test "${enable_static+set}" = set; then
2783 enableval="$enable_static"
2784 p=${PACKAGE-default}
2786 yes) enable_static=yes ;;
2787 no) enable_static=no ;;
2790 # Look at the argument we got. We use all the common list separators.
2791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2792 for pkg in $enableval; do
2794 if test "X$pkg" = "X$p"; then
2805 # Check whether --enable-fast-install or --disable-fast-install was given.
2806 if test "${enable_fast_install+set}" = set; then
2807 enableval="$enable_fast_install"
2808 p=${PACKAGE-default}
2810 yes) enable_fast_install=yes ;;
2811 no) enable_fast_install=no ;;
2813 enable_fast_install=no
2814 # Look at the argument we got. We use all the common list separators.
2815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2816 for pkg in $enableval; do
2818 if test "X$pkg" = "X$p"; then
2819 enable_fast_install=yes
2826 enable_fast_install=yes
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2837 echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 if test -n "$CC"; then
2863 echo "$as_me:$LINENO: result: $CC" >&5
2864 echo "${ECHO_T}$CC" >&6
2866 echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6
2871 if test -z "$ac_cv_prog_CC"; then
2873 # Extract the first word of "gcc", so it can be a program name with args.
2874 set dummy gcc; ac_word=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 if test -n "$ac_ct_CC"; then
2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_ac_ct_CC="gcc"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900 if test -n "$ac_ct_CC"; then
2901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2902 echo "${ECHO_T}$ac_ct_CC" >&6
2904 echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2916 set dummy ${ac_tool_prefix}cc; ac_word=$2
2917 echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919 if test "${ac_cv_prog_CC+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_CC="${ac_tool_prefix}cc"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 if test -n "$CC"; then
2943 echo "$as_me:$LINENO: result: $CC" >&5
2944 echo "${ECHO_T}$CC" >&6
2946 echo "$as_me:$LINENO: result: no" >&5
2947 echo "${ECHO_T}no" >&6
2951 if test -z "$ac_cv_prog_CC"; then
2953 # Extract the first word of "cc", so it can be a program name with args.
2954 set dummy cc; ac_word=$2
2955 echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 if test -n "$ac_ct_CC"; then
2961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_ac_ct_CC="cc"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6
2984 echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2994 if test -z "$CC"; then
2995 # Extract the first word of "cc", so it can be a program name with args.
2996 set dummy cc; ac_word=$2
2997 echo "$as_me:$LINENO: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2999 if test "${ac_cv_prog_CC+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3014 ac_prog_rejected=yes
3018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 if test $ac_prog_rejected = yes; then
3025 # We found a bogon in the path, so make sure we never use it.
3026 set dummy $ac_cv_prog_CC
3028 if test $# != 0; then
3029 # We chose a different compiler from the bogus one.
3030 # However, it has the same basename, so the bogon will be chosen
3031 # first if we set CC to just the basename; use the full file name.
3033 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3039 if test -n "$CC"; then
3040 echo "$as_me:$LINENO: result: $CC" >&5
3041 echo "${ECHO_T}$CC" >&6
3043 echo "$as_me:$LINENO: result: no" >&5
3044 echo "${ECHO_T}no" >&6
3048 if test -z "$CC"; then
3049 if test -n "$ac_tool_prefix"; then
3052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3054 echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056 if test "${ac_cv_prog_CC+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test -n "$CC"; then
3080 echo "$as_me:$LINENO: result: $CC" >&5
3081 echo "${ECHO_T}$CC" >&6
3083 echo "$as_me:$LINENO: result: no" >&5
3084 echo "${ECHO_T}no" >&6
3087 test -n "$CC" && break
3090 if test -z "$CC"; then
3094 # Extract the first word of "$ac_prog", so it can be a program name with args.
3095 set dummy $ac_prog; ac_word=$2
3096 echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 if test -n "$ac_ct_CC"; then
3102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_CC="$ac_prog"
3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121 if test -n "$ac_ct_CC"; then
3122 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3123 echo "${ECHO_T}$ac_ct_CC" >&6
3125 echo "$as_me:$LINENO: result: no" >&5
3126 echo "${ECHO_T}no" >&6
3129 test -n "$ac_ct_CC" && break
3138 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3139 See \`config.log' for more details." >&5
3140 echo "$as_me: error: no acceptable C compiler found in \$PATH
3141 See \`config.log' for more details." >&2;}
3142 { (exit 1); exit 1; }; }
3144 # Provide some information about the compiler.
3145 echo "$as_me:$LINENO:" \
3146 "checking for C compiler version" >&5
3147 ac_compiler=`set X $ac_compile; echo $2`
3148 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3149 (eval $ac_compiler --version </dev/null >&5) 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }
3153 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3154 (eval $ac_compiler -v </dev/null >&5) 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }
3158 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3159 (eval $ac_compiler -V </dev/null >&5) 2>&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }
3164 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3165 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3166 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>conftest.er1
3191 grep -v '^ *+' conftest.er1 >conftest.err
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -z "$ac_c_werror_flag"
3197 || test ! -s conftest.err'
3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3220 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3221 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3222 GCC=`test $ac_compiler_gnu = yes && echo yes`
3223 ac_test_CFLAGS=${CFLAGS+set}
3224 ac_save_CFLAGS=$CFLAGS
3226 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3227 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3228 if test "${ac_cv_prog_cc_g+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>conftest.er1
3250 grep -v '^ *+' conftest.er1 >conftest.err
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } &&
3255 { ac_try='test -z "$ac_c_werror_flag"
3256 || test ! -s conftest.err'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; } &&
3262 { ac_try='test -s conftest.$ac_objext'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3277 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3279 if test "$ac_test_CFLAGS" = set; then
3280 CFLAGS=$ac_save_CFLAGS
3281 elif test $ac_cv_prog_cc_g = yes; then
3282 if test "$GCC" = yes; then
3288 if test "$GCC" = yes; then
3294 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3295 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3296 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 ac_cv_prog_cc_stdc=no
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3309 #include <sys/types.h>
3310 #include <sys/stat.h>
3311 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3312 struct buf { int x; };
3313 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314 static char *e (p, i)
3320 static char *f (char * (*g) (char **, int), char **p, ...)
3325 s = g (p, va_arg (v,int));
3330 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3331 function prototypes and stuff, but not '\xHH' hex character constants.
3332 These don't provoke an error unfortunately, instead are silently treated
3333 as 'x'. The following induces an error, until -std1 is added to get
3334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3335 array size at least. It's necessary to write '\x00'==0 to get something
3336 that's true only with -std1. */
3337 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3339 int test (int i, double x);
3340 struct s1 {int (*f) (int a);};
3341 struct s2 {int (*f) (double a);};
3342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3353 # Don't try gcc -ansi; that turns off useful extensions and
3354 # breaks some systems' header files.
3355 # AIX -qlanglvl=ansi
3356 # Ultrix and OSF/1 -std1
3357 # HP-UX 10.20 and later -Ae
3358 # HP-UX older versions -Aa -D_HPUX_SOURCE
3359 # SVR4 -Xc -D__EXTENSIONS__
3360 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3362 CC="$ac_save_CC $ac_arg"
3363 rm -f conftest.$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>conftest.er1
3367 grep -v '^ *+' conftest.er1 >conftest.err
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 ac_cv_prog_cc_stdc=$ac_arg
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3392 rm -f conftest.err conftest.$ac_objext
3394 rm -f conftest.$ac_ext conftest.$ac_objext
3399 case "x$ac_cv_prog_cc_stdc" in
3401 echo "$as_me:$LINENO: result: none needed" >&5
3402 echo "${ECHO_T}none needed" >&6 ;;
3404 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3405 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3406 CC="$CC $ac_cv_prog_cc_stdc" ;;
3409 # Some people use a C++ compiler to compile C. Since we use `exit',
3410 # in C++ we need to declare it. In case someone uses the same compiler
3411 # for both compiling C and C++ we need to have the C++ compiler decide
3412 # the declaration of exit, since it's the most demanding environment.
3413 cat >conftest.$ac_ext <<_ACEOF
3418 rm -f conftest.$ac_objext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420 (eval $ac_compile) 2>conftest.er1
3422 grep -v '^ *+' conftest.er1 >conftest.err
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try='test -z "$ac_c_werror_flag"
3428 || test ! -s conftest.err'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; } &&
3434 { ac_try='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 for ac_declaration in \
3442 'extern "C" void std::exit (int) throw (); using std::exit;' \
3443 'extern "C" void std::exit (int); using std::exit;' \
3444 'extern "C" void exit (int) throw ();' \
3445 'extern "C" void exit (int);' \
3448 cat >conftest.$ac_ext <<_ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 cat >conftest.$ac_ext <<_ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
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"
3519 || test ! -s conftest.err'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; } &&
3525 { ac_try='test -s conftest.$ac_objext'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3540 if test -n "$ac_declaration"; then
3541 echo '#ifdef __cplusplus' >>confdefs.h
3542 echo $ac_declaration >>confdefs.h
3543 echo '#endif' >>confdefs.h
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_cpp='$CPP $CPPFLAGS'
3554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 depcc="$CC" am_compiler_list=
3560 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3561 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3562 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3566 # We make a subdir and do the tests there. Otherwise we can end up
3567 # making bogus files that we don't know about and never remove. For
3568 # instance it was reported that on HP-UX the gcc test will end up
3569 # making a dummy file named `D' -- because `-MD' means `put the output
3572 # Copy depcomp to subdir because otherwise we won't find it if we're
3573 # using a relative directory.
3574 cp "$am_depcomp" conftest.dir
3576 # We will build objects and dependencies in a subdirectory because
3577 # it helps to detect inapplicable dependency modes. For instance
3578 # both Tru64's cc and ICC support -MD to output dependencies as a
3579 # side effect of compilation, but ICC will put the dependencies in
3580 # the current directory while Tru64 will put them in the object
3584 am_cv_CC_dependencies_compiler_type=none
3585 if test "$am_compiler_list" = ""; then
3586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3588 for depmode in $am_compiler_list; do
3589 # Setup a source with many dependencies, because some compilers
3590 # like to wrap large dependency lists on column 80 (with \), and
3591 # we should not choose a depcomp mode which is confused by this.
3593 # We need to recreate these files for each test, as the compiler may
3594 # overwrite some of them when testing with obscure command lines.
3595 # This happens at least with the AIX C compiler.
3597 for i in 1 2 3 4 5 6; do
3598 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3599 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3600 # Solaris 8's {/usr,}/bin/sh.
3601 touch sub/conftst$i.h
3603 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3607 # after this tag, mechanisms are not by side-effect, so they'll
3608 # only be used when explicitly requested
3609 if test "x$enable_dependency_tracking" = xyes; then
3617 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3618 # mode. It turns out that the SunPro C++ compiler does not properly
3619 # handle `-M -o', and we need to detect this.
3620 if depmode=$depmode \
3621 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3622 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3623 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3624 >/dev/null 2>conftest.err &&
3625 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3626 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3627 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3628 # icc doesn't choke on unknown options, it will just issue warnings
3629 # or remarks (even with -Werror). So we grep stderr for any message
3630 # that says an option was ignored or not supported.
3631 # When given -MP, icc 7.0 and 7.1 complain thusly:
3632 # icc: Command line warning: ignoring option '-M'; no argument required
3633 # The diagnosis changed in icc 8.0:
3634 # icc: Command line remark: option '-MP' not supported
3635 if (grep 'ignoring option' conftest.err ||
3636 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3637 am_cv_CC_dependencies_compiler_type=$depmode
3646 am_cv_CC_dependencies_compiler_type=none
3650 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3651 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3652 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3657 test "x$enable_dependency_tracking" != xno \
3658 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3660 am__fastdepCC_FALSE='#'
3662 am__fastdepCC_TRUE='#'
3663 am__fastdepCC_FALSE=
3667 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3668 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3669 if test "${lt_cv_path_SED+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 # Loop through the user's path and test for sed and gsed.
3673 # Then use that list of sed's as ones to test for truncation.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for lt_ac_prog in sed gsed; do
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3682 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3689 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3690 # along with /bin/sed that truncates output.
3691 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3692 test ! -f $lt_ac_sed && continue
3693 cat /dev/null > conftest.in
3695 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3696 # Check for GNU sed and select it if it is found.
3697 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3698 lt_cv_path_SED=$lt_ac_sed
3702 cat conftest.in conftest.in >conftest.tmp
3703 mv conftest.tmp conftest.in
3704 cp conftest.in conftest.nl
3706 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3707 cmp -s conftest.out conftest.nl || break
3708 # 10000 chars as input seems more than enough
3709 test $lt_ac_count -gt 10 && break
3710 lt_ac_count=`expr $lt_ac_count + 1`
3711 if test $lt_ac_count -gt $lt_ac_max; then
3712 lt_ac_max=$lt_ac_count
3713 lt_cv_path_SED=$lt_ac_sed
3721 echo "$as_me:$LINENO: result: $SED" >&5
3722 echo "${ECHO_T}$SED" >&6
3724 echo "$as_me:$LINENO: checking for egrep" >&5
3725 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3726 if test "${ac_cv_prog_egrep+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3730 then ac_cv_prog_egrep='grep -E'
3731 else ac_cv_prog_egrep='egrep'
3734 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3735 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3736 EGREP=$ac_cv_prog_egrep
3740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3741 if test "${with_gnu_ld+set}" = set; then
3742 withval="$with_gnu_ld"
3743 test "$withval" = no || with_gnu_ld=yes
3748 if test "$GCC" = yes; then
3749 # Check if gcc -print-prog-name=ld gives a path.
3750 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3751 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3754 # gcc leaves a trailing carriage return which upsets mingw
3755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3760 # Accept absolute paths.
3762 re_direlt='/[^/][^/]*/\.\./'
3763 # Canonicalize the pathname of ld
3764 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3765 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3766 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3768 test -z "$LD" && LD="$ac_prog"
3771 # If it fails, then pretend we aren't using GCC.
3775 # If it is relative, then search for the first ld in PATH.
3779 elif test "$with_gnu_ld" = yes; then
3780 echo "$as_me:$LINENO: checking for GNU ld" >&5
3781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3783 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3786 if test "${lt_cv_path_LD+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test -z "$LD"; then
3790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3791 for ac_dir in $PATH; do
3793 test -z "$ac_dir" && ac_dir=.
3794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3795 lt_cv_path_LD="$ac_dir/$ac_prog"
3796 # Check to see if the program is GNU ld. I'd rather use --version,
3797 # but apparently some variants of GNU ld only accept -v.
3798 # Break only if it was the GNU/non-GNU ld that we prefer.
3799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3800 *GNU* | *'with BFD'*)
3801 test "$with_gnu_ld" != no && break
3804 test "$with_gnu_ld" != yes && break
3811 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3816 if test -n "$LD"; then
3817 echo "$as_me:$LINENO: result: $LD" >&5
3818 echo "${ECHO_T}$LD" >&6
3820 echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3825 { (exit 1); exit 1; }; }
3826 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3828 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3832 case `$LD -v 2>&1 </dev/null` in
3833 *GNU* | *'with BFD'*)
3834 lt_cv_prog_gnu_ld=yes
3837 lt_cv_prog_gnu_ld=no
3841 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3842 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3843 with_gnu_ld=$lt_cv_prog_gnu_ld
3846 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3847 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3848 if test "${lt_cv_ld_reload_flag+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 lt_cv_ld_reload_flag='-r'
3853 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3854 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3855 reload_flag=$lt_cv_ld_reload_flag
3856 case $reload_flag in
3858 *) reload_flag=" $reload_flag" ;;
3860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3863 if test "$GCC" = yes; then
3864 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3871 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3872 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3873 if test "${lt_cv_path_NM+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 if test -n "$NM"; then
3877 # Let the user override the test.
3880 lt_nm_to_check="${ac_tool_prefix}nm"
3881 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3882 lt_nm_to_check="$lt_nm_to_check nm"
3884 for lt_tmp_nm in $lt_nm_to_check; do
3885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3886 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3888 test -z "$ac_dir" && ac_dir=.
3889 tmp_nm="$ac_dir/$lt_tmp_nm"
3890 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3891 # Check to see if the nm accepts a BSD-compat flag.
3892 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3893 # nm: unknown option "B" ignored
3894 # Tru64's nm complains that /dev/null is an invalid object file
3895 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3896 */dev/null* | *'Invalid file or object type'*)
3897 lt_cv_path_NM="$tmp_nm -B"
3901 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3903 lt_cv_path_NM="$tmp_nm -p"
3907 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3908 continue # so that we can try to find one that supports BSD flags
3917 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3920 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3921 echo "${ECHO_T}$lt_cv_path_NM" >&6
3924 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3925 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3927 if test "$LN_S" = "ln -s"; then
3928 echo "$as_me:$LINENO: result: yes" >&5
3929 echo "${ECHO_T}yes" >&6
3931 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3932 echo "${ECHO_T}no, using $LN_S" >&6
3935 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3936 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3937 if test "${lt_cv_deplibs_check_method+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 lt_cv_file_magic_cmd='$MAGIC_CMD'
3941 lt_cv_file_magic_test_file=
3942 lt_cv_deplibs_check_method='unknown'
3943 # Need to set the preceding variable on all platforms that support
3944 # interlibrary dependencies.
3945 # 'none' -- dependencies not supported.
3946 # `unknown' -- same as none, but documents that we really don't know.
3947 # 'pass_all' -- all dependencies passed with no checks.
3948 # 'test_compile' -- check by making test program.
3949 # 'file_magic [[regex]]' -- check by looking for files in library path
3950 # which responds to the $file_magic_cmd with a given extended regex.
3951 # If you have `file' or equivalent on your system and you're not sure
3952 # whether `pass_all' will *always* work, you probably want this one.
3956 lt_cv_deplibs_check_method=pass_all
3960 lt_cv_deplibs_check_method=pass_all
3964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3965 lt_cv_file_magic_cmd='/usr/bin/file -L'
3966 lt_cv_file_magic_test_file=/shlib/libc.so
3970 # func_win32_libid is a shell function defined in ltmain.sh
3971 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3972 lt_cv_file_magic_cmd='func_win32_libid'
3976 # Base MSYS/MinGW do not provide the 'file' command needed by
3977 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3978 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3979 lt_cv_file_magic_cmd='$OBJDUMP -f'
3982 darwin* | rhapsody*)
3983 lt_cv_deplibs_check_method=pass_all
3986 freebsd* | kfreebsd*-gnu | dragonfly*)
3987 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3990 # Not sure whether the presence of OpenBSD here was a mistake.
3991 # Let's accept both of them until this is cleared up.
3992 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3993 lt_cv_file_magic_cmd=/usr/bin/file
3994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3998 lt_cv_deplibs_check_method=pass_all
4003 lt_cv_deplibs_check_method=pass_all
4006 hpux10.20* | hpux11*)
4007 lt_cv_file_magic_cmd=/usr/bin/file
4010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4011 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4014 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]'
4015 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4019 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4025 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4029 irix5* | irix6* | nonstopux*)
4031 *-32|*"-32 ") libmagic=32-bit;;
4032 *-n32|*"-n32 ") libmagic=N32;;
4033 *-64|*"-64 ") libmagic=64-bit;;
4034 *) libmagic=never-match;;
4036 lt_cv_deplibs_check_method=pass_all
4039 # This must be Linux ELF.
4041 lt_cv_deplibs_check_method=pass_all
4045 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4054 lt_cv_file_magic_cmd=/usr/bin/file
4055 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4059 lt_cv_deplibs_check_method=unknown
4063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4070 osf3* | osf4* | osf5*)
4071 lt_cv_deplibs_check_method=pass_all
4075 lt_cv_deplibs_check_method=pass_all
4079 case $host_vendor in
4081 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]'
4082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4085 lt_cv_deplibs_check_method=pass_all
4088 lt_cv_file_magic_cmd='/bin/file'
4089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4092 lt_cv_file_magic_cmd='/bin/file'
4093 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4094 lt_cv_file_magic_test_file=/lib/libc.so
4097 lt_cv_deplibs_check_method=pass_all
4100 lt_cv_deplibs_check_method=pass_all
4105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4106 lt_cv_deplibs_check_method=pass_all
4111 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4112 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4113 file_magic_cmd=$lt_cv_file_magic_cmd
4114 deplibs_check_method=$lt_cv_deplibs_check_method
4115 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4120 # If no C compiler was specified, use CC.
4123 # If no C compiler flags were specified, use CFLAGS.
4124 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4126 # Allow CC to be a program name with arguments.
4130 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4131 if test "${enable_libtool_lock+set}" = set; then
4132 enableval="$enable_libtool_lock"
4135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4137 # Some flags need to be propagated to the compiler or linker for good
4141 # Find out which ABI we are using.
4142 echo 'int i;' > conftest.$ac_ext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144 (eval $ac_compile) 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; then
4148 case `/usr/bin/file conftest.$ac_objext` in
4160 # Find out which ABI we are using.
4161 echo '#line 4161 "configure"' > conftest.$ac_ext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; then
4167 if test "$lt_cv_prog_gnu_ld" = yes; then
4168 case `/usr/bin/file conftest.$ac_objext` in
4170 LD="${LD-ld} -melf32bsmip"
4173 LD="${LD-ld} -melf32bmipn32"
4176 LD="${LD-ld} -melf64bmip"
4180 case `/usr/bin/file conftest.$ac_objext` in
4196 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4197 # Find out which ABI we are using.
4198 echo 'int i;' > conftest.$ac_ext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; then
4204 case `/usr/bin/file conftest.o` in
4208 LD="${LD-ld} -m elf_i386"
4210 ppc64-*linux*|powerpc64-*linux*)
4211 LD="${LD-ld} -m elf32ppclinux"
4214 LD="${LD-ld} -m elf_s390"
4217 LD="${LD-ld} -m elf32_sparc"
4224 LD="${LD-ld} -m elf_x86_64"
4226 ppc*-*linux*|powerpc*-*linux*)
4227 LD="${LD-ld} -m elf64ppc"
4230 LD="${LD-ld} -m elf64_s390"
4233 LD="${LD-ld} -m elf64_sparc"
4243 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4244 SAVE_CFLAGS="$CFLAGS"
4245 CFLAGS="$CFLAGS -belf"
4246 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4247 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4248 if test "${lt_cv_cc_needs_belf+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4272 rm -f conftest.$ac_objext conftest$ac_exeext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4274 (eval $ac_link) 2>conftest.er1
4276 grep -v '^ *+' conftest.er1 >conftest.err
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
4281 { ac_try='test -z "$ac_c_werror_flag"
4282 || test ! -s conftest.err'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; } &&
4288 { ac_try='test -s conftest$ac_exeext'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 lt_cv_cc_needs_belf=yes
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 lt_cv_cc_needs_belf=no
4301 rm -f conftest.err conftest.$ac_objext \
4302 conftest$ac_exeext conftest.$ac_ext
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4311 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4312 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4313 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4314 CFLAGS="$SAVE_CFLAGS"
4318 # Find out which ABI we are using.
4319 echo 'int i;' > conftest.$ac_ext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; then
4325 case `/usr/bin/file conftest.o` in
4327 case $lt_cv_prog_gnu_ld in
4328 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4329 *) LD="${LD-ld} -64" ;;
4340 need_locks="$enable_libtool_lock"
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4349 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4350 # On Suns, sometimes $CPP names a directory.
4351 if test -n "$CPP" && test -d "$CPP"; then
4354 if test -z "$CPP"; then
4355 if test "${ac_cv_prog_CPP+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 # Double quotes because CPP needs to be expanded
4359 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4362 for ac_c_preproc_warn_flag in '' yes
4364 # Use a header file that comes with gcc, so configuring glibc
4365 # with a fresh cross-compiler works.
4366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4367 # <limits.h> exists even on freestanding compilers.
4368 # On the NeXT, cc -E runs the code through the compiler's parser,
4369 # not just through cpp. "Syntax error" is here to catch this case.
4370 cat >conftest.$ac_ext <<_ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4377 # include <limits.h>
4379 # include <assert.h>
4383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4386 grep -v '^ *+' conftest.er1 >conftest.err
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } >/dev/null; then
4391 if test -s conftest.err; then
4392 ac_cpp_err=$ac_c_preproc_warn_flag
4393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400 if test -z "$ac_cpp_err"; then
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 # Broken: fails on valid input.
4409 rm -f conftest.err conftest.$ac_ext
4411 # OK, works on sane cases. Now check whether non-existent headers
4412 # can be detected and how.
4413 cat >conftest.$ac_ext <<_ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 #include <ac_nonexistent.h>
4421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4424 grep -v '^ *+' conftest.er1 >conftest.err
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } >/dev/null; then
4429 if test -s conftest.err; then
4430 ac_cpp_err=$ac_c_preproc_warn_flag
4431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4438 if test -z "$ac_cpp_err"; then
4439 # Broken: success on invalid input.
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 # Passes both tests.
4449 rm -f conftest.err conftest.$ac_ext
4452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4453 rm -f conftest.err conftest.$ac_ext
4454 if $ac_preproc_ok; then
4466 echo "$as_me:$LINENO: result: $CPP" >&5
4467 echo "${ECHO_T}$CPP" >&6
4469 for ac_c_preproc_warn_flag in '' yes
4471 # Use a header file that comes with gcc, so configuring glibc
4472 # with a fresh cross-compiler works.
4473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474 # <limits.h> exists even on freestanding compilers.
4475 # On the NeXT, cc -E runs the code through the compiler's parser,
4476 # not just through cpp. "Syntax error" is here to catch this case.
4477 cat >conftest.$ac_ext <<_ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4484 # include <limits.h>
4486 # include <assert.h>
4490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } >/dev/null; then
4498 if test -s conftest.err; then
4499 ac_cpp_err=$ac_c_preproc_warn_flag
4500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4507 if test -z "$ac_cpp_err"; then
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 # Broken: fails on valid input.
4516 rm -f conftest.err conftest.$ac_ext
4518 # OK, works on sane cases. Now check whether non-existent headers
4519 # can be detected and how.
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 #include <ac_nonexistent.h>
4528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4531 grep -v '^ *+' conftest.er1 >conftest.err
4533 cat conftest.err >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } >/dev/null; then
4536 if test -s conftest.err; then
4537 ac_cpp_err=$ac_c_preproc_warn_flag
4538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4545 if test -z "$ac_cpp_err"; then
4546 # Broken: success on invalid input.
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 # Passes both tests.
4556 rm -f conftest.err conftest.$ac_ext
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then
4564 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4565 See \`config.log' for more details." >&5
4566 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4567 See \`config.log' for more details." >&2;}
4568 { (exit 1); exit 1; }; }
4572 ac_cpp='$CPP $CPPFLAGS'
4573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4579 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4580 if test "${ac_cv_header_stdc+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_cv_header_stdc=yes
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_cv_header_stdc=no
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633 if test $ac_cv_header_stdc = yes; then
4634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4635 cat >conftest.$ac_ext <<_ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "memchr" >/dev/null 2>&1; then
4648 ac_cv_header_stdc=no
4654 if test $ac_cv_header_stdc = yes; then
4655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4656 cat >conftest.$ac_ext <<_ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "free" >/dev/null 2>&1; then
4669 ac_cv_header_stdc=no
4675 if test $ac_cv_header_stdc = yes; then
4676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677 if test "$cross_compiling" = yes; then
4680 cat >conftest.$ac_ext <<_ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4687 #if ((' ' & 0x0FF) == 0x020)
4688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4691 # define ISLOWER(c) \
4692 (('a' <= (c) && (c) <= 'i') \
4693 || ('j' <= (c) && (c) <= 'r') \
4694 || ('s' <= (c) && (c) <= 'z'))
4695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4703 for (i = 0; i < 256; i++)
4704 if (XOR (islower (i), ISLOWER (i))
4705 || toupper (i) != TOUPPER (i))
4710 rm -f conftest$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4723 echo "$as_me: program exited with status $ac_status" >&5
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_cv_header_stdc=no
4730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4734 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4735 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4736 if test $ac_cv_header_stdc = yes; then
4738 cat >>confdefs.h <<\_ACEOF
4739 #define STDC_HEADERS 1
4744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4754 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4755 inttypes.h stdint.h unistd.h
4757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4758 echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 $ac_includes_default
4771 #include <$ac_header>
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -z "$ac_c_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 eval "$as_ac_Header=yes"
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4800 eval "$as_ac_Header=no"
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4807 cat >>confdefs.h <<_ACEOF
4808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4817 for ac_header in dlfcn.h
4819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4821 echo "$as_me:$LINENO: checking for $ac_header" >&5
4822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4829 # Is the header compilable?
4830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 $ac_includes_default
4839 #include <$ac_header>
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -z "$ac_c_werror_flag"
4851 || test ! -s conftest.err'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; } &&
4857 { ac_try='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_header_compiler=yes
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 ac_header_compiler=no
4870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4872 echo "${ECHO_T}$ac_header_compiler" >&6
4874 # Is the header present?
4875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4877 cat >conftest.$ac_ext <<_ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4883 #include <$ac_header>
4885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } >/dev/null; then
4893 if test -s conftest.err; then
4894 ac_cpp_err=$ac_c_preproc_warn_flag
4895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4902 if test -z "$ac_cpp_err"; then
4903 ac_header_preproc=yes
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_header_preproc=no
4910 rm -f conftest.err conftest.$ac_ext
4911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4912 echo "${ECHO_T}$ac_header_preproc" >&6
4914 # So? What about this header?
4915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4921 ac_header_preproc=yes
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4938 ## ------------------------------------------ ##
4939 ## Report this to the AC_PACKAGE_NAME lists. ##
4940 ## ------------------------------------------ ##
4943 sed "s/^/$as_me: WARNING: /" >&2
4946 echo "$as_me:$LINENO: checking for $ac_header" >&5
4947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 eval "$as_ac_Header=\$ac_header_preproc"
4953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4958 cat >>confdefs.h <<_ACEOF
4959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4968 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4969 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4970 (test "X$CXX" != "Xg++"))) ; then
4972 ac_cpp='$CXXCPP $CPPFLAGS'
4973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4976 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4977 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4978 if test -z "$CXXCPP"; then
4979 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 # Double quotes because CXXCPP needs to be expanded
4983 for CXXCPP in "$CXX -E" "/lib/cpp"
4986 for ac_cxx_preproc_warn_flag in '' yes
4988 # Use a header file that comes with gcc, so configuring glibc
4989 # with a fresh cross-compiler works.
4990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991 # <limits.h> exists even on freestanding compilers.
4992 # On the NeXT, cc -E runs the code through the compiler's parser,
4993 # not just through cpp. "Syntax error" is here to catch this case.
4994 cat >conftest.$ac_ext <<_ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5001 # include <limits.h>
5003 # include <assert.h>
5007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } >/dev/null; then
5015 if test -s conftest.err; then
5016 ac_cpp_err=$ac_cxx_preproc_warn_flag
5017 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5024 if test -z "$ac_cpp_err"; then
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5030 # Broken: fails on valid input.
5033 rm -f conftest.err conftest.$ac_ext
5035 # OK, works on sane cases. Now check whether non-existent headers
5036 # can be detected and how.
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 #include <ac_nonexistent.h>
5045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5048 grep -v '^ *+' conftest.er1 >conftest.err
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } >/dev/null; then
5053 if test -s conftest.err; then
5054 ac_cpp_err=$ac_cxx_preproc_warn_flag
5055 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5062 if test -z "$ac_cpp_err"; then
5063 # Broken: success on invalid input.
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5069 # Passes both tests.
5073 rm -f conftest.err conftest.$ac_ext
5076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077 rm -f conftest.err conftest.$ac_ext
5078 if $ac_preproc_ok; then
5083 ac_cv_prog_CXXCPP=$CXXCPP
5086 CXXCPP=$ac_cv_prog_CXXCPP
5088 ac_cv_prog_CXXCPP=$CXXCPP
5090 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5091 echo "${ECHO_T}$CXXCPP" >&6
5093 for ac_cxx_preproc_warn_flag in '' yes
5095 # Use a header file that comes with gcc, so configuring glibc
5096 # with a fresh cross-compiler works.
5097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5098 # <limits.h> exists even on freestanding compilers.
5099 # On the NeXT, cc -E runs the code through the compiler's parser,
5100 # not just through cpp. "Syntax error" is here to catch this case.
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5108 # include <limits.h>
5110 # include <assert.h>
5114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5117 grep -v '^ *+' conftest.er1 >conftest.err
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null; then
5122 if test -s conftest.err; then
5123 ac_cpp_err=$ac_cxx_preproc_warn_flag
5124 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5131 if test -z "$ac_cpp_err"; then
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 # Broken: fails on valid input.
5140 rm -f conftest.err conftest.$ac_ext
5142 # OK, works on sane cases. Now check whether non-existent headers
5143 # can be detected and how.
5144 cat >conftest.$ac_ext <<_ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 #include <ac_nonexistent.h>
5152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } >/dev/null; then
5160 if test -s conftest.err; then
5161 ac_cpp_err=$ac_cxx_preproc_warn_flag
5162 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5169 if test -z "$ac_cpp_err"; then
5170 # Broken: success on invalid input.
5173 echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5176 # Passes both tests.
5180 rm -f conftest.err conftest.$ac_ext
5183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5184 rm -f conftest.err conftest.$ac_ext
5185 if $ac_preproc_ok; then
5188 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5189 See \`config.log' for more details." >&5
5190 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5191 See \`config.log' for more details." >&2;}
5192 { (exit 1); exit 1; }; }
5196 ac_cpp='$CXXCPP $CPPFLAGS'
5197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5205 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5206 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5208 if test -n "$ac_tool_prefix"; then
5209 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215 if test "${ac_cv_prog_F77+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 if test -n "$F77"; then
5219 ac_cv_prog_F77="$F77" # Let the user override the test.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 if test -n "$F77"; then
5239 echo "$as_me:$LINENO: result: $F77" >&5
5240 echo "${ECHO_T}$F77" >&6
5242 echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5246 test -n "$F77" && break
5249 if test -z "$F77"; then
5251 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5253 # Extract the first word of "$ac_prog", so it can be a program name with args.
5254 set dummy $ac_prog; ac_word=$2
5255 echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 if test -n "$ac_ct_F77"; then
5261 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_ac_ct_F77="$ac_prog"
5271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5280 if test -n "$ac_ct_F77"; then
5281 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5282 echo "${ECHO_T}$ac_ct_F77" >&6
5284 echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5288 test -n "$ac_ct_F77" && break
5295 # Provide some information about the compiler.
5296 echo "$as_me:5296:" \
5297 "checking for Fortran 77 compiler version" >&5
5298 ac_compiler=`set X $ac_compile; echo $2`
5299 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5300 (eval $ac_compiler --version </dev/null >&5) 2>&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }
5304 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5305 (eval $ac_compiler -v </dev/null >&5) 2>&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }
5309 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5310 (eval $ac_compiler -V </dev/null >&5) 2>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }
5316 # If we don't use `.F' as extension, the preprocessor is not run on the
5317 # input file. (Note that this only needs to work for GNU compilers.)
5320 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5321 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5322 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 cat >conftest.$ac_ext <<_ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>conftest.er1
5337 grep -v '^ *+' conftest.er1 >conftest.err
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -z "$ac_f77_werror_flag"
5343 || test ! -s conftest.err'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; } &&
5349 { ac_try='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5363 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5366 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5367 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5369 ac_test_FFLAGS=${FFLAGS+set}
5370 ac_save_FFLAGS=$FFLAGS
5372 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5373 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5374 if test "${ac_cv_prog_f77_g+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 cat >conftest.$ac_ext <<_ACEOF
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -z "$ac_f77_werror_flag"
5393 || test ! -s conftest.err'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; } &&
5399 { ac_try='test -s conftest.$ac_objext'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5405 ac_cv_prog_f77_g=yes
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5415 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5416 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5417 if test "$ac_test_FFLAGS" = set; then
5418 FFLAGS=$ac_save_FFLAGS
5419 elif test $ac_cv_prog_f77_g = yes; then
5420 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5426 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5433 G77=`test $ac_compiler_gnu = yes && echo yes`
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5442 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5444 # find the maximum length of command line arguments
5445 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5446 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5447 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 # On DJGPP, this test can blow up pretty badly due to problems in libc
5456 # (any single argument exceeding 2000 bytes causes a buffer overrun
5457 # during glob expansion). Even if it were fixed, the result of this
5458 # check would be larger than it should be.
5459 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5463 # Under GNU Hurd, this test is not required because there is
5464 # no limit to the length of command line arguments.
5465 # Libtool will interpret -1 as no limit whatsoever
5466 lt_cv_sys_max_cmd_len=-1;
5470 # On Win9x/ME, this test blows up -- it succeeds, but takes
5471 # about 5 minutes as the teststring grows exponentially.
5472 # Worse, since 9x/ME are not pre-emptively multitasking,
5473 # you end up with a "frozen" computer, even though with patience
5474 # the test eventually succeeds (with a max line length of 256k).
5475 # Instead, let's just punt: use the minimum linelength reported by
5476 # all of the supported platforms: 8192 (on NT/2K/XP).
5477 lt_cv_sys_max_cmd_len=8192;
5481 # On AmigaOS with pdksh, this test takes hours, literally.
5482 # So we just punt and use a minimum line length of 8192.
5483 lt_cv_sys_max_cmd_len=8192;
5486 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5487 # This has been around since 386BSD, at least. Likely further.
5488 if test -x /sbin/sysctl; then
5489 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5490 elif test -x /usr/sbin/sysctl; then
5491 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5493 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5495 # And add a safety zone
5496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5501 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5502 lt_cv_sys_max_cmd_len=196608
5506 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5507 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5508 # nice to cause kernel panics so lets avoid the loop below.
5509 # First set a reasonable default.
5510 lt_cv_sys_max_cmd_len=16384
5512 if test -x /sbin/sysconfig; then
5513 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5514 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5519 lt_cv_sys_max_cmd_len=102400
5521 sysv5* | sco5v6* | sysv4.2uw2*)
5522 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5523 if test -n "$kargmax"; then
5524 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5526 lt_cv_sys_max_cmd_len=32768
5530 # If test is not a shell built-in, we'll probably end up computing a
5531 # maximum length that is only half of the actual maximum length, but
5533 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5534 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5535 = "XX$teststring") >/dev/null 2>&1 &&
5536 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5537 lt_cv_sys_max_cmd_len=$new_result &&
5538 test $i != 17 # 1/2 MB should be enough
5541 teststring=$teststring$teststring
5544 # Add a significant safety factor because C++ compilers can tack on massive
5545 # amounts of additional arguments before passing them to the linker.
5546 # It appears as though 1/2 is a usable value.
5547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5553 if test -n $lt_cv_sys_max_cmd_len ; then
5554 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5555 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5557 echo "$as_me:$LINENO: result: none" >&5
5558 echo "${ECHO_T}none" >&6
5564 # Check for command to grab the raw symbol name followed by C symbol from nm.
5565 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5566 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5567 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 # These are sane defaults that work on at least a few old systems.
5572 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5574 # Character class describing NM global symbol codes.
5575 symcode='[BCDEGRST]'
5577 # Regexp to match symbols that can be accessed directly from C.
5578 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5580 # Transform an extracted symbol line into a proper C declaration
5581 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5583 # Transform an extracted symbol line into symbol name and symbol address
5584 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'"
5586 # Define system-specific variables.
5591 cygwin* | mingw* | pw32*)
5592 symcode='[ABCDGISTW]'
5594 hpux*) # Its linker distinguishes data from code symbols
5595 if test "$host_cpu" = ia64; then
5596 symcode='[ABCDEGRST]'
5598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5599 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'"
5602 if test "$host_cpu" = ia64; then
5603 symcode='[ABCDGIRSTW]'
5604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5605 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'"
5609 symcode='[BCDEGRST]'
5612 symcode='[BCDEGQRST]'
5623 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5631 # Handle CRLF in mingw tool chain
5635 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5639 # If we're using GNU nm, then use its standard symbol codes.
5640 case `$NM -V 2>&1` in
5641 *GNU* | *'with BFD'*)
5642 symcode='[ABCDGIRSTW]' ;;
5645 # Try without a prefix undercore, then with it.
5646 for ac_symprfx in "" "_"; do
5648 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5649 symxfrm="\\1 $ac_symprfx\\2 \\2"
5651 # Write the raw and C identifiers.
5652 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5654 # Check to see that the pipe works correctly.
5658 cat > conftest.$ac_ext <<EOF
5663 void nm_test_func(){}
5667 int main(){nm_test_var='a';nm_test_func();return(0);}
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; then
5675 # Now try to grab the symbols.
5677 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5678 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } && test -s "$nlist"; then
5682 # Try sorting and uniquifying the output.
5683 if sort "$nlist" | uniq > "$nlist"T; then
5684 mv -f "$nlist"T "$nlist"
5689 # Make sure that we snagged all the symbols we need.
5690 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5691 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5692 cat <<EOF > conftest.$ac_ext
5698 # Now generate the symbol file.
5699 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5701 cat <<EOF >> conftest.$ac_ext
5702 #if defined (__STDC__) && __STDC__
5703 # define lt_ptr_t void *
5705 # define lt_ptr_t char *
5709 /* The mapping between symbol names and symbols. */
5714 lt_preloaded_symbols[] =
5717 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5718 cat <<\EOF >> conftest.$ac_ext
5726 # Now try linking the two files.
5727 mv conftest.$ac_objext conftstm.$ac_objext
5728 lt_save_LIBS="$LIBS"
5729 lt_save_CFLAGS="$CFLAGS"
5730 LIBS="conftstm.$ac_objext"
5731 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733 (eval $ac_link) 2>&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5739 LIBS="$lt_save_LIBS"
5740 CFLAGS="$lt_save_CFLAGS"
5742 echo "cannot find nm_test_func in $nlist" >&5
5745 echo "cannot find nm_test_var in $nlist" >&5
5748 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5751 echo "$progname: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5754 rm -f conftest* conftst*
5756 # Do not use the global_symbol_pipe unless it works.
5757 if test "$pipe_works" = yes; then
5760 lt_cv_sys_global_symbol_pipe=
5766 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5767 lt_cv_sys_global_symbol_to_cdecl=
5769 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5770 echo "$as_me:$LINENO: result: failed" >&5
5771 echo "${ECHO_T}failed" >&6
5773 echo "$as_me:$LINENO: result: ok" >&5
5774 echo "${ECHO_T}ok" >&6
5777 echo "$as_me:$LINENO: checking for objdir" >&5
5778 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5779 if test "${lt_cv_objdir+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 rm -f .libs 2>/dev/null
5783 mkdir .libs 2>/dev/null
5784 if test -d .libs; then
5787 # MS-DOS does not allow filenames that begin with a dot.
5790 rmdir .libs 2>/dev/null
5792 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5793 echo "${ECHO_T}$lt_cv_objdir" >&6
5794 objdir=$lt_cv_objdir
5802 # AIX sometimes has problems with the GCC collect2 program. For some
5803 # reason, if we set the COLLECT_NAMES environment variable, the problems
5804 # vanish in a puff of smoke.
5805 if test "X${COLLECT_NAMES+set}" != Xset; then
5807 export COLLECT_NAMES
5812 # Sed substitution that helps us do robust quoting. It backslashifies
5813 # metacharacters that are still active within double-quoted strings.
5814 Xsed='sed -e 1s/^X//'
5815 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5817 # Same as above, but do not quote variable references.
5818 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5820 # Sed substitution to delay expansion of an escaped shell variable in a
5821 # double_quote_subst'ed string.
5822 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5824 # Sed substitution to avoid accidental globbing in evaled expressions
5825 no_glob_subst='s/\*/\\\*/g'
5831 default_ofile=libtool
5832 can_build_shared=yes
5834 # All known linkers require a `.a' archive for static linking (except MSVC,
5835 # which needs '.lib').
5837 ltmain="$ac_aux_dir/ltmain.sh"
5838 ofile="$default_ofile"
5839 with_gnu_ld="$lt_cv_prog_gnu_ld"
5841 if test -n "$ac_tool_prefix"; then
5842 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5843 set dummy ${ac_tool_prefix}ar; ac_word=$2
5844 echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846 if test "${ac_cv_prog_AR+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 if test -n "$AR"; then
5850 ac_cv_prog_AR="$AR" # Let the user override the test.
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_AR="${ac_tool_prefix}ar"
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 if test -n "$AR"; then
5870 echo "$as_me:$LINENO: result: $AR" >&5
5871 echo "${ECHO_T}$AR" >&6
5873 echo "$as_me:$LINENO: result: no" >&5
5874 echo "${ECHO_T}no" >&6
5878 if test -z "$ac_cv_prog_AR"; then
5880 # Extract the first word of "ar", so it can be a program name with args.
5881 set dummy ar; ac_word=$2
5882 echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5884 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 if test -n "$ac_ct_AR"; then
5888 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897 ac_cv_prog_ac_ct_AR="ar"
5898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5908 if test -n "$ac_ct_AR"; then
5909 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5910 echo "${ECHO_T}$ac_ct_AR" >&6
5912 echo "$as_me:$LINENO: result: no" >&5
5913 echo "${ECHO_T}no" >&6
5921 if test -n "$ac_tool_prefix"; then
5922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926 if test "${ac_cv_prog_RANLIB+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 if test -n "$RANLIB"; then
5930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 RANLIB=$ac_cv_prog_RANLIB
5949 if test -n "$RANLIB"; then
5950 echo "$as_me:$LINENO: result: $RANLIB" >&5
5951 echo "${ECHO_T}$RANLIB" >&6
5953 echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6
5958 if test -z "$ac_cv_prog_RANLIB"; then
5959 ac_ct_RANLIB=$RANLIB
5960 # Extract the first word of "ranlib", so it can be a program name with args.
5961 set dummy ranlib; ac_word=$2
5962 echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 if test -n "$ac_ct_RANLIB"; then
5968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977 ac_cv_prog_ac_ct_RANLIB="ranlib"
5978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5988 if test -n "$ac_ct_RANLIB"; then
5989 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5990 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5992 echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6
5996 RANLIB=$ac_ct_RANLIB
5998 RANLIB="$ac_cv_prog_RANLIB"
6001 if test -n "$ac_tool_prefix"; then
6002 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6003 set dummy ${ac_tool_prefix}strip; ac_word=$2
6004 echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6006 if test "${ac_cv_prog_STRIP+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 if test -n "$STRIP"; then
6010 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6019 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 STRIP=$ac_cv_prog_STRIP
6029 if test -n "$STRIP"; then
6030 echo "$as_me:$LINENO: result: $STRIP" >&5
6031 echo "${ECHO_T}$STRIP" >&6
6033 echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6
6038 if test -z "$ac_cv_prog_STRIP"; then
6040 # Extract the first word of "strip", so it can be a program name with args.
6041 set dummy strip; ac_word=$2
6042 echo "$as_me:$LINENO: checking for $ac_word" >&5
6043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 if test -n "$ac_ct_STRIP"; then
6048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057 ac_cv_prog_ac_ct_STRIP="strip"
6058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6068 if test -n "$ac_ct_STRIP"; then
6069 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6070 echo "${ECHO_T}$ac_ct_STRIP" >&6
6072 echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6
6078 STRIP="$ac_cv_prog_STRIP"
6083 old_CFLAGS="$CFLAGS"
6085 # Set sane defaults for various variables
6086 test -z "$AR" && AR=ar
6087 test -z "$AR_FLAGS" && AR_FLAGS=cru
6088 test -z "$AS" && AS=as
6089 test -z "$CC" && CC=cc
6090 test -z "$LTCC" && LTCC=$CC
6091 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6092 test -z "$DLLTOOL" && DLLTOOL=dlltool
6093 test -z "$LD" && LD=ld
6094 test -z "$LN_S" && LN_S="ln -s"
6095 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6096 test -z "$NM" && NM=nm
6097 test -z "$SED" && SED=sed
6098 test -z "$OBJDUMP" && OBJDUMP=objdump
6099 test -z "$RANLIB" && RANLIB=:
6100 test -z "$STRIP" && STRIP=:
6101 test -z "$ac_objext" && ac_objext=o
6103 # Determine commands to create old-style static archives.
6104 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6105 old_postinstall_cmds='chmod 644 $oldlib'
6106 old_postuninstall_cmds=
6108 if test -n "$RANLIB"; then
6111 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6114 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6117 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6120 for cc_temp in $compiler""; do
6122 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6123 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6128 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6131 # Only perform the check for file, if the check method requires it
6132 case $deplibs_check_method in
6134 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6135 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6136 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6137 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6145 lt_save_MAGIC_CMD="$MAGIC_CMD"
6146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6147 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6148 for ac_dir in $ac_dummy; do
6150 test -z "$ac_dir" && ac_dir=.
6151 if test -f $ac_dir/${ac_tool_prefix}file; then
6152 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6153 if test -n "$file_magic_test_file"; then
6154 case $deplibs_check_method in
6156 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6158 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6159 $EGREP "$file_magic_regex" > /dev/null; then
6164 *** Warning: the command libtool uses to detect shared libraries,
6165 *** $file_magic_cmd, produces output that libtool cannot recognize.
6166 *** The result is that libtool may fail to recognize shared libraries
6167 *** as such. This will affect the creation of libtool libraries that
6168 *** depend on shared libraries, but programs linked with such libtool
6169 *** libraries will work regardless of this problem. Nevertheless, you
6170 *** may want to report the problem to your system manager and/or to
6171 *** bug-libtool@gnu.org
6181 MAGIC_CMD="$lt_save_MAGIC_CMD"
6186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6187 if test -n "$MAGIC_CMD"; then
6188 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6189 echo "${ECHO_T}$MAGIC_CMD" >&6
6191 echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6
6195 if test -z "$lt_cv_path_MAGIC_CMD"; then
6196 if test -n "$ac_tool_prefix"; then
6197 echo "$as_me:$LINENO: checking for file" >&5
6198 echo $ECHO_N "checking for file... $ECHO_C" >&6
6199 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6207 lt_save_MAGIC_CMD="$MAGIC_CMD"
6208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6209 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6210 for ac_dir in $ac_dummy; do
6212 test -z "$ac_dir" && ac_dir=.
6213 if test -f $ac_dir/file; then
6214 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6215 if test -n "$file_magic_test_file"; then
6216 case $deplibs_check_method in
6218 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6220 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6221 $EGREP "$file_magic_regex" > /dev/null; then
6226 *** Warning: the command libtool uses to detect shared libraries,
6227 *** $file_magic_cmd, produces output that libtool cannot recognize.
6228 *** The result is that libtool may fail to recognize shared libraries
6229 *** as such. This will affect the creation of libtool libraries that
6230 *** depend on shared libraries, but programs linked with such libtool
6231 *** libraries will work regardless of this problem. Nevertheless, you
6232 *** may want to report the problem to your system manager and/or to
6233 *** bug-libtool@gnu.org
6243 MAGIC_CMD="$lt_save_MAGIC_CMD"
6248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6249 if test -n "$MAGIC_CMD"; then
6250 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6251 echo "${ECHO_T}$MAGIC_CMD" >&6
6253 echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6
6269 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6270 if test "${enable_libtool_lock+set}" = set; then
6271 enableval="$enable_libtool_lock"
6274 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6277 # Check whether --with-pic or --without-pic was given.
6278 if test "${with_pic+set}" = set; then
6284 test -z "$pic_mode" && pic_mode=default
6286 # Use C for the default configuration in the libtool script
6290 ac_cpp='$CPP $CPPFLAGS'
6291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6296 # Source file extension for C test sources.
6299 # Object file extension for compiled C test sources.
6303 # Code to be used in simple compile tests
6304 lt_simple_compile_test_code="int some_variable = 0;\n"
6306 # Code to be used in simple link tests
6307 lt_simple_link_test_code='int main(){return(0);}\n'
6310 # If no C compiler was specified, use CC.
6313 # If no C compiler flags were specified, use CFLAGS.
6314 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6316 # Allow CC to be a program name with arguments.
6320 # save warnings/boilerplate of simple test code
6321 ac_outfile=conftest.$ac_objext
6322 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6323 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6324 _lt_compiler_boilerplate=`cat conftest.err`
6327 ac_outfile=conftest.$ac_objext
6328 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6329 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6330 _lt_linker_boilerplate=`cat conftest.err`
6335 lt_prog_compiler_no_builtin_flag=
6337 if test "$GCC" = yes; then
6338 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6341 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6342 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6343 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 lt_cv_prog_compiler_rtti_exceptions=no
6347 ac_outfile=conftest.$ac_objext
6348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6349 lt_compiler_flag="-fno-rtti -fno-exceptions"
6350 # Insert the option either (1) after the last *FLAGS variable, or
6351 # (2) before a word containing "conftest.", or (3) at the end.
6352 # Note that $ac_compile itself does not contain backslashes and begins
6353 # with a dollar sign (not a hyphen), so the echo should work correctly.
6354 # The option is referenced via a variable to avoid confusing sed.
6355 lt_compile=`echo "$ac_compile" | $SED \
6356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6358 -e 's:$: $lt_compiler_flag:'`
6359 (eval echo "\"\$as_me:6359: $lt_compile\"" >&5)
6360 (eval "$lt_compile" 2>conftest.err)
6362 cat conftest.err >&5
6363 echo "$as_me:6363: \$? = $ac_status" >&5
6364 if (exit $ac_status) && test -s "$ac_outfile"; then
6365 # The compiler can only warn and ignore the option if not recognized
6366 # So say no if there are warnings other than the usual output.
6367 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6370 lt_cv_prog_compiler_rtti_exceptions=yes
6376 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6377 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6379 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6380 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6387 lt_prog_compiler_wl=
6388 lt_prog_compiler_pic=
6389 lt_prog_compiler_static=
6391 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6392 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6394 if test "$GCC" = yes; then
6395 lt_prog_compiler_wl='-Wl,'
6396 lt_prog_compiler_static='-static'
6400 # All AIX code is PIC.
6401 if test "$host_cpu" = ia64; then
6402 # AIX 5 now supports IA64 processor
6403 lt_prog_compiler_static='-Bstatic'
6408 # FIXME: we need at least 68020 code to build shared libraries, but
6409 # adding the `-m68020' flag to GCC prevents building anything better,
6411 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6414 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6415 # PIC is the default for these OSes.
6418 mingw* | pw32* | os2*)
6419 # This hack is so that the source file can tell whether it is being
6420 # built for inclusion in a dll (and should export symbols for example).
6421 lt_prog_compiler_pic='-DDLL_EXPORT'
6424 darwin* | rhapsody*)
6425 # PIC is the default on this platform
6426 # Common symbols not allowed in MH_DYLIB files
6427 lt_prog_compiler_pic='-fno-common'
6431 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6432 # Instead, we relocate shared libraries at runtime.
6436 # Just because we use GCC doesn't mean we suddenly get shared libraries
6437 # on systems that don't support them.
6438 lt_prog_compiler_can_build_shared=no
6443 if test -d /usr/nec; then
6444 lt_prog_compiler_pic=-Kconform_pic
6449 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6456 lt_prog_compiler_pic='-fPIC'
6462 lt_prog_compiler_pic='-fPIC'
6466 # PORTME Check for flag to pass linker flags through the system compiler.
6469 lt_prog_compiler_wl='-Wl,'
6470 if test "$host_cpu" = ia64; then
6471 # AIX 5 now supports IA64 processor
6472 lt_prog_compiler_static='-Bstatic'
6474 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6478 # PIC is the default on this platform
6479 # Common symbols not allowed in MH_DYLIB files
6480 case $cc_basename in
6482 lt_prog_compiler_pic='-qnocommon'
6483 lt_prog_compiler_wl='-Wl,'
6488 mingw* | pw32* | os2*)
6489 # This hack is so that the source file can tell whether it is being
6490 # built for inclusion in a dll (and should export symbols for example).
6491 lt_prog_compiler_pic='-DDLL_EXPORT'
6494 hpux9* | hpux10* | hpux11*)
6495 lt_prog_compiler_wl='-Wl,'
6496 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6503 lt_prog_compiler_pic='+Z'
6506 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6507 lt_prog_compiler_static='${wl}-a ${wl}archive'
6510 irix5* | irix6* | nonstopux*)
6511 lt_prog_compiler_wl='-Wl,'
6512 # PIC (with -KPIC) is the default.
6513 lt_prog_compiler_static='-non_shared'
6517 lt_prog_compiler_pic='-KPIC'
6518 lt_prog_compiler_static='-Bstatic'
6522 case $cc_basename in
6524 lt_prog_compiler_wl='-Wl,'
6525 lt_prog_compiler_pic='-KPIC'
6526 lt_prog_compiler_static='-static'
6528 pgcc* | pgf77* | pgf90* | pgf95*)
6529 # Portland Group compilers (*not* the Pentium gcc compiler,
6530 # which looks to be a dead project)
6531 lt_prog_compiler_wl='-Wl,'
6532 lt_prog_compiler_pic='-fpic'
6533 lt_prog_compiler_static='-Bstatic'
6536 lt_prog_compiler_wl='-Wl,'
6537 # All Alpha code is PIC.
6538 lt_prog_compiler_static='-non_shared'
6543 osf3* | osf4* | osf5*)
6544 lt_prog_compiler_wl='-Wl,'
6545 # All OSF/1 code is PIC.
6546 lt_prog_compiler_static='-non_shared'
6550 lt_prog_compiler_pic='-KPIC'
6551 lt_prog_compiler_static='-Bstatic'
6552 case $cc_basename in
6554 lt_prog_compiler_wl='-Qoption ld ';;
6556 lt_prog_compiler_wl='-Wl,';;
6561 lt_prog_compiler_wl='-Qoption ld '
6562 lt_prog_compiler_pic='-PIC'
6563 lt_prog_compiler_static='-Bstatic'
6566 sysv4 | sysv4.2uw2* | sysv4.3*)
6567 lt_prog_compiler_wl='-Wl,'
6568 lt_prog_compiler_pic='-KPIC'
6569 lt_prog_compiler_static='-Bstatic'
6573 if test -d /usr/nec ;then
6574 lt_prog_compiler_pic='-Kconform_pic'
6575 lt_prog_compiler_static='-Bstatic'
6579 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6580 lt_prog_compiler_wl='-Wl,'
6581 lt_prog_compiler_pic='-KPIC'
6582 lt_prog_compiler_static='-Bstatic'
6586 lt_prog_compiler_wl='-Wl,'
6587 lt_prog_compiler_can_build_shared=no
6591 lt_prog_compiler_pic='-pic'
6592 lt_prog_compiler_static='-Bstatic'
6596 lt_prog_compiler_can_build_shared=no
6601 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6602 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6605 # Check to make sure the PIC flag actually works.
6607 if test -n "$lt_prog_compiler_pic"; then
6609 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6610 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6611 if test "${lt_prog_compiler_pic_works+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 lt_prog_compiler_pic_works=no
6615 ac_outfile=conftest.$ac_objext
6616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6617 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6618 # Insert the option either (1) after the last *FLAGS variable, or
6619 # (2) before a word containing "conftest.", or (3) at the end.
6620 # Note that $ac_compile itself does not contain backslashes and begins
6621 # with a dollar sign (not a hyphen), so the echo should work correctly.
6622 # The option is referenced via a variable to avoid confusing sed.
6623 lt_compile=`echo "$ac_compile" | $SED \
6624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6626 -e 's:$: $lt_compiler_flag:'`
6627 (eval echo "\"\$as_me:6627: $lt_compile\"" >&5)
6628 (eval "$lt_compile" 2>conftest.err)
6630 cat conftest.err >&5
6631 echo "$as_me:6631: \$? = $ac_status" >&5
6632 if (exit $ac_status) && test -s "$ac_outfile"; then
6633 # The compiler can only warn and ignore the option if not recognized
6634 # So say no if there are warnings other than the usual output.
6635 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6638 lt_prog_compiler_pic_works=yes
6644 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6645 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6647 if test x"$lt_prog_compiler_pic_works" = xyes; then
6648 case $lt_prog_compiler_pic in
6650 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6653 lt_prog_compiler_pic=
6654 lt_prog_compiler_can_build_shared=no
6659 # For platforms which do not support PIC, -DPIC is meaningless:
6661 lt_prog_compiler_pic=
6664 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6669 # Check to make sure the static flag actually works.
6671 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6672 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6673 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6674 if test "${lt_prog_compiler_static_works+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 lt_prog_compiler_static_works=no
6678 save_LDFLAGS="$LDFLAGS"
6679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6680 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6682 # The linker can only warn and ignore the option if not recognized
6683 # So say no if there are warnings
6684 if test -s conftest.err; then
6685 # Append any errors to the config.log.
6686 cat conftest.err 1>&5
6687 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6689 if diff conftest.exp conftest.er2 >/dev/null; then
6690 lt_prog_compiler_static_works=yes
6693 lt_prog_compiler_static_works=yes
6697 LDFLAGS="$save_LDFLAGS"
6700 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6701 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6703 if test x"$lt_prog_compiler_static_works" = xyes; then
6706 lt_prog_compiler_static=
6710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6712 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 lt_cv_prog_compiler_c_o=no
6716 $rm -r conftest 2>/dev/null
6720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6722 lt_compiler_flag="-o out/conftest2.$ac_objext"
6723 # Insert the option either (1) after the last *FLAGS variable, or
6724 # (2) before a word containing "conftest.", or (3) at the end.
6725 # Note that $ac_compile itself does not contain backslashes and begins
6726 # with a dollar sign (not a hyphen), so the echo should work correctly.
6727 lt_compile=`echo "$ac_compile" | $SED \
6728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6730 -e 's:$: $lt_compiler_flag:'`
6731 (eval echo "\"\$as_me:6731: $lt_compile\"" >&5)
6732 (eval "$lt_compile" 2>out/conftest.err)
6734 cat out/conftest.err >&5
6735 echo "$as_me:6735: \$? = $ac_status" >&5
6736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6738 # The compiler can only warn and ignore the option if not recognized
6739 # So say no if there are warnings
6740 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6743 lt_cv_prog_compiler_c_o=yes
6748 # SGI C++ compiler will create directory out/ii_files/ for
6749 # template instantiation
6750 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6751 $rm out/* && rmdir out
6757 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6761 hard_links="nottested"
6762 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6763 # do not overwrite the value of need_locks provided by the user
6764 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6770 ln conftest.a conftest.b 2>&5 || hard_links=no
6771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6772 echo "$as_me:$LINENO: result: $hard_links" >&5
6773 echo "${ECHO_T}$hard_links" >&6
6774 if test "$hard_links" = no; then
6775 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6787 allow_undefined_flag=
6788 enable_shared_with_static_runtimes=no
6790 archive_expsym_cmds=
6791 old_archive_From_new_cmds=
6792 old_archive_from_expsyms_cmds=
6793 export_dynamic_flag_spec=
6794 whole_archive_flag_spec=
6795 thread_safe_flag_spec=
6796 hardcode_libdir_flag_spec=
6797 hardcode_libdir_flag_spec_ld=
6798 hardcode_libdir_separator=
6801 hardcode_shlibpath_var=unsupported
6802 link_all_deplibs=unknown
6803 hardcode_automatic=no
6806 always_export_symbols=no
6807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6808 # include_expsyms should be a list of space-separated symbols to be *always*
6809 # included in the symbol list
6811 # exclude_expsyms can be an extended regexp of symbols to exclude
6812 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6813 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6814 # as well as any symbol that contains `d'.
6815 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6816 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6817 # platforms (ab)use it in PIC code, but their linkers get confused if
6818 # the symbol is explicitly referenced. Since portable code cannot
6819 # rely on this symbol name, it's probably fine to never include it in
6820 # preloaded symbol tables.
6821 extract_expsyms_cmds=
6822 # Just being paranoid about ensuring that cc_basename is set.
6823 for cc_temp in $compiler""; do
6825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6834 cygwin* | mingw* | pw32*)
6835 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6836 # When not using gcc, we currently assume that we are using
6837 # Microsoft Visual C++.
6838 if test "$GCC" != yes; then
6843 # we just hope/assume this is gcc and not c89 (= MSVC++)
6852 if test "$with_gnu_ld" = yes; then
6853 # If archive_cmds runs LD, not CC, wlarc should be empty
6856 # Set some defaults for GNU ld with shared library support. These
6857 # are reset later if shared libraries are not supported. Putting them
6858 # here allows them to be overridden if necessary.
6859 runpath_var=LD_RUN_PATH
6860 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6861 export_dynamic_flag_spec='${wl}--export-dynamic'
6862 # ancient GNU ld didn't support --whole-archive et. al.
6863 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6864 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6866 whole_archive_flag_spec=
6868 supports_anon_versioning=no
6869 case `$LD -v 2>/dev/null` in
6870 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6871 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6872 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6873 *\ 2.11.*) ;; # other 2.11 versions
6874 *) supports_anon_versioning=yes ;;
6877 # See if GNU ld supports shared libraries.
6879 aix3* | aix4* | aix5*)
6880 # On AIX/PPC, the GNU linker is very broken
6881 if test "$host_cpu" != ia64; then
6885 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6886 *** to be unable to reliably create shared libraries on AIX.
6887 *** Therefore, libtool is disabling shared libraries support. If you
6888 *** really care for shared libraries, you may want to modify your PATH
6889 *** so that a non-GNU linker is found, and then restart.
6896 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)'
6897 hardcode_libdir_flag_spec='-L$libdir'
6898 hardcode_minus_L=yes
6900 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6901 # that the semantics of dynamic libraries on AmigaOS, at least up
6902 # to version 4, is to share data among multiple programs linked
6903 # with the same dynamic library. Since this doesn't match the
6904 # behavior of shared libraries on other platforms, we can't use
6910 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6911 allow_undefined_flag=unsupported
6912 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6913 # support --undefined. This deserves some investigation. FIXME
6914 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6920 cygwin* | mingw* | pw32*)
6921 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6922 # as there is no search path for DLLs.
6923 hardcode_libdir_flag_spec='-L$libdir'
6924 allow_undefined_flag=unsupported
6925 always_export_symbols=no
6926 enable_shared_with_static_runtimes=yes
6927 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6929 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6931 # If the export-symbols file already is a .def file (1st line
6932 # is EXPORTS), use it as is; otherwise, prepend...
6933 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6934 cp $export_symbols $output_objdir/$soname.def;
6936 echo EXPORTS > $output_objdir/$soname.def;
6937 cat $export_symbols >> $output_objdir/$soname.def;
6939 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6947 hardcode_shlibpath_var=no
6948 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6949 export_dynamic_flag_spec='${wl}-E'
6950 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6951 # Instead, shared libraries are loaded at an image base (0x10000000 by
6952 # default) and relocated if they conflict, which is a slow very memory
6953 # consuming and fragmenting process. To avoid this, we pick a random,
6954 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6955 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6956 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6957 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'
6961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6963 case $cc_basename,$host_cpu in
6964 pgcc*) # Portland Group C compiler
6965 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'
6966 tmp_addflag=' $pic_flag'
6968 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6969 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'
6970 tmp_addflag=' $pic_flag -Mnomain' ;;
6971 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6972 tmp_addflag=' -i_dynamic' ;;
6973 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6974 tmp_addflag=' -i_dynamic -nofor_main' ;;
6975 ifc* | ifort*) # Intel Fortran compiler
6976 tmp_addflag=' -nofor_main' ;;
6978 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6980 if test $supports_anon_versioning = yes; then
6981 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6982 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6983 $echo "local: *; };" >> $output_objdir/$libname.ver~
6984 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6993 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7002 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7007 *** create shared libraries on Solaris systems. Therefore, libtool
7008 *** is disabling shared libraries support. We urge you to upgrade GNU
7009 *** binutils to release 2.9.1 or newer. Another option is to modify
7010 *** your PATH or compiler configuration so that the native linker is
7011 *** used, and then restart.
7014 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7023 case `$LD -v 2>&1` in
7024 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7029 *** reliably create shared libraries on SCO systems. Therefore, libtool
7030 *** is disabling shared libraries support. We urge you to upgrade GNU
7031 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7032 *** your PATH or compiler configuration so that the native linker is
7033 *** used, and then restart.
7038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7039 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7050 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7053 hardcode_shlibpath_var=no
7057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7066 if test "$ld_shlibs" = no; then
7068 hardcode_libdir_flag_spec=
7069 export_dynamic_flag_spec=
7070 whole_archive_flag_spec=
7073 # PORTME fill in a description of your system's linker (not GNU ld)
7076 allow_undefined_flag=unsupported
7077 always_export_symbols=yes
7078 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'
7079 # Note: this linker hardcodes the directories in LIBPATH if there
7080 # are no directories specified by -L.
7081 hardcode_minus_L=yes
7082 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7083 # Neither direct hardcoding nor static linking is supported with a
7085 hardcode_direct=unsupported
7090 if test "$host_cpu" = ia64; then
7091 # On IA64, the linker does run time linking by default, so we don't
7092 # have to do anything special.
7093 aix_use_runtimelinking=no
7094 exp_sym_flag='-Bexport'
7097 # If we're using GNU nm, then we don't want the "-C" option.
7098 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7099 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7100 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'
7102 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'
7104 aix_use_runtimelinking=no
7106 # Test if we are trying to use run time linking or normal
7107 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7108 # need to do runtime linking.
7109 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7110 for ld_flag in $LDFLAGS; do
7111 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7112 aix_use_runtimelinking=yes
7119 exp_sym_flag='-bexport'
7120 no_entry_flag='-bnoentry'
7123 # When large executables or shared objects are built, AIX ld can
7124 # have problems creating the table of contents. If linking a library
7125 # or program results in "error TOC overflow" add -mminimal-toc to
7126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7131 hardcode_libdir_separator=':'
7132 link_all_deplibs=yes
7134 if test "$GCC" = yes; then
7135 case $host_os in aix4.[012]|aix4.[012].*)
7136 # We only want to do this on AIX 4.2 and lower, the check
7137 # below for broken collect2 doesn't work under 4.3+
7138 collect2name=`${CC} -print-prog-name=collect2`
7139 if test -f "$collect2name" && \
7140 strings "$collect2name" | grep resolve_lib_name >/dev/null
7142 # We have reworked collect2
7145 # We have old collect2
7146 hardcode_direct=unsupported
7147 # It fails to find uninstalled libraries when the uninstalled
7148 # path is not listed in the libpath. Setting hardcode_minus_L
7149 # to unsupported forces relinking
7150 hardcode_minus_L=yes
7151 hardcode_libdir_flag_spec='-L$libdir'
7152 hardcode_libdir_separator=
7156 shared_flag='-shared'
7157 if test "$aix_use_runtimelinking" = yes; then
7158 shared_flag="$shared_flag "'${wl}-G'
7162 if test "$host_cpu" = ia64; then
7163 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7164 # chokes on -Wl,-G. The following line is correct:
7167 if test "$aix_use_runtimelinking" = yes; then
7168 shared_flag='${wl}-G'
7170 shared_flag='${wl}-bM:SRE'
7175 # It seems that -bexpall does not export symbols beginning with
7176 # underscore (_), so it is better to generate a list of symbols to export.
7177 always_export_symbols=yes
7178 if test "$aix_use_runtimelinking" = yes; then
7179 # Warning - without using the other runtime loading flags (-brtl),
7180 # -berok will link without error, but may produce a broken library.
7181 allow_undefined_flag='-berok'
7182 # Determine the default libpath from the value encoded in an empty executable.
7183 cat >conftest.$ac_ext <<_ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7198 rm -f conftest.$ac_objext conftest$ac_exeext
7199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200 (eval $ac_link) 2>conftest.er1
7202 grep -v '^ *+' conftest.er1 >conftest.err
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
7207 { ac_try='test -z "$ac_c_werror_flag"
7208 || test ! -s conftest.err'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; } &&
7214 { ac_try='test -s conftest$ac_exeext'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; }; then
7221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7223 # Check for a 64-bit object if we didn't find anything.
7224 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; }
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7231 rm -f conftest.err conftest.$ac_objext \
7232 conftest$ac_exeext conftest.$ac_ext
7233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7236 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"
7238 if test "$host_cpu" = ia64; then
7239 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7240 allow_undefined_flag="-z nodefs"
7241 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"
7243 # Determine the default libpath from the value encoded in an empty executable.
7244 cat >conftest.$ac_ext <<_ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261 (eval $ac_link) 2>conftest.er1
7263 grep -v '^ *+' conftest.er1 >conftest.err
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -z "$ac_c_werror_flag"
7269 || test ! -s conftest.err'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; } &&
7275 { ac_try='test -s conftest$ac_exeext'
7276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; }; then
7282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7284 # Check for a 64-bit object if we didn't find anything.
7285 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; }
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7292 rm -f conftest.err conftest.$ac_objext \
7293 conftest$ac_exeext conftest.$ac_ext
7294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7297 # Warning - without using the other run time loading flags,
7298 # -berok will link without error, but may produce a broken library.
7299 no_undefined_flag=' ${wl}-bernotok'
7300 allow_undefined_flag=' ${wl}-berok'
7301 # Exported symbols can be pulled into shared objects from archives
7302 whole_archive_flag_spec='$convenience'
7303 archive_cmds_need_lc=yes
7304 # This is similar to how AIX traditionally builds its shared libraries.
7305 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'
7311 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)'
7312 hardcode_libdir_flag_spec='-L$libdir'
7313 hardcode_minus_L=yes
7314 # see comment about different semantics on the GNU ld section
7319 export_dynamic_flag_spec=-rdynamic
7322 cygwin* | mingw* | pw32*)
7323 # When not using gcc, we currently assume that we are using
7324 # Microsoft Visual C++.
7325 # hardcode_libdir_flag_spec is actually meaningless, as there is
7326 # no search path for DLLs.
7327 hardcode_libdir_flag_spec=' '
7328 allow_undefined_flag=unsupported
7329 # Tell ltmain to make .lib files, not .a files.
7331 # Tell ltmain to make .dll files, not .so files.
7333 # FIXME: Setting linknames here is a bad hack.
7334 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7335 # The linker will automatically build a .lib file if we build a DLL.
7336 old_archive_From_new_cmds='true'
7337 # FIXME: Should let the user specify the lib program.
7338 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7339 fix_srcfile_path='`cygpath -w "$srcfile"`'
7340 enable_shared_with_static_runtimes=yes
7343 darwin* | rhapsody*)
7345 rhapsody* | darwin1.[012])
7346 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7349 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7350 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7352 case ${MACOSX_DEPLOYMENT_TARGET} in
7354 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7357 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7363 archive_cmds_need_lc=no
7365 hardcode_automatic=yes
7366 hardcode_shlibpath_var=unsupported
7367 whole_archive_flag_spec=''
7368 link_all_deplibs=yes
7369 if test "$GCC" = yes ; then
7370 output_verbose_link_cmd='echo'
7371 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7372 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7373 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7374 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}'
7375 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}'
7377 case $cc_basename in
7379 output_verbose_link_cmd='echo'
7380 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7381 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7382 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7383 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}'
7384 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}'
7394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395 hardcode_libdir_flag_spec='-L$libdir'
7396 hardcode_shlibpath_var=no
7403 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7404 # support. Future versions do this automatically, but an explicit c++rt0.o
7405 # does not break anything, and helps significantly (at the cost of a little
7408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7409 hardcode_libdir_flag_spec='-R$libdir'
7411 hardcode_shlibpath_var=no
7414 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7418 hardcode_minus_L=yes
7419 hardcode_shlibpath_var=no
7422 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7423 freebsd* | kfreebsd*-gnu | dragonfly*)
7424 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7425 hardcode_libdir_flag_spec='-R$libdir'
7427 hardcode_shlibpath_var=no
7431 if test "$GCC" = yes; then
7432 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'
7434 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'
7436 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7437 hardcode_libdir_separator=:
7440 # hardcode_minus_L: Not really in the search PATH,
7441 # but as the default location of the library.
7442 hardcode_minus_L=yes
7443 export_dynamic_flag_spec='${wl}-E'
7447 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7448 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7452 if test "$with_gnu_ld" = no; then
7453 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7454 hardcode_libdir_separator=:
7457 export_dynamic_flag_spec='${wl}-E'
7459 # hardcode_minus_L: Not really in the search PATH,
7460 # but as the default location of the library.
7461 hardcode_minus_L=yes
7466 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7469 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7472 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7475 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7481 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7484 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7487 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7491 if test "$with_gnu_ld" = no; then
7492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7493 hardcode_libdir_separator=:
7497 hardcode_libdir_flag_spec_ld='+b $libdir'
7499 hardcode_shlibpath_var=no
7503 export_dynamic_flag_spec='${wl}-E'
7505 # hardcode_minus_L: Not really in the search PATH,
7506 # but as the default location of the library.
7507 hardcode_minus_L=yes
7513 irix5* | irix6* | nonstopux*)
7514 if test "$GCC" = yes; then
7515 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'
7517 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'
7518 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7521 hardcode_libdir_separator=:
7522 link_all_deplibs=yes
7526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7529 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7531 hardcode_libdir_flag_spec='-R$libdir'
7533 hardcode_shlibpath_var=no
7537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7540 hardcode_libdir_separator=:
7541 hardcode_shlibpath_var=no
7546 hardcode_shlibpath_var=no
7547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7549 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7551 export_dynamic_flag_spec='${wl}-E'
7554 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7556 hardcode_libdir_flag_spec='-R$libdir'
7559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7567 hardcode_libdir_flag_spec='-L$libdir'
7568 hardcode_minus_L=yes
7569 allow_undefined_flag=unsupported
7570 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'
7571 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7575 if test "$GCC" = yes; then
7576 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7577 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'
7579 allow_undefined_flag=' -expect_unresolved \*'
7580 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'
7582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7583 hardcode_libdir_separator=:
7586 osf4* | osf5*) # as osf3* with the addition of -msym flag
7587 if test "$GCC" = yes; then
7588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7589 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'
7590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7592 allow_undefined_flag=' -expect_unresolved \*'
7593 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'
7594 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7595 $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'
7597 # Both c and cxx compiler support -rpath directly
7598 hardcode_libdir_flag_spec='-rpath $libdir'
7600 hardcode_libdir_separator=:
7604 no_undefined_flag=' -z text'
7605 if test "$GCC" = yes; then
7607 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7608 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7609 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7612 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7613 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7614 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7616 hardcode_libdir_flag_spec='-R$libdir'
7617 hardcode_shlibpath_var=no
7619 solaris2.[0-5] | solaris2.[0-5].*) ;;
7621 # The compiler driver will combine linker options so we
7622 # cannot just pass the convience library names through
7623 # without $wl, iff we do not link with $LD.
7624 # Luckily, gcc supports the same syntax we need for Sun Studio.
7625 # Supported since Solaris 2.6 (maybe 2.5.1?)
7628 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7630 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' ;;
7633 link_all_deplibs=yes
7637 if test "x$host_vendor" = xsequent; then
7638 # Use $CC to link under sequent, because it throws in some extra .o
7639 # files that make .init and .fini sections work.
7640 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7642 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7644 hardcode_libdir_flag_spec='-L$libdir'
7646 hardcode_minus_L=yes
7647 hardcode_shlibpath_var=no
7651 case $host_vendor in
7653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7654 hardcode_direct=yes # is this really true???
7657 ## LD is ld it makes a PLAMLIB
7658 ## CC just makes a GrossModule.
7659 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7660 reload_cmds='$CC -r -o $output$reload_objs'
7664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7665 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7668 runpath_var='LD_RUN_PATH'
7669 hardcode_shlibpath_var=no
7673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7674 hardcode_shlibpath_var=no
7675 export_dynamic_flag_spec='-Bexport'
7679 if test -d /usr/nec; then
7680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681 hardcode_shlibpath_var=no
7682 runpath_var=LD_RUN_PATH
7683 hardcode_runpath_var=yes
7688 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7689 no_undefined_flag='${wl}-z,text'
7690 archive_cmds_need_lc=no
7691 hardcode_shlibpath_var=no
7692 runpath_var='LD_RUN_PATH'
7694 if test "$GCC" = yes; then
7695 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7696 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7698 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7699 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7703 sysv5* | sco3.2v5* | sco5v6*)
7704 # Note: We can NOT use -z defs as we might desire, because we do not
7705 # link with -lc, and that would cause any symbols used from libc to
7706 # always be unresolved, which means just about no library would
7707 # ever link correctly. If we're not using GNU ld we use -z text
7708 # though, which does catch some bad symbols but isn't as heavy-handed
7710 no_undefined_flag='${wl}-z,text'
7711 allow_undefined_flag='${wl}-z,nodefs'
7712 archive_cmds_need_lc=no
7713 hardcode_shlibpath_var=no
7714 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7715 hardcode_libdir_separator=':'
7716 link_all_deplibs=yes
7717 export_dynamic_flag_spec='${wl}-Bexport'
7718 runpath_var='LD_RUN_PATH'
7720 if test "$GCC" = yes; then
7721 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7722 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7724 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7725 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7731 hardcode_libdir_flag_spec='-L$libdir'
7732 hardcode_shlibpath_var=no
7741 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7742 echo "${ECHO_T}$ld_shlibs" >&6
7743 test "$ld_shlibs" = no && can_build_shared=no
7746 # Do we need to explicitly link libc?
7748 case "x$archive_cmds_need_lc" in
7750 # Assume -lc should be added
7751 archive_cmds_need_lc=yes
7753 if test "$enable_shared" = yes && test "$GCC" = yes; then
7754 case $archive_cmds in
7756 # FIXME: we may have to deal with multi-command sequences.
7759 # Test whether the compiler implicitly links with -lc since on some
7760 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7761 # to ld, don't add -lc before -lgcc.
7762 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7763 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7765 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768 (eval $ac_compile) 2>&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } 2>conftest.err; then
7774 libobjs=conftest.$ac_objext
7776 wl=$lt_prog_compiler_wl
7777 pic_flag=$lt_prog_compiler_pic
7783 lt_save_allow_undefined_flag=$allow_undefined_flag
7784 allow_undefined_flag=
7785 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7786 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }
7791 archive_cmds_need_lc=no
7793 archive_cmds_need_lc=yes
7795 allow_undefined_flag=$lt_save_allow_undefined_flag
7797 cat conftest.err 1>&5
7800 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7801 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7808 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7809 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7811 libname_spec='lib$name'
7819 shlibpath_overrides_runpath=unknown
7821 dynamic_linker="$host_os ld.so"
7822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7823 if test "$GCC" = yes; then
7824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7825 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7826 # if the path contains ";" then we assume it to be the separator
7827 # otherwise default to the standard path separator (i.e. ":") - it is
7828 # assumed that no part of a normal pathname contains ";" but that should
7829 # okay in the real world where ";" in dirpaths is itself problematic.
7830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7837 need_lib_prefix=unknown
7838 hardcode_into_libs=no
7840 # when you set need_version to no, make sure it does not cause -set_version
7841 # flags to be left without arguments
7842 need_version=unknown
7847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7848 shlibpath_var=LIBPATH
7850 # AIX 3 has no versioning support, so we append a major version to the name.
7851 soname_spec='${libname}${release}${shared_ext}$major'
7858 hardcode_into_libs=yes
7859 if test "$host_cpu" = ia64; then
7860 # AIX 5 supports IA64
7861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7862 shlibpath_var=LD_LIBRARY_PATH
7864 # With GCC up to 2.95.x, collect2 would create an import file
7865 # for dependence libraries. The import file would start with
7866 # the line `#! .'. This would cause the generated library to
7867 # depend on `.', always an invalid library. This was fixed in
7868 # development snapshots of GCC prior to 3.0.
7870 aix4 | aix4.[01] | aix4.[01].*)
7871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7873 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7881 # soname into executable. Probably we can add versioning support to
7882 # collect2, so additional links can be useful in future.
7883 if test "$aix_use_runtimelinking" = yes; then
7884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7885 # instead of lib<name>.a to let people know that these are not
7886 # typical AIX shared libraries.
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889 # We preserve .a as extension for shared libraries through AIX4.2
7890 # and later when we are not doing run time linking.
7891 library_names_spec='${libname}${release}.a $libname.a'
7892 soname_spec='${libname}${release}${shared_ext}$major'
7894 shlibpath_var=LIBPATH
7899 library_names_spec='$libname.ixlibrary $libname.a'
7900 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7901 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'
7905 library_names_spec='${libname}${shared_ext}'
7906 dynamic_linker="$host_os ld.so"
7907 shlibpath_var=LIBRARY_PATH
7913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914 soname_spec='${libname}${release}${shared_ext}$major'
7915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7916 shlibpath_var=LD_LIBRARY_PATH
7917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7919 # the default ld.so.conf also contains /usr/contrib/lib and
7920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7921 # libtool to hard-code these into programs
7924 cygwin* | mingw* | pw32*)
7925 version_type=windows
7930 case $GCC,$host_os in
7931 yes,cygwin* | yes,mingw* | yes,pw32*)
7932 library_names_spec='$libname.dll.a'
7933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7934 postinstall_cmds='base_file=`basename \${file}`~
7935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7936 dldir=$destdir/`dirname \$dlpath`~
7937 test -d \$dldir || mkdir -p \$dldir~
7938 $install_prog $dir/$dlname \$dldir/$dlname~
7939 chmod a+x \$dldir/$dlname'
7940 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7941 dlpath=$dir/\$dldll~
7943 shlibpath_overrides_runpath=yes
7947 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7948 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7949 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7952 # MinGW DLLs use traditional 'lib' prefix
7953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7954 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7955 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7956 # It is most probably a Windows format PATH printed by
7957 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7958 # path with ; separators, and with drive letters. We can handle the
7959 # drive letters (cygwin fileutils understands them), so leave them,
7960 # especially as we might pass files found there to a mingw objdump,
7961 # which wouldn't understand a cygwinified path. Ahh.
7962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7968 # pw32 DLLs use 'pw' prefix rather than 'lib'
7969 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7975 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7978 dynamic_linker='Win32 ld.exe'
7979 # FIXME: first we should search . and the directory the executable is in
7983 darwin* | rhapsody*)
7984 dynamic_linker="$host_os dyld"
7988 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7989 soname_spec='${libname}${release}${major}$shared_ext'
7990 shlibpath_overrides_runpath=yes
7991 shlibpath_var=DYLD_LIBRARY_PATH
7992 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7993 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7994 if test "$GCC" = yes; then
7995 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"`
7997 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8007 soname_spec='${libname}${release}${shared_ext}$major'
8008 shlibpath_var=LD_LIBRARY_PATH
8019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8020 soname_spec='${libname}${release}${shared_ext}$major'
8021 shlibpath_var=LD_LIBRARY_PATH
8022 shlibpath_overrides_runpath=no
8023 hardcode_into_libs=yes
8024 dynamic_linker='GNU ld.so'
8027 freebsd* | dragonfly*)
8028 # DragonFly does not have aout. When/if they implement a new
8029 # versioning mechanism, adjust this.
8030 if test -x /usr/bin/objformat; then
8031 objformat=`/usr/bin/objformat`
8034 freebsd[123]*) objformat=aout ;;
8038 version_type=freebsd-$objformat
8039 case $version_type in
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8050 shlibpath_var=LD_LIBRARY_PATH
8053 shlibpath_overrides_runpath=yes
8055 freebsd3.[01]* | freebsdelf3.[01]*)
8056 shlibpath_overrides_runpath=yes
8057 hardcode_into_libs=yes
8059 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8060 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8061 shlibpath_overrides_runpath=no
8062 hardcode_into_libs=yes
8064 freebsd*) # from 4.6 on
8065 shlibpath_overrides_runpath=yes
8066 hardcode_into_libs=yes
8075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8076 soname_spec='${libname}${release}${shared_ext}$major'
8077 shlibpath_var=LD_LIBRARY_PATH
8078 hardcode_into_libs=yes
8081 hpux9* | hpux10* | hpux11*)
8082 # Give a soname corresponding to the major version so that dld.sl refuses to
8083 # link against other versions.
8090 hardcode_into_libs=yes
8091 dynamic_linker="$host_os dld.so"
8092 shlibpath_var=LD_LIBRARY_PATH
8093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095 soname_spec='${libname}${release}${shared_ext}$major'
8096 if test "X$HPUX_IA64_MODE" = X32; then
8097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8105 hardcode_into_libs=yes
8106 dynamic_linker="$host_os dld.sl"
8107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8110 soname_spec='${libname}${release}${shared_ext}$major'
8111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8116 dynamic_linker="$host_os dld.sl"
8117 shlibpath_var=SHLIB_PATH
8118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8120 soname_spec='${libname}${release}${shared_ext}$major'
8123 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8124 postinstall_cmds='chmod 555 $lib'
8131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8132 soname_spec='${libname}${release}${shared_ext}$major'
8133 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8134 shlibpath_var=LD_LIBRARY_PATH
8135 shlibpath_overrides_runpath=no
8136 hardcode_into_libs=yes
8139 irix5* | irix6* | nonstopux*)
8141 nonstopux*) version_type=nonstopux ;;
8143 if test "$lt_cv_prog_gnu_ld" = yes; then
8151 soname_spec='${libname}${release}${shared_ext}$major'
8152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8154 irix5* | nonstopux*)
8158 case $LD in # libtool.m4 will add one of these switches to LD
8159 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8160 libsuff= shlibsuff= libmagic=32-bit;;
8161 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8162 libsuff=32 shlibsuff=N32 libmagic=N32;;
8163 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8164 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8165 *) libsuff= shlibsuff= libmagic=never-match;;
8169 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8170 shlibpath_overrides_runpath=no
8171 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8172 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8173 hardcode_into_libs=yes
8176 # No shared lib support for Linux oldld, aout, or coff.
8177 linux*oldld* | linux*aout* | linux*coff*)
8181 # This must be Linux ELF.
8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8187 soname_spec='${libname}${release}${shared_ext}$major'
8188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8189 shlibpath_var=LD_LIBRARY_PATH
8190 shlibpath_overrides_runpath=no
8191 # This implies no fast_install, which is unacceptable.
8192 # Some rework will be needed to allow for fast_install
8193 # before this can be enabled.
8194 hardcode_into_libs=yes
8196 # find out which ABI we are using
8199 x86_64*|s390x*|powerpc64*)
8200 echo '#line 8200 "configure"' > conftest.$ac_ext
8201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8202 (eval $ac_compile) 2>&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; then
8206 case `/usr/bin/file conftest.$ac_objext` in
8209 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8217 # Append ld.so.conf contents to the search path
8218 if test -f /etc/ld.so.conf; then
8219 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' ' '`
8220 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8223 # We used to test for /lib/ld.so.1 and disable shared libraries on
8224 # powerpc, because MkLinux only supported shared libraries with the
8225 # GNU dynamic linker. Since this was broken with cross compilers,
8226 # most powerpc-linux boxes support dynamic linking these days and
8227 # people can always --disable-shared, the test was removed, and we
8228 # assume the GNU/Linux dynamic linker is in use.
8229 dynamic_linker='GNU/Linux ld.so'
8236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8237 soname_spec='${libname}${release}${shared_ext}$major'
8238 shlibpath_var=LD_LIBRARY_PATH
8239 shlibpath_overrides_runpath=no
8240 hardcode_into_libs=yes
8241 dynamic_linker='GNU ld.so'
8248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8251 dynamic_linker='NetBSD (a.out) ld.so'
8253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8254 soname_spec='${libname}${release}${shared_ext}$major'
8255 dynamic_linker='NetBSD ld.elf_so'
8257 shlibpath_var=LD_LIBRARY_PATH
8258 shlibpath_overrides_runpath=yes
8259 hardcode_into_libs=yes
8264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8265 shlibpath_var=LD_LIBRARY_PATH
8266 shlibpath_overrides_runpath=yes
8273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8274 soname_spec='${libname}${release}${shared_ext}$major'
8275 shlibpath_var=LD_LIBRARY_PATH
8276 shlibpath_overrides_runpath=yes
8281 sys_lib_dlsearch_path_spec="/usr/lib"
8283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8286 *) need_version=no ;;
8288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8290 shlibpath_var=LD_LIBRARY_PATH
8291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8293 openbsd2.[89] | openbsd2.[89].*)
8294 shlibpath_overrides_runpath=no
8297 shlibpath_overrides_runpath=yes
8301 shlibpath_overrides_runpath=yes
8306 libname_spec='$name'
8309 library_names_spec='$libname${shared_ext} $libname.a'
8310 dynamic_linker='OS/2 ld.exe'
8311 shlibpath_var=LIBPATH
8314 osf3* | osf4* | osf5*)
8318 soname_spec='${libname}${release}${shared_ext}$major'
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8320 shlibpath_var=LD_LIBRARY_PATH
8321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8330 soname_spec='${libname}${release}${shared_ext}$major'
8331 shlibpath_var=LD_LIBRARY_PATH
8332 shlibpath_overrides_runpath=yes
8333 hardcode_into_libs=yes
8334 # ldd complains unless libraries are executable
8335 postinstall_cmds='chmod +x $lib'
8340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8341 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8342 shlibpath_var=LD_LIBRARY_PATH
8343 shlibpath_overrides_runpath=yes
8344 if test "$with_gnu_ld" = yes; then
8352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8353 soname_spec='${libname}${release}${shared_ext}$major'
8354 shlibpath_var=LD_LIBRARY_PATH
8355 case $host_vendor in
8357 shlibpath_overrides_runpath=no
8359 export_dynamic_flag_spec='${wl}-Blargedynsym'
8360 runpath_var=LD_RUN_PATH
8368 shlibpath_overrides_runpath=no
8369 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8375 if test -d /usr/nec ;then
8377 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8378 soname_spec='$libname${shared_ext}.$major'
8379 shlibpath_var=LD_LIBRARY_PATH
8383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8384 version_type=freebsd-elf
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8388 soname_spec='${libname}${release}${shared_ext}$major'
8389 shlibpath_var=LD_LIBRARY_PATH
8390 hardcode_into_libs=yes
8391 if test "$with_gnu_ld" = yes; then
8392 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8393 shlibpath_overrides_runpath=no
8395 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8396 shlibpath_overrides_runpath=yes
8399 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8403 sys_lib_dlsearch_path_spec='/usr/lib'
8408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8409 soname_spec='${libname}${release}${shared_ext}$major'
8410 shlibpath_var=LD_LIBRARY_PATH
8417 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8418 echo "${ECHO_T}$dynamic_linker" >&6
8419 test "$dynamic_linker" = no && can_build_shared=no
8421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8422 if test "$GCC" = yes; then
8423 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8426 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8427 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8429 if test -n "$hardcode_libdir_flag_spec" || \
8430 test -n "$runpath_var" || \
8431 test "X$hardcode_automatic" = "Xyes" ; then
8433 # We can hardcode non-existant directories.
8434 if test "$hardcode_direct" != no &&
8435 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8436 # have to relink, otherwise we might link with an installed library
8437 # when we should be linking with a yet-to-be-installed one
8438 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8439 test "$hardcode_minus_L" != no; then
8440 # Linking always hardcodes the temporary library directory.
8441 hardcode_action=relink
8443 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8444 hardcode_action=immediate
8447 # We cannot hardcode anything, or else we can only hardcode existing
8449 hardcode_action=unsupported
8451 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8452 echo "${ECHO_T}$hardcode_action" >&6
8454 if test "$hardcode_action" = relink; then
8455 # Fast installation is not supported
8456 enable_fast_install=no
8457 elif test "$shlibpath_overrides_runpath" = yes ||
8458 test "$enable_shared" = no; then
8459 # Fast installation is not necessary
8460 enable_fast_install=needless
8465 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8466 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8467 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8468 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8469 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8470 echo "$as_me:$LINENO: result: yes" >&5
8471 echo "${ECHO_T}yes" >&6
8473 # FIXME - insert some real tests, host_os isn't really good enough
8476 if test -n "$STRIP" ; then
8477 striplib="$STRIP -x"
8478 echo "$as_me:$LINENO: result: yes" >&5
8479 echo "${ECHO_T}yes" >&6
8481 echo "$as_me:$LINENO: result: no" >&5
8482 echo "${ECHO_T}no" >&6
8486 echo "$as_me:$LINENO: result: no" >&5
8487 echo "${ECHO_T}no" >&6
8492 if test "x$enable_dlopen" != xyes; then
8493 enable_dlopen=unknown
8494 enable_dlopen_self=unknown
8495 enable_dlopen_self_static=unknown
8502 lt_cv_dlopen="load_add_on"
8504 lt_cv_dlopen_self=yes
8508 lt_cv_dlopen="LoadLibrary"
8513 lt_cv_dlopen="dlopen"
8518 # if libdl is installed we need to link against it
8519 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 ac_check_lib_save_LIBS=$LIBS
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8533 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>conftest.er1
8552 grep -v '^ *+' conftest.er1 >conftest.err
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag"
8558 || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 ac_cv_lib_dl_dlopen=yes
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 ac_cv_lib_dl_dlopen=no
8577 rm -f conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_lib_save_LIBS
8581 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8582 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8583 if test $ac_cv_lib_dl_dlopen = yes; then
8584 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8589 lt_cv_dlopen_self=yes
8596 echo "$as_me:$LINENO: checking for shl_load" >&5
8597 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8598 if test "${ac_cv_func_shl_load+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8609 #define shl_load innocuous_shl_load
8611 /* System header to define __stub macros and hopefully few prototypes,
8612 which can conflict with char shl_load (); below.
8613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8614 <limits.h> exists even on freestanding compilers. */
8617 # include <limits.h>
8619 # include <assert.h>
8624 /* Override any gcc2 internal prototype to avoid an error. */
8629 /* We use char because int might match the return type of a gcc2
8630 builtin and then its argument prototype would still apply. */
8632 /* The GNU C library defines this for functions which it implements
8633 to always fail with ENOSYS. Some functions are actually named
8634 something starting with __ and the normal name is an alias. */
8635 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8638 char (*f) () = shl_load;
8647 return f != shl_load;
8652 rm -f conftest.$ac_objext conftest$ac_exeext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654 (eval $ac_link) 2>conftest.er1
8656 grep -v '^ *+' conftest.er1 >conftest.err
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } &&
8661 { ac_try='test -z "$ac_c_werror_flag"
8662 || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest$ac_exeext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_func_shl_load=yes
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8679 ac_cv_func_shl_load=no
8681 rm -f conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
8684 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8685 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8686 if test $ac_cv_func_shl_load = yes; then
8687 lt_cv_dlopen="shl_load"
8689 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8690 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8691 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 ac_check_lib_save_LIBS=$LIBS
8696 cat >conftest.$ac_ext <<_ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8703 /* Override any gcc2 internal prototype to avoid an error. */
8707 /* We use char because int might match the return type of a gcc2
8708 builtin and then its argument prototype would still apply. */
8718 rm -f conftest.$ac_objext conftest$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720 (eval $ac_link) 2>conftest.er1
8722 grep -v '^ *+' conftest.er1 >conftest.err
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -z "$ac_c_werror_flag"
8728 || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest$ac_exeext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_lib_dld_shl_load=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_cv_lib_dld_shl_load=no
8747 rm -f conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 LIBS=$ac_check_lib_save_LIBS
8751 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8752 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8753 if test $ac_cv_lib_dld_shl_load = yes; then
8754 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8756 echo "$as_me:$LINENO: checking for dlopen" >&5
8757 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8758 if test "${ac_cv_func_dlopen+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 cat >conftest.$ac_ext <<_ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8769 #define dlopen innocuous_dlopen
8771 /* System header to define __stub macros and hopefully few prototypes,
8772 which can conflict with char dlopen (); below.
8773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774 <limits.h> exists even on freestanding compilers. */
8777 # include <limits.h>
8779 # include <assert.h>
8784 /* Override any gcc2 internal prototype to avoid an error. */
8789 /* We use char because int might match the return type of a gcc2
8790 builtin and then its argument prototype would still apply. */
8792 /* The GNU C library defines this for functions which it implements
8793 to always fail with ENOSYS. Some functions are actually named
8794 something starting with __ and the normal name is an alias. */
8795 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8798 char (*f) () = dlopen;
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>conftest.er1
8816 grep -v '^ *+' conftest.er1 >conftest.err
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag"
8822 || test ! -s conftest.err'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; } &&
8828 { ac_try='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_cv_func_dlopen=yes
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 ac_cv_func_dlopen=no
8841 rm -f conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8844 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8845 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8846 if test $ac_cv_func_dlopen = yes; then
8847 lt_cv_dlopen="dlopen"
8849 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8850 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 ac_check_lib_save_LIBS=$LIBS
8856 cat >conftest.$ac_ext <<_ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8863 /* Override any gcc2 internal prototype to avoid an error. */
8867 /* We use char because int might match the return type of a gcc2
8868 builtin and then its argument prototype would still apply. */
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880 (eval $ac_link) 2>conftest.er1
8882 grep -v '^ *+' conftest.er1 >conftest.err
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } &&
8887 { ac_try='test -z "$ac_c_werror_flag"
8888 || test ! -s conftest.err'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; } &&
8894 { ac_try='test -s conftest$ac_exeext'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 ac_cv_lib_dl_dlopen=yes
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8905 ac_cv_lib_dl_dlopen=no
8907 rm -f conftest.err conftest.$ac_objext \
8908 conftest$ac_exeext conftest.$ac_ext
8909 LIBS=$ac_check_lib_save_LIBS
8911 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8912 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8913 if test $ac_cv_lib_dl_dlopen = yes; then
8914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8916 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8917 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8918 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 ac_check_lib_save_LIBS=$LIBS
8923 cat >conftest.$ac_ext <<_ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8930 /* Override any gcc2 internal prototype to avoid an error. */
8934 /* We use char because int might match the return type of a gcc2
8935 builtin and then its argument prototype would still apply. */
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8947 (eval $ac_link) 2>conftest.er1
8949 grep -v '^ *+' conftest.er1 >conftest.err
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag"
8955 || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest$ac_exeext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_lib_svld_dlopen=yes
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 ac_cv_lib_svld_dlopen=no
8974 rm -f conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 LIBS=$ac_check_lib_save_LIBS
8978 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8979 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8980 if test $ac_cv_lib_svld_dlopen = yes; then
8981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8983 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8984 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8985 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 ac_check_lib_save_LIBS=$LIBS
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8997 /* Override any gcc2 internal prototype to avoid an error. */
9001 /* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>conftest.er1
9016 grep -v '^ *+' conftest.er1 >conftest.err
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -z "$ac_c_werror_flag"
9022 || test ! -s conftest.err'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; } &&
9028 { ac_try='test -s conftest$ac_exeext'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; }; then
9034 ac_cv_lib_dld_dld_link=yes
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9039 ac_cv_lib_dld_dld_link=no
9041 rm -f conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
9043 LIBS=$ac_check_lib_save_LIBS
9045 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9046 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9047 if test $ac_cv_lib_dld_dld_link = yes; then
9048 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9069 if test "x$lt_cv_dlopen" != xno; then
9075 case $lt_cv_dlopen in
9077 save_CPPFLAGS="$CPPFLAGS"
9078 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9080 save_LDFLAGS="$LDFLAGS"
9081 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9084 LIBS="$lt_cv_dlopen_libs $LIBS"
9086 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9087 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9088 if test "${lt_cv_dlopen_self+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 if test "$cross_compiling" = yes; then :
9092 lt_cv_dlopen_self=cross
9094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9095 lt_status=$lt_dlunknown
9096 cat > conftest.$ac_ext <<EOF
9097 #line 9097 "configure"
9098 #include "confdefs.h"
9107 # define LT_DLGLOBAL RTLD_GLOBAL
9110 # define LT_DLGLOBAL DL_GLOBAL
9112 # define LT_DLGLOBAL 0
9116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9117 find out it does not work in some platform. */
9118 #ifndef LT_DLLAZY_OR_NOW
9120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9123 # define LT_DLLAZY_OR_NOW DL_LAZY
9126 # define LT_DLLAZY_OR_NOW RTLD_NOW
9129 # define LT_DLLAZY_OR_NOW DL_NOW
9131 # define LT_DLLAZY_OR_NOW 0
9139 extern "C" void exit (int);
9142 void fnord() { int i=42;}
9145 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9146 int status = $lt_dlunknown;
9150 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9151 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9152 /* dlclose (self); */
9160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161 (eval $ac_link) 2>&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9165 (./conftest; exit; ) >&5 2>/dev/null
9168 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9169 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9170 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9173 # compilation failed
9174 lt_cv_dlopen_self=no
9181 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9182 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9184 if test "x$lt_cv_dlopen_self" = xyes; then
9185 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9186 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9187 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9188 if test "${lt_cv_dlopen_self_static+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 if test "$cross_compiling" = yes; then :
9192 lt_cv_dlopen_self_static=cross
9194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9195 lt_status=$lt_dlunknown
9196 cat > conftest.$ac_ext <<EOF
9197 #line 9197 "configure"
9198 #include "confdefs.h"
9207 # define LT_DLGLOBAL RTLD_GLOBAL
9210 # define LT_DLGLOBAL DL_GLOBAL
9212 # define LT_DLGLOBAL 0
9216 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9217 find out it does not work in some platform. */
9218 #ifndef LT_DLLAZY_OR_NOW
9220 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9223 # define LT_DLLAZY_OR_NOW DL_LAZY
9226 # define LT_DLLAZY_OR_NOW RTLD_NOW
9229 # define LT_DLLAZY_OR_NOW DL_NOW
9231 # define LT_DLLAZY_OR_NOW 0
9239 extern "C" void exit (int);
9242 void fnord() { int i=42;}
9245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9246 int status = $lt_dlunknown;
9250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9251 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9252 /* dlclose (self); */
9260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261 (eval $ac_link) 2>&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9265 (./conftest; exit; ) >&5 2>/dev/null
9268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9273 # compilation failed
9274 lt_cv_dlopen_self_static=no
9281 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9282 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9285 CPPFLAGS="$save_CPPFLAGS"
9286 LDFLAGS="$save_LDFLAGS"
9291 case $lt_cv_dlopen_self in
9292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9293 *) enable_dlopen_self=unknown ;;
9296 case $lt_cv_dlopen_self_static in
9297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9298 *) enable_dlopen_self_static=unknown ;;
9303 # Report which library types will actually be built
9304 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9305 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9306 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9307 echo "${ECHO_T}$can_build_shared" >&6
9309 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9310 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9311 test "$can_build_shared" = "no" && enable_shared=no
9313 # On AIX, shared libraries and static libraries use the same namespace, and
9314 # are all built from PIC.
9317 test "$enable_shared" = yes && enable_static=no
9318 if test -n "$RANLIB"; then
9319 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9320 postinstall_cmds='$RANLIB $lib'
9325 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9326 test "$enable_shared" = yes && enable_static=no
9330 echo "$as_me:$LINENO: result: $enable_shared" >&5
9331 echo "${ECHO_T}$enable_shared" >&6
9333 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9334 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9335 # Make sure either enable_shared or enable_static is yes.
9336 test "$enable_shared" = yes || enable_static=yes
9337 echo "$as_me:$LINENO: result: $enable_static" >&5
9338 echo "${ECHO_T}$enable_static" >&6
9340 # The else clause should only fire when bootstrapping the
9341 # libtool distribution, otherwise you forgot to ship ltmain.sh
9342 # with your package, and you will get complaints that there are
9343 # no rules to generate ltmain.sh.
9344 if test -f "$ltmain"; then
9345 # See if we are running on zsh, and set the options which allow our commands through
9346 # without removal of \ escapes.
9347 if test -n "${ZSH_VERSION+set}" ; then
9348 setopt NO_GLOB_SUBST
9350 # Now quote all the things that may contain metacharacters while being
9351 # careful not to overquote the AC_SUBSTed values. We take copies of the
9352 # variables and quote the copies for generation of the libtool script.
9353 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9355 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9356 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9357 deplibs_check_method reload_flag reload_cmds need_locks \
9358 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9359 lt_cv_sys_global_symbol_to_c_name_address \
9360 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9361 old_postinstall_cmds old_postuninstall_cmds \
9365 lt_prog_compiler_wl \
9366 lt_prog_compiler_pic \
9367 lt_prog_compiler_static \
9368 lt_prog_compiler_no_builtin_flag \
9369 export_dynamic_flag_spec \
9370 thread_safe_flag_spec \
9371 whole_archive_flag_spec \
9372 enable_shared_with_static_runtimes \
9374 old_archive_from_new_cmds \
9379 compiler_lib_search_path \
9381 archive_expsym_cmds \
9383 postuninstall_cmds \
9384 old_archive_from_expsyms_cmds \
9385 allow_undefined_flag \
9387 export_symbols_cmds \
9388 hardcode_libdir_flag_spec \
9389 hardcode_libdir_flag_spec_ld \
9390 hardcode_libdir_separator \
9391 hardcode_automatic \
9393 module_expsym_cmds \
9394 lt_cv_prog_compiler_c_o \
9399 old_archive_cmds | \
9400 old_archive_from_new_cmds | \
9402 archive_expsym_cmds | \
9404 module_expsym_cmds | \
9405 old_archive_from_expsyms_cmds | \
9406 export_symbols_cmds | \
9407 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9408 postinstall_cmds | postuninstall_cmds | \
9409 old_postinstall_cmds | old_postuninstall_cmds | \
9410 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9411 # Double-quote double-evaled strings.
9412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9421 *'\$0 --fallback-echo"')
9422 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9427 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9429 { echo "$as_me:$LINENO: creating $ofile" >&5
9430 echo "$as_me: creating $ofile" >&6;}
9432 cat <<__EOF__ >> "$cfgfile"
9435 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9436 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9437 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9439 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9440 # Free Software Foundation, Inc.
9442 # This file is part of GNU Libtool:
9443 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9445 # This program is free software; you can redistribute it and/or modify
9446 # it under the terms of the GNU General Public License as published by
9447 # the Free Software Foundation; either version 2 of the License, or
9448 # (at your option) any later version.
9450 # This program is distributed in the hope that it will be useful, but
9451 # WITHOUT ANY WARRANTY; without even the implied warranty of
9452 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9453 # General Public License for more details.
9455 # You should have received a copy of the GNU General Public License
9456 # along with this program; if not, write to the Free Software
9457 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9459 # As a special exception to the GNU General Public License, if you
9460 # distribute this file as part of a program that contains a
9461 # configuration script generated by Autoconf, you may include it under
9462 # the same distribution terms that you use for the rest of that program.
9464 # A sed program that does not truncate output.
9467 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9468 Xsed="$SED -e 1s/^X//"
9470 # The HP-UX ksh and POSIX shell print the target directory to stdout
9472 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9474 # The names of the tagged configurations supported by this script.
9477 # ### BEGIN LIBTOOL CONFIG
9479 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9481 # Shell to use when invoking shell scripts.
9484 # Whether or not to build shared libraries.
9485 build_libtool_libs=$enable_shared
9487 # Whether or not to build static libraries.
9488 build_old_libs=$enable_static
9490 # Whether or not to add -lc for building shared libraries.
9491 build_libtool_need_lc=$archive_cmds_need_lc
9493 # Whether or not to disallow shared libs when runtime libs are static
9494 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9496 # Whether or not to optimize for fast installation.
9497 fast_install=$enable_fast_install
9500 host_alias=$host_alias
9505 build_alias=$build_alias
9509 # An echo program that does not interpret backslashes.
9514 AR_FLAGS=$lt_AR_FLAGS
9519 # LTCC compiler flags.
9520 LTCFLAGS=$lt_LTCFLAGS
9522 # A language-specific compiler.
9525 # Is the compiler the GNU C compiler?
9531 # The linker used to build libraries.
9534 # Whether we need hard or soft links.
9537 # A BSD-compatible nm program.
9540 # A symbol stripping program
9543 # Used to examine libraries when file_magic_cmd begins "file"
9544 MAGIC_CMD=$MAGIC_CMD
9546 # Used on cygwin: DLL creation program.
9549 # Used on cygwin: object dumper.
9552 # Used on cygwin: assembler.
9555 # The name of the directory that contains temporary libtool files.
9558 # How to create reloadable object files.
9559 reload_flag=$lt_reload_flag
9560 reload_cmds=$lt_reload_cmds
9562 # How to pass a linker flag through the compiler.
9563 wl=$lt_lt_prog_compiler_wl
9565 # Object file suffix (normally "o").
9568 # Old archive suffix (normally "a").
9571 # Shared library suffix (normally ".so").
9572 shrext_cmds='$shrext_cmds'
9574 # Executable file suffix (normally "").
9577 # Additional compiler flags for building library objects.
9578 pic_flag=$lt_lt_prog_compiler_pic
9581 # What is the maximum length of a command?
9582 max_cmd_len=$lt_cv_sys_max_cmd_len
9584 # Does compiler simultaneously support -c and -o options?
9585 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9587 # Must we lock files when doing compilation?
9588 need_locks=$lt_need_locks
9590 # Do we need the lib prefix for modules?
9591 need_lib_prefix=$need_lib_prefix
9593 # Do we need a version for libraries?
9594 need_version=$need_version
9596 # Whether dlopen is supported.
9597 dlopen_support=$enable_dlopen
9599 # Whether dlopen of programs is supported.
9600 dlopen_self=$enable_dlopen_self
9602 # Whether dlopen of statically linked programs is supported.
9603 dlopen_self_static=$enable_dlopen_self_static
9605 # Compiler flag to prevent dynamic linking.
9606 link_static_flag=$lt_lt_prog_compiler_static
9608 # Compiler flag to turn off builtin functions.
9609 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9611 # Compiler flag to allow reflexive dlopens.
9612 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9614 # Compiler flag to generate shared objects directly from archives.
9615 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9617 # Compiler flag to generate thread-safe objects.
9618 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9620 # Library versioning type.
9621 version_type=$version_type
9623 # Format of library name prefix.
9624 libname_spec=$lt_libname_spec
9626 # List of archive names. First name is the real one, the rest are links.
9627 # The last name is the one that the linker finds with -lNAME.
9628 library_names_spec=$lt_library_names_spec
9630 # The coded name of the library, if different from the real name.
9631 soname_spec=$lt_soname_spec
9633 # Commands used to build and install an old-style archive.
9635 old_archive_cmds=$lt_old_archive_cmds
9636 old_postinstall_cmds=$lt_old_postinstall_cmds
9637 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9639 # Create an old-style archive from a shared archive.
9640 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9642 # Create a temporary old-style archive to link instead of a shared archive.
9643 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9645 # Commands used to build and install a shared archive.
9646 archive_cmds=$lt_archive_cmds
9647 archive_expsym_cmds=$lt_archive_expsym_cmds
9648 postinstall_cmds=$lt_postinstall_cmds
9649 postuninstall_cmds=$lt_postuninstall_cmds
9651 # Commands used to build a loadable module (assumed same as above if empty)
9652 module_cmds=$lt_module_cmds
9653 module_expsym_cmds=$lt_module_expsym_cmds
9655 # Commands to strip libraries.
9656 old_striplib=$lt_old_striplib
9657 striplib=$lt_striplib
9659 # Dependencies to place before the objects being linked to create a
9661 predep_objects=$lt_predep_objects
9663 # Dependencies to place after the objects being linked to create a
9665 postdep_objects=$lt_postdep_objects
9667 # Dependencies to place before the objects being linked to create a
9671 # Dependencies to place after the objects being linked to create a
9673 postdeps=$lt_postdeps
9675 # The library search path used internally by the compiler when linking
9677 compiler_lib_search_path=$lt_compiler_lib_search_path
9679 # Method to check whether dependent libraries are shared objects.
9680 deplibs_check_method=$lt_deplibs_check_method
9682 # Command to use when deplibs_check_method == file_magic.
9683 file_magic_cmd=$lt_file_magic_cmd
9685 # Flag that allows shared libraries with undefined symbols to be built.
9686 allow_undefined_flag=$lt_allow_undefined_flag
9688 # Flag that forces no undefined symbols.
9689 no_undefined_flag=$lt_no_undefined_flag
9691 # Commands used to finish a libtool library installation in a directory.
9692 finish_cmds=$lt_finish_cmds
9694 # Same as above, but a single script fragment to be evaled but not shown.
9695 finish_eval=$lt_finish_eval
9697 # Take the output of nm and produce a listing of raw symbols and C names.
9698 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9700 # Transform the output of nm in a proper C declaration
9701 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9703 # Transform the output of nm in a C name address pair
9704 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9706 # This is the shared library runtime path variable.
9707 runpath_var=$runpath_var
9709 # This is the shared library path variable.
9710 shlibpath_var=$shlibpath_var
9712 # Is shlibpath searched before the hard-coded library search path?
9713 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9715 # How to hardcode a shared library path into an executable.
9716 hardcode_action=$hardcode_action
9718 # Whether we should hardcode library paths into libraries.
9719 hardcode_into_libs=$hardcode_into_libs
9721 # Flag to hardcode \$libdir into a binary during linking.
9722 # This must work even if \$libdir does not exist.
9723 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9725 # If ld is used when linking, flag to hardcode \$libdir into
9726 # a binary during linking. This must work even if \$libdir does
9728 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9730 # Whether we need a single -rpath flag with a separated argument.
9731 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9733 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9735 hardcode_direct=$hardcode_direct
9737 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9739 hardcode_minus_L=$hardcode_minus_L
9741 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9742 # the resulting binary.
9743 hardcode_shlibpath_var=$hardcode_shlibpath_var
9745 # Set to yes if building a shared library automatically hardcodes DIR into the library
9746 # and all subsequent libraries and executables linked against it.
9747 hardcode_automatic=$hardcode_automatic
9749 # Variables whose values should be saved in libtool wrapper scripts and
9750 # restored at relink time.
9751 variables_saved_for_relink="$variables_saved_for_relink"
9753 # Whether libtool must link a program against all its dependency libraries.
9754 link_all_deplibs=$link_all_deplibs
9756 # Compile-time system search path for libraries
9757 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9759 # Run-time system search path for libraries
9760 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9762 # Fix the shell variable \$srcfile for the compiler.
9763 fix_srcfile_path="$fix_srcfile_path"
9765 # Set to yes if exported symbols are required.
9766 always_export_symbols=$always_export_symbols
9768 # The commands to list exported symbols.
9769 export_symbols_cmds=$lt_export_symbols_cmds
9771 # The commands to extract the exported symbol list from a shared archive.
9772 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9774 # Symbols that should not be listed in the preloaded symbols.
9775 exclude_expsyms=$lt_exclude_expsyms
9777 # Symbols that must always be exported.
9778 include_expsyms=$lt_include_expsyms
9780 # ### END LIBTOOL CONFIG
9787 cat <<\EOF >> "$cfgfile"
9789 # AIX sometimes has problems with the GCC collect2 program. For some
9790 # reason, if we set the COLLECT_NAMES environment variable, the problems
9791 # vanish in a puff of smoke.
9792 if test "X${COLLECT_NAMES+set}" != Xset; then
9794 export COLLECT_NAMES
9800 # We use sed instead of cat because bash on DJGPP gets confused if
9801 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9802 # text mode, it properly converts lines to CR/LF. This bash problem
9803 # is reportedly fixed, but why not run on old versions too?
9804 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9806 mv -f "$cfgfile" "$ofile" || \
9807 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9811 # If there is no Makefile yet, we rely on a make rule to execute
9812 # `config.status --recheck' to rerun these tests and create the
9813 # libtool script then.
9814 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9815 if test -f "$ltmain_in"; then
9816 test -f Makefile && make "$ltmain"
9822 ac_cpp='$CPP $CPPFLAGS'
9823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9830 # Check whether --with-tags or --without-tags was given.
9831 if test "${with_tags+set}" = set; then
9832 withval="$with_tags"
9836 if test -f "$ltmain" && test -n "$tagnames"; then
9837 if test ! -f "${ofile}"; then
9838 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9839 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9842 if test -z "$LTCC"; then
9843 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9844 if test -z "$LTCC"; then
9845 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9846 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9849 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9852 if test -z "$LTCFLAGS"; then
9853 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9856 # Extract list of available tagged configurations in $ofile.
9857 # Note that this assumes the entire list is on one line.
9858 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9861 for tagname in $tagnames; do
9863 # Check whether tagname contains only valid characters
9864 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9866 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9867 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9868 { (exit 1); exit 1; }; }
9872 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9874 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9875 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9876 { (exit 1); exit 1; }; }
9879 # Update the list of available tags.
9880 if test -n "$tagname"; then
9881 echo appending configuration tag \"$tagname\" to $ofile
9885 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9886 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9887 (test "X$CXX" != "Xg++"))) ; then
9889 ac_cpp='$CXXCPP $CPPFLAGS'
9890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9897 archive_cmds_need_lc_CXX=no
9898 allow_undefined_flag_CXX=
9899 always_export_symbols_CXX=no
9900 archive_expsym_cmds_CXX=
9901 export_dynamic_flag_spec_CXX=
9902 hardcode_direct_CXX=no
9903 hardcode_libdir_flag_spec_CXX=
9904 hardcode_libdir_flag_spec_ld_CXX=
9905 hardcode_libdir_separator_CXX=
9906 hardcode_minus_L_CXX=no
9907 hardcode_shlibpath_var_CXX=unsupported
9908 hardcode_automatic_CXX=no
9910 module_expsym_cmds_CXX=
9911 link_all_deplibs_CXX=unknown
9912 old_archive_cmds_CXX=$old_archive_cmds
9913 no_undefined_flag_CXX=
9914 whole_archive_flag_spec_CXX=
9915 enable_shared_with_static_runtimes_CXX=no
9917 # Dependencies to place before and after the object being linked:
9919 postdep_objects_CXX=
9922 compiler_lib_search_path_CXX=
9924 # Source file extension for C++ test sources.
9927 # Object file extension for compiled C++ test sources.
9931 # Code to be used in simple compile tests
9932 lt_simple_compile_test_code="int some_variable = 0;\n"
9934 # Code to be used in simple link tests
9935 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9937 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9939 # If no C compiler was specified, use CC.
9942 # If no C compiler flags were specified, use CFLAGS.
9943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9945 # Allow CC to be a program name with arguments.
9949 # save warnings/boilerplate of simple test code
9950 ac_outfile=conftest.$ac_objext
9951 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9952 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9953 _lt_compiler_boilerplate=`cat conftest.err`
9956 ac_outfile=conftest.$ac_objext
9957 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9958 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9959 _lt_linker_boilerplate=`cat conftest.err`
9963 # Allow CC to be a program name with arguments.
9968 lt_save_with_gnu_ld=$with_gnu_ld
9969 lt_save_path_LD=$lt_cv_path_LD
9970 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9971 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9973 $as_unset lt_cv_prog_gnu_ld
9975 if test -n "${lt_cv_path_LDCXX+set}"; then
9976 lt_cv_path_LD=$lt_cv_path_LDCXX
9978 $as_unset lt_cv_path_LD
9980 test -z "${LDCXX+set}" || LD=$LDCXX
9984 for cc_temp in $compiler""; do
9986 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9987 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9992 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9995 # We don't want -fno-exception wen compiling C++ code, so set the
9996 # no_builtin_flag separately
9997 if test "$GXX" = yes; then
9998 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10000 lt_prog_compiler_no_builtin_flag_CXX=
10003 if test "$GXX" = yes; then
10004 # Set up default GNU C++ configuration
10007 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10008 if test "${with_gnu_ld+set}" = set; then
10009 withval="$with_gnu_ld"
10010 test "$withval" = no || with_gnu_ld=yes
10015 if test "$GCC" = yes; then
10016 # Check if gcc -print-prog-name=ld gives a path.
10017 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10018 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10021 # gcc leaves a trailing carriage return which upsets mingw
10022 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10024 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10027 # Accept absolute paths.
10029 re_direlt='/[^/][^/]*/\.\./'
10030 # Canonicalize the pathname of ld
10031 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10032 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10033 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10035 test -z "$LD" && LD="$ac_prog"
10038 # If it fails, then pretend we aren't using GCC.
10042 # If it is relative, then search for the first ld in PATH.
10043 with_gnu_ld=unknown
10046 elif test "$with_gnu_ld" = yes; then
10047 echo "$as_me:$LINENO: checking for GNU ld" >&5
10048 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10050 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10051 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10053 if test "${lt_cv_path_LD+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 if test -z "$LD"; then
10057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10058 for ac_dir in $PATH; do
10060 test -z "$ac_dir" && ac_dir=.
10061 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10062 lt_cv_path_LD="$ac_dir/$ac_prog"
10063 # Check to see if the program is GNU ld. I'd rather use --version,
10064 # but apparently some variants of GNU ld only accept -v.
10065 # Break only if it was the GNU/non-GNU ld that we prefer.
10066 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10067 *GNU* | *'with BFD'*)
10068 test "$with_gnu_ld" != no && break
10071 test "$with_gnu_ld" != yes && break
10078 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10082 LD="$lt_cv_path_LD"
10083 if test -n "$LD"; then
10084 echo "$as_me:$LINENO: result: $LD" >&5
10085 echo "${ECHO_T}$LD" >&6
10087 echo "$as_me:$LINENO: result: no" >&5
10088 echo "${ECHO_T}no" >&6
10090 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10091 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10092 { (exit 1); exit 1; }; }
10093 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10094 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10095 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10099 case `$LD -v 2>&1 </dev/null` in
10100 *GNU* | *'with BFD'*)
10101 lt_cv_prog_gnu_ld=yes
10104 lt_cv_prog_gnu_ld=no
10108 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10109 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10110 with_gnu_ld=$lt_cv_prog_gnu_ld
10114 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10115 # archiving commands below assume that GNU ld is being used.
10116 if test "$with_gnu_ld" = yes; then
10117 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118 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'
10120 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10121 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10123 # If archive_cmds runs LD, not CC, wlarc should be empty
10124 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10125 # investigate it a little bit more. (MM)
10128 # ancient GNU ld didn't support --whole-archive et. al.
10129 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10130 grep 'no-whole-archive' > /dev/null; then
10131 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10133 whole_archive_flag_spec_CXX=
10139 # A generic and very simple default shared library creation
10140 # command for GNU C++ for the case where it uses the native
10141 # linker, instead of GNU ld. If possible, this setting should
10142 # overridden to take advantage of the native linker features on
10143 # the platform it is being used on.
10144 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10147 # Commands to make compiler produce verbose output that lists
10148 # what "hidden" libraries, object files and flags are used when
10149 # linking a shared library.
10150 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10158 # PORTME: fill in a description of your system's C++ link characteristics
10159 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10160 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10164 # FIXME: insert proper C++ library support
10168 if test "$host_cpu" = ia64; then
10169 # On IA64, the linker does run time linking by default, so we don't
10170 # have to do anything special.
10171 aix_use_runtimelinking=no
10172 exp_sym_flag='-Bexport'
10175 aix_use_runtimelinking=no
10177 # Test if we are trying to use run time linking or normal
10178 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10179 # need to do runtime linking.
10180 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10181 for ld_flag in $LDFLAGS; do
10184 aix_use_runtimelinking=yes
10192 exp_sym_flag='-bexport'
10193 no_entry_flag='-bnoentry'
10196 # When large executables or shared objects are built, AIX ld can
10197 # have problems creating the table of contents. If linking a library
10198 # or program results in "error TOC overflow" add -mminimal-toc to
10199 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10200 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10202 archive_cmds_CXX=''
10203 hardcode_direct_CXX=yes
10204 hardcode_libdir_separator_CXX=':'
10205 link_all_deplibs_CXX=yes
10207 if test "$GXX" = yes; then
10208 case $host_os in aix4.[012]|aix4.[012].*)
10209 # We only want to do this on AIX 4.2 and lower, the check
10210 # below for broken collect2 doesn't work under 4.3+
10211 collect2name=`${CC} -print-prog-name=collect2`
10212 if test -f "$collect2name" && \
10213 strings "$collect2name" | grep resolve_lib_name >/dev/null
10215 # We have reworked collect2
10216 hardcode_direct_CXX=yes
10218 # We have old collect2
10219 hardcode_direct_CXX=unsupported
10220 # It fails to find uninstalled libraries when the uninstalled
10221 # path is not listed in the libpath. Setting hardcode_minus_L
10222 # to unsupported forces relinking
10223 hardcode_minus_L_CXX=yes
10224 hardcode_libdir_flag_spec_CXX='-L$libdir'
10225 hardcode_libdir_separator_CXX=
10229 shared_flag='-shared'
10230 if test "$aix_use_runtimelinking" = yes; then
10231 shared_flag="$shared_flag "'${wl}-G'
10235 if test "$host_cpu" = ia64; then
10236 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10237 # chokes on -Wl,-G. The following line is correct:
10240 if test "$aix_use_runtimelinking" = yes; then
10241 shared_flag='${wl}-G'
10243 shared_flag='${wl}-bM:SRE'
10248 # It seems that -bexpall does not export symbols beginning with
10249 # underscore (_), so it is better to generate a list of symbols to export.
10250 always_export_symbols_CXX=yes
10251 if test "$aix_use_runtimelinking" = yes; then
10252 # Warning - without using the other runtime loading flags (-brtl),
10253 # -berok will link without error, but may produce a broken library.
10254 allow_undefined_flag_CXX='-berok'
10255 # Determine the default libpath from the value encoded in an empty executable.
10256 cat >conftest.$ac_ext <<_ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273 (eval $ac_link) 2>conftest.er1
10275 grep -v '^ *+' conftest.er1 >conftest.err
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_cxx_werror_flag"
10281 || test ! -s conftest.err'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try='test -s conftest$ac_exeext'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10296 # Check for a 64-bit object if we didn't find anything.
10297 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; }
10300 echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10304 rm -f conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
10306 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10308 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10310 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"
10312 if test "$host_cpu" = ia64; then
10313 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10314 allow_undefined_flag_CXX="-z nodefs"
10315 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"
10317 # Determine the default libpath from the value encoded in an empty executable.
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10333 rm -f conftest.$ac_objext conftest$ac_exeext
10334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335 (eval $ac_link) 2>conftest.er1
10337 grep -v '^ *+' conftest.er1 >conftest.err
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try='test -z "$ac_cxx_werror_flag"
10343 || test ! -s conftest.err'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; } &&
10349 { ac_try='test -s conftest$ac_exeext'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10358 # Check for a 64-bit object if we didn't find anything.
10359 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; }
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10366 rm -f conftest.err conftest.$ac_objext \
10367 conftest$ac_exeext conftest.$ac_ext
10368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10370 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10371 # Warning - without using the other run time loading flags,
10372 # -berok will link without error, but may produce a broken library.
10373 no_undefined_flag_CXX=' ${wl}-bernotok'
10374 allow_undefined_flag_CXX=' ${wl}-berok'
10375 # Exported symbols can be pulled into shared objects from archives
10376 whole_archive_flag_spec_CXX='$convenience'
10377 archive_cmds_need_lc_CXX=yes
10378 # This is similar to how AIX traditionally builds its shared libraries.
10379 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'
10385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10386 allow_undefined_flag_CXX=unsupported
10387 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10388 # support --undefined. This deserves some investigation. FIXME
10389 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10396 case $cc_basename in
10398 # FIXME: insert proper C++ library support
10404 cygwin* | mingw* | pw32*)
10405 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10406 # as there is no search path for DLLs.
10407 hardcode_libdir_flag_spec_CXX='-L$libdir'
10408 allow_undefined_flag_CXX=unsupported
10409 always_export_symbols_CXX=no
10410 enable_shared_with_static_runtimes_CXX=yes
10412 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10413 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'
10414 # If the export-symbols file already is a .def file (1st line
10415 # is EXPORTS), use it as is; otherwise, prepend...
10416 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10417 cp $export_symbols $output_objdir/$soname.def;
10419 echo EXPORTS > $output_objdir/$soname.def;
10420 cat $export_symbols >> $output_objdir/$soname.def;
10422 $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'
10427 darwin* | rhapsody*)
10429 rhapsody* | darwin1.[012])
10430 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10433 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10434 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10436 case ${MACOSX_DEPLOYMENT_TARGET} in
10438 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10441 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10447 archive_cmds_need_lc_CXX=no
10448 hardcode_direct_CXX=no
10449 hardcode_automatic_CXX=yes
10450 hardcode_shlibpath_var_CXX=unsupported
10451 whole_archive_flag_spec_CXX=''
10452 link_all_deplibs_CXX=yes
10454 if test "$GXX" = yes ; then
10455 lt_int_apple_cc_single_mod=no
10456 output_verbose_link_cmd='echo'
10457 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10458 lt_int_apple_cc_single_mod=yes
10460 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10461 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10463 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'
10465 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10466 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10467 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10468 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}'
10470 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}'
10472 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}'
10474 case $cc_basename in
10476 output_verbose_link_cmd='echo'
10477 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'
10478 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10479 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10480 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}'
10481 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}'
10491 case $cc_basename in
10493 # FIXME: insert proper C++ library support
10497 # Green Hills C++ Compiler
10498 # FIXME: insert proper C++ library support
10502 # FIXME: insert proper C++ library support
10508 # C++ shared libraries reported to be fairly broken before switch to ELF
10512 archive_cmds_need_lc_CXX=no
10514 freebsd* | kfreebsd*-gnu | dragonfly*)
10515 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10522 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10523 hardcode_libdir_separator_CXX=:
10524 export_dynamic_flag_spec_CXX='${wl}-E'
10525 hardcode_direct_CXX=yes
10526 hardcode_minus_L_CXX=yes # Not in the search PATH,
10527 # but as the default
10528 # location of the library.
10530 case $cc_basename in
10532 # FIXME: insert proper C++ library support
10536 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'
10537 # Commands to make compiler produce verbose output that lists
10538 # what "hidden" libraries, object files and flags are used when
10539 # linking a shared library.
10541 # There doesn't appear to be a way to prevent this compiler from
10542 # explicitly linking system object files so we need to strip them
10543 # from the output so that they don't get included in the library
10545 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'
10548 if test "$GXX" = yes; then
10549 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'
10551 # FIXME: insert proper C++ library support
10558 if test $with_gnu_ld = no; then
10559 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10560 hardcode_libdir_separator_CXX=:
10564 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10567 export_dynamic_flag_spec_CXX='${wl}-E'
10573 hardcode_direct_CXX=no
10574 hardcode_shlibpath_var_CXX=no
10577 hardcode_direct_CXX=yes
10578 hardcode_minus_L_CXX=yes # Not in the search PATH,
10579 # but as the default
10580 # location of the library.
10584 case $cc_basename in
10586 # FIXME: insert proper C++ library support
10592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10595 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10598 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10601 # Commands to make compiler produce verbose output that lists
10602 # what "hidden" libraries, object files and flags are used when
10603 # linking a shared library.
10605 # There doesn't appear to be a way to prevent this compiler from
10606 # explicitly linking system object files so we need to strip them
10607 # from the output so that they don't get included in the library
10609 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'
10612 if test "$GXX" = yes; then
10613 if test $with_gnu_ld = no; then
10616 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10619 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10622 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'
10627 # FIXME: insert proper C++ library support
10634 hardcode_direct_CXX=no
10635 hardcode_shlibpath_var_CXX=no
10636 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10637 export_dynamic_flag_spec_CXX='${wl}-E'
10638 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10639 # Instead, shared libraries are loaded at an image base (0x10000000 by
10640 # default) and relocated if they conflict, which is a slow very memory
10641 # consuming and fragmenting process. To avoid this, we pick a random,
10642 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10643 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10644 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'
10645 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'
10648 case $cc_basename in
10651 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'
10653 # Archives containing C++ object files must be created using
10654 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10655 # necessary to make sure instantiated templates are included
10657 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10660 if test "$GXX" = yes; then
10661 if test "$with_gnu_ld" = no; then
10662 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'
10664 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'
10667 link_all_deplibs_CXX=yes
10670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10671 hardcode_libdir_separator_CXX=:
10674 case $cc_basename in
10676 # Kuck and Associates, Inc. (KAI) C++ Compiler
10678 # KCC will only create a shared library if the output file
10679 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10680 # to its proper name (with version) after linking.
10681 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'
10682 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'
10683 # Commands to make compiler produce verbose output that lists
10684 # what "hidden" libraries, object files and flags are used when
10685 # linking a shared library.
10687 # There doesn't appear to be a way to prevent this compiler from
10688 # explicitly linking system object files so we need to strip them
10689 # from the output so that they don't get included in the library
10691 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'
10693 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10694 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10696 # Archives containing C++ object files must be created using
10697 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10698 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10703 # version 8.0 and above of icpc choke on multiply defined symbols
10704 # if we add $predep_objects and $postdep_objects, however 7.1 and
10705 # earlier do not add the objects themselves.
10706 case `$CC -V 2>&1` in
10708 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10709 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'
10711 *) # Version 8.0 or newer
10714 ia64*) tmp_idyn=' -i_dynamic';;
10716 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10717 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'
10720 archive_cmds_need_lc_CXX=no
10721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10722 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10723 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10726 # Portland Group C++ compiler
10727 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10728 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'
10730 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10731 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10732 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'
10736 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10737 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'
10739 runpath_var=LD_RUN_PATH
10740 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10741 hardcode_libdir_separator_CXX=:
10743 # Commands to make compiler produce verbose output that lists
10744 # what "hidden" libraries, object files and flags are used when
10745 # linking a shared library.
10747 # There doesn't appear to be a way to prevent this compiler from
10748 # explicitly linking system object files so we need to strip them
10749 # from the output so that they don't get included in the library
10751 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'
10756 # FIXME: insert proper C++ library support
10760 # FIXME: insert proper C++ library support
10764 case $cc_basename in
10766 # FIXME: insert proper C++ library support
10770 # FIXME: insert proper C++ library support
10776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10777 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10779 hardcode_libdir_flag_spec_CXX='-R$libdir'
10780 hardcode_direct_CXX=yes
10781 hardcode_shlibpath_var_CXX=no
10783 # Workaround some broken pre-1.5 toolchains
10784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10787 # C++ shared libraries are fairly broken
10791 hardcode_direct_CXX=yes
10792 hardcode_shlibpath_var_CXX=no
10793 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10794 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10796 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10797 export_dynamic_flag_spec_CXX='${wl}-E'
10798 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10800 output_verbose_link_cmd='echo'
10803 case $cc_basename in
10805 # Kuck and Associates, Inc. (KAI) C++ Compiler
10807 # KCC will only create a shared library if the output file
10808 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10809 # to its proper name (with version) after linking.
10810 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'
10812 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10813 hardcode_libdir_separator_CXX=:
10815 # Archives containing C++ object files must be created using
10816 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10817 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10821 # Rational C++ 2.4.1
10822 # FIXME: insert proper C++ library support
10826 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10827 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'
10829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10830 hardcode_libdir_separator_CXX=:
10832 # Commands to make compiler produce verbose output that lists
10833 # what "hidden" libraries, object files and flags are used when
10834 # linking a shared library.
10836 # There doesn't appear to be a way to prevent this compiler from
10837 # explicitly linking system object files so we need to strip them
10838 # from the output so that they don't get included in the library
10840 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'
10843 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10844 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10845 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'
10847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10848 hardcode_libdir_separator_CXX=:
10850 # Commands to make compiler produce verbose output that lists
10851 # what "hidden" libraries, object files and flags are used when
10852 # linking a shared library.
10853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10856 # FIXME: insert proper C++ library support
10863 case $cc_basename in
10865 # Kuck and Associates, Inc. (KAI) C++ Compiler
10867 # KCC will only create a shared library if the output file
10868 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10869 # to its proper name (with version) after linking.
10870 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'
10872 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10873 hardcode_libdir_separator_CXX=:
10875 # Archives containing C++ object files must be created using
10876 # the KAI C++ compiler.
10877 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10880 # Rational C++ 2.4.1
10881 # FIXME: insert proper C++ library support
10885 allow_undefined_flag_CXX=' -expect_unresolved \*'
10886 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'
10887 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10888 echo "-hidden">> $lib.exp~
10889 $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~
10892 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10893 hardcode_libdir_separator_CXX=:
10895 # Commands to make compiler produce verbose output that lists
10896 # what "hidden" libraries, object files and flags are used when
10897 # linking a shared library.
10899 # There doesn't appear to be a way to prevent this compiler from
10900 # explicitly linking system object files so we need to strip them
10901 # from the output so that they don't get included in the library
10903 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'
10906 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10907 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10908 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'
10910 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10911 hardcode_libdir_separator_CXX=:
10913 # Commands to make compiler produce verbose output that lists
10914 # what "hidden" libraries, object files and flags are used when
10915 # linking a shared library.
10916 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10919 # FIXME: insert proper C++ library support
10926 # FIXME: insert proper C++ library support
10930 case $cc_basename in
10933 # FIXME: insert proper C++ library support
10938 # FIXME: insert proper C++ library support
10942 # FIXME: insert proper C++ library support
10948 case $cc_basename in
10950 # Sun C++ 4.2, 5.x and Centerline C++
10951 archive_cmds_need_lc_CXX=yes
10952 no_undefined_flag_CXX=' -zdefs'
10953 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10954 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10955 $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'
10957 hardcode_libdir_flag_spec_CXX='-R$libdir'
10958 hardcode_shlibpath_var_CXX=no
10960 solaris2.[0-5] | solaris2.[0-5].*) ;;
10962 # The C++ compiler is used as linker so we must use $wl
10963 # flag to pass the commands to the underlying system
10964 # linker. We must also pass each convience library through
10965 # to the system linker between allextract/defaultextract.
10966 # The C++ compiler will combine linker options so we
10967 # cannot just pass the convience library names through
10969 # Supported since Solaris 2.6 (maybe 2.5.1?)
10970 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'
10973 link_all_deplibs_CXX=yes
10975 output_verbose_link_cmd='echo'
10977 # Archives containing C++ object files must be created using
10978 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10979 # necessary to make sure instantiated templates are included
10981 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10984 # Green Hills C++ Compiler
10985 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10987 # The C++ compiler must be used to create the archive.
10988 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10991 # GNU C++ compiler with Solaris linker
10992 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10993 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10994 if $CC --version | grep -v '^2\.7' > /dev/null; then
10995 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10996 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10997 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10999 # Commands to make compiler produce verbose output that lists
11000 # what "hidden" libraries, object files and flags are used when
11001 # linking a shared library.
11002 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11004 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11006 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11007 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11008 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11010 # Commands to make compiler produce verbose output that lists
11011 # what "hidden" libraries, object files and flags are used when
11012 # linking a shared library.
11013 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11016 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11021 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11022 no_undefined_flag_CXX='${wl}-z,text'
11023 archive_cmds_need_lc_CXX=no
11024 hardcode_shlibpath_var_CXX=no
11025 runpath_var='LD_RUN_PATH'
11027 case $cc_basename in
11029 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 sysv5* | sco3.2v5* | sco5v6*)
11039 # Note: We can NOT use -z defs as we might desire, because we do not
11040 # link with -lc, and that would cause any symbols used from libc to
11041 # always be unresolved, which means just about no library would
11042 # ever link correctly. If we're not using GNU ld we use -z text
11043 # though, which does catch some bad symbols but isn't as heavy-handed
11045 # For security reasons, it is highly recommended that you always
11046 # use absolute paths for naming shared libraries, and exclude the
11047 # DT_RUNPATH tag from executables and libraries. But doing so
11048 # requires that you compile everything twice, which is a pain.
11049 # So that behaviour is only enabled if SCOABSPATH is set to a
11050 # non-empty value in the environment. Most likely only useful for
11051 # creating official distributions of packages.
11052 # This is a hack until libtool officially supports absolute path
11053 # names for shared libraries.
11054 no_undefined_flag_CXX='${wl}-z,text'
11055 allow_undefined_flag_CXX='${wl}-z,nodefs'
11056 archive_cmds_need_lc_CXX=no
11057 hardcode_shlibpath_var_CXX=no
11058 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11059 hardcode_libdir_separator_CXX=':'
11060 link_all_deplibs_CXX=yes
11061 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11062 runpath_var='LD_RUN_PATH'
11064 case $cc_basename in
11066 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11067 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11070 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11076 case $cc_basename in
11078 # NonStop-UX NCC 3.20
11079 # FIXME: insert proper C++ library support
11083 # FIXME: insert proper C++ library support
11089 # FIXME: insert proper C++ library support
11093 # FIXME: insert proper C++ library support
11097 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11098 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11099 test "$ld_shlibs_CXX" = no && can_build_shared=no
11105 cat > conftest.$ac_ext <<EOF
11109 Foo (void) { a = 0; }
11115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11116 (eval $ac_compile) 2>&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; then
11120 # Parse the compiler output and extract the necessary
11121 # objects, libraries and library flags.
11123 # Sentinel used to keep track of whether or not we are before
11124 # the conftest object file.
11125 pre_test_object_deps_done=no
11127 # The `*' in the case matches for architectures that use `case' in
11128 # $output_verbose_cmd can trigger glob expansion during the loop
11129 # eval without this substitution.
11130 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11132 for p in `eval $output_verbose_link_cmd`; do
11136 # Some compilers place space between "-{L,R}" and the path.
11137 # Remove the space.
11138 if test $p = "-L" \
11139 || test $p = "-R"; then
11146 if test "$pre_test_object_deps_done" = no; then
11149 # Internal compiler library paths should come after those
11150 # provided the user. The postdeps already come after the
11151 # user supplied libs so there is no need to process them.
11152 if test -z "$compiler_lib_search_path_CXX"; then
11153 compiler_lib_search_path_CXX="${prev}${p}"
11155 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11158 # The "-l" case would never come before the object being
11159 # linked, so don't bother handling this case.
11162 if test -z "$postdeps_CXX"; then
11163 postdeps_CXX="${prev}${p}"
11165 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11171 # This assumes that the test object file only shows up
11172 # once in the compiler output.
11173 if test "$p" = "conftest.$objext"; then
11174 pre_test_object_deps_done=yes
11178 if test "$pre_test_object_deps_done" = no; then
11179 if test -z "$predep_objects_CXX"; then
11180 predep_objects_CXX="$p"
11182 predep_objects_CXX="$predep_objects_CXX $p"
11185 if test -z "$postdep_objects_CXX"; then
11186 postdep_objects_CXX="$p"
11188 postdep_objects_CXX="$postdep_objects_CXX $p"
11193 *) ;; # Ignore the rest.
11201 echo "libtool.m4: error: problem compiling CXX test program"
11204 $rm -f confest.$objext
11206 # PORTME: override above test on systems where it is broken
11209 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11210 # hack all around it, let's just trust "g++" to DTRT.
11211 predep_objects_CXX=
11212 postdep_objects_CXX=
11217 case $cc_basename in
11219 # Adding this requires a known-good setup of shared libraries for
11220 # Sun compiler versions before 5.6, else PIC objects from an old
11221 # archive will be linked into the output, leading to subtle bugs.
11222 postdeps_CXX='-lCstd -lCrun'
11229 case " $postdeps_CXX " in
11230 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11233 lt_prog_compiler_wl_CXX=
11234 lt_prog_compiler_pic_CXX=
11235 lt_prog_compiler_static_CXX=
11237 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11238 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11240 # C++ specific cases for pic, static, wl, etc.
11241 if test "$GXX" = yes; then
11242 lt_prog_compiler_wl_CXX='-Wl,'
11243 lt_prog_compiler_static_CXX='-static'
11247 # All AIX code is PIC.
11248 if test "$host_cpu" = ia64; then
11249 # AIX 5 now supports IA64 processor
11250 lt_prog_compiler_static_CXX='-Bstatic'
11254 # FIXME: we need at least 68020 code to build shared libraries, but
11255 # adding the `-m68020' flag to GCC prevents building anything better,
11257 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11259 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11260 # PIC is the default for these OSes.
11262 mingw* | os2* | pw32*)
11263 # This hack is so that the source file can tell whether it is being
11264 # built for inclusion in a dll (and should export symbols for example).
11265 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11267 darwin* | rhapsody*)
11268 # PIC is the default on this platform
11269 # Common symbols not allowed in MH_DYLIB files
11270 lt_prog_compiler_pic_CXX='-fno-common'
11273 # DJGPP does not support shared libraries at all
11274 lt_prog_compiler_pic_CXX=
11277 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11278 # Instead, we relocate shared libraries at runtime.
11281 if test -d /usr/nec; then
11282 lt_prog_compiler_pic_CXX=-Kconform_pic
11286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11287 # not for PA HP-UX.
11292 lt_prog_compiler_pic_CXX='-fPIC'
11297 lt_prog_compiler_pic_CXX='-fPIC'
11303 # All AIX code is PIC.
11304 if test "$host_cpu" = ia64; then
11305 # AIX 5 now supports IA64 processor
11306 lt_prog_compiler_static_CXX='-Bstatic'
11308 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11312 case $cc_basename in
11314 # Green Hills C++ Compiler
11315 # _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"
11320 # PIC is the default on this platform
11321 # Common symbols not allowed in MH_DYLIB files
11322 case $cc_basename in
11324 lt_prog_compiler_pic_CXX='-qnocommon'
11325 lt_prog_compiler_wl_CXX='-Wl,'
11330 case $cc_basename in
11332 lt_prog_compiler_pic_CXX='-KPIC'
11335 # Green Hills C++ Compiler
11336 lt_prog_compiler_pic_CXX='-pic'
11342 freebsd* | kfreebsd*-gnu | dragonfly*)
11343 # FreeBSD uses GNU C++
11345 hpux9* | hpux10* | hpux11*)
11346 case $cc_basename in
11348 lt_prog_compiler_wl_CXX='-Wl,'
11349 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11350 if test "$host_cpu" != ia64; then
11351 lt_prog_compiler_pic_CXX='+Z'
11355 lt_prog_compiler_wl_CXX='-Wl,'
11356 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11362 lt_prog_compiler_pic_CXX='+Z'
11371 # This is c89, which is MS Visual C++ (no shared libs)
11372 # Anyone wants to do a port?
11374 irix5* | irix6* | nonstopux*)
11375 case $cc_basename in
11377 lt_prog_compiler_wl_CXX='-Wl,'
11378 lt_prog_compiler_static_CXX='-non_shared'
11379 # CC pic flag -KPIC is the default.
11386 case $cc_basename in
11389 lt_prog_compiler_wl_CXX='--backend -Wl,'
11390 lt_prog_compiler_pic_CXX='-fPIC'
11394 lt_prog_compiler_wl_CXX='-Wl,'
11395 lt_prog_compiler_pic_CXX='-KPIC'
11396 lt_prog_compiler_static_CXX='-static'
11399 # Portland Group C++ compiler.
11400 lt_prog_compiler_wl_CXX='-Wl,'
11401 lt_prog_compiler_pic_CXX='-fpic'
11402 lt_prog_compiler_static_CXX='-Bstatic'
11406 # Make sure the PIC flag is empty. It appears that all Alpha
11407 # Linux and Compaq Tru64 Unix objects are PIC.
11408 lt_prog_compiler_pic_CXX=
11409 lt_prog_compiler_static_CXX='-non_shared'
11420 case $cc_basename in
11422 lt_prog_compiler_pic_CXX='-W c,exportall'
11430 osf3* | osf4* | osf5*)
11431 case $cc_basename in
11433 lt_prog_compiler_wl_CXX='--backend -Wl,'
11436 # Rational C++ 2.4.1
11437 lt_prog_compiler_pic_CXX='-pic'
11440 # Digital/Compaq C++
11441 lt_prog_compiler_wl_CXX='-Wl,'
11442 # Make sure the PIC flag is empty. It appears that all Alpha
11443 # Linux and Compaq Tru64 Unix objects are PIC.
11444 lt_prog_compiler_pic_CXX=
11445 lt_prog_compiler_static_CXX='-non_shared'
11454 case $cc_basename in
11456 # Sun C++ 4.2, 5.x and Centerline C++
11457 lt_prog_compiler_pic_CXX='-KPIC'
11458 lt_prog_compiler_static_CXX='-Bstatic'
11459 lt_prog_compiler_wl_CXX='-Qoption ld '
11462 # Green Hills C++ Compiler
11463 lt_prog_compiler_pic_CXX='-PIC'
11470 case $cc_basename in
11473 lt_prog_compiler_pic_CXX='-pic'
11474 lt_prog_compiler_static_CXX='-Bstatic'
11478 lt_prog_compiler_pic_CXX='-pic'
11485 case $cc_basename in
11487 # NonStop-UX NCC 3.20
11488 lt_prog_compiler_pic_CXX='-KPIC'
11494 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11495 case $cc_basename in
11497 lt_prog_compiler_wl_CXX='-Wl,'
11498 lt_prog_compiler_pic_CXX='-KPIC'
11499 lt_prog_compiler_static_CXX='-Bstatic'
11506 lt_prog_compiler_can_build_shared_CXX=no
11511 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11512 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11515 # Check to make sure the PIC flag actually works.
11517 if test -n "$lt_prog_compiler_pic_CXX"; then
11519 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11520 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11521 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 lt_prog_compiler_pic_works_CXX=no
11525 ac_outfile=conftest.$ac_objext
11526 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11527 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11528 # Insert the option either (1) after the last *FLAGS variable, or
11529 # (2) before a word containing "conftest.", or (3) at the end.
11530 # Note that $ac_compile itself does not contain backslashes and begins
11531 # with a dollar sign (not a hyphen), so the echo should work correctly.
11532 # The option is referenced via a variable to avoid confusing sed.
11533 lt_compile=`echo "$ac_compile" | $SED \
11534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11536 -e 's:$: $lt_compiler_flag:'`
11537 (eval echo "\"\$as_me:11537: $lt_compile\"" >&5)
11538 (eval "$lt_compile" 2>conftest.err)
11540 cat conftest.err >&5
11541 echo "$as_me:11541: \$? = $ac_status" >&5
11542 if (exit $ac_status) && test -s "$ac_outfile"; then
11543 # The compiler can only warn and ignore the option if not recognized
11544 # So say no if there are warnings other than the usual output.
11545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11547 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11548 lt_prog_compiler_pic_works_CXX=yes
11554 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11555 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11557 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11558 case $lt_prog_compiler_pic_CXX in
11560 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11563 lt_prog_compiler_pic_CXX=
11564 lt_prog_compiler_can_build_shared_CXX=no
11569 # For platforms which do not support PIC, -DPIC is meaningless:
11571 lt_prog_compiler_pic_CXX=
11574 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11579 # Check to make sure the static flag actually works.
11581 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11582 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11583 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11584 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 lt_prog_compiler_static_works_CXX=no
11588 save_LDFLAGS="$LDFLAGS"
11589 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11590 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11591 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11592 # The linker can only warn and ignore the option if not recognized
11593 # So say no if there are warnings
11594 if test -s conftest.err; then
11595 # Append any errors to the config.log.
11596 cat conftest.err 1>&5
11597 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11599 if diff conftest.exp conftest.er2 >/dev/null; then
11600 lt_prog_compiler_static_works_CXX=yes
11603 lt_prog_compiler_static_works_CXX=yes
11607 LDFLAGS="$save_LDFLAGS"
11610 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11611 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11613 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11616 lt_prog_compiler_static_CXX=
11620 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11621 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11622 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 lt_cv_prog_compiler_c_o_CXX=no
11626 $rm -r conftest 2>/dev/null
11630 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11632 lt_compiler_flag="-o out/conftest2.$ac_objext"
11633 # Insert the option either (1) after the last *FLAGS variable, or
11634 # (2) before a word containing "conftest.", or (3) at the end.
11635 # Note that $ac_compile itself does not contain backslashes and begins
11636 # with a dollar sign (not a hyphen), so the echo should work correctly.
11637 lt_compile=`echo "$ac_compile" | $SED \
11638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11640 -e 's:$: $lt_compiler_flag:'`
11641 (eval echo "\"\$as_me:11641: $lt_compile\"" >&5)
11642 (eval "$lt_compile" 2>out/conftest.err)
11644 cat out/conftest.err >&5
11645 echo "$as_me:11645: \$? = $ac_status" >&5
11646 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11648 # The compiler can only warn and ignore the option if not recognized
11649 # So say no if there are warnings
11650 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11651 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11652 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11653 lt_cv_prog_compiler_c_o_CXX=yes
11658 # SGI C++ compiler will create directory out/ii_files/ for
11659 # template instantiation
11660 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11661 $rm out/* && rmdir out
11667 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11668 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11671 hard_links="nottested"
11672 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11673 # do not overwrite the value of need_locks provided by the user
11674 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11675 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11680 ln conftest.a conftest.b 2>&5 || hard_links=no
11681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11682 echo "$as_me:$LINENO: result: $hard_links" >&5
11683 echo "${ECHO_T}$hard_links" >&6
11684 if test "$hard_links" = no; then
11685 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11686 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11693 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11694 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11696 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11699 # If we're using GNU nm, then we don't want the "-C" option.
11700 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11701 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11702 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'
11704 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'
11708 export_symbols_cmds_CXX="$ltdll_cmds"
11711 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'
11714 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11718 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11719 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11720 test "$ld_shlibs_CXX" = no && can_build_shared=no
11723 # Do we need to explicitly link libc?
11725 case "x$archive_cmds_need_lc_CXX" in
11727 # Assume -lc should be added
11728 archive_cmds_need_lc_CXX=yes
11730 if test "$enable_shared" = yes && test "$GCC" = yes; then
11731 case $archive_cmds_CXX in
11733 # FIXME: we may have to deal with multi-command sequences.
11736 # Test whether the compiler implicitly links with -lc since on some
11737 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11738 # to ld, don't add -lc before -lgcc.
11739 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11740 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11745 (eval $ac_compile) 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } 2>conftest.err; then
11751 libobjs=conftest.$ac_objext
11753 wl=$lt_prog_compiler_wl_CXX
11754 pic_flag=$lt_prog_compiler_pic_CXX
11760 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11761 allow_undefined_flag_CXX=
11762 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11763 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }
11768 archive_cmds_need_lc_CXX=no
11770 archive_cmds_need_lc_CXX=yes
11772 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11774 cat conftest.err 1>&5
11777 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11778 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11785 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11786 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11787 library_names_spec=
11788 libname_spec='lib$name'
11792 postuninstall_cmds=
11796 shlibpath_overrides_runpath=unknown
11798 dynamic_linker="$host_os ld.so"
11799 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11800 if test "$GCC" = yes; then
11801 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11802 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11803 # if the path contains ";" then we assume it to be the separator
11804 # otherwise default to the standard path separator (i.e. ":") - it is
11805 # assumed that no part of a normal pathname contains ";" but that should
11806 # okay in the real world where ";" in dirpaths is itself problematic.
11807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11812 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11814 need_lib_prefix=unknown
11815 hardcode_into_libs=no
11817 # when you set need_version to no, make sure it does not cause -set_version
11818 # flags to be left without arguments
11819 need_version=unknown
11824 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11825 shlibpath_var=LIBPATH
11827 # AIX 3 has no versioning support, so we append a major version to the name.
11828 soname_spec='${libname}${release}${shared_ext}$major'
11835 hardcode_into_libs=yes
11836 if test "$host_cpu" = ia64; then
11837 # AIX 5 supports IA64
11838 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11839 shlibpath_var=LD_LIBRARY_PATH
11841 # With GCC up to 2.95.x, collect2 would create an import file
11842 # for dependence libraries. The import file would start with
11843 # the line `#! .'. This would cause the generated library to
11844 # depend on `.', always an invalid library. This was fixed in
11845 # development snapshots of GCC prior to 3.0.
11847 aix4 | aix4.[01] | aix4.[01].*)
11848 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11850 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11853 can_build_shared=no
11857 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11858 # soname into executable. Probably we can add versioning support to
11859 # collect2, so additional links can be useful in future.
11860 if test "$aix_use_runtimelinking" = yes; then
11861 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11862 # instead of lib<name>.a to let people know that these are not
11863 # typical AIX shared libraries.
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866 # We preserve .a as extension for shared libraries through AIX4.2
11867 # and later when we are not doing run time linking.
11868 library_names_spec='${libname}${release}.a $libname.a'
11869 soname_spec='${libname}${release}${shared_ext}$major'
11871 shlibpath_var=LIBPATH
11876 library_names_spec='$libname.ixlibrary $libname.a'
11877 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11878 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'
11882 library_names_spec='${libname}${shared_ext}'
11883 dynamic_linker="$host_os ld.so"
11884 shlibpath_var=LIBRARY_PATH
11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11891 soname_spec='${libname}${release}${shared_ext}$major'
11892 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11895 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11896 # the default ld.so.conf also contains /usr/contrib/lib and
11897 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11898 # libtool to hard-code these into programs
11901 cygwin* | mingw* | pw32*)
11902 version_type=windows
11907 case $GCC,$host_os in
11908 yes,cygwin* | yes,mingw* | yes,pw32*)
11909 library_names_spec='$libname.dll.a'
11910 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11911 postinstall_cmds='base_file=`basename \${file}`~
11912 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11913 dldir=$destdir/`dirname \$dlpath`~
11914 test -d \$dldir || mkdir -p \$dldir~
11915 $install_prog $dir/$dlname \$dldir/$dlname~
11916 chmod a+x \$dldir/$dlname'
11917 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11918 dlpath=$dir/\$dldll~
11920 shlibpath_overrides_runpath=yes
11924 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11925 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11926 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11929 # MinGW DLLs use traditional 'lib' prefix
11930 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11931 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11932 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11933 # It is most probably a Windows format PATH printed by
11934 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11935 # path with ; separators, and with drive letters. We can handle the
11936 # drive letters (cygwin fileutils understands them), so leave them,
11937 # especially as we might pass files found there to a mingw objdump,
11938 # which wouldn't understand a cygwinified path. Ahh.
11939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11945 # pw32 DLLs use 'pw' prefix rather than 'lib'
11946 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11952 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11955 dynamic_linker='Win32 ld.exe'
11956 # FIXME: first we should search . and the directory the executable is in
11960 darwin* | rhapsody*)
11961 dynamic_linker="$host_os dyld"
11962 version_type=darwin
11965 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11966 soname_spec='${libname}${release}${major}$shared_ext'
11967 shlibpath_overrides_runpath=yes
11968 shlibpath_var=DYLD_LIBRARY_PATH
11969 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11970 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11971 if test "$GCC" = yes; then
11972 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"`
11974 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11976 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11984 soname_spec='${libname}${release}${shared_ext}$major'
11985 shlibpath_var=LD_LIBRARY_PATH
11996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11997 soname_spec='${libname}${release}${shared_ext}$major'
11998 shlibpath_var=LD_LIBRARY_PATH
11999 shlibpath_overrides_runpath=no
12000 hardcode_into_libs=yes
12001 dynamic_linker='GNU ld.so'
12004 freebsd* | dragonfly*)
12005 # DragonFly does not have aout. When/if they implement a new
12006 # versioning mechanism, adjust this.
12007 if test -x /usr/bin/objformat; then
12008 objformat=`/usr/bin/objformat`
12011 freebsd[123]*) objformat=aout ;;
12012 *) objformat=elf ;;
12015 version_type=freebsd-$objformat
12016 case $version_type in
12018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12027 shlibpath_var=LD_LIBRARY_PATH
12030 shlibpath_overrides_runpath=yes
12032 freebsd3.[01]* | freebsdelf3.[01]*)
12033 shlibpath_overrides_runpath=yes
12034 hardcode_into_libs=yes
12036 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12037 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12038 shlibpath_overrides_runpath=no
12039 hardcode_into_libs=yes
12041 freebsd*) # from 4.6 on
12042 shlibpath_overrides_runpath=yes
12043 hardcode_into_libs=yes
12052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12053 soname_spec='${libname}${release}${shared_ext}$major'
12054 shlibpath_var=LD_LIBRARY_PATH
12055 hardcode_into_libs=yes
12058 hpux9* | hpux10* | hpux11*)
12059 # Give a soname corresponding to the major version so that dld.sl refuses to
12060 # link against other versions.
12067 hardcode_into_libs=yes
12068 dynamic_linker="$host_os dld.so"
12069 shlibpath_var=LD_LIBRARY_PATH
12070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12073 if test "X$HPUX_IA64_MODE" = X32; then
12074 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12076 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12082 hardcode_into_libs=yes
12083 dynamic_linker="$host_os dld.sl"
12084 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12087 soname_spec='${libname}${release}${shared_ext}$major'
12088 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12093 dynamic_linker="$host_os dld.sl"
12094 shlibpath_var=SHLIB_PATH
12095 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 soname_spec='${libname}${release}${shared_ext}$major'
12100 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12101 postinstall_cmds='chmod 555 $lib'
12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12109 soname_spec='${libname}${release}${shared_ext}$major'
12110 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12111 shlibpath_var=LD_LIBRARY_PATH
12112 shlibpath_overrides_runpath=no
12113 hardcode_into_libs=yes
12116 irix5* | irix6* | nonstopux*)
12118 nonstopux*) version_type=nonstopux ;;
12120 if test "$lt_cv_prog_gnu_ld" = yes; then
12128 soname_spec='${libname}${release}${shared_ext}$major'
12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12131 irix5* | nonstopux*)
12132 libsuff= shlibsuff=
12135 case $LD in # libtool.m4 will add one of these switches to LD
12136 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12137 libsuff= shlibsuff= libmagic=32-bit;;
12138 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12139 libsuff=32 shlibsuff=N32 libmagic=N32;;
12140 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12141 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12142 *) libsuff= shlibsuff= libmagic=never-match;;
12146 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12147 shlibpath_overrides_runpath=no
12148 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12149 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12150 hardcode_into_libs=yes
12153 # No shared lib support for Linux oldld, aout, or coff.
12154 linux*oldld* | linux*aout* | linux*coff*)
12158 # This must be Linux ELF.
12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12164 soname_spec='${libname}${release}${shared_ext}$major'
12165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12166 shlibpath_var=LD_LIBRARY_PATH
12167 shlibpath_overrides_runpath=no
12168 # This implies no fast_install, which is unacceptable.
12169 # Some rework will be needed to allow for fast_install
12170 # before this can be enabled.
12171 hardcode_into_libs=yes
12173 # find out which ABI we are using
12175 case "$host_cpu" in
12176 x86_64*|s390x*|powerpc64*)
12177 echo '#line 12177 "configure"' > conftest.$ac_ext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12179 (eval $ac_compile) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; then
12183 case `/usr/bin/file conftest.$ac_objext` in
12186 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12194 # Append ld.so.conf contents to the search path
12195 if test -f /etc/ld.so.conf; then
12196 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' ' '`
12197 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12200 # We used to test for /lib/ld.so.1 and disable shared libraries on
12201 # powerpc, because MkLinux only supported shared libraries with the
12202 # GNU dynamic linker. Since this was broken with cross compilers,
12203 # most powerpc-linux boxes support dynamic linking these days and
12204 # people can always --disable-shared, the test was removed, and we
12205 # assume the GNU/Linux dynamic linker is in use.
12206 dynamic_linker='GNU/Linux ld.so'
12213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12214 soname_spec='${libname}${release}${shared_ext}$major'
12215 shlibpath_var=LD_LIBRARY_PATH
12216 shlibpath_overrides_runpath=no
12217 hardcode_into_libs=yes
12218 dynamic_linker='GNU ld.so'
12225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12228 dynamic_linker='NetBSD (a.out) ld.so'
12230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12231 soname_spec='${libname}${release}${shared_ext}$major'
12232 dynamic_linker='NetBSD ld.elf_so'
12234 shlibpath_var=LD_LIBRARY_PATH
12235 shlibpath_overrides_runpath=yes
12236 hardcode_into_libs=yes
12241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12242 shlibpath_var=LD_LIBRARY_PATH
12243 shlibpath_overrides_runpath=yes
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251 soname_spec='${libname}${release}${shared_ext}$major'
12252 shlibpath_var=LD_LIBRARY_PATH
12253 shlibpath_overrides_runpath=yes
12258 sys_lib_dlsearch_path_spec="/usr/lib"
12260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12262 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12263 *) need_version=no ;;
12265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12267 shlibpath_var=LD_LIBRARY_PATH
12268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12270 openbsd2.[89] | openbsd2.[89].*)
12271 shlibpath_overrides_runpath=no
12274 shlibpath_overrides_runpath=yes
12278 shlibpath_overrides_runpath=yes
12283 libname_spec='$name'
12286 library_names_spec='$libname${shared_ext} $libname.a'
12287 dynamic_linker='OS/2 ld.exe'
12288 shlibpath_var=LIBPATH
12291 osf3* | osf4* | osf5*)
12295 soname_spec='${libname}${release}${shared_ext}$major'
12296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12297 shlibpath_var=LD_LIBRARY_PATH
12298 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12299 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12307 soname_spec='${libname}${release}${shared_ext}$major'
12308 shlibpath_var=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath=yes
12310 hardcode_into_libs=yes
12311 # ldd complains unless libraries are executable
12312 postinstall_cmds='chmod +x $lib'
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12318 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 shlibpath_overrides_runpath=yes
12321 if test "$with_gnu_ld" = yes; then
12329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330 soname_spec='${libname}${release}${shared_ext}$major'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 case $host_vendor in
12334 shlibpath_overrides_runpath=no
12336 export_dynamic_flag_spec='${wl}-Blargedynsym'
12337 runpath_var=LD_RUN_PATH
12345 shlibpath_overrides_runpath=no
12346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12352 if test -d /usr/nec ;then
12354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12355 soname_spec='$libname${shared_ext}.$major'
12356 shlibpath_var=LD_LIBRARY_PATH
12360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12361 version_type=freebsd-elf
12364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12365 soname_spec='${libname}${release}${shared_ext}$major'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 hardcode_into_libs=yes
12368 if test "$with_gnu_ld" = yes; then
12369 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12370 shlibpath_overrides_runpath=no
12372 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12373 shlibpath_overrides_runpath=yes
12376 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12380 sys_lib_dlsearch_path_spec='/usr/lib'
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386 soname_spec='${libname}${release}${shared_ext}$major'
12387 shlibpath_var=LD_LIBRARY_PATH
12394 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12395 echo "${ECHO_T}$dynamic_linker" >&6
12396 test "$dynamic_linker" = no && can_build_shared=no
12398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12399 if test "$GCC" = yes; then
12400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12403 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12404 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12405 hardcode_action_CXX=
12406 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12407 test -n "$runpath_var_CXX" || \
12408 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12410 # We can hardcode non-existant directories.
12411 if test "$hardcode_direct_CXX" != no &&
12412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12413 # have to relink, otherwise we might link with an installed library
12414 # when we should be linking with a yet-to-be-installed one
12415 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12416 test "$hardcode_minus_L_CXX" != no; then
12417 # Linking always hardcodes the temporary library directory.
12418 hardcode_action_CXX=relink
12420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12421 hardcode_action_CXX=immediate
12424 # We cannot hardcode anything, or else we can only hardcode existing
12426 hardcode_action_CXX=unsupported
12428 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12429 echo "${ECHO_T}$hardcode_action_CXX" >&6
12431 if test "$hardcode_action_CXX" = relink; then
12432 # Fast installation is not supported
12433 enable_fast_install=no
12434 elif test "$shlibpath_overrides_runpath" = yes ||
12435 test "$enable_shared" = no; then
12436 # Fast installation is not necessary
12437 enable_fast_install=needless
12441 # The else clause should only fire when bootstrapping the
12442 # libtool distribution, otherwise you forgot to ship ltmain.sh
12443 # with your package, and you will get complaints that there are
12444 # no rules to generate ltmain.sh.
12445 if test -f "$ltmain"; then
12446 # See if we are running on zsh, and set the options which allow our commands through
12447 # without removal of \ escapes.
12448 if test -n "${ZSH_VERSION+set}" ; then
12449 setopt NO_GLOB_SUBST
12451 # Now quote all the things that may contain metacharacters while being
12452 # careful not to overquote the AC_SUBSTed values. We take copies of the
12453 # variables and quote the copies for generation of the libtool script.
12454 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12456 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12457 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12458 deplibs_check_method reload_flag reload_cmds need_locks \
12459 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12460 lt_cv_sys_global_symbol_to_c_name_address \
12461 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12462 old_postinstall_cmds old_postuninstall_cmds \
12466 lt_prog_compiler_wl_CXX \
12467 lt_prog_compiler_pic_CXX \
12468 lt_prog_compiler_static_CXX \
12469 lt_prog_compiler_no_builtin_flag_CXX \
12470 export_dynamic_flag_spec_CXX \
12471 thread_safe_flag_spec_CXX \
12472 whole_archive_flag_spec_CXX \
12473 enable_shared_with_static_runtimes_CXX \
12474 old_archive_cmds_CXX \
12475 old_archive_from_new_cmds_CXX \
12476 predep_objects_CXX \
12477 postdep_objects_CXX \
12480 compiler_lib_search_path_CXX \
12482 archive_expsym_cmds_CXX \
12483 postinstall_cmds_CXX \
12484 postuninstall_cmds_CXX \
12485 old_archive_from_expsyms_cmds_CXX \
12486 allow_undefined_flag_CXX \
12487 no_undefined_flag_CXX \
12488 export_symbols_cmds_CXX \
12489 hardcode_libdir_flag_spec_CXX \
12490 hardcode_libdir_flag_spec_ld_CXX \
12491 hardcode_libdir_separator_CXX \
12492 hardcode_automatic_CXX \
12494 module_expsym_cmds_CXX \
12495 lt_cv_prog_compiler_c_o_CXX \
12496 exclude_expsyms_CXX \
12497 include_expsyms_CXX; do
12500 old_archive_cmds_CXX | \
12501 old_archive_from_new_cmds_CXX | \
12502 archive_cmds_CXX | \
12503 archive_expsym_cmds_CXX | \
12504 module_cmds_CXX | \
12505 module_expsym_cmds_CXX | \
12506 old_archive_from_expsyms_cmds_CXX | \
12507 export_symbols_cmds_CXX | \
12508 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12509 postinstall_cmds | postuninstall_cmds | \
12510 old_postinstall_cmds | old_postuninstall_cmds | \
12511 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12512 # Double-quote double-evaled strings.
12513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12522 *'\$0 --fallback-echo"')
12523 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12529 cat <<__EOF__ >> "$cfgfile"
12530 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12532 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12534 # Shell to use when invoking shell scripts.
12537 # Whether or not to build shared libraries.
12538 build_libtool_libs=$enable_shared
12540 # Whether or not to build static libraries.
12541 build_old_libs=$enable_static
12543 # Whether or not to add -lc for building shared libraries.
12544 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12546 # Whether or not to disallow shared libs when runtime libs are static
12547 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12549 # Whether or not to optimize for fast installation.
12550 fast_install=$enable_fast_install
12553 host_alias=$host_alias
12557 # The build system.
12558 build_alias=$build_alias
12562 # An echo program that does not interpret backslashes.
12567 AR_FLAGS=$lt_AR_FLAGS
12572 # LTCC compiler flags.
12573 LTCFLAGS=$lt_LTCFLAGS
12575 # A language-specific compiler.
12576 CC=$lt_compiler_CXX
12578 # Is the compiler the GNU C compiler?
12584 # The linker used to build libraries.
12587 # Whether we need hard or soft links.
12590 # A BSD-compatible nm program.
12593 # A symbol stripping program
12596 # Used to examine libraries when file_magic_cmd begins "file"
12597 MAGIC_CMD=$MAGIC_CMD
12599 # Used on cygwin: DLL creation program.
12602 # Used on cygwin: object dumper.
12605 # Used on cygwin: assembler.
12608 # The name of the directory that contains temporary libtool files.
12611 # How to create reloadable object files.
12612 reload_flag=$lt_reload_flag
12613 reload_cmds=$lt_reload_cmds
12615 # How to pass a linker flag through the compiler.
12616 wl=$lt_lt_prog_compiler_wl_CXX
12618 # Object file suffix (normally "o").
12619 objext="$ac_objext"
12621 # Old archive suffix (normally "a").
12624 # Shared library suffix (normally ".so").
12625 shrext_cmds='$shrext_cmds'
12627 # Executable file suffix (normally "").
12630 # Additional compiler flags for building library objects.
12631 pic_flag=$lt_lt_prog_compiler_pic_CXX
12634 # What is the maximum length of a command?
12635 max_cmd_len=$lt_cv_sys_max_cmd_len
12637 # Does compiler simultaneously support -c and -o options?
12638 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12640 # Must we lock files when doing compilation?
12641 need_locks=$lt_need_locks
12643 # Do we need the lib prefix for modules?
12644 need_lib_prefix=$need_lib_prefix
12646 # Do we need a version for libraries?
12647 need_version=$need_version
12649 # Whether dlopen is supported.
12650 dlopen_support=$enable_dlopen
12652 # Whether dlopen of programs is supported.
12653 dlopen_self=$enable_dlopen_self
12655 # Whether dlopen of statically linked programs is supported.
12656 dlopen_self_static=$enable_dlopen_self_static
12658 # Compiler flag to prevent dynamic linking.
12659 link_static_flag=$lt_lt_prog_compiler_static_CXX
12661 # Compiler flag to turn off builtin functions.
12662 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12664 # Compiler flag to allow reflexive dlopens.
12665 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12667 # Compiler flag to generate shared objects directly from archives.
12668 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12670 # Compiler flag to generate thread-safe objects.
12671 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12673 # Library versioning type.
12674 version_type=$version_type
12676 # Format of library name prefix.
12677 libname_spec=$lt_libname_spec
12679 # List of archive names. First name is the real one, the rest are links.
12680 # The last name is the one that the linker finds with -lNAME.
12681 library_names_spec=$lt_library_names_spec
12683 # The coded name of the library, if different from the real name.
12684 soname_spec=$lt_soname_spec
12686 # Commands used to build and install an old-style archive.
12688 old_archive_cmds=$lt_old_archive_cmds_CXX
12689 old_postinstall_cmds=$lt_old_postinstall_cmds
12690 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12692 # Create an old-style archive from a shared archive.
12693 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12695 # Create a temporary old-style archive to link instead of a shared archive.
12696 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12698 # Commands used to build and install a shared archive.
12699 archive_cmds=$lt_archive_cmds_CXX
12700 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12701 postinstall_cmds=$lt_postinstall_cmds
12702 postuninstall_cmds=$lt_postuninstall_cmds
12704 # Commands used to build a loadable module (assumed same as above if empty)
12705 module_cmds=$lt_module_cmds_CXX
12706 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12708 # Commands to strip libraries.
12709 old_striplib=$lt_old_striplib
12710 striplib=$lt_striplib
12712 # Dependencies to place before the objects being linked to create a
12714 predep_objects=$lt_predep_objects_CXX
12716 # Dependencies to place after the objects being linked to create a
12718 postdep_objects=$lt_postdep_objects_CXX
12720 # Dependencies to place before the objects being linked to create a
12722 predeps=$lt_predeps_CXX
12724 # Dependencies to place after the objects being linked to create a
12726 postdeps=$lt_postdeps_CXX
12728 # The library search path used internally by the compiler when linking
12729 # a shared library.
12730 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12732 # Method to check whether dependent libraries are shared objects.
12733 deplibs_check_method=$lt_deplibs_check_method
12735 # Command to use when deplibs_check_method == file_magic.
12736 file_magic_cmd=$lt_file_magic_cmd
12738 # Flag that allows shared libraries with undefined symbols to be built.
12739 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12741 # Flag that forces no undefined symbols.
12742 no_undefined_flag=$lt_no_undefined_flag_CXX
12744 # Commands used to finish a libtool library installation in a directory.
12745 finish_cmds=$lt_finish_cmds
12747 # Same as above, but a single script fragment to be evaled but not shown.
12748 finish_eval=$lt_finish_eval
12750 # Take the output of nm and produce a listing of raw symbols and C names.
12751 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12753 # Transform the output of nm in a proper C declaration
12754 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12756 # Transform the output of nm in a C name address pair
12757 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12759 # This is the shared library runtime path variable.
12760 runpath_var=$runpath_var
12762 # This is the shared library path variable.
12763 shlibpath_var=$shlibpath_var
12765 # Is shlibpath searched before the hard-coded library search path?
12766 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12768 # How to hardcode a shared library path into an executable.
12769 hardcode_action=$hardcode_action_CXX
12771 # Whether we should hardcode library paths into libraries.
12772 hardcode_into_libs=$hardcode_into_libs
12774 # Flag to hardcode \$libdir into a binary during linking.
12775 # This must work even if \$libdir does not exist.
12776 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12778 # If ld is used when linking, flag to hardcode \$libdir into
12779 # a binary during linking. This must work even if \$libdir does
12781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12783 # Whether we need a single -rpath flag with a separated argument.
12784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12786 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12787 # resulting binary.
12788 hardcode_direct=$hardcode_direct_CXX
12790 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12791 # resulting binary.
12792 hardcode_minus_L=$hardcode_minus_L_CXX
12794 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12795 # the resulting binary.
12796 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12798 # Set to yes if building a shared library automatically hardcodes DIR into the library
12799 # and all subsequent libraries and executables linked against it.
12800 hardcode_automatic=$hardcode_automatic_CXX
12802 # Variables whose values should be saved in libtool wrapper scripts and
12803 # restored at relink time.
12804 variables_saved_for_relink="$variables_saved_for_relink"
12806 # Whether libtool must link a program against all its dependency libraries.
12807 link_all_deplibs=$link_all_deplibs_CXX
12809 # Compile-time system search path for libraries
12810 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12812 # Run-time system search path for libraries
12813 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12815 # Fix the shell variable \$srcfile for the compiler.
12816 fix_srcfile_path="$fix_srcfile_path_CXX"
12818 # Set to yes if exported symbols are required.
12819 always_export_symbols=$always_export_symbols_CXX
12821 # The commands to list exported symbols.
12822 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12824 # The commands to extract the exported symbol list from a shared archive.
12825 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12827 # Symbols that should not be listed in the preloaded symbols.
12828 exclude_expsyms=$lt_exclude_expsyms_CXX
12830 # Symbols that must always be exported.
12831 include_expsyms=$lt_include_expsyms_CXX
12833 # ### END LIBTOOL TAG CONFIG: $tagname
12839 # If there is no Makefile yet, we rely on a make rule to execute
12840 # `config.status --recheck' to rerun these tests and create the
12841 # libtool script then.
12842 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12843 if test -f "$ltmain_in"; then
12844 test -f Makefile && make "$ltmain"
12850 ac_cpp='$CPP $CPPFLAGS'
12851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12859 with_gnu_ldcxx=$with_gnu_ld
12860 with_gnu_ld=$lt_save_with_gnu_ld
12861 lt_cv_path_LDCXX=$lt_cv_path_LD
12862 lt_cv_path_LD=$lt_save_path_LD
12863 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12864 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12872 if test -n "$F77" && test "X$F77" != "Xno"; then
12875 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12876 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12880 archive_cmds_need_lc_F77=no
12881 allow_undefined_flag_F77=
12882 always_export_symbols_F77=no
12883 archive_expsym_cmds_F77=
12884 export_dynamic_flag_spec_F77=
12885 hardcode_direct_F77=no
12886 hardcode_libdir_flag_spec_F77=
12887 hardcode_libdir_flag_spec_ld_F77=
12888 hardcode_libdir_separator_F77=
12889 hardcode_minus_L_F77=no
12890 hardcode_automatic_F77=no
12892 module_expsym_cmds_F77=
12893 link_all_deplibs_F77=unknown
12894 old_archive_cmds_F77=$old_archive_cmds
12895 no_undefined_flag_F77=
12896 whole_archive_flag_spec_F77=
12897 enable_shared_with_static_runtimes_F77=no
12899 # Source file extension for f77 test sources.
12902 # Object file extension for compiled f77 test sources.
12906 # Code to be used in simple compile tests
12907 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12909 # Code to be used in simple link tests
12910 lt_simple_link_test_code=" program t\n end\n"
12912 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12914 # If no C compiler was specified, use CC.
12917 # If no C compiler flags were specified, use CFLAGS.
12918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12920 # Allow CC to be a program name with arguments.
12924 # save warnings/boilerplate of simple test code
12925 ac_outfile=conftest.$ac_objext
12926 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12928 _lt_compiler_boilerplate=`cat conftest.err`
12931 ac_outfile=conftest.$ac_objext
12932 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12934 _lt_linker_boilerplate=`cat conftest.err`
12938 # Allow CC to be a program name with arguments.
12943 for cc_temp in $compiler""; do
12945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12951 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12954 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12955 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12956 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12957 echo "${ECHO_T}$can_build_shared" >&6
12959 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12960 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12961 test "$can_build_shared" = "no" && enable_shared=no
12963 # On AIX, shared libraries and static libraries use the same namespace, and
12964 # are all built from PIC.
12967 test "$enable_shared" = yes && enable_static=no
12968 if test -n "$RANLIB"; then
12969 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12970 postinstall_cmds='$RANLIB $lib'
12974 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12975 test "$enable_shared" = yes && enable_static=no
12979 echo "$as_me:$LINENO: result: $enable_shared" >&5
12980 echo "${ECHO_T}$enable_shared" >&6
12982 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12983 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12984 # Make sure either enable_shared or enable_static is yes.
12985 test "$enable_shared" = yes || enable_static=yes
12986 echo "$as_me:$LINENO: result: $enable_static" >&5
12987 echo "${ECHO_T}$enable_static" >&6
12992 lt_prog_compiler_wl_F77=
12993 lt_prog_compiler_pic_F77=
12994 lt_prog_compiler_static_F77=
12996 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12997 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12999 if test "$GCC" = yes; then
13000 lt_prog_compiler_wl_F77='-Wl,'
13001 lt_prog_compiler_static_F77='-static'
13005 # All AIX code is PIC.
13006 if test "$host_cpu" = ia64; then
13007 # AIX 5 now supports IA64 processor
13008 lt_prog_compiler_static_F77='-Bstatic'
13013 # FIXME: we need at least 68020 code to build shared libraries, but
13014 # adding the `-m68020' flag to GCC prevents building anything better,
13016 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13019 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13020 # PIC is the default for these OSes.
13023 mingw* | pw32* | os2*)
13024 # This hack is so that the source file can tell whether it is being
13025 # built for inclusion in a dll (and should export symbols for example).
13026 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13029 darwin* | rhapsody*)
13030 # PIC is the default on this platform
13031 # Common symbols not allowed in MH_DYLIB files
13032 lt_prog_compiler_pic_F77='-fno-common'
13036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13037 # Instead, we relocate shared libraries at runtime.
13041 # Just because we use GCC doesn't mean we suddenly get shared libraries
13042 # on systems that don't support them.
13043 lt_prog_compiler_can_build_shared_F77=no
13048 if test -d /usr/nec; then
13049 lt_prog_compiler_pic_F77=-Kconform_pic
13054 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13055 # not for PA HP-UX.
13061 lt_prog_compiler_pic_F77='-fPIC'
13067 lt_prog_compiler_pic_F77='-fPIC'
13071 # PORTME Check for flag to pass linker flags through the system compiler.
13074 lt_prog_compiler_wl_F77='-Wl,'
13075 if test "$host_cpu" = ia64; then
13076 # AIX 5 now supports IA64 processor
13077 lt_prog_compiler_static_F77='-Bstatic'
13079 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13083 # PIC is the default on this platform
13084 # Common symbols not allowed in MH_DYLIB files
13085 case $cc_basename in
13087 lt_prog_compiler_pic_F77='-qnocommon'
13088 lt_prog_compiler_wl_F77='-Wl,'
13093 mingw* | pw32* | os2*)
13094 # This hack is so that the source file can tell whether it is being
13095 # built for inclusion in a dll (and should export symbols for example).
13096 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13099 hpux9* | hpux10* | hpux11*)
13100 lt_prog_compiler_wl_F77='-Wl,'
13101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13102 # not for PA HP-UX.
13108 lt_prog_compiler_pic_F77='+Z'
13111 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13112 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13115 irix5* | irix6* | nonstopux*)
13116 lt_prog_compiler_wl_F77='-Wl,'
13117 # PIC (with -KPIC) is the default.
13118 lt_prog_compiler_static_F77='-non_shared'
13122 lt_prog_compiler_pic_F77='-KPIC'
13123 lt_prog_compiler_static_F77='-Bstatic'
13127 case $cc_basename in
13129 lt_prog_compiler_wl_F77='-Wl,'
13130 lt_prog_compiler_pic_F77='-KPIC'
13131 lt_prog_compiler_static_F77='-static'
13133 pgcc* | pgf77* | pgf90* | pgf95*)
13134 # Portland Group compilers (*not* the Pentium gcc compiler,
13135 # which looks to be a dead project)
13136 lt_prog_compiler_wl_F77='-Wl,'
13137 lt_prog_compiler_pic_F77='-fpic'
13138 lt_prog_compiler_static_F77='-Bstatic'
13141 lt_prog_compiler_wl_F77='-Wl,'
13142 # All Alpha code is PIC.
13143 lt_prog_compiler_static_F77='-non_shared'
13148 osf3* | osf4* | osf5*)
13149 lt_prog_compiler_wl_F77='-Wl,'
13150 # All OSF/1 code is PIC.
13151 lt_prog_compiler_static_F77='-non_shared'
13155 lt_prog_compiler_pic_F77='-KPIC'
13156 lt_prog_compiler_static_F77='-Bstatic'
13157 case $cc_basename in
13158 f77* | f90* | f95*)
13159 lt_prog_compiler_wl_F77='-Qoption ld ';;
13161 lt_prog_compiler_wl_F77='-Wl,';;
13166 lt_prog_compiler_wl_F77='-Qoption ld '
13167 lt_prog_compiler_pic_F77='-PIC'
13168 lt_prog_compiler_static_F77='-Bstatic'
13171 sysv4 | sysv4.2uw2* | sysv4.3*)
13172 lt_prog_compiler_wl_F77='-Wl,'
13173 lt_prog_compiler_pic_F77='-KPIC'
13174 lt_prog_compiler_static_F77='-Bstatic'
13178 if test -d /usr/nec ;then
13179 lt_prog_compiler_pic_F77='-Kconform_pic'
13180 lt_prog_compiler_static_F77='-Bstatic'
13184 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13185 lt_prog_compiler_wl_F77='-Wl,'
13186 lt_prog_compiler_pic_F77='-KPIC'
13187 lt_prog_compiler_static_F77='-Bstatic'
13191 lt_prog_compiler_wl_F77='-Wl,'
13192 lt_prog_compiler_can_build_shared_F77=no
13196 lt_prog_compiler_pic_F77='-pic'
13197 lt_prog_compiler_static_F77='-Bstatic'
13201 lt_prog_compiler_can_build_shared_F77=no
13206 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13207 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13210 # Check to make sure the PIC flag actually works.
13212 if test -n "$lt_prog_compiler_pic_F77"; then
13214 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13215 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13216 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 lt_prog_compiler_pic_works_F77=no
13220 ac_outfile=conftest.$ac_objext
13221 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13222 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13223 # Insert the option either (1) after the last *FLAGS variable, or
13224 # (2) before a word containing "conftest.", or (3) at the end.
13225 # Note that $ac_compile itself does not contain backslashes and begins
13226 # with a dollar sign (not a hyphen), so the echo should work correctly.
13227 # The option is referenced via a variable to avoid confusing sed.
13228 lt_compile=`echo "$ac_compile" | $SED \
13229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13231 -e 's:$: $lt_compiler_flag:'`
13232 (eval echo "\"\$as_me:13232: $lt_compile\"" >&5)
13233 (eval "$lt_compile" 2>conftest.err)
13235 cat conftest.err >&5
13236 echo "$as_me:13236: \$? = $ac_status" >&5
13237 if (exit $ac_status) && test -s "$ac_outfile"; then
13238 # The compiler can only warn and ignore the option if not recognized
13239 # So say no if there are warnings other than the usual output.
13240 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13242 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13243 lt_prog_compiler_pic_works_F77=yes
13249 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13250 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13252 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13253 case $lt_prog_compiler_pic_F77 in
13255 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13258 lt_prog_compiler_pic_F77=
13259 lt_prog_compiler_can_build_shared_F77=no
13264 # For platforms which do not support PIC, -DPIC is meaningless:
13266 lt_prog_compiler_pic_F77=
13269 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13274 # Check to make sure the static flag actually works.
13276 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13277 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13278 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13279 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 lt_prog_compiler_static_works_F77=no
13283 save_LDFLAGS="$LDFLAGS"
13284 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13285 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13286 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13287 # The linker can only warn and ignore the option if not recognized
13288 # So say no if there are warnings
13289 if test -s conftest.err; then
13290 # Append any errors to the config.log.
13291 cat conftest.err 1>&5
13292 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13294 if diff conftest.exp conftest.er2 >/dev/null; then
13295 lt_prog_compiler_static_works_F77=yes
13298 lt_prog_compiler_static_works_F77=yes
13302 LDFLAGS="$save_LDFLAGS"
13305 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13306 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13308 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13311 lt_prog_compiler_static_F77=
13315 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13316 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13317 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13320 lt_cv_prog_compiler_c_o_F77=no
13321 $rm -r conftest 2>/dev/null
13325 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13327 lt_compiler_flag="-o out/conftest2.$ac_objext"
13328 # Insert the option either (1) after the last *FLAGS variable, or
13329 # (2) before a word containing "conftest.", or (3) at the end.
13330 # Note that $ac_compile itself does not contain backslashes and begins
13331 # with a dollar sign (not a hyphen), so the echo should work correctly.
13332 lt_compile=`echo "$ac_compile" | $SED \
13333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13335 -e 's:$: $lt_compiler_flag:'`
13336 (eval echo "\"\$as_me:13336: $lt_compile\"" >&5)
13337 (eval "$lt_compile" 2>out/conftest.err)
13339 cat out/conftest.err >&5
13340 echo "$as_me:13340: \$? = $ac_status" >&5
13341 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13343 # The compiler can only warn and ignore the option if not recognized
13344 # So say no if there are warnings
13345 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13346 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13347 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13348 lt_cv_prog_compiler_c_o_F77=yes
13353 # SGI C++ compiler will create directory out/ii_files/ for
13354 # template instantiation
13355 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13356 $rm out/* && rmdir out
13362 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13363 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13366 hard_links="nottested"
13367 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13368 # do not overwrite the value of need_locks provided by the user
13369 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13370 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13373 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13375 ln conftest.a conftest.b 2>&5 || hard_links=no
13376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13377 echo "$as_me:$LINENO: result: $hard_links" >&5
13378 echo "${ECHO_T}$hard_links" >&6
13379 if test "$hard_links" = no; then
13380 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13381 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13388 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13389 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13392 allow_undefined_flag_F77=
13393 enable_shared_with_static_runtimes_F77=no
13395 archive_expsym_cmds_F77=
13396 old_archive_From_new_cmds_F77=
13397 old_archive_from_expsyms_cmds_F77=
13398 export_dynamic_flag_spec_F77=
13399 whole_archive_flag_spec_F77=
13400 thread_safe_flag_spec_F77=
13401 hardcode_libdir_flag_spec_F77=
13402 hardcode_libdir_flag_spec_ld_F77=
13403 hardcode_libdir_separator_F77=
13404 hardcode_direct_F77=no
13405 hardcode_minus_L_F77=no
13406 hardcode_shlibpath_var_F77=unsupported
13407 link_all_deplibs_F77=unknown
13408 hardcode_automatic_F77=no
13410 module_expsym_cmds_F77=
13411 always_export_symbols_F77=no
13412 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13413 # include_expsyms should be a list of space-separated symbols to be *always*
13414 # included in the symbol list
13415 include_expsyms_F77=
13416 # exclude_expsyms can be an extended regexp of symbols to exclude
13417 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13418 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13419 # as well as any symbol that contains `d'.
13420 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13421 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13422 # platforms (ab)use it in PIC code, but their linkers get confused if
13423 # the symbol is explicitly referenced. Since portable code cannot
13424 # rely on this symbol name, it's probably fine to never include it in
13425 # preloaded symbol tables.
13426 extract_expsyms_cmds=
13427 # Just being paranoid about ensuring that cc_basename is set.
13428 for cc_temp in $compiler""; do
13430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13436 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13439 cygwin* | mingw* | pw32*)
13440 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13441 # When not using gcc, we currently assume that we are using
13442 # Microsoft Visual C++.
13443 if test "$GCC" != yes; then
13448 # we just hope/assume this is gcc and not c89 (= MSVC++)
13457 if test "$with_gnu_ld" = yes; then
13458 # If archive_cmds runs LD, not CC, wlarc should be empty
13461 # Set some defaults for GNU ld with shared library support. These
13462 # are reset later if shared libraries are not supported. Putting them
13463 # here allows them to be overridden if necessary.
13464 runpath_var=LD_RUN_PATH
13465 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13466 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13467 # ancient GNU ld didn't support --whole-archive et. al.
13468 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13469 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13471 whole_archive_flag_spec_F77=
13473 supports_anon_versioning=no
13474 case `$LD -v 2>/dev/null` in
13475 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13476 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13477 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13478 *\ 2.11.*) ;; # other 2.11 versions
13479 *) supports_anon_versioning=yes ;;
13482 # See if GNU ld supports shared libraries.
13484 aix3* | aix4* | aix5*)
13485 # On AIX/PPC, the GNU linker is very broken
13486 if test "$host_cpu" != ia64; then
13490 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13491 *** to be unable to reliably create shared libraries on AIX.
13492 *** Therefore, libtool is disabling shared libraries support. If you
13493 *** really care for shared libraries, you may want to modify your PATH
13494 *** so that a non-GNU linker is found, and then restart.
13501 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)'
13502 hardcode_libdir_flag_spec_F77='-L$libdir'
13503 hardcode_minus_L_F77=yes
13505 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13506 # that the semantics of dynamic libraries on AmigaOS, at least up
13507 # to version 4, is to share data among multiple programs linked
13508 # with the same dynamic library. Since this doesn't match the
13509 # behavior of shared libraries on other platforms, we can't use
13515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13516 allow_undefined_flag_F77=unsupported
13517 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13518 # support --undefined. This deserves some investigation. FIXME
13519 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13525 cygwin* | mingw* | pw32*)
13526 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13527 # as there is no search path for DLLs.
13528 hardcode_libdir_flag_spec_F77='-L$libdir'
13529 allow_undefined_flag_F77=unsupported
13530 always_export_symbols_F77=no
13531 enable_shared_with_static_runtimes_F77=yes
13532 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13534 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13535 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13536 # If the export-symbols file already is a .def file (1st line
13537 # is EXPORTS), use it as is; otherwise, prepend...
13538 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13539 cp $export_symbols $output_objdir/$soname.def;
13541 echo EXPORTS > $output_objdir/$soname.def;
13542 cat $export_symbols >> $output_objdir/$soname.def;
13544 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13551 hardcode_direct_F77=no
13552 hardcode_shlibpath_var_F77=no
13553 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13554 export_dynamic_flag_spec_F77='${wl}-E'
13555 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13556 # Instead, shared libraries are loaded at an image base (0x10000000 by
13557 # default) and relocated if they conflict, which is a slow very memory
13558 # consuming and fragmenting process. To avoid this, we pick a random,
13559 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13560 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13561 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'
13562 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'
13566 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13568 case $cc_basename,$host_cpu in
13569 pgcc*) # Portland Group C compiler
13570 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'
13571 tmp_addflag=' $pic_flag'
13573 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13574 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'
13575 tmp_addflag=' $pic_flag -Mnomain' ;;
13576 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13577 tmp_addflag=' -i_dynamic' ;;
13578 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13579 tmp_addflag=' -i_dynamic -nofor_main' ;;
13580 ifc* | ifort*) # Intel Fortran compiler
13581 tmp_addflag=' -nofor_main' ;;
13583 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13585 if test $supports_anon_versioning = yes; then
13586 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13588 $echo "local: *; };" >> $output_objdir/$libname.ver~
13589 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13598 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13601 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13602 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13607 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13611 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13612 *** create shared libraries on Solaris systems. Therefore, libtool
13613 *** is disabling shared libraries support. We urge you to upgrade GNU
13614 *** binutils to release 2.9.1 or newer. Another option is to modify
13615 *** your PATH or compiler configuration so that the native linker is
13616 *** used, and then restart.
13619 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13620 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13621 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13628 case `$LD -v 2>&1` in
13629 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13633 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13634 *** reliably create shared libraries on SCO systems. Therefore, libtool
13635 *** is disabling shared libraries support. We urge you to upgrade GNU
13636 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13637 *** your PATH or compiler configuration so that the native linker is
13638 *** used, and then restart.
13643 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13644 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13645 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13646 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13655 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13657 hardcode_direct_F77=yes
13658 hardcode_shlibpath_var_F77=no
13662 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13663 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13664 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13671 if test "$ld_shlibs_F77" = no; then
13673 hardcode_libdir_flag_spec_F77=
13674 export_dynamic_flag_spec_F77=
13675 whole_archive_flag_spec_F77=
13678 # PORTME fill in a description of your system's linker (not GNU ld)
13681 allow_undefined_flag_F77=unsupported
13682 always_export_symbols_F77=yes
13683 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'
13684 # Note: this linker hardcodes the directories in LIBPATH if there
13685 # are no directories specified by -L.
13686 hardcode_minus_L_F77=yes
13687 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13688 # Neither direct hardcoding nor static linking is supported with a
13690 hardcode_direct_F77=unsupported
13695 if test "$host_cpu" = ia64; then
13696 # On IA64, the linker does run time linking by default, so we don't
13697 # have to do anything special.
13698 aix_use_runtimelinking=no
13699 exp_sym_flag='-Bexport'
13702 # If we're using GNU nm, then we don't want the "-C" option.
13703 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13704 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13705 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'
13707 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'
13709 aix_use_runtimelinking=no
13711 # Test if we are trying to use run time linking or normal
13712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13713 # need to do runtime linking.
13714 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13715 for ld_flag in $LDFLAGS; do
13716 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13717 aix_use_runtimelinking=yes
13724 exp_sym_flag='-bexport'
13725 no_entry_flag='-bnoentry'
13728 # When large executables or shared objects are built, AIX ld can
13729 # have problems creating the table of contents. If linking a library
13730 # or program results in "error TOC overflow" add -mminimal-toc to
13731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13734 archive_cmds_F77=''
13735 hardcode_direct_F77=yes
13736 hardcode_libdir_separator_F77=':'
13737 link_all_deplibs_F77=yes
13739 if test "$GCC" = yes; then
13740 case $host_os in aix4.[012]|aix4.[012].*)
13741 # We only want to do this on AIX 4.2 and lower, the check
13742 # below for broken collect2 doesn't work under 4.3+
13743 collect2name=`${CC} -print-prog-name=collect2`
13744 if test -f "$collect2name" && \
13745 strings "$collect2name" | grep resolve_lib_name >/dev/null
13747 # We have reworked collect2
13748 hardcode_direct_F77=yes
13750 # We have old collect2
13751 hardcode_direct_F77=unsupported
13752 # It fails to find uninstalled libraries when the uninstalled
13753 # path is not listed in the libpath. Setting hardcode_minus_L
13754 # to unsupported forces relinking
13755 hardcode_minus_L_F77=yes
13756 hardcode_libdir_flag_spec_F77='-L$libdir'
13757 hardcode_libdir_separator_F77=
13761 shared_flag='-shared'
13762 if test "$aix_use_runtimelinking" = yes; then
13763 shared_flag="$shared_flag "'${wl}-G'
13767 if test "$host_cpu" = ia64; then
13768 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13769 # chokes on -Wl,-G. The following line is correct:
13772 if test "$aix_use_runtimelinking" = yes; then
13773 shared_flag='${wl}-G'
13775 shared_flag='${wl}-bM:SRE'
13780 # It seems that -bexpall does not export symbols beginning with
13781 # underscore (_), so it is better to generate a list of symbols to export.
13782 always_export_symbols_F77=yes
13783 if test "$aix_use_runtimelinking" = yes; then
13784 # Warning - without using the other runtime loading flags (-brtl),
13785 # -berok will link without error, but may produce a broken library.
13786 allow_undefined_flag_F77='-berok'
13787 # Determine the default libpath from the value encoded in an empty executable.
13788 cat >conftest.$ac_ext <<_ACEOF
13793 rm -f conftest.$ac_objext conftest$ac_exeext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13795 (eval $ac_link) 2>conftest.er1
13797 grep -v '^ *+' conftest.er1 >conftest.err
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -z "$ac_f77_werror_flag"
13803 || test ! -s conftest.err'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest$ac_exeext'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13818 # Check for a 64-bit object if we didn't find anything.
13819 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; }
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13826 rm -f conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext conftest.$ac_ext
13828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13830 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13831 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"
13833 if test "$host_cpu" = ia64; then
13834 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13835 allow_undefined_flag_F77="-z nodefs"
13836 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"
13838 # Determine the default libpath from the value encoded in an empty executable.
13839 cat >conftest.$ac_ext <<_ACEOF
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_f77_werror_flag"
13854 || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest$ac_exeext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13867 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13869 # Check for a 64-bit object if we didn't find anything.
13870 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; }
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13877 rm -f conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13881 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13882 # Warning - without using the other run time loading flags,
13883 # -berok will link without error, but may produce a broken library.
13884 no_undefined_flag_F77=' ${wl}-bernotok'
13885 allow_undefined_flag_F77=' ${wl}-berok'
13886 # Exported symbols can be pulled into shared objects from archives
13887 whole_archive_flag_spec_F77='$convenience'
13888 archive_cmds_need_lc_F77=yes
13889 # This is similar to how AIX traditionally builds its shared libraries.
13890 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'
13896 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)'
13897 hardcode_libdir_flag_spec_F77='-L$libdir'
13898 hardcode_minus_L_F77=yes
13899 # see comment about different semantics on the GNU ld section
13904 export_dynamic_flag_spec_F77=-rdynamic
13907 cygwin* | mingw* | pw32*)
13908 # When not using gcc, we currently assume that we are using
13909 # Microsoft Visual C++.
13910 # hardcode_libdir_flag_spec is actually meaningless, as there is
13911 # no search path for DLLs.
13912 hardcode_libdir_flag_spec_F77=' '
13913 allow_undefined_flag_F77=unsupported
13914 # Tell ltmain to make .lib files, not .a files.
13916 # Tell ltmain to make .dll files, not .so files.
13918 # FIXME: Setting linknames here is a bad hack.
13919 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13920 # The linker will automatically build a .lib file if we build a DLL.
13921 old_archive_From_new_cmds_F77='true'
13922 # FIXME: Should let the user specify the lib program.
13923 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13924 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13925 enable_shared_with_static_runtimes_F77=yes
13928 darwin* | rhapsody*)
13930 rhapsody* | darwin1.[012])
13931 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13934 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13935 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13937 case ${MACOSX_DEPLOYMENT_TARGET} in
13939 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13942 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13948 archive_cmds_need_lc_F77=no
13949 hardcode_direct_F77=no
13950 hardcode_automatic_F77=yes
13951 hardcode_shlibpath_var_F77=unsupported
13952 whole_archive_flag_spec_F77=''
13953 link_all_deplibs_F77=yes
13954 if test "$GCC" = yes ; then
13955 output_verbose_link_cmd='echo'
13956 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13957 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13958 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13959 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}'
13960 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}'
13962 case $cc_basename in
13964 output_verbose_link_cmd='echo'
13965 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13966 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13967 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13968 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}'
13969 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}'
13979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13980 hardcode_libdir_flag_spec_F77='-L$libdir'
13981 hardcode_shlibpath_var_F77=no
13988 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13989 # support. Future versions do this automatically, but an explicit c++rt0.o
13990 # does not break anything, and helps significantly (at the cost of a little
13993 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13994 hardcode_libdir_flag_spec_F77='-R$libdir'
13995 hardcode_direct_F77=yes
13996 hardcode_shlibpath_var_F77=no
13999 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14001 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14002 hardcode_direct_F77=yes
14003 hardcode_minus_L_F77=yes
14004 hardcode_shlibpath_var_F77=no
14007 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14008 freebsd* | kfreebsd*-gnu | dragonfly*)
14009 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14010 hardcode_libdir_flag_spec_F77='-R$libdir'
14011 hardcode_direct_F77=yes
14012 hardcode_shlibpath_var_F77=no
14016 if test "$GCC" = yes; then
14017 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'
14019 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'
14021 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14022 hardcode_libdir_separator_F77=:
14023 hardcode_direct_F77=yes
14025 # hardcode_minus_L: Not really in the search PATH,
14026 # but as the default location of the library.
14027 hardcode_minus_L_F77=yes
14028 export_dynamic_flag_spec_F77='${wl}-E'
14032 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14033 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14035 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14037 if test "$with_gnu_ld" = no; then
14038 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14039 hardcode_libdir_separator_F77=:
14041 hardcode_direct_F77=yes
14042 export_dynamic_flag_spec_F77='${wl}-E'
14044 # hardcode_minus_L: Not really in the search PATH,
14045 # but as the default location of the library.
14046 hardcode_minus_L_F77=yes
14051 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14054 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14057 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14060 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14066 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14069 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14072 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14076 if test "$with_gnu_ld" = no; then
14077 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14078 hardcode_libdir_separator_F77=:
14082 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14083 hardcode_direct_F77=no
14084 hardcode_shlibpath_var_F77=no
14087 hardcode_direct_F77=yes
14088 export_dynamic_flag_spec_F77='${wl}-E'
14090 # hardcode_minus_L: Not really in the search PATH,
14091 # but as the default location of the library.
14092 hardcode_minus_L_F77=yes
14098 irix5* | irix6* | nonstopux*)
14099 if test "$GCC" = yes; then
14100 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'
14102 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'
14103 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14105 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14106 hardcode_libdir_separator_F77=:
14107 link_all_deplibs_F77=yes
14111 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14112 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14114 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14116 hardcode_libdir_flag_spec_F77='-R$libdir'
14117 hardcode_direct_F77=yes
14118 hardcode_shlibpath_var_F77=no
14122 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14123 hardcode_direct_F77=yes
14124 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14125 hardcode_libdir_separator_F77=:
14126 hardcode_shlibpath_var_F77=no
14130 hardcode_direct_F77=yes
14131 hardcode_shlibpath_var_F77=no
14132 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14133 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14134 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14135 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14136 export_dynamic_flag_spec_F77='${wl}-E'
14139 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14140 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14141 hardcode_libdir_flag_spec_F77='-R$libdir'
14144 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14145 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14152 hardcode_libdir_flag_spec_F77='-L$libdir'
14153 hardcode_minus_L_F77=yes
14154 allow_undefined_flag_F77=unsupported
14155 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'
14156 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14160 if test "$GCC" = yes; then
14161 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14162 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'
14164 allow_undefined_flag_F77=' -expect_unresolved \*'
14165 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'
14167 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14168 hardcode_libdir_separator_F77=:
14171 osf4* | osf5*) # as osf3* with the addition of -msym flag
14172 if test "$GCC" = yes; then
14173 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14174 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'
14175 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14177 allow_undefined_flag_F77=' -expect_unresolved \*'
14178 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'
14179 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~
14180 $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'
14182 # Both c and cxx compiler support -rpath directly
14183 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14185 hardcode_libdir_separator_F77=:
14189 no_undefined_flag_F77=' -z text'
14190 if test "$GCC" = yes; then
14192 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14193 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14194 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14197 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14198 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14199 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14201 hardcode_libdir_flag_spec_F77='-R$libdir'
14202 hardcode_shlibpath_var_F77=no
14204 solaris2.[0-5] | solaris2.[0-5].*) ;;
14206 # The compiler driver will combine linker options so we
14207 # cannot just pass the convience library names through
14208 # without $wl, iff we do not link with $LD.
14209 # Luckily, gcc supports the same syntax we need for Sun Studio.
14210 # Supported since Solaris 2.6 (maybe 2.5.1?)
14213 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14215 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' ;;
14218 link_all_deplibs_F77=yes
14222 if test "x$host_vendor" = xsequent; then
14223 # Use $CC to link under sequent, because it throws in some extra .o
14224 # files that make .init and .fini sections work.
14225 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14227 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14229 hardcode_libdir_flag_spec_F77='-L$libdir'
14230 hardcode_direct_F77=yes
14231 hardcode_minus_L_F77=yes
14232 hardcode_shlibpath_var_F77=no
14236 case $host_vendor in
14238 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14239 hardcode_direct_F77=yes # is this really true???
14242 ## LD is ld it makes a PLAMLIB
14243 ## CC just makes a GrossModule.
14244 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14245 reload_cmds_F77='$CC -r -o $output$reload_objs'
14246 hardcode_direct_F77=no
14249 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14250 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14253 runpath_var='LD_RUN_PATH'
14254 hardcode_shlibpath_var_F77=no
14258 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259 hardcode_shlibpath_var_F77=no
14260 export_dynamic_flag_spec_F77='-Bexport'
14264 if test -d /usr/nec; then
14265 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14266 hardcode_shlibpath_var_F77=no
14267 runpath_var=LD_RUN_PATH
14268 hardcode_runpath_var=yes
14273 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14274 no_undefined_flag_F77='${wl}-z,text'
14275 archive_cmds_need_lc_F77=no
14276 hardcode_shlibpath_var_F77=no
14277 runpath_var='LD_RUN_PATH'
14279 if test "$GCC" = yes; then
14280 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14281 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14283 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14284 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14288 sysv5* | sco3.2v5* | sco5v6*)
14289 # Note: We can NOT use -z defs as we might desire, because we do not
14290 # link with -lc, and that would cause any symbols used from libc to
14291 # always be unresolved, which means just about no library would
14292 # ever link correctly. If we're not using GNU ld we use -z text
14293 # though, which does catch some bad symbols but isn't as heavy-handed
14295 no_undefined_flag_F77='${wl}-z,text'
14296 allow_undefined_flag_F77='${wl}-z,nodefs'
14297 archive_cmds_need_lc_F77=no
14298 hardcode_shlibpath_var_F77=no
14299 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14300 hardcode_libdir_separator_F77=':'
14301 link_all_deplibs_F77=yes
14302 export_dynamic_flag_spec_F77='${wl}-Bexport'
14303 runpath_var='LD_RUN_PATH'
14305 if test "$GCC" = yes; then
14306 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14307 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14309 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14310 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14316 hardcode_libdir_flag_spec_F77='-L$libdir'
14317 hardcode_shlibpath_var_F77=no
14326 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14327 echo "${ECHO_T}$ld_shlibs_F77" >&6
14328 test "$ld_shlibs_F77" = no && can_build_shared=no
14331 # Do we need to explicitly link libc?
14333 case "x$archive_cmds_need_lc_F77" in
14335 # Assume -lc should be added
14336 archive_cmds_need_lc_F77=yes
14338 if test "$enable_shared" = yes && test "$GCC" = yes; then
14339 case $archive_cmds_F77 in
14341 # FIXME: we may have to deal with multi-command sequences.
14344 # Test whether the compiler implicitly links with -lc since on some
14345 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14346 # to ld, don't add -lc before -lgcc.
14347 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14348 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14350 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14353 (eval $ac_compile) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } 2>conftest.err; then
14359 libobjs=conftest.$ac_objext
14361 wl=$lt_prog_compiler_wl_F77
14362 pic_flag=$lt_prog_compiler_pic_F77
14368 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14369 allow_undefined_flag_F77=
14370 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14371 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }
14376 archive_cmds_need_lc_F77=no
14378 archive_cmds_need_lc_F77=yes
14380 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14382 cat conftest.err 1>&5
14385 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14386 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14393 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14394 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14395 library_names_spec=
14396 libname_spec='lib$name'
14400 postuninstall_cmds=
14404 shlibpath_overrides_runpath=unknown
14406 dynamic_linker="$host_os ld.so"
14407 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14408 if test "$GCC" = yes; then
14409 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14410 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14411 # if the path contains ";" then we assume it to be the separator
14412 # otherwise default to the standard path separator (i.e. ":") - it is
14413 # assumed that no part of a normal pathname contains ";" but that should
14414 # okay in the real world where ";" in dirpaths is itself problematic.
14415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14420 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14422 need_lib_prefix=unknown
14423 hardcode_into_libs=no
14425 # when you set need_version to no, make sure it does not cause -set_version
14426 # flags to be left without arguments
14427 need_version=unknown
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14433 shlibpath_var=LIBPATH
14435 # AIX 3 has no versioning support, so we append a major version to the name.
14436 soname_spec='${libname}${release}${shared_ext}$major'
14443 hardcode_into_libs=yes
14444 if test "$host_cpu" = ia64; then
14445 # AIX 5 supports IA64
14446 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14447 shlibpath_var=LD_LIBRARY_PATH
14449 # With GCC up to 2.95.x, collect2 would create an import file
14450 # for dependence libraries. The import file would start with
14451 # the line `#! .'. This would cause the generated library to
14452 # depend on `.', always an invalid library. This was fixed in
14453 # development snapshots of GCC prior to 3.0.
14455 aix4 | aix4.[01] | aix4.[01].*)
14456 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14458 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14461 can_build_shared=no
14465 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14466 # soname into executable. Probably we can add versioning support to
14467 # collect2, so additional links can be useful in future.
14468 if test "$aix_use_runtimelinking" = yes; then
14469 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14470 # instead of lib<name>.a to let people know that these are not
14471 # typical AIX shared libraries.
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474 # We preserve .a as extension for shared libraries through AIX4.2
14475 # and later when we are not doing run time linking.
14476 library_names_spec='${libname}${release}.a $libname.a'
14477 soname_spec='${libname}${release}${shared_ext}$major'
14479 shlibpath_var=LIBPATH
14484 library_names_spec='$libname.ixlibrary $libname.a'
14485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14486 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'
14490 library_names_spec='${libname}${shared_ext}'
14491 dynamic_linker="$host_os ld.so"
14492 shlibpath_var=LIBRARY_PATH
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 soname_spec='${libname}${release}${shared_ext}$major'
14500 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14503 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14504 # the default ld.so.conf also contains /usr/contrib/lib and
14505 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14506 # libtool to hard-code these into programs
14509 cygwin* | mingw* | pw32*)
14510 version_type=windows
14515 case $GCC,$host_os in
14516 yes,cygwin* | yes,mingw* | yes,pw32*)
14517 library_names_spec='$libname.dll.a'
14518 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14519 postinstall_cmds='base_file=`basename \${file}`~
14520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14521 dldir=$destdir/`dirname \$dlpath`~
14522 test -d \$dldir || mkdir -p \$dldir~
14523 $install_prog $dir/$dlname \$dldir/$dlname~
14524 chmod a+x \$dldir/$dlname'
14525 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14526 dlpath=$dir/\$dldll~
14528 shlibpath_overrides_runpath=yes
14532 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14533 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14534 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14537 # MinGW DLLs use traditional 'lib' prefix
14538 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14539 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14540 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14541 # It is most probably a Windows format PATH printed by
14542 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14543 # path with ; separators, and with drive letters. We can handle the
14544 # drive letters (cygwin fileutils understands them), so leave them,
14545 # especially as we might pass files found there to a mingw objdump,
14546 # which wouldn't understand a cygwinified path. Ahh.
14547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14553 # pw32 DLLs use 'pw' prefix rather than 'lib'
14554 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14560 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14563 dynamic_linker='Win32 ld.exe'
14564 # FIXME: first we should search . and the directory the executable is in
14568 darwin* | rhapsody*)
14569 dynamic_linker="$host_os dyld"
14570 version_type=darwin
14573 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14574 soname_spec='${libname}${release}${major}$shared_ext'
14575 shlibpath_overrides_runpath=yes
14576 shlibpath_var=DYLD_LIBRARY_PATH
14577 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14578 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14579 if test "$GCC" = yes; then
14580 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"`
14582 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14584 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 shlibpath_var=LD_LIBRARY_PATH
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14605 soname_spec='${libname}${release}${shared_ext}$major'
14606 shlibpath_var=LD_LIBRARY_PATH
14607 shlibpath_overrides_runpath=no
14608 hardcode_into_libs=yes
14609 dynamic_linker='GNU ld.so'
14612 freebsd* | dragonfly*)
14613 # DragonFly does not have aout. When/if they implement a new
14614 # versioning mechanism, adjust this.
14615 if test -x /usr/bin/objformat; then
14616 objformat=`/usr/bin/objformat`
14619 freebsd[123]*) objformat=aout ;;
14620 *) objformat=elf ;;
14623 version_type=freebsd-$objformat
14624 case $version_type in
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14635 shlibpath_var=LD_LIBRARY_PATH
14638 shlibpath_overrides_runpath=yes
14640 freebsd3.[01]* | freebsdelf3.[01]*)
14641 shlibpath_overrides_runpath=yes
14642 hardcode_into_libs=yes
14644 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14645 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14646 shlibpath_overrides_runpath=no
14647 hardcode_into_libs=yes
14649 freebsd*) # from 4.6 on
14650 shlibpath_overrides_runpath=yes
14651 hardcode_into_libs=yes
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 hardcode_into_libs=yes
14666 hpux9* | hpux10* | hpux11*)
14667 # Give a soname corresponding to the major version so that dld.sl refuses to
14668 # link against other versions.
14675 hardcode_into_libs=yes
14676 dynamic_linker="$host_os dld.so"
14677 shlibpath_var=LD_LIBRARY_PATH
14678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 if test "X$HPUX_IA64_MODE" = X32; then
14682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14684 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14690 hardcode_into_libs=yes
14691 dynamic_linker="$host_os dld.sl"
14692 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14701 dynamic_linker="$host_os dld.sl"
14702 shlibpath_var=SHLIB_PATH
14703 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705 soname_spec='${libname}${release}${shared_ext}$major'
14708 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14709 postinstall_cmds='chmod 555 $lib'
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=no
14721 hardcode_into_libs=yes
14724 irix5* | irix6* | nonstopux*)
14726 nonstopux*) version_type=nonstopux ;;
14728 if test "$lt_cv_prog_gnu_ld" = yes; then
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14739 irix5* | nonstopux*)
14740 libsuff= shlibsuff=
14743 case $LD in # libtool.m4 will add one of these switches to LD
14744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14745 libsuff= shlibsuff= libmagic=32-bit;;
14746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14747 libsuff=32 shlibsuff=N32 libmagic=N32;;
14748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14749 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14750 *) libsuff= shlibsuff= libmagic=never-match;;
14754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14755 shlibpath_overrides_runpath=no
14756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14758 hardcode_into_libs=yes
14761 # No shared lib support for Linux oldld, aout, or coff.
14762 linux*oldld* | linux*aout* | linux*coff*)
14766 # This must be Linux ELF.
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=no
14776 # This implies no fast_install, which is unacceptable.
14777 # Some rework will be needed to allow for fast_install
14778 # before this can be enabled.
14779 hardcode_into_libs=yes
14781 # find out which ABI we are using
14783 case "$host_cpu" in
14784 x86_64*|s390x*|powerpc64*)
14785 echo '#line 14785 "configure"' > conftest.$ac_ext
14786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14787 (eval $ac_compile) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; then
14791 case `/usr/bin/file conftest.$ac_objext` in
14794 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14802 # Append ld.so.conf contents to the search path
14803 if test -f /etc/ld.so.conf; then
14804 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' ' '`
14805 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14808 # We used to test for /lib/ld.so.1 and disable shared libraries on
14809 # powerpc, because MkLinux only supported shared libraries with the
14810 # GNU dynamic linker. Since this was broken with cross compilers,
14811 # most powerpc-linux boxes support dynamic linking these days and
14812 # people can always --disable-shared, the test was removed, and we
14813 # assume the GNU/Linux dynamic linker is in use.
14814 dynamic_linker='GNU/Linux ld.so'
14821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14822 soname_spec='${libname}${release}${shared_ext}$major'
14823 shlibpath_var=LD_LIBRARY_PATH
14824 shlibpath_overrides_runpath=no
14825 hardcode_into_libs=yes
14826 dynamic_linker='GNU ld.so'
14833 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14836 dynamic_linker='NetBSD (a.out) ld.so'
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14839 soname_spec='${libname}${release}${shared_ext}$major'
14840 dynamic_linker='NetBSD ld.elf_so'
14842 shlibpath_var=LD_LIBRARY_PATH
14843 shlibpath_overrides_runpath=yes
14844 hardcode_into_libs=yes
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 shlibpath_overrides_runpath=yes
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14859 soname_spec='${libname}${release}${shared_ext}$major'
14860 shlibpath_var=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath=yes
14866 sys_lib_dlsearch_path_spec="/usr/lib"
14868 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14870 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14871 *) need_version=no ;;
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14878 openbsd2.[89] | openbsd2.[89].*)
14879 shlibpath_overrides_runpath=no
14882 shlibpath_overrides_runpath=yes
14886 shlibpath_overrides_runpath=yes
14891 libname_spec='$name'
14894 library_names_spec='$libname${shared_ext} $libname.a'
14895 dynamic_linker='OS/2 ld.exe'
14896 shlibpath_var=LIBPATH
14899 osf3* | osf4* | osf5*)
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14907 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 shlibpath_var=LD_LIBRARY_PATH
14917 shlibpath_overrides_runpath=yes
14918 hardcode_into_libs=yes
14919 # ldd complains unless libraries are executable
14920 postinstall_cmds='chmod +x $lib'
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14926 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14927 shlibpath_var=LD_LIBRARY_PATH
14928 shlibpath_overrides_runpath=yes
14929 if test "$with_gnu_ld" = yes; then
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 case $host_vendor in
14942 shlibpath_overrides_runpath=no
14944 export_dynamic_flag_spec='${wl}-Blargedynsym'
14945 runpath_var=LD_RUN_PATH
14953 shlibpath_overrides_runpath=no
14954 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14960 if test -d /usr/nec ;then
14962 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14963 soname_spec='$libname${shared_ext}.$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14969 version_type=freebsd-elf
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14973 soname_spec='${libname}${release}${shared_ext}$major'
14974 shlibpath_var=LD_LIBRARY_PATH
14975 hardcode_into_libs=yes
14976 if test "$with_gnu_ld" = yes; then
14977 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14978 shlibpath_overrides_runpath=no
14980 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14981 shlibpath_overrides_runpath=yes
14984 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14988 sys_lib_dlsearch_path_spec='/usr/lib'
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 shlibpath_var=LD_LIBRARY_PATH
15002 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15003 echo "${ECHO_T}$dynamic_linker" >&6
15004 test "$dynamic_linker" = no && can_build_shared=no
15006 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15007 if test "$GCC" = yes; then
15008 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15011 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15012 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15013 hardcode_action_F77=
15014 if test -n "$hardcode_libdir_flag_spec_F77" || \
15015 test -n "$runpath_var_F77" || \
15016 test "X$hardcode_automatic_F77" = "Xyes" ; then
15018 # We can hardcode non-existant directories.
15019 if test "$hardcode_direct_F77" != no &&
15020 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15021 # have to relink, otherwise we might link with an installed library
15022 # when we should be linking with a yet-to-be-installed one
15023 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15024 test "$hardcode_minus_L_F77" != no; then
15025 # Linking always hardcodes the temporary library directory.
15026 hardcode_action_F77=relink
15028 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15029 hardcode_action_F77=immediate
15032 # We cannot hardcode anything, or else we can only hardcode existing
15034 hardcode_action_F77=unsupported
15036 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15037 echo "${ECHO_T}$hardcode_action_F77" >&6
15039 if test "$hardcode_action_F77" = relink; then
15040 # Fast installation is not supported
15041 enable_fast_install=no
15042 elif test "$shlibpath_overrides_runpath" = yes ||
15043 test "$enable_shared" = no; then
15044 # Fast installation is not necessary
15045 enable_fast_install=needless
15049 # The else clause should only fire when bootstrapping the
15050 # libtool distribution, otherwise you forgot to ship ltmain.sh
15051 # with your package, and you will get complaints that there are
15052 # no rules to generate ltmain.sh.
15053 if test -f "$ltmain"; then
15054 # See if we are running on zsh, and set the options which allow our commands through
15055 # without removal of \ escapes.
15056 if test -n "${ZSH_VERSION+set}" ; then
15057 setopt NO_GLOB_SUBST
15059 # Now quote all the things that may contain metacharacters while being
15060 # careful not to overquote the AC_SUBSTed values. We take copies of the
15061 # variables and quote the copies for generation of the libtool script.
15062 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15066 deplibs_check_method reload_flag reload_cmds need_locks \
15067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15068 lt_cv_sys_global_symbol_to_c_name_address \
15069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15070 old_postinstall_cmds old_postuninstall_cmds \
15074 lt_prog_compiler_wl_F77 \
15075 lt_prog_compiler_pic_F77 \
15076 lt_prog_compiler_static_F77 \
15077 lt_prog_compiler_no_builtin_flag_F77 \
15078 export_dynamic_flag_spec_F77 \
15079 thread_safe_flag_spec_F77 \
15080 whole_archive_flag_spec_F77 \
15081 enable_shared_with_static_runtimes_F77 \
15082 old_archive_cmds_F77 \
15083 old_archive_from_new_cmds_F77 \
15084 predep_objects_F77 \
15085 postdep_objects_F77 \
15088 compiler_lib_search_path_F77 \
15090 archive_expsym_cmds_F77 \
15091 postinstall_cmds_F77 \
15092 postuninstall_cmds_F77 \
15093 old_archive_from_expsyms_cmds_F77 \
15094 allow_undefined_flag_F77 \
15095 no_undefined_flag_F77 \
15096 export_symbols_cmds_F77 \
15097 hardcode_libdir_flag_spec_F77 \
15098 hardcode_libdir_flag_spec_ld_F77 \
15099 hardcode_libdir_separator_F77 \
15100 hardcode_automatic_F77 \
15102 module_expsym_cmds_F77 \
15103 lt_cv_prog_compiler_c_o_F77 \
15104 exclude_expsyms_F77 \
15105 include_expsyms_F77; do
15108 old_archive_cmds_F77 | \
15109 old_archive_from_new_cmds_F77 | \
15110 archive_cmds_F77 | \
15111 archive_expsym_cmds_F77 | \
15112 module_cmds_F77 | \
15113 module_expsym_cmds_F77 | \
15114 old_archive_from_expsyms_cmds_F77 | \
15115 export_symbols_cmds_F77 | \
15116 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15117 postinstall_cmds | postuninstall_cmds | \
15118 old_postinstall_cmds | old_postuninstall_cmds | \
15119 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15120 # Double-quote double-evaled strings.
15121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15130 *'\$0 --fallback-echo"')
15131 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15137 cat <<__EOF__ >> "$cfgfile"
15138 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15142 # Shell to use when invoking shell scripts.
15145 # Whether or not to build shared libraries.
15146 build_libtool_libs=$enable_shared
15148 # Whether or not to build static libraries.
15149 build_old_libs=$enable_static
15151 # Whether or not to add -lc for building shared libraries.
15152 build_libtool_need_lc=$archive_cmds_need_lc_F77
15154 # Whether or not to disallow shared libs when runtime libs are static
15155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15157 # Whether or not to optimize for fast installation.
15158 fast_install=$enable_fast_install
15161 host_alias=$host_alias
15165 # The build system.
15166 build_alias=$build_alias
15170 # An echo program that does not interpret backslashes.
15175 AR_FLAGS=$lt_AR_FLAGS
15180 # LTCC compiler flags.
15181 LTCFLAGS=$lt_LTCFLAGS
15183 # A language-specific compiler.
15184 CC=$lt_compiler_F77
15186 # Is the compiler the GNU C compiler?
15192 # The linker used to build libraries.
15195 # Whether we need hard or soft links.
15198 # A BSD-compatible nm program.
15201 # A symbol stripping program
15204 # Used to examine libraries when file_magic_cmd begins "file"
15205 MAGIC_CMD=$MAGIC_CMD
15207 # Used on cygwin: DLL creation program.
15210 # Used on cygwin: object dumper.
15213 # Used on cygwin: assembler.
15216 # The name of the directory that contains temporary libtool files.
15219 # How to create reloadable object files.
15220 reload_flag=$lt_reload_flag
15221 reload_cmds=$lt_reload_cmds
15223 # How to pass a linker flag through the compiler.
15224 wl=$lt_lt_prog_compiler_wl_F77
15226 # Object file suffix (normally "o").
15227 objext="$ac_objext"
15229 # Old archive suffix (normally "a").
15232 # Shared library suffix (normally ".so").
15233 shrext_cmds='$shrext_cmds'
15235 # Executable file suffix (normally "").
15238 # Additional compiler flags for building library objects.
15239 pic_flag=$lt_lt_prog_compiler_pic_F77
15242 # What is the maximum length of a command?
15243 max_cmd_len=$lt_cv_sys_max_cmd_len
15245 # Does compiler simultaneously support -c and -o options?
15246 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15248 # Must we lock files when doing compilation?
15249 need_locks=$lt_need_locks
15251 # Do we need the lib prefix for modules?
15252 need_lib_prefix=$need_lib_prefix
15254 # Do we need a version for libraries?
15255 need_version=$need_version
15257 # Whether dlopen is supported.
15258 dlopen_support=$enable_dlopen
15260 # Whether dlopen of programs is supported.
15261 dlopen_self=$enable_dlopen_self
15263 # Whether dlopen of statically linked programs is supported.
15264 dlopen_self_static=$enable_dlopen_self_static
15266 # Compiler flag to prevent dynamic linking.
15267 link_static_flag=$lt_lt_prog_compiler_static_F77
15269 # Compiler flag to turn off builtin functions.
15270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15272 # Compiler flag to allow reflexive dlopens.
15273 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15275 # Compiler flag to generate shared objects directly from archives.
15276 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15278 # Compiler flag to generate thread-safe objects.
15279 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15281 # Library versioning type.
15282 version_type=$version_type
15284 # Format of library name prefix.
15285 libname_spec=$lt_libname_spec
15287 # List of archive names. First name is the real one, the rest are links.
15288 # The last name is the one that the linker finds with -lNAME.
15289 library_names_spec=$lt_library_names_spec
15291 # The coded name of the library, if different from the real name.
15292 soname_spec=$lt_soname_spec
15294 # Commands used to build and install an old-style archive.
15296 old_archive_cmds=$lt_old_archive_cmds_F77
15297 old_postinstall_cmds=$lt_old_postinstall_cmds
15298 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15300 # Create an old-style archive from a shared archive.
15301 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15303 # Create a temporary old-style archive to link instead of a shared archive.
15304 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15306 # Commands used to build and install a shared archive.
15307 archive_cmds=$lt_archive_cmds_F77
15308 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15309 postinstall_cmds=$lt_postinstall_cmds
15310 postuninstall_cmds=$lt_postuninstall_cmds
15312 # Commands used to build a loadable module (assumed same as above if empty)
15313 module_cmds=$lt_module_cmds_F77
15314 module_expsym_cmds=$lt_module_expsym_cmds_F77
15316 # Commands to strip libraries.
15317 old_striplib=$lt_old_striplib
15318 striplib=$lt_striplib
15320 # Dependencies to place before the objects being linked to create a
15322 predep_objects=$lt_predep_objects_F77
15324 # Dependencies to place after the objects being linked to create a
15326 postdep_objects=$lt_postdep_objects_F77
15328 # Dependencies to place before the objects being linked to create a
15330 predeps=$lt_predeps_F77
15332 # Dependencies to place after the objects being linked to create a
15334 postdeps=$lt_postdeps_F77
15336 # The library search path used internally by the compiler when linking
15337 # a shared library.
15338 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15340 # Method to check whether dependent libraries are shared objects.
15341 deplibs_check_method=$lt_deplibs_check_method
15343 # Command to use when deplibs_check_method == file_magic.
15344 file_magic_cmd=$lt_file_magic_cmd
15346 # Flag that allows shared libraries with undefined symbols to be built.
15347 allow_undefined_flag=$lt_allow_undefined_flag_F77
15349 # Flag that forces no undefined symbols.
15350 no_undefined_flag=$lt_no_undefined_flag_F77
15352 # Commands used to finish a libtool library installation in a directory.
15353 finish_cmds=$lt_finish_cmds
15355 # Same as above, but a single script fragment to be evaled but not shown.
15356 finish_eval=$lt_finish_eval
15358 # Take the output of nm and produce a listing of raw symbols and C names.
15359 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15361 # Transform the output of nm in a proper C declaration
15362 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15364 # Transform the output of nm in a C name address pair
15365 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15367 # This is the shared library runtime path variable.
15368 runpath_var=$runpath_var
15370 # This is the shared library path variable.
15371 shlibpath_var=$shlibpath_var
15373 # Is shlibpath searched before the hard-coded library search path?
15374 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15376 # How to hardcode a shared library path into an executable.
15377 hardcode_action=$hardcode_action_F77
15379 # Whether we should hardcode library paths into libraries.
15380 hardcode_into_libs=$hardcode_into_libs
15382 # Flag to hardcode \$libdir into a binary during linking.
15383 # This must work even if \$libdir does not exist.
15384 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15386 # If ld is used when linking, flag to hardcode \$libdir into
15387 # a binary during linking. This must work even if \$libdir does
15389 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15391 # Whether we need a single -rpath flag with a separated argument.
15392 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15394 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15395 # resulting binary.
15396 hardcode_direct=$hardcode_direct_F77
15398 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15399 # resulting binary.
15400 hardcode_minus_L=$hardcode_minus_L_F77
15402 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15403 # the resulting binary.
15404 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15406 # Set to yes if building a shared library automatically hardcodes DIR into the library
15407 # and all subsequent libraries and executables linked against it.
15408 hardcode_automatic=$hardcode_automatic_F77
15410 # Variables whose values should be saved in libtool wrapper scripts and
15411 # restored at relink time.
15412 variables_saved_for_relink="$variables_saved_for_relink"
15414 # Whether libtool must link a program against all its dependency libraries.
15415 link_all_deplibs=$link_all_deplibs_F77
15417 # Compile-time system search path for libraries
15418 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15420 # Run-time system search path for libraries
15421 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15423 # Fix the shell variable \$srcfile for the compiler.
15424 fix_srcfile_path="$fix_srcfile_path_F77"
15426 # Set to yes if exported symbols are required.
15427 always_export_symbols=$always_export_symbols_F77
15429 # The commands to list exported symbols.
15430 export_symbols_cmds=$lt_export_symbols_cmds_F77
15432 # The commands to extract the exported symbol list from a shared archive.
15433 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15435 # Symbols that should not be listed in the preloaded symbols.
15436 exclude_expsyms=$lt_exclude_expsyms_F77
15438 # Symbols that must always be exported.
15439 include_expsyms=$lt_include_expsyms_F77
15441 # ### END LIBTOOL TAG CONFIG: $tagname
15447 # If there is no Makefile yet, we rely on a make rule to execute
15448 # `config.status --recheck' to rerun these tests and create the
15449 # libtool script then.
15450 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15451 if test -f "$ltmain_in"; then
15452 test -f Makefile && make "$ltmain"
15458 ac_cpp='$CPP $CPPFLAGS'
15459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15471 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15475 # Source file extension for Java test sources.
15478 # Object file extension for compiled Java test sources.
15482 # Code to be used in simple compile tests
15483 lt_simple_compile_test_code="class foo {}\n"
15485 # Code to be used in simple link tests
15486 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15488 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15490 # If no C compiler was specified, use CC.
15493 # If no C compiler flags were specified, use CFLAGS.
15494 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15496 # Allow CC to be a program name with arguments.
15500 # save warnings/boilerplate of simple test code
15501 ac_outfile=conftest.$ac_objext
15502 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15503 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15504 _lt_compiler_boilerplate=`cat conftest.err`
15507 ac_outfile=conftest.$ac_objext
15508 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15509 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15510 _lt_linker_boilerplate=`cat conftest.err`
15514 # Allow CC to be a program name with arguments.
15519 for cc_temp in $compiler""; do
15521 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15522 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15527 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15530 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15531 archive_cmds_need_lc_GCJ=no
15533 old_archive_cmds_GCJ=$old_archive_cmds
15536 lt_prog_compiler_no_builtin_flag_GCJ=
15538 if test "$GCC" = yes; then
15539 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15542 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15543 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15544 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 lt_cv_prog_compiler_rtti_exceptions=no
15548 ac_outfile=conftest.$ac_objext
15549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15550 lt_compiler_flag="-fno-rtti -fno-exceptions"
15551 # Insert the option either (1) after the last *FLAGS variable, or
15552 # (2) before a word containing "conftest.", or (3) at the end.
15553 # Note that $ac_compile itself does not contain backslashes and begins
15554 # with a dollar sign (not a hyphen), so the echo should work correctly.
15555 # The option is referenced via a variable to avoid confusing sed.
15556 lt_compile=`echo "$ac_compile" | $SED \
15557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15559 -e 's:$: $lt_compiler_flag:'`
15560 (eval echo "\"\$as_me:15560: $lt_compile\"" >&5)
15561 (eval "$lt_compile" 2>conftest.err)
15563 cat conftest.err >&5
15564 echo "$as_me:15564: \$? = $ac_status" >&5
15565 if (exit $ac_status) && test -s "$ac_outfile"; then
15566 # The compiler can only warn and ignore the option if not recognized
15567 # So say no if there are warnings other than the usual output.
15568 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15570 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15571 lt_cv_prog_compiler_rtti_exceptions=yes
15577 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15578 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15580 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15581 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15588 lt_prog_compiler_wl_GCJ=
15589 lt_prog_compiler_pic_GCJ=
15590 lt_prog_compiler_static_GCJ=
15592 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15593 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15595 if test "$GCC" = yes; then
15596 lt_prog_compiler_wl_GCJ='-Wl,'
15597 lt_prog_compiler_static_GCJ='-static'
15601 # All AIX code is PIC.
15602 if test "$host_cpu" = ia64; then
15603 # AIX 5 now supports IA64 processor
15604 lt_prog_compiler_static_GCJ='-Bstatic'
15609 # FIXME: we need at least 68020 code to build shared libraries, but
15610 # adding the `-m68020' flag to GCC prevents building anything better,
15612 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15615 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15616 # PIC is the default for these OSes.
15619 mingw* | pw32* | os2*)
15620 # This hack is so that the source file can tell whether it is being
15621 # built for inclusion in a dll (and should export symbols for example).
15622 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15625 darwin* | rhapsody*)
15626 # PIC is the default on this platform
15627 # Common symbols not allowed in MH_DYLIB files
15628 lt_prog_compiler_pic_GCJ='-fno-common'
15632 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15633 # Instead, we relocate shared libraries at runtime.
15637 # Just because we use GCC doesn't mean we suddenly get shared libraries
15638 # on systems that don't support them.
15639 lt_prog_compiler_can_build_shared_GCJ=no
15644 if test -d /usr/nec; then
15645 lt_prog_compiler_pic_GCJ=-Kconform_pic
15650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15651 # not for PA HP-UX.
15657 lt_prog_compiler_pic_GCJ='-fPIC'
15663 lt_prog_compiler_pic_GCJ='-fPIC'
15667 # PORTME Check for flag to pass linker flags through the system compiler.
15670 lt_prog_compiler_wl_GCJ='-Wl,'
15671 if test "$host_cpu" = ia64; then
15672 # AIX 5 now supports IA64 processor
15673 lt_prog_compiler_static_GCJ='-Bstatic'
15675 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15679 # PIC is the default on this platform
15680 # Common symbols not allowed in MH_DYLIB files
15681 case $cc_basename in
15683 lt_prog_compiler_pic_GCJ='-qnocommon'
15684 lt_prog_compiler_wl_GCJ='-Wl,'
15689 mingw* | pw32* | os2*)
15690 # This hack is so that the source file can tell whether it is being
15691 # built for inclusion in a dll (and should export symbols for example).
15692 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15695 hpux9* | hpux10* | hpux11*)
15696 lt_prog_compiler_wl_GCJ='-Wl,'
15697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15698 # not for PA HP-UX.
15704 lt_prog_compiler_pic_GCJ='+Z'
15707 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15708 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15711 irix5* | irix6* | nonstopux*)
15712 lt_prog_compiler_wl_GCJ='-Wl,'
15713 # PIC (with -KPIC) is the default.
15714 lt_prog_compiler_static_GCJ='-non_shared'
15718 lt_prog_compiler_pic_GCJ='-KPIC'
15719 lt_prog_compiler_static_GCJ='-Bstatic'
15723 case $cc_basename in
15725 lt_prog_compiler_wl_GCJ='-Wl,'
15726 lt_prog_compiler_pic_GCJ='-KPIC'
15727 lt_prog_compiler_static_GCJ='-static'
15729 pgcc* | pgf77* | pgf90* | pgf95*)
15730 # Portland Group compilers (*not* the Pentium gcc compiler,
15731 # which looks to be a dead project)
15732 lt_prog_compiler_wl_GCJ='-Wl,'
15733 lt_prog_compiler_pic_GCJ='-fpic'
15734 lt_prog_compiler_static_GCJ='-Bstatic'
15737 lt_prog_compiler_wl_GCJ='-Wl,'
15738 # All Alpha code is PIC.
15739 lt_prog_compiler_static_GCJ='-non_shared'
15744 osf3* | osf4* | osf5*)
15745 lt_prog_compiler_wl_GCJ='-Wl,'
15746 # All OSF/1 code is PIC.
15747 lt_prog_compiler_static_GCJ='-non_shared'
15751 lt_prog_compiler_pic_GCJ='-KPIC'
15752 lt_prog_compiler_static_GCJ='-Bstatic'
15753 case $cc_basename in
15754 f77* | f90* | f95*)
15755 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15757 lt_prog_compiler_wl_GCJ='-Wl,';;
15762 lt_prog_compiler_wl_GCJ='-Qoption ld '
15763 lt_prog_compiler_pic_GCJ='-PIC'
15764 lt_prog_compiler_static_GCJ='-Bstatic'
15767 sysv4 | sysv4.2uw2* | sysv4.3*)
15768 lt_prog_compiler_wl_GCJ='-Wl,'
15769 lt_prog_compiler_pic_GCJ='-KPIC'
15770 lt_prog_compiler_static_GCJ='-Bstatic'
15774 if test -d /usr/nec ;then
15775 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15776 lt_prog_compiler_static_GCJ='-Bstatic'
15780 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15781 lt_prog_compiler_wl_GCJ='-Wl,'
15782 lt_prog_compiler_pic_GCJ='-KPIC'
15783 lt_prog_compiler_static_GCJ='-Bstatic'
15787 lt_prog_compiler_wl_GCJ='-Wl,'
15788 lt_prog_compiler_can_build_shared_GCJ=no
15792 lt_prog_compiler_pic_GCJ='-pic'
15793 lt_prog_compiler_static_GCJ='-Bstatic'
15797 lt_prog_compiler_can_build_shared_GCJ=no
15802 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15803 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15806 # Check to make sure the PIC flag actually works.
15808 if test -n "$lt_prog_compiler_pic_GCJ"; then
15810 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15811 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15812 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 lt_prog_compiler_pic_works_GCJ=no
15816 ac_outfile=conftest.$ac_objext
15817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15818 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15819 # Insert the option either (1) after the last *FLAGS variable, or
15820 # (2) before a word containing "conftest.", or (3) at the end.
15821 # Note that $ac_compile itself does not contain backslashes and begins
15822 # with a dollar sign (not a hyphen), so the echo should work correctly.
15823 # The option is referenced via a variable to avoid confusing sed.
15824 lt_compile=`echo "$ac_compile" | $SED \
15825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15827 -e 's:$: $lt_compiler_flag:'`
15828 (eval echo "\"\$as_me:15828: $lt_compile\"" >&5)
15829 (eval "$lt_compile" 2>conftest.err)
15831 cat conftest.err >&5
15832 echo "$as_me:15832: \$? = $ac_status" >&5
15833 if (exit $ac_status) && test -s "$ac_outfile"; then
15834 # The compiler can only warn and ignore the option if not recognized
15835 # So say no if there are warnings other than the usual output.
15836 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15839 lt_prog_compiler_pic_works_GCJ=yes
15845 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15846 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15848 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15849 case $lt_prog_compiler_pic_GCJ in
15851 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15854 lt_prog_compiler_pic_GCJ=
15855 lt_prog_compiler_can_build_shared_GCJ=no
15860 # For platforms which do not support PIC, -DPIC is meaningless:
15862 lt_prog_compiler_pic_GCJ=
15865 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15870 # Check to make sure the static flag actually works.
15872 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15873 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15874 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15875 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 lt_prog_compiler_static_works_GCJ=no
15879 save_LDFLAGS="$LDFLAGS"
15880 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15881 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15882 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15883 # The linker can only warn and ignore the option if not recognized
15884 # So say no if there are warnings
15885 if test -s conftest.err; then
15886 # Append any errors to the config.log.
15887 cat conftest.err 1>&5
15888 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15890 if diff conftest.exp conftest.er2 >/dev/null; then
15891 lt_prog_compiler_static_works_GCJ=yes
15894 lt_prog_compiler_static_works_GCJ=yes
15898 LDFLAGS="$save_LDFLAGS"
15901 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15902 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15904 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15907 lt_prog_compiler_static_GCJ=
15911 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15912 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15913 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 lt_cv_prog_compiler_c_o_GCJ=no
15917 $rm -r conftest 2>/dev/null
15921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15923 lt_compiler_flag="-o out/conftest2.$ac_objext"
15924 # Insert the option either (1) after the last *FLAGS variable, or
15925 # (2) before a word containing "conftest.", or (3) at the end.
15926 # Note that $ac_compile itself does not contain backslashes and begins
15927 # with a dollar sign (not a hyphen), so the echo should work correctly.
15928 lt_compile=`echo "$ac_compile" | $SED \
15929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15931 -e 's:$: $lt_compiler_flag:'`
15932 (eval echo "\"\$as_me:15932: $lt_compile\"" >&5)
15933 (eval "$lt_compile" 2>out/conftest.err)
15935 cat out/conftest.err >&5
15936 echo "$as_me:15936: \$? = $ac_status" >&5
15937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15939 # The compiler can only warn and ignore the option if not recognized
15940 # So say no if there are warnings
15941 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15944 lt_cv_prog_compiler_c_o_GCJ=yes
15949 # SGI C++ compiler will create directory out/ii_files/ for
15950 # template instantiation
15951 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15952 $rm out/* && rmdir out
15958 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15959 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15962 hard_links="nottested"
15963 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15964 # do not overwrite the value of need_locks provided by the user
15965 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15966 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15971 ln conftest.a conftest.b 2>&5 || hard_links=no
15972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15973 echo "$as_me:$LINENO: result: $hard_links" >&5
15974 echo "${ECHO_T}$hard_links" >&6
15975 if test "$hard_links" = no; then
15976 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15977 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15984 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15985 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15988 allow_undefined_flag_GCJ=
15989 enable_shared_with_static_runtimes_GCJ=no
15991 archive_expsym_cmds_GCJ=
15992 old_archive_From_new_cmds_GCJ=
15993 old_archive_from_expsyms_cmds_GCJ=
15994 export_dynamic_flag_spec_GCJ=
15995 whole_archive_flag_spec_GCJ=
15996 thread_safe_flag_spec_GCJ=
15997 hardcode_libdir_flag_spec_GCJ=
15998 hardcode_libdir_flag_spec_ld_GCJ=
15999 hardcode_libdir_separator_GCJ=
16000 hardcode_direct_GCJ=no
16001 hardcode_minus_L_GCJ=no
16002 hardcode_shlibpath_var_GCJ=unsupported
16003 link_all_deplibs_GCJ=unknown
16004 hardcode_automatic_GCJ=no
16006 module_expsym_cmds_GCJ=
16007 always_export_symbols_GCJ=no
16008 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16009 # include_expsyms should be a list of space-separated symbols to be *always*
16010 # included in the symbol list
16011 include_expsyms_GCJ=
16012 # exclude_expsyms can be an extended regexp of symbols to exclude
16013 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16014 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16015 # as well as any symbol that contains `d'.
16016 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16017 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16018 # platforms (ab)use it in PIC code, but their linkers get confused if
16019 # the symbol is explicitly referenced. Since portable code cannot
16020 # rely on this symbol name, it's probably fine to never include it in
16021 # preloaded symbol tables.
16022 extract_expsyms_cmds=
16023 # Just being paranoid about ensuring that cc_basename is set.
16024 for cc_temp in $compiler""; do
16026 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16027 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16032 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16035 cygwin* | mingw* | pw32*)
16036 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16037 # When not using gcc, we currently assume that we are using
16038 # Microsoft Visual C++.
16039 if test "$GCC" != yes; then
16044 # we just hope/assume this is gcc and not c89 (= MSVC++)
16053 if test "$with_gnu_ld" = yes; then
16054 # If archive_cmds runs LD, not CC, wlarc should be empty
16057 # Set some defaults for GNU ld with shared library support. These
16058 # are reset later if shared libraries are not supported. Putting them
16059 # here allows them to be overridden if necessary.
16060 runpath_var=LD_RUN_PATH
16061 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16062 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16063 # ancient GNU ld didn't support --whole-archive et. al.
16064 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16065 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16067 whole_archive_flag_spec_GCJ=
16069 supports_anon_versioning=no
16070 case `$LD -v 2>/dev/null` in
16071 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16072 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16073 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16074 *\ 2.11.*) ;; # other 2.11 versions
16075 *) supports_anon_versioning=yes ;;
16078 # See if GNU ld supports shared libraries.
16080 aix3* | aix4* | aix5*)
16081 # On AIX/PPC, the GNU linker is very broken
16082 if test "$host_cpu" != ia64; then
16086 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16087 *** to be unable to reliably create shared libraries on AIX.
16088 *** Therefore, libtool is disabling shared libraries support. If you
16089 *** really care for shared libraries, you may want to modify your PATH
16090 *** so that a non-GNU linker is found, and then restart.
16097 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)'
16098 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16099 hardcode_minus_L_GCJ=yes
16101 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16102 # that the semantics of dynamic libraries on AmigaOS, at least up
16103 # to version 4, is to share data among multiple programs linked
16104 # with the same dynamic library. Since this doesn't match the
16105 # behavior of shared libraries on other platforms, we can't use
16111 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16112 allow_undefined_flag_GCJ=unsupported
16113 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16114 # support --undefined. This deserves some investigation. FIXME
16115 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16121 cygwin* | mingw* | pw32*)
16122 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16123 # as there is no search path for DLLs.
16124 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16125 allow_undefined_flag_GCJ=unsupported
16126 always_export_symbols_GCJ=no
16127 enable_shared_with_static_runtimes_GCJ=yes
16128 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16130 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16131 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16132 # If the export-symbols file already is a .def file (1st line
16133 # is EXPORTS), use it as is; otherwise, prepend...
16134 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16135 cp $export_symbols $output_objdir/$soname.def;
16137 echo EXPORTS > $output_objdir/$soname.def;
16138 cat $export_symbols >> $output_objdir/$soname.def;
16140 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16147 hardcode_direct_GCJ=no
16148 hardcode_shlibpath_var_GCJ=no
16149 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16150 export_dynamic_flag_spec_GCJ='${wl}-E'
16151 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16152 # Instead, shared libraries are loaded at an image base (0x10000000 by
16153 # default) and relocated if they conflict, which is a slow very memory
16154 # consuming and fragmenting process. To avoid this, we pick a random,
16155 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16156 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16157 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'
16158 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'
16162 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16164 case $cc_basename,$host_cpu in
16165 pgcc*) # Portland Group C compiler
16166 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'
16167 tmp_addflag=' $pic_flag'
16169 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16170 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'
16171 tmp_addflag=' $pic_flag -Mnomain' ;;
16172 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16173 tmp_addflag=' -i_dynamic' ;;
16174 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16175 tmp_addflag=' -i_dynamic -nofor_main' ;;
16176 ifc* | ifort*) # Intel Fortran compiler
16177 tmp_addflag=' -nofor_main' ;;
16179 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16181 if test $supports_anon_versioning = yes; then
16182 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16183 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16184 $echo "local: *; };" >> $output_objdir/$libname.ver~
16185 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16193 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16194 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16197 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16198 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16203 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16207 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16208 *** create shared libraries on Solaris systems. Therefore, libtool
16209 *** is disabling shared libraries support. We urge you to upgrade GNU
16210 *** binutils to release 2.9.1 or newer. Another option is to modify
16211 *** your PATH or compiler configuration so that the native linker is
16212 *** used, and then restart.
16215 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16216 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16217 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16224 case `$LD -v 2>&1` in
16225 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16229 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16230 *** reliably create shared libraries on SCO systems. Therefore, libtool
16231 *** is disabling shared libraries support. We urge you to upgrade GNU
16232 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16233 *** your PATH or compiler configuration so that the native linker is
16234 *** used, and then restart.
16239 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16240 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16241 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16242 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16251 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16253 hardcode_direct_GCJ=yes
16254 hardcode_shlibpath_var_GCJ=no
16258 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16259 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16260 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16267 if test "$ld_shlibs_GCJ" = no; then
16269 hardcode_libdir_flag_spec_GCJ=
16270 export_dynamic_flag_spec_GCJ=
16271 whole_archive_flag_spec_GCJ=
16274 # PORTME fill in a description of your system's linker (not GNU ld)
16277 allow_undefined_flag_GCJ=unsupported
16278 always_export_symbols_GCJ=yes
16279 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'
16280 # Note: this linker hardcodes the directories in LIBPATH if there
16281 # are no directories specified by -L.
16282 hardcode_minus_L_GCJ=yes
16283 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16284 # Neither direct hardcoding nor static linking is supported with a
16286 hardcode_direct_GCJ=unsupported
16291 if test "$host_cpu" = ia64; then
16292 # On IA64, the linker does run time linking by default, so we don't
16293 # have to do anything special.
16294 aix_use_runtimelinking=no
16295 exp_sym_flag='-Bexport'
16298 # If we're using GNU nm, then we don't want the "-C" option.
16299 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16300 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16301 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'
16303 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'
16305 aix_use_runtimelinking=no
16307 # Test if we are trying to use run time linking or normal
16308 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16309 # need to do runtime linking.
16310 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16311 for ld_flag in $LDFLAGS; do
16312 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16313 aix_use_runtimelinking=yes
16320 exp_sym_flag='-bexport'
16321 no_entry_flag='-bnoentry'
16324 # When large executables or shared objects are built, AIX ld can
16325 # have problems creating the table of contents. If linking a library
16326 # or program results in "error TOC overflow" add -mminimal-toc to
16327 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16328 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16330 archive_cmds_GCJ=''
16331 hardcode_direct_GCJ=yes
16332 hardcode_libdir_separator_GCJ=':'
16333 link_all_deplibs_GCJ=yes
16335 if test "$GCC" = yes; then
16336 case $host_os in aix4.[012]|aix4.[012].*)
16337 # We only want to do this on AIX 4.2 and lower, the check
16338 # below for broken collect2 doesn't work under 4.3+
16339 collect2name=`${CC} -print-prog-name=collect2`
16340 if test -f "$collect2name" && \
16341 strings "$collect2name" | grep resolve_lib_name >/dev/null
16343 # We have reworked collect2
16344 hardcode_direct_GCJ=yes
16346 # We have old collect2
16347 hardcode_direct_GCJ=unsupported
16348 # It fails to find uninstalled libraries when the uninstalled
16349 # path is not listed in the libpath. Setting hardcode_minus_L
16350 # to unsupported forces relinking
16351 hardcode_minus_L_GCJ=yes
16352 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16353 hardcode_libdir_separator_GCJ=
16357 shared_flag='-shared'
16358 if test "$aix_use_runtimelinking" = yes; then
16359 shared_flag="$shared_flag "'${wl}-G'
16363 if test "$host_cpu" = ia64; then
16364 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16365 # chokes on -Wl,-G. The following line is correct:
16368 if test "$aix_use_runtimelinking" = yes; then
16369 shared_flag='${wl}-G'
16371 shared_flag='${wl}-bM:SRE'
16376 # It seems that -bexpall does not export symbols beginning with
16377 # underscore (_), so it is better to generate a list of symbols to export.
16378 always_export_symbols_GCJ=yes
16379 if test "$aix_use_runtimelinking" = yes; then
16380 # Warning - without using the other runtime loading flags (-brtl),
16381 # -berok will link without error, but may produce a broken library.
16382 allow_undefined_flag_GCJ='-berok'
16383 # Determine the default libpath from the value encoded in an empty executable.
16384 cat >conftest.$ac_ext <<_ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16401 (eval $ac_link) 2>conftest.er1
16403 grep -v '^ *+' conftest.er1 >conftest.err
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
16408 { ac_try='test -z "$ac_c_werror_flag"
16409 || test ! -s conftest.err'
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest$ac_exeext'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16424 # Check for a 64-bit object if we didn't find anything.
16425 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; }
16428 echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16432 rm -f conftest.err conftest.$ac_objext \
16433 conftest$ac_exeext conftest.$ac_ext
16434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16436 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16437 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"
16439 if test "$host_cpu" = ia64; then
16440 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16441 allow_undefined_flag_GCJ="-z nodefs"
16442 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"
16444 # Determine the default libpath from the value encoded in an empty executable.
16445 cat >conftest.$ac_ext <<_ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16460 rm -f conftest.$ac_objext conftest$ac_exeext
16461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16462 (eval $ac_link) 2>conftest.er1
16464 grep -v '^ *+' conftest.er1 >conftest.err
16466 cat conftest.err >&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } &&
16469 { ac_try='test -z "$ac_c_werror_flag"
16470 || test ! -s conftest.err'
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; } &&
16476 { ac_try='test -s conftest$ac_exeext'
16477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478 (eval $ac_try) 2>&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; }; then
16483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16485 # Check for a 64-bit object if we didn't find anything.
16486 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; }
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16493 rm -f conftest.err conftest.$ac_objext \
16494 conftest$ac_exeext conftest.$ac_ext
16495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16497 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16498 # Warning - without using the other run time loading flags,
16499 # -berok will link without error, but may produce a broken library.
16500 no_undefined_flag_GCJ=' ${wl}-bernotok'
16501 allow_undefined_flag_GCJ=' ${wl}-berok'
16502 # Exported symbols can be pulled into shared objects from archives
16503 whole_archive_flag_spec_GCJ='$convenience'
16504 archive_cmds_need_lc_GCJ=yes
16505 # This is similar to how AIX traditionally builds its shared libraries.
16506 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'
16512 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)'
16513 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16514 hardcode_minus_L_GCJ=yes
16515 # see comment about different semantics on the GNU ld section
16520 export_dynamic_flag_spec_GCJ=-rdynamic
16523 cygwin* | mingw* | pw32*)
16524 # When not using gcc, we currently assume that we are using
16525 # Microsoft Visual C++.
16526 # hardcode_libdir_flag_spec is actually meaningless, as there is
16527 # no search path for DLLs.
16528 hardcode_libdir_flag_spec_GCJ=' '
16529 allow_undefined_flag_GCJ=unsupported
16530 # Tell ltmain to make .lib files, not .a files.
16532 # Tell ltmain to make .dll files, not .so files.
16534 # FIXME: Setting linknames here is a bad hack.
16535 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16536 # The linker will automatically build a .lib file if we build a DLL.
16537 old_archive_From_new_cmds_GCJ='true'
16538 # FIXME: Should let the user specify the lib program.
16539 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16540 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16541 enable_shared_with_static_runtimes_GCJ=yes
16544 darwin* | rhapsody*)
16546 rhapsody* | darwin1.[012])
16547 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16550 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16551 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16553 case ${MACOSX_DEPLOYMENT_TARGET} in
16555 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16558 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16564 archive_cmds_need_lc_GCJ=no
16565 hardcode_direct_GCJ=no
16566 hardcode_automatic_GCJ=yes
16567 hardcode_shlibpath_var_GCJ=unsupported
16568 whole_archive_flag_spec_GCJ=''
16569 link_all_deplibs_GCJ=yes
16570 if test "$GCC" = yes ; then
16571 output_verbose_link_cmd='echo'
16572 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16573 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16575 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}'
16576 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}'
16578 case $cc_basename in
16580 output_verbose_link_cmd='echo'
16581 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16582 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16583 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16584 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}'
16585 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}'
16595 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16596 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16597 hardcode_shlibpath_var_GCJ=no
16604 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16605 # support. Future versions do this automatically, but an explicit c++rt0.o
16606 # does not break anything, and helps significantly (at the cost of a little
16609 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16610 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16611 hardcode_direct_GCJ=yes
16612 hardcode_shlibpath_var_GCJ=no
16615 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16617 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16618 hardcode_direct_GCJ=yes
16619 hardcode_minus_L_GCJ=yes
16620 hardcode_shlibpath_var_GCJ=no
16623 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16624 freebsd* | kfreebsd*-gnu | dragonfly*)
16625 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16626 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16627 hardcode_direct_GCJ=yes
16628 hardcode_shlibpath_var_GCJ=no
16632 if test "$GCC" = yes; then
16633 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'
16635 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'
16637 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16638 hardcode_libdir_separator_GCJ=:
16639 hardcode_direct_GCJ=yes
16641 # hardcode_minus_L: Not really in the search PATH,
16642 # but as the default location of the library.
16643 hardcode_minus_L_GCJ=yes
16644 export_dynamic_flag_spec_GCJ='${wl}-E'
16648 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16649 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16651 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16653 if test "$with_gnu_ld" = no; then
16654 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16655 hardcode_libdir_separator_GCJ=:
16657 hardcode_direct_GCJ=yes
16658 export_dynamic_flag_spec_GCJ='${wl}-E'
16660 # hardcode_minus_L: Not really in the search PATH,
16661 # but as the default location of the library.
16662 hardcode_minus_L_GCJ=yes
16667 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16670 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16673 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16676 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16682 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16685 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16688 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16692 if test "$with_gnu_ld" = no; then
16693 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16694 hardcode_libdir_separator_GCJ=:
16698 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16699 hardcode_direct_GCJ=no
16700 hardcode_shlibpath_var_GCJ=no
16703 hardcode_direct_GCJ=yes
16704 export_dynamic_flag_spec_GCJ='${wl}-E'
16706 # hardcode_minus_L: Not really in the search PATH,
16707 # but as the default location of the library.
16708 hardcode_minus_L_GCJ=yes
16714 irix5* | irix6* | nonstopux*)
16715 if test "$GCC" = yes; then
16716 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'
16718 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'
16719 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16722 hardcode_libdir_separator_GCJ=:
16723 link_all_deplibs_GCJ=yes
16727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16728 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16730 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16732 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16733 hardcode_direct_GCJ=yes
16734 hardcode_shlibpath_var_GCJ=no
16738 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739 hardcode_direct_GCJ=yes
16740 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16741 hardcode_libdir_separator_GCJ=:
16742 hardcode_shlibpath_var_GCJ=no
16746 hardcode_direct_GCJ=yes
16747 hardcode_shlibpath_var_GCJ=no
16748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16749 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16750 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16751 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16752 export_dynamic_flag_spec_GCJ='${wl}-E'
16755 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16756 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16757 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16760 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16768 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16769 hardcode_minus_L_GCJ=yes
16770 allow_undefined_flag_GCJ=unsupported
16771 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'
16772 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16776 if test "$GCC" = yes; then
16777 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16778 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'
16780 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16781 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'
16783 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16784 hardcode_libdir_separator_GCJ=:
16787 osf4* | osf5*) # as osf3* with the addition of -msym flag
16788 if test "$GCC" = yes; then
16789 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16790 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'
16791 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16793 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16794 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'
16795 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~
16796 $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'
16798 # Both c and cxx compiler support -rpath directly
16799 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16801 hardcode_libdir_separator_GCJ=:
16805 no_undefined_flag_GCJ=' -z text'
16806 if test "$GCC" = yes; then
16808 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16809 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16810 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16813 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16814 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16815 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16817 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16818 hardcode_shlibpath_var_GCJ=no
16820 solaris2.[0-5] | solaris2.[0-5].*) ;;
16822 # The compiler driver will combine linker options so we
16823 # cannot just pass the convience library names through
16824 # without $wl, iff we do not link with $LD.
16825 # Luckily, gcc supports the same syntax we need for Sun Studio.
16826 # Supported since Solaris 2.6 (maybe 2.5.1?)
16829 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16831 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' ;;
16834 link_all_deplibs_GCJ=yes
16838 if test "x$host_vendor" = xsequent; then
16839 # Use $CC to link under sequent, because it throws in some extra .o
16840 # files that make .init and .fini sections work.
16841 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16843 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16846 hardcode_direct_GCJ=yes
16847 hardcode_minus_L_GCJ=yes
16848 hardcode_shlibpath_var_GCJ=no
16852 case $host_vendor in
16854 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16855 hardcode_direct_GCJ=yes # is this really true???
16858 ## LD is ld it makes a PLAMLIB
16859 ## CC just makes a GrossModule.
16860 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16861 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16862 hardcode_direct_GCJ=no
16865 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16869 runpath_var='LD_RUN_PATH'
16870 hardcode_shlibpath_var_GCJ=no
16874 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16875 hardcode_shlibpath_var_GCJ=no
16876 export_dynamic_flag_spec_GCJ='-Bexport'
16880 if test -d /usr/nec; then
16881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16882 hardcode_shlibpath_var_GCJ=no
16883 runpath_var=LD_RUN_PATH
16884 hardcode_runpath_var=yes
16889 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16890 no_undefined_flag_GCJ='${wl}-z,text'
16891 archive_cmds_need_lc_GCJ=no
16892 hardcode_shlibpath_var_GCJ=no
16893 runpath_var='LD_RUN_PATH'
16895 if test "$GCC" = yes; then
16896 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16897 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16899 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16900 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16904 sysv5* | sco3.2v5* | sco5v6*)
16905 # Note: We can NOT use -z defs as we might desire, because we do not
16906 # link with -lc, and that would cause any symbols used from libc to
16907 # always be unresolved, which means just about no library would
16908 # ever link correctly. If we're not using GNU ld we use -z text
16909 # though, which does catch some bad symbols but isn't as heavy-handed
16911 no_undefined_flag_GCJ='${wl}-z,text'
16912 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16913 archive_cmds_need_lc_GCJ=no
16914 hardcode_shlibpath_var_GCJ=no
16915 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16916 hardcode_libdir_separator_GCJ=':'
16917 link_all_deplibs_GCJ=yes
16918 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16919 runpath_var='LD_RUN_PATH'
16921 if test "$GCC" = yes; then
16922 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16923 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16925 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16926 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16931 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16932 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16933 hardcode_shlibpath_var_GCJ=no
16942 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16943 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16944 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16947 # Do we need to explicitly link libc?
16949 case "x$archive_cmds_need_lc_GCJ" in
16951 # Assume -lc should be added
16952 archive_cmds_need_lc_GCJ=yes
16954 if test "$enable_shared" = yes && test "$GCC" = yes; then
16955 case $archive_cmds_GCJ in
16957 # FIXME: we may have to deal with multi-command sequences.
16960 # Test whether the compiler implicitly links with -lc since on some
16961 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16962 # to ld, don't add -lc before -lgcc.
16963 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16964 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16966 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16969 (eval $ac_compile) 2>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } 2>conftest.err; then
16975 libobjs=conftest.$ac_objext
16977 wl=$lt_prog_compiler_wl_GCJ
16978 pic_flag=$lt_prog_compiler_pic_GCJ
16984 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16985 allow_undefined_flag_GCJ=
16986 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16987 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }
16992 archive_cmds_need_lc_GCJ=no
16994 archive_cmds_need_lc_GCJ=yes
16996 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16998 cat conftest.err 1>&5
17001 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17002 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17009 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17010 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17011 library_names_spec=
17012 libname_spec='lib$name'
17016 postuninstall_cmds=
17020 shlibpath_overrides_runpath=unknown
17022 dynamic_linker="$host_os ld.so"
17023 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17024 if test "$GCC" = yes; then
17025 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17026 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17027 # if the path contains ";" then we assume it to be the separator
17028 # otherwise default to the standard path separator (i.e. ":") - it is
17029 # assumed that no part of a normal pathname contains ";" but that should
17030 # okay in the real world where ";" in dirpaths is itself problematic.
17031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17036 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17038 need_lib_prefix=unknown
17039 hardcode_into_libs=no
17041 # when you set need_version to no, make sure it does not cause -set_version
17042 # flags to be left without arguments
17043 need_version=unknown
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17049 shlibpath_var=LIBPATH
17051 # AIX 3 has no versioning support, so we append a major version to the name.
17052 soname_spec='${libname}${release}${shared_ext}$major'
17059 hardcode_into_libs=yes
17060 if test "$host_cpu" = ia64; then
17061 # AIX 5 supports IA64
17062 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17063 shlibpath_var=LD_LIBRARY_PATH
17065 # With GCC up to 2.95.x, collect2 would create an import file
17066 # for dependence libraries. The import file would start with
17067 # the line `#! .'. This would cause the generated library to
17068 # depend on `.', always an invalid library. This was fixed in
17069 # development snapshots of GCC prior to 3.0.
17071 aix4 | aix4.[01] | aix4.[01].*)
17072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17074 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17077 can_build_shared=no
17081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17082 # soname into executable. Probably we can add versioning support to
17083 # collect2, so additional links can be useful in future.
17084 if test "$aix_use_runtimelinking" = yes; then
17085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17086 # instead of lib<name>.a to let people know that these are not
17087 # typical AIX shared libraries.
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 # We preserve .a as extension for shared libraries through AIX4.2
17091 # and later when we are not doing run time linking.
17092 library_names_spec='${libname}${release}.a $libname.a'
17093 soname_spec='${libname}${release}${shared_ext}$major'
17095 shlibpath_var=LIBPATH
17100 library_names_spec='$libname.ixlibrary $libname.a'
17101 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17102 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'
17106 library_names_spec='${libname}${shared_ext}'
17107 dynamic_linker="$host_os ld.so"
17108 shlibpath_var=LIBRARY_PATH
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17119 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17120 # the default ld.so.conf also contains /usr/contrib/lib and
17121 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17122 # libtool to hard-code these into programs
17125 cygwin* | mingw* | pw32*)
17126 version_type=windows
17131 case $GCC,$host_os in
17132 yes,cygwin* | yes,mingw* | yes,pw32*)
17133 library_names_spec='$libname.dll.a'
17134 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17135 postinstall_cmds='base_file=`basename \${file}`~
17136 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17137 dldir=$destdir/`dirname \$dlpath`~
17138 test -d \$dldir || mkdir -p \$dldir~
17139 $install_prog $dir/$dlname \$dldir/$dlname~
17140 chmod a+x \$dldir/$dlname'
17141 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17142 dlpath=$dir/\$dldll~
17144 shlibpath_overrides_runpath=yes
17148 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17149 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17150 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17153 # MinGW DLLs use traditional 'lib' prefix
17154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17155 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17156 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17157 # It is most probably a Windows format PATH printed by
17158 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17159 # path with ; separators, and with drive letters. We can handle the
17160 # drive letters (cygwin fileutils understands them), so leave them,
17161 # especially as we might pass files found there to a mingw objdump,
17162 # which wouldn't understand a cygwinified path. Ahh.
17163 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17169 # pw32 DLLs use 'pw' prefix rather than 'lib'
17170 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17179 dynamic_linker='Win32 ld.exe'
17180 # FIXME: first we should search . and the directory the executable is in
17184 darwin* | rhapsody*)
17185 dynamic_linker="$host_os dyld"
17186 version_type=darwin
17189 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17190 soname_spec='${libname}${release}${major}$shared_ext'
17191 shlibpath_overrides_runpath=yes
17192 shlibpath_var=DYLD_LIBRARY_PATH
17193 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17194 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17195 if test "$GCC" = yes; then
17196 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"`
17198 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17208 soname_spec='${libname}${release}${shared_ext}$major'
17209 shlibpath_var=LD_LIBRARY_PATH
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 shlibpath_overrides_runpath=no
17224 hardcode_into_libs=yes
17225 dynamic_linker='GNU ld.so'
17228 freebsd* | dragonfly*)
17229 # DragonFly does not have aout. When/if they implement a new
17230 # versioning mechanism, adjust this.
17231 if test -x /usr/bin/objformat; then
17232 objformat=`/usr/bin/objformat`
17235 freebsd[123]*) objformat=aout ;;
17236 *) objformat=elf ;;
17239 version_type=freebsd-$objformat
17240 case $version_type in
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17251 shlibpath_var=LD_LIBRARY_PATH
17254 shlibpath_overrides_runpath=yes
17256 freebsd3.[01]* | freebsdelf3.[01]*)
17257 shlibpath_overrides_runpath=yes
17258 hardcode_into_libs=yes
17260 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17261 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17262 shlibpath_overrides_runpath=no
17263 hardcode_into_libs=yes
17265 freebsd*) # from 4.6 on
17266 shlibpath_overrides_runpath=yes
17267 hardcode_into_libs=yes
17276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 hardcode_into_libs=yes
17282 hpux9* | hpux10* | hpux11*)
17283 # Give a soname corresponding to the major version so that dld.sl refuses to
17284 # link against other versions.
17291 hardcode_into_libs=yes
17292 dynamic_linker="$host_os dld.so"
17293 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296 soname_spec='${libname}${release}${shared_ext}$major'
17297 if test "X$HPUX_IA64_MODE" = X32; then
17298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17306 hardcode_into_libs=yes
17307 dynamic_linker="$host_os dld.sl"
17308 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17311 soname_spec='${libname}${release}${shared_ext}$major'
17312 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17317 dynamic_linker="$host_os dld.sl"
17318 shlibpath_var=SHLIB_PATH
17319 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321 soname_spec='${libname}${release}${shared_ext}$major'
17324 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17325 postinstall_cmds='chmod 555 $lib'
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17333 soname_spec='${libname}${release}${shared_ext}$major'
17334 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17335 shlibpath_var=LD_LIBRARY_PATH
17336 shlibpath_overrides_runpath=no
17337 hardcode_into_libs=yes
17340 irix5* | irix6* | nonstopux*)
17342 nonstopux*) version_type=nonstopux ;;
17344 if test "$lt_cv_prog_gnu_ld" = yes; then
17352 soname_spec='${libname}${release}${shared_ext}$major'
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17355 irix5* | nonstopux*)
17356 libsuff= shlibsuff=
17359 case $LD in # libtool.m4 will add one of these switches to LD
17360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17361 libsuff= shlibsuff= libmagic=32-bit;;
17362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17363 libsuff=32 shlibsuff=N32 libmagic=N32;;
17364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17366 *) libsuff= shlibsuff= libmagic=never-match;;
17370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17371 shlibpath_overrides_runpath=no
17372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17374 hardcode_into_libs=yes
17377 # No shared lib support for Linux oldld, aout, or coff.
17378 linux*oldld* | linux*aout* | linux*coff*)
17382 # This must be Linux ELF.
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17390 shlibpath_var=LD_LIBRARY_PATH
17391 shlibpath_overrides_runpath=no
17392 # This implies no fast_install, which is unacceptable.
17393 # Some rework will be needed to allow for fast_install
17394 # before this can be enabled.
17395 hardcode_into_libs=yes
17397 # find out which ABI we are using
17399 case "$host_cpu" in
17400 x86_64*|s390x*|powerpc64*)
17401 echo '#line 17401 "configure"' > conftest.$ac_ext
17402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17403 (eval $ac_compile) 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; then
17407 case `/usr/bin/file conftest.$ac_objext` in
17410 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17418 # Append ld.so.conf contents to the search path
17419 if test -f /etc/ld.so.conf; then
17420 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' ' '`
17421 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17424 # We used to test for /lib/ld.so.1 and disable shared libraries on
17425 # powerpc, because MkLinux only supported shared libraries with the
17426 # GNU dynamic linker. Since this was broken with cross compilers,
17427 # most powerpc-linux boxes support dynamic linking these days and
17428 # people can always --disable-shared, the test was removed, and we
17429 # assume the GNU/Linux dynamic linker is in use.
17430 dynamic_linker='GNU/Linux ld.so'
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17438 soname_spec='${libname}${release}${shared_ext}$major'
17439 shlibpath_var=LD_LIBRARY_PATH
17440 shlibpath_overrides_runpath=no
17441 hardcode_into_libs=yes
17442 dynamic_linker='GNU ld.so'
17449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17452 dynamic_linker='NetBSD (a.out) ld.so'
17454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17455 soname_spec='${libname}${release}${shared_ext}$major'
17456 dynamic_linker='NetBSD ld.elf_so'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=yes
17460 hardcode_into_libs=yes
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 shlibpath_var=LD_LIBRARY_PATH
17467 shlibpath_overrides_runpath=yes
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17475 soname_spec='${libname}${release}${shared_ext}$major'
17476 shlibpath_var=LD_LIBRARY_PATH
17477 shlibpath_overrides_runpath=yes
17482 sys_lib_dlsearch_path_spec="/usr/lib"
17484 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17486 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17487 *) need_version=no ;;
17489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17491 shlibpath_var=LD_LIBRARY_PATH
17492 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17494 openbsd2.[89] | openbsd2.[89].*)
17495 shlibpath_overrides_runpath=no
17498 shlibpath_overrides_runpath=yes
17502 shlibpath_overrides_runpath=yes
17507 libname_spec='$name'
17510 library_names_spec='$libname${shared_ext} $libname.a'
17511 dynamic_linker='OS/2 ld.exe'
17512 shlibpath_var=LIBPATH
17515 osf3* | osf4* | osf5*)
17519 soname_spec='${libname}${release}${shared_ext}$major'
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17523 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531 soname_spec='${libname}${release}${shared_ext}$major'
17532 shlibpath_var=LD_LIBRARY_PATH
17533 shlibpath_overrides_runpath=yes
17534 hardcode_into_libs=yes
17535 # ldd complains unless libraries are executable
17536 postinstall_cmds='chmod +x $lib'
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17542 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17543 shlibpath_var=LD_LIBRARY_PATH
17544 shlibpath_overrides_runpath=yes
17545 if test "$with_gnu_ld" = yes; then
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 shlibpath_var=LD_LIBRARY_PATH
17556 case $host_vendor in
17558 shlibpath_overrides_runpath=no
17560 export_dynamic_flag_spec='${wl}-Blargedynsym'
17561 runpath_var=LD_RUN_PATH
17569 shlibpath_overrides_runpath=no
17570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17576 if test -d /usr/nec ;then
17578 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17579 soname_spec='$libname${shared_ext}.$major'
17580 shlibpath_var=LD_LIBRARY_PATH
17584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17585 version_type=freebsd-elf
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17589 soname_spec='${libname}${release}${shared_ext}$major'
17590 shlibpath_var=LD_LIBRARY_PATH
17591 hardcode_into_libs=yes
17592 if test "$with_gnu_ld" = yes; then
17593 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17594 shlibpath_overrides_runpath=no
17596 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17597 shlibpath_overrides_runpath=yes
17600 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17604 sys_lib_dlsearch_path_spec='/usr/lib'
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610 soname_spec='${libname}${release}${shared_ext}$major'
17611 shlibpath_var=LD_LIBRARY_PATH
17618 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17619 echo "${ECHO_T}$dynamic_linker" >&6
17620 test "$dynamic_linker" = no && can_build_shared=no
17622 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17623 if test "$GCC" = yes; then
17624 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17627 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17628 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17629 hardcode_action_GCJ=
17630 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17631 test -n "$runpath_var_GCJ" || \
17632 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17634 # We can hardcode non-existant directories.
17635 if test "$hardcode_direct_GCJ" != no &&
17636 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17637 # have to relink, otherwise we might link with an installed library
17638 # when we should be linking with a yet-to-be-installed one
17639 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17640 test "$hardcode_minus_L_GCJ" != no; then
17641 # Linking always hardcodes the temporary library directory.
17642 hardcode_action_GCJ=relink
17644 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17645 hardcode_action_GCJ=immediate
17648 # We cannot hardcode anything, or else we can only hardcode existing
17650 hardcode_action_GCJ=unsupported
17652 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17653 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17655 if test "$hardcode_action_GCJ" = relink; then
17656 # Fast installation is not supported
17657 enable_fast_install=no
17658 elif test "$shlibpath_overrides_runpath" = yes ||
17659 test "$enable_shared" = no; then
17660 # Fast installation is not necessary
17661 enable_fast_install=needless
17665 # The else clause should only fire when bootstrapping the
17666 # libtool distribution, otherwise you forgot to ship ltmain.sh
17667 # with your package, and you will get complaints that there are
17668 # no rules to generate ltmain.sh.
17669 if test -f "$ltmain"; then
17670 # See if we are running on zsh, and set the options which allow our commands through
17671 # without removal of \ escapes.
17672 if test -n "${ZSH_VERSION+set}" ; then
17673 setopt NO_GLOB_SUBST
17675 # Now quote all the things that may contain metacharacters while being
17676 # careful not to overquote the AC_SUBSTed values. We take copies of the
17677 # variables and quote the copies for generation of the libtool script.
17678 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17680 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17681 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17682 deplibs_check_method reload_flag reload_cmds need_locks \
17683 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17684 lt_cv_sys_global_symbol_to_c_name_address \
17685 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17686 old_postinstall_cmds old_postuninstall_cmds \
17690 lt_prog_compiler_wl_GCJ \
17691 lt_prog_compiler_pic_GCJ \
17692 lt_prog_compiler_static_GCJ \
17693 lt_prog_compiler_no_builtin_flag_GCJ \
17694 export_dynamic_flag_spec_GCJ \
17695 thread_safe_flag_spec_GCJ \
17696 whole_archive_flag_spec_GCJ \
17697 enable_shared_with_static_runtimes_GCJ \
17698 old_archive_cmds_GCJ \
17699 old_archive_from_new_cmds_GCJ \
17700 predep_objects_GCJ \
17701 postdep_objects_GCJ \
17704 compiler_lib_search_path_GCJ \
17706 archive_expsym_cmds_GCJ \
17707 postinstall_cmds_GCJ \
17708 postuninstall_cmds_GCJ \
17709 old_archive_from_expsyms_cmds_GCJ \
17710 allow_undefined_flag_GCJ \
17711 no_undefined_flag_GCJ \
17712 export_symbols_cmds_GCJ \
17713 hardcode_libdir_flag_spec_GCJ \
17714 hardcode_libdir_flag_spec_ld_GCJ \
17715 hardcode_libdir_separator_GCJ \
17716 hardcode_automatic_GCJ \
17718 module_expsym_cmds_GCJ \
17719 lt_cv_prog_compiler_c_o_GCJ \
17720 exclude_expsyms_GCJ \
17721 include_expsyms_GCJ; do
17724 old_archive_cmds_GCJ | \
17725 old_archive_from_new_cmds_GCJ | \
17726 archive_cmds_GCJ | \
17727 archive_expsym_cmds_GCJ | \
17728 module_cmds_GCJ | \
17729 module_expsym_cmds_GCJ | \
17730 old_archive_from_expsyms_cmds_GCJ | \
17731 export_symbols_cmds_GCJ | \
17732 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17733 postinstall_cmds | postuninstall_cmds | \
17734 old_postinstall_cmds | old_postuninstall_cmds | \
17735 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17736 # Double-quote double-evaled strings.
17737 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17746 *'\$0 --fallback-echo"')
17747 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17753 cat <<__EOF__ >> "$cfgfile"
17754 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17756 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17758 # Shell to use when invoking shell scripts.
17761 # Whether or not to build shared libraries.
17762 build_libtool_libs=$enable_shared
17764 # Whether or not to build static libraries.
17765 build_old_libs=$enable_static
17767 # Whether or not to add -lc for building shared libraries.
17768 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17770 # Whether or not to disallow shared libs when runtime libs are static
17771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17773 # Whether or not to optimize for fast installation.
17774 fast_install=$enable_fast_install
17777 host_alias=$host_alias
17781 # The build system.
17782 build_alias=$build_alias
17786 # An echo program that does not interpret backslashes.
17791 AR_FLAGS=$lt_AR_FLAGS
17796 # LTCC compiler flags.
17797 LTCFLAGS=$lt_LTCFLAGS
17799 # A language-specific compiler.
17800 CC=$lt_compiler_GCJ
17802 # Is the compiler the GNU C compiler?
17808 # The linker used to build libraries.
17811 # Whether we need hard or soft links.
17814 # A BSD-compatible nm program.
17817 # A symbol stripping program
17820 # Used to examine libraries when file_magic_cmd begins "file"
17821 MAGIC_CMD=$MAGIC_CMD
17823 # Used on cygwin: DLL creation program.
17826 # Used on cygwin: object dumper.
17829 # Used on cygwin: assembler.
17832 # The name of the directory that contains temporary libtool files.
17835 # How to create reloadable object files.
17836 reload_flag=$lt_reload_flag
17837 reload_cmds=$lt_reload_cmds
17839 # How to pass a linker flag through the compiler.
17840 wl=$lt_lt_prog_compiler_wl_GCJ
17842 # Object file suffix (normally "o").
17843 objext="$ac_objext"
17845 # Old archive suffix (normally "a").
17848 # Shared library suffix (normally ".so").
17849 shrext_cmds='$shrext_cmds'
17851 # Executable file suffix (normally "").
17854 # Additional compiler flags for building library objects.
17855 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17858 # What is the maximum length of a command?
17859 max_cmd_len=$lt_cv_sys_max_cmd_len
17861 # Does compiler simultaneously support -c and -o options?
17862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17864 # Must we lock files when doing compilation?
17865 need_locks=$lt_need_locks
17867 # Do we need the lib prefix for modules?
17868 need_lib_prefix=$need_lib_prefix
17870 # Do we need a version for libraries?
17871 need_version=$need_version
17873 # Whether dlopen is supported.
17874 dlopen_support=$enable_dlopen
17876 # Whether dlopen of programs is supported.
17877 dlopen_self=$enable_dlopen_self
17879 # Whether dlopen of statically linked programs is supported.
17880 dlopen_self_static=$enable_dlopen_self_static
17882 # Compiler flag to prevent dynamic linking.
17883 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17885 # Compiler flag to turn off builtin functions.
17886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17888 # Compiler flag to allow reflexive dlopens.
17889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17891 # Compiler flag to generate shared objects directly from archives.
17892 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17894 # Compiler flag to generate thread-safe objects.
17895 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17897 # Library versioning type.
17898 version_type=$version_type
17900 # Format of library name prefix.
17901 libname_spec=$lt_libname_spec
17903 # List of archive names. First name is the real one, the rest are links.
17904 # The last name is the one that the linker finds with -lNAME.
17905 library_names_spec=$lt_library_names_spec
17907 # The coded name of the library, if different from the real name.
17908 soname_spec=$lt_soname_spec
17910 # Commands used to build and install an old-style archive.
17912 old_archive_cmds=$lt_old_archive_cmds_GCJ
17913 old_postinstall_cmds=$lt_old_postinstall_cmds
17914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17916 # Create an old-style archive from a shared archive.
17917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17919 # Create a temporary old-style archive to link instead of a shared archive.
17920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17922 # Commands used to build and install a shared archive.
17923 archive_cmds=$lt_archive_cmds_GCJ
17924 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17925 postinstall_cmds=$lt_postinstall_cmds
17926 postuninstall_cmds=$lt_postuninstall_cmds
17928 # Commands used to build a loadable module (assumed same as above if empty)
17929 module_cmds=$lt_module_cmds_GCJ
17930 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17932 # Commands to strip libraries.
17933 old_striplib=$lt_old_striplib
17934 striplib=$lt_striplib
17936 # Dependencies to place before the objects being linked to create a
17938 predep_objects=$lt_predep_objects_GCJ
17940 # Dependencies to place after the objects being linked to create a
17942 postdep_objects=$lt_postdep_objects_GCJ
17944 # Dependencies to place before the objects being linked to create a
17946 predeps=$lt_predeps_GCJ
17948 # Dependencies to place after the objects being linked to create a
17950 postdeps=$lt_postdeps_GCJ
17952 # The library search path used internally by the compiler when linking
17953 # a shared library.
17954 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17956 # Method to check whether dependent libraries are shared objects.
17957 deplibs_check_method=$lt_deplibs_check_method
17959 # Command to use when deplibs_check_method == file_magic.
17960 file_magic_cmd=$lt_file_magic_cmd
17962 # Flag that allows shared libraries with undefined symbols to be built.
17963 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17965 # Flag that forces no undefined symbols.
17966 no_undefined_flag=$lt_no_undefined_flag_GCJ
17968 # Commands used to finish a libtool library installation in a directory.
17969 finish_cmds=$lt_finish_cmds
17971 # Same as above, but a single script fragment to be evaled but not shown.
17972 finish_eval=$lt_finish_eval
17974 # Take the output of nm and produce a listing of raw symbols and C names.
17975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17977 # Transform the output of nm in a proper C declaration
17978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17980 # Transform the output of nm in a C name address pair
17981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17983 # This is the shared library runtime path variable.
17984 runpath_var=$runpath_var
17986 # This is the shared library path variable.
17987 shlibpath_var=$shlibpath_var
17989 # Is shlibpath searched before the hard-coded library search path?
17990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17992 # How to hardcode a shared library path into an executable.
17993 hardcode_action=$hardcode_action_GCJ
17995 # Whether we should hardcode library paths into libraries.
17996 hardcode_into_libs=$hardcode_into_libs
17998 # Flag to hardcode \$libdir into a binary during linking.
17999 # This must work even if \$libdir does not exist.
18000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18002 # If ld is used when linking, flag to hardcode \$libdir into
18003 # a binary during linking. This must work even if \$libdir does
18005 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18007 # Whether we need a single -rpath flag with a separated argument.
18008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18010 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18011 # resulting binary.
18012 hardcode_direct=$hardcode_direct_GCJ
18014 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18015 # resulting binary.
18016 hardcode_minus_L=$hardcode_minus_L_GCJ
18018 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18019 # the resulting binary.
18020 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18022 # Set to yes if building a shared library automatically hardcodes DIR into the library
18023 # and all subsequent libraries and executables linked against it.
18024 hardcode_automatic=$hardcode_automatic_GCJ
18026 # Variables whose values should be saved in libtool wrapper scripts and
18027 # restored at relink time.
18028 variables_saved_for_relink="$variables_saved_for_relink"
18030 # Whether libtool must link a program against all its dependency libraries.
18031 link_all_deplibs=$link_all_deplibs_GCJ
18033 # Compile-time system search path for libraries
18034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18036 # Run-time system search path for libraries
18037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18039 # Fix the shell variable \$srcfile for the compiler.
18040 fix_srcfile_path="$fix_srcfile_path_GCJ"
18042 # Set to yes if exported symbols are required.
18043 always_export_symbols=$always_export_symbols_GCJ
18045 # The commands to list exported symbols.
18046 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18048 # The commands to extract the exported symbol list from a shared archive.
18049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18051 # Symbols that should not be listed in the preloaded symbols.
18052 exclude_expsyms=$lt_exclude_expsyms_GCJ
18054 # Symbols that must always be exported.
18055 include_expsyms=$lt_include_expsyms_GCJ
18057 # ### END LIBTOOL TAG CONFIG: $tagname
18063 # If there is no Makefile yet, we rely on a make rule to execute
18064 # `config.status --recheck' to rerun these tests and create the
18065 # libtool script then.
18066 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18067 if test -f "$ltmain_in"; then
18068 test -f Makefile && make "$ltmain"
18074 ac_cpp='$CPP $CPPFLAGS'
18075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18090 # Source file extension for RC test sources.
18093 # Object file extension for compiled RC test sources.
18097 # Code to be used in simple compile tests
18098 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18100 # Code to be used in simple link tests
18101 lt_simple_link_test_code="$lt_simple_compile_test_code"
18103 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18105 # If no C compiler was specified, use CC.
18108 # If no C compiler flags were specified, use CFLAGS.
18109 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18111 # Allow CC to be a program name with arguments.
18115 # save warnings/boilerplate of simple test code
18116 ac_outfile=conftest.$ac_objext
18117 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18118 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18119 _lt_compiler_boilerplate=`cat conftest.err`
18122 ac_outfile=conftest.$ac_objext
18123 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18124 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18125 _lt_linker_boilerplate=`cat conftest.err`
18129 # Allow CC to be a program name with arguments.
18134 for cc_temp in $compiler""; do
18136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18142 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18144 lt_cv_prog_compiler_c_o_RC=yes
18146 # The else clause should only fire when bootstrapping the
18147 # libtool distribution, otherwise you forgot to ship ltmain.sh
18148 # with your package, and you will get complaints that there are
18149 # no rules to generate ltmain.sh.
18150 if test -f "$ltmain"; then
18151 # See if we are running on zsh, and set the options which allow our commands through
18152 # without removal of \ escapes.
18153 if test -n "${ZSH_VERSION+set}" ; then
18154 setopt NO_GLOB_SUBST
18156 # Now quote all the things that may contain metacharacters while being
18157 # careful not to overquote the AC_SUBSTed values. We take copies of the
18158 # variables and quote the copies for generation of the libtool script.
18159 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18161 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18162 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18163 deplibs_check_method reload_flag reload_cmds need_locks \
18164 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18165 lt_cv_sys_global_symbol_to_c_name_address \
18166 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18167 old_postinstall_cmds old_postuninstall_cmds \
18171 lt_prog_compiler_wl_RC \
18172 lt_prog_compiler_pic_RC \
18173 lt_prog_compiler_static_RC \
18174 lt_prog_compiler_no_builtin_flag_RC \
18175 export_dynamic_flag_spec_RC \
18176 thread_safe_flag_spec_RC \
18177 whole_archive_flag_spec_RC \
18178 enable_shared_with_static_runtimes_RC \
18179 old_archive_cmds_RC \
18180 old_archive_from_new_cmds_RC \
18181 predep_objects_RC \
18182 postdep_objects_RC \
18185 compiler_lib_search_path_RC \
18187 archive_expsym_cmds_RC \
18188 postinstall_cmds_RC \
18189 postuninstall_cmds_RC \
18190 old_archive_from_expsyms_cmds_RC \
18191 allow_undefined_flag_RC \
18192 no_undefined_flag_RC \
18193 export_symbols_cmds_RC \
18194 hardcode_libdir_flag_spec_RC \
18195 hardcode_libdir_flag_spec_ld_RC \
18196 hardcode_libdir_separator_RC \
18197 hardcode_automatic_RC \
18199 module_expsym_cmds_RC \
18200 lt_cv_prog_compiler_c_o_RC \
18201 exclude_expsyms_RC \
18202 include_expsyms_RC; do
18205 old_archive_cmds_RC | \
18206 old_archive_from_new_cmds_RC | \
18207 archive_cmds_RC | \
18208 archive_expsym_cmds_RC | \
18210 module_expsym_cmds_RC | \
18211 old_archive_from_expsyms_cmds_RC | \
18212 export_symbols_cmds_RC | \
18213 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18214 postinstall_cmds | postuninstall_cmds | \
18215 old_postinstall_cmds | old_postuninstall_cmds | \
18216 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18217 # Double-quote double-evaled strings.
18218 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18221 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18227 *'\$0 --fallback-echo"')
18228 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18234 cat <<__EOF__ >> "$cfgfile"
18235 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18237 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18239 # Shell to use when invoking shell scripts.
18242 # Whether or not to build shared libraries.
18243 build_libtool_libs=$enable_shared
18245 # Whether or not to build static libraries.
18246 build_old_libs=$enable_static
18248 # Whether or not to add -lc for building shared libraries.
18249 build_libtool_need_lc=$archive_cmds_need_lc_RC
18251 # Whether or not to disallow shared libs when runtime libs are static
18252 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18254 # Whether or not to optimize for fast installation.
18255 fast_install=$enable_fast_install
18258 host_alias=$host_alias
18262 # The build system.
18263 build_alias=$build_alias
18267 # An echo program that does not interpret backslashes.
18272 AR_FLAGS=$lt_AR_FLAGS
18277 # LTCC compiler flags.
18278 LTCFLAGS=$lt_LTCFLAGS
18280 # A language-specific compiler.
18283 # Is the compiler the GNU C compiler?
18289 # The linker used to build libraries.
18292 # Whether we need hard or soft links.
18295 # A BSD-compatible nm program.
18298 # A symbol stripping program
18301 # Used to examine libraries when file_magic_cmd begins "file"
18302 MAGIC_CMD=$MAGIC_CMD
18304 # Used on cygwin: DLL creation program.
18307 # Used on cygwin: object dumper.
18310 # Used on cygwin: assembler.
18313 # The name of the directory that contains temporary libtool files.
18316 # How to create reloadable object files.
18317 reload_flag=$lt_reload_flag
18318 reload_cmds=$lt_reload_cmds
18320 # How to pass a linker flag through the compiler.
18321 wl=$lt_lt_prog_compiler_wl_RC
18323 # Object file suffix (normally "o").
18324 objext="$ac_objext"
18326 # Old archive suffix (normally "a").
18329 # Shared library suffix (normally ".so").
18330 shrext_cmds='$shrext_cmds'
18332 # Executable file suffix (normally "").
18335 # Additional compiler flags for building library objects.
18336 pic_flag=$lt_lt_prog_compiler_pic_RC
18339 # What is the maximum length of a command?
18340 max_cmd_len=$lt_cv_sys_max_cmd_len
18342 # Does compiler simultaneously support -c and -o options?
18343 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18345 # Must we lock files when doing compilation?
18346 need_locks=$lt_need_locks
18348 # Do we need the lib prefix for modules?
18349 need_lib_prefix=$need_lib_prefix
18351 # Do we need a version for libraries?
18352 need_version=$need_version
18354 # Whether dlopen is supported.
18355 dlopen_support=$enable_dlopen
18357 # Whether dlopen of programs is supported.
18358 dlopen_self=$enable_dlopen_self
18360 # Whether dlopen of statically linked programs is supported.
18361 dlopen_self_static=$enable_dlopen_self_static
18363 # Compiler flag to prevent dynamic linking.
18364 link_static_flag=$lt_lt_prog_compiler_static_RC
18366 # Compiler flag to turn off builtin functions.
18367 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18369 # Compiler flag to allow reflexive dlopens.
18370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18372 # Compiler flag to generate shared objects directly from archives.
18373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18375 # Compiler flag to generate thread-safe objects.
18376 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18378 # Library versioning type.
18379 version_type=$version_type
18381 # Format of library name prefix.
18382 libname_spec=$lt_libname_spec
18384 # List of archive names. First name is the real one, the rest are links.
18385 # The last name is the one that the linker finds with -lNAME.
18386 library_names_spec=$lt_library_names_spec
18388 # The coded name of the library, if different from the real name.
18389 soname_spec=$lt_soname_spec
18391 # Commands used to build and install an old-style archive.
18393 old_archive_cmds=$lt_old_archive_cmds_RC
18394 old_postinstall_cmds=$lt_old_postinstall_cmds
18395 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18397 # Create an old-style archive from a shared archive.
18398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18400 # Create a temporary old-style archive to link instead of a shared archive.
18401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18403 # Commands used to build and install a shared archive.
18404 archive_cmds=$lt_archive_cmds_RC
18405 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18406 postinstall_cmds=$lt_postinstall_cmds
18407 postuninstall_cmds=$lt_postuninstall_cmds
18409 # Commands used to build a loadable module (assumed same as above if empty)
18410 module_cmds=$lt_module_cmds_RC
18411 module_expsym_cmds=$lt_module_expsym_cmds_RC
18413 # Commands to strip libraries.
18414 old_striplib=$lt_old_striplib
18415 striplib=$lt_striplib
18417 # Dependencies to place before the objects being linked to create a
18419 predep_objects=$lt_predep_objects_RC
18421 # Dependencies to place after the objects being linked to create a
18423 postdep_objects=$lt_postdep_objects_RC
18425 # Dependencies to place before the objects being linked to create a
18427 predeps=$lt_predeps_RC
18429 # Dependencies to place after the objects being linked to create a
18431 postdeps=$lt_postdeps_RC
18433 # The library search path used internally by the compiler when linking
18434 # a shared library.
18435 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18437 # Method to check whether dependent libraries are shared objects.
18438 deplibs_check_method=$lt_deplibs_check_method
18440 # Command to use when deplibs_check_method == file_magic.
18441 file_magic_cmd=$lt_file_magic_cmd
18443 # Flag that allows shared libraries with undefined symbols to be built.
18444 allow_undefined_flag=$lt_allow_undefined_flag_RC
18446 # Flag that forces no undefined symbols.
18447 no_undefined_flag=$lt_no_undefined_flag_RC
18449 # Commands used to finish a libtool library installation in a directory.
18450 finish_cmds=$lt_finish_cmds
18452 # Same as above, but a single script fragment to be evaled but not shown.
18453 finish_eval=$lt_finish_eval
18455 # Take the output of nm and produce a listing of raw symbols and C names.
18456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18458 # Transform the output of nm in a proper C declaration
18459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18461 # Transform the output of nm in a C name address pair
18462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18464 # This is the shared library runtime path variable.
18465 runpath_var=$runpath_var
18467 # This is the shared library path variable.
18468 shlibpath_var=$shlibpath_var
18470 # Is shlibpath searched before the hard-coded library search path?
18471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18473 # How to hardcode a shared library path into an executable.
18474 hardcode_action=$hardcode_action_RC
18476 # Whether we should hardcode library paths into libraries.
18477 hardcode_into_libs=$hardcode_into_libs
18479 # Flag to hardcode \$libdir into a binary during linking.
18480 # This must work even if \$libdir does not exist.
18481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18483 # If ld is used when linking, flag to hardcode \$libdir into
18484 # a binary during linking. This must work even if \$libdir does
18486 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18488 # Whether we need a single -rpath flag with a separated argument.
18489 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18491 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18492 # resulting binary.
18493 hardcode_direct=$hardcode_direct_RC
18495 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18496 # resulting binary.
18497 hardcode_minus_L=$hardcode_minus_L_RC
18499 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18500 # the resulting binary.
18501 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18503 # Set to yes if building a shared library automatically hardcodes DIR into the library
18504 # and all subsequent libraries and executables linked against it.
18505 hardcode_automatic=$hardcode_automatic_RC
18507 # Variables whose values should be saved in libtool wrapper scripts and
18508 # restored at relink time.
18509 variables_saved_for_relink="$variables_saved_for_relink"
18511 # Whether libtool must link a program against all its dependency libraries.
18512 link_all_deplibs=$link_all_deplibs_RC
18514 # Compile-time system search path for libraries
18515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18517 # Run-time system search path for libraries
18518 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18520 # Fix the shell variable \$srcfile for the compiler.
18521 fix_srcfile_path="$fix_srcfile_path_RC"
18523 # Set to yes if exported symbols are required.
18524 always_export_symbols=$always_export_symbols_RC
18526 # The commands to list exported symbols.
18527 export_symbols_cmds=$lt_export_symbols_cmds_RC
18529 # The commands to extract the exported symbol list from a shared archive.
18530 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18532 # Symbols that should not be listed in the preloaded symbols.
18533 exclude_expsyms=$lt_exclude_expsyms_RC
18535 # Symbols that must always be exported.
18536 include_expsyms=$lt_include_expsyms_RC
18538 # ### END LIBTOOL TAG CONFIG: $tagname
18544 # If there is no Makefile yet, we rely on a make rule to execute
18545 # `config.status --recheck' to rerun these tests and create the
18546 # libtool script then.
18547 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18548 if test -f "$ltmain_in"; then
18549 test -f Makefile && make "$ltmain"
18555 ac_cpp='$CPP $CPPFLAGS'
18556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18565 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18566 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18567 { (exit 1); exit 1; }; }
18571 # Append the new tag name to the list of available tags.
18572 if test -n "$tagname" ; then
18573 available_tags="$available_tags $tagname"
18579 # Now substitute the updated list of available tags.
18580 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18581 mv "${ofile}T" "$ofile"
18585 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18586 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18587 { (exit 1); exit 1; }; }
18593 # This can be used to rebuild libtool when needed
18594 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18596 # Always use our own libtool.
18597 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18599 # Prevent multiple expansion
18622 *apple-darwin*) use_mac_ta="yes" ;;
18623 *) use_libcurl="yes" ;;
18626 if test "x$use_libcurl" = "xyes"; then
18627 echo "$as_me:$LINENO: checking for libcurl" >&5
18628 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6
18629 if CURL_LDFLAGS=`sh -c 'curl-config --libs' 2>&5` && \
18630 CURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
18631 echo "$as_me:$LINENO: result: found" >&5
18632 echo "${ECHO_T}found" >&6
18636 echo "$as_me:$LINENO: result: missing" >&5
18637 echo "${ECHO_T}missing" >&6
18638 { { echo "$as_me:$LINENO: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&5
18639 echo "$as_me: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&2;}
18640 { (exit 1); exit 1; }; }
18644 if test "x$use_mac_ta" = "xyes"; then
18645 CURL_LDFLAGS="-framework CoreServices"
18651 for ac_header in time.h
18653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18655 echo "$as_me:$LINENO: checking for $ac_header" >&5
18656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18663 # Is the header compilable?
18664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18666 cat >conftest.$ac_ext <<_ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 $ac_includes_default
18673 #include <$ac_header>
18675 rm -f conftest.$ac_objext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18677 (eval $ac_compile) 2>conftest.er1
18679 grep -v '^ *+' conftest.er1 >conftest.err
18681 cat conftest.err >&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } &&
18684 { ac_try='test -z "$ac_c_werror_flag"
18685 || test ! -s conftest.err'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; } &&
18691 { ac_try='test -s conftest.$ac_objext'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 ac_header_compiler=yes
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 ac_header_compiler=no
18704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18706 echo "${ECHO_T}$ac_header_compiler" >&6
18708 # Is the header present?
18709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 #include <$ac_header>
18719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18722 grep -v '^ *+' conftest.er1 >conftest.err
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } >/dev/null; then
18727 if test -s conftest.err; then
18728 ac_cpp_err=$ac_c_preproc_warn_flag
18729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18736 if test -z "$ac_cpp_err"; then
18737 ac_header_preproc=yes
18739 echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18742 ac_header_preproc=no
18744 rm -f conftest.err conftest.$ac_ext
18745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18746 echo "${ECHO_T}$ac_header_preproc" >&6
18748 # So? What about this header?
18749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18755 ac_header_preproc=yes
18758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18772 ## ------------------------------------------ ##
18773 ## Report this to the AC_PACKAGE_NAME lists. ##
18774 ## ------------------------------------------ ##
18777 sed "s/^/$as_me: WARNING: /" >&2
18780 echo "$as_me:$LINENO: checking for $ac_header" >&5
18781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18785 eval "$as_ac_Header=\$ac_header_preproc"
18787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18792 cat >>confdefs.h <<_ACEOF
18793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18801 # Check whether --enable-unit-tests or --disable-unit-tests was given.
18802 if test "${enable_unit_tests+set}" = set; then
18803 enableval="$enable_unit_tests"
18804 enable_unit_tests="$enableval"
18806 enable_unit_tests="no"
18808 # Check whether --enable-integration-tests or --disable-integration-tests was given.
18809 if test "${enable_integration_tests+set}" = set; then
18810 enableval="$enable_integration_tests"
18811 enable_integration_tests="$enableval"
18813 enable_integration_tests="no"
18815 # Check whether --enable-assert or --disable-assert was given.
18816 if test "${enable_assert+set}" = set; then
18817 enableval="$enable_assert"
18818 enable_assert="$enableval"
18823 if test $enable_assert == "no"; then
18825 cat >>confdefs.h <<\_ACEOF
18831 # Optionally use wchar_t for unicode strings
18832 # Check whether --enable-wchar or --disable-wchar was given.
18833 if test "${enable_wchar+set}" = set; then
18834 enableval="$enable_wchar"
18835 enable_wchar="$enableval"
18840 if test $enable_wchar == "yes"; then
18842 cat >>confdefs.h <<\_ACEOF
18843 #define USE_WCHAR 1
18847 for ac_header in wchar.h
18849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18851 echo "$as_me:$LINENO: checking for $ac_header" >&5
18852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18859 # Is the header compilable?
18860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18862 cat >conftest.$ac_ext <<_ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18868 $ac_includes_default
18869 #include <$ac_header>
18871 rm -f conftest.$ac_objext
18872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18873 (eval $ac_compile) 2>conftest.er1
18875 grep -v '^ *+' conftest.er1 >conftest.err
18877 cat conftest.err >&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } &&
18880 { ac_try='test -z "$ac_c_werror_flag"
18881 || test ! -s conftest.err'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } &&
18887 { ac_try='test -s conftest.$ac_objext'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; }; then
18893 ac_header_compiler=yes
18895 echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18898 ac_header_compiler=no
18900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18902 echo "${ECHO_T}$ac_header_compiler" >&6
18904 # Is the header present?
18905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18907 cat >conftest.$ac_ext <<_ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h. */
18913 #include <$ac_header>
18915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18918 grep -v '^ *+' conftest.er1 >conftest.err
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } >/dev/null; then
18923 if test -s conftest.err; then
18924 ac_cpp_err=$ac_c_preproc_warn_flag
18925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18932 if test -z "$ac_cpp_err"; then
18933 ac_header_preproc=yes
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 ac_header_preproc=no
18940 rm -f conftest.err conftest.$ac_ext
18941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18942 echo "${ECHO_T}$ac_header_preproc" >&6
18944 # So? What about this header?
18945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18951 ac_header_preproc=yes
18954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18968 ## ------------------------------------------ ##
18969 ## Report this to the AC_PACKAGE_NAME lists. ##
18970 ## ------------------------------------------ ##
18973 sed "s/^/$as_me: WARNING: /" >&2
18976 echo "$as_me:$LINENO: checking for $ac_header" >&5
18977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 eval "$as_ac_Header=\$ac_header_preproc"
18983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18988 cat >>confdefs.h <<_ACEOF
18989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18999 if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
19000 CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || { { echo "$as_me:$LINENO: error: \"cppunit-config --cflags failed - is it installed?\"" >&5
19001 echo "$as_me: error: \"cppunit-config --cflags failed - is it installed?\"" >&2;}
19002 { (exit 1); exit 1; }; }
19003 CPPUNIT_LDFLAGS=`cppunit-config --libs` || { { echo "$as_me:$LINENO: error: \"cppunit-config --libs failed - is it installed?\"" >&5
19004 echo "$as_me: error: \"cppunit-config --libs failed - is it installed?\"" >&2;}
19005 { (exit 1); exit 1; }; }
19006 CPPUNIT_TESTS=client-test
19008 for ac_header in signal.h
19010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19012 echo "$as_me:$LINENO: checking for $ac_header" >&5
19013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19020 # Is the header compilable?
19021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 $ac_includes_default
19030 #include <$ac_header>
19032 rm -f conftest.$ac_objext
19033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19034 (eval $ac_compile) 2>conftest.er1
19036 grep -v '^ *+' conftest.er1 >conftest.err
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -z "$ac_c_werror_flag"
19042 || test ! -s conftest.err'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; } &&
19048 { ac_try='test -s conftest.$ac_objext'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_header_compiler=yes
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19059 ac_header_compiler=no
19061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19063 echo "${ECHO_T}$ac_header_compiler" >&6
19065 # Is the header present?
19066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19068 cat >conftest.$ac_ext <<_ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 #include <$ac_header>
19076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } >/dev/null; then
19084 if test -s conftest.err; then
19085 ac_cpp_err=$ac_c_preproc_warn_flag
19086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19093 if test -z "$ac_cpp_err"; then
19094 ac_header_preproc=yes
19096 echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19099 ac_header_preproc=no
19101 rm -f conftest.err conftest.$ac_ext
19102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19103 echo "${ECHO_T}$ac_header_preproc" >&6
19105 # So? What about this header?
19106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19112 ac_header_preproc=yes
19115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19129 ## ------------------------------------------ ##
19130 ## Report this to the AC_PACKAGE_NAME lists. ##
19131 ## ------------------------------------------ ##
19134 sed "s/^/$as_me: WARNING: /" >&2
19137 echo "$as_me:$LINENO: checking for $ac_header" >&5
19138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 eval "$as_ac_Header=\$ac_header_preproc"
19144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19149 cat >>confdefs.h <<_ACEOF
19150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19162 if test $enable_unit_tests == "yes"; then
19164 cat >>confdefs.h <<\_ACEOF
19165 #define ENABLE_UNIT_TESTS 1
19169 if test $enable_integration_tests == "yes"; then
19171 cat >>confdefs.h <<\_ACEOF
19172 #define ENABLE_INTEGRATION_TESTS 1
19178 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile"
19179 cat >confcache <<\_ACEOF
19180 # This file is a shell script that caches the results of configure
19181 # tests run on this system so they can be shared between configure
19182 # scripts and configure runs, see configure's option --config-cache.
19183 # It is not useful on other systems. If it contains results you don't
19184 # want to keep, you may remove or edit it.
19186 # config.status only pays attention to the cache file if you give it
19187 # the --recheck option to rerun configure.
19189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19191 # following values.
19195 # The following way of writing the cache mishandles newlines in values,
19196 # but we know of no workaround that is simple, portable, and efficient.
19197 # So, don't put newlines in cache variables' values.
19198 # Ultrix sh set writes to stderr and can't be redirected directly,
19199 # and sets the high bit in the cache file unless we assign to the vars.
19202 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19204 # `set' does not quote correctly, so add quotes (double-quote
19205 # substitution turns \\\\ into \\, and sed turns \\ into \).
19208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19211 # `set' quotes correctly as required by POSIX, so do not add quotes.
19213 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19222 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19224 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19225 if test -w $cache_file; then
19226 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19227 cat confcache >$cache_file
19229 echo "not updating unwritable cache $cache_file"
19234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19235 # Let make expand exec_prefix.
19236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19240 # trailing colons and then remove the whole line if VPATH becomes empty
19241 # (actually we leave an empty line to preserve line numbers).
19242 if test "x$srcdir" = x.; then
19243 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19244 s/:*\$(srcdir):*/:/;
19245 s/:*\${srcdir}:*/:/;
19247 s/^\([^=]*=[ ]*\):*/\1/;
19253 DEFS=-DHAVE_CONFIG_H
19257 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19258 # 1. Remove the extension, and $U if already installed.
19259 ac_i=`echo "$ac_i" |
19260 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19262 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19263 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19265 LIBOBJS=$ac_libobjs
19267 LTLIBOBJS=$ac_ltlibobjs
19270 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19271 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19272 Usually this means the macro was only invoked conditionally." >&5
19273 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19274 Usually this means the macro was only invoked conditionally." >&2;}
19275 { (exit 1); exit 1; }; }
19277 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19278 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19279 Usually this means the macro was only invoked conditionally." >&5
19280 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19281 Usually this means the macro was only invoked conditionally." >&2;}
19282 { (exit 1); exit 1; }; }
19284 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19285 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19286 Usually this means the macro was only invoked conditionally." >&5
19287 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19288 Usually this means the macro was only invoked conditionally." >&2;}
19289 { (exit 1); exit 1; }; }
19292 : ${CONFIG_STATUS=./config.status}
19293 ac_clean_files_save=$ac_clean_files
19294 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19295 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19296 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19297 cat >$CONFIG_STATUS <<_ACEOF
19299 # Generated by $as_me.
19300 # Run this file to recreate the current configuration.
19301 # Compiler output produced by configure, useful for debugging
19302 # configure, is in config.log if it exists.
19305 ac_cs_recheck=false
19307 SHELL=\${CONFIG_SHELL-$SHELL}
19310 cat >>$CONFIG_STATUS <<\_ACEOF
19311 ## --------------------- ##
19312 ## M4sh Initialization. ##
19313 ## --------------------- ##
19315 # Be Bourne compatible
19316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19319 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19320 # is contrary to our usage. Disable this feature.
19321 alias -g '${1+"$@"}'='"$@"'
19322 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19325 DUALCASE=1; export DUALCASE # for MKS sh
19327 # Support unset when possible.
19328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19335 # Work around bugs in pre-3.0 UWIN ksh.
19336 $as_unset ENV MAIL MAILPATH
19343 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19344 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19345 LC_TELEPHONE LC_TIME
19347 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19348 eval $as_var=C; export $as_var
19354 # Required to use basename.
19355 if expr a : '\(a\)' >/dev/null 2>&1; then
19361 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19362 as_basename=basename
19368 # Name of the executable.
19369 as_me=`$as_basename "$0" ||
19370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19371 X"$0" : 'X\(//\)$' \| \
19372 X"$0" : 'X\(/\)$' \| \
19373 . : '\(.\)' 2>/dev/null ||
19375 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19376 /^X\/\(\/\/\)$/{ s//\1/; q; }
19377 /^X\/\(\/\).*/{ s//\1/; q; }
19381 # PATH needs CR, and LINENO needs CR and PATH.
19382 # Avoid depending upon Character Ranges.
19383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19386 as_cr_digits='0123456789'
19387 as_cr_alnum=$as_cr_Letters$as_cr_digits
19389 # The user is always right.
19390 if test "${PATH_SEPARATOR+set}" != set; then
19391 echo "#! /bin/sh" >conf$$.sh
19392 echo "exit 0" >>conf$$.sh
19394 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19403 as_lineno_1=$LINENO
19404 as_lineno_2=$LINENO
19405 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19406 test "x$as_lineno_1" != "x$as_lineno_2" &&
19407 test "x$as_lineno_3" = "x$as_lineno_2" || {
19408 # Find who we are. Look in the path if we contain no path at all
19411 *[\\/]* ) as_myself=$0 ;;
19412 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19413 for as_dir in $PATH
19416 test -z "$as_dir" && as_dir=.
19417 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19422 # We did not find ourselves, most probably we were run as `sh COMMAND'
19423 # in which case we are not to be found in the path.
19424 if test "x$as_myself" = x; then
19427 if test ! -f "$as_myself"; then
19428 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19429 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19430 { (exit 1); exit 1; }; }
19432 case $CONFIG_SHELL in
19434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19435 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19438 test -z "$as_dir" && as_dir=.
19439 for as_base in sh bash ksh sh5; do
19442 if ("$as_dir/$as_base" -c '
19443 as_lineno_1=$LINENO
19444 as_lineno_2=$LINENO
19445 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19446 test "x$as_lineno_1" != "x$as_lineno_2" &&
19447 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19448 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19449 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19450 CONFIG_SHELL=$as_dir/$as_base
19451 export CONFIG_SHELL
19452 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19460 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19461 # uniformly replaced by the line number. The first 'sed' inserts a
19462 # line-number line before each line; the second 'sed' does the real
19463 # work. The second script uses 'N' to pair each line-number line
19464 # with the numbered line, and appends trailing '-' during
19465 # substitution so that $LINENO is not a special case at line end.
19466 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19467 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19468 sed '=' <$as_myself |
19473 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19476 s,^['$as_cr_digits']*\n,,
19477 ' >$as_me.lineno &&
19478 chmod +x $as_me.lineno ||
19479 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19480 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19481 { (exit 1); exit 1; }; }
19483 # Don't try to exec as it changes $[0], causing all sort of problems
19484 # (the dirname of $[0] is not the place where we might find the
19485 # original and so on. Autoconf is especially sensible to this).
19487 # Exit status is that of the last command.
19492 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19493 *c*,-n*) ECHO_N= ECHO_C='
19495 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19496 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19499 if expr a : '\(a\)' >/dev/null 2>&1; then
19505 rm -f conf$$ conf$$.exe conf$$.file
19507 if ln -s conf$$.file conf$$ 2>/dev/null; then
19508 # We could just check for DJGPP; but this test a) works b) is more generic
19509 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19510 if test -f conf$$.exe; then
19511 # Don't use ln at all; we don't have any links
19516 elif ln conf$$.file conf$$ 2>/dev/null; then
19521 rm -f conf$$ conf$$.exe conf$$.file
19523 if mkdir -p . 2>/dev/null; then
19526 test -d ./-p && rmdir ./-p
19530 as_executable_p="test -f"
19532 # Sed expression to map a string onto a valid CPP name.
19533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19535 # Sed expression to map a string onto a valid variable name.
19536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19540 # We need space, tab and new line, in precisely that order.
19550 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19551 # report actual input values of CONFIG_FILES etc. instead of their
19552 # values after options handling. Logging --version etc. is OK.
19556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19557 ## Running $as_me. ##
19562 This file was extended by $as_me, which was
19563 generated by GNU Autoconf 2.59. Invocation command line was
19565 CONFIG_FILES = $CONFIG_FILES
19566 CONFIG_HEADERS = $CONFIG_HEADERS
19567 CONFIG_LINKS = $CONFIG_LINKS
19568 CONFIG_COMMANDS = $CONFIG_COMMANDS
19572 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19576 # Files that config.status was made for.
19577 if test -n "$ac_config_files"; then
19578 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19581 if test -n "$ac_config_headers"; then
19582 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19585 if test -n "$ac_config_links"; then
19586 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19589 if test -n "$ac_config_commands"; then
19590 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19593 cat >>$CONFIG_STATUS <<\_ACEOF
19596 \`$as_me' instantiates files from templates according to the
19597 current configuration.
19599 Usage: $0 [OPTIONS] [FILE]...
19601 -h, --help print this help, then exit
19602 -V, --version print version number, then exit
19603 -q, --quiet do not print progress messages
19604 -d, --debug don't remove temporary files
19605 --recheck update $as_me by reconfiguring in the same conditions
19606 --file=FILE[:TEMPLATE]
19607 instantiate the configuration file FILE
19608 --header=FILE[:TEMPLATE]
19609 instantiate the configuration header FILE
19611 Configuration files:
19614 Configuration headers:
19617 Configuration commands:
19620 Report bugs to <bug-autoconf@gnu.org>."
19623 cat >>$CONFIG_STATUS <<_ACEOF
19626 configured by $0, generated by GNU Autoconf 2.59,
19627 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19629 Copyright (C) 2003 Free Software Foundation, Inc.
19630 This config.status script is free software; the Free Software Foundation
19631 gives unlimited permission to copy, distribute and modify it."
19636 cat >>$CONFIG_STATUS <<\_ACEOF
19637 # If no file are specified by the user, then we need to provide default
19638 # value. By we need to know if files were specified by the user.
19644 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19645 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19653 *) # This is not an option, so the user has probably given explicit
19656 ac_need_defaults=false;;
19660 # Handling of the options.
19662 cat >>$CONFIG_STATUS <<\_ACEOF
19663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19665 --version | --vers* | -V )
19666 echo "$ac_cs_version"; exit 0 ;;
19668 # Conflict between --help and --header
19669 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19670 Try \`$0 --help' for more information." >&5
19671 echo "$as_me: error: ambiguous option: $1
19672 Try \`$0 --help' for more information." >&2;}
19673 { (exit 1); exit 1; }; };;
19674 --help | --hel | -h )
19675 echo "$ac_cs_usage"; exit 0 ;;
19676 --debug | --d* | -d )
19678 --file | --fil | --fi | --f )
19680 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19681 ac_need_defaults=false;;
19682 --header | --heade | --head | --hea )
19684 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19685 ac_need_defaults=false;;
19686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19687 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19690 # This is an error.
19691 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19692 Try \`$0 --help' for more information." >&5
19693 echo "$as_me: error: unrecognized option: $1
19694 Try \`$0 --help' for more information." >&2;}
19695 { (exit 1); exit 1; }; } ;;
19697 *) ac_config_targets="$ac_config_targets $1" ;;
19703 ac_configure_extra_args=
19705 if $ac_cs_silent; then
19707 ac_configure_extra_args="$ac_configure_extra_args --silent"
19711 cat >>$CONFIG_STATUS <<_ACEOF
19712 if \$ac_cs_recheck; then
19713 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19714 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19719 cat >>$CONFIG_STATUS <<_ACEOF
19721 # INIT-COMMANDS section.
19724 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19730 cat >>$CONFIG_STATUS <<\_ACEOF
19731 for ac_config_target in $ac_config_targets
19733 case "$ac_config_target" in
19734 # Handling of arguments.
19735 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19736 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19737 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19738 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19739 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19740 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19741 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19742 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19743 { (exit 1); exit 1; }; };;
19747 # If the user did not use the arguments to specify the items to instantiate,
19748 # then the envvar interface is used. Set only those that are not.
19749 # We use the long form for the default assignment because of an extremely
19750 # bizarre bug on SunOS 4.1.3.
19751 if $ac_need_defaults; then
19752 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19753 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19754 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19757 # Have a temporary directory for convenience. Make it in the build tree
19758 # simply because there is no reason to put it here, and in addition,
19759 # creating and moving files from /tmp can sometimes cause problems.
19760 # Create a temporary directory, and hook for its removal unless debugging.
19763 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19764 trap '{ (exit 1); exit 1; }' 1 2 13 15
19767 # Create a (secure) tmp directory for tmp files.
19770 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19771 test -n "$tmp" && test -d "$tmp"
19774 tmp=./confstat$$-$RANDOM
19775 (umask 077 && mkdir $tmp)
19778 echo "$me: cannot create a temporary directory in ." >&2
19779 { (exit 1); exit 1; }
19784 cat >>$CONFIG_STATUS <<_ACEOF
19787 # CONFIG_FILES section.
19790 # No need to generate the scripts if there are no CONFIG_FILES.
19791 # This happens for instance when ./config.status config.h
19792 if test -n "\$CONFIG_FILES"; then
19793 # Protect against being on the right side of a sed subst in config.status.
19794 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19795 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19796 s,@SHELL@,$SHELL,;t t
19797 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19798 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19799 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19800 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19801 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19802 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19803 s,@exec_prefix@,$exec_prefix,;t t
19804 s,@prefix@,$prefix,;t t
19805 s,@program_transform_name@,$program_transform_name,;t t
19806 s,@bindir@,$bindir,;t t
19807 s,@sbindir@,$sbindir,;t t
19808 s,@libexecdir@,$libexecdir,;t t
19809 s,@datadir@,$datadir,;t t
19810 s,@sysconfdir@,$sysconfdir,;t t
19811 s,@sharedstatedir@,$sharedstatedir,;t t
19812 s,@localstatedir@,$localstatedir,;t t
19813 s,@libdir@,$libdir,;t t
19814 s,@includedir@,$includedir,;t t
19815 s,@oldincludedir@,$oldincludedir,;t t
19816 s,@infodir@,$infodir,;t t
19817 s,@mandir@,$mandir,;t t
19818 s,@build_alias@,$build_alias,;t t
19819 s,@host_alias@,$host_alias,;t t
19820 s,@target_alias@,$target_alias,;t t
19821 s,@DEFS@,$DEFS,;t t
19822 s,@ECHO_C@,$ECHO_C,;t t
19823 s,@ECHO_N@,$ECHO_N,;t t
19824 s,@ECHO_T@,$ECHO_T,;t t
19825 s,@LIBS@,$LIBS,;t t
19826 s,@build@,$build,;t t
19827 s,@build_cpu@,$build_cpu,;t t
19828 s,@build_vendor@,$build_vendor,;t t
19829 s,@build_os@,$build_os,;t t
19830 s,@host@,$host,;t t
19831 s,@host_cpu@,$host_cpu,;t t
19832 s,@host_vendor@,$host_vendor,;t t
19833 s,@host_os@,$host_os,;t t
19834 s,@target@,$target,;t t
19835 s,@target_cpu@,$target_cpu,;t t
19836 s,@target_vendor@,$target_vendor,;t t
19837 s,@target_os@,$target_os,;t t
19838 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19839 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19840 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19841 s,@CYGPATH_W@,$CYGPATH_W,;t t
19842 s,@PACKAGE@,$PACKAGE,;t t
19843 s,@VERSION@,$VERSION,;t t
19844 s,@ACLOCAL@,$ACLOCAL,;t t
19845 s,@AUTOCONF@,$AUTOCONF,;t t
19846 s,@AUTOMAKE@,$AUTOMAKE,;t t
19847 s,@AUTOHEADER@,$AUTOHEADER,;t t
19848 s,@MAKEINFO@,$MAKEINFO,;t t
19849 s,@install_sh@,$install_sh,;t t
19850 s,@STRIP@,$STRIP,;t t
19851 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19852 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19853 s,@mkdir_p@,$mkdir_p,;t t
19855 s,@SET_MAKE@,$SET_MAKE,;t t
19856 s,@am__leading_dot@,$am__leading_dot,;t t
19857 s,@AMTAR@,$AMTAR,;t t
19858 s,@am__tar@,$am__tar,;t t
19859 s,@am__untar@,$am__untar,;t t
19861 s,@CXXFLAGS@,$CXXFLAGS,;t t
19862 s,@LDFLAGS@,$LDFLAGS,;t t
19863 s,@CPPFLAGS@,$CPPFLAGS,;t t
19864 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19865 s,@EXEEXT@,$EXEEXT,;t t
19866 s,@OBJEXT@,$OBJEXT,;t t
19867 s,@DEPDIR@,$DEPDIR,;t t
19868 s,@am__include@,$am__include,;t t
19869 s,@am__quote@,$am__quote,;t t
19870 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19871 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19872 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19873 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19874 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19875 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19877 s,@CFLAGS@,$CFLAGS,;t t
19878 s,@ac_ct_CC@,$ac_ct_CC,;t t
19879 s,@CCDEPMODE@,$CCDEPMODE,;t t
19880 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19881 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19882 s,@EGREP@,$EGREP,;t t
19883 s,@LN_S@,$LN_S,;t t
19884 s,@ECHO@,$ECHO,;t t
19886 s,@ac_ct_AR@,$ac_ct_AR,;t t
19887 s,@RANLIB@,$RANLIB,;t t
19888 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19890 s,@CXXCPP@,$CXXCPP,;t t
19892 s,@FFLAGS@,$FFLAGS,;t t
19893 s,@ac_ct_F77@,$ac_ct_F77,;t t
19894 s,@LIBTOOL@,$LIBTOOL,;t t
19895 s,@CURL_LDFLAGS@,$CURL_LDFLAGS,;t t
19896 s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
19897 s,@CPPUNIT_CXXFLAGS@,$CPPUNIT_CXXFLAGS,;t t
19898 s,@CPPUNIT_LDFLAGS@,$CPPUNIT_LDFLAGS,;t t
19899 s,@CPPUNIT_TESTS@,$CPPUNIT_TESTS,;t t
19900 s,@LIBOBJS@,$LIBOBJS,;t t
19901 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19906 cat >>$CONFIG_STATUS <<\_ACEOF
19907 # Split the substitutions into bite-sized pieces for seds with
19908 # small command number limits, like on Digital OSF/1 and HP-UX.
19909 ac_max_sed_lines=48
19910 ac_sed_frag=1 # Number of current file.
19911 ac_beg=1 # First line for current file.
19912 ac_end=$ac_max_sed_lines # Line after last line for current file.
19915 while $ac_more_lines; do
19916 if test $ac_beg -gt 1; then
19917 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19919 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19921 if test ! -s $tmp/subs.frag; then
19922 ac_more_lines=false
19924 # The purpose of the label and of the branching condition is to
19925 # speed up the sed processing (if there are no `@' at all, there
19926 # is no need to browse any of the substitutions).
19927 # These are the two extra sed commands mentioned above.
19929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19930 if test -z "$ac_sed_cmds"; then
19931 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19933 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19935 ac_sed_frag=`expr $ac_sed_frag + 1`
19937 ac_end=`expr $ac_end + $ac_max_sed_lines`
19940 if test -z "$ac_sed_cmds"; then
19943 fi # test -n "$CONFIG_FILES"
19946 cat >>$CONFIG_STATUS <<\_ACEOF
19947 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19950 - | *:- | *:-:* ) # input from stdin
19952 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19953 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19954 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19956 * ) ac_file_in=$ac_file.in ;;
19959 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19960 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19962 X"$ac_file" : 'X\(//\)[^/]' \| \
19963 X"$ac_file" : 'X\(//\)$' \| \
19964 X"$ac_file" : 'X\(/\)' \| \
19965 . : '\(.\)' 2>/dev/null ||
19967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19969 /^X\(\/\/\)$/{ s//\1/; q; }
19970 /^X\(\/\).*/{ s//\1/; q; }
19972 { if $as_mkdir_p; then
19977 while test ! -d "$as_dir"; do
19978 as_dirs="$as_dir $as_dirs"
19979 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19981 X"$as_dir" : 'X\(//\)[^/]' \| \
19982 X"$as_dir" : 'X\(//\)$' \| \
19983 X"$as_dir" : 'X\(/\)' \| \
19984 . : '\(.\)' 2>/dev/null ||
19986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19988 /^X\(\/\/\)$/{ s//\1/; q; }
19989 /^X\(\/\).*/{ s//\1/; q; }
19992 test ! -n "$as_dirs" || mkdir $as_dirs
19993 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19994 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19995 { (exit 1); exit 1; }; }; }
19999 if test "$ac_dir" != .; then
20000 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20001 # A "../" for each directory in $ac_dir_suffix.
20002 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20004 ac_dir_suffix= ac_top_builddir=
20008 .) # No --srcdir option. We are building in place.
20010 if test -z "$ac_top_builddir"; then
20013 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20015 [\\/]* | ?:[\\/]* ) # Absolute path.
20016 ac_srcdir=$srcdir$ac_dir_suffix;
20017 ac_top_srcdir=$srcdir ;;
20018 *) # Relative path.
20019 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20020 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20023 # Do not use `cd foo && pwd` to compute absolute paths, because
20024 # the directories may not exist.
20026 .) ac_abs_builddir="$ac_dir";;
20029 .) ac_abs_builddir=`pwd`;;
20030 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20031 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20034 case $ac_abs_builddir in
20035 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20037 case ${ac_top_builddir}. in
20038 .) ac_abs_top_builddir=$ac_abs_builddir;;
20039 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20040 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20043 case $ac_abs_builddir in
20044 .) ac_abs_srcdir=$ac_srcdir;;
20047 .) ac_abs_srcdir=$ac_abs_builddir;;
20048 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20049 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20052 case $ac_abs_builddir in
20053 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20055 case $ac_top_srcdir in
20056 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20057 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20058 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20065 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20068 if test x"$ac_file" != x-; then
20069 { echo "$as_me:$LINENO: creating $ac_file" >&5
20070 echo "$as_me: creating $ac_file" >&6;}
20073 # Let's still pretend it is `configure' which instantiates (i.e., don't
20074 # use $as_me), people would be surprised to read:
20075 # /* config.h. Generated by config.status. */
20076 if test x"$ac_file" = x-; then
20079 configure_input="$ac_file. "
20081 configure_input=$configure_input"Generated from `echo $ac_file_in |
20082 sed 's,.*/,,'` by configure."
20084 # First look for the input files in the build tree, otherwise in the
20086 ac_file_inputs=`IFS=:
20087 for f in $ac_file_in; do
20089 -) echo $tmp/stdin ;;
20091 # Absolute (can't be DOS-style, as IFS=:)
20092 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20093 echo "$as_me: error: cannot find input file: $f" >&2;}
20094 { (exit 1); exit 1; }; }
20097 if test -f "$f"; then
20100 elif test -f "$srcdir/$f"; then
20105 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20106 echo "$as_me: error: cannot find input file: $f" >&2;}
20107 { (exit 1); exit 1; }; }
20110 done` || { (exit 1); exit 1; }
20112 cat >>$CONFIG_STATUS <<_ACEOF
20116 cat >>$CONFIG_STATUS <<\_ACEOF
20118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20119 s,@configure_input@,$configure_input,;t t
20120 s,@srcdir@,$ac_srcdir,;t t
20121 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20122 s,@top_srcdir@,$ac_top_srcdir,;t t
20123 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20124 s,@builddir@,$ac_builddir,;t t
20125 s,@abs_builddir@,$ac_abs_builddir,;t t
20126 s,@top_builddir@,$ac_top_builddir,;t t
20127 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20128 s,@INSTALL@,$ac_INSTALL,;t t
20129 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20131 if test x"$ac_file" != x-; then
20132 mv $tmp/out $ac_file
20140 cat >>$CONFIG_STATUS <<\_ACEOF
20143 # CONFIG_HEADER section.
20146 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20147 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20149 # ac_d sets the value in "#define NAME VALUE" lines.
20150 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20151 ac_dB='[ ].*$,\1#\2'
20154 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20155 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20156 ac_uB='$,\1#\2define\3'
20160 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20163 - | *:- | *:-:* ) # input from stdin
20165 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20166 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20167 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20169 * ) ac_file_in=$ac_file.in ;;
20172 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20173 echo "$as_me: creating $ac_file" >&6;}
20175 # First look for the input files in the build tree, otherwise in the
20177 ac_file_inputs=`IFS=:
20178 for f in $ac_file_in; do
20180 -) echo $tmp/stdin ;;
20182 # Absolute (can't be DOS-style, as IFS=:)
20183 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20184 echo "$as_me: error: cannot find input file: $f" >&2;}
20185 { (exit 1); exit 1; }; }
20186 # Do quote $f, to prevent DOS paths from being IFS'd.
20189 if test -f "$f"; then
20192 elif test -f "$srcdir/$f"; then
20197 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20198 echo "$as_me: error: cannot find input file: $f" >&2;}
20199 { (exit 1); exit 1; }; }
20202 done` || { (exit 1); exit 1; }
20203 # Remove the trailing spaces.
20204 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20208 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20209 # `conftest.undefs', that substitutes the proper values into
20210 # config.h.in to produce config.h. The first handles `#define'
20211 # templates, and the second `#undef' templates.
20212 # And first: Protect against being on the right side of a sed subst in
20213 # config.status. Protect against being in an unquoted here document
20214 # in config.status.
20215 rm -f conftest.defines conftest.undefs
20216 # Using a here document instead of a string reduces the quoting nightmare.
20217 # Putting comments in sed scripts is not portable.
20219 # `end' is used to avoid that the second main sed command (meant for
20220 # 0-ary CPP macros) applies to n-ary macro definitions.
20221 # See the Autoconf documentation for `clear'.
20222 cat >confdef2sed.sed <<\_ACEOF
20227 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20229 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20232 # If some macros were called several times there might be several times
20233 # the same #defines, which is useless. Nevertheless, we may not want to
20234 # sort them, since we want the *last* AC-DEFINE to be honored.
20235 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20236 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20237 rm -f confdef2sed.sed
20239 # This sed command replaces #undef with comments. This is necessary, for
20240 # example, in the case of _POSIX_SOURCE, which is predefined and required
20241 # on some systems where configure will not decide to define it.
20242 cat >>conftest.undefs <<\_ACEOF
20243 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20246 # Break up conftest.defines because some shells have a limit on the size
20247 # of here documents, and old seds have small limits too (100 cmds).
20248 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20249 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20250 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20251 echo ' :' >>$CONFIG_STATUS
20252 rm -f conftest.tail
20253 while grep . conftest.defines >/dev/null
20255 # Write a limited-size here document to $tmp/defines.sed.
20256 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20257 # Speed up: don't consider the non `#define' lines.
20258 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20259 # Work around the forget-to-reset-the-flag bug.
20260 echo 't clr' >>$CONFIG_STATUS
20261 echo ': clr' >>$CONFIG_STATUS
20262 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20264 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20266 mv $tmp/out $tmp/in
20268 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20269 rm -f conftest.defines
20270 mv conftest.tail conftest.defines
20272 rm -f conftest.defines
20273 echo ' fi # grep' >>$CONFIG_STATUS
20274 echo >>$CONFIG_STATUS
20276 # Break up conftest.undefs because some shells have a limit on the size
20277 # of here documents, and old seds have small limits too (100 cmds).
20278 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20279 rm -f conftest.tail
20280 while grep . conftest.undefs >/dev/null
20282 # Write a limited-size here document to $tmp/undefs.sed.
20283 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20284 # Speed up: don't consider the non `#undef'
20285 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20286 # Work around the forget-to-reset-the-flag bug.
20287 echo 't clr' >>$CONFIG_STATUS
20288 echo ': clr' >>$CONFIG_STATUS
20289 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20291 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20293 mv $tmp/out $tmp/in
20295 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20296 rm -f conftest.undefs
20297 mv conftest.tail conftest.undefs
20299 rm -f conftest.undefs
20301 cat >>$CONFIG_STATUS <<\_ACEOF
20302 # Let's still pretend it is `configure' which instantiates (i.e., don't
20303 # use $as_me), people would be surprised to read:
20304 # /* config.h. Generated by config.status. */
20305 if test x"$ac_file" = x-; then
20306 echo "/* Generated by configure. */" >$tmp/config.h
20308 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20310 cat $tmp/in >>$tmp/config.h
20312 if test x"$ac_file" != x-; then
20313 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20314 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20315 echo "$as_me: $ac_file is unchanged" >&6;}
20317 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20319 X"$ac_file" : 'X\(//\)[^/]' \| \
20320 X"$ac_file" : 'X\(//\)$' \| \
20321 X"$ac_file" : 'X\(/\)' \| \
20322 . : '\(.\)' 2>/dev/null ||
20324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20326 /^X\(\/\/\)$/{ s//\1/; q; }
20327 /^X\(\/\).*/{ s//\1/; q; }
20329 { if $as_mkdir_p; then
20334 while test ! -d "$as_dir"; do
20335 as_dirs="$as_dir $as_dirs"
20336 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20338 X"$as_dir" : 'X\(//\)[^/]' \| \
20339 X"$as_dir" : 'X\(//\)$' \| \
20340 X"$as_dir" : 'X\(/\)' \| \
20341 . : '\(.\)' 2>/dev/null ||
20343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20345 /^X\(\/\/\)$/{ s//\1/; q; }
20346 /^X\(\/\).*/{ s//\1/; q; }
20349 test ! -n "$as_dirs" || mkdir $as_dirs
20350 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20351 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20352 { (exit 1); exit 1; }; }; }
20355 mv $tmp/config.h $ac_file
20359 rm -f $tmp/config.h
20361 # Compute $ac_file's index in $config_headers.
20363 for _am_header in $config_headers :; do
20364 case $_am_header in
20365 $ac_file | $ac_file:* )
20368 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20371 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20372 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20373 X$ac_file : 'X\(//\)[^/]' \| \
20374 X$ac_file : 'X\(//\)$' \| \
20375 X$ac_file : 'X\(/\)' \| \
20376 . : '\(.\)' 2>/dev/null ||
20378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20380 /^X\(\/\/\)$/{ s//\1/; q; }
20381 /^X\(\/\).*/{ s//\1/; q; }
20382 s/.*/./; q'`/stamp-h$_am_stamp_count
20385 cat >>$CONFIG_STATUS <<\_ACEOF
20388 # CONFIG_COMMANDS section.
20390 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20391 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20392 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20393 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20394 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20395 X"$ac_dest" : 'X\(//\)[^/]' \| \
20396 X"$ac_dest" : 'X\(//\)$' \| \
20397 X"$ac_dest" : 'X\(/\)' \| \
20398 . : '\(.\)' 2>/dev/null ||
20400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20402 /^X\(\/\/\)$/{ s//\1/; q; }
20403 /^X\(\/\).*/{ s//\1/; q; }
20405 { if $as_mkdir_p; then
20410 while test ! -d "$as_dir"; do
20411 as_dirs="$as_dir $as_dirs"
20412 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20414 X"$as_dir" : 'X\(//\)[^/]' \| \
20415 X"$as_dir" : 'X\(//\)$' \| \
20416 X"$as_dir" : 'X\(/\)' \| \
20417 . : '\(.\)' 2>/dev/null ||
20419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20421 /^X\(\/\/\)$/{ s//\1/; q; }
20422 /^X\(\/\).*/{ s//\1/; q; }
20425 test ! -n "$as_dirs" || mkdir $as_dirs
20426 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20427 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20428 { (exit 1); exit 1; }; }; }
20432 if test "$ac_dir" != .; then
20433 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20434 # A "../" for each directory in $ac_dir_suffix.
20435 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20437 ac_dir_suffix= ac_top_builddir=
20441 .) # No --srcdir option. We are building in place.
20443 if test -z "$ac_top_builddir"; then
20446 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20448 [\\/]* | ?:[\\/]* ) # Absolute path.
20449 ac_srcdir=$srcdir$ac_dir_suffix;
20450 ac_top_srcdir=$srcdir ;;
20451 *) # Relative path.
20452 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20453 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20456 # Do not use `cd foo && pwd` to compute absolute paths, because
20457 # the directories may not exist.
20459 .) ac_abs_builddir="$ac_dir";;
20462 .) ac_abs_builddir=`pwd`;;
20463 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20464 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20467 case $ac_abs_builddir in
20468 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20470 case ${ac_top_builddir}. in
20471 .) ac_abs_top_builddir=$ac_abs_builddir;;
20472 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20473 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20476 case $ac_abs_builddir in
20477 .) ac_abs_srcdir=$ac_srcdir;;
20480 .) ac_abs_srcdir=$ac_abs_builddir;;
20481 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20482 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20485 case $ac_abs_builddir in
20486 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20488 case $ac_top_srcdir in
20489 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20490 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20491 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20496 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20497 echo "$as_me: executing $ac_dest commands" >&6;}
20499 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20500 # Strip MF so we end up with the name of the file.
20501 mf=`echo "$mf" | sed -e 's/:.*$//'`
20502 # Check whether this is an Automake generated Makefile or not.
20503 # We used to match only the files named `Makefile.in', but
20504 # some people rename them; so instead we look at the file content.
20505 # Grep'ing the first line is not enough: some people post-process
20506 # each Makefile.in and add a new line on top of each file to say so.
20507 # So let's grep whole file.
20508 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20509 dirpart=`(dirname "$mf") 2>/dev/null ||
20510 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20511 X"$mf" : 'X\(//\)[^/]' \| \
20512 X"$mf" : 'X\(//\)$' \| \
20513 X"$mf" : 'X\(/\)' \| \
20514 . : '\(.\)' 2>/dev/null ||
20516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20518 /^X\(\/\/\)$/{ s//\1/; q; }
20519 /^X\(\/\).*/{ s//\1/; q; }
20524 # Extract the definition of DEPDIR, am__include, and am__quote
20525 # from the Makefile without running `make'.
20526 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20527 test -z "$DEPDIR" && continue
20528 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20529 test -z "am__include" && continue
20530 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20531 # When using ansi2knr, U may be empty or an underscore; expand it
20532 U=`sed -n 's/^U = //p' < "$mf"`
20533 # Find all dependency output files, they are included files with
20534 # $(DEPDIR) in their names. We invoke sed twice because it is the
20535 # simplest approach to changing $(DEPDIR) to its actual value in the
20537 for file in `sed -n "
20538 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20539 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20540 # Make sure the directory exists.
20541 test -f "$dirpart/$file" && continue
20542 fdir=`(dirname "$file") 2>/dev/null ||
20543 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20544 X"$file" : 'X\(//\)[^/]' \| \
20545 X"$file" : 'X\(//\)$' \| \
20546 X"$file" : 'X\(/\)' \| \
20547 . : '\(.\)' 2>/dev/null ||
20549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20551 /^X\(\/\/\)$/{ s//\1/; q; }
20552 /^X\(\/\).*/{ s//\1/; q; }
20554 { if $as_mkdir_p; then
20555 mkdir -p $dirpart/$fdir
20557 as_dir=$dirpart/$fdir
20559 while test ! -d "$as_dir"; do
20560 as_dirs="$as_dir $as_dirs"
20561 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20563 X"$as_dir" : 'X\(//\)[^/]' \| \
20564 X"$as_dir" : 'X\(//\)$' \| \
20565 X"$as_dir" : 'X\(/\)' \| \
20566 . : '\(.\)' 2>/dev/null ||
20568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20570 /^X\(\/\/\)$/{ s//\1/; q; }
20571 /^X\(\/\).*/{ s//\1/; q; }
20574 test ! -n "$as_dirs" || mkdir $as_dirs
20575 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20576 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20577 { (exit 1); exit 1; }; }; }
20579 # echo "creating $dirpart/$file"
20580 echo '# dummy' > "$dirpart/$file"
20588 cat >>$CONFIG_STATUS <<\_ACEOF
20590 { (exit 0); exit 0; }
20592 chmod +x $CONFIG_STATUS
20593 ac_clean_files=$ac_clean_files_save
20596 # configure is writing to config.log, and then calls config.status.
20597 # config.status does its own redirection, appending to config.log.
20598 # Unfortunately, on DOS this fails, as config.log is still kept open
20599 # by configure, so config.status won't be able to write to it; its
20600 # output is simply discarded. So we exec the FD to /dev/null,
20601 # effectively closing config.log, so it can be properly (re)opened and
20602 # appended to by config.status. When coming back to configure, we
20603 # need to make the FD available again.
20604 if test "$no_create" != yes; then
20606 ac_config_status_args=
20607 test "$silent" = yes &&
20608 ac_config_status_args="$ac_config_status_args --quiet"
20610 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20612 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20613 # would make configure fail if this is the last instruction.
20614 $ac_cs_success || { (exit 1); exit 1; }