2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for binio 1.4.
5 # Report bugs to <dn.tlp@gmx.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='libbinio'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='binio 1.4'
428 PACKAGE_BUGREPORT='dn.tlp@gmx.net'
430 ac_unique_file="src/binio.cpp"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TYPE_INT TYPE_FLOAT ENABLE_IOSTREAM ENABLE_STRING ISO_STDLIB WITH_MATH LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures binio 1.4 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of binio 1.4:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing) to the casual installer
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-dependency-tracking speeds up one-time build
1039 --enable-dependency-tracking do not reject slow dependency extractors
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --disable-iostream Do not build iostream wrapper streams
1042 --disable-string Do not build std::string methods
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]
1052 --with-iso Force ISO C++ standard library compliance
1053 --without-math Do not build routines depending on 'math.h'
1055 Some influential environment variables:
1056 CC C compiler command
1057 CFLAGS C compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1063 CXX C++ compiler command
1064 CXXFLAGS C++ compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1072 Report bugs to <dn.tlp@gmx.net>.
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 ac_dir_suffix= ac_top_builddir=
1092 .) # No --srcdir option. We are building in place.
1094 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1110 .) ac_abs_builddir="$ac_dir";;
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1157 $ac_configure --help
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1169 generated by GNU Autoconf 2.59
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by binio $as_me 1.4, which was
1183 generated by GNU Autoconf 2.59. Invocation command line was
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_must_keep_next=false
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
1260 ac_must_keep_next=false # Got value, back to normal.
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 -* ) ac_must_keep_next=true ;;
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log. We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1300 # The following way of writing the cache mishandles newlines in values,
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1323 for ac_var in $ac_subst_vars
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1330 if test -n "$ac_subst_files"; then
1337 for ac_var in $ac_subst_files
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -s confdefs.h; then
1352 sed "/^$/d" confdefs.h | sort
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1359 rm -f core *.core &&
1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1418 if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1435 # Check that the precious variables saved in the cache have kept the same
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459 echo "$as_me: former value: $ac_old_val" >&2;}
1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461 echo "$as_me: current value: $ac_new_val" >&2;}
1462 ac_cache_corrupted=:
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile src/binio.h libbinio.pc"
1521 am__api_version="1.9"
1523 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524 if test -f $ac_dir/install-sh; then
1526 ac_install_sh="$ac_aux_dir/install-sh -c"
1528 elif test -f $ac_dir/install.sh; then
1530 ac_install_sh="$ac_aux_dir/install.sh -c"
1532 elif test -f $ac_dir/shtool; then
1534 ac_install_sh="$ac_aux_dir/shtool install -c"
1538 if test -z "$ac_aux_dir"; then
1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1541 { (exit 1); exit 1; }; }
1543 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1547 # Find a good install program. We prefer a C program (faster),
1548 # so one script is as good as another. But avoid the broken or
1549 # incompatible versions:
1550 # SysV /etc/install, /usr/sbin/install
1551 # SunOS /usr/etc/install
1552 # IRIX /sbin/install
1554 # AmigaOS /C/install, which installs bootblocks on floppy discs
1555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1558 # OS/2's system install, which has a completely different semantic
1559 # ./install, which can be erroneously created by make from ./install.sh.
1560 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1561 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1562 if test -z "$INSTALL"; then
1563 if test "${ac_cv_path_install+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 # Account for people who put trailing slashes in PATH elements.
1573 ./ | .// | /cC/* | \
1574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1575 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1578 # OSF1 and SCO ODT 3.0 have their own names for install.
1579 # Don't use installbsd from OSF since it installs stuff as root
1581 for ac_prog in ginstall scoinst install; do
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1584 if test $ac_prog = install &&
1585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586 # AIX install. It has an incompatible calling convention.
1588 elif test $ac_prog = install &&
1589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1590 # program-specific install script used by HP pwplus--don't use.
1593 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1605 if test "${ac_cv_path_install+set}" = set; then
1606 INSTALL=$ac_cv_path_install
1608 # As a last resort, use the slow shell script. We don't cache a
1609 # path for INSTALL within a source directory, because that will
1610 # break other packages using the cache if that directory is
1611 # removed, or if the path is relative.
1612 INSTALL=$ac_install_sh
1615 echo "$as_me:$LINENO: result: $INSTALL" >&5
1616 echo "${ECHO_T}$INSTALL" >&6
1618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1619 # It thinks the first close brace ends the variable substitution.
1620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1626 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1627 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1630 echo timestamp > conftest.file
1631 # Do `set' in a subshell so we don't clobber the current shell's
1632 # arguments. Must try -L first in case configure is actually a
1633 # symlink; some systems play weird games with the mod time of symlinks
1634 # (eg FreeBSD returns the mod time of the symlink's containing
1637 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1638 if test "$*" = "X"; then
1640 set X `ls -t $srcdir/configure conftest.file`
1643 if test "$*" != "X $srcdir/configure conftest.file" \
1644 && test "$*" != "X conftest.file $srcdir/configure"; then
1646 # If neither matched, then we have a broken ls. This can happen
1647 # if, for instance, CONFIG_SHELL is bash and it inherits a
1648 # broken ls alias from the environment. This has actually
1649 # happened. Such a system could not be considered "sane".
1650 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1651 alias in your environment" >&5
1652 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1653 alias in your environment" >&2;}
1654 { (exit 1); exit 1; }; }
1657 test "$2" = conftest.file
1663 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1664 Check your system clock" >&5
1665 echo "$as_me: error: newly created file is older than distributed files!
1666 Check your system clock" >&2;}
1667 { (exit 1); exit 1; }; }
1669 echo "$as_me:$LINENO: result: yes" >&5
1670 echo "${ECHO_T}yes" >&6
1671 test "$program_prefix" != NONE &&
1672 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1673 # Use a double $ so make ignores it.
1674 test "$program_suffix" != NONE &&
1675 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1676 # Double any \ or $. echo might interpret backslashes.
1677 # By default was `s,x,x', remove it if useless.
1678 cat <<\_ACEOF >conftest.sed
1679 s/[\\$]/&&/g;s/;s,x,x,$//
1681 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1684 # expand $ac_aux_dir to an absolute path
1685 am_aux_dir=`cd $ac_aux_dir && pwd`
1687 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1688 # Use eval to expand $SHELL
1689 if eval "$MISSING --run true"; then
1690 am_missing_run="$MISSING --run "
1693 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1694 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1697 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1698 # We used to keeping the `.' as first argument, in order to
1699 # allow $(mkdir_p) to be used without argument. As in
1700 # $(mkdir_p) $(somedir)
1701 # where $(somedir) is conditionally defined. However this is wrong
1703 # 1. if the package is installed by a user who cannot write `.'
1704 # make install will fail,
1705 # 2. the above comment should most certainly read
1706 # $(mkdir_p) $(DESTDIR)$(somedir)
1707 # so it does not work when $(somedir) is undefined and
1708 # $(DESTDIR) is not.
1709 # To support the latter case, we have to write
1710 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1711 # so the `.' trick is pointless.
1712 mkdir_p='mkdir -p --'
1714 # On NextStep and OpenStep, the `mkdir' command does not
1715 # recognize any option. It will interpret all options as
1716 # directories to create, and then abort because `.' already
1718 for d in ./-p ./--version;
1720 test -d $d && rmdir $d
1722 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1723 if test -f "$ac_aux_dir/mkinstalldirs"; then
1724 mkdir_p='$(mkinstalldirs)'
1726 mkdir_p='$(install_sh) -d'
1730 for ac_prog in gawk mawk nawk awk
1732 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_AWK+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 if test -n "$AWK"; then
1740 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_AWK="$ac_prog"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 if test -n "$AWK"; then
1760 echo "$as_me:$LINENO: result: $AWK" >&5
1761 echo "${ECHO_T}$AWK" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 test -n "$AWK" && break
1770 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1771 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1772 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1773 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 cat >conftest.make <<\_ACEOF
1778 @echo 'ac_maketemp="$(MAKE)"'
1780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1781 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1782 if test -n "$ac_maketemp"; then
1783 eval ac_cv_prog_make_${ac_make}_set=yes
1785 eval ac_cv_prog_make_${ac_make}_set=no
1789 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1790 echo "$as_me:$LINENO: result: yes" >&5
1791 echo "${ECHO_T}yes" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 SET_MAKE="MAKE=${MAKE-make}"
1799 rm -rf .tst 2>/dev/null
1800 mkdir .tst 2>/dev/null
1801 if test -d .tst; then
1806 rmdir .tst 2>/dev/null
1808 # test to see if srcdir already configured
1809 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1810 test -f $srcdir/config.status; then
1811 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1812 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1813 { (exit 1); exit 1; }; }
1816 # test whether we have cygpath
1817 if test -z "$CYGPATH_W"; then
1818 if (cygpath --version) >/dev/null 2>/dev/null; then
1819 CYGPATH_W='cygpath -w'
1826 # Define the identity of the package.
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE "$PACKAGE"
1836 cat >>confdefs.h <<_ACEOF
1837 #define VERSION "$VERSION"
1840 # Some tools Automake needs.
1842 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1845 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1848 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1851 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1854 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1856 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1858 # Installed binaries are usually stripped using `strip' when the user
1859 # run `make install-strip'. However `strip' might not be the right
1860 # tool to use in cross-compilation environments, therefore Automake
1861 # will honor the `STRIP' environment variable to overrule this program.
1862 if test "$cross_compiling" != no; then
1863 if test -n "$ac_tool_prefix"; then
1864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1865 set dummy ${ac_tool_prefix}strip; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_STRIP+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$STRIP"; then
1872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 STRIP=$ac_cv_prog_STRIP
1891 if test -n "$STRIP"; then
1892 echo "$as_me:$LINENO: result: $STRIP" >&5
1893 echo "${ECHO_T}$STRIP" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1900 if test -z "$ac_cv_prog_STRIP"; then
1902 # Extract the first word of "strip", so it can be a program name with args.
1903 set dummy strip; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 if test -n "$ac_ct_STRIP"; then
1910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_ac_ct_STRIP="strip"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1930 if test -n "$ac_ct_STRIP"; then
1931 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1932 echo "${ECHO_T}$ac_ct_STRIP" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1940 STRIP="$ac_cv_prog_STRIP"
1944 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1946 # We need awk for the "check" target. The system "awk" is bad on
1948 # Always define AMTAR for backward compatibility.
1950 AMTAR=${AMTAR-"${am_missing_run}tar"}
1952 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1958 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1959 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1960 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1961 if test "${enable_maintainer_mode+set}" = set; then
1962 enableval="$enable_maintainer_mode"
1963 USE_MAINTAINER_MODE=$enableval
1965 USE_MAINTAINER_MODE=no
1967 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1968 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1971 if test $USE_MAINTAINER_MODE = yes; then
1972 MAINTAINER_MODE_TRUE=
1973 MAINTAINER_MODE_FALSE='#'
1975 MAINTAINER_MODE_TRUE='#'
1976 MAINTAINER_MODE_FALSE=
1979 MAINT=$MAINTAINER_MODE_TRUE
1982 # Check whether --enable-shared or --disable-shared was given.
1983 if test "${enable_shared+set}" = set; then
1984 enableval="$enable_shared"
1985 p=${PACKAGE-default}
1987 yes) enable_shared=yes ;;
1988 no) enable_shared=no ;;
1991 # Look at the argument we got. We use all the common list separators.
1992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1993 for pkg in $enableval; do
1995 if test "X$pkg" = "X$p"; then
2006 # Check whether --enable-static or --disable-static was given.
2007 if test "${enable_static+set}" = set; then
2008 enableval="$enable_static"
2009 p=${PACKAGE-default}
2011 yes) enable_static=yes ;;
2012 no) enable_static=no ;;
2015 # Look at the argument we got. We use all the common list separators.
2016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2017 for pkg in $enableval; do
2019 if test "X$pkg" = "X$p"; then
2030 # Check whether --enable-fast-install or --disable-fast-install was given.
2031 if test "${enable_fast_install+set}" = set; then
2032 enableval="$enable_fast_install"
2033 p=${PACKAGE-default}
2035 yes) enable_fast_install=yes ;;
2036 no) enable_fast_install=no ;;
2038 enable_fast_install=no
2039 # Look at the argument we got. We use all the common list separators.
2040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2041 for pkg in $enableval; do
2043 if test "X$pkg" = "X$p"; then
2044 enable_fast_install=yes
2051 enable_fast_install=yes
2054 # Make sure we can run config.sub.
2055 $ac_config_sub sun4 >/dev/null 2>&1 ||
2056 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2057 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2058 { (exit 1); exit 1; }; }
2060 echo "$as_me:$LINENO: checking build system type" >&5
2061 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2062 if test "${ac_cv_build+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 ac_cv_build_alias=$build_alias
2066 test -z "$ac_cv_build_alias" &&
2067 ac_cv_build_alias=`$ac_config_guess`
2068 test -z "$ac_cv_build_alias" &&
2069 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2070 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2071 { (exit 1); exit 1; }; }
2072 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2073 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2074 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2075 { (exit 1); exit 1; }; }
2078 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2079 echo "${ECHO_T}$ac_cv_build" >&6
2081 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2082 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2083 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2086 echo "$as_me:$LINENO: checking host system type" >&5
2087 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2088 if test "${ac_cv_host+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 ac_cv_host_alias=$host_alias
2092 test -z "$ac_cv_host_alias" &&
2093 ac_cv_host_alias=$ac_cv_build_alias
2094 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2095 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2096 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2097 { (exit 1); exit 1; }; }
2100 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2101 echo "${ECHO_T}$ac_cv_host" >&6
2103 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2104 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2105 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2108 DEPDIR="${am__leading_dot}deps"
2110 ac_config_commands="$ac_config_commands depfiles"
2113 am_make=${MAKE-make}
2114 cat > confinc << 'END'
2119 # If we don't find an include directive, just comment out the code.
2120 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2121 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2125 # First try GNU make style include.
2126 echo "include confinc" > confmf
2127 # We grep out `Entering directory' and `Leaving directory'
2128 # messages which can occur if `w' ends up in MAKEFLAGS.
2129 # In particular we don't look at `^make:' because GNU make might
2130 # be invoked under some other name (usually "gmake"), in which
2131 # case it prints its new name instead of `make'.
2132 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2137 # Now try BSD make style include.
2138 if test "$am__include" = "#"; then
2139 echo '.include "confinc"' > confmf
2140 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2141 am__include=.include
2148 echo "$as_me:$LINENO: result: $_am_result" >&5
2149 echo "${ECHO_T}$_am_result" >&6
2150 rm -f confinc confmf
2152 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2153 if test "${enable_dependency_tracking+set}" = set; then
2154 enableval="$enable_dependency_tracking"
2157 if test "x$enable_dependency_tracking" != xno; then
2158 am_depcomp="$ac_aux_dir/depcomp"
2163 if test "x$enable_dependency_tracking" != xno; then
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 if test -n "$ac_tool_prefix"; then
2179 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2180 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC="$CC" # Let the user override the test.
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 if test -n "$CC"; then
2207 echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2210 echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2215 if test -z "$ac_cv_prog_CC"; then
2217 # Extract the first word of "gcc", so it can be a program name with args.
2218 set dummy gcc; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 if test -n "$ac_ct_CC"; then
2225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_prog_ac_ct_CC="gcc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 echo "${ECHO_T}$ac_ct_CC" >&6
2248 echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2257 if test -z "$CC"; then
2258 if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2260 set dummy ${ac_tool_prefix}cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 if test -n "$CC"; then
2267 ac_cv_prog_CC="$CC" # Let the user override the test.
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_CC="${ac_tool_prefix}cc"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 if test -n "$CC"; then
2287 echo "$as_me:$LINENO: result: $CC" >&5
2288 echo "${ECHO_T}$CC" >&6
2290 echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2295 if test -z "$ac_cv_prog_CC"; then
2297 # Extract the first word of "cc", so it can be a program name with args.
2298 set dummy cc; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 if test -n "$ac_ct_CC"; then
2305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_ac_ct_CC="cc"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2324 if test -n "$ac_ct_CC"; then
2325 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2326 echo "${ECHO_T}$ac_ct_CC" >&6
2328 echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2338 if test -z "$CC"; then
2339 # Extract the first word of "cc", so it can be a program name with args.
2340 set dummy cc; ac_word=$2
2341 echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 test -z "$as_dir" && as_dir=.
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2358 ac_prog_rejected=yes
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 if test $ac_prog_rejected = yes; then
2369 # We found a bogon in the path, so make sure we never use it.
2370 set dummy $ac_cv_prog_CC
2372 if test $# != 0; then
2373 # We chose a different compiler from the bogus one.
2374 # However, it has the same basename, so the bogon will be chosen
2375 # first if we set CC to just the basename; use the full file name.
2377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2383 if test -n "$CC"; then
2384 echo "$as_me:$LINENO: result: $CC" >&5
2385 echo "${ECHO_T}$CC" >&6
2387 echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6
2392 if test -z "$CC"; then
2393 if test -n "$ac_tool_prefix"; then
2396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$CC"; then
2404 ac_cv_prog_CC="$CC" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 if test -n "$CC"; then
2424 echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6
2427 echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2431 test -n "$CC" && break
2434 if test -z "$CC"; then
2438 # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_ac_ct_CC="$ac_prog"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6
2469 echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2473 test -n "$ac_ct_CC" && break
2482 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: no acceptable C compiler found in \$PATH
2485 See \`config.log' for more details." >&2;}
2486 { (exit 1); exit 1; }; }
2488 # Provide some information about the compiler.
2489 echo "$as_me:$LINENO:" \
2490 "checking for C compiler version" >&5
2491 ac_compiler=`set X $ac_compile; echo $2`
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2493 (eval $ac_compiler --version </dev/null >&5) 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }
2497 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2498 (eval $ac_compiler -v </dev/null >&5) 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }
2502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2503 (eval $ac_compiler -V </dev/null >&5) 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }
2508 cat >conftest.$ac_ext <<_ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 ac_clean_files_save=$ac_clean_files
2524 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2525 # Try to create an executable without -o first, disregard a.out.
2526 # It will help us diagnose broken compilers, and finding out an intuition
2528 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2529 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2530 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2531 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2532 (eval $ac_link_default) 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; then
2536 # Find the output, starting from the most likely. This scheme is
2537 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2540 # Be careful to initialize this variable, since it used to be cached.
2541 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2543 # b.out is created by i960 compilers.
2544 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2546 test -f "$ac_file" || continue
2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2551 # This is the source file.
2554 # We found the default executable, but exeext='' is most
2558 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559 # FIXME: I believe we export ac_cv_exeext for Libtool,
2560 # but it would be cool to find out if it's true. Does anybody
2561 # maintain Libtool? --akim.
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2572 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&2;}
2576 { (exit 77); exit 77; }; }
2579 ac_exeext=$ac_cv_exeext
2580 echo "$as_me:$LINENO: result: $ac_file" >&5
2581 echo "${ECHO_T}$ac_file" >&6
2583 # Check the compiler produces executables we can run. If not, either
2584 # the compiler is broken, or we cross compile.
2585 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590 if { ac_try='./$ac_file'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2598 if test "$cross_compiling" = maybe; then
2601 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2602 If you meant to cross compile, use \`--host'.
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot run C compiled programs.
2605 If you meant to cross compile, use \`--host'.
2606 See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2611 echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2614 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2615 ac_clean_files=$ac_clean_files_save
2616 # Check the compiler produces executables we can run. If not, either
2617 # the compiler is broken, or we cross compile.
2618 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2619 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2620 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2621 echo "${ECHO_T}$cross_compiling" >&6
2623 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2624 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2626 (eval $ac_link) 2>&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; then
2630 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2631 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2632 # work properly (i.e., refer to `conftest.exe'), while it won't with
2634 for ac_file in conftest.exe conftest conftest.*; do
2635 test -f "$ac_file" || continue
2637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2638 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2645 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2646 See \`config.log' for more details." >&5
2647 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2648 See \`config.log' for more details." >&2;}
2649 { (exit 1); exit 1; }; }
2652 rm -f conftest$ac_cv_exeext
2653 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2654 echo "${ECHO_T}$ac_cv_exeext" >&6
2656 rm -f conftest.$ac_ext
2657 EXEEXT=$ac_cv_exeext
2659 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2660 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2661 if test "${ac_cv_objext+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 cat >conftest.$ac_ext <<_ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2679 rm -f conftest.o conftest.obj
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; then
2685 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2696 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2697 See \`config.log' for more details." >&5
2698 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2699 See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }
2703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2705 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2706 echo "${ECHO_T}$ac_cv_objext" >&6
2707 OBJEXT=$ac_cv_objext
2709 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2710 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2711 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 cat >conftest.$ac_ext <<_ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>conftest.er1
2736 grep -v '^ *+' conftest.er1 >conftest.err
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2764 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2766 GCC=`test $ac_compiler_gnu = yes && echo yes`
2767 ac_test_CFLAGS=${CFLAGS+set}
2768 ac_save_CFLAGS=$CFLAGS
2770 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2772 if test "${ac_cv_prog_cc_g+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>conftest.er1
2794 grep -v '^ *+' conftest.er1 >conftest.err
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2822 if test "$ac_test_CFLAGS" = set; then
2823 CFLAGS=$ac_save_CFLAGS
2824 elif test $ac_cv_prog_cc_g = yes; then
2825 if test "$GCC" = yes; then
2831 if test "$GCC" = yes; then
2837 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2838 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2839 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 ac_cv_prog_cc_stdc=no
2844 cat >conftest.$ac_ext <<_ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2852 #include <sys/types.h>
2853 #include <sys/stat.h>
2854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2855 struct buf { int x; };
2856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2857 static char *e (p, i)
2863 static char *f (char * (*g) (char **, int), char **p, ...)
2868 s = g (p, va_arg (v,int));
2873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2874 function prototypes and stuff, but not '\xHH' hex character constants.
2875 These don't provoke an error unfortunately, instead are silently treated
2876 as 'x'. The following induces an error, until -std1 is added to get
2877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2878 array size at least. It's necessary to write '\x00'==0 to get something
2879 that's true only with -std1. */
2880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2882 int test (int i, double x);
2883 struct s1 {int (*f) (int a);};
2884 struct s2 {int (*f) (double a);};
2885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2896 # Don't try gcc -ansi; that turns off useful extensions and
2897 # breaks some systems' header files.
2898 # AIX -qlanglvl=ansi
2899 # Ultrix and OSF/1 -std1
2900 # HP-UX 10.20 and later -Ae
2901 # HP-UX older versions -Aa -D_HPUX_SOURCE
2902 # SVR4 -Xc -D__EXTENSIONS__
2903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2905 CC="$ac_save_CC $ac_arg"
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 ac_cv_prog_cc_stdc=$ac_arg
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2934 rm -f conftest.err conftest.$ac_objext
2936 rm -f conftest.$ac_ext conftest.$ac_objext
2941 case "x$ac_cv_prog_cc_stdc" in
2943 echo "$as_me:$LINENO: result: none needed" >&5
2944 echo "${ECHO_T}none needed" >&6 ;;
2946 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2948 CC="$CC $ac_cv_prog_cc_stdc" ;;
2951 # Some people use a C++ compiler to compile C. Since we use `exit',
2952 # in C++ we need to declare it. In case someone uses the same compiler
2953 # for both compiling C and C++ we need to have the C++ compiler decide
2954 # the declaration of exit, since it's the most demanding environment.
2955 cat >conftest.$ac_ext <<_ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962 (eval $ac_compile) 2>conftest.er1
2964 grep -v '^ *+' conftest.er1 >conftest.err
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 for ac_declaration in \
2983 'extern "C" void std::exit (int) throw (); using std::exit;' \
2984 'extern "C" void std::exit (int); using std::exit;' \
2985 'extern "C" void exit (int) throw ();' \
2986 'extern "C" void exit (int);' \
2989 cat >conftest.$ac_ext <<_ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007 (eval $ac_compile) 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; } &&
3020 { ac_try='test -s conftest.$ac_objext'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3049 rm -f conftest.$ac_objext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051 (eval $ac_compile) 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; }; then
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3079 if test -n "$ac_declaration"; then
3080 echo '#ifdef __cplusplus' >>confdefs.h
3081 echo $ac_declaration >>confdefs.h
3082 echo '#endif' >>confdefs.h
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 depcc="$CC" am_compiler_list=
3099 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3100 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3101 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3105 # We make a subdir and do the tests there. Otherwise we can end up
3106 # making bogus files that we don't know about and never remove. For
3107 # instance it was reported that on HP-UX the gcc test will end up
3108 # making a dummy file named `D' -- because `-MD' means `put the output
3111 # Copy depcomp to subdir because otherwise we won't find it if we're
3112 # using a relative directory.
3113 cp "$am_depcomp" conftest.dir
3115 # We will build objects and dependencies in a subdirectory because
3116 # it helps to detect inapplicable dependency modes. For instance
3117 # both Tru64's cc and ICC support -MD to output dependencies as a
3118 # side effect of compilation, but ICC will put the dependencies in
3119 # the current directory while Tru64 will put them in the object
3123 am_cv_CC_dependencies_compiler_type=none
3124 if test "$am_compiler_list" = ""; then
3125 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3127 for depmode in $am_compiler_list; do
3128 # Setup a source with many dependencies, because some compilers
3129 # like to wrap large dependency lists on column 80 (with \), and
3130 # we should not choose a depcomp mode which is confused by this.
3132 # We need to recreate these files for each test, as the compiler may
3133 # overwrite some of them when testing with obscure command lines.
3134 # This happens at least with the AIX C compiler.
3136 for i in 1 2 3 4 5 6; do
3137 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3138 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3139 # Solaris 8's {/usr,}/bin/sh.
3140 touch sub/conftst$i.h
3142 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3146 # after this tag, mechanisms are not by side-effect, so they'll
3147 # only be used when explicitly requested
3148 if test "x$enable_dependency_tracking" = xyes; then
3156 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3157 # mode. It turns out that the SunPro C++ compiler does not properly
3158 # handle `-M -o', and we need to detect this.
3159 if depmode=$depmode \
3160 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3162 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3163 >/dev/null 2>conftest.err &&
3164 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3165 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3166 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3167 # icc doesn't choke on unknown options, it will just issue warnings
3168 # or remarks (even with -Werror). So we grep stderr for any message
3169 # that says an option was ignored or not supported.
3170 # When given -MP, icc 7.0 and 7.1 complain thusly:
3171 # icc: Command line warning: ignoring option '-M'; no argument required
3172 # The diagnosis changed in icc 8.0:
3173 # icc: Command line remark: option '-MP' not supported
3174 if (grep 'ignoring option' conftest.err ||
3175 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3176 am_cv_CC_dependencies_compiler_type=$depmode
3185 am_cv_CC_dependencies_compiler_type=none
3189 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3190 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3196 test "x$enable_dependency_tracking" != xno \
3197 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3199 am__fastdepCC_FALSE='#'
3201 am__fastdepCC_TRUE='#'
3202 am__fastdepCC_FALSE=
3206 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3207 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3208 if test "${lt_cv_path_SED+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 # Loop through the user's path and test for sed and gsed.
3212 # Then use that list of sed's as ones to test for truncation.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 for lt_ac_prog in sed gsed; do
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3221 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3228 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3229 # along with /bin/sed that truncates output.
3230 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3231 test ! -f $lt_ac_sed && break
3232 cat /dev/null > conftest.in
3234 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3235 # Check for GNU sed and select it if it is found.
3236 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3237 lt_cv_path_SED=$lt_ac_sed
3241 cat conftest.in conftest.in >conftest.tmp
3242 mv conftest.tmp conftest.in
3243 cp conftest.in conftest.nl
3245 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3246 cmp -s conftest.out conftest.nl || break
3247 # 10000 chars as input seems more than enough
3248 test $lt_ac_count -gt 10 && break
3249 lt_ac_count=`expr $lt_ac_count + 1`
3250 if test $lt_ac_count -gt $lt_ac_max; then
3251 lt_ac_max=$lt_ac_count
3252 lt_cv_path_SED=$lt_ac_sed
3260 echo "$as_me:$LINENO: result: $SED" >&5
3261 echo "${ECHO_T}$SED" >&6
3263 echo "$as_me:$LINENO: checking for egrep" >&5
3264 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3265 if test "${ac_cv_prog_egrep+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3269 then ac_cv_prog_egrep='grep -E'
3270 else ac_cv_prog_egrep='egrep'
3273 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3274 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3275 EGREP=$ac_cv_prog_egrep
3279 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3280 if test "${with_gnu_ld+set}" = set; then
3281 withval="$with_gnu_ld"
3282 test "$withval" = no || with_gnu_ld=yes
3287 if test "$GCC" = yes; then
3288 # Check if gcc -print-prog-name=ld gives a path.
3289 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3290 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3293 # gcc leaves a trailing carriage return which upsets mingw
3294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3299 # Accept absolute paths.
3301 re_direlt='/[^/][^/]*/\.\./'
3302 # Canonicalize the pathname of ld
3303 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3304 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3305 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3307 test -z "$LD" && LD="$ac_prog"
3310 # If it fails, then pretend we aren't using GCC.
3314 # If it is relative, then search for the first ld in PATH.
3318 elif test "$with_gnu_ld" = yes; then
3319 echo "$as_me:$LINENO: checking for GNU ld" >&5
3320 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3322 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3323 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3325 if test "${lt_cv_path_LD+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 if test -z "$LD"; then
3329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3330 for ac_dir in $PATH; do
3332 test -z "$ac_dir" && ac_dir=.
3333 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3334 lt_cv_path_LD="$ac_dir/$ac_prog"
3335 # Check to see if the program is GNU ld. I'd rather use --version,
3336 # but apparently some GNU ld's only accept -v.
3337 # Break only if it was the GNU/non-GNU ld that we prefer.
3338 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3339 *GNU* | *'with BFD'*)
3340 test "$with_gnu_ld" != no && break
3343 test "$with_gnu_ld" != yes && break
3350 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3355 if test -n "$LD"; then
3356 echo "$as_me:$LINENO: result: $LD" >&5
3357 echo "${ECHO_T}$LD" >&6
3359 echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3362 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3363 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3364 { (exit 1); exit 1; }; }
3365 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3366 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3367 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3371 case `$LD -v 2>&1 </dev/null` in
3372 *GNU* | *'with BFD'*)
3373 lt_cv_prog_gnu_ld=yes
3376 lt_cv_prog_gnu_ld=no
3380 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3381 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3382 with_gnu_ld=$lt_cv_prog_gnu_ld
3385 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3386 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3387 if test "${lt_cv_ld_reload_flag+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 lt_cv_ld_reload_flag='-r'
3392 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3393 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3394 reload_flag=$lt_cv_ld_reload_flag
3395 case $reload_flag in
3397 *) reload_flag=" $reload_flag" ;;
3399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3401 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3402 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3403 if test "${lt_cv_path_NM+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 if test -n "$NM"; then
3407 # Let the user override the test.
3410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3411 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3413 test -z "$ac_dir" && ac_dir=.
3414 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3415 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3416 # Check to see if the nm accepts a BSD-compat flag.
3417 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3418 # nm: unknown option "B" ignored
3419 # Tru64's nm complains that /dev/null is an invalid object file
3420 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3421 */dev/null* | *'Invalid file or object type'*)
3422 lt_cv_path_NM="$tmp_nm -B"
3426 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3428 lt_cv_path_NM="$tmp_nm -p"
3432 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3433 continue # so that we can try to find one that supports BSD flags
3440 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3443 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3444 echo "${ECHO_T}$lt_cv_path_NM" >&6
3447 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3448 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3450 if test "$LN_S" = "ln -s"; then
3451 echo "$as_me:$LINENO: result: yes" >&5
3452 echo "${ECHO_T}yes" >&6
3454 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3455 echo "${ECHO_T}no, using $LN_S" >&6
3458 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3459 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3460 if test "${lt_cv_deplibs_check_method+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 lt_cv_file_magic_cmd='$MAGIC_CMD'
3464 lt_cv_file_magic_test_file=
3465 lt_cv_deplibs_check_method='unknown'
3466 # Need to set the preceding variable on all platforms that support
3467 # interlibrary dependencies.
3468 # 'none' -- dependencies not supported.
3469 # `unknown' -- same as none, but documents that we really don't know.
3470 # 'pass_all' -- all dependencies passed with no checks.
3471 # 'test_compile' -- check by making test program.
3472 # 'file_magic [[regex]]' -- check by looking for files in library path
3473 # which responds to the $file_magic_cmd with a given extended regex.
3474 # If you have `file' or equivalent on your system and you're not sure
3475 # whether `pass_all' will *always* work, you probably want this one.
3479 lt_cv_deplibs_check_method=pass_all
3483 lt_cv_deplibs_check_method=pass_all
3487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3488 lt_cv_file_magic_cmd='/usr/bin/file -L'
3489 lt_cv_file_magic_test_file=/shlib/libc.so
3493 # func_win32_libid is a shell function defined in ltmain.sh
3494 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3495 lt_cv_file_magic_cmd='func_win32_libid'
3499 # Base MSYS/MinGW do not provide the 'file' command needed by
3500 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3501 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3502 lt_cv_file_magic_cmd='$OBJDUMP -f'
3505 darwin* | rhapsody*)
3506 lt_cv_deplibs_check_method=pass_all
3509 freebsd* | kfreebsd*-gnu)
3510 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3513 # Not sure whether the presence of OpenBSD here was a mistake.
3514 # Let's accept both of them until this is cleared up.
3515 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3516 lt_cv_file_magic_cmd=/usr/bin/file
3517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3521 lt_cv_deplibs_check_method=pass_all
3526 lt_cv_deplibs_check_method=pass_all
3529 hpux10.20* | hpux11*)
3530 lt_cv_file_magic_cmd=/usr/bin/file
3533 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3534 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3537 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]'
3538 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3542 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3547 irix5* | irix6* | nonstopux*)
3549 *-32|*"-32 ") libmagic=32-bit;;
3550 *-n32|*"-n32 ") libmagic=N32;;
3551 *-64|*"-64 ") libmagic=64-bit;;
3552 *) libmagic=never-match;;
3554 lt_cv_deplibs_check_method=pass_all
3557 # This must be Linux ELF.
3559 lt_cv_deplibs_check_method=pass_all
3562 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3563 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3572 lt_cv_file_magic_cmd=/usr/bin/file
3573 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3577 lt_cv_deplibs_check_method=unknown
3581 lt_cv_file_magic_cmd=/usr/bin/file
3582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3586 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3590 osf3* | osf4* | osf5*)
3591 lt_cv_deplibs_check_method=pass_all
3595 lt_cv_deplibs_check_method=pass_all
3599 lt_cv_deplibs_check_method=pass_all
3602 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3603 case $host_vendor in
3605 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]'
3606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3609 lt_cv_deplibs_check_method=pass_all
3612 lt_cv_file_magic_cmd='/bin/file'
3613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3616 lt_cv_file_magic_cmd='/bin/file'
3617 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3618 lt_cv_file_magic_test_file=/lib/libc.so
3621 lt_cv_deplibs_check_method=pass_all
3626 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3627 lt_cv_deplibs_check_method=pass_all
3632 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3634 file_magic_cmd=$lt_cv_file_magic_cmd
3635 deplibs_check_method=$lt_cv_deplibs_check_method
3636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3641 # If no C compiler was specified, use CC.
3644 # Allow CC to be a program name with arguments.
3648 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3649 if test "${enable_libtool_lock+set}" = set; then
3650 enableval="$enable_libtool_lock"
3653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3655 # Some flags need to be propagated to the compiler or linker for good
3659 # Find out which ABI we are using.
3660 echo 'int i;' > conftest.$ac_ext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; then
3666 case `/usr/bin/file conftest.$ac_objext` in
3678 # Find out which ABI we are using.
3679 echo '#line 3679 "configure"' > conftest.$ac_ext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; then
3685 if test "$lt_cv_prog_gnu_ld" = yes; then
3686 case `/usr/bin/file conftest.$ac_objext` in
3688 LD="${LD-ld} -melf32bsmip"
3691 LD="${LD-ld} -melf32bmipn32"
3694 LD="${LD-ld} -melf64bmip"
3698 case `/usr/bin/file conftest.$ac_objext` in
3714 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3715 # Find out which ABI we are using.
3716 echo 'int i;' > conftest.$ac_ext
3717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718 (eval $ac_compile) 2>&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; then
3722 case "`/usr/bin/file conftest.o`" in
3726 LD="${LD-ld} -m elf_i386"
3728 ppc64-*linux*|powerpc64-*linux*)
3729 LD="${LD-ld} -m elf32ppclinux"
3732 LD="${LD-ld} -m elf_s390"
3735 LD="${LD-ld} -m elf32_sparc"
3742 LD="${LD-ld} -m elf_x86_64"
3744 ppc*-*linux*|powerpc*-*linux*)
3745 LD="${LD-ld} -m elf64ppc"
3748 LD="${LD-ld} -m elf64_s390"
3751 LD="${LD-ld} -m elf64_sparc"
3761 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3762 SAVE_CFLAGS="$CFLAGS"
3763 CFLAGS="$CFLAGS -belf"
3764 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3765 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3766 if test "${lt_cv_cc_needs_belf+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792 (eval $ac_link) 2>conftest.er1
3794 grep -v '^ *+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest$ac_exeext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 lt_cv_cc_needs_belf=yes
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3816 lt_cv_cc_needs_belf=no
3818 rm -f conftest.err conftest.$ac_objext \
3819 conftest$ac_exeext conftest.$ac_ext
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3828 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3829 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3830 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3831 CFLAGS="$SAVE_CFLAGS"
3837 need_locks="$enable_libtool_lock"
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3846 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3847 # On Suns, sometimes $CPP names a directory.
3848 if test -n "$CPP" && test -d "$CPP"; then
3851 if test -z "$CPP"; then
3852 if test "${ac_cv_prog_CPP+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 # Double quotes because CPP needs to be expanded
3856 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3859 for ac_c_preproc_warn_flag in '' yes
3861 # Use a header file that comes with gcc, so configuring glibc
3862 # with a fresh cross-compiler works.
3863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3864 # <limits.h> exists even on freestanding compilers.
3865 # On the NeXT, cc -E runs the code through the compiler's parser,
3866 # not just through cpp. "Syntax error" is here to catch this case.
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3874 # include <limits.h>
3876 # include <assert.h>
3880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3883 grep -v '^ *+' conftest.er1 >conftest.err
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } >/dev/null; then
3888 if test -s conftest.err; then
3889 ac_cpp_err=$ac_c_preproc_warn_flag
3890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3897 if test -z "$ac_cpp_err"; then
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 # Broken: fails on valid input.
3906 rm -f conftest.err conftest.$ac_ext
3908 # OK, works on sane cases. Now check whether non-existent headers
3909 # can be detected and how.
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 #include <ac_nonexistent.h>
3918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null; then
3926 if test -s conftest.err; then
3927 ac_cpp_err=$ac_c_preproc_warn_flag
3928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3935 if test -z "$ac_cpp_err"; then
3936 # Broken: success on invalid input.
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 # Passes both tests.
3946 rm -f conftest.err conftest.$ac_ext
3949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3950 rm -f conftest.err conftest.$ac_ext
3951 if $ac_preproc_ok; then
3963 echo "$as_me:$LINENO: result: $CPP" >&5
3964 echo "${ECHO_T}$CPP" >&6
3966 for ac_c_preproc_warn_flag in '' yes
3968 # Use a header file that comes with gcc, so configuring glibc
3969 # with a fresh cross-compiler works.
3970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971 # <limits.h> exists even on freestanding compilers.
3972 # On the NeXT, cc -E runs the code through the compiler's parser,
3973 # not just through cpp. "Syntax error" is here to catch this case.
3974 cat >conftest.$ac_ext <<_ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 # include <limits.h>
3983 # include <assert.h>
3987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3990 grep -v '^ *+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } >/dev/null; then
3995 if test -s conftest.err; then
3996 ac_cpp_err=$ac_c_preproc_warn_flag
3997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4004 if test -z "$ac_cpp_err"; then
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 # Broken: fails on valid input.
4013 rm -f conftest.err conftest.$ac_ext
4015 # OK, works on sane cases. Now check whether non-existent headers
4016 # can be detected and how.
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 #include <ac_nonexistent.h>
4025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4028 grep -v '^ *+' conftest.er1 >conftest.err
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } >/dev/null; then
4033 if test -s conftest.err; then
4034 ac_cpp_err=$ac_c_preproc_warn_flag
4035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4042 if test -z "$ac_cpp_err"; then
4043 # Broken: success on invalid input.
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 # Passes both tests.
4053 rm -f conftest.err conftest.$ac_ext
4056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4057 rm -f conftest.err conftest.$ac_ext
4058 if $ac_preproc_ok; then
4061 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4062 See \`config.log' for more details." >&5
4063 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details." >&2;}
4065 { (exit 1); exit 1; }; }
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4076 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4077 if test "${ac_cv_header_stdc+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try='test -s conftest.$ac_objext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_cv_header_stdc=yes
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 ac_cv_header_stdc=no
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129 if test $ac_cv_header_stdc = yes; then
4130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev/null 2>&1; then
4144 ac_cv_header_stdc=no
4150 if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162 $EGREP "free" >/dev/null 2>&1; then
4165 ac_cv_header_stdc=no
4171 if test $ac_cv_header_stdc = yes; then
4172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4173 if test "$cross_compiling" = yes; then
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4183 #if ((' ' & 0x0FF) == 0x020)
4184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4187 # define ISLOWER(c) \
4188 (('a' <= (c) && (c) <= 'i') \
4189 || ('j' <= (c) && (c) <= 'r') \
4190 || ('s' <= (c) && (c) <= 'z'))
4191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4199 for (i = 0; i < 256; i++)
4200 if (XOR (islower (i), ISLOWER (i))
4201 || toupper (i) != TOUPPER (i))
4206 rm -f conftest$ac_exeext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4208 (eval $ac_link) 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4219 echo "$as_me: program exited with status $ac_status" >&5
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_cv_header_stdc=no
4226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4230 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4231 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4232 if test $ac_cv_header_stdc = yes; then
4234 cat >>confdefs.h <<\_ACEOF
4235 #define STDC_HEADERS 1
4240 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4251 inttypes.h stdint.h unistd.h
4253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4254 echo "$as_me:$LINENO: checking for $ac_header" >&5
4255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 $ac_includes_default
4267 #include <$ac_header>
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>conftest.er1
4273 grep -v '^ *+' conftest.er1 >conftest.err
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } &&
4278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 eval "$as_ac_Header=yes"
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 eval "$as_ac_Header=no"
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302 cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312 for ac_header in dlfcn.h
4314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4316 echo "$as_me:$LINENO: checking for $ac_header" >&5
4317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4324 # Is the header compilable?
4325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4334 #include <$ac_header>
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; } &&
4351 { ac_try='test -s conftest.$ac_objext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_header_compiler=yes
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 ac_header_compiler=no
4364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4366 echo "${ECHO_T}$ac_header_compiler" >&6
4368 # Is the header present?
4369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <$ac_header>
4379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } >/dev/null; then
4387 if test -s conftest.err; then
4388 ac_cpp_err=$ac_c_preproc_warn_flag
4389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4396 if test -z "$ac_cpp_err"; then
4397 ac_header_preproc=yes
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 ac_header_preproc=no
4404 rm -f conftest.err conftest.$ac_ext
4405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4406 echo "${ECHO_T}$ac_header_preproc" >&6
4408 # So? What about this header?
4409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4415 ac_header_preproc=yes
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4432 ## ----------------------------- ##
4433 ## Report this to dn.tlp@gmx.net ##
4434 ## ----------------------------- ##
4437 sed "s/^/$as_me: WARNING: /" >&2
4440 echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 eval "$as_ac_Header=\$ac_header_preproc"
4447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4452 cat >>confdefs.h <<_ACEOF
4453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4461 ac_cpp='$CXXCPP $CPPFLAGS'
4462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4465 if test -n "$ac_tool_prefix"; then
4466 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_prog_CXX+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$CXX"; then
4476 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 if test -n "$CXX"; then
4496 echo "$as_me:$LINENO: result: $CXX" >&5
4497 echo "${ECHO_T}$CXX" >&6
4499 echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4503 test -n "$CXX" && break
4506 if test -z "$CXX"; then
4508 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4510 # Extract the first word of "$ac_prog", so it can be a program name with args.
4511 set dummy $ac_prog; ac_word=$2
4512 echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 if test -n "$ac_ct_CXX"; then
4518 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_ac_ct_CXX="$ac_prog"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4537 if test -n "$ac_ct_CXX"; then
4538 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4539 echo "${ECHO_T}$ac_ct_CXX" >&6
4541 echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6
4545 test -n "$ac_ct_CXX" && break
4547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4553 # Provide some information about the compiler.
4554 echo "$as_me:$LINENO:" \
4555 "checking for C++ compiler version" >&5
4556 ac_compiler=`set X $ac_compile; echo $2`
4557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4558 (eval $ac_compiler --version </dev/null >&5) 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }
4562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4563 (eval $ac_compiler -v </dev/null >&5) 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }
4567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4568 (eval $ac_compiler -V </dev/null >&5) 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }
4573 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1 >conftest.err
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4628 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4629 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4630 GXX=`test $ac_compiler_gnu = yes && echo yes`
4631 ac_test_CXXFLAGS=${CXXFLAGS+set}
4632 ac_save_CXXFLAGS=$CXXFLAGS
4634 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4635 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4636 if test "${ac_cv_prog_cxx_g+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>conftest.er1
4658 grep -v '^ *+' conftest.er1 >conftest.err
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_prog_cxx_g=yes
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4685 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4686 if test "$ac_test_CXXFLAGS" = set; then
4687 CXXFLAGS=$ac_save_CXXFLAGS
4688 elif test $ac_cv_prog_cxx_g = yes; then
4689 if test "$GXX" = yes; then
4695 if test "$GXX" = yes; then
4701 for ac_declaration in \
4703 'extern "C" void std::exit (int) throw (); using std::exit;' \
4704 'extern "C" void std::exit (int); using std::exit;' \
4705 'extern "C" void exit (int) throw ();' \
4706 'extern "C" void exit (int);' \
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4725 rm -f conftest.$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727 (eval $ac_compile) 2>conftest.er1
4729 grep -v '^ *+' conftest.er1 >conftest.err
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } &&
4734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; } &&
4740 { ac_try='test -s conftest.$ac_objext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754 cat >conftest.$ac_ext <<_ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4799 if test -n "$ac_declaration"; then
4800 echo '#ifdef __cplusplus' >>confdefs.h
4801 echo $ac_declaration >>confdefs.h
4802 echo '#endif' >>confdefs.h
4806 ac_cpp='$CXXCPP $CPPFLAGS'
4807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4811 depcc="$CXX" am_compiler_list=
4813 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4814 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4815 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4819 # We make a subdir and do the tests there. Otherwise we can end up
4820 # making bogus files that we don't know about and never remove. For
4821 # instance it was reported that on HP-UX the gcc test will end up
4822 # making a dummy file named `D' -- because `-MD' means `put the output
4825 # Copy depcomp to subdir because otherwise we won't find it if we're
4826 # using a relative directory.
4827 cp "$am_depcomp" conftest.dir
4829 # We will build objects and dependencies in a subdirectory because
4830 # it helps to detect inapplicable dependency modes. For instance
4831 # both Tru64's cc and ICC support -MD to output dependencies as a
4832 # side effect of compilation, but ICC will put the dependencies in
4833 # the current directory while Tru64 will put them in the object
4837 am_cv_CXX_dependencies_compiler_type=none
4838 if test "$am_compiler_list" = ""; then
4839 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4841 for depmode in $am_compiler_list; do
4842 # Setup a source with many dependencies, because some compilers
4843 # like to wrap large dependency lists on column 80 (with \), and
4844 # we should not choose a depcomp mode which is confused by this.
4846 # We need to recreate these files for each test, as the compiler may
4847 # overwrite some of them when testing with obscure command lines.
4848 # This happens at least with the AIX C compiler.
4850 for i in 1 2 3 4 5 6; do
4851 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4852 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4853 # Solaris 8's {/usr,}/bin/sh.
4854 touch sub/conftst$i.h
4856 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4860 # after this tag, mechanisms are not by side-effect, so they'll
4861 # only be used when explicitly requested
4862 if test "x$enable_dependency_tracking" = xyes; then
4870 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4871 # mode. It turns out that the SunPro C++ compiler does not properly
4872 # handle `-M -o', and we need to detect this.
4873 if depmode=$depmode \
4874 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4876 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4877 >/dev/null 2>conftest.err &&
4878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4879 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4881 # icc doesn't choke on unknown options, it will just issue warnings
4882 # or remarks (even with -Werror). So we grep stderr for any message
4883 # that says an option was ignored or not supported.
4884 # When given -MP, icc 7.0 and 7.1 complain thusly:
4885 # icc: Command line warning: ignoring option '-M'; no argument required
4886 # The diagnosis changed in icc 8.0:
4887 # icc: Command line remark: option '-MP' not supported
4888 if (grep 'ignoring option' conftest.err ||
4889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4890 am_cv_CXX_dependencies_compiler_type=$depmode
4899 am_cv_CXX_dependencies_compiler_type=none
4903 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4904 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4905 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4910 test "x$enable_dependency_tracking" != xno \
4911 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4912 am__fastdepCXX_TRUE=
4913 am__fastdepCXX_FALSE='#'
4915 am__fastdepCXX_TRUE='#'
4916 am__fastdepCXX_FALSE=
4921 ac_cpp='$CXXCPP $CPPFLAGS'
4922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4925 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4926 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4927 if test -z "$CXXCPP"; then
4928 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 # Double quotes because CXXCPP needs to be expanded
4932 for CXXCPP in "$CXX -E" "/lib/cpp"
4935 for ac_cxx_preproc_warn_flag in '' yes
4937 # Use a header file that comes with gcc, so configuring glibc
4938 # with a fresh cross-compiler works.
4939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940 # <limits.h> exists even on freestanding compilers.
4941 # On the NeXT, cc -E runs the code through the compiler's parser,
4942 # not just through cpp. "Syntax error" is here to catch this case.
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4950 # include <limits.h>
4952 # include <assert.h>
4956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4959 grep -v '^ *+' conftest.er1 >conftest.err
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } >/dev/null; then
4964 if test -s conftest.err; then
4965 ac_cpp_err=$ac_cxx_preproc_warn_flag
4966 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4973 if test -z "$ac_cpp_err"; then
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4979 # Broken: fails on valid input.
4982 rm -f conftest.err conftest.$ac_ext
4984 # OK, works on sane cases. Now check whether non-existent headers
4985 # can be detected and how.
4986 cat >conftest.$ac_ext <<_ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 #include <ac_nonexistent.h>
4994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_cxx_preproc_warn_flag
5004 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5011 if test -z "$ac_cpp_err"; then
5012 # Broken: success on invalid input.
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5018 # Passes both tests.
5022 rm -f conftest.err conftest.$ac_ext
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then
5032 ac_cv_prog_CXXCPP=$CXXCPP
5035 CXXCPP=$ac_cv_prog_CXXCPP
5037 ac_cv_prog_CXXCPP=$CXXCPP
5039 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5040 echo "${ECHO_T}$CXXCPP" >&6
5042 for ac_cxx_preproc_warn_flag in '' yes
5044 # Use a header file that comes with gcc, so configuring glibc
5045 # with a fresh cross-compiler works.
5046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047 # <limits.h> exists even on freestanding compilers.
5048 # On the NeXT, cc -E runs the code through the compiler's parser,
5049 # not just through cpp. "Syntax error" is here to catch this case.
5050 cat >conftest.$ac_ext <<_ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5057 # include <limits.h>
5059 # include <assert.h>
5063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5066 grep -v '^ *+' conftest.er1 >conftest.err
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } >/dev/null; then
5071 if test -s conftest.err; then
5072 ac_cpp_err=$ac_cxx_preproc_warn_flag
5073 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5080 if test -z "$ac_cpp_err"; then
5083 echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5086 # Broken: fails on valid input.
5089 rm -f conftest.err conftest.$ac_ext
5091 # OK, works on sane cases. Now check whether non-existent headers
5092 # can be detected and how.
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 #include <ac_nonexistent.h>
5101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5104 grep -v '^ *+' conftest.er1 >conftest.err
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null; then
5109 if test -s conftest.err; then
5110 ac_cpp_err=$ac_cxx_preproc_warn_flag
5111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5118 if test -z "$ac_cpp_err"; then
5119 # Broken: success on invalid input.
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5125 # Passes both tests.
5129 rm -f conftest.err conftest.$ac_ext
5132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133 rm -f conftest.err conftest.$ac_ext
5134 if $ac_preproc_ok; then
5137 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5138 See \`config.log' for more details." >&5
5139 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5140 See \`config.log' for more details." >&2;}
5141 { (exit 1); exit 1; }; }
5145 ac_cpp='$CXXCPP $CPPFLAGS'
5146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5152 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5153 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5155 if test -n "$ac_tool_prefix"; then
5156 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_F77+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test -n "$F77"; then
5166 ac_cv_prog_F77="$F77" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 if test -n "$F77"; then
5186 echo "$as_me:$LINENO: result: $F77" >&5
5187 echo "${ECHO_T}$F77" >&6
5189 echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5193 test -n "$F77" && break
5196 if test -z "$F77"; then
5198 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5200 # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 if test -n "$ac_ct_F77"; then
5208 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ac_ct_F77="$ac_prog"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5227 if test -n "$ac_ct_F77"; then
5228 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5229 echo "${ECHO_T}$ac_ct_F77" >&6
5231 echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6
5235 test -n "$ac_ct_F77" && break
5242 # Provide some information about the compiler.
5243 echo "$as_me:5243:" \
5244 "checking for Fortran 77 compiler version" >&5
5245 ac_compiler=`set X $ac_compile; echo $2`
5246 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5247 (eval $ac_compiler --version </dev/null >&5) 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }
5251 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5252 (eval $ac_compiler -v </dev/null >&5) 2>&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }
5256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5257 (eval $ac_compiler -V </dev/null >&5) 2>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }
5263 # If we don't use `.F' as extension, the preprocessor is not run on the
5264 # input file. (Note that this only needs to work for GNU compilers.)
5267 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5268 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5269 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 cat >conftest.$ac_ext <<_ACEOF
5280 rm -f conftest.$ac_objext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>conftest.er1
5284 grep -v '^ *+' conftest.er1 >conftest.err
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; } &&
5295 { ac_try='test -s conftest.$ac_objext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5309 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5312 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5313 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5315 ac_test_FFLAGS=${FFLAGS+set}
5316 ac_save_FFLAGS=$FFLAGS
5318 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5319 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5320 if test "${ac_cv_prog_f77_g+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 cat >conftest.$ac_ext <<_ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_cv_prog_f77_g=yes
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5360 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5361 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5362 if test "$ac_test_FFLAGS" = set; then
5363 FFLAGS=$ac_save_FFLAGS
5364 elif test $ac_cv_prog_f77_g = yes; then
5365 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5371 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5378 G77=`test $ac_compiler_gnu = yes && echo yes`
5380 ac_cpp='$CPP $CPPFLAGS'
5381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5389 # find the maximum length of command line arguments
5390 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5391 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5392 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 # On DJGPP, this test can blow up pretty badly due to problems in libc
5401 # (any single argument exceeding 2000 bytes causes a buffer overrun
5402 # during glob expansion). Even if it were fixed, the result of this
5403 # check would be larger than it should be.
5404 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5408 # Under GNU Hurd, this test is not required because there is
5409 # no limit to the length of command line arguments.
5410 # Libtool will interpret -1 as no limit whatsoever
5411 lt_cv_sys_max_cmd_len=-1;
5415 # On Win9x/ME, this test blows up -- it succeeds, but takes
5416 # about 5 minutes as the teststring grows exponentially.
5417 # Worse, since 9x/ME are not pre-emptively multitasking,
5418 # you end up with a "frozen" computer, even though with patience
5419 # the test eventually succeeds (with a max line length of 256k).
5420 # Instead, let's just punt: use the minimum linelength reported by
5421 # all of the supported platforms: 8192 (on NT/2K/XP).
5422 lt_cv_sys_max_cmd_len=8192;
5426 # On AmigaOS with pdksh, this test takes hours, literally.
5427 # So we just punt and use a minimum line length of 8192.
5428 lt_cv_sys_max_cmd_len=8192;
5432 # If test is not a shell built-in, we'll probably end up computing a
5433 # maximum length that is only half of the actual maximum length, but
5435 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5436 = "XX$teststring") >/dev/null 2>&1 &&
5437 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5438 lt_cv_sys_max_cmd_len=$new_result &&
5439 test $i != 17 # 1/2 MB should be enough
5442 teststring=$teststring$teststring
5445 # Add a significant safety factor because C++ compilers can tack on massive
5446 # amounts of additional arguments before passing them to the linker.
5447 # It appears as though 1/2 is a usable value.
5448 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5454 if test -n $lt_cv_sys_max_cmd_len ; then
5455 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5456 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5458 echo "$as_me:$LINENO: result: none" >&5
5459 echo "${ECHO_T}none" >&6
5465 # Check for command to grab the raw symbol name followed by C symbol from nm.
5466 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5467 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5468 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 # These are sane defaults that work on at least a few old systems.
5473 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5475 # Character class describing NM global symbol codes.
5476 symcode='[BCDEGRST]'
5478 # Regexp to match symbols that can be accessed directly from C.
5479 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5481 # Transform the above into a raw symbol and a C symbol.
5482 symxfrm='\1 \2\3 \3'
5484 # Transform an extracted symbol line into a proper C declaration
5485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5487 # Transform an extracted symbol line into symbol name and symbol address
5488 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'"
5490 # Define system-specific variables.
5495 cygwin* | mingw* | pw32*)
5496 symcode='[ABCDGISTW]'
5498 hpux*) # Its linker distinguishes data from code symbols
5499 if test "$host_cpu" = ia64; then
5500 symcode='[ABCDEGRST]'
5502 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5503 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'"
5506 symcode='[BCDEGRST]'
5509 symcode='[BCDEGQRST]'
5519 # Handle CRLF in mingw tool chain
5523 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5527 # If we're using GNU nm, then use its standard symbol codes.
5528 case `$NM -V 2>&1` in
5529 *GNU* | *'with BFD'*)
5530 symcode='[ABCDGIRSTW]' ;;
5533 # Try without a prefix undercore, then with it.
5534 for ac_symprfx in "" "_"; do
5536 # Write the raw and C identifiers.
5537 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5539 # Check to see that the pipe works correctly.
5543 cat > conftest.$ac_ext <<EOF
5548 void nm_test_func(){}
5552 int main(){nm_test_var='a';nm_test_func();return(0);}
5555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5556 (eval $ac_compile) 2>&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; then
5560 # Now try to grab the symbols.
5562 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5563 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && test -s "$nlist"; then
5567 # Try sorting and uniquifying the output.
5568 if sort "$nlist" | uniq > "$nlist"T; then
5569 mv -f "$nlist"T "$nlist"
5574 # Make sure that we snagged all the symbols we need.
5575 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5576 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5577 cat <<EOF > conftest.$ac_ext
5583 # Now generate the symbol file.
5584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5586 cat <<EOF >> conftest.$ac_ext
5587 #if defined (__STDC__) && __STDC__
5588 # define lt_ptr_t void *
5590 # define lt_ptr_t char *
5594 /* The mapping between symbol names and symbols. */
5599 lt_preloaded_symbols[] =
5602 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5603 cat <<\EOF >> conftest.$ac_ext
5611 # Now try linking the two files.
5612 mv conftest.$ac_objext conftstm.$ac_objext
5613 lt_save_LIBS="$LIBS"
5614 lt_save_CFLAGS="$CFLAGS"
5615 LIBS="conftstm.$ac_objext"
5616 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618 (eval $ac_link) 2>&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5624 LIBS="$lt_save_LIBS"
5625 CFLAGS="$lt_save_CFLAGS"
5627 echo "cannot find nm_test_func in $nlist" >&5
5630 echo "cannot find nm_test_var in $nlist" >&5
5633 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5636 echo "$progname: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5639 rm -f conftest* conftst*
5641 # Do not use the global_symbol_pipe unless it works.
5642 if test "$pipe_works" = yes; then
5645 lt_cv_sys_global_symbol_pipe=
5651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5652 lt_cv_sys_global_symbol_to_cdecl=
5654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5655 echo "$as_me:$LINENO: result: failed" >&5
5656 echo "${ECHO_T}failed" >&6
5658 echo "$as_me:$LINENO: result: ok" >&5
5659 echo "${ECHO_T}ok" >&6
5662 echo "$as_me:$LINENO: checking for objdir" >&5
5663 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5664 if test "${lt_cv_objdir+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 rm -f .libs 2>/dev/null
5668 mkdir .libs 2>/dev/null
5669 if test -d .libs; then
5672 # MS-DOS does not allow filenames that begin with a dot.
5675 rmdir .libs 2>/dev/null
5677 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5678 echo "${ECHO_T}$lt_cv_objdir" >&6
5679 objdir=$lt_cv_objdir
5687 # AIX sometimes has problems with the GCC collect2 program. For some
5688 # reason, if we set the COLLECT_NAMES environment variable, the problems
5689 # vanish in a puff of smoke.
5690 if test "X${COLLECT_NAMES+set}" != Xset; then
5692 export COLLECT_NAMES
5697 # Sed substitution that helps us do robust quoting. It backslashifies
5698 # metacharacters that are still active within double-quoted strings.
5699 Xsed='sed -e s/^X//'
5700 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5702 # Same as above, but do not quote variable references.
5703 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5705 # Sed substitution to delay expansion of an escaped shell variable in a
5706 # double_quote_subst'ed string.
5707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5709 # Sed substitution to avoid accidental globbing in evaled expressions
5710 no_glob_subst='s/\*/\\\*/g'
5716 default_ofile=libtool
5717 can_build_shared=yes
5719 # All known linkers require a `.a' archive for static linking (except M$VC,
5720 # which needs '.lib').
5722 ltmain="$ac_aux_dir/ltmain.sh"
5723 ofile="$default_ofile"
5724 with_gnu_ld="$lt_cv_prog_gnu_ld"
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}ar; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_AR+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 if test -n "$AR"; then
5735 ac_cv_prog_AR="$AR" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_AR="${ac_tool_prefix}ar"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 if test -n "$AR"; then
5755 echo "$as_me:$LINENO: result: $AR" >&5
5756 echo "${ECHO_T}$AR" >&6
5758 echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5763 if test -z "$ac_cv_prog_AR"; then
5765 # Extract the first word of "ar", so it can be a program name with args.
5766 set dummy ar; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 if test -n "$ac_ct_AR"; then
5773 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_AR="ar"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5793 if test -n "$ac_ct_AR"; then
5794 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5795 echo "${ECHO_T}$ac_ct_AR" >&6
5797 echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5809 echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811 if test "${ac_cv_prog_RANLIB+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 if test -n "$RANLIB"; then
5815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 RANLIB=$ac_cv_prog_RANLIB
5834 if test -n "$RANLIB"; then
5835 echo "$as_me:$LINENO: result: $RANLIB" >&5
5836 echo "${ECHO_T}$RANLIB" >&6
5838 echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6
5843 if test -z "$ac_cv_prog_RANLIB"; then
5844 ac_ct_RANLIB=$RANLIB
5845 # Extract the first word of "ranlib", so it can be a program name with args.
5846 set dummy ranlib; ac_word=$2
5847 echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 if test -n "$ac_ct_RANLIB"; then
5853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_ac_ct_RANLIB="ranlib"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5873 if test -n "$ac_ct_RANLIB"; then
5874 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5875 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5877 echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6
5881 RANLIB=$ac_ct_RANLIB
5883 RANLIB="$ac_cv_prog_RANLIB"
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}strip; ac_word=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_prog_STRIP+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 if test -n "$STRIP"; then
5895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 STRIP=$ac_cv_prog_STRIP
5914 if test -n "$STRIP"; then
5915 echo "$as_me:$LINENO: result: $STRIP" >&5
5916 echo "${ECHO_T}$STRIP" >&6
5918 echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5923 if test -z "$ac_cv_prog_STRIP"; then
5925 # Extract the first word of "strip", so it can be a program name with args.
5926 set dummy strip; ac_word=$2
5927 echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5929 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 if test -n "$ac_ct_STRIP"; then
5933 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_prog_ac_ct_STRIP="strip"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5952 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5953 if test -n "$ac_ct_STRIP"; then
5954 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5955 echo "${ECHO_T}$ac_ct_STRIP" >&6
5957 echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5963 STRIP="$ac_cv_prog_STRIP"
5968 old_CFLAGS="$CFLAGS"
5970 # Set sane defaults for various variables
5971 test -z "$AR" && AR=ar
5972 test -z "$AR_FLAGS" && AR_FLAGS=cru
5973 test -z "$AS" && AS=as
5974 test -z "$CC" && CC=cc
5975 test -z "$LTCC" && LTCC=$CC
5976 test -z "$DLLTOOL" && DLLTOOL=dlltool
5977 test -z "$LD" && LD=ld
5978 test -z "$LN_S" && LN_S="ln -s"
5979 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5980 test -z "$NM" && NM=nm
5981 test -z "$SED" && SED=sed
5982 test -z "$OBJDUMP" && OBJDUMP=objdump
5983 test -z "$RANLIB" && RANLIB=:
5984 test -z "$STRIP" && STRIP=:
5985 test -z "$ac_objext" && ac_objext=o
5987 # Determine commands to create old-style static archives.
5988 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5989 old_postinstall_cmds='chmod 644 $oldlib'
5990 old_postuninstall_cmds=
5992 if test -n "$RANLIB"; then
5995 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5998 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6001 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6004 # Only perform the check for file, if the check method requires it
6005 case $deplibs_check_method in
6007 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6008 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6009 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6010 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6018 lt_save_MAGIC_CMD="$MAGIC_CMD"
6019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6021 for ac_dir in $ac_dummy; do
6023 test -z "$ac_dir" && ac_dir=.
6024 if test -f $ac_dir/${ac_tool_prefix}file; then
6025 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6026 if test -n "$file_magic_test_file"; then
6027 case $deplibs_check_method in
6029 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6032 $EGREP "$file_magic_regex" > /dev/null; then
6037 *** Warning: the command libtool uses to detect shared libraries,
6038 *** $file_magic_cmd, produces output that libtool cannot recognize.
6039 *** The result is that libtool may fail to recognize shared libraries
6040 *** as such. This will affect the creation of libtool libraries that
6041 *** depend on shared libraries, but programs linked with such libtool
6042 *** libraries will work regardless of this problem. Nevertheless, you
6043 *** may want to report the problem to your system manager and/or to
6044 *** bug-libtool@gnu.org
6054 MAGIC_CMD="$lt_save_MAGIC_CMD"
6059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6060 if test -n "$MAGIC_CMD"; then
6061 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6062 echo "${ECHO_T}$MAGIC_CMD" >&6
6064 echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6
6068 if test -z "$lt_cv_path_MAGIC_CMD"; then
6069 if test -n "$ac_tool_prefix"; then
6070 echo "$as_me:$LINENO: checking for file" >&5
6071 echo $ECHO_N "checking for file... $ECHO_C" >&6
6072 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6080 lt_save_MAGIC_CMD="$MAGIC_CMD"
6081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6082 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6083 for ac_dir in $ac_dummy; do
6085 test -z "$ac_dir" && ac_dir=.
6086 if test -f $ac_dir/file; then
6087 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6088 if test -n "$file_magic_test_file"; then
6089 case $deplibs_check_method in
6091 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6093 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6094 $EGREP "$file_magic_regex" > /dev/null; then
6099 *** Warning: the command libtool uses to detect shared libraries,
6100 *** $file_magic_cmd, produces output that libtool cannot recognize.
6101 *** The result is that libtool may fail to recognize shared libraries
6102 *** as such. This will affect the creation of libtool libraries that
6103 *** depend on shared libraries, but programs linked with such libtool
6104 *** libraries will work regardless of this problem. Nevertheless, you
6105 *** may want to report the problem to your system manager and/or to
6106 *** bug-libtool@gnu.org
6116 MAGIC_CMD="$lt_save_MAGIC_CMD"
6121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6122 if test -n "$MAGIC_CMD"; then
6123 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6124 echo "${ECHO_T}$MAGIC_CMD" >&6
6126 echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6
6142 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6143 if test "${enable_libtool_lock+set}" = set; then
6144 enableval="$enable_libtool_lock"
6147 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6150 # Check whether --with-pic or --without-pic was given.
6151 if test "${with_pic+set}" = set; then
6157 test -z "$pic_mode" && pic_mode=default
6159 # Use C for the default configuration in the libtool script
6163 ac_cpp='$CPP $CPPFLAGS'
6164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169 # Source file extension for C test sources.
6172 # Object file extension for compiled C test sources.
6176 # Code to be used in simple compile tests
6177 lt_simple_compile_test_code="int some_variable = 0;\n"
6179 # Code to be used in simple link tests
6180 lt_simple_link_test_code='int main(){return(0);}\n'
6183 # If no C compiler was specified, use CC.
6186 # Allow CC to be a program name with arguments.
6191 # Check for any special shared library compilation flags.
6194 if test "$GCC" = no; then
6197 lt_prog_cc_shlib='-belf'
6201 if test -n "$lt_prog_cc_shlib"; then
6202 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6203 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6204 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6206 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6207 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6208 lt_cv_prog_cc_can_build_shared=no
6214 # Check to make sure the static flag actually works.
6216 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6217 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6218 if test "${lt_prog_compiler_static_works+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 lt_prog_compiler_static_works=no
6222 save_LDFLAGS="$LDFLAGS"
6223 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6224 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6226 # The compiler can only warn and ignore the option if not recognized
6227 # So say no if there are warnings
6228 if test -s conftest.err; then
6229 # Append any errors to the config.log.
6230 cat conftest.err 1>&5
6232 lt_prog_compiler_static_works=yes
6236 LDFLAGS="$save_LDFLAGS"
6239 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6240 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6242 if test x"$lt_prog_compiler_static_works" = xyes; then
6245 lt_prog_compiler_static=
6251 lt_prog_compiler_no_builtin_flag=
6253 if test "$GCC" = yes; then
6254 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6257 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6258 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6259 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 lt_cv_prog_compiler_rtti_exceptions=no
6263 ac_outfile=conftest.$ac_objext
6264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6265 lt_compiler_flag="-fno-rtti -fno-exceptions"
6266 # Insert the option either (1) after the last *FLAGS variable, or
6267 # (2) before a word containing "conftest.", or (3) at the end.
6268 # Note that $ac_compile itself does not contain backslashes and begins
6269 # with a dollar sign (not a hyphen), so the echo should work correctly.
6270 # The option is referenced via a variable to avoid confusing sed.
6271 lt_compile=`echo "$ac_compile" | $SED \
6272 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6274 -e 's:$: $lt_compiler_flag:'`
6275 (eval echo "\"\$as_me:6275: $lt_compile\"" >&5)
6276 (eval "$lt_compile" 2>conftest.err)
6278 cat conftest.err >&5
6279 echo "$as_me:6279: \$? = $ac_status" >&5
6280 if (exit $ac_status) && test -s "$ac_outfile"; then
6281 # The compiler can only warn and ignore the option if not recognized
6282 # So say no if there are warnings
6283 if test ! -s conftest.err; then
6284 lt_cv_prog_compiler_rtti_exceptions=yes
6290 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6291 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6293 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6294 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6301 lt_prog_compiler_wl=
6302 lt_prog_compiler_pic=
6303 lt_prog_compiler_static=
6305 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6306 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6308 if test "$GCC" = yes; then
6309 lt_prog_compiler_wl='-Wl,'
6310 lt_prog_compiler_static='-static'
6314 # All AIX code is PIC.
6315 if test "$host_cpu" = ia64; then
6316 # AIX 5 now supports IA64 processor
6317 lt_prog_compiler_static='-Bstatic'
6322 # FIXME: we need at least 68020 code to build shared libraries, but
6323 # adding the `-m68020' flag to GCC prevents building anything better,
6325 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6328 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6329 # PIC is the default for these OSes.
6332 mingw* | pw32* | os2*)
6333 # This hack is so that the source file can tell whether it is being
6334 # built for inclusion in a dll (and should export symbols for example).
6335 lt_prog_compiler_pic='-DDLL_EXPORT'
6338 darwin* | rhapsody*)
6339 # PIC is the default on this platform
6340 # Common symbols not allowed in MH_DYLIB files
6341 lt_prog_compiler_pic='-fno-common'
6345 # Just because we use GCC doesn't mean we suddenly get shared libraries
6346 # on systems that don't support them.
6347 lt_prog_compiler_can_build_shared=no
6352 if test -d /usr/nec; then
6353 lt_prog_compiler_pic=-Kconform_pic
6358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6365 lt_prog_compiler_pic='-fPIC'
6371 lt_prog_compiler_pic='-fPIC'
6375 # PORTME Check for flag to pass linker flags through the system compiler.
6378 lt_prog_compiler_wl='-Wl,'
6379 if test "$host_cpu" = ia64; then
6380 # AIX 5 now supports IA64 processor
6381 lt_prog_compiler_static='-Bstatic'
6383 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6387 mingw* | pw32* | os2*)
6388 # This hack is so that the source file can tell whether it is being
6389 # built for inclusion in a dll (and should export symbols for example).
6390 lt_prog_compiler_pic='-DDLL_EXPORT'
6393 hpux9* | hpux10* | hpux11*)
6394 lt_prog_compiler_wl='-Wl,'
6395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6402 lt_prog_compiler_pic='+Z'
6405 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6406 lt_prog_compiler_static='${wl}-a ${wl}archive'
6409 irix5* | irix6* | nonstopux*)
6410 lt_prog_compiler_wl='-Wl,'
6411 # PIC (with -KPIC) is the default.
6412 lt_prog_compiler_static='-non_shared'
6416 lt_prog_compiler_pic='-KPIC'
6417 lt_prog_compiler_static='-Bstatic'
6423 lt_prog_compiler_wl='-Wl,'
6424 lt_prog_compiler_pic='-KPIC'
6425 lt_prog_compiler_static='-static'
6428 lt_prog_compiler_wl='-Wl,'
6429 # All Alpha code is PIC.
6430 lt_prog_compiler_static='-non_shared'
6435 osf3* | osf4* | osf5*)
6436 lt_prog_compiler_wl='-Wl,'
6437 # All OSF/1 code is PIC.
6438 lt_prog_compiler_static='-non_shared'
6442 lt_prog_compiler_pic='-Kpic'
6443 lt_prog_compiler_static='-dn'
6447 lt_prog_compiler_wl='-Wl,'
6448 lt_prog_compiler_pic='-KPIC'
6449 lt_prog_compiler_static='-Bstatic'
6453 lt_prog_compiler_wl='-Qoption ld '
6454 lt_prog_compiler_pic='-PIC'
6455 lt_prog_compiler_static='-Bstatic'
6458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6459 lt_prog_compiler_wl='-Wl,'
6460 lt_prog_compiler_pic='-KPIC'
6461 lt_prog_compiler_static='-Bstatic'
6465 if test -d /usr/nec ;then
6466 lt_prog_compiler_pic='-Kconform_pic'
6467 lt_prog_compiler_static='-Bstatic'
6472 lt_prog_compiler_pic='-pic'
6473 lt_prog_compiler_static='-Bstatic'
6477 lt_prog_compiler_can_build_shared=no
6482 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6483 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6486 # Check to make sure the PIC flag actually works.
6488 if test -n "$lt_prog_compiler_pic"; then
6490 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6491 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6492 if test "${lt_prog_compiler_pic_works+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 lt_prog_compiler_pic_works=no
6496 ac_outfile=conftest.$ac_objext
6497 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6498 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6499 # Insert the option either (1) after the last *FLAGS variable, or
6500 # (2) before a word containing "conftest.", or (3) at the end.
6501 # Note that $ac_compile itself does not contain backslashes and begins
6502 # with a dollar sign (not a hyphen), so the echo should work correctly.
6503 # The option is referenced via a variable to avoid confusing sed.
6504 lt_compile=`echo "$ac_compile" | $SED \
6505 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6507 -e 's:$: $lt_compiler_flag:'`
6508 (eval echo "\"\$as_me:6508: $lt_compile\"" >&5)
6509 (eval "$lt_compile" 2>conftest.err)
6511 cat conftest.err >&5
6512 echo "$as_me:6512: \$? = $ac_status" >&5
6513 if (exit $ac_status) && test -s "$ac_outfile"; then
6514 # The compiler can only warn and ignore the option if not recognized
6515 # So say no if there are warnings
6516 if test ! -s conftest.err; then
6517 lt_prog_compiler_pic_works=yes
6523 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6524 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6526 if test x"$lt_prog_compiler_pic_works" = xyes; then
6527 case $lt_prog_compiler_pic in
6529 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6532 lt_prog_compiler_pic=
6533 lt_prog_compiler_can_build_shared=no
6538 # For platforms which do not support PIC, -DPIC is meaningless:
6540 lt_prog_compiler_pic=
6543 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6547 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6548 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6549 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 lt_cv_prog_compiler_c_o=no
6553 $rm -r conftest 2>/dev/null
6557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6559 lt_compiler_flag="-o out/conftest2.$ac_objext"
6560 # Insert the option either (1) after the last *FLAGS variable, or
6561 # (2) before a word containing "conftest.", or (3) at the end.
6562 # Note that $ac_compile itself does not contain backslashes and begins
6563 # with a dollar sign (not a hyphen), so the echo should work correctly.
6564 lt_compile=`echo "$ac_compile" | $SED \
6565 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6567 -e 's:$: $lt_compiler_flag:'`
6568 (eval echo "\"\$as_me:6568: $lt_compile\"" >&5)
6569 (eval "$lt_compile" 2>out/conftest.err)
6571 cat out/conftest.err >&5
6572 echo "$as_me:6572: \$? = $ac_status" >&5
6573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6575 # The compiler can only warn and ignore the option if not recognized
6576 # So say no if there are warnings
6577 if test ! -s out/conftest.err; then
6578 lt_cv_prog_compiler_c_o=yes
6583 # SGI C++ compiler will create directory out/ii_files/ for
6584 # template instantiation
6585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6586 $rm out/* && rmdir out
6592 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6596 hard_links="nottested"
6597 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6598 # do not overwrite the value of need_locks provided by the user
6599 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6605 ln conftest.a conftest.b 2>&5 || hard_links=no
6606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6607 echo "$as_me:$LINENO: result: $hard_links" >&5
6608 echo "${ECHO_T}$hard_links" >&6
6609 if test "$hard_links" = no; then
6610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6618 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6622 allow_undefined_flag=
6623 enable_shared_with_static_runtimes=no
6625 archive_expsym_cmds=
6626 old_archive_From_new_cmds=
6627 old_archive_from_expsyms_cmds=
6628 export_dynamic_flag_spec=
6629 whole_archive_flag_spec=
6630 thread_safe_flag_spec=
6631 hardcode_libdir_flag_spec=
6632 hardcode_libdir_flag_spec_ld=
6633 hardcode_libdir_separator=
6636 hardcode_shlibpath_var=unsupported
6637 link_all_deplibs=unknown
6638 hardcode_automatic=no
6641 always_export_symbols=no
6642 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6643 # include_expsyms should be a list of space-separated symbols to be *always*
6644 # included in the symbol list
6646 # exclude_expsyms can be an extended regexp of symbols to exclude
6647 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6648 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6649 # as well as any symbol that contains `d'.
6650 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6652 # platforms (ab)use it in PIC code, but their linkers get confused if
6653 # the symbol is explicitly referenced. Since portable code cannot
6654 # rely on this symbol name, it's probably fine to never include it in
6655 # preloaded symbol tables.
6656 extract_expsyms_cmds=
6659 cygwin* | mingw* | pw32*)
6660 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6661 # When not using gcc, we currently assume that we are using
6662 # Microsoft Visual C++.
6663 if test "$GCC" != yes; then
6673 if test "$with_gnu_ld" = yes; then
6674 # If archive_cmds runs LD, not CC, wlarc should be empty
6677 # See if GNU ld supports shared libraries.
6679 aix3* | aix4* | aix5*)
6680 # On AIX/PPC, the GNU linker is very broken
6681 if test "$host_cpu" != ia64; then
6685 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6686 *** to be unable to reliably create shared libraries on AIX.
6687 *** Therefore, libtool is disabling shared libraries support. If you
6688 *** really care for shared libraries, you may want to modify your PATH
6689 *** so that a non-GNU linker is found, and then restart.
6696 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)'
6697 hardcode_libdir_flag_spec='-L$libdir'
6698 hardcode_minus_L=yes
6700 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6701 # that the semantics of dynamic libraries on AmigaOS, at least up
6702 # to version 4, is to share data among multiple programs linked
6703 # with the same dynamic library. Since this doesn't match the
6704 # behavior of shared libraries on other platforms, we can't use
6710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6711 allow_undefined_flag=unsupported
6712 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6713 # support --undefined. This deserves some investigation. FIXME
6714 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6720 cygwin* | mingw* | pw32*)
6721 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6722 # as there is no search path for DLLs.
6723 hardcode_libdir_flag_spec='-L$libdir'
6724 allow_undefined_flag=unsupported
6725 always_export_symbols=no
6726 enable_shared_with_static_runtimes=yes
6727 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6729 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6731 # If the export-symbols file already is a .def file (1st line
6732 # is EXPORTS), use it as is; otherwise, prepend...
6733 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6734 cp $export_symbols $output_objdir/$soname.def;
6736 echo EXPORTS > $output_objdir/$soname.def;
6737 cat $export_symbols >> $output_objdir/$soname.def;
6739 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6745 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6746 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6747 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6756 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6760 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6761 *** create shared libraries on Solaris systems. Therefore, libtool
6762 *** is disabling shared libraries support. We urge you to upgrade GNU
6763 *** binutils to release 2.9.1 or newer. Another option is to modify
6764 *** your PATH or compiler configuration so that the native linker is
6765 *** used, and then restart.
6768 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6777 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6780 hardcode_shlibpath_var=no
6784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6785 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6786 archive_cmds="$tmp_archive_cmds"
6787 supports_anon_versioning=no
6788 case `$LD -v 2>/dev/null` in
6789 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6792 *\ 2.11.*) ;; # other 2.11 versions
6793 *) supports_anon_versioning=yes ;;
6795 if test $supports_anon_versioning = yes; then
6796 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6798 $echo "local: *; };" >> $output_objdir/$libname.ver~
6799 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6801 archive_expsym_cmds="$tmp_archive_cmds"
6810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6819 if test "$ld_shlibs" = yes; then
6820 runpath_var=LD_RUN_PATH
6821 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6822 export_dynamic_flag_spec='${wl}--export-dynamic'
6823 # ancient GNU ld didn't support --whole-archive et. al.
6824 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6825 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6827 whole_archive_flag_spec=
6831 # PORTME fill in a description of your system's linker (not GNU ld)
6834 allow_undefined_flag=unsupported
6835 always_export_symbols=yes
6836 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'
6837 # Note: this linker hardcodes the directories in LIBPATH if there
6838 # are no directories specified by -L.
6839 hardcode_minus_L=yes
6840 if test "$GCC" = yes && test -z "$link_static_flag"; then
6841 # Neither direct hardcoding nor static linking is supported with a
6843 hardcode_direct=unsupported
6848 if test "$host_cpu" = ia64; then
6849 # On IA64, the linker does run time linking by default, so we don't
6850 # have to do anything special.
6851 aix_use_runtimelinking=no
6852 exp_sym_flag='-Bexport'
6855 # If we're using GNU nm, then we don't want the "-C" option.
6856 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6857 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6858 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'
6860 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'
6862 aix_use_runtimelinking=no
6864 # Test if we are trying to use run time linking or normal
6865 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6866 # need to do runtime linking.
6867 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6868 for ld_flag in $LDFLAGS; do
6869 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6870 aix_use_runtimelinking=yes
6876 exp_sym_flag='-bexport'
6877 no_entry_flag='-bnoentry'
6880 # When large executables or shared objects are built, AIX ld can
6881 # have problems creating the table of contents. If linking a library
6882 # or program results in "error TOC overflow" add -mminimal-toc to
6883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6888 hardcode_libdir_separator=':'
6889 link_all_deplibs=yes
6891 if test "$GCC" = yes; then
6892 case $host_os in aix4.012|aix4.012.*)
6893 # We only want to do this on AIX 4.2 and lower, the check
6894 # below for broken collect2 doesn't work under 4.3+
6895 collect2name=`${CC} -print-prog-name=collect2`
6896 if test -f "$collect2name" && \
6897 strings "$collect2name" | grep resolve_lib_name >/dev/null
6899 # We have reworked collect2
6902 # We have old collect2
6903 hardcode_direct=unsupported
6904 # It fails to find uninstalled libraries when the uninstalled
6905 # path is not listed in the libpath. Setting hardcode_minus_L
6906 # to unsupported forces relinking
6907 hardcode_minus_L=yes
6908 hardcode_libdir_flag_spec='-L$libdir'
6909 hardcode_libdir_separator=
6912 shared_flag='-shared'
6915 if test "$host_cpu" = ia64; then
6916 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6917 # chokes on -Wl,-G. The following line is correct:
6920 if test "$aix_use_runtimelinking" = yes; then
6921 shared_flag='${wl}-G'
6923 shared_flag='${wl}-bM:SRE'
6928 # It seems that -bexpall does not export symbols beginning with
6929 # underscore (_), so it is better to generate a list of symbols to export.
6930 always_export_symbols=yes
6931 if test "$aix_use_runtimelinking" = yes; then
6932 # Warning - without using the other runtime loading flags (-brtl),
6933 # -berok will link without error, but may produce a broken library.
6934 allow_undefined_flag='-berok'
6935 # Determine the default libpath from the value encoded in an empty executable.
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>conftest.er1
6955 grep -v '^ *+' conftest.er1 >conftest.err
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try='test -s conftest$ac_exeext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6975 # Check for a 64-bit object if we didn't find anything.
6976 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; }
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6983 rm -f conftest.err conftest.$ac_objext \
6984 conftest$ac_exeext conftest.$ac_ext
6985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6987 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6988 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6990 if test "$host_cpu" = ia64; then
6991 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6992 allow_undefined_flag="-z nodefs"
6993 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6995 # Determine the default libpath from the value encoded in an empty executable.
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest$ac_exeext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7035 # Check for a 64-bit object if we didn't find anything.
7036 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; }
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7043 rm -f conftest.err conftest.$ac_objext \
7044 conftest$ac_exeext conftest.$ac_ext
7045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7047 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7048 # Warning - without using the other run time loading flags,
7049 # -berok will link without error, but may produce a broken library.
7050 no_undefined_flag=' ${wl}-bernotok'
7051 allow_undefined_flag=' ${wl}-berok'
7052 # -bexpall does not export symbols beginning with underscore (_)
7053 always_export_symbols=yes
7054 # Exported symbols can be pulled into shared objects from archives
7055 whole_archive_flag_spec=' '
7056 archive_cmds_need_lc=yes
7057 # This is similar to how AIX traditionally builds it's shared libraries.
7058 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7064 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)'
7065 hardcode_libdir_flag_spec='-L$libdir'
7066 hardcode_minus_L=yes
7067 # see comment about different semantics on the GNU ld section
7072 export_dynamic_flag_spec=-rdynamic
7075 cygwin* | mingw* | pw32*)
7076 # When not using gcc, we currently assume that we are using
7077 # Microsoft Visual C++.
7078 # hardcode_libdir_flag_spec is actually meaningless, as there is
7079 # no search path for DLLs.
7080 hardcode_libdir_flag_spec=' '
7081 allow_undefined_flag=unsupported
7082 # Tell ltmain to make .lib files, not .a files.
7084 # Tell ltmain to make .dll files, not .so files.
7086 # FIXME: Setting linknames here is a bad hack.
7087 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7088 # The linker will automatically build a .lib file if we build a DLL.
7089 old_archive_From_new_cmds='true'
7090 # FIXME: Should let the user specify the lib program.
7091 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7092 fix_srcfile_path='`cygpath -w "$srcfile"`'
7093 enable_shared_with_static_runtimes=yes
7096 darwin* | rhapsody*)
7097 if test "$GXX" = yes ; then
7098 archive_cmds_need_lc=no
7100 rhapsody* | darwin1.[012])
7101 allow_undefined_flag='-undefined suppress'
7104 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7105 allow_undefined_flag='-flat_namespace -undefined suppress'
7107 case ${MACOSX_DEPLOYMENT_TARGET} in
7109 allow_undefined_flag='-flat_namespace -undefined suppress'
7112 allow_undefined_flag='-undefined dynamic_lookup'
7118 lt_int_apple_cc_single_mod=no
7119 output_verbose_link_cmd='echo'
7120 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7121 lt_int_apple_cc_single_mod=yes
7123 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7124 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7126 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7128 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7129 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7130 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7131 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7133 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7135 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}'
7137 hardcode_automatic=yes
7138 hardcode_shlibpath_var=unsupported
7139 whole_archive_flag_spec='-all_load $convenience'
7140 link_all_deplibs=yes
7147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7148 hardcode_libdir_flag_spec='-L$libdir'
7149 hardcode_shlibpath_var=no
7156 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7157 # support. Future versions do this automatically, but an explicit c++rt0.o
7158 # does not break anything, and helps significantly (at the cost of a little
7161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7162 hardcode_libdir_flag_spec='-R$libdir'
7164 hardcode_shlibpath_var=no
7167 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7171 hardcode_minus_L=yes
7172 hardcode_shlibpath_var=no
7175 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7176 freebsd* | kfreebsd*-gnu)
7177 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7178 hardcode_libdir_flag_spec='-R$libdir'
7180 hardcode_shlibpath_var=no
7184 if test "$GCC" = yes; then
7185 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'
7187 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'
7189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7190 hardcode_libdir_separator=:
7193 # hardcode_minus_L: Not really in the search PATH,
7194 # but as the default location of the library.
7195 hardcode_minus_L=yes
7196 export_dynamic_flag_spec='${wl}-E'
7200 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7203 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7206 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7212 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7215 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7219 if test "$with_gnu_ld" = no; then
7222 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7223 hardcode_libdir_flag_spec_ld='+b $libdir'
7224 hardcode_libdir_separator=:
7226 hardcode_shlibpath_var=no
7229 hardcode_libdir_flag_spec='-L$libdir'
7231 hardcode_shlibpath_var=no
7233 # hardcode_minus_L: Not really in the search PATH,
7234 # but as the default location of the library.
7235 hardcode_minus_L=yes
7238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7239 hardcode_libdir_separator=:
7241 export_dynamic_flag_spec='${wl}-E'
7243 # hardcode_minus_L: Not really in the search PATH,
7244 # but as the default location of the library.
7245 hardcode_minus_L=yes
7251 irix5* | irix6* | nonstopux*)
7252 if test "$GCC" = yes; then
7253 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'
7255 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'
7256 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7259 hardcode_libdir_separator=:
7260 link_all_deplibs=yes
7263 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7267 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7269 hardcode_libdir_flag_spec='-R$libdir'
7271 hardcode_shlibpath_var=no
7275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7278 hardcode_libdir_separator=:
7279 hardcode_shlibpath_var=no
7284 hardcode_shlibpath_var=no
7285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7286 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7288 export_dynamic_flag_spec='${wl}-E'
7291 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7293 hardcode_libdir_flag_spec='-R$libdir'
7296 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7297 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7304 hardcode_libdir_flag_spec='-L$libdir'
7305 hardcode_minus_L=yes
7306 allow_undefined_flag=unsupported
7307 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'
7308 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7312 if test "$GCC" = yes; then
7313 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7314 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'
7316 allow_undefined_flag=' -expect_unresolved \*'
7317 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'
7319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7320 hardcode_libdir_separator=:
7323 osf4* | osf5*) # as osf3* with the addition of -msym flag
7324 if test "$GCC" = yes; then
7325 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7326 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'
7327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7329 allow_undefined_flag=' -expect_unresolved \*'
7330 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'
7331 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7332 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7334 # Both c and cxx compiler support -rpath directly
7335 hardcode_libdir_flag_spec='-rpath $libdir'
7337 hardcode_libdir_separator=:
7341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342 hardcode_shlibpath_var=no
7343 export_dynamic_flag_spec='${wl}-Bexport'
7344 runpath_var=LD_RUN_PATH
7345 hardcode_runpath_var=yes
7349 no_undefined_flag=' -z text'
7350 if test "$GCC" = yes; then
7351 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7352 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7353 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7355 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7356 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7357 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7359 hardcode_libdir_flag_spec='-R$libdir'
7360 hardcode_shlibpath_var=no
7362 solaris2.[0-5] | solaris2.[0-5].*) ;;
7363 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7364 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7366 link_all_deplibs=yes
7370 if test "x$host_vendor" = xsequent; then
7371 # Use $CC to link under sequent, because it throws in some extra .o
7372 # files that make .init and .fini sections work.
7373 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7375 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7377 hardcode_libdir_flag_spec='-L$libdir'
7379 hardcode_minus_L=yes
7380 hardcode_shlibpath_var=no
7384 case $host_vendor in
7386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387 hardcode_direct=yes # is this really true???
7390 ## LD is ld it makes a PLAMLIB
7391 ## CC just makes a GrossModule.
7392 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7393 reload_cmds='$CC -r -o $output$reload_objs'
7397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7398 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7401 runpath_var='LD_RUN_PATH'
7402 hardcode_shlibpath_var=no
7406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7407 hardcode_shlibpath_var=no
7408 export_dynamic_flag_spec='-Bexport'
7412 if test -d /usr/nec; then
7413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7414 hardcode_shlibpath_var=no
7415 runpath_var=LD_RUN_PATH
7416 hardcode_runpath_var=yes
7422 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7425 hardcode_shlibpath_var=no
7426 hardcode_runpath_var=yes
7427 runpath_var=LD_RUN_PATH
7430 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7431 no_undefined_flag='${wl}-z ${wl}text'
7432 if test "$GCC" = yes; then
7433 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7435 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7437 runpath_var='LD_RUN_PATH'
7438 hardcode_shlibpath_var=no
7442 no_undefined_flag=' -z text'
7443 # $CC -shared without GNU ld will not create a library from C++
7444 # object files and a static libstdc++, better avoid it by now
7445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7446 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7448 hardcode_libdir_flag_spec=
7449 hardcode_shlibpath_var=no
7450 runpath_var='LD_RUN_PATH'
7454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455 hardcode_libdir_flag_spec='-L$libdir'
7456 hardcode_shlibpath_var=no
7465 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7466 echo "${ECHO_T}$ld_shlibs" >&6
7467 test "$ld_shlibs" = no && can_build_shared=no
7469 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7470 if test "$GCC" = yes; then
7471 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7475 # Do we need to explicitly link libc?
7477 case "x$archive_cmds_need_lc" in
7479 # Assume -lc should be added
7480 archive_cmds_need_lc=yes
7482 if test "$enable_shared" = yes && test "$GCC" = yes; then
7483 case $archive_cmds in
7485 # FIXME: we may have to deal with multi-command sequences.
7488 # Test whether the compiler implicitly links with -lc since on some
7489 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7490 # to ld, don't add -lc before -lgcc.
7491 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7492 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497 (eval $ac_compile) 2>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } 2>conftest.err; then
7503 libobjs=conftest.$ac_objext
7505 wl=$lt_prog_compiler_wl
7511 lt_save_allow_undefined_flag=$allow_undefined_flag
7512 allow_undefined_flag=
7513 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7514 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }
7519 archive_cmds_need_lc=no
7521 archive_cmds_need_lc=yes
7523 allow_undefined_flag=$lt_save_allow_undefined_flag
7525 cat conftest.err 1>&5
7528 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7529 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7536 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7537 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7539 libname_spec='lib$name'
7547 shlibpath_overrides_runpath=unknown
7549 dynamic_linker="$host_os ld.so"
7550 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7551 if test "$GCC" = yes; then
7552 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7553 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7554 # if the path contains ";" then we assume it to be the separator
7555 # otherwise default to the standard path separator (i.e. ":") - it is
7556 # assumed that no part of a normal pathname contains ";" but that should
7557 # okay in the real world where ";" in dirpaths is itself problematic.
7558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7563 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7565 need_lib_prefix=unknown
7566 hardcode_into_libs=no
7568 # when you set need_version to no, make sure it does not cause -set_version
7569 # flags to be left without arguments
7570 need_version=unknown
7575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7576 shlibpath_var=LIBPATH
7578 # AIX 3 has no versioning support, so we append a major version to the name.
7579 soname_spec='${libname}${release}${shared_ext}$major'
7586 hardcode_into_libs=yes
7587 if test "$host_cpu" = ia64; then
7588 # AIX 5 supports IA64
7589 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7590 shlibpath_var=LD_LIBRARY_PATH
7592 # With GCC up to 2.95.x, collect2 would create an import file
7593 # for dependence libraries. The import file would start with
7594 # the line `#! .'. This would cause the generated library to
7595 # depend on `.', always an invalid library. This was fixed in
7596 # development snapshots of GCC prior to 3.0.
7598 aix4 | aix4.[01] | aix4.[01].*)
7599 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7601 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7608 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7609 # soname into executable. Probably we can add versioning support to
7610 # collect2, so additional links can be useful in future.
7611 if test "$aix_use_runtimelinking" = yes; then
7612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7613 # instead of lib<name>.a to let people know that these are not
7614 # typical AIX shared libraries.
7615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7617 # We preserve .a as extension for shared libraries through AIX4.2
7618 # and later when we are not doing run time linking.
7619 library_names_spec='${libname}${release}.a $libname.a'
7620 soname_spec='${libname}${release}${shared_ext}$major'
7622 shlibpath_var=LIBPATH
7627 library_names_spec='$libname.ixlibrary $libname.a'
7628 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7629 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'
7633 library_names_spec='${libname}${shared_ext}'
7634 dynamic_linker="$host_os ld.so"
7635 shlibpath_var=LIBRARY_PATH
7641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642 soname_spec='${libname}${release}${shared_ext}$major'
7643 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7644 shlibpath_var=LD_LIBRARY_PATH
7645 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7646 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7647 # the default ld.so.conf also contains /usr/contrib/lib and
7648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7649 # libtool to hard-code these into programs
7652 cygwin* | mingw* | pw32*)
7653 version_type=windows
7658 case $GCC,$host_os in
7659 yes,cygwin* | yes,mingw* | yes,pw32*)
7660 library_names_spec='$libname.dll.a'
7661 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7662 postinstall_cmds='base_file=`basename \${file}`~
7663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7664 dldir=$destdir/`dirname \$dlpath`~
7665 test -d \$dldir || mkdir -p \$dldir~
7666 $install_prog $dir/$dlname \$dldir/$dlname'
7667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7668 dlpath=$dir/\$dldll~
7670 shlibpath_overrides_runpath=yes
7674 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7679 # MinGW DLLs use traditional 'lib' prefix
7680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7682 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7683 # It is most probably a Windows format PATH printed by
7684 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7685 # path with ; separators, and with drive letters. We can handle the
7686 # drive letters (cygwin fileutils understands them), so leave them,
7687 # especially as we might pass files found there to a mingw objdump,
7688 # which wouldn't understand a cygwinified path. Ahh.
7689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7695 # pw32 DLLs use 'pw' prefix rather than 'lib'
7696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7705 dynamic_linker='Win32 ld.exe'
7706 # FIXME: first we should search . and the directory the executable is in
7710 darwin* | rhapsody*)
7711 dynamic_linker="$host_os dyld"
7715 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7716 soname_spec='${libname}${release}${major}$shared_ext'
7717 shlibpath_overrides_runpath=yes
7718 shlibpath_var=DYLD_LIBRARY_PATH
7719 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7720 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7721 if test "$GCC" = yes; then
7722 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"`
7724 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7734 soname_spec='${libname}${release}${shared_ext}$major'
7735 shlibpath_var=LD_LIBRARY_PATH
7746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7747 soname_spec='${libname}${release}${shared_ext}$major'
7748 shlibpath_var=LD_LIBRARY_PATH
7749 shlibpath_overrides_runpath=no
7750 hardcode_into_libs=yes
7751 dynamic_linker='GNU ld.so'
7755 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7756 version_type=freebsd-$objformat
7757 case $version_type in
7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7768 shlibpath_var=LD_LIBRARY_PATH
7771 shlibpath_overrides_runpath=yes
7773 freebsd3.01* | freebsdelf3.01*)
7774 shlibpath_overrides_runpath=yes
7775 hardcode_into_libs=yes
7778 shlibpath_overrides_runpath=no
7779 hardcode_into_libs=yes
7788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7789 soname_spec='${libname}${release}${shared_ext}$major'
7790 shlibpath_var=LD_LIBRARY_PATH
7791 hardcode_into_libs=yes
7794 hpux9* | hpux10* | hpux11*)
7795 # Give a soname corresponding to the major version so that dld.sl refuses to
7796 # link against other versions.
7803 hardcode_into_libs=yes
7804 dynamic_linker="$host_os dld.so"
7805 shlibpath_var=LD_LIBRARY_PATH
7806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808 soname_spec='${libname}${release}${shared_ext}$major'
7809 if test "X$HPUX_IA64_MODE" = X32; then
7810 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7812 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7818 hardcode_into_libs=yes
7819 dynamic_linker="$host_os dld.sl"
7820 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7823 soname_spec='${libname}${release}${shared_ext}$major'
7824 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7829 dynamic_linker="$host_os dld.sl"
7830 shlibpath_var=SHLIB_PATH
7831 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7833 soname_spec='${libname}${release}${shared_ext}$major'
7836 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7837 postinstall_cmds='chmod 555 $lib'
7840 irix5* | irix6* | nonstopux*)
7842 nonstopux*) version_type=nonstopux ;;
7844 if test "$lt_cv_prog_gnu_ld" = yes; then
7852 soname_spec='${libname}${release}${shared_ext}$major'
7853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7855 irix5* | nonstopux*)
7859 case $LD in # libtool.m4 will add one of these switches to LD
7860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7861 libsuff= shlibsuff= libmagic=32-bit;;
7862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7863 libsuff=32 shlibsuff=N32 libmagic=N32;;
7864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7865 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7866 *) libsuff= shlibsuff= libmagic=never-match;;
7870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7871 shlibpath_overrides_runpath=no
7872 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7873 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7874 hardcode_into_libs=yes
7877 # No shared lib support for Linux oldld, aout, or coff.
7878 linux*oldld* | linux*aout* | linux*coff*)
7882 # This must be Linux ELF.
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888 soname_spec='${libname}${release}${shared_ext}$major'
7889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7890 shlibpath_var=LD_LIBRARY_PATH
7891 shlibpath_overrides_runpath=no
7892 # This implies no fast_install, which is unacceptable.
7893 # Some rework will be needed to allow for fast_install
7894 # before this can be enabled.
7895 hardcode_into_libs=yes
7897 # Append ld.so.conf contents to the search path
7898 if test -f /etc/ld.so.conf; then
7899 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7900 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7903 # We used to test for /lib/ld.so.1 and disable shared libraries on
7904 # powerpc, because MkLinux only supported shared libraries with the
7905 # GNU dynamic linker. Since this was broken with cross compilers,
7906 # most powerpc-linux boxes support dynamic linking these days and
7907 # people can always --disable-shared, the test was removed, and we
7908 # assume the GNU/Linux dynamic linker is in use.
7909 dynamic_linker='GNU/Linux ld.so'
7916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7917 soname_spec='${libname}${release}${shared_ext}$major'
7918 shlibpath_var=LD_LIBRARY_PATH
7919 shlibpath_overrides_runpath=no
7920 hardcode_into_libs=yes
7921 dynamic_linker='NetBSD ld.elf_so'
7928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7929 soname_spec='${libname}${release}${shared_ext}$major'
7930 shlibpath_var=LD_LIBRARY_PATH
7931 shlibpath_overrides_runpath=no
7932 hardcode_into_libs=yes
7933 dynamic_linker='GNU ld.so'
7940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7943 dynamic_linker='NetBSD (a.out) ld.so'
7945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7946 soname_spec='${libname}${release}${shared_ext}$major'
7947 dynamic_linker='NetBSD ld.elf_so'
7949 shlibpath_var=LD_LIBRARY_PATH
7950 shlibpath_overrides_runpath=yes
7951 hardcode_into_libs=yes
7956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 shlibpath_overrides_runpath=yes
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966 soname_spec='${libname}${release}${shared_ext}$major'
7967 shlibpath_var=LD_LIBRARY_PATH
7968 shlibpath_overrides_runpath=yes
7975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7977 shlibpath_var=LD_LIBRARY_PATH
7978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7980 openbsd2.[89] | openbsd2.[89].*)
7981 shlibpath_overrides_runpath=no
7984 shlibpath_overrides_runpath=yes
7988 shlibpath_overrides_runpath=yes
7993 libname_spec='$name'
7996 library_names_spec='$libname${shared_ext} $libname.a'
7997 dynamic_linker='OS/2 ld.exe'
7998 shlibpath_var=LIBPATH
8001 osf3* | osf4* | osf5*)
8005 soname_spec='${libname}${release}${shared_ext}$major'
8006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8007 shlibpath_var=LD_LIBRARY_PATH
8008 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8009 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8014 soname_spec='${libname}${release}${shared_ext}$major'
8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8016 shlibpath_var=LD_LIBRARY_PATH
8023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024 soname_spec='${libname}${release}${shared_ext}$major'
8025 shlibpath_var=LD_LIBRARY_PATH
8026 shlibpath_overrides_runpath=yes
8027 hardcode_into_libs=yes
8028 # ldd complains unless libraries are executable
8029 postinstall_cmds='chmod +x $lib'
8034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8036 shlibpath_var=LD_LIBRARY_PATH
8037 shlibpath_overrides_runpath=yes
8038 if test "$with_gnu_ld" = yes; then
8044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047 soname_spec='${libname}${release}${shared_ext}$major'
8048 shlibpath_var=LD_LIBRARY_PATH
8049 case $host_vendor in
8051 shlibpath_overrides_runpath=no
8053 export_dynamic_flag_spec='${wl}-Blargedynsym'
8054 runpath_var=LD_RUN_PATH
8062 shlibpath_overrides_runpath=no
8063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8069 if test -d /usr/nec ;then
8071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8072 soname_spec='$libname${shared_ext}.$major'
8073 shlibpath_var=LD_LIBRARY_PATH
8079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8080 soname_spec='${libname}${release}${shared_ext}$major'
8081 shlibpath_var=LD_LIBRARY_PATH
8088 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8089 echo "${ECHO_T}$dynamic_linker" >&6
8090 test "$dynamic_linker" = no && can_build_shared=no
8092 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8093 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8095 if test -n "$hardcode_libdir_flag_spec" || \
8096 test -n "$runpath_var " || \
8097 test "X$hardcode_automatic"="Xyes" ; then
8099 # We can hardcode non-existant directories.
8100 if test "$hardcode_direct" != no &&
8101 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8102 # have to relink, otherwise we might link with an installed library
8103 # when we should be linking with a yet-to-be-installed one
8104 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8105 test "$hardcode_minus_L" != no; then
8106 # Linking always hardcodes the temporary library directory.
8107 hardcode_action=relink
8109 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8110 hardcode_action=immediate
8113 # We cannot hardcode anything, or else we can only hardcode existing
8115 hardcode_action=unsupported
8117 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8118 echo "${ECHO_T}$hardcode_action" >&6
8120 if test "$hardcode_action" = relink; then
8121 # Fast installation is not supported
8122 enable_fast_install=no
8123 elif test "$shlibpath_overrides_runpath" = yes ||
8124 test "$enable_shared" = no; then
8125 # Fast installation is not necessary
8126 enable_fast_install=needless
8131 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8132 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8133 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8136 echo "$as_me:$LINENO: result: yes" >&5
8137 echo "${ECHO_T}yes" >&6
8139 # FIXME - insert some real tests, host_os isn't really good enough
8142 if test -n "$STRIP" ; then
8143 striplib="$STRIP -x"
8144 echo "$as_me:$LINENO: result: yes" >&5
8145 echo "${ECHO_T}yes" >&6
8147 echo "$as_me:$LINENO: result: no" >&5
8148 echo "${ECHO_T}no" >&6
8152 echo "$as_me:$LINENO: result: no" >&5
8153 echo "${ECHO_T}no" >&6
8158 if test "x$enable_dlopen" != xyes; then
8159 enable_dlopen=unknown
8160 enable_dlopen_self=unknown
8161 enable_dlopen_self_static=unknown
8168 lt_cv_dlopen="load_add_on"
8170 lt_cv_dlopen_self=yes
8174 lt_cv_dlopen="LoadLibrary"
8179 lt_cv_dlopen="dlopen"
8184 # if libdl is installed we need to link against it
8185 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8186 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8187 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 ac_check_lib_save_LIBS=$LIBS
8192 cat >conftest.$ac_ext <<_ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8199 /* Override any gcc2 internal prototype to avoid an error. */
8203 /* We use char because int might match the return type of a gcc2
8204 builtin and then its argument prototype would still apply. */
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216 (eval $ac_link) 2>conftest.er1
8218 grep -v '^ *+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest$ac_exeext'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8235 ac_cv_lib_dl_dlopen=yes
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 ac_cv_lib_dl_dlopen=no
8242 rm -f conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8244 LIBS=$ac_check_lib_save_LIBS
8246 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8247 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8248 if test $ac_cv_lib_dl_dlopen = yes; then
8249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8254 lt_cv_dlopen_self=yes
8261 echo "$as_me:$LINENO: checking for shl_load" >&5
8262 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8263 if test "${ac_cv_func_shl_load+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8274 #define shl_load innocuous_shl_load
8276 /* System header to define __stub macros and hopefully few prototypes,
8277 which can conflict with char shl_load (); below.
8278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279 <limits.h> exists even on freestanding compilers. */
8282 # include <limits.h>
8284 # include <assert.h>
8289 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8297 /* The GNU C library defines this for functions which it implements
8298 to always fail with ENOSYS. Some functions are actually named
8299 something starting with __ and the normal name is an alias. */
8300 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8303 char (*f) () = shl_load;
8312 return f != shl_load;
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; } &&
8332 { ac_try='test -s conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_cv_func_shl_load=yes
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 ac_cv_func_shl_load=no
8345 rm -f conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8349 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8350 if test $ac_cv_func_shl_load = yes; then
8351 lt_cv_dlopen="shl_load"
8353 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8354 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8355 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 ac_check_lib_save_LIBS=$LIBS
8360 cat >conftest.$ac_ext <<_ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8367 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest$ac_exeext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_lib_dld_shl_load=yes
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8408 ac_cv_lib_dld_shl_load=no
8410 rm -f conftest.err conftest.$ac_objext \
8411 conftest$ac_exeext conftest.$ac_ext
8412 LIBS=$ac_check_lib_save_LIBS
8414 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8415 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8416 if test $ac_cv_lib_dld_shl_load = yes; then
8417 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8419 echo "$as_me:$LINENO: checking for dlopen" >&5
8420 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8421 if test "${ac_cv_func_dlopen+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8432 #define dlopen innocuous_dlopen
8434 /* System header to define __stub macros and hopefully few prototypes,
8435 which can conflict with char dlopen (); below.
8436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8437 <limits.h> exists even on freestanding compilers. */
8440 # include <limits.h>
8442 # include <assert.h>
8447 /* Override any gcc2 internal prototype to avoid an error. */
8452 /* We use char because int might match the return type of a gcc2
8453 builtin and then its argument prototype would still apply. */
8455 /* The GNU C library defines this for functions which it implements
8456 to always fail with ENOSYS. Some functions are actually named
8457 something starting with __ and the normal name is an alias. */
8458 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8461 char (*f) () = dlopen;
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477 (eval $ac_link) 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest$ac_exeext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_cv_func_dlopen=yes
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8501 ac_cv_func_dlopen=no
8503 rm -f conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8507 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8508 if test $ac_cv_func_dlopen = yes; then
8509 lt_cv_dlopen="dlopen"
8511 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8512 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8513 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 ac_check_lib_save_LIBS=$LIBS
8518 cat >conftest.$ac_ext <<_ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8525 /* Override any gcc2 internal prototype to avoid an error. */
8529 /* We use char because int might match the return type of a gcc2
8530 builtin and then its argument prototype would still apply. */
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8542 (eval $ac_link) 2>conftest.er1
8544 grep -v '^ *+' conftest.er1 >conftest.err
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_lib_dl_dlopen=yes
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 ac_cv_lib_dl_dlopen=no
8568 rm -f conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 LIBS=$ac_check_lib_save_LIBS
8572 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8573 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8574 if test $ac_cv_lib_dl_dlopen = yes; then
8575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8577 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8578 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8579 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 ac_check_lib_save_LIBS=$LIBS
8584 cat >conftest.$ac_ext <<_ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8591 /* Override any gcc2 internal prototype to avoid an error. */
8595 /* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>conftest.er1
8610 grep -v '^ *+' conftest.er1 >conftest.err
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try='test -s conftest$ac_exeext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_lib_svld_dlopen=yes
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cv_lib_svld_dlopen=no
8634 rm -f conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 LIBS=$ac_check_lib_save_LIBS
8638 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8639 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8640 if test $ac_cv_lib_svld_dlopen = yes; then
8641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8643 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8644 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8645 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 ac_check_lib_save_LIBS=$LIBS
8650 cat >conftest.$ac_ext <<_ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8657 /* Override any gcc2 internal prototype to avoid an error. */
8661 /* We use char because int might match the return type of a gcc2
8662 builtin and then its argument prototype would still apply. */
8672 rm -f conftest.$ac_objext conftest$ac_exeext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674 (eval $ac_link) 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest$ac_exeext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_cv_lib_dld_dld_link=yes
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 ac_cv_lib_dld_dld_link=no
8700 rm -f conftest.err conftest.$ac_objext \
8701 conftest$ac_exeext conftest.$ac_ext
8702 LIBS=$ac_check_lib_save_LIBS
8704 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8705 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8706 if test $ac_cv_lib_dld_dld_link = yes; then
8707 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8728 if test "x$lt_cv_dlopen" != xno; then
8734 case $lt_cv_dlopen in
8736 save_CPPFLAGS="$CPPFLAGS"
8737 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8739 save_LDFLAGS="$LDFLAGS"
8740 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8743 LIBS="$lt_cv_dlopen_libs $LIBS"
8745 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8746 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8747 if test "${lt_cv_dlopen_self+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 if test "$cross_compiling" = yes; then :
8751 lt_cv_dlopen_self=cross
8753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8754 lt_status=$lt_dlunknown
8755 cat > conftest.$ac_ext <<EOF
8756 #line 8756 "configure"
8757 #include "confdefs.h"
8766 # define LT_DLGLOBAL RTLD_GLOBAL
8769 # define LT_DLGLOBAL DL_GLOBAL
8771 # define LT_DLGLOBAL 0
8775 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8776 find out it does not work in some platform. */
8777 #ifndef LT_DLLAZY_OR_NOW
8779 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8782 # define LT_DLLAZY_OR_NOW DL_LAZY
8785 # define LT_DLLAZY_OR_NOW RTLD_NOW
8788 # define LT_DLLAZY_OR_NOW DL_NOW
8790 # define LT_DLLAZY_OR_NOW 0
8798 extern "C" void exit (int);
8801 void fnord() { int i=42;}
8804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8805 int status = $lt_dlunknown;
8809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8810 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8811 /* dlclose (self); */
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8822 (./conftest; exit; ) 2>/dev/null
8825 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8826 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8827 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8830 # compilation failed
8831 lt_cv_dlopen_self=no
8838 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8839 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8841 if test "x$lt_cv_dlopen_self" = xyes; then
8842 LDFLAGS="$LDFLAGS $link_static_flag"
8843 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8844 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8845 if test "${lt_cv_dlopen_self_static+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 if test "$cross_compiling" = yes; then :
8849 lt_cv_dlopen_self_static=cross
8851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8852 lt_status=$lt_dlunknown
8853 cat > conftest.$ac_ext <<EOF
8854 #line 8854 "configure"
8855 #include "confdefs.h"
8864 # define LT_DLGLOBAL RTLD_GLOBAL
8867 # define LT_DLGLOBAL DL_GLOBAL
8869 # define LT_DLGLOBAL 0
8873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8874 find out it does not work in some platform. */
8875 #ifndef LT_DLLAZY_OR_NOW
8877 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8880 # define LT_DLLAZY_OR_NOW DL_LAZY
8883 # define LT_DLLAZY_OR_NOW RTLD_NOW
8886 # define LT_DLLAZY_OR_NOW DL_NOW
8888 # define LT_DLLAZY_OR_NOW 0
8896 extern "C" void exit (int);
8899 void fnord() { int i=42;}
8902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8903 int status = $lt_dlunknown;
8907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8908 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8909 /* dlclose (self); */
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8920 (./conftest; exit; ) 2>/dev/null
8923 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8924 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8925 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8928 # compilation failed
8929 lt_cv_dlopen_self_static=no
8936 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8937 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8940 CPPFLAGS="$save_CPPFLAGS"
8941 LDFLAGS="$save_LDFLAGS"
8946 case $lt_cv_dlopen_self in
8947 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8948 *) enable_dlopen_self=unknown ;;
8951 case $lt_cv_dlopen_self_static in
8952 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8953 *) enable_dlopen_self_static=unknown ;;
8958 # Report which librarie types wil actually be built
8959 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8960 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8961 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8962 echo "${ECHO_T}$can_build_shared" >&6
8964 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8965 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8966 test "$can_build_shared" = "no" && enable_shared=no
8968 # On AIX, shared libraries and static libraries use the same namespace, and
8969 # are all built from PIC.
8972 test "$enable_shared" = yes && enable_static=no
8973 if test -n "$RANLIB"; then
8974 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8975 postinstall_cmds='$RANLIB $lib'
8980 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8981 test "$enable_shared" = yes && enable_static=no
8984 darwin* | rhapsody*)
8985 if test "$GCC" = yes; then
8986 archive_cmds_need_lc=no
8988 rhapsody* | darwin1.[012])
8989 allow_undefined_flag='-undefined suppress'
8992 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8993 allow_undefined_flag='-flat_namespace -undefined suppress'
8995 case ${MACOSX_DEPLOYMENT_TARGET} in
8997 allow_undefined_flag='-flat_namespace -undefined suppress'
9000 allow_undefined_flag='-undefined dynamic_lookup'
9006 output_verbose_link_cmd='echo'
9007 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9008 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9009 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9010 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}'
9011 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}'
9013 hardcode_automatic=yes
9014 hardcode_shlibpath_var=unsupported
9015 whole_archive_flag_spec='-all_load $convenience'
9016 link_all_deplibs=yes
9022 echo "$as_me:$LINENO: result: $enable_shared" >&5
9023 echo "${ECHO_T}$enable_shared" >&6
9025 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9026 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9027 # Make sure either enable_shared or enable_static is yes.
9028 test "$enable_shared" = yes || enable_static=yes
9029 echo "$as_me:$LINENO: result: $enable_static" >&5
9030 echo "${ECHO_T}$enable_static" >&6
9032 # The else clause should only fire when bootstrapping the
9033 # libtool distribution, otherwise you forgot to ship ltmain.sh
9034 # with your package, and you will get complaints that there are
9035 # no rules to generate ltmain.sh.
9036 if test -f "$ltmain"; then
9037 # See if we are running on zsh, and set the options which allow our commands through
9038 # without removal of \ escapes.
9039 if test -n "${ZSH_VERSION+set}" ; then
9040 setopt NO_GLOB_SUBST
9042 # Now quote all the things that may contain metacharacters while being
9043 # careful not to overquote the AC_SUBSTed values. We take copies of the
9044 # variables and quote the copies for generation of the libtool script.
9045 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9047 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9048 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9049 deplibs_check_method reload_flag reload_cmds need_locks \
9050 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9051 lt_cv_sys_global_symbol_to_c_name_address \
9052 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9053 old_postinstall_cmds old_postuninstall_cmds \
9057 lt_prog_compiler_wl \
9058 lt_prog_compiler_pic \
9059 lt_prog_compiler_static \
9060 lt_prog_compiler_no_builtin_flag \
9061 export_dynamic_flag_spec \
9062 thread_safe_flag_spec \
9063 whole_archive_flag_spec \
9064 enable_shared_with_static_runtimes \
9066 old_archive_from_new_cmds \
9071 compiler_lib_search_path \
9073 archive_expsym_cmds \
9075 postuninstall_cmds \
9076 old_archive_from_expsyms_cmds \
9077 allow_undefined_flag \
9079 export_symbols_cmds \
9080 hardcode_libdir_flag_spec \
9081 hardcode_libdir_flag_spec_ld \
9082 hardcode_libdir_separator \
9083 hardcode_automatic \
9085 module_expsym_cmds \
9086 lt_cv_prog_compiler_c_o \
9091 old_archive_cmds | \
9092 old_archive_from_new_cmds | \
9094 archive_expsym_cmds | \
9096 module_expsym_cmds | \
9097 old_archive_from_expsyms_cmds | \
9098 export_symbols_cmds | \
9099 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9100 postinstall_cmds | postuninstall_cmds | \
9101 old_postinstall_cmds | old_postuninstall_cmds | \
9102 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9103 # Double-quote double-evaled strings.
9104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9107 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9113 *'\$0 --fallback-echo"')
9114 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9119 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9121 { echo "$as_me:$LINENO: creating $ofile" >&5
9122 echo "$as_me: creating $ofile" >&6;}
9124 cat <<__EOF__ >> "$cfgfile"
9127 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9128 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9129 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9131 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9132 # Free Software Foundation, Inc.
9134 # This file is part of GNU Libtool:
9135 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9137 # This program is free software; you can redistribute it and/or modify
9138 # it under the terms of the GNU General Public License as published by
9139 # the Free Software Foundation; either version 2 of the License, or
9140 # (at your option) any later version.
9142 # This program is distributed in the hope that it will be useful, but
9143 # WITHOUT ANY WARRANTY; without even the implied warranty of
9144 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9145 # General Public License for more details.
9147 # You should have received a copy of the GNU General Public License
9148 # along with this program; if not, write to the Free Software
9149 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9151 # As a special exception to the GNU General Public License, if you
9152 # distribute this file as part of a program that contains a
9153 # configuration script generated by Autoconf, you may include it under
9154 # the same distribution terms that you use for the rest of that program.
9156 # A sed program that does not truncate output.
9159 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9160 Xsed="$SED -e s/^X//"
9162 # The HP-UX ksh and POSIX shell print the target directory to stdout
9164 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9166 # The names of the tagged configurations supported by this script.
9169 # ### BEGIN LIBTOOL CONFIG
9171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9173 # Shell to use when invoking shell scripts.
9176 # Whether or not to build shared libraries.
9177 build_libtool_libs=$enable_shared
9179 # Whether or not to build static libraries.
9180 build_old_libs=$enable_static
9182 # Whether or not to add -lc for building shared libraries.
9183 build_libtool_need_lc=$archive_cmds_need_lc
9185 # Whether or not to disallow shared libs when runtime libs are static
9186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9188 # Whether or not to optimize for fast installation.
9189 fast_install=$enable_fast_install
9192 host_alias=$host_alias
9195 # An echo program that does not interpret backslashes.
9200 AR_FLAGS=$lt_AR_FLAGS
9205 # A language-specific compiler.
9208 # Is the compiler the GNU C compiler?
9214 # The linker used to build libraries.
9217 # Whether we need hard or soft links.
9220 # A BSD-compatible nm program.
9223 # A symbol stripping program
9226 # Used to examine libraries when file_magic_cmd begins "file"
9227 MAGIC_CMD=$MAGIC_CMD
9229 # Used on cygwin: DLL creation program.
9232 # Used on cygwin: object dumper.
9235 # Used on cygwin: assembler.
9238 # The name of the directory that contains temporary libtool files.
9241 # How to create reloadable object files.
9242 reload_flag=$lt_reload_flag
9243 reload_cmds=$lt_reload_cmds
9245 # How to pass a linker flag through the compiler.
9246 wl=$lt_lt_prog_compiler_wl
9248 # Object file suffix (normally "o").
9251 # Old archive suffix (normally "a").
9254 # Shared library suffix (normally ".so").
9255 shrext_cmds='$shrext_cmds'
9257 # Executable file suffix (normally "").
9260 # Additional compiler flags for building library objects.
9261 pic_flag=$lt_lt_prog_compiler_pic
9264 # What is the maximum length of a command?
9265 max_cmd_len=$lt_cv_sys_max_cmd_len
9267 # Does compiler simultaneously support -c and -o options?
9268 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9270 # Must we lock files when doing compilation ?
9271 need_locks=$lt_need_locks
9273 # Do we need the lib prefix for modules?
9274 need_lib_prefix=$need_lib_prefix
9276 # Do we need a version for libraries?
9277 need_version=$need_version
9279 # Whether dlopen is supported.
9280 dlopen_support=$enable_dlopen
9282 # Whether dlopen of programs is supported.
9283 dlopen_self=$enable_dlopen_self
9285 # Whether dlopen of statically linked programs is supported.
9286 dlopen_self_static=$enable_dlopen_self_static
9288 # Compiler flag to prevent dynamic linking.
9289 link_static_flag=$lt_lt_prog_compiler_static
9291 # Compiler flag to turn off builtin functions.
9292 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9294 # Compiler flag to allow reflexive dlopens.
9295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9297 # Compiler flag to generate shared objects directly from archives.
9298 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9300 # Compiler flag to generate thread-safe objects.
9301 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9303 # Library versioning type.
9304 version_type=$version_type
9306 # Format of library name prefix.
9307 libname_spec=$lt_libname_spec
9309 # List of archive names. First name is the real one, the rest are links.
9310 # The last name is the one that the linker finds with -lNAME.
9311 library_names_spec=$lt_library_names_spec
9313 # The coded name of the library, if different from the real name.
9314 soname_spec=$lt_soname_spec
9316 # Commands used to build and install an old-style archive.
9318 old_archive_cmds=$lt_old_archive_cmds
9319 old_postinstall_cmds=$lt_old_postinstall_cmds
9320 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9322 # Create an old-style archive from a shared archive.
9323 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9325 # Create a temporary old-style archive to link instead of a shared archive.
9326 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9328 # Commands used to build and install a shared archive.
9329 archive_cmds=$lt_archive_cmds
9330 archive_expsym_cmds=$lt_archive_expsym_cmds
9331 postinstall_cmds=$lt_postinstall_cmds
9332 postuninstall_cmds=$lt_postuninstall_cmds
9334 # Commands used to build a loadable module (assumed same as above if empty)
9335 module_cmds=$lt_module_cmds
9336 module_expsym_cmds=$lt_module_expsym_cmds
9338 # Commands to strip libraries.
9339 old_striplib=$lt_old_striplib
9340 striplib=$lt_striplib
9342 # Dependencies to place before the objects being linked to create a
9344 predep_objects=$lt_predep_objects
9346 # Dependencies to place after the objects being linked to create a
9348 postdep_objects=$lt_postdep_objects
9350 # Dependencies to place before the objects being linked to create a
9354 # Dependencies to place after the objects being linked to create a
9356 postdeps=$lt_postdeps
9358 # The library search path used internally by the compiler when linking
9360 compiler_lib_search_path=$lt_compiler_lib_search_path
9362 # Method to check whether dependent libraries are shared objects.
9363 deplibs_check_method=$lt_deplibs_check_method
9365 # Command to use when deplibs_check_method == file_magic.
9366 file_magic_cmd=$lt_file_magic_cmd
9368 # Flag that allows shared libraries with undefined symbols to be built.
9369 allow_undefined_flag=$lt_allow_undefined_flag
9371 # Flag that forces no undefined symbols.
9372 no_undefined_flag=$lt_no_undefined_flag
9374 # Commands used to finish a libtool library installation in a directory.
9375 finish_cmds=$lt_finish_cmds
9377 # Same as above, but a single script fragment to be evaled but not shown.
9378 finish_eval=$lt_finish_eval
9380 # Take the output of nm and produce a listing of raw symbols and C names.
9381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9383 # Transform the output of nm in a proper C declaration
9384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9386 # Transform the output of nm in a C name address pair
9387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9389 # This is the shared library runtime path variable.
9390 runpath_var=$runpath_var
9392 # This is the shared library path variable.
9393 shlibpath_var=$shlibpath_var
9395 # Is shlibpath searched before the hard-coded library search path?
9396 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9398 # How to hardcode a shared library path into an executable.
9399 hardcode_action=$hardcode_action
9401 # Whether we should hardcode library paths into libraries.
9402 hardcode_into_libs=$hardcode_into_libs
9404 # Flag to hardcode \$libdir into a binary during linking.
9405 # This must work even if \$libdir does not exist.
9406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9408 # If ld is used when linking, flag to hardcode \$libdir into
9409 # a binary during linking. This must work even if \$libdir does
9411 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9413 # Whether we need a single -rpath flag with a separated argument.
9414 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9416 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9418 hardcode_direct=$hardcode_direct
9420 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9422 hardcode_minus_L=$hardcode_minus_L
9424 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9425 # the resulting binary.
9426 hardcode_shlibpath_var=$hardcode_shlibpath_var
9428 # Set to yes if building a shared library automatically hardcodes DIR into the library
9429 # and all subsequent libraries and executables linked against it.
9430 hardcode_automatic=$hardcode_automatic
9432 # Variables whose values should be saved in libtool wrapper scripts and
9433 # restored at relink time.
9434 variables_saved_for_relink="$variables_saved_for_relink"
9436 # Whether libtool must link a program against all its dependency libraries.
9437 link_all_deplibs=$link_all_deplibs
9439 # Compile-time system search path for libraries
9440 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9442 # Run-time system search path for libraries
9443 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9445 # Fix the shell variable \$srcfile for the compiler.
9446 fix_srcfile_path="$fix_srcfile_path"
9448 # Set to yes if exported symbols are required.
9449 always_export_symbols=$always_export_symbols
9451 # The commands to list exported symbols.
9452 export_symbols_cmds=$lt_export_symbols_cmds
9454 # The commands to extract the exported symbol list from a shared archive.
9455 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9457 # Symbols that should not be listed in the preloaded symbols.
9458 exclude_expsyms=$lt_exclude_expsyms
9460 # Symbols that must always be exported.
9461 include_expsyms=$lt_include_expsyms
9463 # ### END LIBTOOL CONFIG
9470 cat <<\EOF >> "$cfgfile"
9472 # AIX sometimes has problems with the GCC collect2 program. For some
9473 # reason, if we set the COLLECT_NAMES environment variable, the problems
9474 # vanish in a puff of smoke.
9475 if test "X${COLLECT_NAMES+set}" != Xset; then
9477 export COLLECT_NAMES
9483 # We use sed instead of cat because bash on DJGPP gets confused if
9484 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9485 # text mode, it properly converts lines to CR/LF. This bash problem
9486 # is reportedly fixed, but why not run on old versions too?
9487 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9489 mv -f "$cfgfile" "$ofile" || \
9490 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9494 # If there is no Makefile yet, we rely on a make rule to execute
9495 # `config.status --recheck' to rerun these tests and create the
9496 # libtool script then.
9497 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9498 if test -f "$ltmain_in"; then
9499 test -f Makefile && make "$ltmain"
9505 ac_cpp='$CPP $CPPFLAGS'
9506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9513 # Check whether --with-tags or --without-tags was given.
9514 if test "${with_tags+set}" = set; then
9515 withval="$with_tags"
9519 if test -f "$ltmain" && test -n "$tagnames"; then
9520 if test ! -f "${ofile}"; then
9521 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9522 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9525 if test -z "$LTCC"; then
9526 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9527 if test -z "$LTCC"; then
9528 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9529 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9532 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9536 # Extract list of available tagged configurations in $ofile.
9537 # Note that this assumes the entire list is on one line.
9538 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9541 for tagname in $tagnames; do
9543 # Check whether tagname contains only valid characters
9544 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9546 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9547 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9548 { (exit 1); exit 1; }; }
9552 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9554 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9555 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9556 { (exit 1); exit 1; }; }
9559 # Update the list of available tags.
9560 if test -n "$tagname"; then
9561 echo appending configuration tag \"$tagname\" to $ofile
9565 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9567 ac_cpp='$CXXCPP $CPPFLAGS'
9568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9575 archive_cmds_need_lc_CXX=no
9576 allow_undefined_flag_CXX=
9577 always_export_symbols_CXX=no
9578 archive_expsym_cmds_CXX=
9579 export_dynamic_flag_spec_CXX=
9580 hardcode_direct_CXX=no
9581 hardcode_libdir_flag_spec_CXX=
9582 hardcode_libdir_flag_spec_ld_CXX=
9583 hardcode_libdir_separator_CXX=
9584 hardcode_minus_L_CXX=no
9585 hardcode_automatic_CXX=no
9587 module_expsym_cmds_CXX=
9588 link_all_deplibs_CXX=unknown
9589 old_archive_cmds_CXX=$old_archive_cmds
9590 no_undefined_flag_CXX=
9591 whole_archive_flag_spec_CXX=
9592 enable_shared_with_static_runtimes_CXX=no
9594 # Dependencies to place before and after the object being linked:
9596 postdep_objects_CXX=
9599 compiler_lib_search_path_CXX=
9601 # Source file extension for C++ test sources.
9604 # Object file extension for compiled C++ test sources.
9608 # Code to be used in simple compile tests
9609 lt_simple_compile_test_code="int some_variable = 0;\n"
9611 # Code to be used in simple link tests
9612 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9614 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9616 # If no C compiler was specified, use CC.
9619 # Allow CC to be a program name with arguments.
9623 # Allow CC to be a program name with arguments.
9628 lt_save_with_gnu_ld=$with_gnu_ld
9629 lt_save_path_LD=$lt_cv_path_LD
9630 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9631 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9633 unset lt_cv_prog_gnu_ld
9635 if test -n "${lt_cv_path_LDCXX+set}"; then
9636 lt_cv_path_LD=$lt_cv_path_LDCXX
9640 test -z "${LDCXX+set}" || LD=$LDCXX
9644 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9646 # We don't want -fno-exception wen compiling C++ code, so set the
9647 # no_builtin_flag separately
9648 if test "$GXX" = yes; then
9649 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9651 lt_prog_compiler_no_builtin_flag_CXX=
9654 if test "$GXX" = yes; then
9655 # Set up default GNU C++ configuration
9658 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9659 if test "${with_gnu_ld+set}" = set; then
9660 withval="$with_gnu_ld"
9661 test "$withval" = no || with_gnu_ld=yes
9666 if test "$GCC" = yes; then
9667 # Check if gcc -print-prog-name=ld gives a path.
9668 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9669 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9672 # gcc leaves a trailing carriage return which upsets mingw
9673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9678 # Accept absolute paths.
9680 re_direlt='/[^/][^/]*/\.\./'
9681 # Canonicalize the pathname of ld
9682 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9683 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9684 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9686 test -z "$LD" && LD="$ac_prog"
9689 # If it fails, then pretend we aren't using GCC.
9693 # If it is relative, then search for the first ld in PATH.
9697 elif test "$with_gnu_ld" = yes; then
9698 echo "$as_me:$LINENO: checking for GNU ld" >&5
9699 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9701 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9702 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9704 if test "${lt_cv_path_LD+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 if test -z "$LD"; then
9708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9709 for ac_dir in $PATH; do
9711 test -z "$ac_dir" && ac_dir=.
9712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9713 lt_cv_path_LD="$ac_dir/$ac_prog"
9714 # Check to see if the program is GNU ld. I'd rather use --version,
9715 # but apparently some GNU ld's only accept -v.
9716 # Break only if it was the GNU/non-GNU ld that we prefer.
9717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9718 *GNU* | *'with BFD'*)
9719 test "$with_gnu_ld" != no && break
9722 test "$with_gnu_ld" != yes && break
9729 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9734 if test -n "$LD"; then
9735 echo "$as_me:$LINENO: result: $LD" >&5
9736 echo "${ECHO_T}$LD" >&6
9738 echo "$as_me:$LINENO: result: no" >&5
9739 echo "${ECHO_T}no" >&6
9741 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9742 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9743 { (exit 1); exit 1; }; }
9744 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9745 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9746 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9750 case `$LD -v 2>&1 </dev/null` in
9751 *GNU* | *'with BFD'*)
9752 lt_cv_prog_gnu_ld=yes
9755 lt_cv_prog_gnu_ld=no
9759 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9760 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9761 with_gnu_ld=$lt_cv_prog_gnu_ld
9765 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9766 # archiving commands below assume that GNU ld is being used.
9767 if test "$with_gnu_ld" = yes; then
9768 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9769 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'
9771 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9774 # If archive_cmds runs LD, not CC, wlarc should be empty
9775 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9776 # investigate it a little bit more. (MM)
9779 # ancient GNU ld didn't support --whole-archive et. al.
9780 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9781 grep 'no-whole-archive' > /dev/null; then
9782 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9784 whole_archive_flag_spec_CXX=
9790 # A generic and very simple default shared library creation
9791 # command for GNU C++ for the case where it uses the native
9792 # linker, instead of GNU ld. If possible, this setting should
9793 # overridden to take advantage of the native linker features on
9794 # the platform it is being used on.
9795 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9798 # Commands to make compiler produce verbose output that lists
9799 # what "hidden" libraries, object files and flags are used when
9800 # linking a shared library.
9801 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9809 # PORTME: fill in a description of your system's C++ link characteristics
9810 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9811 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9815 # FIXME: insert proper C++ library support
9819 if test "$host_cpu" = ia64; then
9820 # On IA64, the linker does run time linking by default, so we don't
9821 # have to do anything special.
9822 aix_use_runtimelinking=no
9823 exp_sym_flag='-Bexport'
9826 aix_use_runtimelinking=no
9828 # Test if we are trying to use run time linking or normal
9829 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9830 # need to do runtime linking.
9831 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9832 for ld_flag in $LDFLAGS; do
9835 aix_use_runtimelinking=yes
9842 exp_sym_flag='-bexport'
9843 no_entry_flag='-bnoentry'
9846 # When large executables or shared objects are built, AIX ld can
9847 # have problems creating the table of contents. If linking a library
9848 # or program results in "error TOC overflow" add -mminimal-toc to
9849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9853 hardcode_direct_CXX=yes
9854 hardcode_libdir_separator_CXX=':'
9855 link_all_deplibs_CXX=yes
9857 if test "$GXX" = yes; then
9858 case $host_os in aix4.012|aix4.012.*)
9859 # We only want to do this on AIX 4.2 and lower, the check
9860 # below for broken collect2 doesn't work under 4.3+
9861 collect2name=`${CC} -print-prog-name=collect2`
9862 if test -f "$collect2name" && \
9863 strings "$collect2name" | grep resolve_lib_name >/dev/null
9865 # We have reworked collect2
9866 hardcode_direct_CXX=yes
9868 # We have old collect2
9869 hardcode_direct_CXX=unsupported
9870 # It fails to find uninstalled libraries when the uninstalled
9871 # path is not listed in the libpath. Setting hardcode_minus_L
9872 # to unsupported forces relinking
9873 hardcode_minus_L_CXX=yes
9874 hardcode_libdir_flag_spec_CXX='-L$libdir'
9875 hardcode_libdir_separator_CXX=
9878 shared_flag='-shared'
9881 if test "$host_cpu" = ia64; then
9882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9883 # chokes on -Wl,-G. The following line is correct:
9886 if test "$aix_use_runtimelinking" = yes; then
9887 shared_flag='${wl}-G'
9889 shared_flag='${wl}-bM:SRE'
9894 # It seems that -bexpall does not export symbols beginning with
9895 # underscore (_), so it is better to generate a list of symbols to export.
9896 always_export_symbols_CXX=yes
9897 if test "$aix_use_runtimelinking" = yes; then
9898 # Warning - without using the other runtime loading flags (-brtl),
9899 # -berok will link without error, but may produce a broken library.
9900 allow_undefined_flag_CXX='-berok'
9901 # Determine the default libpath from the value encoded in an empty executable.
9902 cat >conftest.$ac_ext <<_ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9919 (eval $ac_link) 2>conftest.er1
9921 grep -v '^ *+' conftest.er1 >conftest.err
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
9926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try='test -s conftest$ac_exeext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9941 # Check for a 64-bit object if we didn't find anything.
9942 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; }
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9949 rm -f conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9953 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9955 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9957 if test "$host_cpu" = ia64; then
9958 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9959 allow_undefined_flag_CXX="-z nodefs"
9960 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9962 # Determine the default libpath from the value encoded in an empty executable.
9963 cat >conftest.$ac_ext <<_ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980 (eval $ac_link) 2>conftest.er1
9982 grep -v '^ *+' conftest.er1 >conftest.err
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
10000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10002 # Check for a 64-bit object if we didn't find anything.
10003 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; }
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10010 rm -f conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
10012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10014 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10015 # Warning - without using the other run time loading flags,
10016 # -berok will link without error, but may produce a broken library.
10017 no_undefined_flag_CXX=' ${wl}-bernotok'
10018 allow_undefined_flag_CXX=' ${wl}-berok'
10019 # -bexpall does not export symbols beginning with underscore (_)
10020 always_export_symbols_CXX=yes
10021 # Exported symbols can be pulled into shared objects from archives
10022 whole_archive_flag_spec_CXX=' '
10023 archive_cmds_need_lc_CXX=yes
10024 # This is similar to how AIX traditionally builds it's shared libraries.
10025 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10030 case $cc_basename in
10032 # FIXME: insert proper C++ library support
10038 cygwin* | mingw* | pw32*)
10039 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10040 # as there is no search path for DLLs.
10041 hardcode_libdir_flag_spec_CXX='-L$libdir'
10042 allow_undefined_flag_CXX=unsupported
10043 always_export_symbols_CXX=no
10044 enable_shared_with_static_runtimes_CXX=yes
10046 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10047 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10048 # If the export-symbols file already is a .def file (1st line
10049 # is EXPORTS), use it as is; otherwise, prepend...
10050 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10051 cp $export_symbols $output_objdir/$soname.def;
10053 echo EXPORTS > $output_objdir/$soname.def;
10054 cat $export_symbols >> $output_objdir/$soname.def;
10056 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10062 darwin* | rhapsody*)
10063 if test "$GXX" = yes; then
10064 archive_cmds_need_lc_CXX=no
10066 rhapsody* | darwin1.[012])
10067 allow_undefined_flag_CXX='-undefined suppress'
10070 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10071 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10073 case ${MACOSX_DEPLOYMENT_TARGET} in
10075 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10078 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10084 lt_int_apple_cc_single_mod=no
10085 output_verbose_link_cmd='echo'
10086 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10087 lt_int_apple_cc_single_mod=yes
10089 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10090 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10092 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10094 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10096 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10097 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10098 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}'
10100 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10102 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}'
10103 hardcode_direct_CXX=no
10104 hardcode_automatic_CXX=yes
10105 hardcode_shlibpath_var_CXX=unsupported
10106 whole_archive_flag_spec_CXX='-all_load $convenience'
10107 link_all_deplibs_CXX=yes
10114 case $cc_basename in
10116 # FIXME: insert proper C++ library support
10120 # Green Hills C++ Compiler
10121 # FIXME: insert proper C++ library support
10125 # FIXME: insert proper C++ library support
10131 # C++ shared libraries reported to be fairly broken before switch to ELF
10135 archive_cmds_need_lc_CXX=no
10137 freebsd* | kfreebsd*-gnu)
10138 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10145 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10146 hardcode_libdir_separator_CXX=:
10147 export_dynamic_flag_spec_CXX='${wl}-E'
10148 hardcode_direct_CXX=yes
10149 hardcode_minus_L_CXX=yes # Not in the search PATH,
10150 # but as the default
10151 # location of the library.
10153 case $cc_basename in
10155 # FIXME: insert proper C++ library support
10159 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'
10160 # Commands to make compiler produce verbose output that lists
10161 # what "hidden" libraries, object files and flags are used when
10162 # linking a shared library.
10164 # There doesn't appear to be a way to prevent this compiler from
10165 # explicitly linking system object files so we need to strip them
10166 # from the output so that they don't get included in the library
10168 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'
10171 if test "$GXX" = yes; then
10172 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'
10174 # FIXME: insert proper C++ library support
10181 if test $with_gnu_ld = no; then
10182 case "$host_cpu" in
10184 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10185 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10186 hardcode_libdir_separator_CXX=:
10189 hardcode_libdir_flag_spec_CXX='-L$libdir'
10192 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10193 hardcode_libdir_separator_CXX=:
10194 export_dynamic_flag_spec_CXX='${wl}-E'
10198 case "$host_cpu" in
10200 hardcode_direct_CXX=no
10201 hardcode_shlibpath_var_CXX=no
10204 hardcode_direct_CXX=no
10205 hardcode_shlibpath_var_CXX=no
10206 hardcode_minus_L_CXX=yes # Not in the search PATH,
10207 # but as the default
10208 # location of the library.
10211 hardcode_direct_CXX=yes
10212 hardcode_minus_L_CXX=yes # Not in the search PATH,
10213 # but as the default
10214 # location of the library.
10218 case $cc_basename in
10220 # FIXME: insert proper C++ library support
10224 case "$host_cpu" in
10226 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10229 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10232 # Commands to make compiler produce verbose output that lists
10233 # what "hidden" libraries, object files and flags are used when
10234 # linking a shared library.
10236 # There doesn't appear to be a way to prevent this compiler from
10237 # explicitly linking system object files so we need to strip them
10238 # from the output so that they don't get included in the library
10240 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'
10243 if test "$GXX" = yes; then
10244 if test $with_gnu_ld = no; then
10245 case "$host_cpu" in
10247 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10250 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'
10255 # FIXME: insert proper C++ library support
10262 case $cc_basename in
10265 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10267 # Archives containing C++ object files must be created using
10268 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10269 # necessary to make sure instantiated templates are included
10271 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10274 if test "$GXX" = yes; then
10275 if test "$with_gnu_ld" = no; then
10276 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10278 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'
10281 link_all_deplibs_CXX=yes
10284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10285 hardcode_libdir_separator_CXX=:
10288 case $cc_basename in
10290 # Kuck and Associates, Inc. (KAI) C++ Compiler
10292 # KCC will only create a shared library if the output file
10293 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10294 # to its proper name (with version) after linking.
10295 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'
10296 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'
10297 # Commands to make compiler produce verbose output that lists
10298 # what "hidden" libraries, object files and flags are used when
10299 # linking a shared library.
10301 # There doesn't appear to be a way to prevent this compiler from
10302 # explicitly linking system object files so we need to strip them
10303 # from the output so that they don't get included in the library
10305 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'
10307 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10310 # Archives containing C++ object files must be created using
10311 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10317 archive_cmds_need_lc_CXX=no
10318 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10319 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'
10320 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10321 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10322 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10326 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10327 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'
10329 runpath_var=LD_RUN_PATH
10330 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10331 hardcode_libdir_separator_CXX=:
10333 # Commands to make compiler produce verbose output that lists
10334 # what "hidden" libraries, object files and flags are used when
10335 # linking a shared library.
10337 # There doesn't appear to be a way to prevent this compiler from
10338 # explicitly linking system object files so we need to strip them
10339 # from the output so that they don't get included in the library
10341 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'
10346 # FIXME: insert proper C++ library support
10350 # FIXME: insert proper C++ library support
10354 case $cc_basename in
10356 # FIXME: insert proper C++ library support
10360 # FIXME: insert proper C++ library support
10365 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10367 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10369 hardcode_libdir_flag_spec_CXX='-R$libdir'
10370 hardcode_direct_CXX=yes
10371 hardcode_shlibpath_var_CXX=no
10373 # Workaround some broken pre-1.5 toolchains
10374 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10377 case $cc_basename in
10379 # Kuck and Associates, Inc. (KAI) C++ Compiler
10381 # KCC will only create a shared library if the output file
10382 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10383 # to its proper name (with version) after linking.
10384 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'
10386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10387 hardcode_libdir_separator_CXX=:
10389 # Archives containing C++ object files must be created using
10390 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10391 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10395 # Rational C++ 2.4.1
10396 # FIXME: insert proper C++ library support
10400 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10401 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10403 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10404 hardcode_libdir_separator_CXX=:
10406 # Commands to make compiler produce verbose output that lists
10407 # what "hidden" libraries, object files and flags are used when
10408 # linking a shared library.
10410 # There doesn't appear to be a way to prevent this compiler from
10411 # explicitly linking system object files so we need to strip them
10412 # from the output so that they don't get included in the library
10414 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'
10417 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10419 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10422 hardcode_libdir_separator_CXX=:
10424 # Commands to make compiler produce verbose output that lists
10425 # what "hidden" libraries, object files and flags are used when
10426 # linking a shared library.
10427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10430 # FIXME: insert proper C++ library support
10437 case $cc_basename in
10439 # Kuck and Associates, Inc. (KAI) C++ Compiler
10441 # KCC will only create a shared library if the output file
10442 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10443 # to its proper name (with version) after linking.
10444 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'
10446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10447 hardcode_libdir_separator_CXX=:
10449 # Archives containing C++ object files must be created using
10450 # the KAI C++ compiler.
10451 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10454 # Rational C++ 2.4.1
10455 # FIXME: insert proper C++ library support
10459 allow_undefined_flag_CXX=' -expect_unresolved \*'
10460 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10461 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10462 echo "-hidden">> $lib.exp~
10463 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10466 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10467 hardcode_libdir_separator_CXX=:
10469 # Commands to make compiler produce verbose output that lists
10470 # what "hidden" libraries, object files and flags are used when
10471 # linking a shared library.
10473 # There doesn't appear to be a way to prevent this compiler from
10474 # explicitly linking system object files so we need to strip them
10475 # from the output so that they don't get included in the library
10477 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'
10480 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10481 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10482 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10484 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10485 hardcode_libdir_separator_CXX=:
10487 # Commands to make compiler produce verbose output that lists
10488 # what "hidden" libraries, object files and flags are used when
10489 # linking a shared library.
10490 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10493 # FIXME: insert proper C++ library support
10500 # FIXME: insert proper C++ library support
10504 archive_cmds_need_lc_CXX=no
10505 case $cc_basename in
10507 # FIXME: insert proper C++ library support
10511 # FIXME: insert proper C++ library support
10517 case $cc_basename in
10520 # FIXME: insert proper C++ library support
10525 # FIXME: insert proper C++ library support
10529 # FIXME: insert proper C++ library support
10535 case $cc_basename in
10537 # Sun C++ 4.2, 5.x and Centerline C++
10538 no_undefined_flag_CXX=' -zdefs'
10539 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10540 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10541 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10543 hardcode_libdir_flag_spec_CXX='-R$libdir'
10544 hardcode_shlibpath_var_CXX=no
10546 solaris2.0-5 | solaris2.0-5.*) ;;
10548 # The C++ compiler is used as linker so we must use $wl
10549 # flag to pass the commands to the underlying system
10551 # Supported since Solaris 2.6 (maybe 2.5.1?)
10552 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10555 link_all_deplibs_CXX=yes
10557 # Commands to make compiler produce verbose output that lists
10558 # what "hidden" libraries, object files and flags are used when
10559 # linking a shared library.
10561 # There doesn't appear to be a way to prevent this compiler from
10562 # explicitly linking system object files so we need to strip them
10563 # from the output so that they don't get included in the library
10565 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10567 # Archives containing C++ object files must be created using
10568 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10569 # necessary to make sure instantiated templates are included
10571 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10574 # Green Hills C++ Compiler
10575 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10577 # The C++ compiler must be used to create the archive.
10578 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10581 # GNU C++ compiler with Solaris linker
10582 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10583 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10584 if $CC --version | grep -v '^2\.7' > /dev/null; then
10585 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10586 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10587 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10589 # Commands to make compiler produce verbose output that lists
10590 # what "hidden" libraries, object files and flags are used when
10591 # linking a shared library.
10592 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10594 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10596 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10597 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10598 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10600 # Commands to make compiler produce verbose output that lists
10601 # what "hidden" libraries, object files and flags are used when
10602 # linking a shared library.
10603 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10606 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10611 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10612 archive_cmds_need_lc_CXX=no
10615 case $cc_basename in
10617 # NonStop-UX NCC 3.20
10618 # FIXME: insert proper C++ library support
10622 # FIXME: insert proper C++ library support
10628 # FIXME: insert proper C++ library support
10632 # FIXME: insert proper C++ library support
10636 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10637 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10638 test "$ld_shlibs_CXX" = no && can_build_shared=no
10644 cat > conftest.$ac_ext <<EOF
10648 Foo (void) { a = 0; }
10654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655 (eval $ac_compile) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; then
10659 # Parse the compiler output and extract the necessary
10660 # objects, libraries and library flags.
10662 # Sentinel used to keep track of whether or not we are before
10663 # the conftest object file.
10664 pre_test_object_deps_done=no
10666 # The `*' in the case matches for architectures that use `case' in
10667 # $output_verbose_cmd can trigger glob expansion during the loop
10668 # eval without this substitution.
10669 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10671 for p in `eval $output_verbose_link_cmd`; do
10675 # Some compilers place space between "-{L,R}" and the path.
10676 # Remove the space.
10677 if test $p = "-L" \
10678 || test $p = "-R"; then
10685 if test "$pre_test_object_deps_done" = no; then
10688 # Internal compiler library paths should come after those
10689 # provided the user. The postdeps already come after the
10690 # user supplied libs so there is no need to process them.
10691 if test -z "$compiler_lib_search_path_CXX"; then
10692 compiler_lib_search_path_CXX="${prev}${p}"
10694 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10697 # The "-l" case would never come before the object being
10698 # linked, so don't bother handling this case.
10701 if test -z "$postdeps_CXX"; then
10702 postdeps_CXX="${prev}${p}"
10704 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10710 # This assumes that the test object file only shows up
10711 # once in the compiler output.
10712 if test "$p" = "conftest.$objext"; then
10713 pre_test_object_deps_done=yes
10717 if test "$pre_test_object_deps_done" = no; then
10718 if test -z "$predep_objects_CXX"; then
10719 predep_objects_CXX="$p"
10721 predep_objects_CXX="$predep_objects_CXX $p"
10724 if test -z "$postdep_objects_CXX"; then
10725 postdep_objects_CXX="$p"
10727 postdep_objects_CXX="$postdep_objects_CXX $p"
10732 *) ;; # Ignore the rest.
10740 echo "libtool.m4: error: problem compiling CXX test program"
10743 $rm -f confest.$objext
10745 case " $postdeps_CXX " in
10746 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10749 lt_prog_compiler_wl_CXX=
10750 lt_prog_compiler_pic_CXX=
10751 lt_prog_compiler_static_CXX=
10753 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10754 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10756 # C++ specific cases for pic, static, wl, etc.
10757 if test "$GXX" = yes; then
10758 lt_prog_compiler_wl_CXX='-Wl,'
10759 lt_prog_compiler_static_CXX='-static'
10763 # All AIX code is PIC.
10764 if test "$host_cpu" = ia64; then
10765 # AIX 5 now supports IA64 processor
10766 lt_prog_compiler_static_CXX='-Bstatic'
10770 # FIXME: we need at least 68020 code to build shared libraries, but
10771 # adding the `-m68020' flag to GCC prevents building anything better,
10773 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10775 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10776 # PIC is the default for these OSes.
10778 mingw* | os2* | pw32*)
10779 # This hack is so that the source file can tell whether it is being
10780 # built for inclusion in a dll (and should export symbols for example).
10781 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10783 darwin* | rhapsody*)
10784 # PIC is the default on this platform
10785 # Common symbols not allowed in MH_DYLIB files
10786 lt_prog_compiler_pic_CXX='-fno-common'
10789 # DJGPP does not support shared libraries at all
10790 lt_prog_compiler_pic_CXX=
10793 if test -d /usr/nec; then
10794 lt_prog_compiler_pic_CXX=-Kconform_pic
10798 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10799 # not for PA HP-UX.
10800 case "$host_cpu" in
10804 lt_prog_compiler_pic_CXX='-fPIC'
10809 lt_prog_compiler_pic_CXX='-fPIC'
10815 # All AIX code is PIC.
10816 if test "$host_cpu" = ia64; then
10817 # AIX 5 now supports IA64 processor
10818 lt_prog_compiler_static_CXX='-Bstatic'
10820 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10824 case $cc_basename in
10826 # Green Hills C++ Compiler
10827 # _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"
10832 case $cc_basename in
10834 lt_prog_compiler_pic_CXX='-KPIC'
10837 # Green Hills C++ Compiler
10838 lt_prog_compiler_pic_CXX='-pic'
10844 freebsd* | kfreebsd*-gnu)
10845 # FreeBSD uses GNU C++
10847 hpux9* | hpux10* | hpux11*)
10848 case $cc_basename in
10850 lt_prog_compiler_wl_CXX='-Wl,'
10851 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10852 if test "$host_cpu" != ia64; then
10853 lt_prog_compiler_pic_CXX='+Z'
10857 lt_prog_compiler_wl_CXX='-Wl,'
10858 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10859 case "$host_cpu" in
10864 lt_prog_compiler_pic_CXX='+Z'
10872 irix5* | irix6* | nonstopux*)
10873 case $cc_basename in
10875 lt_prog_compiler_wl_CXX='-Wl,'
10876 lt_prog_compiler_static_CXX='-non_shared'
10877 # CC pic flag -KPIC is the default.
10884 case $cc_basename in
10887 lt_prog_compiler_wl_CXX='--backend -Wl,'
10888 lt_prog_compiler_pic_CXX='-fPIC'
10892 lt_prog_compiler_wl_CXX='-Wl,'
10893 lt_prog_compiler_pic_CXX='-KPIC'
10894 lt_prog_compiler_static_CXX='-static'
10898 # Make sure the PIC flag is empty. It appears that all Alpha
10899 # Linux and Compaq Tru64 Unix objects are PIC.
10900 lt_prog_compiler_pic_CXX=
10901 lt_prog_compiler_static_CXX='-non_shared'
10912 case $cc_basename in
10914 lt_prog_compiler_pic_CXX='-W c,exportall'
10920 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10922 osf3* | osf4* | osf5*)
10923 case $cc_basename in
10925 lt_prog_compiler_wl_CXX='--backend -Wl,'
10928 # Rational C++ 2.4.1
10929 lt_prog_compiler_pic_CXX='-pic'
10932 # Digital/Compaq C++
10933 lt_prog_compiler_wl_CXX='-Wl,'
10934 # Make sure the PIC flag is empty. It appears that all Alpha
10935 # Linux and Compaq Tru64 Unix objects are PIC.
10936 lt_prog_compiler_pic_CXX=
10937 lt_prog_compiler_static_CXX='-non_shared'
10946 case $cc_basename in
10948 lt_prog_compiler_pic_CXX='-fPIC'
10955 case $cc_basename in
10957 # Sun C++ 4.2, 5.x and Centerline C++
10958 lt_prog_compiler_pic_CXX='-KPIC'
10959 lt_prog_compiler_static_CXX='-Bstatic'
10960 lt_prog_compiler_wl_CXX='-Qoption ld '
10963 # Green Hills C++ Compiler
10964 lt_prog_compiler_pic_CXX='-PIC'
10971 case $cc_basename in
10974 lt_prog_compiler_pic_CXX='-pic'
10975 lt_prog_compiler_static_CXX='-Bstatic'
10979 lt_prog_compiler_pic_CXX='-pic'
10986 case $cc_basename in
10988 # NonStop-UX NCC 3.20
10989 lt_prog_compiler_pic_CXX='-KPIC'
11000 lt_prog_compiler_can_build_shared_CXX=no
11005 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11006 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11009 # Check to make sure the PIC flag actually works.
11011 if test -n "$lt_prog_compiler_pic_CXX"; then
11013 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11014 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11015 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 lt_prog_compiler_pic_works_CXX=no
11019 ac_outfile=conftest.$ac_objext
11020 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11021 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11022 # Insert the option either (1) after the last *FLAGS variable, or
11023 # (2) before a word containing "conftest.", or (3) at the end.
11024 # Note that $ac_compile itself does not contain backslashes and begins
11025 # with a dollar sign (not a hyphen), so the echo should work correctly.
11026 # The option is referenced via a variable to avoid confusing sed.
11027 lt_compile=`echo "$ac_compile" | $SED \
11028 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11030 -e 's:$: $lt_compiler_flag:'`
11031 (eval echo "\"\$as_me:11031: $lt_compile\"" >&5)
11032 (eval "$lt_compile" 2>conftest.err)
11034 cat conftest.err >&5
11035 echo "$as_me:11035: \$? = $ac_status" >&5
11036 if (exit $ac_status) && test -s "$ac_outfile"; then
11037 # The compiler can only warn and ignore the option if not recognized
11038 # So say no if there are warnings
11039 if test ! -s conftest.err; then
11040 lt_prog_compiler_pic_works_CXX=yes
11046 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11047 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11049 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11050 case $lt_prog_compiler_pic_CXX in
11052 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11055 lt_prog_compiler_pic_CXX=
11056 lt_prog_compiler_can_build_shared_CXX=no
11061 # For platforms which do not support PIC, -DPIC is meaningless:
11063 lt_prog_compiler_pic_CXX=
11066 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11070 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11071 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11072 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 lt_cv_prog_compiler_c_o_CXX=no
11076 $rm -r conftest 2>/dev/null
11080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11082 lt_compiler_flag="-o out/conftest2.$ac_objext"
11083 # Insert the option either (1) after the last *FLAGS variable, or
11084 # (2) before a word containing "conftest.", or (3) at the end.
11085 # Note that $ac_compile itself does not contain backslashes and begins
11086 # with a dollar sign (not a hyphen), so the echo should work correctly.
11087 lt_compile=`echo "$ac_compile" | $SED \
11088 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11090 -e 's:$: $lt_compiler_flag:'`
11091 (eval echo "\"\$as_me:11091: $lt_compile\"" >&5)
11092 (eval "$lt_compile" 2>out/conftest.err)
11094 cat out/conftest.err >&5
11095 echo "$as_me:11095: \$? = $ac_status" >&5
11096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11098 # The compiler can only warn and ignore the option if not recognized
11099 # So say no if there are warnings
11100 if test ! -s out/conftest.err; then
11101 lt_cv_prog_compiler_c_o_CXX=yes
11106 # SGI C++ compiler will create directory out/ii_files/ for
11107 # template instantiation
11108 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11109 $rm out/* && rmdir out
11115 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11116 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11119 hard_links="nottested"
11120 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11121 # do not overwrite the value of need_locks provided by the user
11122 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11123 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11128 ln conftest.a conftest.b 2>&5 || hard_links=no
11129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11130 echo "$as_me:$LINENO: result: $hard_links" >&5
11131 echo "${ECHO_T}$hard_links" >&6
11132 if test "$hard_links" = no; then
11133 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11134 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11141 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11142 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11144 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11147 # If we're using GNU nm, then we don't want the "-C" option.
11148 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11149 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11150 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'
11152 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'
11156 export_symbols_cmds_CXX="$ltdll_cmds"
11159 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11162 link_all_deplibs_CXX=no
11165 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11169 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11170 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11171 test "$ld_shlibs_CXX" = no && can_build_shared=no
11173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11174 if test "$GCC" = yes; then
11175 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11179 # Do we need to explicitly link libc?
11181 case "x$archive_cmds_need_lc_CXX" in
11183 # Assume -lc should be added
11184 archive_cmds_need_lc_CXX=yes
11186 if test "$enable_shared" = yes && test "$GCC" = yes; then
11187 case $archive_cmds_CXX in
11189 # FIXME: we may have to deal with multi-command sequences.
11192 # Test whether the compiler implicitly links with -lc since on some
11193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11194 # to ld, don't add -lc before -lgcc.
11195 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11196 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201 (eval $ac_compile) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } 2>conftest.err; then
11207 libobjs=conftest.$ac_objext
11209 wl=$lt_prog_compiler_wl_CXX
11215 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11216 allow_undefined_flag_CXX=
11217 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11218 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }
11223 archive_cmds_need_lc_CXX=no
11225 archive_cmds_need_lc_CXX=yes
11227 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11229 cat conftest.err 1>&5
11232 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11233 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11240 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11241 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11242 library_names_spec=
11243 libname_spec='lib$name'
11247 postuninstall_cmds=
11251 shlibpath_overrides_runpath=unknown
11253 dynamic_linker="$host_os ld.so"
11254 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11255 if test "$GCC" = yes; then
11256 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11257 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11258 # if the path contains ";" then we assume it to be the separator
11259 # otherwise default to the standard path separator (i.e. ":") - it is
11260 # assumed that no part of a normal pathname contains ";" but that should
11261 # okay in the real world where ";" in dirpaths is itself problematic.
11262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11267 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11269 need_lib_prefix=unknown
11270 hardcode_into_libs=no
11272 # when you set need_version to no, make sure it does not cause -set_version
11273 # flags to be left without arguments
11274 need_version=unknown
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11280 shlibpath_var=LIBPATH
11282 # AIX 3 has no versioning support, so we append a major version to the name.
11283 soname_spec='${libname}${release}${shared_ext}$major'
11290 hardcode_into_libs=yes
11291 if test "$host_cpu" = ia64; then
11292 # AIX 5 supports IA64
11293 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11294 shlibpath_var=LD_LIBRARY_PATH
11296 # With GCC up to 2.95.x, collect2 would create an import file
11297 # for dependence libraries. The import file would start with
11298 # the line `#! .'. This would cause the generated library to
11299 # depend on `.', always an invalid library. This was fixed in
11300 # development snapshots of GCC prior to 3.0.
11302 aix4 | aix4.[01] | aix4.[01].*)
11303 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11305 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11308 can_build_shared=no
11312 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11313 # soname into executable. Probably we can add versioning support to
11314 # collect2, so additional links can be useful in future.
11315 if test "$aix_use_runtimelinking" = yes; then
11316 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11317 # instead of lib<name>.a to let people know that these are not
11318 # typical AIX shared libraries.
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 # We preserve .a as extension for shared libraries through AIX4.2
11322 # and later when we are not doing run time linking.
11323 library_names_spec='${libname}${release}.a $libname.a'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11326 shlibpath_var=LIBPATH
11331 library_names_spec='$libname.ixlibrary $libname.a'
11332 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11333 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'
11337 library_names_spec='${libname}${shared_ext}'
11338 dynamic_linker="$host_os ld.so"
11339 shlibpath_var=LIBRARY_PATH
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11350 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11351 # the default ld.so.conf also contains /usr/contrib/lib and
11352 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11353 # libtool to hard-code these into programs
11356 cygwin* | mingw* | pw32*)
11357 version_type=windows
11362 case $GCC,$host_os in
11363 yes,cygwin* | yes,mingw* | yes,pw32*)
11364 library_names_spec='$libname.dll.a'
11365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11366 postinstall_cmds='base_file=`basename \${file}`~
11367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11368 dldir=$destdir/`dirname \$dlpath`~
11369 test -d \$dldir || mkdir -p \$dldir~
11370 $install_prog $dir/$dlname \$dldir/$dlname'
11371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11372 dlpath=$dir/\$dldll~
11374 shlibpath_overrides_runpath=yes
11378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11380 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11383 # MinGW DLLs use traditional 'lib' prefix
11384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11385 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11386 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11387 # It is most probably a Windows format PATH printed by
11388 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11389 # path with ; separators, and with drive letters. We can handle the
11390 # drive letters (cygwin fileutils understands them), so leave them,
11391 # especially as we might pass files found there to a mingw objdump,
11392 # which wouldn't understand a cygwinified path. Ahh.
11393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11399 # pw32 DLLs use 'pw' prefix rather than 'lib'
11400 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11406 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11409 dynamic_linker='Win32 ld.exe'
11410 # FIXME: first we should search . and the directory the executable is in
11414 darwin* | rhapsody*)
11415 dynamic_linker="$host_os dyld"
11416 version_type=darwin
11419 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11420 soname_spec='${libname}${release}${major}$shared_ext'
11421 shlibpath_overrides_runpath=yes
11422 shlibpath_var=DYLD_LIBRARY_PATH
11423 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11424 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11425 if test "$GCC" = yes; then
11426 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"`
11428 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11430 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11438 soname_spec='${libname}${release}${shared_ext}$major'
11439 shlibpath_var=LD_LIBRARY_PATH
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=no
11454 hardcode_into_libs=yes
11455 dynamic_linker='GNU ld.so'
11459 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11460 version_type=freebsd-$objformat
11461 case $version_type in
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11472 shlibpath_var=LD_LIBRARY_PATH
11475 shlibpath_overrides_runpath=yes
11477 freebsd3.01* | freebsdelf3.01*)
11478 shlibpath_overrides_runpath=yes
11479 hardcode_into_libs=yes
11482 shlibpath_overrides_runpath=no
11483 hardcode_into_libs=yes
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 hardcode_into_libs=yes
11498 hpux9* | hpux10* | hpux11*)
11499 # Give a soname corresponding to the major version so that dld.sl refuses to
11500 # link against other versions.
11504 case "$host_cpu" in
11507 hardcode_into_libs=yes
11508 dynamic_linker="$host_os dld.so"
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 if test "X$HPUX_IA64_MODE" = X32; then
11514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11522 hardcode_into_libs=yes
11523 dynamic_linker="$host_os dld.sl"
11524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527 soname_spec='${libname}${release}${shared_ext}$major'
11528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11533 dynamic_linker="$host_os dld.sl"
11534 shlibpath_var=SHLIB_PATH
11535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11540 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11541 postinstall_cmds='chmod 555 $lib'
11544 irix5* | irix6* | nonstopux*)
11546 nonstopux*) version_type=nonstopux ;;
11548 if test "$lt_cv_prog_gnu_ld" = yes; then
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11559 irix5* | nonstopux*)
11560 libsuff= shlibsuff=
11563 case $LD in # libtool.m4 will add one of these switches to LD
11564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11565 libsuff= shlibsuff= libmagic=32-bit;;
11566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11567 libsuff=32 shlibsuff=N32 libmagic=N32;;
11568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11569 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11570 *) libsuff= shlibsuff= libmagic=never-match;;
11574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11575 shlibpath_overrides_runpath=no
11576 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11577 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11578 hardcode_into_libs=yes
11581 # No shared lib support for Linux oldld, aout, or coff.
11582 linux*oldld* | linux*aout* | linux*coff*)
11586 # This must be Linux ELF.
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 shlibpath_overrides_runpath=no
11596 # This implies no fast_install, which is unacceptable.
11597 # Some rework will be needed to allow for fast_install
11598 # before this can be enabled.
11599 hardcode_into_libs=yes
11601 # Append ld.so.conf contents to the search path
11602 if test -f /etc/ld.so.conf; then
11603 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11604 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11607 # We used to test for /lib/ld.so.1 and disable shared libraries on
11608 # powerpc, because MkLinux only supported shared libraries with the
11609 # GNU dynamic linker. Since this was broken with cross compilers,
11610 # most powerpc-linux boxes support dynamic linking these days and
11611 # people can always --disable-shared, the test was removed, and we
11612 # assume the GNU/Linux dynamic linker is in use.
11613 dynamic_linker='GNU/Linux ld.so'
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 shlibpath_overrides_runpath=no
11624 hardcode_into_libs=yes
11625 dynamic_linker='NetBSD ld.elf_so'
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636 hardcode_into_libs=yes
11637 dynamic_linker='GNU ld.so'
11644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11647 dynamic_linker='NetBSD (a.out) ld.so'
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 dynamic_linker='NetBSD ld.elf_so'
11653 shlibpath_var=LD_LIBRARY_PATH
11654 shlibpath_overrides_runpath=yes
11655 hardcode_into_libs=yes
11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=yes
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=yes
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11684 openbsd2.[89] | openbsd2.[89].*)
11685 shlibpath_overrides_runpath=no
11688 shlibpath_overrides_runpath=yes
11692 shlibpath_overrides_runpath=yes
11697 libname_spec='$name'
11700 library_names_spec='$libname${shared_ext} $libname.a'
11701 dynamic_linker='OS/2 ld.exe'
11702 shlibpath_var=LIBPATH
11705 osf3* | osf4* | osf5*)
11709 soname_spec='${libname}${release}${shared_ext}$major'
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11713 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11718 soname_spec='${libname}${release}${shared_ext}$major'
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 shlibpath_var=LD_LIBRARY_PATH
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728 soname_spec='${libname}${release}${shared_ext}$major'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 shlibpath_overrides_runpath=yes
11731 hardcode_into_libs=yes
11732 # ldd complains unless libraries are executable
11733 postinstall_cmds='chmod +x $lib'
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath=yes
11742 if test "$with_gnu_ld" = yes; then
11748 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751 soname_spec='${libname}${release}${shared_ext}$major'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 case $host_vendor in
11755 shlibpath_overrides_runpath=no
11757 export_dynamic_flag_spec='${wl}-Blargedynsym'
11758 runpath_var=LD_RUN_PATH
11766 shlibpath_overrides_runpath=no
11767 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11773 if test -d /usr/nec ;then
11775 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11776 soname_spec='$libname${shared_ext}.$major'
11777 shlibpath_var=LD_LIBRARY_PATH
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784 soname_spec='${libname}${release}${shared_ext}$major'
11785 shlibpath_var=LD_LIBRARY_PATH
11792 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11793 echo "${ECHO_T}$dynamic_linker" >&6
11794 test "$dynamic_linker" = no && can_build_shared=no
11796 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11798 hardcode_action_CXX=
11799 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11800 test -n "$runpath_var CXX" || \
11801 test "X$hardcode_automatic_CXX"="Xyes" ; then
11803 # We can hardcode non-existant directories.
11804 if test "$hardcode_direct_CXX" != no &&
11805 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11806 # have to relink, otherwise we might link with an installed library
11807 # when we should be linking with a yet-to-be-installed one
11808 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11809 test "$hardcode_minus_L_CXX" != no; then
11810 # Linking always hardcodes the temporary library directory.
11811 hardcode_action_CXX=relink
11813 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11814 hardcode_action_CXX=immediate
11817 # We cannot hardcode anything, or else we can only hardcode existing
11819 hardcode_action_CXX=unsupported
11821 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11822 echo "${ECHO_T}$hardcode_action_CXX" >&6
11824 if test "$hardcode_action_CXX" = relink; then
11825 # Fast installation is not supported
11826 enable_fast_install=no
11827 elif test "$shlibpath_overrides_runpath" = yes ||
11828 test "$enable_shared" = no; then
11829 # Fast installation is not necessary
11830 enable_fast_install=needless
11835 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11836 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11837 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11838 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11839 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11840 echo "$as_me:$LINENO: result: yes" >&5
11841 echo "${ECHO_T}yes" >&6
11843 # FIXME - insert some real tests, host_os isn't really good enough
11846 if test -n "$STRIP" ; then
11847 striplib="$STRIP -x"
11848 echo "$as_me:$LINENO: result: yes" >&5
11849 echo "${ECHO_T}yes" >&6
11851 echo "$as_me:$LINENO: result: no" >&5
11852 echo "${ECHO_T}no" >&6
11856 echo "$as_me:$LINENO: result: no" >&5
11857 echo "${ECHO_T}no" >&6
11862 if test "x$enable_dlopen" != xyes; then
11863 enable_dlopen=unknown
11864 enable_dlopen_self=unknown
11865 enable_dlopen_self_static=unknown
11872 lt_cv_dlopen="load_add_on"
11874 lt_cv_dlopen_self=yes
11878 lt_cv_dlopen="LoadLibrary"
11883 lt_cv_dlopen="dlopen"
11888 # if libdl is installed we need to link against it
11889 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11890 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 ac_check_lib_save_LIBS=$LIBS
11896 cat >conftest.$ac_ext <<_ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11903 /* Override any gcc2 internal prototype to avoid an error. */
11907 /* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest$ac_exeext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_cv_lib_dl_dlopen=yes
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 ac_cv_lib_dl_dlopen=no
11946 rm -f conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11950 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11951 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11952 if test $ac_cv_lib_dl_dlopen = yes; then
11953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11956 lt_cv_dlopen="dyld"
11958 lt_cv_dlopen_self=yes
11965 echo "$as_me:$LINENO: checking for shl_load" >&5
11966 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11967 if test "${ac_cv_func_shl_load+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11978 #define shl_load innocuous_shl_load
11980 /* System header to define __stub macros and hopefully few prototypes,
11981 which can conflict with char shl_load (); below.
11982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983 <limits.h> exists even on freestanding compilers. */
11986 # include <limits.h>
11988 # include <assert.h>
11993 /* Override any gcc2 internal prototype to avoid an error. */
11998 /* We use char because int might match the return type of a gcc2
11999 builtin and then its argument prototype would still apply. */
12001 /* The GNU C library defines this for functions which it implements
12002 to always fail with ENOSYS. Some functions are actually named
12003 something starting with __ and the normal name is an alias. */
12004 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12007 char (*f) () = shl_load;
12016 return f != shl_load;
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12025 grep -v '^ *+' conftest.er1 >conftest.err
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_cv_func_shl_load=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_cv_func_shl_load=no
12049 rm -f conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12052 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12053 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12054 if test $ac_cv_func_shl_load = yes; then
12055 lt_cv_dlopen="shl_load"
12057 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12058 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12059 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 ac_check_lib_save_LIBS=$LIBS
12064 cat >conftest.$ac_ext <<_ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12071 /* Override any gcc2 internal prototype to avoid an error. */
12075 /* We use char because int might match the return type of a gcc2
12076 builtin and then its argument prototype would still apply. */
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088 (eval $ac_link) 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; } &&
12101 { ac_try='test -s conftest$ac_exeext'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 ac_cv_lib_dld_shl_load=yes
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 ac_cv_lib_dld_shl_load=no
12114 rm -f conftest.err conftest.$ac_objext \
12115 conftest$ac_exeext conftest.$ac_ext
12116 LIBS=$ac_check_lib_save_LIBS
12118 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12119 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12120 if test $ac_cv_lib_dld_shl_load = yes; then
12121 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12123 echo "$as_me:$LINENO: checking for dlopen" >&5
12124 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12125 if test "${ac_cv_func_dlopen+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12136 #define dlopen innocuous_dlopen
12138 /* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char dlopen (); below.
12140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12141 <limits.h> exists even on freestanding compilers. */
12144 # include <limits.h>
12146 # include <assert.h>
12151 /* Override any gcc2 internal prototype to avoid an error. */
12156 /* We use char because int might match the return type of a gcc2
12157 builtin and then its argument prototype would still apply. */
12159 /* The GNU C library defines this for functions which it implements
12160 to always fail with ENOSYS. Some functions are actually named
12161 something starting with __ and the normal name is an alias. */
12162 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12165 char (*f) () = dlopen;
12174 return f != dlopen;
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181 (eval $ac_link) 2>conftest.er1
12183 grep -v '^ *+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest$ac_exeext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_cv_func_dlopen=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 ac_cv_func_dlopen=no
12207 rm -f conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12210 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12211 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12212 if test $ac_cv_func_dlopen = yes; then
12213 lt_cv_dlopen="dlopen"
12215 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12216 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 ac_check_lib_save_LIBS=$LIBS
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12229 /* Override any gcc2 internal prototype to avoid an error. */
12233 /* We use char because int might match the return type of a gcc2
12234 builtin and then its argument prototype would still apply. */
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12246 (eval $ac_link) 2>conftest.er1
12248 grep -v '^ *+' conftest.er1 >conftest.err
12250 cat conftest.err >&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } &&
12253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; } &&
12259 { ac_try='test -s conftest$ac_exeext'
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 ac_cv_lib_dl_dlopen=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_cv_lib_dl_dlopen=no
12272 rm -f conftest.err conftest.$ac_objext \
12273 conftest$ac_exeext conftest.$ac_ext
12274 LIBS=$ac_check_lib_save_LIBS
12276 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12277 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12278 if test $ac_cv_lib_dl_dlopen = yes; then
12279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12281 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12282 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12283 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-lsvld $LIBS"
12288 cat >conftest.$ac_ext <<_ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12295 /* Override any gcc2 internal prototype to avoid an error. */
12299 /* We use char because int might match the return type of a gcc2
12300 builtin and then its argument prototype would still apply. */
12310 rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12312 (eval $ac_link) 2>conftest.er1
12314 grep -v '^ *+' conftest.er1 >conftest.err
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; } &&
12325 { ac_try='test -s conftest$ac_exeext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12331 ac_cv_lib_svld_dlopen=yes
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_cv_lib_svld_dlopen=no
12338 rm -f conftest.err conftest.$ac_objext \
12339 conftest$ac_exeext conftest.$ac_ext
12340 LIBS=$ac_check_lib_save_LIBS
12342 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12343 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12344 if test $ac_cv_lib_svld_dlopen = yes; then
12345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12347 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12348 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12349 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 ac_check_lib_save_LIBS=$LIBS
12354 cat >conftest.$ac_ext <<_ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12361 /* Override any gcc2 internal prototype to avoid an error. */
12365 /* We use char because int might match the return type of a gcc2
12366 builtin and then its argument prototype would still apply. */
12376 rm -f conftest.$ac_objext conftest$ac_exeext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12378 (eval $ac_link) 2>conftest.er1
12380 grep -v '^ *+' conftest.er1 >conftest.err
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest$ac_exeext'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_cv_lib_dld_dld_link=yes
12399 echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12402 ac_cv_lib_dld_dld_link=no
12404 rm -f conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext conftest.$ac_ext
12406 LIBS=$ac_check_lib_save_LIBS
12408 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12409 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12410 if test $ac_cv_lib_dld_dld_link = yes; then
12411 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12432 if test "x$lt_cv_dlopen" != xno; then
12438 case $lt_cv_dlopen in
12440 save_CPPFLAGS="$CPPFLAGS"
12441 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12443 save_LDFLAGS="$LDFLAGS"
12444 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12447 LIBS="$lt_cv_dlopen_libs $LIBS"
12449 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12450 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12451 if test "${lt_cv_dlopen_self+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12454 if test "$cross_compiling" = yes; then :
12455 lt_cv_dlopen_self=cross
12457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12458 lt_status=$lt_dlunknown
12459 cat > conftest.$ac_ext <<EOF
12460 #line 12460 "configure"
12461 #include "confdefs.h"
12470 # define LT_DLGLOBAL RTLD_GLOBAL
12473 # define LT_DLGLOBAL DL_GLOBAL
12475 # define LT_DLGLOBAL 0
12479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12480 find out it does not work in some platform. */
12481 #ifndef LT_DLLAZY_OR_NOW
12483 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12486 # define LT_DLLAZY_OR_NOW DL_LAZY
12489 # define LT_DLLAZY_OR_NOW RTLD_NOW
12492 # define LT_DLLAZY_OR_NOW DL_NOW
12494 # define LT_DLLAZY_OR_NOW 0
12502 extern "C" void exit (int);
12505 void fnord() { int i=42;}
12508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12509 int status = $lt_dlunknown;
12513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12514 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12515 /* dlclose (self); */
12521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12522 (eval $ac_link) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12526 (./conftest; exit; ) 2>/dev/null
12528 case x$lt_status in
12529 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12530 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12531 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12534 # compilation failed
12535 lt_cv_dlopen_self=no
12542 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12543 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12545 if test "x$lt_cv_dlopen_self" = xyes; then
12546 LDFLAGS="$LDFLAGS $link_static_flag"
12547 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12548 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12549 if test "${lt_cv_dlopen_self_static+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 if test "$cross_compiling" = yes; then :
12553 lt_cv_dlopen_self_static=cross
12555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12556 lt_status=$lt_dlunknown
12557 cat > conftest.$ac_ext <<EOF
12558 #line 12558 "configure"
12559 #include "confdefs.h"
12568 # define LT_DLGLOBAL RTLD_GLOBAL
12571 # define LT_DLGLOBAL DL_GLOBAL
12573 # define LT_DLGLOBAL 0
12577 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12578 find out it does not work in some platform. */
12579 #ifndef LT_DLLAZY_OR_NOW
12581 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12584 # define LT_DLLAZY_OR_NOW DL_LAZY
12587 # define LT_DLLAZY_OR_NOW RTLD_NOW
12590 # define LT_DLLAZY_OR_NOW DL_NOW
12592 # define LT_DLLAZY_OR_NOW 0
12600 extern "C" void exit (int);
12603 void fnord() { int i=42;}
12606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12607 int status = $lt_dlunknown;
12611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12612 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12613 /* dlclose (self); */
12619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12620 (eval $ac_link) 2>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12624 (./conftest; exit; ) 2>/dev/null
12626 case x$lt_status in
12627 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12628 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12629 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12632 # compilation failed
12633 lt_cv_dlopen_self_static=no
12640 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12641 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12644 CPPFLAGS="$save_CPPFLAGS"
12645 LDFLAGS="$save_LDFLAGS"
12650 case $lt_cv_dlopen_self in
12651 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12652 *) enable_dlopen_self=unknown ;;
12655 case $lt_cv_dlopen_self_static in
12656 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12657 *) enable_dlopen_self_static=unknown ;;
12662 # The else clause should only fire when bootstrapping the
12663 # libtool distribution, otherwise you forgot to ship ltmain.sh
12664 # with your package, and you will get complaints that there are
12665 # no rules to generate ltmain.sh.
12666 if test -f "$ltmain"; then
12667 # See if we are running on zsh, and set the options which allow our commands through
12668 # without removal of \ escapes.
12669 if test -n "${ZSH_VERSION+set}" ; then
12670 setopt NO_GLOB_SUBST
12672 # Now quote all the things that may contain metacharacters while being
12673 # careful not to overquote the AC_SUBSTed values. We take copies of the
12674 # variables and quote the copies for generation of the libtool script.
12675 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12677 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12678 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12679 deplibs_check_method reload_flag reload_cmds need_locks \
12680 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12681 lt_cv_sys_global_symbol_to_c_name_address \
12682 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12683 old_postinstall_cmds old_postuninstall_cmds \
12687 lt_prog_compiler_wl_CXX \
12688 lt_prog_compiler_pic_CXX \
12689 lt_prog_compiler_static_CXX \
12690 lt_prog_compiler_no_builtin_flag_CXX \
12691 export_dynamic_flag_spec_CXX \
12692 thread_safe_flag_spec_CXX \
12693 whole_archive_flag_spec_CXX \
12694 enable_shared_with_static_runtimes_CXX \
12695 old_archive_cmds_CXX \
12696 old_archive_from_new_cmds_CXX \
12697 predep_objects_CXX \
12698 postdep_objects_CXX \
12701 compiler_lib_search_path_CXX \
12703 archive_expsym_cmds_CXX \
12704 postinstall_cmds_CXX \
12705 postuninstall_cmds_CXX \
12706 old_archive_from_expsyms_cmds_CXX \
12707 allow_undefined_flag_CXX \
12708 no_undefined_flag_CXX \
12709 export_symbols_cmds_CXX \
12710 hardcode_libdir_flag_spec_CXX \
12711 hardcode_libdir_flag_spec_ld_CXX \
12712 hardcode_libdir_separator_CXX \
12713 hardcode_automatic_CXX \
12715 module_expsym_cmds_CXX \
12716 lt_cv_prog_compiler_c_o_CXX \
12717 exclude_expsyms_CXX \
12718 include_expsyms_CXX; do
12721 old_archive_cmds_CXX | \
12722 old_archive_from_new_cmds_CXX | \
12723 archive_cmds_CXX | \
12724 archive_expsym_cmds_CXX | \
12725 module_cmds_CXX | \
12726 module_expsym_cmds_CXX | \
12727 old_archive_from_expsyms_cmds_CXX | \
12728 export_symbols_cmds_CXX | \
12729 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12730 postinstall_cmds | postuninstall_cmds | \
12731 old_postinstall_cmds | old_postuninstall_cmds | \
12732 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12733 # Double-quote double-evaled strings.
12734 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12737 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12743 *'\$0 --fallback-echo"')
12744 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12750 cat <<__EOF__ >> "$cfgfile"
12751 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12753 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12755 # Shell to use when invoking shell scripts.
12758 # Whether or not to build shared libraries.
12759 build_libtool_libs=$enable_shared
12761 # Whether or not to build static libraries.
12762 build_old_libs=$enable_static
12764 # Whether or not to add -lc for building shared libraries.
12765 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12767 # Whether or not to disallow shared libs when runtime libs are static
12768 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12770 # Whether or not to optimize for fast installation.
12771 fast_install=$enable_fast_install
12774 host_alias=$host_alias
12777 # An echo program that does not interpret backslashes.
12782 AR_FLAGS=$lt_AR_FLAGS
12787 # A language-specific compiler.
12788 CC=$lt_compiler_CXX
12790 # Is the compiler the GNU C compiler?
12796 # The linker used to build libraries.
12799 # Whether we need hard or soft links.
12802 # A BSD-compatible nm program.
12805 # A symbol stripping program
12808 # Used to examine libraries when file_magic_cmd begins "file"
12809 MAGIC_CMD=$MAGIC_CMD
12811 # Used on cygwin: DLL creation program.
12814 # Used on cygwin: object dumper.
12817 # Used on cygwin: assembler.
12820 # The name of the directory that contains temporary libtool files.
12823 # How to create reloadable object files.
12824 reload_flag=$lt_reload_flag
12825 reload_cmds=$lt_reload_cmds
12827 # How to pass a linker flag through the compiler.
12828 wl=$lt_lt_prog_compiler_wl_CXX
12830 # Object file suffix (normally "o").
12831 objext="$ac_objext"
12833 # Old archive suffix (normally "a").
12836 # Shared library suffix (normally ".so").
12837 shrext_cmds='$shrext_cmds'
12839 # Executable file suffix (normally "").
12842 # Additional compiler flags for building library objects.
12843 pic_flag=$lt_lt_prog_compiler_pic_CXX
12846 # What is the maximum length of a command?
12847 max_cmd_len=$lt_cv_sys_max_cmd_len
12849 # Does compiler simultaneously support -c and -o options?
12850 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12852 # Must we lock files when doing compilation ?
12853 need_locks=$lt_need_locks
12855 # Do we need the lib prefix for modules?
12856 need_lib_prefix=$need_lib_prefix
12858 # Do we need a version for libraries?
12859 need_version=$need_version
12861 # Whether dlopen is supported.
12862 dlopen_support=$enable_dlopen
12864 # Whether dlopen of programs is supported.
12865 dlopen_self=$enable_dlopen_self
12867 # Whether dlopen of statically linked programs is supported.
12868 dlopen_self_static=$enable_dlopen_self_static
12870 # Compiler flag to prevent dynamic linking.
12871 link_static_flag=$lt_lt_prog_compiler_static_CXX
12873 # Compiler flag to turn off builtin functions.
12874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12876 # Compiler flag to allow reflexive dlopens.
12877 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12879 # Compiler flag to generate shared objects directly from archives.
12880 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12882 # Compiler flag to generate thread-safe objects.
12883 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12885 # Library versioning type.
12886 version_type=$version_type
12888 # Format of library name prefix.
12889 libname_spec=$lt_libname_spec
12891 # List of archive names. First name is the real one, the rest are links.
12892 # The last name is the one that the linker finds with -lNAME.
12893 library_names_spec=$lt_library_names_spec
12895 # The coded name of the library, if different from the real name.
12896 soname_spec=$lt_soname_spec
12898 # Commands used to build and install an old-style archive.
12900 old_archive_cmds=$lt_old_archive_cmds_CXX
12901 old_postinstall_cmds=$lt_old_postinstall_cmds
12902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12904 # Create an old-style archive from a shared archive.
12905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12907 # Create a temporary old-style archive to link instead of a shared archive.
12908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12910 # Commands used to build and install a shared archive.
12911 archive_cmds=$lt_archive_cmds_CXX
12912 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12913 postinstall_cmds=$lt_postinstall_cmds
12914 postuninstall_cmds=$lt_postuninstall_cmds
12916 # Commands used to build a loadable module (assumed same as above if empty)
12917 module_cmds=$lt_module_cmds_CXX
12918 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12920 # Commands to strip libraries.
12921 old_striplib=$lt_old_striplib
12922 striplib=$lt_striplib
12924 # Dependencies to place before the objects being linked to create a
12926 predep_objects=$lt_predep_objects_CXX
12928 # Dependencies to place after the objects being linked to create a
12930 postdep_objects=$lt_postdep_objects_CXX
12932 # Dependencies to place before the objects being linked to create a
12934 predeps=$lt_predeps_CXX
12936 # Dependencies to place after the objects being linked to create a
12938 postdeps=$lt_postdeps_CXX
12940 # The library search path used internally by the compiler when linking
12941 # a shared library.
12942 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12944 # Method to check whether dependent libraries are shared objects.
12945 deplibs_check_method=$lt_deplibs_check_method
12947 # Command to use when deplibs_check_method == file_magic.
12948 file_magic_cmd=$lt_file_magic_cmd
12950 # Flag that allows shared libraries with undefined symbols to be built.
12951 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12953 # Flag that forces no undefined symbols.
12954 no_undefined_flag=$lt_no_undefined_flag_CXX
12956 # Commands used to finish a libtool library installation in a directory.
12957 finish_cmds=$lt_finish_cmds
12959 # Same as above, but a single script fragment to be evaled but not shown.
12960 finish_eval=$lt_finish_eval
12962 # Take the output of nm and produce a listing of raw symbols and C names.
12963 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12965 # Transform the output of nm in a proper C declaration
12966 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12968 # Transform the output of nm in a C name address pair
12969 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12971 # This is the shared library runtime path variable.
12972 runpath_var=$runpath_var
12974 # This is the shared library path variable.
12975 shlibpath_var=$shlibpath_var
12977 # Is shlibpath searched before the hard-coded library search path?
12978 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12980 # How to hardcode a shared library path into an executable.
12981 hardcode_action=$hardcode_action_CXX
12983 # Whether we should hardcode library paths into libraries.
12984 hardcode_into_libs=$hardcode_into_libs
12986 # Flag to hardcode \$libdir into a binary during linking.
12987 # This must work even if \$libdir does not exist.
12988 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12990 # If ld is used when linking, flag to hardcode \$libdir into
12991 # a binary during linking. This must work even if \$libdir does
12993 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12995 # Whether we need a single -rpath flag with a separated argument.
12996 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12998 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12999 # resulting binary.
13000 hardcode_direct=$hardcode_direct_CXX
13002 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13003 # resulting binary.
13004 hardcode_minus_L=$hardcode_minus_L_CXX
13006 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13007 # the resulting binary.
13008 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13010 # Set to yes if building a shared library automatically hardcodes DIR into the library
13011 # and all subsequent libraries and executables linked against it.
13012 hardcode_automatic=$hardcode_automatic_CXX
13014 # Variables whose values should be saved in libtool wrapper scripts and
13015 # restored at relink time.
13016 variables_saved_for_relink="$variables_saved_for_relink"
13018 # Whether libtool must link a program against all its dependency libraries.
13019 link_all_deplibs=$link_all_deplibs_CXX
13021 # Compile-time system search path for libraries
13022 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13024 # Run-time system search path for libraries
13025 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13027 # Fix the shell variable \$srcfile for the compiler.
13028 fix_srcfile_path="$fix_srcfile_path_CXX"
13030 # Set to yes if exported symbols are required.
13031 always_export_symbols=$always_export_symbols_CXX
13033 # The commands to list exported symbols.
13034 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13036 # The commands to extract the exported symbol list from a shared archive.
13037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13039 # Symbols that should not be listed in the preloaded symbols.
13040 exclude_expsyms=$lt_exclude_expsyms_CXX
13042 # Symbols that must always be exported.
13043 include_expsyms=$lt_include_expsyms_CXX
13045 # ### END LIBTOOL TAG CONFIG: $tagname
13051 # If there is no Makefile yet, we rely on a make rule to execute
13052 # `config.status --recheck' to rerun these tests and create the
13053 # libtool script then.
13054 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13055 if test -f "$ltmain_in"; then
13056 test -f Makefile && make "$ltmain"
13062 ac_cpp='$CPP $CPPFLAGS'
13063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13071 with_gnu_ldcxx=$with_gnu_ld
13072 with_gnu_ld=$lt_save_with_gnu_ld
13073 lt_cv_path_LDCXX=$lt_cv_path_LD
13074 lt_cv_path_LD=$lt_save_path_LD
13075 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13076 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13084 if test -n "$F77" && test "X$F77" != "Xno"; then
13087 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13088 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13089 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13092 archive_cmds_need_lc_F77=no
13093 allow_undefined_flag_F77=
13094 always_export_symbols_F77=no
13095 archive_expsym_cmds_F77=
13096 export_dynamic_flag_spec_F77=
13097 hardcode_direct_F77=no
13098 hardcode_libdir_flag_spec_F77=
13099 hardcode_libdir_flag_spec_ld_F77=
13100 hardcode_libdir_separator_F77=
13101 hardcode_minus_L_F77=no
13102 hardcode_automatic_F77=no
13104 module_expsym_cmds_F77=
13105 link_all_deplibs_F77=unknown
13106 old_archive_cmds_F77=$old_archive_cmds
13107 no_undefined_flag_F77=
13108 whole_archive_flag_spec_F77=
13109 enable_shared_with_static_runtimes_F77=no
13111 # Source file extension for f77 test sources.
13114 # Object file extension for compiled f77 test sources.
13118 # Code to be used in simple compile tests
13119 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13121 # Code to be used in simple link tests
13122 lt_simple_link_test_code=" program t\n end\n"
13124 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13126 # If no C compiler was specified, use CC.
13129 # Allow CC to be a program name with arguments.
13133 # Allow CC to be a program name with arguments.
13138 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13140 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13141 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13142 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13143 echo "${ECHO_T}$can_build_shared" >&6
13145 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13146 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13147 test "$can_build_shared" = "no" && enable_shared=no
13149 # On AIX, shared libraries and static libraries use the same namespace, and
13150 # are all built from PIC.
13153 test "$enable_shared" = yes && enable_static=no
13154 if test -n "$RANLIB"; then
13155 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13156 postinstall_cmds='$RANLIB $lib'
13160 test "$enable_shared" = yes && enable_static=no
13163 echo "$as_me:$LINENO: result: $enable_shared" >&5
13164 echo "${ECHO_T}$enable_shared" >&6
13166 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13167 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13168 # Make sure either enable_shared or enable_static is yes.
13169 test "$enable_shared" = yes || enable_static=yes
13170 echo "$as_me:$LINENO: result: $enable_static" >&5
13171 echo "${ECHO_T}$enable_static" >&6
13173 test "$ld_shlibs_F77" = no && can_build_shared=no
13178 lt_prog_compiler_wl_F77=
13179 lt_prog_compiler_pic_F77=
13180 lt_prog_compiler_static_F77=
13182 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13183 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13185 if test "$GCC" = yes; then
13186 lt_prog_compiler_wl_F77='-Wl,'
13187 lt_prog_compiler_static_F77='-static'
13191 # All AIX code is PIC.
13192 if test "$host_cpu" = ia64; then
13193 # AIX 5 now supports IA64 processor
13194 lt_prog_compiler_static_F77='-Bstatic'
13199 # FIXME: we need at least 68020 code to build shared libraries, but
13200 # adding the `-m68020' flag to GCC prevents building anything better,
13202 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13205 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13206 # PIC is the default for these OSes.
13209 mingw* | pw32* | os2*)
13210 # This hack is so that the source file can tell whether it is being
13211 # built for inclusion in a dll (and should export symbols for example).
13212 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13215 darwin* | rhapsody*)
13216 # PIC is the default on this platform
13217 # Common symbols not allowed in MH_DYLIB files
13218 lt_prog_compiler_pic_F77='-fno-common'
13222 # Just because we use GCC doesn't mean we suddenly get shared libraries
13223 # on systems that don't support them.
13224 lt_prog_compiler_can_build_shared_F77=no
13229 if test -d /usr/nec; then
13230 lt_prog_compiler_pic_F77=-Kconform_pic
13235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13236 # not for PA HP-UX.
13237 case "$host_cpu" in
13242 lt_prog_compiler_pic_F77='-fPIC'
13248 lt_prog_compiler_pic_F77='-fPIC'
13252 # PORTME Check for flag to pass linker flags through the system compiler.
13255 lt_prog_compiler_wl_F77='-Wl,'
13256 if test "$host_cpu" = ia64; then
13257 # AIX 5 now supports IA64 processor
13258 lt_prog_compiler_static_F77='-Bstatic'
13260 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13264 mingw* | pw32* | os2*)
13265 # This hack is so that the source file can tell whether it is being
13266 # built for inclusion in a dll (and should export symbols for example).
13267 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13270 hpux9* | hpux10* | hpux11*)
13271 lt_prog_compiler_wl_F77='-Wl,'
13272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13273 # not for PA HP-UX.
13274 case "$host_cpu" in
13279 lt_prog_compiler_pic_F77='+Z'
13282 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13283 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13286 irix5* | irix6* | nonstopux*)
13287 lt_prog_compiler_wl_F77='-Wl,'
13288 # PIC (with -KPIC) is the default.
13289 lt_prog_compiler_static_F77='-non_shared'
13293 lt_prog_compiler_pic_F77='-KPIC'
13294 lt_prog_compiler_static_F77='-Bstatic'
13300 lt_prog_compiler_wl_F77='-Wl,'
13301 lt_prog_compiler_pic_F77='-KPIC'
13302 lt_prog_compiler_static_F77='-static'
13305 lt_prog_compiler_wl_F77='-Wl,'
13306 # All Alpha code is PIC.
13307 lt_prog_compiler_static_F77='-non_shared'
13312 osf3* | osf4* | osf5*)
13313 lt_prog_compiler_wl_F77='-Wl,'
13314 # All OSF/1 code is PIC.
13315 lt_prog_compiler_static_F77='-non_shared'
13319 lt_prog_compiler_pic_F77='-Kpic'
13320 lt_prog_compiler_static_F77='-dn'
13324 lt_prog_compiler_wl_F77='-Wl,'
13325 lt_prog_compiler_pic_F77='-KPIC'
13326 lt_prog_compiler_static_F77='-Bstatic'
13330 lt_prog_compiler_wl_F77='-Qoption ld '
13331 lt_prog_compiler_pic_F77='-PIC'
13332 lt_prog_compiler_static_F77='-Bstatic'
13335 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13336 lt_prog_compiler_wl_F77='-Wl,'
13337 lt_prog_compiler_pic_F77='-KPIC'
13338 lt_prog_compiler_static_F77='-Bstatic'
13342 if test -d /usr/nec ;then
13343 lt_prog_compiler_pic_F77='-Kconform_pic'
13344 lt_prog_compiler_static_F77='-Bstatic'
13349 lt_prog_compiler_pic_F77='-pic'
13350 lt_prog_compiler_static_F77='-Bstatic'
13354 lt_prog_compiler_can_build_shared_F77=no
13359 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13360 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13363 # Check to make sure the PIC flag actually works.
13365 if test -n "$lt_prog_compiler_pic_F77"; then
13367 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13368 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13369 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 lt_prog_compiler_pic_works_F77=no
13373 ac_outfile=conftest.$ac_objext
13374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13375 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13376 # Insert the option either (1) after the last *FLAGS variable, or
13377 # (2) before a word containing "conftest.", or (3) at the end.
13378 # Note that $ac_compile itself does not contain backslashes and begins
13379 # with a dollar sign (not a hyphen), so the echo should work correctly.
13380 # The option is referenced via a variable to avoid confusing sed.
13381 lt_compile=`echo "$ac_compile" | $SED \
13382 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13384 -e 's:$: $lt_compiler_flag:'`
13385 (eval echo "\"\$as_me:13385: $lt_compile\"" >&5)
13386 (eval "$lt_compile" 2>conftest.err)
13388 cat conftest.err >&5
13389 echo "$as_me:13389: \$? = $ac_status" >&5
13390 if (exit $ac_status) && test -s "$ac_outfile"; then
13391 # The compiler can only warn and ignore the option if not recognized
13392 # So say no if there are warnings
13393 if test ! -s conftest.err; then
13394 lt_prog_compiler_pic_works_F77=yes
13400 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13401 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13403 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13404 case $lt_prog_compiler_pic_F77 in
13406 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13409 lt_prog_compiler_pic_F77=
13410 lt_prog_compiler_can_build_shared_F77=no
13415 # For platforms which do not support PIC, -DPIC is meaningless:
13417 lt_prog_compiler_pic_F77=
13420 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13424 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13425 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13426 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 lt_cv_prog_compiler_c_o_F77=no
13430 $rm -r conftest 2>/dev/null
13434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13436 lt_compiler_flag="-o out/conftest2.$ac_objext"
13437 # Insert the option either (1) after the last *FLAGS variable, or
13438 # (2) before a word containing "conftest.", or (3) at the end.
13439 # Note that $ac_compile itself does not contain backslashes and begins
13440 # with a dollar sign (not a hyphen), so the echo should work correctly.
13441 lt_compile=`echo "$ac_compile" | $SED \
13442 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13444 -e 's:$: $lt_compiler_flag:'`
13445 (eval echo "\"\$as_me:13445: $lt_compile\"" >&5)
13446 (eval "$lt_compile" 2>out/conftest.err)
13448 cat out/conftest.err >&5
13449 echo "$as_me:13449: \$? = $ac_status" >&5
13450 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13452 # The compiler can only warn and ignore the option if not recognized
13453 # So say no if there are warnings
13454 if test ! -s out/conftest.err; then
13455 lt_cv_prog_compiler_c_o_F77=yes
13460 # SGI C++ compiler will create directory out/ii_files/ for
13461 # template instantiation
13462 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13463 $rm out/* && rmdir out
13469 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13470 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13473 hard_links="nottested"
13474 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13475 # do not overwrite the value of need_locks provided by the user
13476 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13477 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13482 ln conftest.a conftest.b 2>&5 || hard_links=no
13483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13484 echo "$as_me:$LINENO: result: $hard_links" >&5
13485 echo "${ECHO_T}$hard_links" >&6
13486 if test "$hard_links" = no; then
13487 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13488 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13495 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13496 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13499 allow_undefined_flag_F77=
13500 enable_shared_with_static_runtimes_F77=no
13502 archive_expsym_cmds_F77=
13503 old_archive_From_new_cmds_F77=
13504 old_archive_from_expsyms_cmds_F77=
13505 export_dynamic_flag_spec_F77=
13506 whole_archive_flag_spec_F77=
13507 thread_safe_flag_spec_F77=
13508 hardcode_libdir_flag_spec_F77=
13509 hardcode_libdir_flag_spec_ld_F77=
13510 hardcode_libdir_separator_F77=
13511 hardcode_direct_F77=no
13512 hardcode_minus_L_F77=no
13513 hardcode_shlibpath_var_F77=unsupported
13514 link_all_deplibs_F77=unknown
13515 hardcode_automatic_F77=no
13517 module_expsym_cmds_F77=
13518 always_export_symbols_F77=no
13519 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13520 # include_expsyms should be a list of space-separated symbols to be *always*
13521 # included in the symbol list
13522 include_expsyms_F77=
13523 # exclude_expsyms can be an extended regexp of symbols to exclude
13524 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13525 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13526 # as well as any symbol that contains `d'.
13527 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13528 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13529 # platforms (ab)use it in PIC code, but their linkers get confused if
13530 # the symbol is explicitly referenced. Since portable code cannot
13531 # rely on this symbol name, it's probably fine to never include it in
13532 # preloaded symbol tables.
13533 extract_expsyms_cmds=
13536 cygwin* | mingw* | pw32*)
13537 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13538 # When not using gcc, we currently assume that we are using
13539 # Microsoft Visual C++.
13540 if test "$GCC" != yes; then
13550 if test "$with_gnu_ld" = yes; then
13551 # If archive_cmds runs LD, not CC, wlarc should be empty
13554 # See if GNU ld supports shared libraries.
13556 aix3* | aix4* | aix5*)
13557 # On AIX/PPC, the GNU linker is very broken
13558 if test "$host_cpu" != ia64; then
13562 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13563 *** to be unable to reliably create shared libraries on AIX.
13564 *** Therefore, libtool is disabling shared libraries support. If you
13565 *** really care for shared libraries, you may want to modify your PATH
13566 *** so that a non-GNU linker is found, and then restart.
13573 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)'
13574 hardcode_libdir_flag_spec_F77='-L$libdir'
13575 hardcode_minus_L_F77=yes
13577 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13578 # that the semantics of dynamic libraries on AmigaOS, at least up
13579 # to version 4, is to share data among multiple programs linked
13580 # with the same dynamic library. Since this doesn't match the
13581 # behavior of shared libraries on other platforms, we can't use
13587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13588 allow_undefined_flag_F77=unsupported
13589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13590 # support --undefined. This deserves some investigation. FIXME
13591 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13597 cygwin* | mingw* | pw32*)
13598 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13599 # as there is no search path for DLLs.
13600 hardcode_libdir_flag_spec_F77='-L$libdir'
13601 allow_undefined_flag_F77=unsupported
13602 always_export_symbols_F77=no
13603 enable_shared_with_static_runtimes_F77=yes
13604 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13606 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13607 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13608 # If the export-symbols file already is a .def file (1st line
13609 # is EXPORTS), use it as is; otherwise, prepend...
13610 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13611 cp $export_symbols $output_objdir/$soname.def;
13613 echo EXPORTS > $output_objdir/$soname.def;
13614 cat $export_symbols >> $output_objdir/$soname.def;
13616 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13622 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13624 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13627 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13628 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13633 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13637 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13638 *** create shared libraries on Solaris systems. Therefore, libtool
13639 *** is disabling shared libraries support. We urge you to upgrade GNU
13640 *** binutils to release 2.9.1 or newer. Another option is to modify
13641 *** your PATH or compiler configuration so that the native linker is
13642 *** used, and then restart.
13645 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13646 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13647 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13654 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13656 hardcode_direct_F77=yes
13657 hardcode_shlibpath_var_F77=no
13661 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13662 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663 archive_cmds_F77="$tmp_archive_cmds"
13664 supports_anon_versioning=no
13665 case `$LD -v 2>/dev/null` in
13666 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13667 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13668 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13669 *\ 2.11.*) ;; # other 2.11 versions
13670 *) supports_anon_versioning=yes ;;
13672 if test $supports_anon_versioning = yes; then
13673 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13674 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13675 $echo "local: *; };" >> $output_objdir/$libname.ver~
13676 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13678 archive_expsym_cmds_F77="$tmp_archive_cmds"
13680 link_all_deplibs_F77=no
13687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13688 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13689 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13696 if test "$ld_shlibs_F77" = yes; then
13697 runpath_var=LD_RUN_PATH
13698 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13699 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13700 # ancient GNU ld didn't support --whole-archive et. al.
13701 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13702 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13704 whole_archive_flag_spec_F77=
13708 # PORTME fill in a description of your system's linker (not GNU ld)
13711 allow_undefined_flag_F77=unsupported
13712 always_export_symbols_F77=yes
13713 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'
13714 # Note: this linker hardcodes the directories in LIBPATH if there
13715 # are no directories specified by -L.
13716 hardcode_minus_L_F77=yes
13717 if test "$GCC" = yes && test -z "$link_static_flag"; then
13718 # Neither direct hardcoding nor static linking is supported with a
13720 hardcode_direct_F77=unsupported
13725 if test "$host_cpu" = ia64; then
13726 # On IA64, the linker does run time linking by default, so we don't
13727 # have to do anything special.
13728 aix_use_runtimelinking=no
13729 exp_sym_flag='-Bexport'
13732 # If we're using GNU nm, then we don't want the "-C" option.
13733 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13734 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13735 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'
13737 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'
13739 aix_use_runtimelinking=no
13741 # Test if we are trying to use run time linking or normal
13742 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13743 # need to do runtime linking.
13744 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13745 for ld_flag in $LDFLAGS; do
13746 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13747 aix_use_runtimelinking=yes
13753 exp_sym_flag='-bexport'
13754 no_entry_flag='-bnoentry'
13757 # When large executables or shared objects are built, AIX ld can
13758 # have problems creating the table of contents. If linking a library
13759 # or program results in "error TOC overflow" add -mminimal-toc to
13760 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13761 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13763 archive_cmds_F77=''
13764 hardcode_direct_F77=yes
13765 hardcode_libdir_separator_F77=':'
13766 link_all_deplibs_F77=yes
13768 if test "$GCC" = yes; then
13769 case $host_os in aix4.012|aix4.012.*)
13770 # We only want to do this on AIX 4.2 and lower, the check
13771 # below for broken collect2 doesn't work under 4.3+
13772 collect2name=`${CC} -print-prog-name=collect2`
13773 if test -f "$collect2name" && \
13774 strings "$collect2name" | grep resolve_lib_name >/dev/null
13776 # We have reworked collect2
13777 hardcode_direct_F77=yes
13779 # We have old collect2
13780 hardcode_direct_F77=unsupported
13781 # It fails to find uninstalled libraries when the uninstalled
13782 # path is not listed in the libpath. Setting hardcode_minus_L
13783 # to unsupported forces relinking
13784 hardcode_minus_L_F77=yes
13785 hardcode_libdir_flag_spec_F77='-L$libdir'
13786 hardcode_libdir_separator_F77=
13789 shared_flag='-shared'
13792 if test "$host_cpu" = ia64; then
13793 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13794 # chokes on -Wl,-G. The following line is correct:
13797 if test "$aix_use_runtimelinking" = yes; then
13798 shared_flag='${wl}-G'
13800 shared_flag='${wl}-bM:SRE'
13805 # It seems that -bexpall does not export symbols beginning with
13806 # underscore (_), so it is better to generate a list of symbols to export.
13807 always_export_symbols_F77=yes
13808 if test "$aix_use_runtimelinking" = yes; then
13809 # Warning - without using the other runtime loading flags (-brtl),
13810 # -berok will link without error, but may produce a broken library.
13811 allow_undefined_flag_F77='-berok'
13812 # Determine the default libpath from the value encoded in an empty executable.
13813 cat >conftest.$ac_ext <<_ACEOF
13818 rm -f conftest.$ac_objext conftest$ac_exeext
13819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13820 (eval $ac_link) 2>conftest.er1
13822 grep -v '^ *+' conftest.er1 >conftest.err
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } &&
13827 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; } &&
13833 { ac_try='test -s conftest$ac_exeext'
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835 (eval $ac_try) 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13840 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13842 # Check for a 64-bit object if we didn't find anything.
13843 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; }
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13850 rm -f conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13852 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13854 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13855 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13857 if test "$host_cpu" = ia64; then
13858 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13859 allow_undefined_flag_F77="-z nodefs"
13860 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13862 # Determine the default libpath from the value encoded in an empty executable.
13863 cat >conftest.$ac_ext <<_ACEOF
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870 (eval $ac_link) 2>conftest.er1
13872 grep -v '^ *+' conftest.er1 >conftest.err
13874 cat conftest.err >&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } &&
13877 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; } &&
13883 { ac_try='test -s conftest$ac_exeext'
13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; }; then
13890 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13892 # Check for a 64-bit object if we didn't find anything.
13893 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; }
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13900 rm -f conftest.err conftest.$ac_objext \
13901 conftest$ac_exeext conftest.$ac_ext
13902 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13904 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13905 # Warning - without using the other run time loading flags,
13906 # -berok will link without error, but may produce a broken library.
13907 no_undefined_flag_F77=' ${wl}-bernotok'
13908 allow_undefined_flag_F77=' ${wl}-berok'
13909 # -bexpall does not export symbols beginning with underscore (_)
13910 always_export_symbols_F77=yes
13911 # Exported symbols can be pulled into shared objects from archives
13912 whole_archive_flag_spec_F77=' '
13913 archive_cmds_need_lc_F77=yes
13914 # This is similar to how AIX traditionally builds it's shared libraries.
13915 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13921 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)'
13922 hardcode_libdir_flag_spec_F77='-L$libdir'
13923 hardcode_minus_L_F77=yes
13924 # see comment about different semantics on the GNU ld section
13929 export_dynamic_flag_spec_F77=-rdynamic
13932 cygwin* | mingw* | pw32*)
13933 # When not using gcc, we currently assume that we are using
13934 # Microsoft Visual C++.
13935 # hardcode_libdir_flag_spec is actually meaningless, as there is
13936 # no search path for DLLs.
13937 hardcode_libdir_flag_spec_F77=' '
13938 allow_undefined_flag_F77=unsupported
13939 # Tell ltmain to make .lib files, not .a files.
13941 # Tell ltmain to make .dll files, not .so files.
13943 # FIXME: Setting linknames here is a bad hack.
13944 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13945 # The linker will automatically build a .lib file if we build a DLL.
13946 old_archive_From_new_cmds_F77='true'
13947 # FIXME: Should let the user specify the lib program.
13948 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13949 fix_srcfile_path='`cygpath -w "$srcfile"`'
13950 enable_shared_with_static_runtimes_F77=yes
13953 darwin* | rhapsody*)
13954 if test "$GXX" = yes ; then
13955 archive_cmds_need_lc_F77=no
13957 rhapsody* | darwin1.[012])
13958 allow_undefined_flag_F77='-undefined suppress'
13961 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13962 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13964 case ${MACOSX_DEPLOYMENT_TARGET} in
13966 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13969 allow_undefined_flag_F77='-undefined dynamic_lookup'
13975 lt_int_apple_cc_single_mod=no
13976 output_verbose_link_cmd='echo'
13977 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13978 lt_int_apple_cc_single_mod=yes
13980 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13981 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13983 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13985 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13986 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13987 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13988 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13990 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13992 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}'
13993 hardcode_direct_F77=no
13994 hardcode_automatic_F77=yes
13995 hardcode_shlibpath_var_F77=unsupported
13996 whole_archive_flag_spec_F77='-all_load $convenience'
13997 link_all_deplibs_F77=yes
14004 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14005 hardcode_libdir_flag_spec_F77='-L$libdir'
14006 hardcode_shlibpath_var_F77=no
14013 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14014 # support. Future versions do this automatically, but an explicit c++rt0.o
14015 # does not break anything, and helps significantly (at the cost of a little
14018 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14019 hardcode_libdir_flag_spec_F77='-R$libdir'
14020 hardcode_direct_F77=yes
14021 hardcode_shlibpath_var_F77=no
14024 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14026 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14027 hardcode_direct_F77=yes
14028 hardcode_minus_L_F77=yes
14029 hardcode_shlibpath_var_F77=no
14032 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14033 freebsd* | kfreebsd*-gnu)
14034 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14035 hardcode_libdir_flag_spec_F77='-R$libdir'
14036 hardcode_direct_F77=yes
14037 hardcode_shlibpath_var_F77=no
14041 if test "$GCC" = yes; then
14042 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'
14044 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'
14046 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14047 hardcode_libdir_separator_F77=:
14048 hardcode_direct_F77=yes
14050 # hardcode_minus_L: Not really in the search PATH,
14051 # but as the default location of the library.
14052 hardcode_minus_L_F77=yes
14053 export_dynamic_flag_spec_F77='${wl}-E'
14057 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14058 case "$host_cpu" in
14060 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14063 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14067 case "$host_cpu" in
14069 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14072 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14076 if test "$with_gnu_ld" = no; then
14077 case "$host_cpu" in
14079 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14080 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14081 hardcode_libdir_separator_F77=:
14082 hardcode_direct_F77=no
14083 hardcode_shlibpath_var_F77=no
14086 hardcode_libdir_flag_spec_F77='-L$libdir'
14087 hardcode_direct_F77=no
14088 hardcode_shlibpath_var_F77=no
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
14095 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14096 hardcode_libdir_separator_F77=:
14097 hardcode_direct_F77=yes
14098 export_dynamic_flag_spec_F77='${wl}-E'
14100 # hardcode_minus_L: Not really in the search PATH,
14101 # but as the default location of the library.
14102 hardcode_minus_L_F77=yes
14108 irix5* | irix6* | nonstopux*)
14109 if test "$GCC" = yes; then
14110 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'
14112 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'
14113 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14115 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14116 hardcode_libdir_separator_F77=:
14117 link_all_deplibs_F77=yes
14120 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14122 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14124 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14126 hardcode_libdir_flag_spec_F77='-R$libdir'
14127 hardcode_direct_F77=yes
14128 hardcode_shlibpath_var_F77=no
14132 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14133 hardcode_direct_F77=yes
14134 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14135 hardcode_libdir_separator_F77=:
14136 hardcode_shlibpath_var_F77=no
14140 hardcode_direct_F77=yes
14141 hardcode_shlibpath_var_F77=no
14142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14143 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14144 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14145 export_dynamic_flag_spec_F77='${wl}-E'
14148 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14149 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14150 hardcode_libdir_flag_spec_F77='-R$libdir'
14153 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14154 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14161 hardcode_libdir_flag_spec_F77='-L$libdir'
14162 hardcode_minus_L_F77=yes
14163 allow_undefined_flag_F77=unsupported
14164 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'
14165 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14169 if test "$GCC" = yes; then
14170 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14171 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'
14173 allow_undefined_flag_F77=' -expect_unresolved \*'
14174 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'
14176 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14177 hardcode_libdir_separator_F77=:
14180 osf4* | osf5*) # as osf3* with the addition of -msym flag
14181 if test "$GCC" = yes; then
14182 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14183 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'
14184 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14186 allow_undefined_flag_F77=' -expect_unresolved \*'
14187 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'
14188 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~
14189 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14191 # Both c and cxx compiler support -rpath directly
14192 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14194 hardcode_libdir_separator_F77=:
14198 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14199 hardcode_shlibpath_var_F77=no
14200 export_dynamic_flag_spec_F77='${wl}-Bexport'
14201 runpath_var=LD_RUN_PATH
14202 hardcode_runpath_var=yes
14206 no_undefined_flag_F77=' -z text'
14207 if test "$GCC" = yes; then
14208 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14209 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14210 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14212 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14213 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14214 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14216 hardcode_libdir_flag_spec_F77='-R$libdir'
14217 hardcode_shlibpath_var_F77=no
14219 solaris2.[0-5] | solaris2.[0-5].*) ;;
14220 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14221 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14223 link_all_deplibs_F77=yes
14227 if test "x$host_vendor" = xsequent; then
14228 # Use $CC to link under sequent, because it throws in some extra .o
14229 # files that make .init and .fini sections work.
14230 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14232 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14234 hardcode_libdir_flag_spec_F77='-L$libdir'
14235 hardcode_direct_F77=yes
14236 hardcode_minus_L_F77=yes
14237 hardcode_shlibpath_var_F77=no
14241 case $host_vendor in
14243 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14244 hardcode_direct_F77=yes # is this really true???
14247 ## LD is ld it makes a PLAMLIB
14248 ## CC just makes a GrossModule.
14249 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14250 reload_cmds_F77='$CC -r -o $output$reload_objs'
14251 hardcode_direct_F77=no
14254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14255 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14258 runpath_var='LD_RUN_PATH'
14259 hardcode_shlibpath_var_F77=no
14263 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14264 hardcode_shlibpath_var_F77=no
14265 export_dynamic_flag_spec_F77='-Bexport'
14269 if test -d /usr/nec; then
14270 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14271 hardcode_shlibpath_var_F77=no
14272 runpath_var=LD_RUN_PATH
14273 hardcode_runpath_var=yes
14279 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14280 hardcode_direct_F77=yes
14281 hardcode_minus_L_F77=no
14282 hardcode_shlibpath_var_F77=no
14283 hardcode_runpath_var=yes
14284 runpath_var=LD_RUN_PATH
14287 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14288 no_undefined_flag_F77='${wl}-z ${wl}text'
14289 if test "$GCC" = yes; then
14290 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14292 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14294 runpath_var='LD_RUN_PATH'
14295 hardcode_shlibpath_var_F77=no
14299 no_undefined_flag_F77=' -z text'
14300 # $CC -shared without GNU ld will not create a library from C++
14301 # object files and a static libstdc++, better avoid it by now
14302 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14303 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14305 hardcode_libdir_flag_spec_F77=
14306 hardcode_shlibpath_var_F77=no
14307 runpath_var='LD_RUN_PATH'
14311 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14312 hardcode_libdir_flag_spec_F77='-L$libdir'
14313 hardcode_shlibpath_var_F77=no
14322 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14323 echo "${ECHO_T}$ld_shlibs_F77" >&6
14324 test "$ld_shlibs_F77" = no && can_build_shared=no
14326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14327 if test "$GCC" = yes; then
14328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14332 # Do we need to explicitly link libc?
14334 case "x$archive_cmds_need_lc_F77" in
14336 # Assume -lc should be added
14337 archive_cmds_need_lc_F77=yes
14339 if test "$enable_shared" = yes && test "$GCC" = yes; then
14340 case $archive_cmds_F77 in
14342 # FIXME: we may have to deal with multi-command sequences.
14345 # Test whether the compiler implicitly links with -lc since on some
14346 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14347 # to ld, don't add -lc before -lgcc.
14348 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14349 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14354 (eval $ac_compile) 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); } 2>conftest.err; then
14360 libobjs=conftest.$ac_objext
14362 wl=$lt_prog_compiler_wl_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 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14525 dlpath=$dir/\$dldll~
14527 shlibpath_overrides_runpath=yes
14531 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14532 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14533 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14536 # MinGW DLLs use traditional 'lib' prefix
14537 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14538 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14539 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14540 # It is most probably a Windows format PATH printed by
14541 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14542 # path with ; separators, and with drive letters. We can handle the
14543 # drive letters (cygwin fileutils understands them), so leave them,
14544 # especially as we might pass files found there to a mingw objdump,
14545 # which wouldn't understand a cygwinified path. Ahh.
14546 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14552 # pw32 DLLs use 'pw' prefix rather than 'lib'
14553 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14559 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14562 dynamic_linker='Win32 ld.exe'
14563 # FIXME: first we should search . and the directory the executable is in
14567 darwin* | rhapsody*)
14568 dynamic_linker="$host_os dyld"
14569 version_type=darwin
14572 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14573 soname_spec='${libname}${release}${major}$shared_ext'
14574 shlibpath_overrides_runpath=yes
14575 shlibpath_var=DYLD_LIBRARY_PATH
14576 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14577 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14578 if test "$GCC" = yes; then
14579 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"`
14581 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14583 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 shlibpath_var=LD_LIBRARY_PATH
14603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14604 soname_spec='${libname}${release}${shared_ext}$major'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=no
14607 hardcode_into_libs=yes
14608 dynamic_linker='GNU ld.so'
14612 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14613 version_type=freebsd-$objformat
14614 case $version_type in
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14625 shlibpath_var=LD_LIBRARY_PATH
14628 shlibpath_overrides_runpath=yes
14630 freebsd3.01* | freebsdelf3.01*)
14631 shlibpath_overrides_runpath=yes
14632 hardcode_into_libs=yes
14635 shlibpath_overrides_runpath=no
14636 hardcode_into_libs=yes
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14646 soname_spec='${libname}${release}${shared_ext}$major'
14647 shlibpath_var=LD_LIBRARY_PATH
14648 hardcode_into_libs=yes
14651 hpux9* | hpux10* | hpux11*)
14652 # Give a soname corresponding to the major version so that dld.sl refuses to
14653 # link against other versions.
14657 case "$host_cpu" in
14660 hardcode_into_libs=yes
14661 dynamic_linker="$host_os dld.so"
14662 shlibpath_var=LD_LIBRARY_PATH
14663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 if test "X$HPUX_IA64_MODE" = X32; then
14667 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14675 hardcode_into_libs=yes
14676 dynamic_linker="$host_os dld.sl"
14677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14686 dynamic_linker="$host_os dld.sl"
14687 shlibpath_var=SHLIB_PATH
14688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14693 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14694 postinstall_cmds='chmod 555 $lib'
14697 irix5* | irix6* | nonstopux*)
14699 nonstopux*) version_type=nonstopux ;;
14701 if test "$lt_cv_prog_gnu_ld" = yes; then
14709 soname_spec='${libname}${release}${shared_ext}$major'
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14712 irix5* | nonstopux*)
14713 libsuff= shlibsuff=
14716 case $LD in # libtool.m4 will add one of these switches to LD
14717 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14718 libsuff= shlibsuff= libmagic=32-bit;;
14719 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14720 libsuff=32 shlibsuff=N32 libmagic=N32;;
14721 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14722 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14723 *) libsuff= shlibsuff= libmagic=never-match;;
14727 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14728 shlibpath_overrides_runpath=no
14729 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14730 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14731 hardcode_into_libs=yes
14734 # No shared lib support for Linux oldld, aout, or coff.
14735 linux*oldld* | linux*aout* | linux*coff*)
14739 # This must be Linux ELF.
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 shlibpath_overrides_runpath=no
14749 # This implies no fast_install, which is unacceptable.
14750 # Some rework will be needed to allow for fast_install
14751 # before this can be enabled.
14752 hardcode_into_libs=yes
14754 # Append ld.so.conf contents to the search path
14755 if test -f /etc/ld.so.conf; then
14756 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14757 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14760 # We used to test for /lib/ld.so.1 and disable shared libraries on
14761 # powerpc, because MkLinux only supported shared libraries with the
14762 # GNU dynamic linker. Since this was broken with cross compilers,
14763 # most powerpc-linux boxes support dynamic linking these days and
14764 # people can always --disable-shared, the test was removed, and we
14765 # assume the GNU/Linux dynamic linker is in use.
14766 dynamic_linker='GNU/Linux ld.so'
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14774 soname_spec='${libname}${release}${shared_ext}$major'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=no
14777 hardcode_into_libs=yes
14778 dynamic_linker='NetBSD ld.elf_so'
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 shlibpath_overrides_runpath=no
14789 hardcode_into_libs=yes
14790 dynamic_linker='GNU ld.so'
14797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14800 dynamic_linker='NetBSD (a.out) ld.so'
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 dynamic_linker='NetBSD ld.elf_so'
14806 shlibpath_var=LD_LIBRARY_PATH
14807 shlibpath_overrides_runpath=yes
14808 hardcode_into_libs=yes
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14814 shlibpath_var=LD_LIBRARY_PATH
14815 shlibpath_overrides_runpath=yes
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823 soname_spec='${libname}${release}${shared_ext}$major'
14824 shlibpath_var=LD_LIBRARY_PATH
14825 shlibpath_overrides_runpath=yes
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14834 shlibpath_var=LD_LIBRARY_PATH
14835 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14837 openbsd2.[89] | openbsd2.[89].*)
14838 shlibpath_overrides_runpath=no
14841 shlibpath_overrides_runpath=yes
14845 shlibpath_overrides_runpath=yes
14850 libname_spec='$name'
14853 library_names_spec='$libname${shared_ext} $libname.a'
14854 dynamic_linker='OS/2 ld.exe'
14855 shlibpath_var=LIBPATH
14858 osf3* | osf4* | osf5*)
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14866 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14871 soname_spec='${libname}${release}${shared_ext}$major'
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 shlibpath_var=LD_LIBRARY_PATH
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 shlibpath_overrides_runpath=yes
14884 hardcode_into_libs=yes
14885 # ldd complains unless libraries are executable
14886 postinstall_cmds='chmod +x $lib'
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14892 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 shlibpath_overrides_runpath=yes
14895 if test "$with_gnu_ld" = yes; then
14901 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 case $host_vendor in
14908 shlibpath_overrides_runpath=no
14910 export_dynamic_flag_spec='${wl}-Blargedynsym'
14911 runpath_var=LD_RUN_PATH
14919 shlibpath_overrides_runpath=no
14920 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14926 if test -d /usr/nec ;then
14928 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14929 soname_spec='$libname${shared_ext}.$major'
14930 shlibpath_var=LD_LIBRARY_PATH
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 shlibpath_var=LD_LIBRARY_PATH
14945 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14946 echo "${ECHO_T}$dynamic_linker" >&6
14947 test "$dynamic_linker" = no && can_build_shared=no
14949 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14950 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14951 hardcode_action_F77=
14952 if test -n "$hardcode_libdir_flag_spec_F77" || \
14953 test -n "$runpath_var F77" || \
14954 test "X$hardcode_automatic_F77"="Xyes" ; then
14956 # We can hardcode non-existant directories.
14957 if test "$hardcode_direct_F77" != no &&
14958 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14959 # have to relink, otherwise we might link with an installed library
14960 # when we should be linking with a yet-to-be-installed one
14961 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14962 test "$hardcode_minus_L_F77" != no; then
14963 # Linking always hardcodes the temporary library directory.
14964 hardcode_action_F77=relink
14966 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14967 hardcode_action_F77=immediate
14970 # We cannot hardcode anything, or else we can only hardcode existing
14972 hardcode_action_F77=unsupported
14974 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14975 echo "${ECHO_T}$hardcode_action_F77" >&6
14977 if test "$hardcode_action_F77" = relink; then
14978 # Fast installation is not supported
14979 enable_fast_install=no
14980 elif test "$shlibpath_overrides_runpath" = yes ||
14981 test "$enable_shared" = no; then
14982 # Fast installation is not necessary
14983 enable_fast_install=needless
14988 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14989 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14990 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14991 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14992 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14993 echo "$as_me:$LINENO: result: yes" >&5
14994 echo "${ECHO_T}yes" >&6
14996 # FIXME - insert some real tests, host_os isn't really good enough
14999 if test -n "$STRIP" ; then
15000 striplib="$STRIP -x"
15001 echo "$as_me:$LINENO: result: yes" >&5
15002 echo "${ECHO_T}yes" >&6
15004 echo "$as_me:$LINENO: result: no" >&5
15005 echo "${ECHO_T}no" >&6
15009 echo "$as_me:$LINENO: result: no" >&5
15010 echo "${ECHO_T}no" >&6
15017 # The else clause should only fire when bootstrapping the
15018 # libtool distribution, otherwise you forgot to ship ltmain.sh
15019 # with your package, and you will get complaints that there are
15020 # no rules to generate ltmain.sh.
15021 if test -f "$ltmain"; then
15022 # See if we are running on zsh, and set the options which allow our commands through
15023 # without removal of \ escapes.
15024 if test -n "${ZSH_VERSION+set}" ; then
15025 setopt NO_GLOB_SUBST
15027 # Now quote all the things that may contain metacharacters while being
15028 # careful not to overquote the AC_SUBSTed values. We take copies of the
15029 # variables and quote the copies for generation of the libtool script.
15030 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15032 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15033 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15034 deplibs_check_method reload_flag reload_cmds need_locks \
15035 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15036 lt_cv_sys_global_symbol_to_c_name_address \
15037 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15038 old_postinstall_cmds old_postuninstall_cmds \
15042 lt_prog_compiler_wl_F77 \
15043 lt_prog_compiler_pic_F77 \
15044 lt_prog_compiler_static_F77 \
15045 lt_prog_compiler_no_builtin_flag_F77 \
15046 export_dynamic_flag_spec_F77 \
15047 thread_safe_flag_spec_F77 \
15048 whole_archive_flag_spec_F77 \
15049 enable_shared_with_static_runtimes_F77 \
15050 old_archive_cmds_F77 \
15051 old_archive_from_new_cmds_F77 \
15052 predep_objects_F77 \
15053 postdep_objects_F77 \
15056 compiler_lib_search_path_F77 \
15058 archive_expsym_cmds_F77 \
15059 postinstall_cmds_F77 \
15060 postuninstall_cmds_F77 \
15061 old_archive_from_expsyms_cmds_F77 \
15062 allow_undefined_flag_F77 \
15063 no_undefined_flag_F77 \
15064 export_symbols_cmds_F77 \
15065 hardcode_libdir_flag_spec_F77 \
15066 hardcode_libdir_flag_spec_ld_F77 \
15067 hardcode_libdir_separator_F77 \
15068 hardcode_automatic_F77 \
15070 module_expsym_cmds_F77 \
15071 lt_cv_prog_compiler_c_o_F77 \
15072 exclude_expsyms_F77 \
15073 include_expsyms_F77; do
15076 old_archive_cmds_F77 | \
15077 old_archive_from_new_cmds_F77 | \
15078 archive_cmds_F77 | \
15079 archive_expsym_cmds_F77 | \
15080 module_cmds_F77 | \
15081 module_expsym_cmds_F77 | \
15082 old_archive_from_expsyms_cmds_F77 | \
15083 export_symbols_cmds_F77 | \
15084 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15085 postinstall_cmds | postuninstall_cmds | \
15086 old_postinstall_cmds | old_postuninstall_cmds | \
15087 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15088 # Double-quote double-evaled strings.
15089 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15092 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15098 *'\$0 --fallback-echo"')
15099 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15105 cat <<__EOF__ >> "$cfgfile"
15106 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15110 # Shell to use when invoking shell scripts.
15113 # Whether or not to build shared libraries.
15114 build_libtool_libs=$enable_shared
15116 # Whether or not to build static libraries.
15117 build_old_libs=$enable_static
15119 # Whether or not to add -lc for building shared libraries.
15120 build_libtool_need_lc=$archive_cmds_need_lc_F77
15122 # Whether or not to disallow shared libs when runtime libs are static
15123 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15125 # Whether or not to optimize for fast installation.
15126 fast_install=$enable_fast_install
15129 host_alias=$host_alias
15132 # An echo program that does not interpret backslashes.
15137 AR_FLAGS=$lt_AR_FLAGS
15142 # A language-specific compiler.
15143 CC=$lt_compiler_F77
15145 # Is the compiler the GNU C compiler?
15151 # The linker used to build libraries.
15154 # Whether we need hard or soft links.
15157 # A BSD-compatible nm program.
15160 # A symbol stripping program
15163 # Used to examine libraries when file_magic_cmd begins "file"
15164 MAGIC_CMD=$MAGIC_CMD
15166 # Used on cygwin: DLL creation program.
15169 # Used on cygwin: object dumper.
15172 # Used on cygwin: assembler.
15175 # The name of the directory that contains temporary libtool files.
15178 # How to create reloadable object files.
15179 reload_flag=$lt_reload_flag
15180 reload_cmds=$lt_reload_cmds
15182 # How to pass a linker flag through the compiler.
15183 wl=$lt_lt_prog_compiler_wl_F77
15185 # Object file suffix (normally "o").
15186 objext="$ac_objext"
15188 # Old archive suffix (normally "a").
15191 # Shared library suffix (normally ".so").
15192 shrext_cmds='$shrext_cmds'
15194 # Executable file suffix (normally "").
15197 # Additional compiler flags for building library objects.
15198 pic_flag=$lt_lt_prog_compiler_pic_F77
15201 # What is the maximum length of a command?
15202 max_cmd_len=$lt_cv_sys_max_cmd_len
15204 # Does compiler simultaneously support -c and -o options?
15205 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15207 # Must we lock files when doing compilation ?
15208 need_locks=$lt_need_locks
15210 # Do we need the lib prefix for modules?
15211 need_lib_prefix=$need_lib_prefix
15213 # Do we need a version for libraries?
15214 need_version=$need_version
15216 # Whether dlopen is supported.
15217 dlopen_support=$enable_dlopen
15219 # Whether dlopen of programs is supported.
15220 dlopen_self=$enable_dlopen_self
15222 # Whether dlopen of statically linked programs is supported.
15223 dlopen_self_static=$enable_dlopen_self_static
15225 # Compiler flag to prevent dynamic linking.
15226 link_static_flag=$lt_lt_prog_compiler_static_F77
15228 # Compiler flag to turn off builtin functions.
15229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15231 # Compiler flag to allow reflexive dlopens.
15232 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15234 # Compiler flag to generate shared objects directly from archives.
15235 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15237 # Compiler flag to generate thread-safe objects.
15238 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15240 # Library versioning type.
15241 version_type=$version_type
15243 # Format of library name prefix.
15244 libname_spec=$lt_libname_spec
15246 # List of archive names. First name is the real one, the rest are links.
15247 # The last name is the one that the linker finds with -lNAME.
15248 library_names_spec=$lt_library_names_spec
15250 # The coded name of the library, if different from the real name.
15251 soname_spec=$lt_soname_spec
15253 # Commands used to build and install an old-style archive.
15255 old_archive_cmds=$lt_old_archive_cmds_F77
15256 old_postinstall_cmds=$lt_old_postinstall_cmds
15257 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15259 # Create an old-style archive from a shared archive.
15260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15262 # Create a temporary old-style archive to link instead of a shared archive.
15263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15265 # Commands used to build and install a shared archive.
15266 archive_cmds=$lt_archive_cmds_F77
15267 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15268 postinstall_cmds=$lt_postinstall_cmds
15269 postuninstall_cmds=$lt_postuninstall_cmds
15271 # Commands used to build a loadable module (assumed same as above if empty)
15272 module_cmds=$lt_module_cmds_F77
15273 module_expsym_cmds=$lt_module_expsym_cmds_F77
15275 # Commands to strip libraries.
15276 old_striplib=$lt_old_striplib
15277 striplib=$lt_striplib
15279 # Dependencies to place before the objects being linked to create a
15281 predep_objects=$lt_predep_objects_F77
15283 # Dependencies to place after the objects being linked to create a
15285 postdep_objects=$lt_postdep_objects_F77
15287 # Dependencies to place before the objects being linked to create a
15289 predeps=$lt_predeps_F77
15291 # Dependencies to place after the objects being linked to create a
15293 postdeps=$lt_postdeps_F77
15295 # The library search path used internally by the compiler when linking
15296 # a shared library.
15297 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15299 # Method to check whether dependent libraries are shared objects.
15300 deplibs_check_method=$lt_deplibs_check_method
15302 # Command to use when deplibs_check_method == file_magic.
15303 file_magic_cmd=$lt_file_magic_cmd
15305 # Flag that allows shared libraries with undefined symbols to be built.
15306 allow_undefined_flag=$lt_allow_undefined_flag_F77
15308 # Flag that forces no undefined symbols.
15309 no_undefined_flag=$lt_no_undefined_flag_F77
15311 # Commands used to finish a libtool library installation in a directory.
15312 finish_cmds=$lt_finish_cmds
15314 # Same as above, but a single script fragment to be evaled but not shown.
15315 finish_eval=$lt_finish_eval
15317 # Take the output of nm and produce a listing of raw symbols and C names.
15318 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15320 # Transform the output of nm in a proper C declaration
15321 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15323 # Transform the output of nm in a C name address pair
15324 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15326 # This is the shared library runtime path variable.
15327 runpath_var=$runpath_var
15329 # This is the shared library path variable.
15330 shlibpath_var=$shlibpath_var
15332 # Is shlibpath searched before the hard-coded library search path?
15333 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15335 # How to hardcode a shared library path into an executable.
15336 hardcode_action=$hardcode_action_F77
15338 # Whether we should hardcode library paths into libraries.
15339 hardcode_into_libs=$hardcode_into_libs
15341 # Flag to hardcode \$libdir into a binary during linking.
15342 # This must work even if \$libdir does not exist.
15343 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15345 # If ld is used when linking, flag to hardcode \$libdir into
15346 # a binary during linking. This must work even if \$libdir does
15348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15350 # Whether we need a single -rpath flag with a separated argument.
15351 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15353 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15354 # resulting binary.
15355 hardcode_direct=$hardcode_direct_F77
15357 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15358 # resulting binary.
15359 hardcode_minus_L=$hardcode_minus_L_F77
15361 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15362 # the resulting binary.
15363 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15365 # Set to yes if building a shared library automatically hardcodes DIR into the library
15366 # and all subsequent libraries and executables linked against it.
15367 hardcode_automatic=$hardcode_automatic_F77
15369 # Variables whose values should be saved in libtool wrapper scripts and
15370 # restored at relink time.
15371 variables_saved_for_relink="$variables_saved_for_relink"
15373 # Whether libtool must link a program against all its dependency libraries.
15374 link_all_deplibs=$link_all_deplibs_F77
15376 # Compile-time system search path for libraries
15377 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15379 # Run-time system search path for libraries
15380 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15382 # Fix the shell variable \$srcfile for the compiler.
15383 fix_srcfile_path="$fix_srcfile_path_F77"
15385 # Set to yes if exported symbols are required.
15386 always_export_symbols=$always_export_symbols_F77
15388 # The commands to list exported symbols.
15389 export_symbols_cmds=$lt_export_symbols_cmds_F77
15391 # The commands to extract the exported symbol list from a shared archive.
15392 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15394 # Symbols that should not be listed in the preloaded symbols.
15395 exclude_expsyms=$lt_exclude_expsyms_F77
15397 # Symbols that must always be exported.
15398 include_expsyms=$lt_include_expsyms_F77
15400 # ### END LIBTOOL TAG CONFIG: $tagname
15406 # If there is no Makefile yet, we rely on a make rule to execute
15407 # `config.status --recheck' to rerun these tests and create the
15408 # libtool script then.
15409 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15410 if test -f "$ltmain_in"; then
15411 test -f Makefile && make "$ltmain"
15417 ac_cpp='$CPP $CPPFLAGS'
15418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15430 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15434 # Source file extension for Java test sources.
15437 # Object file extension for compiled Java test sources.
15441 # Code to be used in simple compile tests
15442 lt_simple_compile_test_code="class foo {}\n"
15444 # Code to be used in simple link tests
15445 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15447 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15449 # If no C compiler was specified, use CC.
15452 # Allow CC to be a program name with arguments.
15456 # Allow CC to be a program name with arguments.
15462 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15463 archive_cmds_need_lc_GCJ=no
15466 lt_prog_compiler_no_builtin_flag_GCJ=
15468 if test "$GCC" = yes; then
15469 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15472 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15473 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15474 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 lt_cv_prog_compiler_rtti_exceptions=no
15478 ac_outfile=conftest.$ac_objext
15479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15480 lt_compiler_flag="-fno-rtti -fno-exceptions"
15481 # Insert the option either (1) after the last *FLAGS variable, or
15482 # (2) before a word containing "conftest.", or (3) at the end.
15483 # Note that $ac_compile itself does not contain backslashes and begins
15484 # with a dollar sign (not a hyphen), so the echo should work correctly.
15485 # The option is referenced via a variable to avoid confusing sed.
15486 lt_compile=`echo "$ac_compile" | $SED \
15487 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15489 -e 's:$: $lt_compiler_flag:'`
15490 (eval echo "\"\$as_me:15490: $lt_compile\"" >&5)
15491 (eval "$lt_compile" 2>conftest.err)
15493 cat conftest.err >&5
15494 echo "$as_me:15494: \$? = $ac_status" >&5
15495 if (exit $ac_status) && test -s "$ac_outfile"; then
15496 # The compiler can only warn and ignore the option if not recognized
15497 # So say no if there are warnings
15498 if test ! -s conftest.err; then
15499 lt_cv_prog_compiler_rtti_exceptions=yes
15505 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15506 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15508 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15509 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15516 lt_prog_compiler_wl_GCJ=
15517 lt_prog_compiler_pic_GCJ=
15518 lt_prog_compiler_static_GCJ=
15520 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15521 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15523 if test "$GCC" = yes; then
15524 lt_prog_compiler_wl_GCJ='-Wl,'
15525 lt_prog_compiler_static_GCJ='-static'
15529 # All AIX code is PIC.
15530 if test "$host_cpu" = ia64; then
15531 # AIX 5 now supports IA64 processor
15532 lt_prog_compiler_static_GCJ='-Bstatic'
15537 # FIXME: we need at least 68020 code to build shared libraries, but
15538 # adding the `-m68020' flag to GCC prevents building anything better,
15540 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15543 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15544 # PIC is the default for these OSes.
15547 mingw* | pw32* | os2*)
15548 # This hack is so that the source file can tell whether it is being
15549 # built for inclusion in a dll (and should export symbols for example).
15550 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15553 darwin* | rhapsody*)
15554 # PIC is the default on this platform
15555 # Common symbols not allowed in MH_DYLIB files
15556 lt_prog_compiler_pic_GCJ='-fno-common'
15560 # Just because we use GCC doesn't mean we suddenly get shared libraries
15561 # on systems that don't support them.
15562 lt_prog_compiler_can_build_shared_GCJ=no
15567 if test -d /usr/nec; then
15568 lt_prog_compiler_pic_GCJ=-Kconform_pic
15573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15574 # not for PA HP-UX.
15575 case "$host_cpu" in
15580 lt_prog_compiler_pic_GCJ='-fPIC'
15586 lt_prog_compiler_pic_GCJ='-fPIC'
15590 # PORTME Check for flag to pass linker flags through the system compiler.
15593 lt_prog_compiler_wl_GCJ='-Wl,'
15594 if test "$host_cpu" = ia64; then
15595 # AIX 5 now supports IA64 processor
15596 lt_prog_compiler_static_GCJ='-Bstatic'
15598 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15602 mingw* | pw32* | os2*)
15603 # This hack is so that the source file can tell whether it is being
15604 # built for inclusion in a dll (and should export symbols for example).
15605 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15608 hpux9* | hpux10* | hpux11*)
15609 lt_prog_compiler_wl_GCJ='-Wl,'
15610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15611 # not for PA HP-UX.
15612 case "$host_cpu" in
15617 lt_prog_compiler_pic_GCJ='+Z'
15620 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15621 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15624 irix5* | irix6* | nonstopux*)
15625 lt_prog_compiler_wl_GCJ='-Wl,'
15626 # PIC (with -KPIC) is the default.
15627 lt_prog_compiler_static_GCJ='-non_shared'
15631 lt_prog_compiler_pic_GCJ='-KPIC'
15632 lt_prog_compiler_static_GCJ='-Bstatic'
15638 lt_prog_compiler_wl_GCJ='-Wl,'
15639 lt_prog_compiler_pic_GCJ='-KPIC'
15640 lt_prog_compiler_static_GCJ='-static'
15643 lt_prog_compiler_wl_GCJ='-Wl,'
15644 # All Alpha code is PIC.
15645 lt_prog_compiler_static_GCJ='-non_shared'
15650 osf3* | osf4* | osf5*)
15651 lt_prog_compiler_wl_GCJ='-Wl,'
15652 # All OSF/1 code is PIC.
15653 lt_prog_compiler_static_GCJ='-non_shared'
15657 lt_prog_compiler_pic_GCJ='-Kpic'
15658 lt_prog_compiler_static_GCJ='-dn'
15662 lt_prog_compiler_wl_GCJ='-Wl,'
15663 lt_prog_compiler_pic_GCJ='-KPIC'
15664 lt_prog_compiler_static_GCJ='-Bstatic'
15668 lt_prog_compiler_wl_GCJ='-Qoption ld '
15669 lt_prog_compiler_pic_GCJ='-PIC'
15670 lt_prog_compiler_static_GCJ='-Bstatic'
15673 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15674 lt_prog_compiler_wl_GCJ='-Wl,'
15675 lt_prog_compiler_pic_GCJ='-KPIC'
15676 lt_prog_compiler_static_GCJ='-Bstatic'
15680 if test -d /usr/nec ;then
15681 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15682 lt_prog_compiler_static_GCJ='-Bstatic'
15687 lt_prog_compiler_pic_GCJ='-pic'
15688 lt_prog_compiler_static_GCJ='-Bstatic'
15692 lt_prog_compiler_can_build_shared_GCJ=no
15697 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15698 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15701 # Check to make sure the PIC flag actually works.
15703 if test -n "$lt_prog_compiler_pic_GCJ"; then
15705 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15706 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15707 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 lt_prog_compiler_pic_works_GCJ=no
15711 ac_outfile=conftest.$ac_objext
15712 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15713 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15714 # Insert the option either (1) after the last *FLAGS variable, or
15715 # (2) before a word containing "conftest.", or (3) at the end.
15716 # Note that $ac_compile itself does not contain backslashes and begins
15717 # with a dollar sign (not a hyphen), so the echo should work correctly.
15718 # The option is referenced via a variable to avoid confusing sed.
15719 lt_compile=`echo "$ac_compile" | $SED \
15720 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15722 -e 's:$: $lt_compiler_flag:'`
15723 (eval echo "\"\$as_me:15723: $lt_compile\"" >&5)
15724 (eval "$lt_compile" 2>conftest.err)
15726 cat conftest.err >&5
15727 echo "$as_me:15727: \$? = $ac_status" >&5
15728 if (exit $ac_status) && test -s "$ac_outfile"; then
15729 # The compiler can only warn and ignore the option if not recognized
15730 # So say no if there are warnings
15731 if test ! -s conftest.err; then
15732 lt_prog_compiler_pic_works_GCJ=yes
15738 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15739 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15741 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15742 case $lt_prog_compiler_pic_GCJ in
15744 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15747 lt_prog_compiler_pic_GCJ=
15748 lt_prog_compiler_can_build_shared_GCJ=no
15753 # For platforms which do not support PIC, -DPIC is meaningless:
15755 lt_prog_compiler_pic_GCJ=
15758 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15762 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15763 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15764 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 lt_cv_prog_compiler_c_o_GCJ=no
15768 $rm -r conftest 2>/dev/null
15772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15774 lt_compiler_flag="-o out/conftest2.$ac_objext"
15775 # Insert the option either (1) after the last *FLAGS variable, or
15776 # (2) before a word containing "conftest.", or (3) at the end.
15777 # Note that $ac_compile itself does not contain backslashes and begins
15778 # with a dollar sign (not a hyphen), so the echo should work correctly.
15779 lt_compile=`echo "$ac_compile" | $SED \
15780 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15782 -e 's:$: $lt_compiler_flag:'`
15783 (eval echo "\"\$as_me:15783: $lt_compile\"" >&5)
15784 (eval "$lt_compile" 2>out/conftest.err)
15786 cat out/conftest.err >&5
15787 echo "$as_me:15787: \$? = $ac_status" >&5
15788 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15790 # The compiler can only warn and ignore the option if not recognized
15791 # So say no if there are warnings
15792 if test ! -s out/conftest.err; then
15793 lt_cv_prog_compiler_c_o_GCJ=yes
15798 # SGI C++ compiler will create directory out/ii_files/ for
15799 # template instantiation
15800 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15801 $rm out/* && rmdir out
15807 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15808 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15811 hard_links="nottested"
15812 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15813 # do not overwrite the value of need_locks provided by the user
15814 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15815 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15820 ln conftest.a conftest.b 2>&5 || hard_links=no
15821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15822 echo "$as_me:$LINENO: result: $hard_links" >&5
15823 echo "${ECHO_T}$hard_links" >&6
15824 if test "$hard_links" = no; then
15825 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15826 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15833 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15834 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15837 allow_undefined_flag_GCJ=
15838 enable_shared_with_static_runtimes_GCJ=no
15840 archive_expsym_cmds_GCJ=
15841 old_archive_From_new_cmds_GCJ=
15842 old_archive_from_expsyms_cmds_GCJ=
15843 export_dynamic_flag_spec_GCJ=
15844 whole_archive_flag_spec_GCJ=
15845 thread_safe_flag_spec_GCJ=
15846 hardcode_libdir_flag_spec_GCJ=
15847 hardcode_libdir_flag_spec_ld_GCJ=
15848 hardcode_libdir_separator_GCJ=
15849 hardcode_direct_GCJ=no
15850 hardcode_minus_L_GCJ=no
15851 hardcode_shlibpath_var_GCJ=unsupported
15852 link_all_deplibs_GCJ=unknown
15853 hardcode_automatic_GCJ=no
15855 module_expsym_cmds_GCJ=
15856 always_export_symbols_GCJ=no
15857 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15858 # include_expsyms should be a list of space-separated symbols to be *always*
15859 # included in the symbol list
15860 include_expsyms_GCJ=
15861 # exclude_expsyms can be an extended regexp of symbols to exclude
15862 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15863 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15864 # as well as any symbol that contains `d'.
15865 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15866 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15867 # platforms (ab)use it in PIC code, but their linkers get confused if
15868 # the symbol is explicitly referenced. Since portable code cannot
15869 # rely on this symbol name, it's probably fine to never include it in
15870 # preloaded symbol tables.
15871 extract_expsyms_cmds=
15874 cygwin* | mingw* | pw32*)
15875 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15876 # When not using gcc, we currently assume that we are using
15877 # Microsoft Visual C++.
15878 if test "$GCC" != yes; then
15888 if test "$with_gnu_ld" = yes; then
15889 # If archive_cmds runs LD, not CC, wlarc should be empty
15892 # See if GNU ld supports shared libraries.
15894 aix3* | aix4* | aix5*)
15895 # On AIX/PPC, the GNU linker is very broken
15896 if test "$host_cpu" != ia64; then
15900 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15901 *** to be unable to reliably create shared libraries on AIX.
15902 *** Therefore, libtool is disabling shared libraries support. If you
15903 *** really care for shared libraries, you may want to modify your PATH
15904 *** so that a non-GNU linker is found, and then restart.
15911 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)'
15912 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15913 hardcode_minus_L_GCJ=yes
15915 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15916 # that the semantics of dynamic libraries on AmigaOS, at least up
15917 # to version 4, is to share data among multiple programs linked
15918 # with the same dynamic library. Since this doesn't match the
15919 # behavior of shared libraries on other platforms, we can't use
15925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15926 allow_undefined_flag_GCJ=unsupported
15927 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15928 # support --undefined. This deserves some investigation. FIXME
15929 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15935 cygwin* | mingw* | pw32*)
15936 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15937 # as there is no search path for DLLs.
15938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15939 allow_undefined_flag_GCJ=unsupported
15940 always_export_symbols_GCJ=no
15941 enable_shared_with_static_runtimes_GCJ=yes
15942 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15944 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15945 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15946 # If the export-symbols file already is a .def file (1st line
15947 # is EXPORTS), use it as is; otherwise, prepend...
15948 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15949 cp $export_symbols $output_objdir/$soname.def;
15951 echo EXPORTS > $output_objdir/$soname.def;
15952 cat $export_symbols >> $output_objdir/$soname.def;
15954 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15960 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15962 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15965 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15966 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15971 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15975 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15976 *** create shared libraries on Solaris systems. Therefore, libtool
15977 *** is disabling shared libraries support. We urge you to upgrade GNU
15978 *** binutils to release 2.9.1 or newer. Another option is to modify
15979 *** your PATH or compiler configuration so that the native linker is
15980 *** used, and then restart.
15983 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15984 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15985 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15992 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15994 hardcode_direct_GCJ=yes
15995 hardcode_shlibpath_var_GCJ=no
15999 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16000 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 archive_cmds_GCJ="$tmp_archive_cmds"
16002 supports_anon_versioning=no
16003 case `$LD -v 2>/dev/null` in
16004 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16005 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16006 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16007 *\ 2.11.*) ;; # other 2.11 versions
16008 *) supports_anon_versioning=yes ;;
16010 if test $supports_anon_versioning = yes; then
16011 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16013 $echo "local: *; };" >> $output_objdir/$libname.ver~
16014 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16016 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16018 link_all_deplibs_GCJ=no
16025 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16026 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16027 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16034 if test "$ld_shlibs_GCJ" = yes; then
16035 runpath_var=LD_RUN_PATH
16036 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16037 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16038 # ancient GNU ld didn't support --whole-archive et. al.
16039 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16040 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16042 whole_archive_flag_spec_GCJ=
16046 # PORTME fill in a description of your system's linker (not GNU ld)
16049 allow_undefined_flag_GCJ=unsupported
16050 always_export_symbols_GCJ=yes
16051 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'
16052 # Note: this linker hardcodes the directories in LIBPATH if there
16053 # are no directories specified by -L.
16054 hardcode_minus_L_GCJ=yes
16055 if test "$GCC" = yes && test -z "$link_static_flag"; then
16056 # Neither direct hardcoding nor static linking is supported with a
16058 hardcode_direct_GCJ=unsupported
16063 if test "$host_cpu" = ia64; then
16064 # On IA64, the linker does run time linking by default, so we don't
16065 # have to do anything special.
16066 aix_use_runtimelinking=no
16067 exp_sym_flag='-Bexport'
16070 # If we're using GNU nm, then we don't want the "-C" option.
16071 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16072 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16073 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'
16075 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'
16077 aix_use_runtimelinking=no
16079 # Test if we are trying to use run time linking or normal
16080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16081 # need to do runtime linking.
16082 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16083 for ld_flag in $LDFLAGS; do
16084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16085 aix_use_runtimelinking=yes
16091 exp_sym_flag='-bexport'
16092 no_entry_flag='-bnoentry'
16095 # When large executables or shared objects are built, AIX ld can
16096 # have problems creating the table of contents. If linking a library
16097 # or program results in "error TOC overflow" add -mminimal-toc to
16098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16101 archive_cmds_GCJ=''
16102 hardcode_direct_GCJ=yes
16103 hardcode_libdir_separator_GCJ=':'
16104 link_all_deplibs_GCJ=yes
16106 if test "$GCC" = yes; then
16107 case $host_os in aix4.012|aix4.012.*)
16108 # We only want to do this on AIX 4.2 and lower, the check
16109 # below for broken collect2 doesn't work under 4.3+
16110 collect2name=`${CC} -print-prog-name=collect2`
16111 if test -f "$collect2name" && \
16112 strings "$collect2name" | grep resolve_lib_name >/dev/null
16114 # We have reworked collect2
16115 hardcode_direct_GCJ=yes
16117 # We have old collect2
16118 hardcode_direct_GCJ=unsupported
16119 # It fails to find uninstalled libraries when the uninstalled
16120 # path is not listed in the libpath. Setting hardcode_minus_L
16121 # to unsupported forces relinking
16122 hardcode_minus_L_GCJ=yes
16123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16124 hardcode_libdir_separator_GCJ=
16127 shared_flag='-shared'
16130 if test "$host_cpu" = ia64; then
16131 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16132 # chokes on -Wl,-G. The following line is correct:
16135 if test "$aix_use_runtimelinking" = yes; then
16136 shared_flag='${wl}-G'
16138 shared_flag='${wl}-bM:SRE'
16143 # It seems that -bexpall does not export symbols beginning with
16144 # underscore (_), so it is better to generate a list of symbols to export.
16145 always_export_symbols_GCJ=yes
16146 if test "$aix_use_runtimelinking" = yes; then
16147 # Warning - without using the other runtime loading flags (-brtl),
16148 # -berok will link without error, but may produce a broken library.
16149 allow_undefined_flag_GCJ='-berok'
16150 # Determine the default libpath from the value encoded in an empty executable.
16151 cat >conftest.$ac_ext <<_ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16166 rm -f conftest.$ac_objext conftest$ac_exeext
16167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16168 (eval $ac_link) 2>conftest.er1
16170 grep -v '^ *+' conftest.er1 >conftest.err
16172 cat conftest.err >&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
16175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest$ac_exeext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16190 # Check for a 64-bit object if we didn't find anything.
16191 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; }
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16198 rm -f conftest.err conftest.$ac_objext \
16199 conftest$ac_exeext conftest.$ac_ext
16200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16202 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16203 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16205 if test "$host_cpu" = ia64; then
16206 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16207 allow_undefined_flag_GCJ="-z nodefs"
16208 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16210 # Determine the default libpath from the value encoded in an empty executable.
16211 cat >conftest.$ac_ext <<_ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h. */
16226 rm -f conftest.$ac_objext conftest$ac_exeext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16228 (eval $ac_link) 2>conftest.er1
16230 grep -v '^ *+' conftest.er1 >conftest.err
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
16235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; } &&
16241 { ac_try='test -s conftest$ac_exeext'
16242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243 (eval $ac_try) 2>&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16248 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16250 # Check for a 64-bit object if we didn't find anything.
16251 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; }
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16258 rm -f conftest.err conftest.$ac_objext \
16259 conftest$ac_exeext conftest.$ac_ext
16260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16262 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16263 # Warning - without using the other run time loading flags,
16264 # -berok will link without error, but may produce a broken library.
16265 no_undefined_flag_GCJ=' ${wl}-bernotok'
16266 allow_undefined_flag_GCJ=' ${wl}-berok'
16267 # -bexpall does not export symbols beginning with underscore (_)
16268 always_export_symbols_GCJ=yes
16269 # Exported symbols can be pulled into shared objects from archives
16270 whole_archive_flag_spec_GCJ=' '
16271 archive_cmds_need_lc_GCJ=yes
16272 # This is similar to how AIX traditionally builds it's shared libraries.
16273 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16279 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)'
16280 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16281 hardcode_minus_L_GCJ=yes
16282 # see comment about different semantics on the GNU ld section
16287 export_dynamic_flag_spec_GCJ=-rdynamic
16290 cygwin* | mingw* | pw32*)
16291 # When not using gcc, we currently assume that we are using
16292 # Microsoft Visual C++.
16293 # hardcode_libdir_flag_spec is actually meaningless, as there is
16294 # no search path for DLLs.
16295 hardcode_libdir_flag_spec_GCJ=' '
16296 allow_undefined_flag_GCJ=unsupported
16297 # Tell ltmain to make .lib files, not .a files.
16299 # Tell ltmain to make .dll files, not .so files.
16301 # FIXME: Setting linknames here is a bad hack.
16302 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16303 # The linker will automatically build a .lib file if we build a DLL.
16304 old_archive_From_new_cmds_GCJ='true'
16305 # FIXME: Should let the user specify the lib program.
16306 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16307 fix_srcfile_path='`cygpath -w "$srcfile"`'
16308 enable_shared_with_static_runtimes_GCJ=yes
16311 darwin* | rhapsody*)
16312 if test "$GXX" = yes ; then
16313 archive_cmds_need_lc_GCJ=no
16315 rhapsody* | darwin1.[012])
16316 allow_undefined_flag_GCJ='-undefined suppress'
16319 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16320 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16322 case ${MACOSX_DEPLOYMENT_TARGET} in
16324 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16327 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16333 lt_int_apple_cc_single_mod=no
16334 output_verbose_link_cmd='echo'
16335 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16336 lt_int_apple_cc_single_mod=yes
16338 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16339 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16341 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16343 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16344 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16345 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16346 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16348 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16350 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}'
16351 hardcode_direct_GCJ=no
16352 hardcode_automatic_GCJ=yes
16353 hardcode_shlibpath_var_GCJ=unsupported
16354 whole_archive_flag_spec_GCJ='-all_load $convenience'
16355 link_all_deplibs_GCJ=yes
16362 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16363 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16364 hardcode_shlibpath_var_GCJ=no
16371 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16372 # support. Future versions do this automatically, but an explicit c++rt0.o
16373 # does not break anything, and helps significantly (at the cost of a little
16376 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16377 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16378 hardcode_direct_GCJ=yes
16379 hardcode_shlibpath_var_GCJ=no
16382 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16384 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16385 hardcode_direct_GCJ=yes
16386 hardcode_minus_L_GCJ=yes
16387 hardcode_shlibpath_var_GCJ=no
16390 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16391 freebsd* | kfreebsd*-gnu)
16392 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16393 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16394 hardcode_direct_GCJ=yes
16395 hardcode_shlibpath_var_GCJ=no
16399 if test "$GCC" = yes; then
16400 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'
16402 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'
16404 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16405 hardcode_libdir_separator_GCJ=:
16406 hardcode_direct_GCJ=yes
16408 # hardcode_minus_L: Not really in the search PATH,
16409 # but as the default location of the library.
16410 hardcode_minus_L_GCJ=yes
16411 export_dynamic_flag_spec_GCJ='${wl}-E'
16415 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16416 case "$host_cpu" in
16418 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16421 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16425 case "$host_cpu" in
16427 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16430 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16434 if test "$with_gnu_ld" = no; then
16435 case "$host_cpu" in
16437 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16438 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16439 hardcode_libdir_separator_GCJ=:
16440 hardcode_direct_GCJ=no
16441 hardcode_shlibpath_var_GCJ=no
16444 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16445 hardcode_direct_GCJ=no
16446 hardcode_shlibpath_var_GCJ=no
16448 # hardcode_minus_L: Not really in the search PATH,
16449 # but as the default location of the library.
16450 hardcode_minus_L_GCJ=yes
16453 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16454 hardcode_libdir_separator_GCJ=:
16455 hardcode_direct_GCJ=yes
16456 export_dynamic_flag_spec_GCJ='${wl}-E'
16458 # hardcode_minus_L: Not really in the search PATH,
16459 # but as the default location of the library.
16460 hardcode_minus_L_GCJ=yes
16466 irix5* | irix6* | nonstopux*)
16467 if test "$GCC" = yes; then
16468 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'
16470 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'
16471 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16474 hardcode_libdir_separator_GCJ=:
16475 link_all_deplibs_GCJ=yes
16478 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16479 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16480 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16482 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16484 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16485 hardcode_direct_GCJ=yes
16486 hardcode_shlibpath_var_GCJ=no
16490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16491 hardcode_direct_GCJ=yes
16492 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16493 hardcode_libdir_separator_GCJ=:
16494 hardcode_shlibpath_var_GCJ=no
16498 hardcode_direct_GCJ=yes
16499 hardcode_shlibpath_var_GCJ=no
16500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16501 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16502 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16503 export_dynamic_flag_spec_GCJ='${wl}-E'
16506 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16507 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16511 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16512 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16520 hardcode_minus_L_GCJ=yes
16521 allow_undefined_flag_GCJ=unsupported
16522 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'
16523 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16527 if test "$GCC" = yes; then
16528 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16529 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'
16531 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16532 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'
16534 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16535 hardcode_libdir_separator_GCJ=:
16538 osf4* | osf5*) # as osf3* with the addition of -msym flag
16539 if test "$GCC" = yes; then
16540 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16541 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'
16542 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16544 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16545 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'
16546 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~
16547 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16549 # Both c and cxx compiler support -rpath directly
16550 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16552 hardcode_libdir_separator_GCJ=:
16556 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_shlibpath_var_GCJ=no
16558 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16559 runpath_var=LD_RUN_PATH
16560 hardcode_runpath_var=yes
16564 no_undefined_flag_GCJ=' -z text'
16565 if test "$GCC" = yes; then
16566 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16567 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16568 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16570 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16571 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16572 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16574 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16575 hardcode_shlibpath_var_GCJ=no
16577 solaris2.[0-5] | solaris2.[0-5].*) ;;
16578 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16579 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16581 link_all_deplibs_GCJ=yes
16585 if test "x$host_vendor" = xsequent; then
16586 # Use $CC to link under sequent, because it throws in some extra .o
16587 # files that make .init and .fini sections work.
16588 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16590 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16592 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16593 hardcode_direct_GCJ=yes
16594 hardcode_minus_L_GCJ=yes
16595 hardcode_shlibpath_var_GCJ=no
16599 case $host_vendor in
16601 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16602 hardcode_direct_GCJ=yes # is this really true???
16605 ## LD is ld it makes a PLAMLIB
16606 ## CC just makes a GrossModule.
16607 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16608 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16609 hardcode_direct_GCJ=no
16612 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16613 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16616 runpath_var='LD_RUN_PATH'
16617 hardcode_shlibpath_var_GCJ=no
16621 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16622 hardcode_shlibpath_var_GCJ=no
16623 export_dynamic_flag_spec_GCJ='-Bexport'
16627 if test -d /usr/nec; then
16628 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16629 hardcode_shlibpath_var_GCJ=no
16630 runpath_var=LD_RUN_PATH
16631 hardcode_runpath_var=yes
16637 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16638 hardcode_direct_GCJ=yes
16639 hardcode_minus_L_GCJ=no
16640 hardcode_shlibpath_var_GCJ=no
16641 hardcode_runpath_var=yes
16642 runpath_var=LD_RUN_PATH
16645 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16646 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16647 if test "$GCC" = yes; then
16648 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16650 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16652 runpath_var='LD_RUN_PATH'
16653 hardcode_shlibpath_var_GCJ=no
16657 no_undefined_flag_GCJ=' -z text'
16658 # $CC -shared without GNU ld will not create a library from C++
16659 # object files and a static libstdc++, better avoid it by now
16660 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16661 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16662 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16663 hardcode_libdir_flag_spec_GCJ=
16664 hardcode_shlibpath_var_GCJ=no
16665 runpath_var='LD_RUN_PATH'
16669 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16671 hardcode_shlibpath_var_GCJ=no
16680 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16681 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16682 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16685 if test "$GCC" = yes; then
16686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16690 # Do we need to explicitly link libc?
16692 case "x$archive_cmds_need_lc_GCJ" in
16694 # Assume -lc should be added
16695 archive_cmds_need_lc_GCJ=yes
16697 if test "$enable_shared" = yes && test "$GCC" = yes; then
16698 case $archive_cmds_GCJ in
16700 # FIXME: we may have to deal with multi-command sequences.
16703 # Test whether the compiler implicitly links with -lc since on some
16704 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16705 # to ld, don't add -lc before -lgcc.
16706 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16707 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712 (eval $ac_compile) 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } 2>conftest.err; then
16718 libobjs=conftest.$ac_objext
16720 wl=$lt_prog_compiler_wl_GCJ
16726 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16727 allow_undefined_flag_GCJ=
16728 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16729 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }
16734 archive_cmds_need_lc_GCJ=no
16736 archive_cmds_need_lc_GCJ=yes
16738 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16740 cat conftest.err 1>&5
16743 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16744 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16751 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16752 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16753 library_names_spec=
16754 libname_spec='lib$name'
16758 postuninstall_cmds=
16762 shlibpath_overrides_runpath=unknown
16764 dynamic_linker="$host_os ld.so"
16765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16766 if test "$GCC" = yes; then
16767 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16768 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16769 # if the path contains ";" then we assume it to be the separator
16770 # otherwise default to the standard path separator (i.e. ":") - it is
16771 # assumed that no part of a normal pathname contains ";" but that should
16772 # okay in the real world where ";" in dirpaths is itself problematic.
16773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16778 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16780 need_lib_prefix=unknown
16781 hardcode_into_libs=no
16783 # when you set need_version to no, make sure it does not cause -set_version
16784 # flags to be left without arguments
16785 need_version=unknown
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16791 shlibpath_var=LIBPATH
16793 # AIX 3 has no versioning support, so we append a major version to the name.
16794 soname_spec='${libname}${release}${shared_ext}$major'
16801 hardcode_into_libs=yes
16802 if test "$host_cpu" = ia64; then
16803 # AIX 5 supports IA64
16804 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16805 shlibpath_var=LD_LIBRARY_PATH
16807 # With GCC up to 2.95.x, collect2 would create an import file
16808 # for dependence libraries. The import file would start with
16809 # the line `#! .'. This would cause the generated library to
16810 # depend on `.', always an invalid library. This was fixed in
16811 # development snapshots of GCC prior to 3.0.
16813 aix4 | aix4.[01] | aix4.[01].*)
16814 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16816 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16819 can_build_shared=no
16823 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16824 # soname into executable. Probably we can add versioning support to
16825 # collect2, so additional links can be useful in future.
16826 if test "$aix_use_runtimelinking" = yes; then
16827 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16828 # instead of lib<name>.a to let people know that these are not
16829 # typical AIX shared libraries.
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16832 # We preserve .a as extension for shared libraries through AIX4.2
16833 # and later when we are not doing run time linking.
16834 library_names_spec='${libname}${release}.a $libname.a'
16835 soname_spec='${libname}${release}${shared_ext}$major'
16837 shlibpath_var=LIBPATH
16842 library_names_spec='$libname.ixlibrary $libname.a'
16843 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16844 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'
16848 library_names_spec='${libname}${shared_ext}'
16849 dynamic_linker="$host_os ld.so"
16850 shlibpath_var=LIBRARY_PATH
16856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16857 soname_spec='${libname}${release}${shared_ext}$major'
16858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16859 shlibpath_var=LD_LIBRARY_PATH
16860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16862 # the default ld.so.conf also contains /usr/contrib/lib and
16863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16864 # libtool to hard-code these into programs
16867 cygwin* | mingw* | pw32*)
16868 version_type=windows
16873 case $GCC,$host_os in
16874 yes,cygwin* | yes,mingw* | yes,pw32*)
16875 library_names_spec='$libname.dll.a'
16876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16877 postinstall_cmds='base_file=`basename \${file}`~
16878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16879 dldir=$destdir/`dirname \$dlpath`~
16880 test -d \$dldir || mkdir -p \$dldir~
16881 $install_prog $dir/$dlname \$dldir/$dlname'
16882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16883 dlpath=$dir/\$dldll~
16885 shlibpath_overrides_runpath=yes
16889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16891 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16894 # MinGW DLLs use traditional 'lib' prefix
16895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16896 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16897 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16898 # It is most probably a Windows format PATH printed by
16899 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16900 # path with ; separators, and with drive letters. We can handle the
16901 # drive letters (cygwin fileutils understands them), so leave them,
16902 # especially as we might pass files found there to a mingw objdump,
16903 # which wouldn't understand a cygwinified path. Ahh.
16904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16910 # pw32 DLLs use 'pw' prefix rather than 'lib'
16911 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16917 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16920 dynamic_linker='Win32 ld.exe'
16921 # FIXME: first we should search . and the directory the executable is in
16925 darwin* | rhapsody*)
16926 dynamic_linker="$host_os dyld"
16927 version_type=darwin
16930 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16931 soname_spec='${libname}${release}${major}$shared_ext'
16932 shlibpath_overrides_runpath=yes
16933 shlibpath_var=DYLD_LIBRARY_PATH
16934 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16935 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16936 if test "$GCC" = yes; then
16937 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"`
16939 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16950 shlibpath_var=LD_LIBRARY_PATH
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16962 soname_spec='${libname}${release}${shared_ext}$major'
16963 shlibpath_var=LD_LIBRARY_PATH
16964 shlibpath_overrides_runpath=no
16965 hardcode_into_libs=yes
16966 dynamic_linker='GNU ld.so'
16970 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16971 version_type=freebsd-$objformat
16972 case $version_type in
16974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16983 shlibpath_var=LD_LIBRARY_PATH
16986 shlibpath_overrides_runpath=yes
16988 freebsd3.01* | freebsdelf3.01*)
16989 shlibpath_overrides_runpath=yes
16990 hardcode_into_libs=yes
16993 shlibpath_overrides_runpath=no
16994 hardcode_into_libs=yes
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 shlibpath_var=LD_LIBRARY_PATH
17006 hardcode_into_libs=yes
17009 hpux9* | hpux10* | hpux11*)
17010 # Give a soname corresponding to the major version so that dld.sl refuses to
17011 # link against other versions.
17015 case "$host_cpu" in
17018 hardcode_into_libs=yes
17019 dynamic_linker="$host_os dld.so"
17020 shlibpath_var=LD_LIBRARY_PATH
17021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17023 soname_spec='${libname}${release}${shared_ext}$major'
17024 if test "X$HPUX_IA64_MODE" = X32; then
17025 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17027 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17033 hardcode_into_libs=yes
17034 dynamic_linker="$host_os dld.sl"
17035 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17039 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17044 dynamic_linker="$host_os dld.sl"
17045 shlibpath_var=SHLIB_PATH
17046 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048 soname_spec='${libname}${release}${shared_ext}$major'
17051 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17052 postinstall_cmds='chmod 555 $lib'
17055 irix5* | irix6* | nonstopux*)
17057 nonstopux*) version_type=nonstopux ;;
17059 if test "$lt_cv_prog_gnu_ld" = yes; then
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17070 irix5* | nonstopux*)
17071 libsuff= shlibsuff=
17074 case $LD in # libtool.m4 will add one of these switches to LD
17075 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17076 libsuff= shlibsuff= libmagic=32-bit;;
17077 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17078 libsuff=32 shlibsuff=N32 libmagic=N32;;
17079 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17080 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17081 *) libsuff= shlibsuff= libmagic=never-match;;
17085 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17086 shlibpath_overrides_runpath=no
17087 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17088 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17089 hardcode_into_libs=yes
17092 # No shared lib support for Linux oldld, aout, or coff.
17093 linux*oldld* | linux*aout* | linux*coff*)
17097 # This must be Linux ELF.
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103 soname_spec='${libname}${release}${shared_ext}$major'
17104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17105 shlibpath_var=LD_LIBRARY_PATH
17106 shlibpath_overrides_runpath=no
17107 # This implies no fast_install, which is unacceptable.
17108 # Some rework will be needed to allow for fast_install
17109 # before this can be enabled.
17110 hardcode_into_libs=yes
17112 # Append ld.so.conf contents to the search path
17113 if test -f /etc/ld.so.conf; then
17114 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17115 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17118 # We used to test for /lib/ld.so.1 and disable shared libraries on
17119 # powerpc, because MkLinux only supported shared libraries with the
17120 # GNU dynamic linker. Since this was broken with cross compilers,
17121 # most powerpc-linux boxes support dynamic linking these days and
17122 # people can always --disable-shared, the test was removed, and we
17123 # assume the GNU/Linux dynamic linker is in use.
17124 dynamic_linker='GNU/Linux ld.so'
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17132 soname_spec='${libname}${release}${shared_ext}$major'
17133 shlibpath_var=LD_LIBRARY_PATH
17134 shlibpath_overrides_runpath=no
17135 hardcode_into_libs=yes
17136 dynamic_linker='NetBSD ld.elf_so'
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 shlibpath_var=LD_LIBRARY_PATH
17146 shlibpath_overrides_runpath=no
17147 hardcode_into_libs=yes
17148 dynamic_linker='GNU ld.so'
17155 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17158 dynamic_linker='NetBSD (a.out) ld.so'
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17161 soname_spec='${libname}${release}${shared_ext}$major'
17162 dynamic_linker='NetBSD ld.elf_so'
17164 shlibpath_var=LD_LIBRARY_PATH
17165 shlibpath_overrides_runpath=yes
17166 hardcode_into_libs=yes
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 shlibpath_overrides_runpath=yes
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath=yes
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17195 openbsd2.[89] | openbsd2.[89].*)
17196 shlibpath_overrides_runpath=no
17199 shlibpath_overrides_runpath=yes
17203 shlibpath_overrides_runpath=yes
17208 libname_spec='$name'
17211 library_names_spec='$libname${shared_ext} $libname.a'
17212 dynamic_linker='OS/2 ld.exe'
17213 shlibpath_var=LIBPATH
17216 osf3* | osf4* | osf5*)
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17224 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17231 shlibpath_var=LD_LIBRARY_PATH
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 shlibpath_var=LD_LIBRARY_PATH
17241 shlibpath_overrides_runpath=yes
17242 hardcode_into_libs=yes
17243 # ldd complains unless libraries are executable
17244 postinstall_cmds='chmod +x $lib'
17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17250 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17251 shlibpath_var=LD_LIBRARY_PATH
17252 shlibpath_overrides_runpath=yes
17253 if test "$with_gnu_ld" = yes; then
17259 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262 soname_spec='${libname}${release}${shared_ext}$major'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 case $host_vendor in
17266 shlibpath_overrides_runpath=no
17268 export_dynamic_flag_spec='${wl}-Blargedynsym'
17269 runpath_var=LD_RUN_PATH
17277 shlibpath_overrides_runpath=no
17278 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17284 if test -d /usr/nec ;then
17286 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17287 soname_spec='$libname${shared_ext}.$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 shlibpath_var=LD_LIBRARY_PATH
17303 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17304 echo "${ECHO_T}$dynamic_linker" >&6
17305 test "$dynamic_linker" = no && can_build_shared=no
17307 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17308 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17309 hardcode_action_GCJ=
17310 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17311 test -n "$runpath_var GCJ" || \
17312 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17314 # We can hardcode non-existant directories.
17315 if test "$hardcode_direct_GCJ" != no &&
17316 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17317 # have to relink, otherwise we might link with an installed library
17318 # when we should be linking with a yet-to-be-installed one
17319 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17320 test "$hardcode_minus_L_GCJ" != no; then
17321 # Linking always hardcodes the temporary library directory.
17322 hardcode_action_GCJ=relink
17324 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17325 hardcode_action_GCJ=immediate
17328 # We cannot hardcode anything, or else we can only hardcode existing
17330 hardcode_action_GCJ=unsupported
17332 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17333 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17335 if test "$hardcode_action_GCJ" = relink; then
17336 # Fast installation is not supported
17337 enable_fast_install=no
17338 elif test "$shlibpath_overrides_runpath" = yes ||
17339 test "$enable_shared" = no; then
17340 # Fast installation is not necessary
17341 enable_fast_install=needless
17346 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17347 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17348 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17349 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17350 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17351 echo "$as_me:$LINENO: result: yes" >&5
17352 echo "${ECHO_T}yes" >&6
17354 # FIXME - insert some real tests, host_os isn't really good enough
17357 if test -n "$STRIP" ; then
17358 striplib="$STRIP -x"
17359 echo "$as_me:$LINENO: result: yes" >&5
17360 echo "${ECHO_T}yes" >&6
17362 echo "$as_me:$LINENO: result: no" >&5
17363 echo "${ECHO_T}no" >&6
17367 echo "$as_me:$LINENO: result: no" >&5
17368 echo "${ECHO_T}no" >&6
17373 if test "x$enable_dlopen" != xyes; then
17374 enable_dlopen=unknown
17375 enable_dlopen_self=unknown
17376 enable_dlopen_self_static=unknown
17383 lt_cv_dlopen="load_add_on"
17385 lt_cv_dlopen_self=yes
17389 lt_cv_dlopen="LoadLibrary"
17394 lt_cv_dlopen="dlopen"
17399 # if libdl is installed we need to link against it
17400 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17401 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 ac_check_lib_save_LIBS=$LIBS
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17414 /* Override any gcc2 internal prototype to avoid an error. */
17418 /* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17431 (eval $ac_link) 2>conftest.er1
17433 grep -v '^ *+' conftest.er1 >conftest.err
17435 cat conftest.err >&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
17438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest$ac_exeext'
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17450 ac_cv_lib_dl_dlopen=yes
17452 echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17455 ac_cv_lib_dl_dlopen=no
17457 rm -f conftest.err conftest.$ac_objext \
17458 conftest$ac_exeext conftest.$ac_ext
17459 LIBS=$ac_check_lib_save_LIBS
17461 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17462 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17463 if test $ac_cv_lib_dl_dlopen = yes; then
17464 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17467 lt_cv_dlopen="dyld"
17469 lt_cv_dlopen_self=yes
17476 echo "$as_me:$LINENO: checking for shl_load" >&5
17477 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17478 if test "${ac_cv_func_shl_load+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 cat >conftest.$ac_ext <<_ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17489 #define shl_load innocuous_shl_load
17491 /* System header to define __stub macros and hopefully few prototypes,
17492 which can conflict with char shl_load (); below.
17493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17494 <limits.h> exists even on freestanding compilers. */
17497 # include <limits.h>
17499 # include <assert.h>
17504 /* Override any gcc2 internal prototype to avoid an error. */
17509 /* We use char because int might match the return type of a gcc2
17510 builtin and then its argument prototype would still apply. */
17512 /* The GNU C library defines this for functions which it implements
17513 to always fail with ENOSYS. Some functions are actually named
17514 something starting with __ and the normal name is an alias. */
17515 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17518 char (*f) () = shl_load;
17527 return f != shl_load;
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17534 (eval $ac_link) 2>conftest.er1
17536 grep -v '^ *+' conftest.er1 >conftest.err
17538 cat conftest.err >&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; } &&
17547 { ac_try='test -s conftest$ac_exeext'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
17553 ac_cv_func_shl_load=yes
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17558 ac_cv_func_shl_load=no
17560 rm -f conftest.err conftest.$ac_objext \
17561 conftest$ac_exeext conftest.$ac_ext
17563 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17564 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17565 if test $ac_cv_func_shl_load = yes; then
17566 lt_cv_dlopen="shl_load"
17568 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17569 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17570 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 ac_check_lib_save_LIBS=$LIBS
17575 cat >conftest.$ac_ext <<_ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17582 /* Override any gcc2 internal prototype to avoid an error. */
17586 /* We use char because int might match the return type of a gcc2
17587 builtin and then its argument prototype would still apply. */
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17599 (eval $ac_link) 2>conftest.er1
17601 grep -v '^ *+' conftest.er1 >conftest.err
17603 cat conftest.err >&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
17606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try='test -s conftest$ac_exeext'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ac_cv_lib_dld_shl_load=yes
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 ac_cv_lib_dld_shl_load=no
17625 rm -f conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17627 LIBS=$ac_check_lib_save_LIBS
17629 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17630 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17631 if test $ac_cv_lib_dld_shl_load = yes; then
17632 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17634 echo "$as_me:$LINENO: checking for dlopen" >&5
17635 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17636 if test "${ac_cv_func_dlopen+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 cat >conftest.$ac_ext <<_ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17647 #define dlopen innocuous_dlopen
17649 /* System header to define __stub macros and hopefully few prototypes,
17650 which can conflict with char dlopen (); below.
17651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17652 <limits.h> exists even on freestanding compilers. */
17655 # include <limits.h>
17657 # include <assert.h>
17662 /* Override any gcc2 internal prototype to avoid an error. */
17667 /* We use char because int might match the return type of a gcc2
17668 builtin and then its argument prototype would still apply. */
17670 /* The GNU C library defines this for functions which it implements
17671 to always fail with ENOSYS. Some functions are actually named
17672 something starting with __ and the normal name is an alias. */
17673 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17676 char (*f) () = dlopen;
17685 return f != dlopen;
17690 rm -f conftest.$ac_objext conftest$ac_exeext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692 (eval $ac_link) 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; } &&
17705 { ac_try='test -s conftest$ac_exeext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 ac_cv_func_dlopen=yes
17713 echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17716 ac_cv_func_dlopen=no
17718 rm -f conftest.err conftest.$ac_objext \
17719 conftest$ac_exeext conftest.$ac_ext
17721 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17722 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17723 if test $ac_cv_func_dlopen = yes; then
17724 lt_cv_dlopen="dlopen"
17726 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17727 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17728 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17731 ac_check_lib_save_LIBS=$LIBS
17733 cat >conftest.$ac_ext <<_ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17740 /* Override any gcc2 internal prototype to avoid an error. */
17744 /* We use char because int might match the return type of a gcc2
17745 builtin and then its argument prototype would still apply. */
17755 rm -f conftest.$ac_objext conftest$ac_exeext
17756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17757 (eval $ac_link) 2>conftest.er1
17759 grep -v '^ *+' conftest.er1 >conftest.err
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
17764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest$ac_exeext'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_lib_dl_dlopen=yes
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_cv_lib_dl_dlopen=no
17783 rm -f conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17787 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17788 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17789 if test $ac_cv_lib_dl_dlopen = yes; then
17790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17792 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17793 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17794 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 ac_check_lib_save_LIBS=$LIBS
17798 LIBS="-lsvld $LIBS"
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17806 /* Override any gcc2 internal prototype to avoid an error. */
17810 /* We use char because int might match the return type of a gcc2
17811 builtin and then its argument prototype would still apply. */
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17823 (eval $ac_link) 2>conftest.er1
17825 grep -v '^ *+' conftest.er1 >conftest.err
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
17830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest$ac_exeext'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_lib_svld_dlopen=yes
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17847 ac_cv_lib_svld_dlopen=no
17849 rm -f conftest.err conftest.$ac_objext \
17850 conftest$ac_exeext conftest.$ac_ext
17851 LIBS=$ac_check_lib_save_LIBS
17853 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17854 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17855 if test $ac_cv_lib_svld_dlopen = yes; then
17856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17858 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17859 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17860 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 ac_check_lib_save_LIBS=$LIBS
17865 cat >conftest.$ac_ext <<_ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17872 /* Override any gcc2 internal prototype to avoid an error. */
17876 /* We use char because int might match the return type of a gcc2
17877 builtin and then its argument prototype would still apply. */
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889 (eval $ac_link) 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest$ac_exeext'
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 ac_cv_lib_dld_dld_link=yes
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ac_cv_lib_dld_dld_link=no
17915 rm -f conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917 LIBS=$ac_check_lib_save_LIBS
17919 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17920 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17921 if test $ac_cv_lib_dld_dld_link = yes; then
17922 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17943 if test "x$lt_cv_dlopen" != xno; then
17949 case $lt_cv_dlopen in
17951 save_CPPFLAGS="$CPPFLAGS"
17952 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17954 save_LDFLAGS="$LDFLAGS"
17955 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17958 LIBS="$lt_cv_dlopen_libs $LIBS"
17960 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17961 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17962 if test "${lt_cv_dlopen_self+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 if test "$cross_compiling" = yes; then :
17966 lt_cv_dlopen_self=cross
17968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17969 lt_status=$lt_dlunknown
17970 cat > conftest.$ac_ext <<EOF
17971 #line 17971 "configure"
17972 #include "confdefs.h"
17981 # define LT_DLGLOBAL RTLD_GLOBAL
17984 # define LT_DLGLOBAL DL_GLOBAL
17986 # define LT_DLGLOBAL 0
17990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17991 find out it does not work in some platform. */
17992 #ifndef LT_DLLAZY_OR_NOW
17994 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17997 # define LT_DLLAZY_OR_NOW DL_LAZY
18000 # define LT_DLLAZY_OR_NOW RTLD_NOW
18003 # define LT_DLLAZY_OR_NOW DL_NOW
18005 # define LT_DLLAZY_OR_NOW 0
18013 extern "C" void exit (int);
18016 void fnord() { int i=42;}
18019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18020 int status = $lt_dlunknown;
18024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18025 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18026 /* dlclose (self); */
18032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033 (eval $ac_link) 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18037 (./conftest; exit; ) 2>/dev/null
18039 case x$lt_status in
18040 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18041 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18042 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18045 # compilation failed
18046 lt_cv_dlopen_self=no
18053 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18054 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18056 if test "x$lt_cv_dlopen_self" = xyes; then
18057 LDFLAGS="$LDFLAGS $link_static_flag"
18058 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18059 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18060 if test "${lt_cv_dlopen_self_static+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 if test "$cross_compiling" = yes; then :
18064 lt_cv_dlopen_self_static=cross
18066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18067 lt_status=$lt_dlunknown
18068 cat > conftest.$ac_ext <<EOF
18069 #line 18069 "configure"
18070 #include "confdefs.h"
18079 # define LT_DLGLOBAL RTLD_GLOBAL
18082 # define LT_DLGLOBAL DL_GLOBAL
18084 # define LT_DLGLOBAL 0
18088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18089 find out it does not work in some platform. */
18090 #ifndef LT_DLLAZY_OR_NOW
18092 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18095 # define LT_DLLAZY_OR_NOW DL_LAZY
18098 # define LT_DLLAZY_OR_NOW RTLD_NOW
18101 # define LT_DLLAZY_OR_NOW DL_NOW
18103 # define LT_DLLAZY_OR_NOW 0
18111 extern "C" void exit (int);
18114 void fnord() { int i=42;}
18117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18118 int status = $lt_dlunknown;
18122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18123 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18124 /* dlclose (self); */
18130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18135 (./conftest; exit; ) 2>/dev/null
18137 case x$lt_status in
18138 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18139 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18140 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18143 # compilation failed
18144 lt_cv_dlopen_self_static=no
18151 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18152 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18155 CPPFLAGS="$save_CPPFLAGS"
18156 LDFLAGS="$save_LDFLAGS"
18161 case $lt_cv_dlopen_self in
18162 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18163 *) enable_dlopen_self=unknown ;;
18166 case $lt_cv_dlopen_self_static in
18167 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18168 *) enable_dlopen_self_static=unknown ;;
18173 # The else clause should only fire when bootstrapping the
18174 # libtool distribution, otherwise you forgot to ship ltmain.sh
18175 # with your package, and you will get complaints that there are
18176 # no rules to generate ltmain.sh.
18177 if test -f "$ltmain"; then
18178 # See if we are running on zsh, and set the options which allow our commands through
18179 # without removal of \ escapes.
18180 if test -n "${ZSH_VERSION+set}" ; then
18181 setopt NO_GLOB_SUBST
18183 # Now quote all the things that may contain metacharacters while being
18184 # careful not to overquote the AC_SUBSTed values. We take copies of the
18185 # variables and quote the copies for generation of the libtool script.
18186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18190 deplibs_check_method reload_flag reload_cmds need_locks \
18191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18192 lt_cv_sys_global_symbol_to_c_name_address \
18193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18194 old_postinstall_cmds old_postuninstall_cmds \
18198 lt_prog_compiler_wl_GCJ \
18199 lt_prog_compiler_pic_GCJ \
18200 lt_prog_compiler_static_GCJ \
18201 lt_prog_compiler_no_builtin_flag_GCJ \
18202 export_dynamic_flag_spec_GCJ \
18203 thread_safe_flag_spec_GCJ \
18204 whole_archive_flag_spec_GCJ \
18205 enable_shared_with_static_runtimes_GCJ \
18206 old_archive_cmds_GCJ \
18207 old_archive_from_new_cmds_GCJ \
18208 predep_objects_GCJ \
18209 postdep_objects_GCJ \
18212 compiler_lib_search_path_GCJ \
18214 archive_expsym_cmds_GCJ \
18215 postinstall_cmds_GCJ \
18216 postuninstall_cmds_GCJ \
18217 old_archive_from_expsyms_cmds_GCJ \
18218 allow_undefined_flag_GCJ \
18219 no_undefined_flag_GCJ \
18220 export_symbols_cmds_GCJ \
18221 hardcode_libdir_flag_spec_GCJ \
18222 hardcode_libdir_flag_spec_ld_GCJ \
18223 hardcode_libdir_separator_GCJ \
18224 hardcode_automatic_GCJ \
18226 module_expsym_cmds_GCJ \
18227 lt_cv_prog_compiler_c_o_GCJ \
18228 exclude_expsyms_GCJ \
18229 include_expsyms_GCJ; do
18232 old_archive_cmds_GCJ | \
18233 old_archive_from_new_cmds_GCJ | \
18234 archive_cmds_GCJ | \
18235 archive_expsym_cmds_GCJ | \
18236 module_cmds_GCJ | \
18237 module_expsym_cmds_GCJ | \
18238 old_archive_from_expsyms_cmds_GCJ | \
18239 export_symbols_cmds_GCJ | \
18240 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18241 postinstall_cmds | postuninstall_cmds | \
18242 old_postinstall_cmds | old_postuninstall_cmds | \
18243 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18244 # Double-quote double-evaled strings.
18245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18254 *'\$0 --fallback-echo"')
18255 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18261 cat <<__EOF__ >> "$cfgfile"
18262 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18264 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18266 # Shell to use when invoking shell scripts.
18269 # Whether or not to build shared libraries.
18270 build_libtool_libs=$enable_shared
18272 # Whether or not to build static libraries.
18273 build_old_libs=$enable_static
18275 # Whether or not to add -lc for building shared libraries.
18276 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18278 # Whether or not to disallow shared libs when runtime libs are static
18279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18281 # Whether or not to optimize for fast installation.
18282 fast_install=$enable_fast_install
18285 host_alias=$host_alias
18288 # An echo program that does not interpret backslashes.
18293 AR_FLAGS=$lt_AR_FLAGS
18298 # A language-specific compiler.
18299 CC=$lt_compiler_GCJ
18301 # Is the compiler the GNU C compiler?
18307 # The linker used to build libraries.
18310 # Whether we need hard or soft links.
18313 # A BSD-compatible nm program.
18316 # A symbol stripping program
18319 # Used to examine libraries when file_magic_cmd begins "file"
18320 MAGIC_CMD=$MAGIC_CMD
18322 # Used on cygwin: DLL creation program.
18325 # Used on cygwin: object dumper.
18328 # Used on cygwin: assembler.
18331 # The name of the directory that contains temporary libtool files.
18334 # How to create reloadable object files.
18335 reload_flag=$lt_reload_flag
18336 reload_cmds=$lt_reload_cmds
18338 # How to pass a linker flag through the compiler.
18339 wl=$lt_lt_prog_compiler_wl_GCJ
18341 # Object file suffix (normally "o").
18342 objext="$ac_objext"
18344 # Old archive suffix (normally "a").
18347 # Shared library suffix (normally ".so").
18348 shrext_cmds='$shrext_cmds'
18350 # Executable file suffix (normally "").
18353 # Additional compiler flags for building library objects.
18354 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18357 # What is the maximum length of a command?
18358 max_cmd_len=$lt_cv_sys_max_cmd_len
18360 # Does compiler simultaneously support -c and -o options?
18361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18363 # Must we lock files when doing compilation ?
18364 need_locks=$lt_need_locks
18366 # Do we need the lib prefix for modules?
18367 need_lib_prefix=$need_lib_prefix
18369 # Do we need a version for libraries?
18370 need_version=$need_version
18372 # Whether dlopen is supported.
18373 dlopen_support=$enable_dlopen
18375 # Whether dlopen of programs is supported.
18376 dlopen_self=$enable_dlopen_self
18378 # Whether dlopen of statically linked programs is supported.
18379 dlopen_self_static=$enable_dlopen_self_static
18381 # Compiler flag to prevent dynamic linking.
18382 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18384 # Compiler flag to turn off builtin functions.
18385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18387 # Compiler flag to allow reflexive dlopens.
18388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18390 # Compiler flag to generate shared objects directly from archives.
18391 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18393 # Compiler flag to generate thread-safe objects.
18394 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18396 # Library versioning type.
18397 version_type=$version_type
18399 # Format of library name prefix.
18400 libname_spec=$lt_libname_spec
18402 # List of archive names. First name is the real one, the rest are links.
18403 # The last name is the one that the linker finds with -lNAME.
18404 library_names_spec=$lt_library_names_spec
18406 # The coded name of the library, if different from the real name.
18407 soname_spec=$lt_soname_spec
18409 # Commands used to build and install an old-style archive.
18411 old_archive_cmds=$lt_old_archive_cmds_GCJ
18412 old_postinstall_cmds=$lt_old_postinstall_cmds
18413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18415 # Create an old-style archive from a shared archive.
18416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18418 # Create a temporary old-style archive to link instead of a shared archive.
18419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18421 # Commands used to build and install a shared archive.
18422 archive_cmds=$lt_archive_cmds_GCJ
18423 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18424 postinstall_cmds=$lt_postinstall_cmds
18425 postuninstall_cmds=$lt_postuninstall_cmds
18427 # Commands used to build a loadable module (assumed same as above if empty)
18428 module_cmds=$lt_module_cmds_GCJ
18429 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18431 # Commands to strip libraries.
18432 old_striplib=$lt_old_striplib
18433 striplib=$lt_striplib
18435 # Dependencies to place before the objects being linked to create a
18437 predep_objects=$lt_predep_objects_GCJ
18439 # Dependencies to place after the objects being linked to create a
18441 postdep_objects=$lt_postdep_objects_GCJ
18443 # Dependencies to place before the objects being linked to create a
18445 predeps=$lt_predeps_GCJ
18447 # Dependencies to place after the objects being linked to create a
18449 postdeps=$lt_postdeps_GCJ
18451 # The library search path used internally by the compiler when linking
18452 # a shared library.
18453 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18455 # Method to check whether dependent libraries are shared objects.
18456 deplibs_check_method=$lt_deplibs_check_method
18458 # Command to use when deplibs_check_method == file_magic.
18459 file_magic_cmd=$lt_file_magic_cmd
18461 # Flag that allows shared libraries with undefined symbols to be built.
18462 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18464 # Flag that forces no undefined symbols.
18465 no_undefined_flag=$lt_no_undefined_flag_GCJ
18467 # Commands used to finish a libtool library installation in a directory.
18468 finish_cmds=$lt_finish_cmds
18470 # Same as above, but a single script fragment to be evaled but not shown.
18471 finish_eval=$lt_finish_eval
18473 # Take the output of nm and produce a listing of raw symbols and C names.
18474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18476 # Transform the output of nm in a proper C declaration
18477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18479 # Transform the output of nm in a C name address pair
18480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18482 # This is the shared library runtime path variable.
18483 runpath_var=$runpath_var
18485 # This is the shared library path variable.
18486 shlibpath_var=$shlibpath_var
18488 # Is shlibpath searched before the hard-coded library search path?
18489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18491 # How to hardcode a shared library path into an executable.
18492 hardcode_action=$hardcode_action_GCJ
18494 # Whether we should hardcode library paths into libraries.
18495 hardcode_into_libs=$hardcode_into_libs
18497 # Flag to hardcode \$libdir into a binary during linking.
18498 # This must work even if \$libdir does not exist.
18499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18501 # If ld is used when linking, flag to hardcode \$libdir into
18502 # a binary during linking. This must work even if \$libdir does
18504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18506 # Whether we need a single -rpath flag with a separated argument.
18507 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18509 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18510 # resulting binary.
18511 hardcode_direct=$hardcode_direct_GCJ
18513 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18514 # resulting binary.
18515 hardcode_minus_L=$hardcode_minus_L_GCJ
18517 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18518 # the resulting binary.
18519 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18521 # Set to yes if building a shared library automatically hardcodes DIR into the library
18522 # and all subsequent libraries and executables linked against it.
18523 hardcode_automatic=$hardcode_automatic_GCJ
18525 # Variables whose values should be saved in libtool wrapper scripts and
18526 # restored at relink time.
18527 variables_saved_for_relink="$variables_saved_for_relink"
18529 # Whether libtool must link a program against all its dependency libraries.
18530 link_all_deplibs=$link_all_deplibs_GCJ
18532 # Compile-time system search path for libraries
18533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18535 # Run-time system search path for libraries
18536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18538 # Fix the shell variable \$srcfile for the compiler.
18539 fix_srcfile_path="$fix_srcfile_path_GCJ"
18541 # Set to yes if exported symbols are required.
18542 always_export_symbols=$always_export_symbols_GCJ
18544 # The commands to list exported symbols.
18545 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18547 # The commands to extract the exported symbol list from a shared archive.
18548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18550 # Symbols that should not be listed in the preloaded symbols.
18551 exclude_expsyms=$lt_exclude_expsyms_GCJ
18553 # Symbols that must always be exported.
18554 include_expsyms=$lt_include_expsyms_GCJ
18556 # ### END LIBTOOL TAG CONFIG: $tagname
18562 # If there is no Makefile yet, we rely on a make rule to execute
18563 # `config.status --recheck' to rerun these tests and create the
18564 # libtool script then.
18565 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18566 if test -f "$ltmain_in"; then
18567 test -f Makefile && make "$ltmain"
18573 ac_cpp='$CPP $CPPFLAGS'
18574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18589 # Source file extension for RC test sources.
18592 # Object file extension for compiled RC test sources.
18596 # Code to be used in simple compile tests
18597 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18599 # Code to be used in simple link tests
18600 lt_simple_link_test_code="$lt_simple_compile_test_code"
18602 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18604 # If no C compiler was specified, use CC.
18607 # Allow CC to be a program name with arguments.
18611 # Allow CC to be a program name with arguments.
18616 lt_cv_prog_compiler_c_o_RC=yes
18618 # The else clause should only fire when bootstrapping the
18619 # libtool distribution, otherwise you forgot to ship ltmain.sh
18620 # with your package, and you will get complaints that there are
18621 # no rules to generate ltmain.sh.
18622 if test -f "$ltmain"; then
18623 # See if we are running on zsh, and set the options which allow our commands through
18624 # without removal of \ escapes.
18625 if test -n "${ZSH_VERSION+set}" ; then
18626 setopt NO_GLOB_SUBST
18628 # Now quote all the things that may contain metacharacters while being
18629 # careful not to overquote the AC_SUBSTed values. We take copies of the
18630 # variables and quote the copies for generation of the libtool script.
18631 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18633 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18634 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18635 deplibs_check_method reload_flag reload_cmds need_locks \
18636 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18637 lt_cv_sys_global_symbol_to_c_name_address \
18638 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18639 old_postinstall_cmds old_postuninstall_cmds \
18643 lt_prog_compiler_wl_RC \
18644 lt_prog_compiler_pic_RC \
18645 lt_prog_compiler_static_RC \
18646 lt_prog_compiler_no_builtin_flag_RC \
18647 export_dynamic_flag_spec_RC \
18648 thread_safe_flag_spec_RC \
18649 whole_archive_flag_spec_RC \
18650 enable_shared_with_static_runtimes_RC \
18651 old_archive_cmds_RC \
18652 old_archive_from_new_cmds_RC \
18653 predep_objects_RC \
18654 postdep_objects_RC \
18657 compiler_lib_search_path_RC \
18659 archive_expsym_cmds_RC \
18660 postinstall_cmds_RC \
18661 postuninstall_cmds_RC \
18662 old_archive_from_expsyms_cmds_RC \
18663 allow_undefined_flag_RC \
18664 no_undefined_flag_RC \
18665 export_symbols_cmds_RC \
18666 hardcode_libdir_flag_spec_RC \
18667 hardcode_libdir_flag_spec_ld_RC \
18668 hardcode_libdir_separator_RC \
18669 hardcode_automatic_RC \
18671 module_expsym_cmds_RC \
18672 lt_cv_prog_compiler_c_o_RC \
18673 exclude_expsyms_RC \
18674 include_expsyms_RC; do
18677 old_archive_cmds_RC | \
18678 old_archive_from_new_cmds_RC | \
18679 archive_cmds_RC | \
18680 archive_expsym_cmds_RC | \
18682 module_expsym_cmds_RC | \
18683 old_archive_from_expsyms_cmds_RC | \
18684 export_symbols_cmds_RC | \
18685 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18686 postinstall_cmds | postuninstall_cmds | \
18687 old_postinstall_cmds | old_postuninstall_cmds | \
18688 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18689 # Double-quote double-evaled strings.
18690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18699 *'\$0 --fallback-echo"')
18700 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18706 cat <<__EOF__ >> "$cfgfile"
18707 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18711 # Shell to use when invoking shell scripts.
18714 # Whether or not to build shared libraries.
18715 build_libtool_libs=$enable_shared
18717 # Whether or not to build static libraries.
18718 build_old_libs=$enable_static
18720 # Whether or not to add -lc for building shared libraries.
18721 build_libtool_need_lc=$archive_cmds_need_lc_RC
18723 # Whether or not to disallow shared libs when runtime libs are static
18724 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18726 # Whether or not to optimize for fast installation.
18727 fast_install=$enable_fast_install
18730 host_alias=$host_alias
18733 # An echo program that does not interpret backslashes.
18738 AR_FLAGS=$lt_AR_FLAGS
18743 # A language-specific compiler.
18746 # Is the compiler the GNU C compiler?
18752 # The linker used to build libraries.
18755 # Whether we need hard or soft links.
18758 # A BSD-compatible nm program.
18761 # A symbol stripping program
18764 # Used to examine libraries when file_magic_cmd begins "file"
18765 MAGIC_CMD=$MAGIC_CMD
18767 # Used on cygwin: DLL creation program.
18770 # Used on cygwin: object dumper.
18773 # Used on cygwin: assembler.
18776 # The name of the directory that contains temporary libtool files.
18779 # How to create reloadable object files.
18780 reload_flag=$lt_reload_flag
18781 reload_cmds=$lt_reload_cmds
18783 # How to pass a linker flag through the compiler.
18784 wl=$lt_lt_prog_compiler_wl_RC
18786 # Object file suffix (normally "o").
18787 objext="$ac_objext"
18789 # Old archive suffix (normally "a").
18792 # Shared library suffix (normally ".so").
18793 shrext_cmds='$shrext_cmds'
18795 # Executable file suffix (normally "").
18798 # Additional compiler flags for building library objects.
18799 pic_flag=$lt_lt_prog_compiler_pic_RC
18802 # What is the maximum length of a command?
18803 max_cmd_len=$lt_cv_sys_max_cmd_len
18805 # Does compiler simultaneously support -c and -o options?
18806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18808 # Must we lock files when doing compilation ?
18809 need_locks=$lt_need_locks
18811 # Do we need the lib prefix for modules?
18812 need_lib_prefix=$need_lib_prefix
18814 # Do we need a version for libraries?
18815 need_version=$need_version
18817 # Whether dlopen is supported.
18818 dlopen_support=$enable_dlopen
18820 # Whether dlopen of programs is supported.
18821 dlopen_self=$enable_dlopen_self
18823 # Whether dlopen of statically linked programs is supported.
18824 dlopen_self_static=$enable_dlopen_self_static
18826 # Compiler flag to prevent dynamic linking.
18827 link_static_flag=$lt_lt_prog_compiler_static_RC
18829 # Compiler flag to turn off builtin functions.
18830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18832 # Compiler flag to allow reflexive dlopens.
18833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18835 # Compiler flag to generate shared objects directly from archives.
18836 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18838 # Compiler flag to generate thread-safe objects.
18839 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18841 # Library versioning type.
18842 version_type=$version_type
18844 # Format of library name prefix.
18845 libname_spec=$lt_libname_spec
18847 # List of archive names. First name is the real one, the rest are links.
18848 # The last name is the one that the linker finds with -lNAME.
18849 library_names_spec=$lt_library_names_spec
18851 # The coded name of the library, if different from the real name.
18852 soname_spec=$lt_soname_spec
18854 # Commands used to build and install an old-style archive.
18856 old_archive_cmds=$lt_old_archive_cmds_RC
18857 old_postinstall_cmds=$lt_old_postinstall_cmds
18858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18860 # Create an old-style archive from a shared archive.
18861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18863 # Create a temporary old-style archive to link instead of a shared archive.
18864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18866 # Commands used to build and install a shared archive.
18867 archive_cmds=$lt_archive_cmds_RC
18868 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18869 postinstall_cmds=$lt_postinstall_cmds
18870 postuninstall_cmds=$lt_postuninstall_cmds
18872 # Commands used to build a loadable module (assumed same as above if empty)
18873 module_cmds=$lt_module_cmds_RC
18874 module_expsym_cmds=$lt_module_expsym_cmds_RC
18876 # Commands to strip libraries.
18877 old_striplib=$lt_old_striplib
18878 striplib=$lt_striplib
18880 # Dependencies to place before the objects being linked to create a
18882 predep_objects=$lt_predep_objects_RC
18884 # Dependencies to place after the objects being linked to create a
18886 postdep_objects=$lt_postdep_objects_RC
18888 # Dependencies to place before the objects being linked to create a
18890 predeps=$lt_predeps_RC
18892 # Dependencies to place after the objects being linked to create a
18894 postdeps=$lt_postdeps_RC
18896 # The library search path used internally by the compiler when linking
18897 # a shared library.
18898 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18900 # Method to check whether dependent libraries are shared objects.
18901 deplibs_check_method=$lt_deplibs_check_method
18903 # Command to use when deplibs_check_method == file_magic.
18904 file_magic_cmd=$lt_file_magic_cmd
18906 # Flag that allows shared libraries with undefined symbols to be built.
18907 allow_undefined_flag=$lt_allow_undefined_flag_RC
18909 # Flag that forces no undefined symbols.
18910 no_undefined_flag=$lt_no_undefined_flag_RC
18912 # Commands used to finish a libtool library installation in a directory.
18913 finish_cmds=$lt_finish_cmds
18915 # Same as above, but a single script fragment to be evaled but not shown.
18916 finish_eval=$lt_finish_eval
18918 # Take the output of nm and produce a listing of raw symbols and C names.
18919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18921 # Transform the output of nm in a proper C declaration
18922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18924 # Transform the output of nm in a C name address pair
18925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18927 # This is the shared library runtime path variable.
18928 runpath_var=$runpath_var
18930 # This is the shared library path variable.
18931 shlibpath_var=$shlibpath_var
18933 # Is shlibpath searched before the hard-coded library search path?
18934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18936 # How to hardcode a shared library path into an executable.
18937 hardcode_action=$hardcode_action_RC
18939 # Whether we should hardcode library paths into libraries.
18940 hardcode_into_libs=$hardcode_into_libs
18942 # Flag to hardcode \$libdir into a binary during linking.
18943 # This must work even if \$libdir does not exist.
18944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18946 # If ld is used when linking, flag to hardcode \$libdir into
18947 # a binary during linking. This must work even if \$libdir does
18949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18951 # Whether we need a single -rpath flag with a separated argument.
18952 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18955 # resulting binary.
18956 hardcode_direct=$hardcode_direct_RC
18958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18959 # resulting binary.
18960 hardcode_minus_L=$hardcode_minus_L_RC
18962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18963 # the resulting binary.
18964 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18966 # Set to yes if building a shared library automatically hardcodes DIR into the library
18967 # and all subsequent libraries and executables linked against it.
18968 hardcode_automatic=$hardcode_automatic_RC
18970 # Variables whose values should be saved in libtool wrapper scripts and
18971 # restored at relink time.
18972 variables_saved_for_relink="$variables_saved_for_relink"
18974 # Whether libtool must link a program against all its dependency libraries.
18975 link_all_deplibs=$link_all_deplibs_RC
18977 # Compile-time system search path for libraries
18978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18980 # Run-time system search path for libraries
18981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18983 # Fix the shell variable \$srcfile for the compiler.
18984 fix_srcfile_path="$fix_srcfile_path_RC"
18986 # Set to yes if exported symbols are required.
18987 always_export_symbols=$always_export_symbols_RC
18989 # The commands to list exported symbols.
18990 export_symbols_cmds=$lt_export_symbols_cmds_RC
18992 # The commands to extract the exported symbol list from a shared archive.
18993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18995 # Symbols that should not be listed in the preloaded symbols.
18996 exclude_expsyms=$lt_exclude_expsyms_RC
18998 # Symbols that must always be exported.
18999 include_expsyms=$lt_include_expsyms_RC
19001 # ### END LIBTOOL TAG CONFIG: $tagname
19007 # If there is no Makefile yet, we rely on a make rule to execute
19008 # `config.status --recheck' to rerun these tests and create the
19009 # libtool script then.
19010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19011 if test -f "$ltmain_in"; then
19012 test -f Makefile && make "$ltmain"
19018 ac_cpp='$CPP $CPPFLAGS'
19019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19029 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19030 { (exit 1); exit 1; }; }
19034 # Append the new tag name to the list of available tags.
19035 if test -n "$tagname" ; then
19036 available_tags="$available_tags $tagname"
19042 # Now substitute the updated list of available tags.
19043 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19044 mv "${ofile}T" "$ofile"
19048 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19049 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19050 { (exit 1); exit 1; }; }
19056 # This can be used to rebuild libtool when needed
19057 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19059 # Always use our own libtool.
19060 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19062 # Prevent multiple expansion
19084 ac_cpp='$CXXCPP $CPPFLAGS'
19085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19090 # Check for a sane C/C++ build environment.
19091 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19092 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19093 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19094 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19097 cat >conftest.make <<\_ACEOF
19099 @echo 'ac_maketemp="$(MAKE)"'
19101 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19102 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19103 if test -n "$ac_maketemp"; then
19104 eval ac_cv_prog_make_${ac_make}_set=yes
19106 eval ac_cv_prog_make_${ac_make}_set=no
19108 rm -f conftest.make
19110 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19111 echo "$as_me:$LINENO: result: yes" >&5
19112 echo "${ECHO_T}yes" >&6
19115 echo "$as_me:$LINENO: result: no" >&5
19116 echo "${ECHO_T}no" >&6
19117 SET_MAKE="MAKE=${MAKE-make}"
19120 # Find a good install program. We prefer a C program (faster),
19121 # so one script is as good as another. But avoid the broken or
19122 # incompatible versions:
19123 # SysV /etc/install, /usr/sbin/install
19124 # SunOS /usr/etc/install
19125 # IRIX /sbin/install
19127 # AmigaOS /C/install, which installs bootblocks on floppy discs
19128 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19129 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19130 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19131 # OS/2's system install, which has a completely different semantic
19132 # ./install, which can be erroneously created by make from ./install.sh.
19133 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19134 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19135 if test -z "$INSTALL"; then
19136 if test "${ac_cv_path_install+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19140 for as_dir in $PATH
19143 test -z "$as_dir" && as_dir=.
19144 # Account for people who put trailing slashes in PATH elements.
19146 ./ | .// | /cC/* | \
19147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19148 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19151 # OSF1 and SCO ODT 3.0 have their own names for install.
19152 # Don't use installbsd from OSF since it installs stuff as root
19154 for ac_prog in ginstall scoinst install; do
19155 for ac_exec_ext in '' $ac_executable_extensions; do
19156 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19157 if test $ac_prog = install &&
19158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19159 # AIX install. It has an incompatible calling convention.
19161 elif test $ac_prog = install &&
19162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19163 # program-specific install script used by HP pwplus--don't use.
19166 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19178 if test "${ac_cv_path_install+set}" = set; then
19179 INSTALL=$ac_cv_path_install
19181 # As a last resort, use the slow shell script. We don't cache a
19182 # path for INSTALL within a source directory, because that will
19183 # break other packages using the cache if that directory is
19184 # removed, or if the path is relative.
19185 INSTALL=$ac_install_sh
19188 echo "$as_me:$LINENO: result: $INSTALL" >&5
19189 echo "${ECHO_T}$INSTALL" >&6
19191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19192 # It thinks the first close brace ends the variable substitution.
19193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19200 ac_cpp='$CXXCPP $CPPFLAGS'
19201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19204 if test -n "$ac_tool_prefix"; then
19205 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19209 echo "$as_me:$LINENO: checking for $ac_word" >&5
19210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19211 if test "${ac_cv_prog_CXX+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19214 if test -n "$CXX"; then
19215 ac_cv_prog_CXX="$CXX" # Let the user override the test.
19217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19218 for as_dir in $PATH
19221 test -z "$as_dir" && as_dir=.
19222 for ac_exec_ext in '' $ac_executable_extensions; do
19223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19224 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19233 CXX=$ac_cv_prog_CXX
19234 if test -n "$CXX"; then
19235 echo "$as_me:$LINENO: result: $CXX" >&5
19236 echo "${ECHO_T}$CXX" >&6
19238 echo "$as_me:$LINENO: result: no" >&5
19239 echo "${ECHO_T}no" >&6
19242 test -n "$CXX" && break
19245 if test -z "$CXX"; then
19247 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19249 # Extract the first word of "$ac_prog", so it can be a program name with args.
19250 set dummy $ac_prog; ac_word=$2
19251 echo "$as_me:$LINENO: checking for $ac_word" >&5
19252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19253 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 if test -n "$ac_ct_CXX"; then
19257 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19260 for as_dir in $PATH
19263 test -z "$as_dir" && as_dir=.
19264 for ac_exec_ext in '' $ac_executable_extensions; do
19265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19266 ac_cv_prog_ac_ct_CXX="$ac_prog"
19267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19275 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19276 if test -n "$ac_ct_CXX"; then
19277 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19278 echo "${ECHO_T}$ac_ct_CXX" >&6
19280 echo "$as_me:$LINENO: result: no" >&5
19281 echo "${ECHO_T}no" >&6
19284 test -n "$ac_ct_CXX" && break
19286 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
19292 # Provide some information about the compiler.
19293 echo "$as_me:$LINENO:" \
19294 "checking for C++ compiler version" >&5
19295 ac_compiler=`set X $ac_compile; echo $2`
19296 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19297 (eval $ac_compiler --version </dev/null >&5) 2>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }
19301 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19302 (eval $ac_compiler -v </dev/null >&5) 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }
19306 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19307 (eval $ac_compiler -V </dev/null >&5) 2>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }
19312 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19313 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
19314 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 cat >conftest.$ac_ext <<_ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h. */
19335 rm -f conftest.$ac_objext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19337 (eval $ac_compile) 2>conftest.er1
19339 grep -v '^ *+' conftest.er1 >conftest.err
19341 cat conftest.err >&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } &&
19344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346 (eval $ac_try) 2>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; } &&
19350 { ac_try='test -s conftest.$ac_objext'
19351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; }; then
19356 ac_compiler_gnu=yes
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19364 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19367 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19368 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
19369 GXX=`test $ac_compiler_gnu = yes && echo yes`
19370 ac_test_CXXFLAGS=${CXXFLAGS+set}
19371 ac_save_CXXFLAGS=$CXXFLAGS
19373 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19374 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
19375 if test "${ac_cv_prog_cxx_g+set}" = set; then
19376 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 cat >conftest.$ac_ext <<_ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19393 rm -f conftest.$ac_objext
19394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19395 (eval $ac_compile) 2>conftest.er1
19397 grep -v '^ *+' conftest.er1 >conftest.err
19399 cat conftest.err >&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } &&
19402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try='test -s conftest.$ac_objext'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_cv_prog_cxx_g=yes
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19419 ac_cv_prog_cxx_g=no
19421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19423 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19424 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
19425 if test "$ac_test_CXXFLAGS" = set; then
19426 CXXFLAGS=$ac_save_CXXFLAGS
19427 elif test $ac_cv_prog_cxx_g = yes; then
19428 if test "$GXX" = yes; then
19434 if test "$GXX" = yes; then
19440 for ac_declaration in \
19442 'extern "C" void std::exit (int) throw (); using std::exit;' \
19443 'extern "C" void std::exit (int); using std::exit;' \
19444 'extern "C" void exit (int) throw ();' \
19445 'extern "C" void exit (int);' \
19448 cat >conftest.$ac_ext <<_ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19455 #include <stdlib.h>
19464 rm -f conftest.$ac_objext
19465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19466 (eval $ac_compile) 2>conftest.er1
19468 grep -v '^ *+' conftest.er1 >conftest.err
19470 cat conftest.err >&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
19473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; } &&
19479 { ac_try='test -s conftest.$ac_objext'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19493 cat >conftest.$ac_ext <<_ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19508 rm -f conftest.$ac_objext
19509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510 (eval $ac_compile) 2>conftest.er1
19512 grep -v '^ *+' conftest.er1 >conftest.err
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } &&
19517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19531 echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19538 if test -n "$ac_declaration"; then
19539 echo '#ifdef __cplusplus' >>confdefs.h
19540 echo $ac_declaration >>confdefs.h
19541 echo '#endif' >>confdefs.h
19545 ac_cpp='$CXXCPP $CPPFLAGS'
19546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19550 depcc="$CXX" am_compiler_list=
19552 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19553 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19554 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19557 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19558 # We make a subdir and do the tests there. Otherwise we can end up
19559 # making bogus files that we don't know about and never remove. For
19560 # instance it was reported that on HP-UX the gcc test will end up
19561 # making a dummy file named `D' -- because `-MD' means `put the output
19564 # Copy depcomp to subdir because otherwise we won't find it if we're
19565 # using a relative directory.
19566 cp "$am_depcomp" conftest.dir
19568 # We will build objects and dependencies in a subdirectory because
19569 # it helps to detect inapplicable dependency modes. For instance
19570 # both Tru64's cc and ICC support -MD to output dependencies as a
19571 # side effect of compilation, but ICC will put the dependencies in
19572 # the current directory while Tru64 will put them in the object
19576 am_cv_CXX_dependencies_compiler_type=none
19577 if test "$am_compiler_list" = ""; then
19578 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19580 for depmode in $am_compiler_list; do
19581 # Setup a source with many dependencies, because some compilers
19582 # like to wrap large dependency lists on column 80 (with \), and
19583 # we should not choose a depcomp mode which is confused by this.
19585 # We need to recreate these files for each test, as the compiler may
19586 # overwrite some of them when testing with obscure command lines.
19587 # This happens at least with the AIX C compiler.
19589 for i in 1 2 3 4 5 6; do
19590 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19591 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19592 # Solaris 8's {/usr,}/bin/sh.
19593 touch sub/conftst$i.h
19595 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19599 # after this tag, mechanisms are not by side-effect, so they'll
19600 # only be used when explicitly requested
19601 if test "x$enable_dependency_tracking" = xyes; then
19609 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19610 # mode. It turns out that the SunPro C++ compiler does not properly
19611 # handle `-M -o', and we need to detect this.
19612 if depmode=$depmode \
19613 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19614 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19615 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19616 >/dev/null 2>conftest.err &&
19617 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19618 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19619 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19620 # icc doesn't choke on unknown options, it will just issue warnings
19621 # or remarks (even with -Werror). So we grep stderr for any message
19622 # that says an option was ignored or not supported.
19623 # When given -MP, icc 7.0 and 7.1 complain thusly:
19624 # icc: Command line warning: ignoring option '-M'; no argument required
19625 # The diagnosis changed in icc 8.0:
19626 # icc: Command line remark: option '-MP' not supported
19627 if (grep 'ignoring option' conftest.err ||
19628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19629 am_cv_CXX_dependencies_compiler_type=$depmode
19636 rm -rf conftest.dir
19638 am_cv_CXX_dependencies_compiler_type=none
19642 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19643 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19644 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19649 test "x$enable_dependency_tracking" != xno \
19650 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19651 am__fastdepCXX_TRUE=
19652 am__fastdepCXX_FALSE='#'
19654 am__fastdepCXX_TRUE='#'
19655 am__fastdepCXX_FALSE=
19660 # Check if 'long long' or 'long double' are available and use them instead.
19661 echo "$as_me:$LINENO: checking for long long" >&5
19662 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19663 if test "${ac_cv_type_long_long+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 $ac_includes_default
19676 if ((long long *) 0)
19678 if (sizeof (long long))
19684 rm -f conftest.$ac_objext
19685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19686 (eval $ac_compile) 2>conftest.er1
19688 grep -v '^ *+' conftest.er1 >conftest.err
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest.$ac_objext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_cv_type_long_long=yes
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710 ac_cv_type_long_long=no
19712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19715 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19716 if test $ac_cv_type_long_long = yes; then
19717 TYPE_INT="long long"
19724 echo "$as_me:$LINENO: checking for long double" >&5
19725 echo $ECHO_N "checking for long double... $ECHO_C" >&6
19726 if test "${ac_cv_type_long_double+set}" = set; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19729 cat >conftest.$ac_ext <<_ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 $ac_includes_default
19739 if ((long double *) 0)
19741 if (sizeof (long double))
19747 rm -f conftest.$ac_objext
19748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19749 (eval $ac_compile) 2>conftest.er1
19751 grep -v '^ *+' conftest.er1 >conftest.err
19753 cat conftest.err >&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } &&
19756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758 (eval $ac_try) 2>&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; } &&
19762 { ac_try='test -s conftest.$ac_objext'
19763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764 (eval $ac_try) 2>&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; }; then
19768 ac_cv_type_long_double=yes
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 ac_cv_type_long_double=no
19775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19777 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
19778 echo "${ECHO_T}$ac_cv_type_long_double" >&6
19779 if test $ac_cv_type_long_double = yes; then
19780 TYPE_FLOAT="long double"
19788 # Conditionally build iostream wrappers
19789 # Check whether --enable-iostream or --disable-iostream was given.
19790 if test "${enable_iostream+set}" = set; then
19791 enableval="$enable_iostream"
19795 if test ${enable_iostream:=yes} = yes; then
19796 echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
19797 echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
19798 if test "${ac_cv_lib_stdcpp_main+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 ac_check_lib_save_LIBS=$LIBS
19802 LIBS="-lstdc++ $LIBS"
19803 cat >conftest.$ac_ext <<_ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19821 (eval $ac_link) 2>conftest.er1
19823 grep -v '^ *+' conftest.er1 >conftest.err
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } &&
19828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; } &&
19834 { ac_try='test -s conftest$ac_exeext'
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; }; then
19840 ac_cv_lib_stdcpp_main=yes
19842 echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19845 ac_cv_lib_stdcpp_main=no
19847 rm -f conftest.err conftest.$ac_objext \
19848 conftest$ac_exeext conftest.$ac_ext
19849 LIBS=$ac_check_lib_save_LIBS
19851 echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
19852 echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
19853 if test $ac_cv_lib_stdcpp_main = yes; then
19866 # Conditionally build std::string methods
19867 # Check whether --enable-string or --disable-string was given.
19868 if test "${enable_string+set}" = set; then
19869 enableval="$enable_string"
19873 if test ${enable_string:=yes} = yes; then
19874 echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
19875 echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
19876 if test "${ac_cv_lib_stdcpp_main+set}" = set; then
19877 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 ac_check_lib_save_LIBS=$LIBS
19880 LIBS="-lstdc++ $LIBS"
19881 cat >conftest.$ac_ext <<_ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19897 rm -f conftest.$ac_objext conftest$ac_exeext
19898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19899 (eval $ac_link) 2>conftest.er1
19901 grep -v '^ *+' conftest.er1 >conftest.err
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
19906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; } &&
19912 { ac_try='test -s conftest$ac_exeext'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
19918 ac_cv_lib_stdcpp_main=yes
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19923 ac_cv_lib_stdcpp_main=no
19925 rm -f conftest.err conftest.$ac_objext \
19926 conftest$ac_exeext conftest.$ac_ext
19927 LIBS=$ac_check_lib_save_LIBS
19929 echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
19930 echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
19931 if test $ac_cv_lib_stdcpp_main = yes; then
19944 # Check if we are using the ISO standard C++ library
19946 # Check whether --with-iso or --without-iso was given.
19947 if test "${with_iso+set}" = set; then
19948 withval="$with_iso"
19952 if test x${with_iso} = xyes; then
19955 elif test x${with_iso} = xno; then
19959 echo "$as_me:$LINENO: checking for std::basic_istream<char>" >&5
19960 echo $ECHO_N "checking for std::basic_istream<char>... $ECHO_C" >&6
19961 if test "${ac_cv_type_std__basic_istream_char_+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19964 cat >conftest.$ac_ext <<_ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h. */
19970 #include <iostream>
19975 if ((std::basic_istream<char> *) 0)
19977 if (sizeof (std::basic_istream<char>))
19983 rm -f conftest.$ac_objext
19984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19985 (eval $ac_compile) 2>conftest.er1
19987 grep -v '^ *+' conftest.er1 >conftest.err
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } &&
19992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest.$ac_objext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 ac_cv_type_std__basic_istream_char_=yes
20006 echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20009 ac_cv_type_std__basic_istream_char_=no
20011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20013 echo "$as_me:$LINENO: result: $ac_cv_type_std__basic_istream_char_" >&5
20014 echo "${ECHO_T}$ac_cv_type_std__basic_istream_char_" >&6
20015 if test $ac_cv_type_std__basic_istream_char_ = yes; then
20025 # Conditionally build with 'math.h' (and maybe library) dependencies
20027 # Check whether --with-math or --without-math was given.
20028 if test "${with_math+set}" = set; then
20029 withval="$with_math"
20033 if test ${with_math:=yes} = yes; then
20034 echo "$as_me:$LINENO: checking for ldexp" >&5
20035 echo $ECHO_N "checking for ldexp... $ECHO_C" >&6
20036 if test "${ac_cv_func_ldexp+set}" = set; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 /* Define ldexp to an innocuous variant, in case <limits.h> declares ldexp.
20046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20047 #define ldexp innocuous_ldexp
20049 /* System header to define __stub macros and hopefully few prototypes,
20050 which can conflict with char ldexp (); below.
20051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20052 <limits.h> exists even on freestanding compilers. */
20055 # include <limits.h>
20057 # include <assert.h>
20062 /* Override any gcc2 internal prototype to avoid an error. */
20067 /* We use char because int might match the return type of a gcc2
20068 builtin and then its argument prototype would still apply. */
20070 /* The GNU C library defines this for functions which it implements
20071 to always fail with ENOSYS. Some functions are actually named
20072 something starting with __ and the normal name is an alias. */
20073 #if defined (__stub_ldexp) || defined (__stub___ldexp)
20076 char (*f) () = ldexp;
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20092 (eval $ac_link) 2>conftest.er1
20094 grep -v '^ *+' conftest.er1 >conftest.err
20096 cat conftest.err >&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } &&
20099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest$ac_exeext'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 ac_cv_func_ldexp=yes
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 ac_cv_func_ldexp=no
20118 rm -f conftest.err conftest.$ac_objext \
20119 conftest$ac_exeext conftest.$ac_ext
20121 echo "$as_me:$LINENO: result: $ac_cv_func_ldexp" >&5
20122 echo "${ECHO_T}$ac_cv_func_ldexp" >&6
20123 if test $ac_cv_func_ldexp = yes; then
20136 cat >confcache <<\_ACEOF
20137 # This file is a shell script that caches the results of configure
20138 # tests run on this system so they can be shared between configure
20139 # scripts and configure runs, see configure's option --config-cache.
20140 # It is not useful on other systems. If it contains results you don't
20141 # want to keep, you may remove or edit it.
20143 # config.status only pays attention to the cache file if you give it
20144 # the --recheck option to rerun configure.
20146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20148 # following values.
20152 # The following way of writing the cache mishandles newlines in values,
20153 # but we know of no workaround that is simple, portable, and efficient.
20154 # So, don't put newlines in cache variables' values.
20155 # Ultrix sh set writes to stderr and can't be redirected directly,
20156 # and sets the high bit in the cache file unless we assign to the vars.
20159 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20161 # `set' does not quote correctly, so add quotes (double-quote
20162 # substitution turns \\\\ into \\, and sed turns \\ into \).
20165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20168 # `set' quotes correctly as required by POSIX, so do not add quotes.
20170 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20177 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20179 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20181 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20182 if test -w $cache_file; then
20183 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20184 cat confcache >$cache_file
20186 echo "not updating unwritable cache $cache_file"
20191 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20192 # Let make expand exec_prefix.
20193 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20195 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20196 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20197 # trailing colons and then remove the whole line if VPATH becomes empty
20198 # (actually we leave an empty line to preserve line numbers).
20199 if test "x$srcdir" = x.; then
20200 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20201 s/:*\$(srcdir):*/:/;
20202 s/:*\${srcdir}:*/:/;
20204 s/^\([^=]*=[ ]*\):*/\1/;
20210 # Transform confdefs.h into DEFS.
20211 # Protect against shell expansion while executing Makefile rules.
20212 # Protect against Makefile macro expansion.
20214 # If the first sed substitution is executed (which looks for macros that
20215 # take arguments), then we branch to the quote section. Otherwise,
20216 # look for a macro that doesn't take arguments.
20217 cat >confdef2opt.sed <<\_ACEOF
20220 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
20222 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
20226 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
20232 # We use echo to avoid assuming a particular line-breaking character.
20233 # The extra dot is to prevent the shell from consuming trailing
20234 # line-breaks from the sub-command output. A line-break within
20235 # single-quotes doesn't work because, if this script is created in a
20236 # platform that uses two characters for line-breaks (e.g., DOS), tr
20238 ac_LF_and_DOT=`echo; echo .`
20239 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20240 rm -f confdef2opt.sed
20245 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20246 # 1. Remove the extension, and $U if already installed.
20247 ac_i=`echo "$ac_i" |
20248 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20250 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20251 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20253 LIBOBJS=$ac_libobjs
20255 LTLIBOBJS=$ac_ltlibobjs
20258 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20259 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20260 Usually this means the macro was only invoked conditionally." >&5
20261 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20262 Usually this means the macro was only invoked conditionally." >&2;}
20263 { (exit 1); exit 1; }; }
20265 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20266 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20267 Usually this means the macro was only invoked conditionally." >&5
20268 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20269 Usually this means the macro was only invoked conditionally." >&2;}
20270 { (exit 1); exit 1; }; }
20272 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20273 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20274 Usually this means the macro was only invoked conditionally." >&5
20275 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20276 Usually this means the macro was only invoked conditionally." >&2;}
20277 { (exit 1); exit 1; }; }
20279 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20280 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20281 Usually this means the macro was only invoked conditionally." >&5
20282 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20283 Usually this means the macro was only invoked conditionally." >&2;}
20284 { (exit 1); exit 1; }; }
20286 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20287 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20288 Usually this means the macro was only invoked conditionally." >&5
20289 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20290 Usually this means the macro was only invoked conditionally." >&2;}
20291 { (exit 1); exit 1; }; }
20294 : ${CONFIG_STATUS=./config.status}
20295 ac_clean_files_save=$ac_clean_files
20296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20297 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20298 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20299 cat >$CONFIG_STATUS <<_ACEOF
20301 # Generated by $as_me.
20302 # Run this file to recreate the current configuration.
20303 # Compiler output produced by configure, useful for debugging
20304 # configure, is in config.log if it exists.
20307 ac_cs_recheck=false
20309 SHELL=\${CONFIG_SHELL-$SHELL}
20312 cat >>$CONFIG_STATUS <<\_ACEOF
20313 ## --------------------- ##
20314 ## M4sh Initialization. ##
20315 ## --------------------- ##
20317 # Be Bourne compatible
20318 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20321 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20322 # is contrary to our usage. Disable this feature.
20323 alias -g '${1+"$@"}'='"$@"'
20324 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20327 DUALCASE=1; export DUALCASE # for MKS sh
20329 # Support unset when possible.
20330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20337 # Work around bugs in pre-3.0 UWIN ksh.
20338 $as_unset ENV MAIL MAILPATH
20345 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20346 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20347 LC_TELEPHONE LC_TIME
20349 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20350 eval $as_var=C; export $as_var
20356 # Required to use basename.
20357 if expr a : '\(a\)' >/dev/null 2>&1; then
20363 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20364 as_basename=basename
20370 # Name of the executable.
20371 as_me=`$as_basename "$0" ||
20372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20373 X"$0" : 'X\(//\)$' \| \
20374 X"$0" : 'X\(/\)$' \| \
20375 . : '\(.\)' 2>/dev/null ||
20377 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20378 /^X\/\(\/\/\)$/{ s//\1/; q; }
20379 /^X\/\(\/\).*/{ s//\1/; q; }
20383 # PATH needs CR, and LINENO needs CR and PATH.
20384 # Avoid depending upon Character Ranges.
20385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20388 as_cr_digits='0123456789'
20389 as_cr_alnum=$as_cr_Letters$as_cr_digits
20391 # The user is always right.
20392 if test "${PATH_SEPARATOR+set}" != set; then
20393 echo "#! /bin/sh" >conf$$.sh
20394 echo "exit 0" >>conf$$.sh
20396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20405 as_lineno_1=$LINENO
20406 as_lineno_2=$LINENO
20407 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20408 test "x$as_lineno_1" != "x$as_lineno_2" &&
20409 test "x$as_lineno_3" = "x$as_lineno_2" || {
20410 # Find who we are. Look in the path if we contain no path at all
20413 *[\\/]* ) as_myself=$0 ;;
20414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20415 for as_dir in $PATH
20418 test -z "$as_dir" && as_dir=.
20419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20424 # We did not find ourselves, most probably we were run as `sh COMMAND'
20425 # in which case we are not to be found in the path.
20426 if test "x$as_myself" = x; then
20429 if test ! -f "$as_myself"; then
20430 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20431 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20432 { (exit 1); exit 1; }; }
20434 case $CONFIG_SHELL in
20436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20437 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20440 test -z "$as_dir" && as_dir=.
20441 for as_base in sh bash ksh sh5; do
20444 if ("$as_dir/$as_base" -c '
20445 as_lineno_1=$LINENO
20446 as_lineno_2=$LINENO
20447 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20448 test "x$as_lineno_1" != "x$as_lineno_2" &&
20449 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20450 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20451 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20452 CONFIG_SHELL=$as_dir/$as_base
20453 export CONFIG_SHELL
20454 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20462 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20463 # uniformly replaced by the line number. The first 'sed' inserts a
20464 # line-number line before each line; the second 'sed' does the real
20465 # work. The second script uses 'N' to pair each line-number line
20466 # with the numbered line, and appends trailing '-' during
20467 # substitution so that $LINENO is not a special case at line end.
20468 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20469 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20470 sed '=' <$as_myself |
20475 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20478 s,^['$as_cr_digits']*\n,,
20479 ' >$as_me.lineno &&
20480 chmod +x $as_me.lineno ||
20481 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20482 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20483 { (exit 1); exit 1; }; }
20485 # Don't try to exec as it changes $[0], causing all sort of problems
20486 # (the dirname of $[0] is not the place where we might find the
20487 # original and so on. Autoconf is especially sensible to this).
20489 # Exit status is that of the last command.
20494 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20495 *c*,-n*) ECHO_N= ECHO_C='
20497 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20498 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20501 if expr a : '\(a\)' >/dev/null 2>&1; then
20507 rm -f conf$$ conf$$.exe conf$$.file
20509 if ln -s conf$$.file conf$$ 2>/dev/null; then
20510 # We could just check for DJGPP; but this test a) works b) is more generic
20511 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20512 if test -f conf$$.exe; then
20513 # Don't use ln at all; we don't have any links
20518 elif ln conf$$.file conf$$ 2>/dev/null; then
20523 rm -f conf$$ conf$$.exe conf$$.file
20525 if mkdir -p . 2>/dev/null; then
20528 test -d ./-p && rmdir ./-p
20532 as_executable_p="test -f"
20534 # Sed expression to map a string onto a valid CPP name.
20535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20537 # Sed expression to map a string onto a valid variable name.
20538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20542 # We need space, tab and new line, in precisely that order.
20552 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20553 # report actual input values of CONFIG_FILES etc. instead of their
20554 # values after options handling. Logging --version etc. is OK.
20558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20559 ## Running $as_me. ##
20564 This file was extended by binio $as_me 1.4, which was
20565 generated by GNU Autoconf 2.59. Invocation command line was
20567 CONFIG_FILES = $CONFIG_FILES
20568 CONFIG_HEADERS = $CONFIG_HEADERS
20569 CONFIG_LINKS = $CONFIG_LINKS
20570 CONFIG_COMMANDS = $CONFIG_COMMANDS
20574 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20578 # Files that config.status was made for.
20579 if test -n "$ac_config_files"; then
20580 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20583 if test -n "$ac_config_headers"; then
20584 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20587 if test -n "$ac_config_links"; then
20588 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20591 if test -n "$ac_config_commands"; then
20592 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20595 cat >>$CONFIG_STATUS <<\_ACEOF
20598 \`$as_me' instantiates files from templates according to the
20599 current configuration.
20601 Usage: $0 [OPTIONS] [FILE]...
20603 -h, --help print this help, then exit
20604 -V, --version print version number, then exit
20605 -q, --quiet do not print progress messages
20606 -d, --debug don't remove temporary files
20607 --recheck update $as_me by reconfiguring in the same conditions
20608 --file=FILE[:TEMPLATE]
20609 instantiate the configuration file FILE
20611 Configuration files:
20614 Configuration commands:
20617 Report bugs to <bug-autoconf@gnu.org>."
20620 cat >>$CONFIG_STATUS <<_ACEOF
20622 binio config.status 1.4
20623 configured by $0, generated by GNU Autoconf 2.59,
20624 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20626 Copyright (C) 2003 Free Software Foundation, Inc.
20627 This config.status script is free software; the Free Software Foundation
20628 gives unlimited permission to copy, distribute and modify it."
20633 cat >>$CONFIG_STATUS <<\_ACEOF
20634 # If no file are specified by the user, then we need to provide default
20635 # value. By we need to know if files were specified by the user.
20641 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20642 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20650 *) # This is not an option, so the user has probably given explicit
20653 ac_need_defaults=false;;
20657 # Handling of the options.
20659 cat >>$CONFIG_STATUS <<\_ACEOF
20660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20662 --version | --vers* | -V )
20663 echo "$ac_cs_version"; exit 0 ;;
20665 # Conflict between --help and --header
20666 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20667 Try \`$0 --help' for more information." >&5
20668 echo "$as_me: error: ambiguous option: $1
20669 Try \`$0 --help' for more information." >&2;}
20670 { (exit 1); exit 1; }; };;
20671 --help | --hel | -h )
20672 echo "$ac_cs_usage"; exit 0 ;;
20673 --debug | --d* | -d )
20675 --file | --fil | --fi | --f )
20677 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20678 ac_need_defaults=false;;
20679 --header | --heade | --head | --hea )
20681 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20682 ac_need_defaults=false;;
20683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20684 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20687 # This is an error.
20688 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20689 Try \`$0 --help' for more information." >&5
20690 echo "$as_me: error: unrecognized option: $1
20691 Try \`$0 --help' for more information." >&2;}
20692 { (exit 1); exit 1; }; } ;;
20694 *) ac_config_targets="$ac_config_targets $1" ;;
20700 ac_configure_extra_args=
20702 if $ac_cs_silent; then
20704 ac_configure_extra_args="$ac_configure_extra_args --silent"
20708 cat >>$CONFIG_STATUS <<_ACEOF
20709 if \$ac_cs_recheck; then
20710 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20711 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20716 cat >>$CONFIG_STATUS <<_ACEOF
20718 # INIT-COMMANDS section.
20721 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20727 cat >>$CONFIG_STATUS <<\_ACEOF
20728 for ac_config_target in $ac_config_targets
20730 case "$ac_config_target" in
20731 # Handling of arguments.
20732 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20733 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20734 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20735 "src/binio.h" ) CONFIG_FILES="$CONFIG_FILES src/binio.h" ;;
20736 "libbinio.pc" ) CONFIG_FILES="$CONFIG_FILES libbinio.pc" ;;
20737 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20738 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20740 { (exit 1); exit 1; }; };;
20744 # If the user did not use the arguments to specify the items to instantiate,
20745 # then the envvar interface is used. Set only those that are not.
20746 # We use the long form for the default assignment because of an extremely
20747 # bizarre bug on SunOS 4.1.3.
20748 if $ac_need_defaults; then
20749 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20753 # Have a temporary directory for convenience. Make it in the build tree
20754 # simply because there is no reason to put it here, and in addition,
20755 # creating and moving files from /tmp can sometimes cause problems.
20756 # Create a temporary directory, and hook for its removal unless debugging.
20759 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20760 trap '{ (exit 1); exit 1; }' 1 2 13 15
20763 # Create a (secure) tmp directory for tmp files.
20766 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20767 test -n "$tmp" && test -d "$tmp"
20770 tmp=./confstat$$-$RANDOM
20771 (umask 077 && mkdir $tmp)
20774 echo "$me: cannot create a temporary directory in ." >&2
20775 { (exit 1); exit 1; }
20780 cat >>$CONFIG_STATUS <<_ACEOF
20783 # CONFIG_FILES section.
20786 # No need to generate the scripts if there are no CONFIG_FILES.
20787 # This happens for instance when ./config.status config.h
20788 if test -n "\$CONFIG_FILES"; then
20789 # Protect against being on the right side of a sed subst in config.status.
20790 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20791 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20792 s,@SHELL@,$SHELL,;t t
20793 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20794 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20795 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20796 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20797 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20798 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20799 s,@exec_prefix@,$exec_prefix,;t t
20800 s,@prefix@,$prefix,;t t
20801 s,@program_transform_name@,$program_transform_name,;t t
20802 s,@bindir@,$bindir,;t t
20803 s,@sbindir@,$sbindir,;t t
20804 s,@libexecdir@,$libexecdir,;t t
20805 s,@datadir@,$datadir,;t t
20806 s,@sysconfdir@,$sysconfdir,;t t
20807 s,@sharedstatedir@,$sharedstatedir,;t t
20808 s,@localstatedir@,$localstatedir,;t t
20809 s,@libdir@,$libdir,;t t
20810 s,@includedir@,$includedir,;t t
20811 s,@oldincludedir@,$oldincludedir,;t t
20812 s,@infodir@,$infodir,;t t
20813 s,@mandir@,$mandir,;t t
20814 s,@build_alias@,$build_alias,;t t
20815 s,@host_alias@,$host_alias,;t t
20816 s,@target_alias@,$target_alias,;t t
20817 s,@DEFS@,$DEFS,;t t
20818 s,@ECHO_C@,$ECHO_C,;t t
20819 s,@ECHO_N@,$ECHO_N,;t t
20820 s,@ECHO_T@,$ECHO_T,;t t
20821 s,@LIBS@,$LIBS,;t t
20822 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20823 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20824 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20825 s,@CYGPATH_W@,$CYGPATH_W,;t t
20826 s,@PACKAGE@,$PACKAGE,;t t
20827 s,@VERSION@,$VERSION,;t t
20828 s,@ACLOCAL@,$ACLOCAL,;t t
20829 s,@AUTOCONF@,$AUTOCONF,;t t
20830 s,@AUTOMAKE@,$AUTOMAKE,;t t
20831 s,@AUTOHEADER@,$AUTOHEADER,;t t
20832 s,@MAKEINFO@,$MAKEINFO,;t t
20833 s,@install_sh@,$install_sh,;t t
20834 s,@STRIP@,$STRIP,;t t
20835 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20836 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20837 s,@mkdir_p@,$mkdir_p,;t t
20839 s,@SET_MAKE@,$SET_MAKE,;t t
20840 s,@am__leading_dot@,$am__leading_dot,;t t
20841 s,@AMTAR@,$AMTAR,;t t
20842 s,@am__tar@,$am__tar,;t t
20843 s,@am__untar@,$am__untar,;t t
20844 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20845 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20846 s,@MAINT@,$MAINT,;t t
20847 s,@build@,$build,;t t
20848 s,@build_cpu@,$build_cpu,;t t
20849 s,@build_vendor@,$build_vendor,;t t
20850 s,@build_os@,$build_os,;t t
20851 s,@host@,$host,;t t
20852 s,@host_cpu@,$host_cpu,;t t
20853 s,@host_vendor@,$host_vendor,;t t
20854 s,@host_os@,$host_os,;t t
20856 s,@CFLAGS@,$CFLAGS,;t t
20857 s,@LDFLAGS@,$LDFLAGS,;t t
20858 s,@CPPFLAGS@,$CPPFLAGS,;t t
20859 s,@ac_ct_CC@,$ac_ct_CC,;t t
20860 s,@EXEEXT@,$EXEEXT,;t t
20861 s,@OBJEXT@,$OBJEXT,;t t
20862 s,@DEPDIR@,$DEPDIR,;t t
20863 s,@am__include@,$am__include,;t t
20864 s,@am__quote@,$am__quote,;t t
20865 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20866 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20867 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20868 s,@CCDEPMODE@,$CCDEPMODE,;t t
20869 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20870 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20871 s,@EGREP@,$EGREP,;t t
20872 s,@LN_S@,$LN_S,;t t
20873 s,@ECHO@,$ECHO,;t t
20875 s,@ac_ct_AR@,$ac_ct_AR,;t t
20876 s,@RANLIB@,$RANLIB,;t t
20877 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20880 s,@CXXFLAGS@,$CXXFLAGS,;t t
20881 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20882 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20883 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20884 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20885 s,@CXXCPP@,$CXXCPP,;t t
20887 s,@FFLAGS@,$FFLAGS,;t t
20888 s,@ac_ct_F77@,$ac_ct_F77,;t t
20889 s,@LIBTOOL@,$LIBTOOL,;t t
20890 s,@TYPE_INT@,$TYPE_INT,;t t
20891 s,@TYPE_FLOAT@,$TYPE_FLOAT,;t t
20892 s,@ENABLE_IOSTREAM@,$ENABLE_IOSTREAM,;t t
20893 s,@ENABLE_STRING@,$ENABLE_STRING,;t t
20894 s,@ISO_STDLIB@,$ISO_STDLIB,;t t
20895 s,@WITH_MATH@,$WITH_MATH,;t t
20896 s,@LIBOBJS@,$LIBOBJS,;t t
20897 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20902 cat >>$CONFIG_STATUS <<\_ACEOF
20903 # Split the substitutions into bite-sized pieces for seds with
20904 # small command number limits, like on Digital OSF/1 and HP-UX.
20905 ac_max_sed_lines=48
20906 ac_sed_frag=1 # Number of current file.
20907 ac_beg=1 # First line for current file.
20908 ac_end=$ac_max_sed_lines # Line after last line for current file.
20911 while $ac_more_lines; do
20912 if test $ac_beg -gt 1; then
20913 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20915 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20917 if test ! -s $tmp/subs.frag; then
20918 ac_more_lines=false
20920 # The purpose of the label and of the branching condition is to
20921 # speed up the sed processing (if there are no `@' at all, there
20922 # is no need to browse any of the substitutions).
20923 # These are the two extra sed commands mentioned above.
20925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20926 if test -z "$ac_sed_cmds"; then
20927 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20929 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20931 ac_sed_frag=`expr $ac_sed_frag + 1`
20933 ac_end=`expr $ac_end + $ac_max_sed_lines`
20936 if test -z "$ac_sed_cmds"; then
20939 fi # test -n "$CONFIG_FILES"
20942 cat >>$CONFIG_STATUS <<\_ACEOF
20943 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20944 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20946 - | *:- | *:-:* ) # input from stdin
20948 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20949 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20950 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20951 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20952 * ) ac_file_in=$ac_file.in ;;
20955 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20956 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20958 X"$ac_file" : 'X\(//\)[^/]' \| \
20959 X"$ac_file" : 'X\(//\)$' \| \
20960 X"$ac_file" : 'X\(/\)' \| \
20961 . : '\(.\)' 2>/dev/null ||
20963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20965 /^X\(\/\/\)$/{ s//\1/; q; }
20966 /^X\(\/\).*/{ s//\1/; q; }
20968 { if $as_mkdir_p; then
20973 while test ! -d "$as_dir"; do
20974 as_dirs="$as_dir $as_dirs"
20975 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20977 X"$as_dir" : 'X\(//\)[^/]' \| \
20978 X"$as_dir" : 'X\(//\)$' \| \
20979 X"$as_dir" : 'X\(/\)' \| \
20980 . : '\(.\)' 2>/dev/null ||
20982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20984 /^X\(\/\/\)$/{ s//\1/; q; }
20985 /^X\(\/\).*/{ s//\1/; q; }
20988 test ! -n "$as_dirs" || mkdir $as_dirs
20989 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20990 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20991 { (exit 1); exit 1; }; }; }
20995 if test "$ac_dir" != .; then
20996 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20997 # A "../" for each directory in $ac_dir_suffix.
20998 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21000 ac_dir_suffix= ac_top_builddir=
21004 .) # No --srcdir option. We are building in place.
21006 if test -z "$ac_top_builddir"; then
21009 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21011 [\\/]* | ?:[\\/]* ) # Absolute path.
21012 ac_srcdir=$srcdir$ac_dir_suffix;
21013 ac_top_srcdir=$srcdir ;;
21014 *) # Relative path.
21015 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21016 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21019 # Do not use `cd foo && pwd` to compute absolute paths, because
21020 # the directories may not exist.
21022 .) ac_abs_builddir="$ac_dir";;
21025 .) ac_abs_builddir=`pwd`;;
21026 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21027 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21030 case $ac_abs_builddir in
21031 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21033 case ${ac_top_builddir}. in
21034 .) ac_abs_top_builddir=$ac_abs_builddir;;
21035 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21036 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21039 case $ac_abs_builddir in
21040 .) ac_abs_srcdir=$ac_srcdir;;
21043 .) ac_abs_srcdir=$ac_abs_builddir;;
21044 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21045 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21048 case $ac_abs_builddir in
21049 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21051 case $ac_top_srcdir in
21052 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21053 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21054 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21060 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21061 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21064 # Let's still pretend it is `configure' which instantiates (i.e., don't
21065 # use $as_me), people would be surprised to read:
21066 # /* config.h. Generated by config.status. */
21067 if test x"$ac_file" = x-; then
21070 configure_input="$ac_file. "
21072 configure_input=$configure_input"Generated from `echo $ac_file_in |
21073 sed 's,.*/,,'` by configure."
21075 # First look for the input files in the build tree, otherwise in the
21077 ac_file_inputs=`IFS=:
21078 for f in $ac_file_in; do
21080 -) echo $tmp/stdin ;;
21082 # Absolute (can't be DOS-style, as IFS=:)
21083 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21084 echo "$as_me: error: cannot find input file: $f" >&2;}
21085 { (exit 1); exit 1; }; }
21088 if test -f "$f"; then
21091 elif test -f "$srcdir/$f"; then
21096 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21097 echo "$as_me: error: cannot find input file: $f" >&2;}
21098 { (exit 1); exit 1; }; }
21101 done` || { (exit 1); exit 1; }
21103 if test x"$ac_file" != x-; then
21104 { echo "$as_me:$LINENO: creating $ac_file" >&5
21105 echo "$as_me: creating $ac_file" >&6;}
21109 cat >>$CONFIG_STATUS <<_ACEOF
21113 cat >>$CONFIG_STATUS <<\_ACEOF
21115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21116 s,@configure_input@,$configure_input,;t t
21117 s,@srcdir@,$ac_srcdir,;t t
21118 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21119 s,@top_srcdir@,$ac_top_srcdir,;t t
21120 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21121 s,@builddir@,$ac_builddir,;t t
21122 s,@abs_builddir@,$ac_abs_builddir,;t t
21123 s,@top_builddir@,$ac_top_builddir,;t t
21124 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21125 s,@INSTALL@,$ac_INSTALL,;t t
21126 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21128 if test x"$ac_file" != x-; then
21129 mv $tmp/out $ac_file
21137 cat >>$CONFIG_STATUS <<\_ACEOF
21140 # CONFIG_COMMANDS section.
21142 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21143 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21144 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21145 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21146 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21147 X"$ac_dest" : 'X\(//\)[^/]' \| \
21148 X"$ac_dest" : 'X\(//\)$' \| \
21149 X"$ac_dest" : 'X\(/\)' \| \
21150 . : '\(.\)' 2>/dev/null ||
21152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21154 /^X\(\/\/\)$/{ s//\1/; q; }
21155 /^X\(\/\).*/{ s//\1/; q; }
21157 { if $as_mkdir_p; then
21162 while test ! -d "$as_dir"; do
21163 as_dirs="$as_dir $as_dirs"
21164 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21166 X"$as_dir" : 'X\(//\)[^/]' \| \
21167 X"$as_dir" : 'X\(//\)$' \| \
21168 X"$as_dir" : 'X\(/\)' \| \
21169 . : '\(.\)' 2>/dev/null ||
21171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21173 /^X\(\/\/\)$/{ s//\1/; q; }
21174 /^X\(\/\).*/{ s//\1/; q; }
21177 test ! -n "$as_dirs" || mkdir $as_dirs
21178 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21179 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21180 { (exit 1); exit 1; }; }; }
21184 if test "$ac_dir" != .; then
21185 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21186 # A "../" for each directory in $ac_dir_suffix.
21187 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21189 ac_dir_suffix= ac_top_builddir=
21193 .) # No --srcdir option. We are building in place.
21195 if test -z "$ac_top_builddir"; then
21198 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21200 [\\/]* | ?:[\\/]* ) # Absolute path.
21201 ac_srcdir=$srcdir$ac_dir_suffix;
21202 ac_top_srcdir=$srcdir ;;
21203 *) # Relative path.
21204 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21205 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21208 # Do not use `cd foo && pwd` to compute absolute paths, because
21209 # the directories may not exist.
21211 .) ac_abs_builddir="$ac_dir";;
21214 .) ac_abs_builddir=`pwd`;;
21215 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21216 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21219 case $ac_abs_builddir in
21220 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21222 case ${ac_top_builddir}. in
21223 .) ac_abs_top_builddir=$ac_abs_builddir;;
21224 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21225 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21228 case $ac_abs_builddir in
21229 .) ac_abs_srcdir=$ac_srcdir;;
21232 .) ac_abs_srcdir=$ac_abs_builddir;;
21233 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21234 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21237 case $ac_abs_builddir in
21238 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21240 case $ac_top_srcdir in
21241 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21242 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21243 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21248 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21249 echo "$as_me: executing $ac_dest commands" >&6;}
21251 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21252 # Strip MF so we end up with the name of the file.
21253 mf=`echo "$mf" | sed -e 's/:.*$//'`
21254 # Check whether this is an Automake generated Makefile or not.
21255 # We used to match only the files named `Makefile.in', but
21256 # some people rename them; so instead we look at the file content.
21257 # Grep'ing the first line is not enough: some people post-process
21258 # each Makefile.in and add a new line on top of each file to say so.
21259 # So let's grep whole file.
21260 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21261 dirpart=`(dirname "$mf") 2>/dev/null ||
21262 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21263 X"$mf" : 'X\(//\)[^/]' \| \
21264 X"$mf" : 'X\(//\)$' \| \
21265 X"$mf" : 'X\(/\)' \| \
21266 . : '\(.\)' 2>/dev/null ||
21268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21270 /^X\(\/\/\)$/{ s//\1/; q; }
21271 /^X\(\/\).*/{ s//\1/; q; }
21276 # Extract the definition of DEPDIR, am__include, and am__quote
21277 # from the Makefile without running `make'.
21278 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21279 test -z "$DEPDIR" && continue
21280 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21281 test -z "am__include" && continue
21282 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21283 # When using ansi2knr, U may be empty or an underscore; expand it
21284 U=`sed -n 's/^U = //p' < "$mf"`
21285 # Find all dependency output files, they are included files with
21286 # $(DEPDIR) in their names. We invoke sed twice because it is the
21287 # simplest approach to changing $(DEPDIR) to its actual value in the
21289 for file in `sed -n "
21290 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21291 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21292 # Make sure the directory exists.
21293 test -f "$dirpart/$file" && continue
21294 fdir=`(dirname "$file") 2>/dev/null ||
21295 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21296 X"$file" : 'X\(//\)[^/]' \| \
21297 X"$file" : 'X\(//\)$' \| \
21298 X"$file" : 'X\(/\)' \| \
21299 . : '\(.\)' 2>/dev/null ||
21301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21303 /^X\(\/\/\)$/{ s//\1/; q; }
21304 /^X\(\/\).*/{ s//\1/; q; }
21306 { if $as_mkdir_p; then
21307 mkdir -p $dirpart/$fdir
21309 as_dir=$dirpart/$fdir
21311 while test ! -d "$as_dir"; do
21312 as_dirs="$as_dir $as_dirs"
21313 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21315 X"$as_dir" : 'X\(//\)[^/]' \| \
21316 X"$as_dir" : 'X\(//\)$' \| \
21317 X"$as_dir" : 'X\(/\)' \| \
21318 . : '\(.\)' 2>/dev/null ||
21320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21322 /^X\(\/\/\)$/{ s//\1/; q; }
21323 /^X\(\/\).*/{ s//\1/; q; }
21326 test ! -n "$as_dirs" || mkdir $as_dirs
21327 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21328 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21329 { (exit 1); exit 1; }; }; }
21331 # echo "creating $dirpart/$file"
21332 echo '# dummy' > "$dirpart/$file"
21340 cat >>$CONFIG_STATUS <<\_ACEOF
21342 { (exit 0); exit 0; }
21344 chmod +x $CONFIG_STATUS
21345 ac_clean_files=$ac_clean_files_save
21348 # configure is writing to config.log, and then calls config.status.
21349 # config.status does its own redirection, appending to config.log.
21350 # Unfortunately, on DOS this fails, as config.log is still kept open
21351 # by configure, so config.status won't be able to write to it; its
21352 # output is simply discarded. So we exec the FD to /dev/null,
21353 # effectively closing config.log, so it can be properly (re)opened and
21354 # appended to by config.status. When coming back to configure, we
21355 # need to make the FD available again.
21356 if test "$no_create" != yes; then
21358 ac_config_status_args=
21359 test "$silent" = yes &&
21360 ac_config_status_args="$ac_config_status_args --quiet"
21362 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21364 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21365 # would make configure fail if this is the last instruction.
21366 $ac_cs_success || { (exit 1); exit 1; }