2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="l7vsd"
429 ac_unique_file="config.h.in"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS LIBOBJS l7vsadm_sockdir l7vs_moddir l7vs_maxvs MANDIR snmpagent_libs LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --disable-dependency-tracking speeds up one-time build
1028 --enable-dependency-tracking do not reject slow dependency extractors
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1036 --disable-glibtest do not try to compile and run a test GLIB program
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1042 --with-pic try to use only PIC/non-PIC objects [default=use
1045 include additional configurations [automatic]
1046 --with-l7vs-moddir=DIR l7vs modules is to be installed in DIR.
1048 --with-l7vsadm-sockdir=DIR l7vsadm sockfile path.
1049 default=/var/run/l7vs
1050 --with-l7vs-maxvs=NUM l7vsd virtual service max size in NUM.
1053 Some influential environment variables:
1054 CXX C++ compiler command
1055 CXXFLAGS C++ compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1060 CC C compiler command
1061 CFLAGS C compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1073 if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1080 if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 ac_dir_suffix= ac_top_builddir=
1089 .) # No --srcdir option. We are building in place.
1091 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1107 .) ac_abs_builddir="$ac_dir";;
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1154 $ac_configure --help
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1177 It was created by $as_me, which was
1178 generated by GNU Autoconf 2.59. Invocation command line was
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1198 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1199 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1202 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1203 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1204 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 test -z "$as_dir" && as_dir=.
1213 echo "PATH: $as_dir"
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_must_keep_next=false
1243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254 if test $ac_must_keep_next = true; then
1255 ac_must_keep_next=false # Got value, back to normal.
1258 *=* | --config-cache | -C | -disable-* | --disable-* \
1259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261 | -with-* | --with-* | -without-* | --without-* | --x)
1262 case "$ac_configure_args0 " in
1263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266 -* ) ac_must_keep_next=true ;;
1269 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270 # Get rid of the leading space.
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log. We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285 # Save into config.log some information that might help in debugging.
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1295 # The following way of writing the cache mishandles newlines in values,
1298 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1318 for ac_var in $ac_subst_vars
1320 eval ac_val=$`echo $ac_var`
1321 echo "$ac_var='"'"'$ac_val'"'"'"
1325 if test -n "$ac_subst_files"; then
1332 for ac_var in $ac_subst_files
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1340 if test -s confdefs.h; then
1347 sed "/^$/d" confdefs.h | sort
1350 test "$ac_signal" != 0 &&
1351 echo "$as_me: caught signal $ac_signal"
1352 echo "$as_me: exit $exit_status"
1354 rm -f core *.core &&
1355 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358 for ac_signal in 1 2 13 15; do
1359 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368 # Predefined preprocessor variables.
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398 if test "x$prefix" != xNONE; then
1399 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404 for ac_site_file in $CONFIG_SITE; do
1405 if test -r "$ac_site_file"; then
1406 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408 sed 's/^/| /' "$ac_site_file" >&5
1413 if test -r "$cache_file"; then
1414 # Some versions of bash will fail to source /dev/null (special
1415 # files actually), so we avoid doing that.
1416 if test -f "$cache_file"; then
1417 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1420 [\\/]* | ?:[\\/]* ) . $cache_file;;
1421 *) . ./$cache_file;;
1425 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1430 # Check that the precious variables saved in the cache have kept the same
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436 eval ac_new_set=\$ac_env_${ac_var}_set
1437 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438 eval ac_new_val="\$ac_env_${ac_var}_value"
1439 case $ac_old_set,$ac_new_set in
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1450 if test "x$ac_old_val" != "x$ac_new_val"; then
1451 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1454 echo "$as_me: former value: $ac_old_val" >&2;}
1455 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1456 echo "$as_me: current value: $ac_new_val" >&2;}
1457 ac_cache_corrupted=:
1460 # Pass precious variables to config.status.
1461 if test "$ac_new_set" = set; then
1463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465 *) ac_arg=$ac_var=$ac_new_val ;;
1467 case " $ac_configure_args " in
1468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1469 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 if $ac_cache_corrupted; then
1474 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478 { (exit 1); exit 1; }; }
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507 GLIB_REQUIRED_VERSION=2.0.0
1509 am__api_version="1.9"
1511 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1512 if test -f $ac_dir/install-sh; then
1514 ac_install_sh="$ac_aux_dir/install-sh -c"
1516 elif test -f $ac_dir/install.sh; then
1518 ac_install_sh="$ac_aux_dir/install.sh -c"
1520 elif test -f $ac_dir/shtool; then
1522 ac_install_sh="$ac_aux_dir/shtool install -c"
1526 if test -z "$ac_aux_dir"; then
1527 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1528 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1529 { (exit 1); exit 1; }; }
1531 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1532 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1533 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1535 # Find a good install program. We prefer a C program (faster),
1536 # so one script is as good as another. But avoid the broken or
1537 # incompatible versions:
1538 # SysV /etc/install, /usr/sbin/install
1539 # SunOS /usr/etc/install
1540 # IRIX /sbin/install
1542 # AmigaOS /C/install, which installs bootblocks on floppy discs
1543 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1544 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1545 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1546 # OS/2's system install, which has a completely different semantic
1547 # ./install, which can be erroneously created by make from ./install.sh.
1548 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1549 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1550 if test -z "$INSTALL"; then
1551 if test "${ac_cv_path_install+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir=.
1559 # Account for people who put trailing slashes in PATH elements.
1561 ./ | .// | /cC/* | \
1562 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1563 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1566 # OSF1 and SCO ODT 3.0 have their own names for install.
1567 # Don't use installbsd from OSF since it installs stuff as root
1569 for ac_prog in ginstall scoinst install; do
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1572 if test $ac_prog = install &&
1573 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1574 # AIX install. It has an incompatible calling convention.
1576 elif test $ac_prog = install &&
1577 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1578 # program-specific install script used by HP pwplus--don't use.
1581 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1593 if test "${ac_cv_path_install+set}" = set; then
1594 INSTALL=$ac_cv_path_install
1596 # As a last resort, use the slow shell script. We don't cache a
1597 # path for INSTALL within a source directory, because that will
1598 # break other packages using the cache if that directory is
1599 # removed, or if the path is relative.
1600 INSTALL=$ac_install_sh
1603 echo "$as_me:$LINENO: result: $INSTALL" >&5
1604 echo "${ECHO_T}$INSTALL" >&6
1606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1607 # It thinks the first close brace ends the variable substitution.
1608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1610 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1614 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1615 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1618 echo timestamp > conftest.file
1619 # Do `set' in a subshell so we don't clobber the current shell's
1620 # arguments. Must try -L first in case configure is actually a
1621 # symlink; some systems play weird games with the mod time of symlinks
1622 # (eg FreeBSD returns the mod time of the symlink's containing
1625 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1626 if test "$*" = "X"; then
1628 set X `ls -t $srcdir/configure conftest.file`
1631 if test "$*" != "X $srcdir/configure conftest.file" \
1632 && test "$*" != "X conftest.file $srcdir/configure"; then
1634 # If neither matched, then we have a broken ls. This can happen
1635 # if, for instance, CONFIG_SHELL is bash and it inherits a
1636 # broken ls alias from the environment. This has actually
1637 # happened. Such a system could not be considered "sane".
1638 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1639 alias in your environment" >&5
1640 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1641 alias in your environment" >&2;}
1642 { (exit 1); exit 1; }; }
1645 test "$2" = conftest.file
1651 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1652 Check your system clock" >&5
1653 echo "$as_me: error: newly created file is older than distributed files!
1654 Check your system clock" >&2;}
1655 { (exit 1); exit 1; }; }
1657 echo "$as_me:$LINENO: result: yes" >&5
1658 echo "${ECHO_T}yes" >&6
1659 test "$program_prefix" != NONE &&
1660 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1661 # Use a double $ so make ignores it.
1662 test "$program_suffix" != NONE &&
1663 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1664 # Double any \ or $. echo might interpret backslashes.
1665 # By default was `s,x,x', remove it if useless.
1666 cat <<\_ACEOF >conftest.sed
1667 s/[\\$]/&&/g;s/;s,x,x,$//
1669 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1672 # expand $ac_aux_dir to an absolute path
1673 am_aux_dir=`cd $ac_aux_dir && pwd`
1675 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1676 # Use eval to expand $SHELL
1677 if eval "$MISSING --run true"; then
1678 am_missing_run="$MISSING --run "
1681 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1682 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1685 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1686 # We used to keeping the `.' as first argument, in order to
1687 # allow $(mkdir_p) to be used without argument. As in
1688 # $(mkdir_p) $(somedir)
1689 # where $(somedir) is conditionally defined. However this is wrong
1691 # 1. if the package is installed by a user who cannot write `.'
1692 # make install will fail,
1693 # 2. the above comment should most certainly read
1694 # $(mkdir_p) $(DESTDIR)$(somedir)
1695 # so it does not work when $(somedir) is undefined and
1696 # $(DESTDIR) is not.
1697 # To support the latter case, we have to write
1698 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1699 # so the `.' trick is pointless.
1700 mkdir_p='mkdir -p --'
1702 # On NextStep and OpenStep, the `mkdir' command does not
1703 # recognize any option. It will interpret all options as
1704 # directories to create, and then abort because `.' already
1706 for d in ./-p ./--version;
1708 test -d $d && rmdir $d
1710 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1711 if test -f "$ac_aux_dir/mkinstalldirs"; then
1712 mkdir_p='$(mkinstalldirs)'
1714 mkdir_p='$(install_sh) -d'
1718 for ac_prog in gawk mawk nawk awk
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy $ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_AWK+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 if test -n "$AWK"; then
1728 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_AWK="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 if test -n "$AWK"; then
1748 echo "$as_me:$LINENO: result: $AWK" >&5
1749 echo "${ECHO_T}$AWK" >&6
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$AWK" && break
1758 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1759 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1760 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1761 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 cat >conftest.make <<\_ACEOF
1766 @echo 'ac_maketemp="$(MAKE)"'
1768 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1769 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1770 if test -n "$ac_maketemp"; then
1771 eval ac_cv_prog_make_${ac_make}_set=yes
1773 eval ac_cv_prog_make_${ac_make}_set=no
1777 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1778 echo "$as_me:$LINENO: result: yes" >&5
1779 echo "${ECHO_T}yes" >&6
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1784 SET_MAKE="MAKE=${MAKE-make}"
1787 rm -rf .tst 2>/dev/null
1788 mkdir .tst 2>/dev/null
1789 if test -d .tst; then
1794 rmdir .tst 2>/dev/null
1796 # test to see if srcdir already configured
1797 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1798 test -f $srcdir/config.status; then
1799 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1800 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1801 { (exit 1); exit 1; }; }
1804 # test whether we have cygpath
1805 if test -z "$CYGPATH_W"; then
1806 if (cygpath --version) >/dev/null 2>/dev/null; then
1807 CYGPATH_W='cygpath -w'
1814 # Define the identity of the package.
1815 PACKAGE=$PACKAGENAME
1819 # Some tools Automake needs.
1821 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1824 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1827 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1830 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1833 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1835 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1837 # Installed binaries are usually stripped using `strip' when the user
1838 # run `make install-strip'. However `strip' might not be the right
1839 # tool to use in cross-compilation environments, therefore Automake
1840 # will honor the `STRIP' environment variable to overrule this program.
1841 if test "$cross_compiling" != no; then
1842 if test -n "$ac_tool_prefix"; then
1843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}strip; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_STRIP+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 if test -n "$STRIP"; then
1851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 STRIP=$ac_cv_prog_STRIP
1870 if test -n "$STRIP"; then
1871 echo "$as_me:$LINENO: result: $STRIP" >&5
1872 echo "${ECHO_T}$STRIP" >&6
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1879 if test -z "$ac_cv_prog_STRIP"; then
1881 # Extract the first word of "strip", so it can be a program name with args.
1882 set dummy strip; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$ac_ct_STRIP"; then
1889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_STRIP="strip"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1909 if test -n "$ac_ct_STRIP"; then
1910 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1911 echo "${ECHO_T}$ac_ct_STRIP" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1919 STRIP="$ac_cv_prog_STRIP"
1923 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1925 # We need awk for the "check" target. The system "awk" is bad on
1927 # Always define AMTAR for backward compatibility.
1929 AMTAR=${AMTAR-"${am_missing_run}tar"}
1931 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1938 ac_config_headers="$ac_config_headers config.h"
1941 # Checks for programs.
1943 ac_cpp='$CXXCPP $CPPFLAGS'
1944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1947 if test -n "$ac_tool_prefix"; then
1948 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_CXX+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test -n "$CXX"; then
1958 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 if test -n "$CXX"; then
1978 echo "$as_me:$LINENO: result: $CXX" >&5
1979 echo "${ECHO_T}$CXX" >&6
1981 echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1985 test -n "$CXX" && break
1988 if test -z "$CXX"; then
1990 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1992 # Extract the first word of "$ac_prog", so it can be a program name with args.
1993 set dummy $ac_prog; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 if test -n "$ac_ct_CXX"; then
2000 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 ac_cv_prog_ac_ct_CXX="$ac_prog"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2019 if test -n "$ac_ct_CXX"; then
2020 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2021 echo "${ECHO_T}$ac_ct_CXX" >&6
2023 echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2027 test -n "$ac_ct_CXX" && break
2029 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2035 # Provide some information about the compiler.
2036 echo "$as_me:$LINENO:" \
2037 "checking for C++ compiler version" >&5
2038 ac_compiler=`set X $ac_compile; echo $2`
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2040 (eval $ac_compiler --version </dev/null >&5) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }
2044 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2045 (eval $ac_compiler -v </dev/null >&5) 2>&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2050 (eval $ac_compiler -V </dev/null >&5) 2>&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }
2055 cat >conftest.$ac_ext <<_ACEOF
2058 cat confdefs.h >>conftest.$ac_ext
2059 cat >>conftest.$ac_ext <<_ACEOF
2060 /* end confdefs.h. */
2070 ac_clean_files_save=$ac_clean_files
2071 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2072 # Try to create an executable without -o first, disregard a.out.
2073 # It will help us diagnose broken compilers, and finding out an intuition
2075 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2076 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2077 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2078 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2079 (eval $ac_link_default) 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; then
2083 # Find the output, starting from the most likely. This scheme is
2084 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2087 # Be careful to initialize this variable, since it used to be cached.
2088 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2090 # b.out is created by i960 compilers.
2091 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2093 test -f "$ac_file" || continue
2095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2098 # This is the source file.
2101 # We found the default executable, but exeext='' is most
2105 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2106 # FIXME: I believe we export ac_cv_exeext for Libtool,
2107 # but it would be cool to find out if it's true. Does anybody
2108 # maintain Libtool? --akim.
2116 echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2119 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: C++ compiler cannot create executables
2122 See \`config.log' for more details." >&2;}
2123 { (exit 77); exit 77; }; }
2126 ac_exeext=$ac_cv_exeext
2127 echo "$as_me:$LINENO: result: $ac_file" >&5
2128 echo "${ECHO_T}$ac_file" >&6
2130 # Check the compiler produces executables we can run. If not, either
2131 # the compiler is broken, or we cross compile.
2132 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2133 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2134 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2135 # If not cross compiling, check that we can run a simple program.
2136 if test "$cross_compiling" != yes; then
2137 if { ac_try='./$ac_file'
2138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; }; then
2145 if test "$cross_compiling" = maybe; then
2148 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2149 If you meant to cross compile, use \`--host'.
2150 See \`config.log' for more details." >&5
2151 echo "$as_me: error: cannot run C++ compiled programs.
2152 If you meant to cross compile, use \`--host'.
2153 See \`config.log' for more details." >&2;}
2154 { (exit 1); exit 1; }; }
2158 echo "$as_me:$LINENO: result: yes" >&5
2159 echo "${ECHO_T}yes" >&6
2161 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2162 ac_clean_files=$ac_clean_files_save
2163 # Check the compiler produces executables we can run. If not, either
2164 # the compiler is broken, or we cross compile.
2165 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2166 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2167 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2168 echo "${ECHO_T}$cross_compiling" >&6
2170 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2171 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2173 (eval $ac_link) 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2178 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2179 # work properly (i.e., refer to `conftest.exe'), while it won't with
2181 for ac_file in conftest.exe conftest conftest.*; do
2182 test -f "$ac_file" || continue
2184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2185 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2195 See \`config.log' for more details." >&2;}
2196 { (exit 1); exit 1; }; }
2199 rm -f conftest$ac_cv_exeext
2200 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2201 echo "${ECHO_T}$ac_cv_exeext" >&6
2203 rm -f conftest.$ac_ext
2204 EXEEXT=$ac_cv_exeext
2206 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2207 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2208 if test "${ac_cv_objext+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 cat >conftest.$ac_ext <<_ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2226 rm -f conftest.o conftest.obj
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; then
2232 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2235 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2240 echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2250 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2252 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2253 echo "${ECHO_T}$ac_cv_objext" >&6
2254 OBJEXT=$ac_cv_objext
2256 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2257 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2258 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 cat >conftest.$ac_ext <<_ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h. */
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>conftest.er1
2283 grep -v '^ *+' conftest.er1 >conftest.err
2285 cat conftest.err >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -z "$ac_cxx_werror_flag"
2289 || test ! -s conftest.err'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2309 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2312 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2313 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2314 GXX=`test $ac_compiler_gnu = yes && echo yes`
2315 ac_test_CXXFLAGS=${CXXFLAGS+set}
2316 ac_save_CXXFLAGS=$CXXFLAGS
2318 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2319 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2320 if test "${ac_cv_prog_cxx_g+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 cat >conftest.$ac_ext <<_ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h. */
2338 rm -f conftest.$ac_objext
2339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340 (eval $ac_compile) 2>conftest.er1
2342 grep -v '^ *+' conftest.er1 >conftest.err
2344 cat conftest.err >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -z "$ac_cxx_werror_flag"
2348 || test ! -s conftest.err'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; } &&
2354 { ac_try='test -s conftest.$ac_objext'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2360 ac_cv_prog_cxx_g=yes
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2369 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2370 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2371 if test "$ac_test_CXXFLAGS" = set; then
2372 CXXFLAGS=$ac_save_CXXFLAGS
2373 elif test $ac_cv_prog_cxx_g = yes; then
2374 if test "$GXX" = yes; then
2380 if test "$GXX" = yes; then
2386 for ac_declaration in \
2388 'extern "C" void std::exit (int) throw (); using std::exit;' \
2389 'extern "C" void std::exit (int); using std::exit;' \
2390 'extern "C" void exit (int) throw ();' \
2391 'extern "C" void exit (int);' \
2394 cat >conftest.$ac_ext <<_ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2410 rm -f conftest.$ac_objext
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>conftest.er1
2414 grep -v '^ *+' conftest.er1 >conftest.err
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_cxx_werror_flag"
2420 || test ! -s conftest.err'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; } &&
2426 { ac_try='test -s conftest.$ac_objext'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 cat >conftest.$ac_ext <<_ACEOF
2443 cat confdefs.h >>conftest.$ac_ext
2444 cat >>conftest.$ac_ext <<_ACEOF
2445 /* end confdefs.h. */
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2459 grep -v '^ *+' conftest.er1 >conftest.err
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_cxx_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2486 if test -n "$ac_declaration"; then
2487 echo '#ifdef __cplusplus' >>confdefs.h
2488 echo $ac_declaration >>confdefs.h
2489 echo '#endif' >>confdefs.h
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2497 DEPDIR="${am__leading_dot}deps"
2499 ac_config_commands="$ac_config_commands depfiles"
2502 am_make=${MAKE-make}
2503 cat > confinc << 'END'
2508 # If we don't find an include directive, just comment out the code.
2509 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2510 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2514 # First try GNU make style include.
2515 echo "include confinc" > confmf
2516 # We grep out `Entering directory' and `Leaving directory'
2517 # messages which can occur if `w' ends up in MAKEFLAGS.
2518 # In particular we don't look at `^make:' because GNU make might
2519 # be invoked under some other name (usually "gmake"), in which
2520 # case it prints its new name instead of `make'.
2521 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2526 # Now try BSD make style include.
2527 if test "$am__include" = "#"; then
2528 echo '.include "confinc"' > confmf
2529 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2530 am__include=.include
2537 echo "$as_me:$LINENO: result: $_am_result" >&5
2538 echo "${ECHO_T}$_am_result" >&6
2539 rm -f confinc confmf
2541 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2542 if test "${enable_dependency_tracking+set}" = set; then
2543 enableval="$enable_dependency_tracking"
2546 if test "x$enable_dependency_tracking" != xno; then
2547 am_depcomp="$ac_aux_dir/depcomp"
2552 if test "x$enable_dependency_tracking" != xno; then
2563 depcc="$CXX" am_compiler_list=
2565 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2566 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2567 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2571 # We make a subdir and do the tests there. Otherwise we can end up
2572 # making bogus files that we don't know about and never remove. For
2573 # instance it was reported that on HP-UX the gcc test will end up
2574 # making a dummy file named `D' -- because `-MD' means `put the output
2577 # Copy depcomp to subdir because otherwise we won't find it if we're
2578 # using a relative directory.
2579 cp "$am_depcomp" conftest.dir
2581 # We will build objects and dependencies in a subdirectory because
2582 # it helps to detect inapplicable dependency modes. For instance
2583 # both Tru64's cc and ICC support -MD to output dependencies as a
2584 # side effect of compilation, but ICC will put the dependencies in
2585 # the current directory while Tru64 will put them in the object
2589 am_cv_CXX_dependencies_compiler_type=none
2590 if test "$am_compiler_list" = ""; then
2591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2593 for depmode in $am_compiler_list; do
2594 # Setup a source with many dependencies, because some compilers
2595 # like to wrap large dependency lists on column 80 (with \), and
2596 # we should not choose a depcomp mode which is confused by this.
2598 # We need to recreate these files for each test, as the compiler may
2599 # overwrite some of them when testing with obscure command lines.
2600 # This happens at least with the AIX C compiler.
2602 for i in 1 2 3 4 5 6; do
2603 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2604 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2605 # Solaris 8's {/usr,}/bin/sh.
2606 touch sub/conftst$i.h
2608 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2612 # after this tag, mechanisms are not by side-effect, so they'll
2613 # only be used when explicitly requested
2614 if test "x$enable_dependency_tracking" = xyes; then
2622 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2623 # mode. It turns out that the SunPro C++ compiler does not properly
2624 # handle `-M -o', and we need to detect this.
2625 if depmode=$depmode \
2626 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2627 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2628 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2629 >/dev/null 2>conftest.err &&
2630 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2631 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2632 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2633 # icc doesn't choke on unknown options, it will just issue warnings
2634 # or remarks (even with -Werror). So we grep stderr for any message
2635 # that says an option was ignored or not supported.
2636 # When given -MP, icc 7.0 and 7.1 complain thusly:
2637 # icc: Command line warning: ignoring option '-M'; no argument required
2638 # The diagnosis changed in icc 8.0:
2639 # icc: Command line remark: option '-MP' not supported
2640 if (grep 'ignoring option' conftest.err ||
2641 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2642 am_cv_CXX_dependencies_compiler_type=$depmode
2651 am_cv_CXX_dependencies_compiler_type=none
2655 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2656 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2657 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2662 test "x$enable_dependency_tracking" != xno \
2663 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2664 am__fastdepCXX_TRUE=
2665 am__fastdepCXX_FALSE='#'
2667 am__fastdepCXX_TRUE='#'
2668 am__fastdepCXX_FALSE=
2672 # Check whether --enable-shared or --disable-shared was given.
2673 if test "${enable_shared+set}" = set; then
2674 enableval="$enable_shared"
2675 p=${PACKAGE-default}
2677 yes) enable_shared=yes ;;
2678 no) enable_shared=no ;;
2681 # Look at the argument we got. We use all the common list separators.
2682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2683 for pkg in $enableval; do
2685 if test "X$pkg" = "X$p"; then
2696 # Check whether --enable-static or --disable-static was given.
2697 if test "${enable_static+set}" = set; then
2698 enableval="$enable_static"
2699 p=${PACKAGE-default}
2701 yes) enable_static=yes ;;
2702 no) enable_static=no ;;
2705 # Look at the argument we got. We use all the common list separators.
2706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2707 for pkg in $enableval; do
2709 if test "X$pkg" = "X$p"; then
2720 # Check whether --enable-fast-install or --disable-fast-install was given.
2721 if test "${enable_fast_install+set}" = set; then
2722 enableval="$enable_fast_install"
2723 p=${PACKAGE-default}
2725 yes) enable_fast_install=yes ;;
2726 no) enable_fast_install=no ;;
2728 enable_fast_install=no
2729 # Look at the argument we got. We use all the common list separators.
2730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2731 for pkg in $enableval; do
2733 if test "X$pkg" = "X$p"; then
2734 enable_fast_install=yes
2741 enable_fast_install=yes
2744 # Make sure we can run config.sub.
2745 $ac_config_sub sun4 >/dev/null 2>&1 ||
2746 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2747 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2748 { (exit 1); exit 1; }; }
2750 echo "$as_me:$LINENO: checking build system type" >&5
2751 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2752 if test "${ac_cv_build+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 ac_cv_build_alias=$build_alias
2756 test -z "$ac_cv_build_alias" &&
2757 ac_cv_build_alias=`$ac_config_guess`
2758 test -z "$ac_cv_build_alias" &&
2759 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2760 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2761 { (exit 1); exit 1; }; }
2762 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2763 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2764 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2765 { (exit 1); exit 1; }; }
2768 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2769 echo "${ECHO_T}$ac_cv_build" >&6
2771 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2772 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2773 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2776 echo "$as_me:$LINENO: checking host system type" >&5
2777 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2778 if test "${ac_cv_host+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 ac_cv_host_alias=$host_alias
2782 test -z "$ac_cv_host_alias" &&
2783 ac_cv_host_alias=$ac_cv_build_alias
2784 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2785 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2786 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2787 { (exit 1); exit 1; }; }
2790 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2791 echo "${ECHO_T}$ac_cv_host" >&6
2793 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2794 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2795 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2840 if test -z "$ac_cv_prog_CC"; then
2842 # Extract the first word of "gcc", so it can be a program name with args.
2843 set dummy gcc; ac_word=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC="gcc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2882 if test -z "$CC"; then
2883 if test -n "$ac_tool_prefix"; then
2884 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}cc; ac_word=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_CC="${ac_tool_prefix}cc"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test -n "$CC"; then
2912 echo "$as_me:$LINENO: result: $CC" >&5
2913 echo "${ECHO_T}$CC" >&6
2915 echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6
2920 if test -z "$ac_cv_prog_CC"; then
2922 # Extract the first word of "cc", so it can be a program name with args.
2923 set dummy cc; ac_word=$2
2924 echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 ac_cv_prog_ac_ct_CC="cc"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2951 echo "${ECHO_T}$ac_ct_CC" >&6
2953 echo "$as_me:$LINENO: result: no" >&5
2954 echo "${ECHO_T}no" >&6
2963 if test -z "$CC"; then
2964 # Extract the first word of "cc", so it can be a program name with args.
2965 set dummy cc; ac_word=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2983 ac_prog_rejected=yes
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 if test $ac_prog_rejected = yes; then
2994 # We found a bogon in the path, so make sure we never use it.
2995 set dummy $ac_cv_prog_CC
2997 if test $# != 0; then
2998 # We chose a different compiler from the bogus one.
2999 # However, it has the same basename, so the bogon will be chosen
3000 # first if we set CC to just the basename; use the full file name.
3002 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3008 if test -n "$CC"; then
3009 echo "$as_me:$LINENO: result: $CC" >&5
3010 echo "${ECHO_T}$CC" >&6
3012 echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3017 if test -z "$CC"; then
3018 if test -n "$ac_tool_prefix"; then
3021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3023 echo "$as_me:$LINENO: checking for $ac_word" >&5
3024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3025 if test "${ac_cv_prog_CC+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 if test -n "$CC"; then
3049 echo "$as_me:$LINENO: result: $CC" >&5
3050 echo "${ECHO_T}$CC" >&6
3052 echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6
3056 test -n "$CC" && break
3059 if test -z "$CC"; then
3063 # Extract the first word of "$ac_prog", so it can be a program name with args.
3064 set dummy $ac_prog; ac_word=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 if test -n "$ac_ct_CC"; then
3071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_ac_ct_CC="$ac_prog"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3090 if test -n "$ac_ct_CC"; then
3091 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3092 echo "${ECHO_T}$ac_ct_CC" >&6
3094 echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3098 test -n "$ac_ct_CC" && break
3107 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3108 See \`config.log' for more details." >&5
3109 echo "$as_me: error: no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details." >&2;}
3111 { (exit 1); exit 1; }; }
3113 # Provide some information about the compiler.
3114 echo "$as_me:$LINENO:" \
3115 "checking for C compiler version" >&5
3116 ac_compiler=`set X $ac_compile; echo $2`
3117 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3118 (eval $ac_compiler --version </dev/null >&5) 2>&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }
3122 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3123 (eval $ac_compiler -v </dev/null >&5) 2>&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }
3127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3128 (eval $ac_compiler -V </dev/null >&5) 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }
3133 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3134 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3135 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>conftest.er1
3160 grep -v '^ *+' conftest.er1 >conftest.err
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -z "$ac_c_werror_flag"
3166 || test ! -s conftest.err'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3186 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3189 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3190 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3191 GCC=`test $ac_compiler_gnu = yes && echo yes`
3192 ac_test_CFLAGS=${CFLAGS+set}
3193 ac_save_CFLAGS=$CFLAGS
3195 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3196 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3197 if test "${ac_cv_prog_cc_g+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 cat >conftest.$ac_ext <<_ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3215 rm -f conftest.$ac_objext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3217 (eval $ac_compile) 2>conftest.er1
3219 grep -v '^ *+' conftest.er1 >conftest.err
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_c_werror_flag"
3225 || test ! -s conftest.err'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; } &&
3231 { ac_try='test -s conftest.$ac_objext'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3246 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3247 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3248 if test "$ac_test_CFLAGS" = set; then
3249 CFLAGS=$ac_save_CFLAGS
3250 elif test $ac_cv_prog_cc_g = yes; then
3251 if test "$GCC" = yes; then
3257 if test "$GCC" = yes; then
3263 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3264 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3265 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 ac_cv_prog_cc_stdc=no
3270 cat >conftest.$ac_ext <<_ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3278 #include <sys/types.h>
3279 #include <sys/stat.h>
3280 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3281 struct buf { int x; };
3282 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3283 static char *e (p, i)
3289 static char *f (char * (*g) (char **, int), char **p, ...)
3294 s = g (p, va_arg (v,int));
3299 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3300 function prototypes and stuff, but not '\xHH' hex character constants.
3301 These don't provoke an error unfortunately, instead are silently treated
3302 as 'x'. The following induces an error, until -std1 is added to get
3303 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3304 array size at least. It's necessary to write '\x00'==0 to get something
3305 that's true only with -std1. */
3306 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3308 int test (int i, double x);
3309 struct s1 {int (*f) (int a);};
3310 struct s2 {int (*f) (double a);};
3311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 # Don't try gcc -ansi; that turns off useful extensions and
3323 # breaks some systems' header files.
3324 # AIX -qlanglvl=ansi
3325 # Ultrix and OSF/1 -std1
3326 # HP-UX 10.20 and later -Ae
3327 # HP-UX older versions -Aa -D_HPUX_SOURCE
3328 # SVR4 -Xc -D__EXTENSIONS__
3329 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 CC="$ac_save_CC $ac_arg"
3332 rm -f conftest.$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3336 grep -v '^ *+' conftest.er1 >conftest.err
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_c_werror_flag"
3342 || test ! -s conftest.err'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_cv_prog_cc_stdc=$ac_arg
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3361 rm -f conftest.err conftest.$ac_objext
3363 rm -f conftest.$ac_ext conftest.$ac_objext
3368 case "x$ac_cv_prog_cc_stdc" in
3370 echo "$as_me:$LINENO: result: none needed" >&5
3371 echo "${ECHO_T}none needed" >&6 ;;
3373 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3374 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3375 CC="$CC $ac_cv_prog_cc_stdc" ;;
3378 # Some people use a C++ compiler to compile C. Since we use `exit',
3379 # in C++ we need to declare it. In case someone uses the same compiler
3380 # for both compiling C and C++ we need to have the C++ compiler decide
3381 # the declaration of exit, since it's the most demanding environment.
3382 cat >conftest.$ac_ext <<_ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389 (eval $ac_compile) 2>conftest.er1
3391 grep -v '^ *+' conftest.er1 >conftest.err
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try='test -z "$ac_c_werror_flag"
3397 || test ! -s conftest.err'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; } &&
3403 { ac_try='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 for ac_declaration in \
3411 'extern "C" void std::exit (int) throw (); using std::exit;' \
3412 'extern "C" void std::exit (int); using std::exit;' \
3413 'extern "C" void exit (int) throw ();' \
3414 'extern "C" void exit (int);' \
3417 cat >conftest.$ac_ext <<_ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3433 rm -f conftest.$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
3487 { ac_try='test -z "$ac_c_werror_flag"
3488 || test ! -s conftest.err'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3509 if test -n "$ac_declaration"; then
3510 echo '#ifdef __cplusplus' >>confdefs.h
3511 echo $ac_declaration >>confdefs.h
3512 echo '#endif' >>confdefs.h
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 depcc="$CC" am_compiler_list=
3529 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3530 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3531 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3535 # We make a subdir and do the tests there. Otherwise we can end up
3536 # making bogus files that we don't know about and never remove. For
3537 # instance it was reported that on HP-UX the gcc test will end up
3538 # making a dummy file named `D' -- because `-MD' means `put the output
3541 # Copy depcomp to subdir because otherwise we won't find it if we're
3542 # using a relative directory.
3543 cp "$am_depcomp" conftest.dir
3545 # We will build objects and dependencies in a subdirectory because
3546 # it helps to detect inapplicable dependency modes. For instance
3547 # both Tru64's cc and ICC support -MD to output dependencies as a
3548 # side effect of compilation, but ICC will put the dependencies in
3549 # the current directory while Tru64 will put them in the object
3553 am_cv_CC_dependencies_compiler_type=none
3554 if test "$am_compiler_list" = ""; then
3555 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3557 for depmode in $am_compiler_list; do
3558 # Setup a source with many dependencies, because some compilers
3559 # like to wrap large dependency lists on column 80 (with \), and
3560 # we should not choose a depcomp mode which is confused by this.
3562 # We need to recreate these files for each test, as the compiler may
3563 # overwrite some of them when testing with obscure command lines.
3564 # This happens at least with the AIX C compiler.
3566 for i in 1 2 3 4 5 6; do
3567 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3568 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3569 # Solaris 8's {/usr,}/bin/sh.
3570 touch sub/conftst$i.h
3572 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3576 # after this tag, mechanisms are not by side-effect, so they'll
3577 # only be used when explicitly requested
3578 if test "x$enable_dependency_tracking" = xyes; then
3586 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3587 # mode. It turns out that the SunPro C++ compiler does not properly
3588 # handle `-M -o', and we need to detect this.
3589 if depmode=$depmode \
3590 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3592 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3593 >/dev/null 2>conftest.err &&
3594 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3595 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3596 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3597 # icc doesn't choke on unknown options, it will just issue warnings
3598 # or remarks (even with -Werror). So we grep stderr for any message
3599 # that says an option was ignored or not supported.
3600 # When given -MP, icc 7.0 and 7.1 complain thusly:
3601 # icc: Command line warning: ignoring option '-M'; no argument required
3602 # The diagnosis changed in icc 8.0:
3603 # icc: Command line remark: option '-MP' not supported
3604 if (grep 'ignoring option' conftest.err ||
3605 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3606 am_cv_CC_dependencies_compiler_type=$depmode
3615 am_cv_CC_dependencies_compiler_type=none
3619 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3620 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3621 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3626 test "x$enable_dependency_tracking" != xno \
3627 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3629 am__fastdepCC_FALSE='#'
3631 am__fastdepCC_TRUE='#'
3632 am__fastdepCC_FALSE=
3636 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3637 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3638 if test "${lt_cv_path_SED+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 # Loop through the user's path and test for sed and gsed.
3642 # Then use that list of sed's as ones to test for truncation.
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir=.
3648 for lt_ac_prog in sed gsed; do
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3651 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3659 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3660 # along with /bin/sed that truncates output.
3661 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3662 test ! -f $lt_ac_sed && continue
3663 cat /dev/null > conftest.in
3665 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3666 # Check for GNU sed and select it if it is found.
3667 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3668 lt_cv_path_SED=$lt_ac_sed
3672 cat conftest.in conftest.in >conftest.tmp
3673 mv conftest.tmp conftest.in
3674 cp conftest.in conftest.nl
3676 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3677 cmp -s conftest.out conftest.nl || break
3678 # 10000 chars as input seems more than enough
3679 test $lt_ac_count -gt 10 && break
3680 lt_ac_count=`expr $lt_ac_count + 1`
3681 if test $lt_ac_count -gt $lt_ac_max; then
3682 lt_ac_max=$lt_ac_count
3683 lt_cv_path_SED=$lt_ac_sed
3692 echo "$as_me:$LINENO: result: $SED" >&5
3693 echo "${ECHO_T}$SED" >&6
3695 echo "$as_me:$LINENO: checking for egrep" >&5
3696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3697 if test "${ac_cv_prog_egrep+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3701 then ac_cv_prog_egrep='grep -E'
3702 else ac_cv_prog_egrep='egrep'
3705 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3706 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3707 EGREP=$ac_cv_prog_egrep
3711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3712 if test "${with_gnu_ld+set}" = set; then
3713 withval="$with_gnu_ld"
3714 test "$withval" = no || with_gnu_ld=yes
3719 if test "$GCC" = yes; then
3720 # Check if gcc -print-prog-name=ld gives a path.
3721 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3722 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3725 # gcc leaves a trailing carriage return which upsets mingw
3726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3731 # Accept absolute paths.
3733 re_direlt='/[^/][^/]*/\.\./'
3734 # Canonicalize the pathname of ld
3735 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3736 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3737 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3739 test -z "$LD" && LD="$ac_prog"
3742 # If it fails, then pretend we aren't using GCC.
3746 # If it is relative, then search for the first ld in PATH.
3750 elif test "$with_gnu_ld" = yes; then
3751 echo "$as_me:$LINENO: checking for GNU ld" >&5
3752 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3754 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3755 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3757 if test "${lt_cv_path_LD+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -z "$LD"; then
3761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3762 for ac_dir in $PATH; do
3764 test -z "$ac_dir" && ac_dir=.
3765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3766 lt_cv_path_LD="$ac_dir/$ac_prog"
3767 # Check to see if the program is GNU ld. I'd rather use --version,
3768 # but apparently some variants of GNU ld only accept -v.
3769 # Break only if it was the GNU/non-GNU ld that we prefer.
3770 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3771 *GNU* | *'with BFD'*)
3772 test "$with_gnu_ld" != no && break
3775 test "$with_gnu_ld" != yes && break
3782 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3787 if test -n "$LD"; then
3788 echo "$as_me:$LINENO: result: $LD" >&5
3789 echo "${ECHO_T}$LD" >&6
3791 echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3794 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3795 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3796 { (exit 1); exit 1; }; }
3797 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3798 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3799 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3803 case `$LD -v 2>&1 </dev/null` in
3804 *GNU* | *'with BFD'*)
3805 lt_cv_prog_gnu_ld=yes
3808 lt_cv_prog_gnu_ld=no
3812 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3813 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3814 with_gnu_ld=$lt_cv_prog_gnu_ld
3817 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3818 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3819 if test "${lt_cv_ld_reload_flag+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 lt_cv_ld_reload_flag='-r'
3824 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3825 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3826 reload_flag=$lt_cv_ld_reload_flag
3827 case $reload_flag in
3829 *) reload_flag=" $reload_flag" ;;
3831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3834 if test "$GCC" = yes; then
3835 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3842 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3843 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3844 if test "${lt_cv_path_NM+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 if test -n "$NM"; then
3848 # Let the user override the test.
3851 lt_nm_to_check="${ac_tool_prefix}nm"
3852 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3853 lt_nm_to_check="$lt_nm_to_check nm"
3855 for lt_tmp_nm in $lt_nm_to_check; do
3856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3857 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3859 test -z "$ac_dir" && ac_dir=.
3860 tmp_nm="$ac_dir/$lt_tmp_nm"
3861 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3862 # Check to see if the nm accepts a BSD-compat flag.
3863 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3864 # nm: unknown option "B" ignored
3865 # Tru64's nm complains that /dev/null is an invalid object file
3866 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3867 */dev/null* | *'Invalid file or object type'*)
3868 lt_cv_path_NM="$tmp_nm -B"
3872 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3874 lt_cv_path_NM="$tmp_nm -p"
3878 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3879 continue # so that we can try to find one that supports BSD flags
3888 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3891 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3892 echo "${ECHO_T}$lt_cv_path_NM" >&6
3895 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3896 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3898 if test "$LN_S" = "ln -s"; then
3899 echo "$as_me:$LINENO: result: yes" >&5
3900 echo "${ECHO_T}yes" >&6
3902 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3903 echo "${ECHO_T}no, using $LN_S" >&6
3906 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3907 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3908 if test "${lt_cv_deplibs_check_method+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 lt_cv_file_magic_cmd='$MAGIC_CMD'
3912 lt_cv_file_magic_test_file=
3913 lt_cv_deplibs_check_method='unknown'
3914 # Need to set the preceding variable on all platforms that support
3915 # interlibrary dependencies.
3916 # 'none' -- dependencies not supported.
3917 # `unknown' -- same as none, but documents that we really don't know.
3918 # 'pass_all' -- all dependencies passed with no checks.
3919 # 'test_compile' -- check by making test program.
3920 # 'file_magic [[regex]]' -- check by looking for files in library path
3921 # which responds to the $file_magic_cmd with a given extended regex.
3922 # If you have `file' or equivalent on your system and you're not sure
3923 # whether `pass_all' will *always* work, you probably want this one.
3927 lt_cv_deplibs_check_method=pass_all
3931 lt_cv_deplibs_check_method=pass_all
3935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3936 lt_cv_file_magic_cmd='/usr/bin/file -L'
3937 lt_cv_file_magic_test_file=/shlib/libc.so
3941 # func_win32_libid is a shell function defined in ltmain.sh
3942 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3943 lt_cv_file_magic_cmd='func_win32_libid'
3947 # Base MSYS/MinGW do not provide the 'file' command needed by
3948 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3949 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3950 lt_cv_file_magic_cmd='$OBJDUMP -f'
3953 darwin* | rhapsody*)
3954 lt_cv_deplibs_check_method=pass_all
3957 freebsd* | kfreebsd*-gnu | dragonfly*)
3958 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3961 # Not sure whether the presence of OpenBSD here was a mistake.
3962 # Let's accept both of them until this is cleared up.
3963 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3964 lt_cv_file_magic_cmd=/usr/bin/file
3965 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3969 lt_cv_deplibs_check_method=pass_all
3974 lt_cv_deplibs_check_method=pass_all
3977 hpux10.20* | hpux11*)
3978 lt_cv_file_magic_cmd=/usr/bin/file
3981 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3982 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3985 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]'
3986 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3989 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3990 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3996 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4000 irix5* | irix6* | nonstopux*)
4002 *-32|*"-32 ") libmagic=32-bit;;
4003 *-n32|*"-n32 ") libmagic=N32;;
4004 *-64|*"-64 ") libmagic=64-bit;;
4005 *) libmagic=never-match;;
4007 lt_cv_deplibs_check_method=pass_all
4010 # This must be Linux ELF.
4012 lt_cv_deplibs_check_method=pass_all
4016 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4025 lt_cv_file_magic_cmd=/usr/bin/file
4026 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4030 lt_cv_deplibs_check_method=unknown
4034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4041 osf3* | osf4* | osf5*)
4042 lt_cv_deplibs_check_method=pass_all
4046 lt_cv_deplibs_check_method=pass_all
4050 case $host_vendor in
4052 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]'
4053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4056 lt_cv_deplibs_check_method=pass_all
4059 lt_cv_file_magic_cmd='/bin/file'
4060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4063 lt_cv_file_magic_cmd='/bin/file'
4064 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4065 lt_cv_file_magic_test_file=/lib/libc.so
4068 lt_cv_deplibs_check_method=pass_all
4071 lt_cv_deplibs_check_method=pass_all
4076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4077 lt_cv_deplibs_check_method=pass_all
4082 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4083 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4084 file_magic_cmd=$lt_cv_file_magic_cmd
4085 deplibs_check_method=$lt_cv_deplibs_check_method
4086 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4091 # If no C compiler was specified, use CC.
4094 # If no C compiler flags were specified, use CFLAGS.
4095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4097 # Allow CC to be a program name with arguments.
4101 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4102 if test "${enable_libtool_lock+set}" = set; then
4103 enableval="$enable_libtool_lock"
4106 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4108 # Some flags need to be propagated to the compiler or linker for good
4112 # Find out which ABI we are using.
4113 echo 'int i;' > conftest.$ac_ext
4114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4115 (eval $ac_compile) 2>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; then
4119 case `/usr/bin/file conftest.$ac_objext` in
4131 # Find out which ABI we are using.
4132 echo '#line 4132 "configure"' > conftest.$ac_ext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; then
4138 if test "$lt_cv_prog_gnu_ld" = yes; then
4139 case `/usr/bin/file conftest.$ac_objext` in
4141 LD="${LD-ld} -melf32bsmip"
4144 LD="${LD-ld} -melf32bmipn32"
4147 LD="${LD-ld} -melf64bmip"
4151 case `/usr/bin/file conftest.$ac_objext` in
4167 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4168 # Find out which ABI we are using.
4169 echo 'int i;' > conftest.$ac_ext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171 (eval $ac_compile) 2>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; then
4175 case `/usr/bin/file conftest.o` in
4179 LD="${LD-ld} -m elf_i386"
4181 ppc64-*linux*|powerpc64-*linux*)
4182 LD="${LD-ld} -m elf32ppclinux"
4185 LD="${LD-ld} -m elf_s390"
4188 LD="${LD-ld} -m elf32_sparc"
4195 LD="${LD-ld} -m elf_x86_64"
4197 ppc*-*linux*|powerpc*-*linux*)
4198 LD="${LD-ld} -m elf64ppc"
4201 LD="${LD-ld} -m elf64_s390"
4204 LD="${LD-ld} -m elf64_sparc"
4214 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4215 SAVE_CFLAGS="$CFLAGS"
4216 CFLAGS="$CFLAGS -belf"
4217 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4218 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4219 if test "${lt_cv_cc_needs_belf+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4243 rm -f conftest.$ac_objext conftest$ac_exeext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245 (eval $ac_link) 2>conftest.er1
4247 grep -v '^ *+' conftest.er1 >conftest.err
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag"
4253 || test ! -s conftest.err'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; } &&
4259 { ac_try='test -s conftest$ac_exeext'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4265 lt_cv_cc_needs_belf=yes
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4270 lt_cv_cc_needs_belf=no
4272 rm -f conftest.err conftest.$ac_objext \
4273 conftest$ac_exeext conftest.$ac_ext
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4282 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4283 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4284 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4285 CFLAGS="$SAVE_CFLAGS"
4289 # Find out which ABI we are using.
4290 echo 'int i;' > conftest.$ac_ext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292 (eval $ac_compile) 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; then
4296 case `/usr/bin/file conftest.o` in
4298 case $lt_cv_prog_gnu_ld in
4299 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4300 *) LD="${LD-ld} -64" ;;
4311 need_locks="$enable_libtool_lock"
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4320 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4321 # On Suns, sometimes $CPP names a directory.
4322 if test -n "$CPP" && test -d "$CPP"; then
4325 if test -z "$CPP"; then
4326 if test "${ac_cv_prog_CPP+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 # Double quotes because CPP needs to be expanded
4330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4333 for ac_c_preproc_warn_flag in '' yes
4335 # Use a header file that comes with gcc, so configuring glibc
4336 # with a fresh cross-compiler works.
4337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4338 # <limits.h> exists even on freestanding compilers.
4339 # On the NeXT, cc -E runs the code through the compiler's parser,
4340 # not just through cpp. "Syntax error" is here to catch this case.
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4348 # include <limits.h>
4350 # include <assert.h>
4354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4357 grep -v '^ *+' conftest.er1 >conftest.err
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } >/dev/null; then
4362 if test -s conftest.err; then
4363 ac_cpp_err=$ac_c_preproc_warn_flag
4364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4371 if test -z "$ac_cpp_err"; then
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4377 # Broken: fails on valid input.
4380 rm -f conftest.err conftest.$ac_ext
4382 # OK, works on sane cases. Now check whether non-existent headers
4383 # can be detected and how.
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 #include <ac_nonexistent.h>
4392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395 grep -v '^ *+' conftest.er1 >conftest.err
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } >/dev/null; then
4400 if test -s conftest.err; then
4401 ac_cpp_err=$ac_c_preproc_warn_flag
4402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4409 if test -z "$ac_cpp_err"; then
4410 # Broken: success on invalid input.
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4416 # Passes both tests.
4420 rm -f conftest.err conftest.$ac_ext
4423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4424 rm -f conftest.err conftest.$ac_ext
4425 if $ac_preproc_ok; then
4437 echo "$as_me:$LINENO: result: $CPP" >&5
4438 echo "${ECHO_T}$CPP" >&6
4440 for ac_c_preproc_warn_flag in '' yes
4442 # Use a header file that comes with gcc, so configuring glibc
4443 # with a fresh cross-compiler works.
4444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445 # <limits.h> exists even on freestanding compilers.
4446 # On the NeXT, cc -E runs the code through the compiler's parser,
4447 # not just through cpp. "Syntax error" is here to catch this case.
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4455 # include <limits.h>
4457 # include <assert.h>
4461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4464 grep -v '^ *+' conftest.er1 >conftest.err
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } >/dev/null; then
4469 if test -s conftest.err; then
4470 ac_cpp_err=$ac_c_preproc_warn_flag
4471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4478 if test -z "$ac_cpp_err"; then
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 # Broken: fails on valid input.
4487 rm -f conftest.err conftest.$ac_ext
4489 # OK, works on sane cases. Now check whether non-existent headers
4490 # can be detected and how.
4491 cat >conftest.$ac_ext <<_ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4497 #include <ac_nonexistent.h>
4499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4502 grep -v '^ *+' conftest.er1 >conftest.err
4504 cat conftest.err >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } >/dev/null; then
4507 if test -s conftest.err; then
4508 ac_cpp_err=$ac_c_preproc_warn_flag
4509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4516 if test -z "$ac_cpp_err"; then
4517 # Broken: success on invalid input.
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4523 # Passes both tests.
4527 rm -f conftest.err conftest.$ac_ext
4530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4531 rm -f conftest.err conftest.$ac_ext
4532 if $ac_preproc_ok; then
4535 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4536 See \`config.log' for more details." >&5
4537 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4538 See \`config.log' for more details." >&2;}
4539 { (exit 1); exit 1; }; }
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4551 if test "${ac_cv_header_stdc+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 cat >conftest.$ac_ext <<_ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4573 rm -f conftest.$ac_objext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575 (eval $ac_compile) 2>conftest.er1
4577 grep -v '^ *+' conftest.er1 >conftest.err
4579 cat conftest.err >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } &&
4582 { ac_try='test -z "$ac_c_werror_flag"
4583 || test ! -s conftest.err'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; } &&
4589 { ac_try='test -s conftest.$ac_objext'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4595 ac_cv_header_stdc=yes
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 ac_cv_header_stdc=no
4602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4604 if test $ac_cv_header_stdc = yes; then
4605 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4606 cat >conftest.$ac_ext <<_ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 $EGREP "memchr" >/dev/null 2>&1; then
4619 ac_cv_header_stdc=no
4625 if test $ac_cv_header_stdc = yes; then
4626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4627 cat >conftest.$ac_ext <<_ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637 $EGREP "free" >/dev/null 2>&1; then
4640 ac_cv_header_stdc=no
4646 if test $ac_cv_header_stdc = yes; then
4647 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4648 if test "$cross_compiling" = yes; then
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4658 #if ((' ' & 0x0FF) == 0x020)
4659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4662 # define ISLOWER(c) \
4663 (('a' <= (c) && (c) <= 'i') \
4664 || ('j' <= (c) && (c) <= 'r') \
4665 || ('s' <= (c) && (c) <= 'z'))
4666 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4669 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4674 for (i = 0; i < 256; i++)
4675 if (XOR (islower (i), ISLOWER (i))
4676 || toupper (i) != TOUPPER (i))
4681 rm -f conftest$ac_exeext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4683 (eval $ac_link) 2>&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4694 echo "$as_me: program exited with status $ac_status" >&5
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4699 ac_cv_header_stdc=no
4701 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4705 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4706 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4707 if test $ac_cv_header_stdc = yes; then
4709 cat >>confdefs.h <<\_ACEOF
4710 #define STDC_HEADERS 1
4715 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4725 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4726 inttypes.h stdint.h unistd.h
4728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4729 echo "$as_me:$LINENO: checking for $ac_header" >&5
4730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 cat >conftest.$ac_ext <<_ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 $ac_includes_default
4742 #include <$ac_header>
4744 rm -f conftest.$ac_objext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -z "$ac_c_werror_flag"
4754 || test ! -s conftest.err'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; } &&
4760 { ac_try='test -s conftest.$ac_objext'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 eval "$as_ac_Header=yes"
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4771 eval "$as_ac_Header=no"
4773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4778 cat >>confdefs.h <<_ACEOF
4779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788 for ac_header in dlfcn.h
4790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792 echo "$as_me:$LINENO: checking for $ac_header" >&5
4793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4800 # Is the header compilable?
4801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 $ac_includes_default
4810 #include <$ac_header>
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -z "$ac_c_werror_flag"
4822 || test ! -s conftest.err'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; } &&
4828 { ac_try='test -s conftest.$ac_objext'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 ac_header_compiler=yes
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 ac_header_compiler=no
4841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4843 echo "${ECHO_T}$ac_header_compiler" >&6
4845 # Is the header present?
4846 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4848 cat >conftest.$ac_ext <<_ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <$ac_header>
4856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4859 grep -v '^ *+' conftest.er1 >conftest.err
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } >/dev/null; then
4864 if test -s conftest.err; then
4865 ac_cpp_err=$ac_c_preproc_warn_flag
4866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4873 if test -z "$ac_cpp_err"; then
4874 ac_header_preproc=yes
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4879 ac_header_preproc=no
4881 rm -f conftest.err conftest.$ac_ext
4882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4883 echo "${ECHO_T}$ac_header_preproc" >&6
4885 # So? What about this header?
4886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4892 ac_header_preproc=yes
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4909 ## ------------------------------------------ ##
4910 ## Report this to the AC_PACKAGE_NAME lists. ##
4911 ## ------------------------------------------ ##
4914 sed "s/^/$as_me: WARNING: /" >&2
4917 echo "$as_me:$LINENO: checking for $ac_header" >&5
4918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 eval "$as_ac_Header=\$ac_header_preproc"
4924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4929 cat >>confdefs.h <<_ACEOF
4930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4939 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4940 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4941 (test "X$CXX" != "Xg++"))) ; then
4943 ac_cpp='$CXXCPP $CPPFLAGS'
4944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4947 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4948 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4949 if test -z "$CXXCPP"; then
4950 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 # Double quotes because CXXCPP needs to be expanded
4954 for CXXCPP in "$CXX -E" "/lib/cpp"
4957 for ac_cxx_preproc_warn_flag in '' yes
4959 # Use a header file that comes with gcc, so configuring glibc
4960 # with a fresh cross-compiler works.
4961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4962 # <limits.h> exists even on freestanding compilers.
4963 # On the NeXT, cc -E runs the code through the compiler's parser,
4964 # not just through cpp. "Syntax error" is here to catch this case.
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4972 # include <limits.h>
4974 # include <assert.h>
4978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4981 grep -v '^ *+' conftest.er1 >conftest.err
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } >/dev/null; then
4986 if test -s conftest.err; then
4987 ac_cpp_err=$ac_cxx_preproc_warn_flag
4988 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4995 if test -z "$ac_cpp_err"; then
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5001 # Broken: fails on valid input.
5004 rm -f conftest.err conftest.$ac_ext
5006 # OK, works on sane cases. Now check whether non-existent headers
5007 # can be detected and how.
5008 cat >conftest.$ac_ext <<_ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014 #include <ac_nonexistent.h>
5016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5019 grep -v '^ *+' conftest.er1 >conftest.err
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } >/dev/null; then
5024 if test -s conftest.err; then
5025 ac_cpp_err=$ac_cxx_preproc_warn_flag
5026 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5033 if test -z "$ac_cpp_err"; then
5034 # Broken: success on invalid input.
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 # Passes both tests.
5044 rm -f conftest.err conftest.$ac_ext
5047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5048 rm -f conftest.err conftest.$ac_ext
5049 if $ac_preproc_ok; then
5054 ac_cv_prog_CXXCPP=$CXXCPP
5057 CXXCPP=$ac_cv_prog_CXXCPP
5059 ac_cv_prog_CXXCPP=$CXXCPP
5061 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5062 echo "${ECHO_T}$CXXCPP" >&6
5064 for ac_cxx_preproc_warn_flag in '' yes
5066 # Use a header file that comes with gcc, so configuring glibc
5067 # with a fresh cross-compiler works.
5068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5069 # <limits.h> exists even on freestanding compilers.
5070 # On the NeXT, cc -E runs the code through the compiler's parser,
5071 # not just through cpp. "Syntax error" is here to catch this case.
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5079 # include <limits.h>
5081 # include <assert.h>
5085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5088 grep -v '^ *+' conftest.er1 >conftest.err
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } >/dev/null; then
5093 if test -s conftest.err; then
5094 ac_cpp_err=$ac_cxx_preproc_warn_flag
5095 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5102 if test -z "$ac_cpp_err"; then
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5108 # Broken: fails on valid input.
5111 rm -f conftest.err conftest.$ac_ext
5113 # OK, works on sane cases. Now check whether non-existent headers
5114 # can be detected and how.
5115 cat >conftest.$ac_ext <<_ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 #include <ac_nonexistent.h>
5123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5126 grep -v '^ *+' conftest.er1 >conftest.err
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev/null; then
5131 if test -s conftest.err; then
5132 ac_cpp_err=$ac_cxx_preproc_warn_flag
5133 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5140 if test -z "$ac_cpp_err"; then
5141 # Broken: success on invalid input.
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147 # Passes both tests.
5151 rm -f conftest.err conftest.$ac_ext
5154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5155 rm -f conftest.err conftest.$ac_ext
5156 if $ac_preproc_ok; then
5159 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5160 See \`config.log' for more details." >&5
5161 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5162 See \`config.log' for more details." >&2;}
5163 { (exit 1); exit 1; }; }
5167 ac_cpp='$CXXCPP $CPPFLAGS'
5168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5176 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5177 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5179 if test -n "$ac_tool_prefix"; then
5180 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_prog_F77+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 if test -n "$F77"; then
5190 ac_cv_prog_F77="$F77" # Let the user override the test.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 if test -n "$F77"; then
5210 echo "$as_me:$LINENO: result: $F77" >&5
5211 echo "${ECHO_T}$F77" >&6
5213 echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5217 test -n "$F77" && break
5220 if test -z "$F77"; then
5222 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5224 # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 if test -n "$ac_ct_F77"; then
5232 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_ac_ct_F77="$ac_prog"
5242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5251 if test -n "$ac_ct_F77"; then
5252 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5253 echo "${ECHO_T}$ac_ct_F77" >&6
5255 echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5259 test -n "$ac_ct_F77" && break
5266 # Provide some information about the compiler.
5267 echo "$as_me:5267:" \
5268 "checking for Fortran 77 compiler version" >&5
5269 ac_compiler=`set X $ac_compile; echo $2`
5270 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5271 (eval $ac_compiler --version </dev/null >&5) 2>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }
5275 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5276 (eval $ac_compiler -v </dev/null >&5) 2>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }
5280 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5281 (eval $ac_compiler -V </dev/null >&5) 2>&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }
5287 # If we don't use `.F' as extension, the preprocessor is not run on the
5288 # input file. (Note that this only needs to work for GNU compilers.)
5291 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5292 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5293 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 cat >conftest.$ac_ext <<_ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>conftest.er1
5308 grep -v '^ *+' conftest.er1 >conftest.err
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_f77_werror_flag"
5314 || test ! -s conftest.err'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; } &&
5320 { ac_try='test -s conftest.$ac_objext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5337 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5338 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5340 ac_test_FFLAGS=${FFLAGS+set}
5341 ac_save_FFLAGS=$FFLAGS
5343 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5344 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5345 if test "${ac_cv_prog_f77_g+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 cat >conftest.$ac_ext <<_ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5358 grep -v '^ *+' conftest.er1 >conftest.err
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_f77_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 ac_cv_prog_f77_g=yes
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5387 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5388 if test "$ac_test_FFLAGS" = set; then
5389 FFLAGS=$ac_save_FFLAGS
5390 elif test $ac_cv_prog_f77_g = yes; then
5391 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5397 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5404 G77=`test $ac_compiler_gnu = yes && echo yes`
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5415 # find the maximum length of command line arguments
5416 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5417 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5418 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 # On DJGPP, this test can blow up pretty badly due to problems in libc
5427 # (any single argument exceeding 2000 bytes causes a buffer overrun
5428 # during glob expansion). Even if it were fixed, the result of this
5429 # check would be larger than it should be.
5430 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5434 # Under GNU Hurd, this test is not required because there is
5435 # no limit to the length of command line arguments.
5436 # Libtool will interpret -1 as no limit whatsoever
5437 lt_cv_sys_max_cmd_len=-1;
5441 # On Win9x/ME, this test blows up -- it succeeds, but takes
5442 # about 5 minutes as the teststring grows exponentially.
5443 # Worse, since 9x/ME are not pre-emptively multitasking,
5444 # you end up with a "frozen" computer, even though with patience
5445 # the test eventually succeeds (with a max line length of 256k).
5446 # Instead, let's just punt: use the minimum linelength reported by
5447 # all of the supported platforms: 8192 (on NT/2K/XP).
5448 lt_cv_sys_max_cmd_len=8192;
5452 # On AmigaOS with pdksh, this test takes hours, literally.
5453 # So we just punt and use a minimum line length of 8192.
5454 lt_cv_sys_max_cmd_len=8192;
5457 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5458 # This has been around since 386BSD, at least. Likely further.
5459 if test -x /sbin/sysctl; then
5460 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5461 elif test -x /usr/sbin/sysctl; then
5462 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5464 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5466 # And add a safety zone
5467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5472 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5473 lt_cv_sys_max_cmd_len=196608
5477 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5478 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5479 # nice to cause kernel panics so lets avoid the loop below.
5480 # First set a reasonable default.
5481 lt_cv_sys_max_cmd_len=16384
5483 if test -x /sbin/sysconfig; then
5484 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5485 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5490 lt_cv_sys_max_cmd_len=102400
5492 sysv5* | sco5v6* | sysv4.2uw2*)
5493 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5494 if test -n "$kargmax"; then
5495 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5497 lt_cv_sys_max_cmd_len=32768
5501 # If test is not a shell built-in, we'll probably end up computing a
5502 # maximum length that is only half of the actual maximum length, but
5504 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5505 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5506 = "XX$teststring") >/dev/null 2>&1 &&
5507 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5508 lt_cv_sys_max_cmd_len=$new_result &&
5509 test $i != 17 # 1/2 MB should be enough
5512 teststring=$teststring$teststring
5515 # Add a significant safety factor because C++ compilers can tack on massive
5516 # amounts of additional arguments before passing them to the linker.
5517 # It appears as though 1/2 is a usable value.
5518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5524 if test -n $lt_cv_sys_max_cmd_len ; then
5525 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5526 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5528 echo "$as_me:$LINENO: result: none" >&5
5529 echo "${ECHO_T}none" >&6
5535 # Check for command to grab the raw symbol name followed by C symbol from nm.
5536 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5537 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5538 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 # These are sane defaults that work on at least a few old systems.
5543 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5545 # Character class describing NM global symbol codes.
5546 symcode='[BCDEGRST]'
5548 # Regexp to match symbols that can be accessed directly from C.
5549 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5551 # Transform an extracted symbol line into a proper C declaration
5552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5554 # Transform an extracted symbol line into symbol name and symbol address
5555 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'"
5557 # Define system-specific variables.
5562 cygwin* | mingw* | pw32*)
5563 symcode='[ABCDGISTW]'
5565 hpux*) # Its linker distinguishes data from code symbols
5566 if test "$host_cpu" = ia64; then
5567 symcode='[ABCDEGRST]'
5569 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5570 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'"
5573 if test "$host_cpu" = ia64; then
5574 symcode='[ABCDGIRSTW]'
5575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5576 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'"
5580 symcode='[BCDEGRST]'
5583 symcode='[BCDEGQRST]'
5594 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5602 # Handle CRLF in mingw tool chain
5606 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5610 # If we're using GNU nm, then use its standard symbol codes.
5611 case `$NM -V 2>&1` in
5612 *GNU* | *'with BFD'*)
5613 symcode='[ABCDGIRSTW]' ;;
5616 # Try without a prefix undercore, then with it.
5617 for ac_symprfx in "" "_"; do
5619 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5620 symxfrm="\\1 $ac_symprfx\\2 \\2"
5622 # Write the raw and C identifiers.
5623 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5625 # Check to see that the pipe works correctly.
5629 cat > conftest.$ac_ext <<EOF
5634 void nm_test_func(){}
5638 int main(){nm_test_var='a';nm_test_func();return(0);}
5641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5642 (eval $ac_compile) 2>&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; then
5646 # Now try to grab the symbols.
5648 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5649 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } && test -s "$nlist"; then
5653 # Try sorting and uniquifying the output.
5654 if sort "$nlist" | uniq > "$nlist"T; then
5655 mv -f "$nlist"T "$nlist"
5660 # Make sure that we snagged all the symbols we need.
5661 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5662 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5663 cat <<EOF > conftest.$ac_ext
5669 # Now generate the symbol file.
5670 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5672 cat <<EOF >> conftest.$ac_ext
5673 #if defined (__STDC__) && __STDC__
5674 # define lt_ptr_t void *
5676 # define lt_ptr_t char *
5680 /* The mapping between symbol names and symbols. */
5685 lt_preloaded_symbols[] =
5688 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5689 cat <<\EOF >> conftest.$ac_ext
5697 # Now try linking the two files.
5698 mv conftest.$ac_objext conftstm.$ac_objext
5699 lt_save_LIBS="$LIBS"
5700 lt_save_CFLAGS="$CFLAGS"
5701 LIBS="conftstm.$ac_objext"
5702 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5710 LIBS="$lt_save_LIBS"
5711 CFLAGS="$lt_save_CFLAGS"
5713 echo "cannot find nm_test_func in $nlist" >&5
5716 echo "cannot find nm_test_var in $nlist" >&5
5719 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5722 echo "$progname: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5725 rm -f conftest* conftst*
5727 # Do not use the global_symbol_pipe unless it works.
5728 if test "$pipe_works" = yes; then
5731 lt_cv_sys_global_symbol_pipe=
5737 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5738 lt_cv_sys_global_symbol_to_cdecl=
5740 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5741 echo "$as_me:$LINENO: result: failed" >&5
5742 echo "${ECHO_T}failed" >&6
5744 echo "$as_me:$LINENO: result: ok" >&5
5745 echo "${ECHO_T}ok" >&6
5748 echo "$as_me:$LINENO: checking for objdir" >&5
5749 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5750 if test "${lt_cv_objdir+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 rm -f .libs 2>/dev/null
5754 mkdir .libs 2>/dev/null
5755 if test -d .libs; then
5758 # MS-DOS does not allow filenames that begin with a dot.
5761 rmdir .libs 2>/dev/null
5763 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5764 echo "${ECHO_T}$lt_cv_objdir" >&6
5765 objdir=$lt_cv_objdir
5773 # AIX sometimes has problems with the GCC collect2 program. For some
5774 # reason, if we set the COLLECT_NAMES environment variable, the problems
5775 # vanish in a puff of smoke.
5776 if test "X${COLLECT_NAMES+set}" != Xset; then
5778 export COLLECT_NAMES
5783 # Sed substitution that helps us do robust quoting. It backslashifies
5784 # metacharacters that are still active within double-quoted strings.
5785 Xsed='sed -e 1s/^X//'
5786 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5788 # Same as above, but do not quote variable references.
5789 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5791 # Sed substitution to delay expansion of an escaped shell variable in a
5792 # double_quote_subst'ed string.
5793 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5795 # Sed substitution to avoid accidental globbing in evaled expressions
5796 no_glob_subst='s/\*/\\\*/g'
5802 default_ofile=libtool
5803 can_build_shared=yes
5805 # All known linkers require a `.a' archive for static linking (except MSVC,
5806 # which needs '.lib').
5808 ltmain="$ac_aux_dir/ltmain.sh"
5809 ofile="$default_ofile"
5810 with_gnu_ld="$lt_cv_prog_gnu_ld"
5812 if test -n "$ac_tool_prefix"; then
5813 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5814 set dummy ${ac_tool_prefix}ar; ac_word=$2
5815 echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5817 if test "${ac_cv_prog_AR+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 if test -n "$AR"; then
5821 ac_cv_prog_AR="$AR" # Let the user override the test.
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_AR="${ac_tool_prefix}ar"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 if test -n "$AR"; then
5841 echo "$as_me:$LINENO: result: $AR" >&5
5842 echo "${ECHO_T}$AR" >&6
5844 echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6
5849 if test -z "$ac_cv_prog_AR"; then
5851 # Extract the first word of "ar", so it can be a program name with args.
5852 set dummy ar; ac_word=$2
5853 echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5855 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 if test -n "$ac_ct_AR"; then
5859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_ac_ct_AR="ar"
5869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5879 if test -n "$ac_ct_AR"; then
5880 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5881 echo "${ECHO_T}$ac_ct_AR" >&6
5883 echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6
5892 if test -n "$ac_tool_prefix"; then
5893 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5894 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5895 echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897 if test "${ac_cv_prog_RANLIB+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 if test -n "$RANLIB"; then
5901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 RANLIB=$ac_cv_prog_RANLIB
5920 if test -n "$RANLIB"; then
5921 echo "$as_me:$LINENO: result: $RANLIB" >&5
5922 echo "${ECHO_T}$RANLIB" >&6
5924 echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5929 if test -z "$ac_cv_prog_RANLIB"; then
5930 ac_ct_RANLIB=$RANLIB
5931 # Extract the first word of "ranlib", so it can be a program name with args.
5932 set dummy ranlib; ac_word=$2
5933 echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5935 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 if test -n "$ac_ct_RANLIB"; then
5939 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_ac_ct_RANLIB="ranlib"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5958 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5959 if test -n "$ac_ct_RANLIB"; then
5960 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5961 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5963 echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6
5967 RANLIB=$ac_ct_RANLIB
5969 RANLIB="$ac_cv_prog_RANLIB"
5972 if test -n "$ac_tool_prefix"; then
5973 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}strip; ac_word=$2
5975 echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5977 if test "${ac_cv_prog_STRIP+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 if test -n "$STRIP"; then
5981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 STRIP=$ac_cv_prog_STRIP
6000 if test -n "$STRIP"; then
6001 echo "$as_me:$LINENO: result: $STRIP" >&5
6002 echo "${ECHO_T}$STRIP" >&6
6004 echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6009 if test -z "$ac_cv_prog_STRIP"; then
6011 # Extract the first word of "strip", so it can be a program name with args.
6012 set dummy strip; ac_word=$2
6013 echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6015 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 if test -n "$ac_ct_STRIP"; then
6019 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_ac_ct_STRIP="strip"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6038 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6039 if test -n "$ac_ct_STRIP"; then
6040 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6041 echo "${ECHO_T}$ac_ct_STRIP" >&6
6043 echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6
6049 STRIP="$ac_cv_prog_STRIP"
6054 old_CFLAGS="$CFLAGS"
6056 # Set sane defaults for various variables
6057 test -z "$AR" && AR=ar
6058 test -z "$AR_FLAGS" && AR_FLAGS=cru
6059 test -z "$AS" && AS=as
6060 test -z "$CC" && CC=cc
6061 test -z "$LTCC" && LTCC=$CC
6062 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6063 test -z "$DLLTOOL" && DLLTOOL=dlltool
6064 test -z "$LD" && LD=ld
6065 test -z "$LN_S" && LN_S="ln -s"
6066 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6067 test -z "$NM" && NM=nm
6068 test -z "$SED" && SED=sed
6069 test -z "$OBJDUMP" && OBJDUMP=objdump
6070 test -z "$RANLIB" && RANLIB=:
6071 test -z "$STRIP" && STRIP=:
6072 test -z "$ac_objext" && ac_objext=o
6074 # Determine commands to create old-style static archives.
6075 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6076 old_postinstall_cmds='chmod 644 $oldlib'
6077 old_postuninstall_cmds=
6079 if test -n "$RANLIB"; then
6082 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6085 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6088 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6091 for cc_temp in $compiler""; do
6093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6099 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6102 # Only perform the check for file, if the check method requires it
6103 case $deplibs_check_method in
6105 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6106 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6107 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6108 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6116 lt_save_MAGIC_CMD="$MAGIC_CMD"
6117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6119 for ac_dir in $ac_dummy; do
6121 test -z "$ac_dir" && ac_dir=.
6122 if test -f $ac_dir/${ac_tool_prefix}file; then
6123 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6124 if test -n "$file_magic_test_file"; then
6125 case $deplibs_check_method in
6127 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6130 $EGREP "$file_magic_regex" > /dev/null; then
6135 *** Warning: the command libtool uses to detect shared libraries,
6136 *** $file_magic_cmd, produces output that libtool cannot recognize.
6137 *** The result is that libtool may fail to recognize shared libraries
6138 *** as such. This will affect the creation of libtool libraries that
6139 *** depend on shared libraries, but programs linked with such libtool
6140 *** libraries will work regardless of this problem. Nevertheless, you
6141 *** may want to report the problem to your system manager and/or to
6142 *** bug-libtool@gnu.org
6152 MAGIC_CMD="$lt_save_MAGIC_CMD"
6157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6158 if test -n "$MAGIC_CMD"; then
6159 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6160 echo "${ECHO_T}$MAGIC_CMD" >&6
6162 echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6
6166 if test -z "$lt_cv_path_MAGIC_CMD"; then
6167 if test -n "$ac_tool_prefix"; then
6168 echo "$as_me:$LINENO: checking for file" >&5
6169 echo $ECHO_N "checking for file... $ECHO_C" >&6
6170 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6178 lt_save_MAGIC_CMD="$MAGIC_CMD"
6179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6181 for ac_dir in $ac_dummy; do
6183 test -z "$ac_dir" && ac_dir=.
6184 if test -f $ac_dir/file; then
6185 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6186 if test -n "$file_magic_test_file"; then
6187 case $deplibs_check_method in
6189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6192 $EGREP "$file_magic_regex" > /dev/null; then
6197 *** Warning: the command libtool uses to detect shared libraries,
6198 *** $file_magic_cmd, produces output that libtool cannot recognize.
6199 *** The result is that libtool may fail to recognize shared libraries
6200 *** as such. This will affect the creation of libtool libraries that
6201 *** depend on shared libraries, but programs linked with such libtool
6202 *** libraries will work regardless of this problem. Nevertheless, you
6203 *** may want to report the problem to your system manager and/or to
6204 *** bug-libtool@gnu.org
6214 MAGIC_CMD="$lt_save_MAGIC_CMD"
6219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6220 if test -n "$MAGIC_CMD"; then
6221 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6222 echo "${ECHO_T}$MAGIC_CMD" >&6
6224 echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6
6240 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6241 if test "${enable_libtool_lock+set}" = set; then
6242 enableval="$enable_libtool_lock"
6245 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6248 # Check whether --with-pic or --without-pic was given.
6249 if test "${with_pic+set}" = set; then
6255 test -z "$pic_mode" && pic_mode=default
6257 # Use C for the default configuration in the libtool script
6261 ac_cpp='$CPP $CPPFLAGS'
6262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6267 # Source file extension for C test sources.
6270 # Object file extension for compiled C test sources.
6274 # Code to be used in simple compile tests
6275 lt_simple_compile_test_code="int some_variable = 0;\n"
6277 # Code to be used in simple link tests
6278 lt_simple_link_test_code='int main(){return(0);}\n'
6281 # If no C compiler was specified, use CC.
6284 # If no C compiler flags were specified, use CFLAGS.
6285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6287 # Allow CC to be a program name with arguments.
6291 # save warnings/boilerplate of simple test code
6292 ac_outfile=conftest.$ac_objext
6293 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6294 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6295 _lt_compiler_boilerplate=`cat conftest.err`
6298 ac_outfile=conftest.$ac_objext
6299 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6300 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6301 _lt_linker_boilerplate=`cat conftest.err`
6306 lt_prog_compiler_no_builtin_flag=
6308 if test "$GCC" = yes; then
6309 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6312 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6313 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6314 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 lt_cv_prog_compiler_rtti_exceptions=no
6318 ac_outfile=conftest.$ac_objext
6319 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6320 lt_compiler_flag="-fno-rtti -fno-exceptions"
6321 # Insert the option either (1) after the last *FLAGS variable, or
6322 # (2) before a word containing "conftest.", or (3) at the end.
6323 # Note that $ac_compile itself does not contain backslashes and begins
6324 # with a dollar sign (not a hyphen), so the echo should work correctly.
6325 # The option is referenced via a variable to avoid confusing sed.
6326 lt_compile=`echo "$ac_compile" | $SED \
6327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6329 -e 's:$: $lt_compiler_flag:'`
6330 (eval echo "\"\$as_me:6330: $lt_compile\"" >&5)
6331 (eval "$lt_compile" 2>conftest.err)
6333 cat conftest.err >&5
6334 echo "$as_me:6334: \$? = $ac_status" >&5
6335 if (exit $ac_status) && test -s "$ac_outfile"; then
6336 # The compiler can only warn and ignore the option if not recognized
6337 # So say no if there are warnings other than the usual output.
6338 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6341 lt_cv_prog_compiler_rtti_exceptions=yes
6347 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6348 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6350 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6351 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6358 lt_prog_compiler_wl=
6359 lt_prog_compiler_pic=
6360 lt_prog_compiler_static=
6362 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6363 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6365 if test "$GCC" = yes; then
6366 lt_prog_compiler_wl='-Wl,'
6367 lt_prog_compiler_static='-static'
6371 # All AIX code is PIC.
6372 if test "$host_cpu" = ia64; then
6373 # AIX 5 now supports IA64 processor
6374 lt_prog_compiler_static='-Bstatic'
6379 # FIXME: we need at least 68020 code to build shared libraries, but
6380 # adding the `-m68020' flag to GCC prevents building anything better,
6382 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6385 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6386 # PIC is the default for these OSes.
6389 mingw* | pw32* | os2*)
6390 # This hack is so that the source file can tell whether it is being
6391 # built for inclusion in a dll (and should export symbols for example).
6392 lt_prog_compiler_pic='-DDLL_EXPORT'
6395 darwin* | rhapsody*)
6396 # PIC is the default on this platform
6397 # Common symbols not allowed in MH_DYLIB files
6398 lt_prog_compiler_pic='-fno-common'
6402 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6403 # Instead, we relocate shared libraries at runtime.
6407 # Just because we use GCC doesn't mean we suddenly get shared libraries
6408 # on systems that don't support them.
6409 lt_prog_compiler_can_build_shared=no
6414 if test -d /usr/nec; then
6415 lt_prog_compiler_pic=-Kconform_pic
6420 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6427 lt_prog_compiler_pic='-fPIC'
6433 lt_prog_compiler_pic='-fPIC'
6437 # PORTME Check for flag to pass linker flags through the system compiler.
6440 lt_prog_compiler_wl='-Wl,'
6441 if test "$host_cpu" = ia64; then
6442 # AIX 5 now supports IA64 processor
6443 lt_prog_compiler_static='-Bstatic'
6445 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6449 # PIC is the default on this platform
6450 # Common symbols not allowed in MH_DYLIB files
6451 case $cc_basename in
6453 lt_prog_compiler_pic='-qnocommon'
6454 lt_prog_compiler_wl='-Wl,'
6459 mingw* | pw32* | os2*)
6460 # This hack is so that the source file can tell whether it is being
6461 # built for inclusion in a dll (and should export symbols for example).
6462 lt_prog_compiler_pic='-DDLL_EXPORT'
6465 hpux9* | hpux10* | hpux11*)
6466 lt_prog_compiler_wl='-Wl,'
6467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6474 lt_prog_compiler_pic='+Z'
6477 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6478 lt_prog_compiler_static='${wl}-a ${wl}archive'
6481 irix5* | irix6* | nonstopux*)
6482 lt_prog_compiler_wl='-Wl,'
6483 # PIC (with -KPIC) is the default.
6484 lt_prog_compiler_static='-non_shared'
6488 lt_prog_compiler_pic='-KPIC'
6489 lt_prog_compiler_static='-Bstatic'
6493 case $cc_basename in
6495 lt_prog_compiler_wl='-Wl,'
6496 lt_prog_compiler_pic='-KPIC'
6497 lt_prog_compiler_static='-static'
6499 pgcc* | pgf77* | pgf90* | pgf95*)
6500 # Portland Group compilers (*not* the Pentium gcc compiler,
6501 # which looks to be a dead project)
6502 lt_prog_compiler_wl='-Wl,'
6503 lt_prog_compiler_pic='-fpic'
6504 lt_prog_compiler_static='-Bstatic'
6507 lt_prog_compiler_wl='-Wl,'
6508 # All Alpha code is PIC.
6509 lt_prog_compiler_static='-non_shared'
6514 osf3* | osf4* | osf5*)
6515 lt_prog_compiler_wl='-Wl,'
6516 # All OSF/1 code is PIC.
6517 lt_prog_compiler_static='-non_shared'
6521 lt_prog_compiler_pic='-KPIC'
6522 lt_prog_compiler_static='-Bstatic'
6523 case $cc_basename in
6525 lt_prog_compiler_wl='-Qoption ld ';;
6527 lt_prog_compiler_wl='-Wl,';;
6532 lt_prog_compiler_wl='-Qoption ld '
6533 lt_prog_compiler_pic='-PIC'
6534 lt_prog_compiler_static='-Bstatic'
6537 sysv4 | sysv4.2uw2* | sysv4.3*)
6538 lt_prog_compiler_wl='-Wl,'
6539 lt_prog_compiler_pic='-KPIC'
6540 lt_prog_compiler_static='-Bstatic'
6544 if test -d /usr/nec ;then
6545 lt_prog_compiler_pic='-Kconform_pic'
6546 lt_prog_compiler_static='-Bstatic'
6550 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6551 lt_prog_compiler_wl='-Wl,'
6552 lt_prog_compiler_pic='-KPIC'
6553 lt_prog_compiler_static='-Bstatic'
6557 lt_prog_compiler_wl='-Wl,'
6558 lt_prog_compiler_can_build_shared=no
6562 lt_prog_compiler_pic='-pic'
6563 lt_prog_compiler_static='-Bstatic'
6567 lt_prog_compiler_can_build_shared=no
6572 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6573 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6576 # Check to make sure the PIC flag actually works.
6578 if test -n "$lt_prog_compiler_pic"; then
6580 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6581 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6582 if test "${lt_prog_compiler_pic_works+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 lt_prog_compiler_pic_works=no
6586 ac_outfile=conftest.$ac_objext
6587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6588 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6589 # Insert the option either (1) after the last *FLAGS variable, or
6590 # (2) before a word containing "conftest.", or (3) at the end.
6591 # Note that $ac_compile itself does not contain backslashes and begins
6592 # with a dollar sign (not a hyphen), so the echo should work correctly.
6593 # The option is referenced via a variable to avoid confusing sed.
6594 lt_compile=`echo "$ac_compile" | $SED \
6595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6597 -e 's:$: $lt_compiler_flag:'`
6598 (eval echo "\"\$as_me:6598: $lt_compile\"" >&5)
6599 (eval "$lt_compile" 2>conftest.err)
6601 cat conftest.err >&5
6602 echo "$as_me:6602: \$? = $ac_status" >&5
6603 if (exit $ac_status) && test -s "$ac_outfile"; then
6604 # The compiler can only warn and ignore the option if not recognized
6605 # So say no if there are warnings other than the usual output.
6606 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6609 lt_prog_compiler_pic_works=yes
6615 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6616 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6618 if test x"$lt_prog_compiler_pic_works" = xyes; then
6619 case $lt_prog_compiler_pic in
6621 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6624 lt_prog_compiler_pic=
6625 lt_prog_compiler_can_build_shared=no
6630 # For platforms which do not support PIC, -DPIC is meaningless:
6632 lt_prog_compiler_pic=
6635 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6640 # Check to make sure the static flag actually works.
6642 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6643 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6644 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6645 if test "${lt_prog_compiler_static_works+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 lt_prog_compiler_static_works=no
6649 save_LDFLAGS="$LDFLAGS"
6650 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6651 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6653 # The linker can only warn and ignore the option if not recognized
6654 # So say no if there are warnings
6655 if test -s conftest.err; then
6656 # Append any errors to the config.log.
6657 cat conftest.err 1>&5
6658 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6660 if diff conftest.exp conftest.er2 >/dev/null; then
6661 lt_prog_compiler_static_works=yes
6664 lt_prog_compiler_static_works=yes
6668 LDFLAGS="$save_LDFLAGS"
6671 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6672 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6674 if test x"$lt_prog_compiler_static_works" = xyes; then
6677 lt_prog_compiler_static=
6681 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6682 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6683 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 lt_cv_prog_compiler_c_o=no
6687 $rm -r conftest 2>/dev/null
6691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6693 lt_compiler_flag="-o out/conftest2.$ac_objext"
6694 # Insert the option either (1) after the last *FLAGS variable, or
6695 # (2) before a word containing "conftest.", or (3) at the end.
6696 # Note that $ac_compile itself does not contain backslashes and begins
6697 # with a dollar sign (not a hyphen), so the echo should work correctly.
6698 lt_compile=`echo "$ac_compile" | $SED \
6699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6701 -e 's:$: $lt_compiler_flag:'`
6702 (eval echo "\"\$as_me:6702: $lt_compile\"" >&5)
6703 (eval "$lt_compile" 2>out/conftest.err)
6705 cat out/conftest.err >&5
6706 echo "$as_me:6706: \$? = $ac_status" >&5
6707 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6709 # The compiler can only warn and ignore the option if not recognized
6710 # So say no if there are warnings
6711 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6714 lt_cv_prog_compiler_c_o=yes
6719 # SGI C++ compiler will create directory out/ii_files/ for
6720 # template instantiation
6721 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6722 $rm out/* && rmdir out
6728 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6729 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6732 hard_links="nottested"
6733 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6734 # do not overwrite the value of need_locks provided by the user
6735 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6736 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6741 ln conftest.a conftest.b 2>&5 || hard_links=no
6742 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6743 echo "$as_me:$LINENO: result: $hard_links" >&5
6744 echo "${ECHO_T}$hard_links" >&6
6745 if test "$hard_links" = no; then
6746 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6747 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6754 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6755 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6758 allow_undefined_flag=
6759 enable_shared_with_static_runtimes=no
6761 archive_expsym_cmds=
6762 old_archive_From_new_cmds=
6763 old_archive_from_expsyms_cmds=
6764 export_dynamic_flag_spec=
6765 whole_archive_flag_spec=
6766 thread_safe_flag_spec=
6767 hardcode_libdir_flag_spec=
6768 hardcode_libdir_flag_spec_ld=
6769 hardcode_libdir_separator=
6772 hardcode_shlibpath_var=unsupported
6773 link_all_deplibs=unknown
6774 hardcode_automatic=no
6777 always_export_symbols=no
6778 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6779 # include_expsyms should be a list of space-separated symbols to be *always*
6780 # included in the symbol list
6782 # exclude_expsyms can be an extended regexp of symbols to exclude
6783 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6784 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6785 # as well as any symbol that contains `d'.
6786 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6787 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6788 # platforms (ab)use it in PIC code, but their linkers get confused if
6789 # the symbol is explicitly referenced. Since portable code cannot
6790 # rely on this symbol name, it's probably fine to never include it in
6791 # preloaded symbol tables.
6792 extract_expsyms_cmds=
6793 # Just being paranoid about ensuring that cc_basename is set.
6794 for cc_temp in $compiler""; do
6796 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6797 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6802 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6805 cygwin* | mingw* | pw32*)
6806 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6807 # When not using gcc, we currently assume that we are using
6808 # Microsoft Visual C++.
6809 if test "$GCC" != yes; then
6814 # we just hope/assume this is gcc and not c89 (= MSVC++)
6823 if test "$with_gnu_ld" = yes; then
6824 # If archive_cmds runs LD, not CC, wlarc should be empty
6827 # Set some defaults for GNU ld with shared library support. These
6828 # are reset later if shared libraries are not supported. Putting them
6829 # here allows them to be overridden if necessary.
6830 runpath_var=LD_RUN_PATH
6831 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6832 export_dynamic_flag_spec='${wl}--export-dynamic'
6833 # ancient GNU ld didn't support --whole-archive et. al.
6834 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6835 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6837 whole_archive_flag_spec=
6839 supports_anon_versioning=no
6840 case `$LD -v 2>/dev/null` in
6841 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6842 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6843 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6844 *\ 2.11.*) ;; # other 2.11 versions
6845 *) supports_anon_versioning=yes ;;
6848 # See if GNU ld supports shared libraries.
6850 aix3* | aix4* | aix5*)
6851 # On AIX/PPC, the GNU linker is very broken
6852 if test "$host_cpu" != ia64; then
6856 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6857 *** to be unable to reliably create shared libraries on AIX.
6858 *** Therefore, libtool is disabling shared libraries support. If you
6859 *** really care for shared libraries, you may want to modify your PATH
6860 *** so that a non-GNU linker is found, and then restart.
6867 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)'
6868 hardcode_libdir_flag_spec='-L$libdir'
6869 hardcode_minus_L=yes
6871 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6872 # that the semantics of dynamic libraries on AmigaOS, at least up
6873 # to version 4, is to share data among multiple programs linked
6874 # with the same dynamic library. Since this doesn't match the
6875 # behavior of shared libraries on other platforms, we can't use
6881 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6882 allow_undefined_flag=unsupported
6883 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6884 # support --undefined. This deserves some investigation. FIXME
6885 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6891 cygwin* | mingw* | pw32*)
6892 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6893 # as there is no search path for DLLs.
6894 hardcode_libdir_flag_spec='-L$libdir'
6895 allow_undefined_flag=unsupported
6896 always_export_symbols=no
6897 enable_shared_with_static_runtimes=yes
6898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6900 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6902 # If the export-symbols file already is a .def file (1st line
6903 # is EXPORTS), use it as is; otherwise, prepend...
6904 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6905 cp $export_symbols $output_objdir/$soname.def;
6907 echo EXPORTS > $output_objdir/$soname.def;
6908 cat $export_symbols >> $output_objdir/$soname.def;
6910 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6918 hardcode_shlibpath_var=no
6919 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6920 export_dynamic_flag_spec='${wl}-E'
6921 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6922 # Instead, shared libraries are loaded at an image base (0x10000000 by
6923 # default) and relocated if they conflict, which is a slow very memory
6924 # consuming and fragmenting process. To avoid this, we pick a random,
6925 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6926 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6927 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6928 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6934 case $cc_basename,$host_cpu in
6935 pgcc*) # Portland Group C compiler
6936 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6937 tmp_addflag=' $pic_flag'
6939 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6940 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6941 tmp_addflag=' $pic_flag -Mnomain' ;;
6942 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6943 tmp_addflag=' -i_dynamic' ;;
6944 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6945 tmp_addflag=' -i_dynamic -nofor_main' ;;
6946 ifc* | ifort*) # Intel Fortran compiler
6947 tmp_addflag=' -nofor_main' ;;
6949 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6951 if test $supports_anon_versioning = yes; then
6952 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6954 $echo "local: *; };" >> $output_objdir/$libname.ver~
6955 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6973 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6978 *** create shared libraries on Solaris systems. Therefore, libtool
6979 *** is disabling shared libraries support. We urge you to upgrade GNU
6980 *** binutils to release 2.9.1 or newer. Another option is to modify
6981 *** your PATH or compiler configuration so that the native linker is
6982 *** used, and then restart.
6985 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6994 case `$LD -v 2>&1` in
6995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6999 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7000 *** reliably create shared libraries on SCO systems. Therefore, libtool
7001 *** is disabling shared libraries support. We urge you to upgrade GNU
7002 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7003 *** your PATH or compiler configuration so that the native linker is
7004 *** used, and then restart.
7009 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7010 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7021 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7024 hardcode_shlibpath_var=no
7028 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7037 if test "$ld_shlibs" = no; then
7039 hardcode_libdir_flag_spec=
7040 export_dynamic_flag_spec=
7041 whole_archive_flag_spec=
7044 # PORTME fill in a description of your system's linker (not GNU ld)
7047 allow_undefined_flag=unsupported
7048 always_export_symbols=yes
7049 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'
7050 # Note: this linker hardcodes the directories in LIBPATH if there
7051 # are no directories specified by -L.
7052 hardcode_minus_L=yes
7053 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7054 # Neither direct hardcoding nor static linking is supported with a
7056 hardcode_direct=unsupported
7061 if test "$host_cpu" = ia64; then
7062 # On IA64, the linker does run time linking by default, so we don't
7063 # have to do anything special.
7064 aix_use_runtimelinking=no
7065 exp_sym_flag='-Bexport'
7068 # If we're using GNU nm, then we don't want the "-C" option.
7069 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7070 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7071 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'
7073 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'
7075 aix_use_runtimelinking=no
7077 # Test if we are trying to use run time linking or normal
7078 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7079 # need to do runtime linking.
7080 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7081 for ld_flag in $LDFLAGS; do
7082 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7083 aix_use_runtimelinking=yes
7090 exp_sym_flag='-bexport'
7091 no_entry_flag='-bnoentry'
7094 # When large executables or shared objects are built, AIX ld can
7095 # have problems creating the table of contents. If linking a library
7096 # or program results in "error TOC overflow" add -mminimal-toc to
7097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7102 hardcode_libdir_separator=':'
7103 link_all_deplibs=yes
7105 if test "$GCC" = yes; then
7106 case $host_os in aix4.[012]|aix4.[012].*)
7107 # We only want to do this on AIX 4.2 and lower, the check
7108 # below for broken collect2 doesn't work under 4.3+
7109 collect2name=`${CC} -print-prog-name=collect2`
7110 if test -f "$collect2name" && \
7111 strings "$collect2name" | grep resolve_lib_name >/dev/null
7113 # We have reworked collect2
7116 # We have old collect2
7117 hardcode_direct=unsupported
7118 # It fails to find uninstalled libraries when the uninstalled
7119 # path is not listed in the libpath. Setting hardcode_minus_L
7120 # to unsupported forces relinking
7121 hardcode_minus_L=yes
7122 hardcode_libdir_flag_spec='-L$libdir'
7123 hardcode_libdir_separator=
7127 shared_flag='-shared'
7128 if test "$aix_use_runtimelinking" = yes; then
7129 shared_flag="$shared_flag "'${wl}-G'
7133 if test "$host_cpu" = ia64; then
7134 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7135 # chokes on -Wl,-G. The following line is correct:
7138 if test "$aix_use_runtimelinking" = yes; then
7139 shared_flag='${wl}-G'
7141 shared_flag='${wl}-bM:SRE'
7146 # It seems that -bexpall does not export symbols beginning with
7147 # underscore (_), so it is better to generate a list of symbols to export.
7148 always_export_symbols=yes
7149 if test "$aix_use_runtimelinking" = yes; then
7150 # Warning - without using the other runtime loading flags (-brtl),
7151 # -berok will link without error, but may produce a broken library.
7152 allow_undefined_flag='-berok'
7153 # Determine the default libpath from the value encoded in an empty executable.
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7169 rm -f conftest.$ac_objext conftest$ac_exeext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7171 (eval $ac_link) 2>conftest.er1
7173 grep -v '^ *+' conftest.er1 >conftest.err
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -z "$ac_c_werror_flag"
7179 || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest$ac_exeext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7194 # Check for a 64-bit object if we didn't find anything.
7195 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; }
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7202 rm -f conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7207 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7209 if test "$host_cpu" = ia64; then
7210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7211 allow_undefined_flag="-z nodefs"
7212 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7214 # Determine the default libpath from the value encoded in an empty executable.
7215 cat >conftest.$ac_ext <<_ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7230 rm -f conftest.$ac_objext conftest$ac_exeext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7232 (eval $ac_link) 2>conftest.er1
7234 grep -v '^ *+' conftest.er1 >conftest.err
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try='test -z "$ac_c_werror_flag"
7240 || test ! -s conftest.err'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; } &&
7246 { ac_try='test -s conftest$ac_exeext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7255 # Check for a 64-bit object if we didn't find anything.
7256 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; }
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7263 rm -f conftest.err conftest.$ac_objext \
7264 conftest$ac_exeext conftest.$ac_ext
7265 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7267 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7268 # Warning - without using the other run time loading flags,
7269 # -berok will link without error, but may produce a broken library.
7270 no_undefined_flag=' ${wl}-bernotok'
7271 allow_undefined_flag=' ${wl}-berok'
7272 # Exported symbols can be pulled into shared objects from archives
7273 whole_archive_flag_spec='$convenience'
7274 archive_cmds_need_lc=yes
7275 # This is similar to how AIX traditionally builds its shared libraries.
7276 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7282 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)'
7283 hardcode_libdir_flag_spec='-L$libdir'
7284 hardcode_minus_L=yes
7285 # see comment about different semantics on the GNU ld section
7290 export_dynamic_flag_spec=-rdynamic
7293 cygwin* | mingw* | pw32*)
7294 # When not using gcc, we currently assume that we are using
7295 # Microsoft Visual C++.
7296 # hardcode_libdir_flag_spec is actually meaningless, as there is
7297 # no search path for DLLs.
7298 hardcode_libdir_flag_spec=' '
7299 allow_undefined_flag=unsupported
7300 # Tell ltmain to make .lib files, not .a files.
7302 # Tell ltmain to make .dll files, not .so files.
7304 # FIXME: Setting linknames here is a bad hack.
7305 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7306 # The linker will automatically build a .lib file if we build a DLL.
7307 old_archive_From_new_cmds='true'
7308 # FIXME: Should let the user specify the lib program.
7309 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7310 fix_srcfile_path='`cygpath -w "$srcfile"`'
7311 enable_shared_with_static_runtimes=yes
7314 darwin* | rhapsody*)
7316 rhapsody* | darwin1.[012])
7317 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7320 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7321 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7323 case ${MACOSX_DEPLOYMENT_TARGET} in
7325 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7328 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7334 archive_cmds_need_lc=no
7336 hardcode_automatic=yes
7337 hardcode_shlibpath_var=unsupported
7338 whole_archive_flag_spec=''
7339 link_all_deplibs=yes
7340 if test "$GCC" = yes ; then
7341 output_verbose_link_cmd='echo'
7342 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7343 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7344 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7345 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}'
7346 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}'
7348 case $cc_basename in
7350 output_verbose_link_cmd='echo'
7351 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7352 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7353 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7354 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7355 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}'
7365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7366 hardcode_libdir_flag_spec='-L$libdir'
7367 hardcode_shlibpath_var=no
7374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7375 # support. Future versions do this automatically, but an explicit c++rt0.o
7376 # does not break anything, and helps significantly (at the cost of a little
7379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7380 hardcode_libdir_flag_spec='-R$libdir'
7382 hardcode_shlibpath_var=no
7385 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7389 hardcode_minus_L=yes
7390 hardcode_shlibpath_var=no
7393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7394 freebsd* | kfreebsd*-gnu | dragonfly*)
7395 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7396 hardcode_libdir_flag_spec='-R$libdir'
7398 hardcode_shlibpath_var=no
7402 if test "$GCC" = yes; then
7403 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'
7405 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'
7407 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7408 hardcode_libdir_separator=:
7411 # hardcode_minus_L: Not really in the search PATH,
7412 # but as the default location of the library.
7413 hardcode_minus_L=yes
7414 export_dynamic_flag_spec='${wl}-E'
7418 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7419 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7423 if test "$with_gnu_ld" = no; then
7424 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7425 hardcode_libdir_separator=:
7428 export_dynamic_flag_spec='${wl}-E'
7430 # hardcode_minus_L: Not really in the search PATH,
7431 # but as the default location of the library.
7432 hardcode_minus_L=yes
7437 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7440 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7443 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7446 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7452 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7455 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7458 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7462 if test "$with_gnu_ld" = no; then
7463 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7464 hardcode_libdir_separator=:
7468 hardcode_libdir_flag_spec_ld='+b $libdir'
7470 hardcode_shlibpath_var=no
7474 export_dynamic_flag_spec='${wl}-E'
7476 # hardcode_minus_L: Not really in the search PATH,
7477 # but as the default location of the library.
7478 hardcode_minus_L=yes
7484 irix5* | irix6* | nonstopux*)
7485 if test "$GCC" = yes; then
7486 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'
7488 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'
7489 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7492 hardcode_libdir_separator=:
7493 link_all_deplibs=yes
7497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7500 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7502 hardcode_libdir_flag_spec='-R$libdir'
7504 hardcode_shlibpath_var=no
7508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7511 hardcode_libdir_separator=:
7512 hardcode_shlibpath_var=no
7517 hardcode_shlibpath_var=no
7518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7519 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7520 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7522 export_dynamic_flag_spec='${wl}-E'
7525 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7527 hardcode_libdir_flag_spec='-R$libdir'
7530 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7538 hardcode_libdir_flag_spec='-L$libdir'
7539 hardcode_minus_L=yes
7540 allow_undefined_flag=unsupported
7541 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'
7542 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7546 if test "$GCC" = yes; then
7547 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7548 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'
7550 allow_undefined_flag=' -expect_unresolved \*'
7551 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'
7553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7554 hardcode_libdir_separator=:
7557 osf4* | osf5*) # as osf3* with the addition of -msym flag
7558 if test "$GCC" = yes; then
7559 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7560 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'
7561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7563 allow_undefined_flag=' -expect_unresolved \*'
7564 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'
7565 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7566 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7568 # Both c and cxx compiler support -rpath directly
7569 hardcode_libdir_flag_spec='-rpath $libdir'
7571 hardcode_libdir_separator=:
7575 no_undefined_flag=' -z text'
7576 if test "$GCC" = yes; then
7578 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7579 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7580 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7583 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7584 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7585 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7587 hardcode_libdir_flag_spec='-R$libdir'
7588 hardcode_shlibpath_var=no
7590 solaris2.[0-5] | solaris2.[0-5].*) ;;
7592 # The compiler driver will combine linker options so we
7593 # cannot just pass the convience library names through
7594 # without $wl, iff we do not link with $LD.
7595 # Luckily, gcc supports the same syntax we need for Sun Studio.
7596 # Supported since Solaris 2.6 (maybe 2.5.1?)
7599 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7601 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7604 link_all_deplibs=yes
7608 if test "x$host_vendor" = xsequent; then
7609 # Use $CC to link under sequent, because it throws in some extra .o
7610 # files that make .init and .fini sections work.
7611 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7613 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7615 hardcode_libdir_flag_spec='-L$libdir'
7617 hardcode_minus_L=yes
7618 hardcode_shlibpath_var=no
7622 case $host_vendor in
7624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7625 hardcode_direct=yes # is this really true???
7628 ## LD is ld it makes a PLAMLIB
7629 ## CC just makes a GrossModule.
7630 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7631 reload_cmds='$CC -r -o $output$reload_objs'
7635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7636 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7639 runpath_var='LD_RUN_PATH'
7640 hardcode_shlibpath_var=no
7644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7645 hardcode_shlibpath_var=no
7646 export_dynamic_flag_spec='-Bexport'
7650 if test -d /usr/nec; then
7651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7652 hardcode_shlibpath_var=no
7653 runpath_var=LD_RUN_PATH
7654 hardcode_runpath_var=yes
7659 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7660 no_undefined_flag='${wl}-z,text'
7661 archive_cmds_need_lc=no
7662 hardcode_shlibpath_var=no
7663 runpath_var='LD_RUN_PATH'
7665 if test "$GCC" = yes; then
7666 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7667 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7669 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7670 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7674 sysv5* | sco3.2v5* | sco5v6*)
7675 # Note: We can NOT use -z defs as we might desire, because we do not
7676 # link with -lc, and that would cause any symbols used from libc to
7677 # always be unresolved, which means just about no library would
7678 # ever link correctly. If we're not using GNU ld we use -z text
7679 # though, which does catch some bad symbols but isn't as heavy-handed
7681 no_undefined_flag='${wl}-z,text'
7682 allow_undefined_flag='${wl}-z,nodefs'
7683 archive_cmds_need_lc=no
7684 hardcode_shlibpath_var=no
7685 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7686 hardcode_libdir_separator=':'
7687 link_all_deplibs=yes
7688 export_dynamic_flag_spec='${wl}-Bexport'
7689 runpath_var='LD_RUN_PATH'
7691 if test "$GCC" = yes; then
7692 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7693 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7695 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7696 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7702 hardcode_libdir_flag_spec='-L$libdir'
7703 hardcode_shlibpath_var=no
7712 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7713 echo "${ECHO_T}$ld_shlibs" >&6
7714 test "$ld_shlibs" = no && can_build_shared=no
7717 # Do we need to explicitly link libc?
7719 case "x$archive_cmds_need_lc" in
7721 # Assume -lc should be added
7722 archive_cmds_need_lc=yes
7724 if test "$enable_shared" = yes && test "$GCC" = yes; then
7725 case $archive_cmds in
7727 # FIXME: we may have to deal with multi-command sequences.
7730 # Test whether the compiler implicitly links with -lc since on some
7731 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7732 # to ld, don't add -lc before -lgcc.
7733 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7734 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7739 (eval $ac_compile) 2>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } 2>conftest.err; then
7745 libobjs=conftest.$ac_objext
7747 wl=$lt_prog_compiler_wl
7748 pic_flag=$lt_prog_compiler_pic
7754 lt_save_allow_undefined_flag=$allow_undefined_flag
7755 allow_undefined_flag=
7756 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7757 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }
7762 archive_cmds_need_lc=no
7764 archive_cmds_need_lc=yes
7766 allow_undefined_flag=$lt_save_allow_undefined_flag
7768 cat conftest.err 1>&5
7771 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7772 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7779 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7780 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7782 libname_spec='lib$name'
7790 shlibpath_overrides_runpath=unknown
7792 dynamic_linker="$host_os ld.so"
7793 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7794 if test "$GCC" = yes; then
7795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7796 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7797 # if the path contains ";" then we assume it to be the separator
7798 # otherwise default to the standard path separator (i.e. ":") - it is
7799 # assumed that no part of a normal pathname contains ";" but that should
7800 # okay in the real world where ";" in dirpaths is itself problematic.
7801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7808 need_lib_prefix=unknown
7809 hardcode_into_libs=no
7811 # when you set need_version to no, make sure it does not cause -set_version
7812 # flags to be left without arguments
7813 need_version=unknown
7818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7819 shlibpath_var=LIBPATH
7821 # AIX 3 has no versioning support, so we append a major version to the name.
7822 soname_spec='${libname}${release}${shared_ext}$major'
7829 hardcode_into_libs=yes
7830 if test "$host_cpu" = ia64; then
7831 # AIX 5 supports IA64
7832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7833 shlibpath_var=LD_LIBRARY_PATH
7835 # With GCC up to 2.95.x, collect2 would create an import file
7836 # for dependence libraries. The import file would start with
7837 # the line `#! .'. This would cause the generated library to
7838 # depend on `.', always an invalid library. This was fixed in
7839 # development snapshots of GCC prior to 3.0.
7841 aix4 | aix4.[01] | aix4.[01].*)
7842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7844 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7852 # soname into executable. Probably we can add versioning support to
7853 # collect2, so additional links can be useful in future.
7854 if test "$aix_use_runtimelinking" = yes; then
7855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7856 # instead of lib<name>.a to let people know that these are not
7857 # typical AIX shared libraries.
7858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7860 # We preserve .a as extension for shared libraries through AIX4.2
7861 # and later when we are not doing run time linking.
7862 library_names_spec='${libname}${release}.a $libname.a'
7863 soname_spec='${libname}${release}${shared_ext}$major'
7865 shlibpath_var=LIBPATH
7870 library_names_spec='$libname.ixlibrary $libname.a'
7871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7872 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'
7876 library_names_spec='${libname}${shared_ext}'
7877 dynamic_linker="$host_os ld.so"
7878 shlibpath_var=LIBRARY_PATH
7884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7885 soname_spec='${libname}${release}${shared_ext}$major'
7886 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7887 shlibpath_var=LD_LIBRARY_PATH
7888 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7889 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7890 # the default ld.so.conf also contains /usr/contrib/lib and
7891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7892 # libtool to hard-code these into programs
7895 cygwin* | mingw* | pw32*)
7896 version_type=windows
7901 case $GCC,$host_os in
7902 yes,cygwin* | yes,mingw* | yes,pw32*)
7903 library_names_spec='$libname.dll.a'
7904 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7905 postinstall_cmds='base_file=`basename \${file}`~
7906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7907 dldir=$destdir/`dirname \$dlpath`~
7908 test -d \$dldir || mkdir -p \$dldir~
7909 $install_prog $dir/$dlname \$dldir/$dlname~
7910 chmod a+x \$dldir/$dlname'
7911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7912 dlpath=$dir/\$dldll~
7914 shlibpath_overrides_runpath=yes
7918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7923 # MinGW DLLs use traditional 'lib' prefix
7924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7927 # It is most probably a Windows format PATH printed by
7928 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7929 # path with ; separators, and with drive letters. We can handle the
7930 # drive letters (cygwin fileutils understands them), so leave them,
7931 # especially as we might pass files found there to a mingw objdump,
7932 # which wouldn't understand a cygwinified path. Ahh.
7933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7939 # pw32 DLLs use 'pw' prefix rather than 'lib'
7940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7949 dynamic_linker='Win32 ld.exe'
7950 # FIXME: first we should search . and the directory the executable is in
7954 darwin* | rhapsody*)
7955 dynamic_linker="$host_os dyld"
7959 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7960 soname_spec='${libname}${release}${major}$shared_ext'
7961 shlibpath_overrides_runpath=yes
7962 shlibpath_var=DYLD_LIBRARY_PATH
7963 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7964 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7965 if test "$GCC" = yes; then
7966 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"`
7968 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7978 soname_spec='${libname}${release}${shared_ext}$major'
7979 shlibpath_var=LD_LIBRARY_PATH
7990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7991 soname_spec='${libname}${release}${shared_ext}$major'
7992 shlibpath_var=LD_LIBRARY_PATH
7993 shlibpath_overrides_runpath=no
7994 hardcode_into_libs=yes
7995 dynamic_linker='GNU ld.so'
7998 freebsd* | dragonfly*)
7999 # DragonFly does not have aout. When/if they implement a new
8000 # versioning mechanism, adjust this.
8001 if test -x /usr/bin/objformat; then
8002 objformat=`/usr/bin/objformat`
8005 freebsd[123]*) objformat=aout ;;
8009 version_type=freebsd-$objformat
8010 case $version_type in
8012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8021 shlibpath_var=LD_LIBRARY_PATH
8024 shlibpath_overrides_runpath=yes
8026 freebsd3.[01]* | freebsdelf3.[01]*)
8027 shlibpath_overrides_runpath=yes
8028 hardcode_into_libs=yes
8030 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8031 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8032 shlibpath_overrides_runpath=no
8033 hardcode_into_libs=yes
8035 freebsd*) # from 4.6 on
8036 shlibpath_overrides_runpath=yes
8037 hardcode_into_libs=yes
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 hardcode_into_libs=yes
8052 hpux9* | hpux10* | hpux11*)
8053 # Give a soname corresponding to the major version so that dld.sl refuses to
8054 # link against other versions.
8061 hardcode_into_libs=yes
8062 dynamic_linker="$host_os dld.so"
8063 shlibpath_var=LD_LIBRARY_PATH
8064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8066 soname_spec='${libname}${release}${shared_ext}$major'
8067 if test "X$HPUX_IA64_MODE" = X32; then
8068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8076 hardcode_into_libs=yes
8077 dynamic_linker="$host_os dld.sl"
8078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8081 soname_spec='${libname}${release}${shared_ext}$major'
8082 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8087 dynamic_linker="$host_os dld.sl"
8088 shlibpath_var=SHLIB_PATH
8089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091 soname_spec='${libname}${release}${shared_ext}$major'
8094 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8095 postinstall_cmds='chmod 555 $lib'
8102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8103 soname_spec='${libname}${release}${shared_ext}$major'
8104 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8105 shlibpath_var=LD_LIBRARY_PATH
8106 shlibpath_overrides_runpath=no
8107 hardcode_into_libs=yes
8110 irix5* | irix6* | nonstopux*)
8112 nonstopux*) version_type=nonstopux ;;
8114 if test "$lt_cv_prog_gnu_ld" = yes; then
8122 soname_spec='${libname}${release}${shared_ext}$major'
8123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8125 irix5* | nonstopux*)
8129 case $LD in # libtool.m4 will add one of these switches to LD
8130 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8131 libsuff= shlibsuff= libmagic=32-bit;;
8132 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8133 libsuff=32 shlibsuff=N32 libmagic=N32;;
8134 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8135 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8136 *) libsuff= shlibsuff= libmagic=never-match;;
8140 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8141 shlibpath_overrides_runpath=no
8142 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8143 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8144 hardcode_into_libs=yes
8147 # No shared lib support for Linux oldld, aout, or coff.
8148 linux*oldld* | linux*aout* | linux*coff*)
8152 # This must be Linux ELF.
8157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8158 soname_spec='${libname}${release}${shared_ext}$major'
8159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8160 shlibpath_var=LD_LIBRARY_PATH
8161 shlibpath_overrides_runpath=no
8162 # This implies no fast_install, which is unacceptable.
8163 # Some rework will be needed to allow for fast_install
8164 # before this can be enabled.
8165 hardcode_into_libs=yes
8167 # find out which ABI we are using
8170 x86_64*|s390x*|powerpc64*)
8171 echo '#line 8171 "configure"' > conftest.$ac_ext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8173 (eval $ac_compile) 2>&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; then
8177 case `/usr/bin/file conftest.$ac_objext` in
8180 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8188 # Append ld.so.conf contents to the search path
8189 if test -f /etc/ld.so.conf; then
8190 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8191 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8194 # We used to test for /lib/ld.so.1 and disable shared libraries on
8195 # powerpc, because MkLinux only supported shared libraries with the
8196 # GNU dynamic linker. Since this was broken with cross compilers,
8197 # most powerpc-linux boxes support dynamic linking these days and
8198 # people can always --disable-shared, the test was removed, and we
8199 # assume the GNU/Linux dynamic linker is in use.
8200 dynamic_linker='GNU/Linux ld.so'
8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8208 soname_spec='${libname}${release}${shared_ext}$major'
8209 shlibpath_var=LD_LIBRARY_PATH
8210 shlibpath_overrides_runpath=no
8211 hardcode_into_libs=yes
8212 dynamic_linker='GNU ld.so'
8219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8222 dynamic_linker='NetBSD (a.out) ld.so'
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8225 soname_spec='${libname}${release}${shared_ext}$major'
8226 dynamic_linker='NetBSD ld.elf_so'
8228 shlibpath_var=LD_LIBRARY_PATH
8229 shlibpath_overrides_runpath=yes
8230 hardcode_into_libs=yes
8235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8236 shlibpath_var=LD_LIBRARY_PATH
8237 shlibpath_overrides_runpath=yes
8244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8245 soname_spec='${libname}${release}${shared_ext}$major'
8246 shlibpath_var=LD_LIBRARY_PATH
8247 shlibpath_overrides_runpath=yes
8252 sys_lib_dlsearch_path_spec="/usr/lib"
8254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8257 *) need_version=no ;;
8259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8261 shlibpath_var=LD_LIBRARY_PATH
8262 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8264 openbsd2.[89] | openbsd2.[89].*)
8265 shlibpath_overrides_runpath=no
8268 shlibpath_overrides_runpath=yes
8272 shlibpath_overrides_runpath=yes
8277 libname_spec='$name'
8280 library_names_spec='$libname${shared_ext} $libname.a'
8281 dynamic_linker='OS/2 ld.exe'
8282 shlibpath_var=LIBPATH
8285 osf3* | osf4* | osf5*)
8289 soname_spec='${libname}${release}${shared_ext}$major'
8290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8291 shlibpath_var=LD_LIBRARY_PATH
8292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301 soname_spec='${libname}${release}${shared_ext}$major'
8302 shlibpath_var=LD_LIBRARY_PATH
8303 shlibpath_overrides_runpath=yes
8304 hardcode_into_libs=yes
8305 # ldd complains unless libraries are executable
8306 postinstall_cmds='chmod +x $lib'
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8312 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8313 shlibpath_var=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath=yes
8315 if test "$with_gnu_ld" = yes; then
8323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324 soname_spec='${libname}${release}${shared_ext}$major'
8325 shlibpath_var=LD_LIBRARY_PATH
8326 case $host_vendor in
8328 shlibpath_overrides_runpath=no
8330 export_dynamic_flag_spec='${wl}-Blargedynsym'
8331 runpath_var=LD_RUN_PATH
8339 shlibpath_overrides_runpath=no
8340 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8346 if test -d /usr/nec ;then
8348 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8349 soname_spec='$libname${shared_ext}.$major'
8350 shlibpath_var=LD_LIBRARY_PATH
8354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8355 version_type=freebsd-elf
8358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8359 soname_spec='${libname}${release}${shared_ext}$major'
8360 shlibpath_var=LD_LIBRARY_PATH
8361 hardcode_into_libs=yes
8362 if test "$with_gnu_ld" = yes; then
8363 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8364 shlibpath_overrides_runpath=no
8366 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8367 shlibpath_overrides_runpath=yes
8370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8374 sys_lib_dlsearch_path_spec='/usr/lib'
8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8380 soname_spec='${libname}${release}${shared_ext}$major'
8381 shlibpath_var=LD_LIBRARY_PATH
8388 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8389 echo "${ECHO_T}$dynamic_linker" >&6
8390 test "$dynamic_linker" = no && can_build_shared=no
8392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8393 if test "$GCC" = yes; then
8394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8397 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8398 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8400 if test -n "$hardcode_libdir_flag_spec" || \
8401 test -n "$runpath_var" || \
8402 test "X$hardcode_automatic" = "Xyes" ; then
8404 # We can hardcode non-existant directories.
8405 if test "$hardcode_direct" != no &&
8406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8407 # have to relink, otherwise we might link with an installed library
8408 # when we should be linking with a yet-to-be-installed one
8409 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8410 test "$hardcode_minus_L" != no; then
8411 # Linking always hardcodes the temporary library directory.
8412 hardcode_action=relink
8414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8415 hardcode_action=immediate
8418 # We cannot hardcode anything, or else we can only hardcode existing
8420 hardcode_action=unsupported
8422 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8423 echo "${ECHO_T}$hardcode_action" >&6
8425 if test "$hardcode_action" = relink; then
8426 # Fast installation is not supported
8427 enable_fast_install=no
8428 elif test "$shlibpath_overrides_runpath" = yes ||
8429 test "$enable_shared" = no; then
8430 # Fast installation is not necessary
8431 enable_fast_install=needless
8436 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8437 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8438 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8439 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8440 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8441 echo "$as_me:$LINENO: result: yes" >&5
8442 echo "${ECHO_T}yes" >&6
8444 # FIXME - insert some real tests, host_os isn't really good enough
8447 if test -n "$STRIP" ; then
8448 striplib="$STRIP -x"
8449 echo "$as_me:$LINENO: result: yes" >&5
8450 echo "${ECHO_T}yes" >&6
8452 echo "$as_me:$LINENO: result: no" >&5
8453 echo "${ECHO_T}no" >&6
8457 echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6
8463 if test "x$enable_dlopen" != xyes; then
8464 enable_dlopen=unknown
8465 enable_dlopen_self=unknown
8466 enable_dlopen_self_static=unknown
8473 lt_cv_dlopen="load_add_on"
8475 lt_cv_dlopen_self=yes
8479 lt_cv_dlopen="LoadLibrary"
8484 lt_cv_dlopen="dlopen"
8489 # if libdl is installed we need to link against it
8490 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8491 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8492 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 ac_check_lib_save_LIBS=$LIBS
8497 cat >conftest.$ac_ext <<_ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8504 /* Override any gcc2 internal prototype to avoid an error. */
8508 /* We use char because int might match the return type of a gcc2
8509 builtin and then its argument prototype would still apply. */
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521 (eval $ac_link) 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag"
8529 || test ! -s conftest.err'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; } &&
8535 { ac_try='test -s conftest$ac_exeext'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 ac_cv_lib_dl_dlopen=yes
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_cv_lib_dl_dlopen=no
8548 rm -f conftest.err conftest.$ac_objext \
8549 conftest$ac_exeext conftest.$ac_ext
8550 LIBS=$ac_check_lib_save_LIBS
8552 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8553 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8554 if test $ac_cv_lib_dl_dlopen = yes; then
8555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8560 lt_cv_dlopen_self=yes
8567 echo "$as_me:$LINENO: checking for shl_load" >&5
8568 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8569 if test "${ac_cv_func_shl_load+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 cat >conftest.$ac_ext <<_ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8580 #define shl_load innocuous_shl_load
8582 /* System header to define __stub macros and hopefully few prototypes,
8583 which can conflict with char shl_load (); below.
8584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8585 <limits.h> exists even on freestanding compilers. */
8588 # include <limits.h>
8590 # include <assert.h>
8595 /* Override any gcc2 internal prototype to avoid an error. */
8600 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8603 /* The GNU C library defines this for functions which it implements
8604 to always fail with ENOSYS. Some functions are actually named
8605 something starting with __ and the normal name is an alias. */
8606 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8609 char (*f) () = shl_load;
8618 return f != shl_load;
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625 (eval $ac_link) 2>conftest.er1
8627 grep -v '^ *+' conftest.er1 >conftest.err
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_c_werror_flag"
8633 || test ! -s conftest.err'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; } &&
8639 { ac_try='test -s conftest$ac_exeext'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_cv_func_shl_load=yes
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8650 ac_cv_func_shl_load=no
8652 rm -f conftest.err conftest.$ac_objext \
8653 conftest$ac_exeext conftest.$ac_ext
8655 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8656 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8657 if test $ac_cv_func_shl_load = yes; then
8658 lt_cv_dlopen="shl_load"
8660 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8661 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8662 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 ac_check_lib_save_LIBS=$LIBS
8667 cat >conftest.$ac_ext <<_ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h. */
8674 /* Override any gcc2 internal prototype to avoid an error. */
8678 /* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691 (eval $ac_link) 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_lib_dld_shl_load=yes
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_cv_lib_dld_shl_load=no
8718 rm -f conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8722 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8723 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8724 if test $ac_cv_lib_dld_shl_load = yes; then
8725 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8727 echo "$as_me:$LINENO: checking for dlopen" >&5
8728 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8729 if test "${ac_cv_func_dlopen+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 cat >conftest.$ac_ext <<_ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8738 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8740 #define dlopen innocuous_dlopen
8742 /* System header to define __stub macros and hopefully few prototypes,
8743 which can conflict with char dlopen (); below.
8744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8745 <limits.h> exists even on freestanding compilers. */
8748 # include <limits.h>
8750 # include <assert.h>
8755 /* Override any gcc2 internal prototype to avoid an error. */
8760 /* We use char because int might match the return type of a gcc2
8761 builtin and then its argument prototype would still apply. */
8763 /* The GNU C library defines this for functions which it implements
8764 to always fail with ENOSYS. Some functions are actually named
8765 something starting with __ and the normal name is an alias. */
8766 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8769 char (*f) () = dlopen;
8783 rm -f conftest.$ac_objext conftest$ac_exeext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8785 (eval $ac_link) 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_c_werror_flag"
8793 || test ! -s conftest.err'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; } &&
8799 { ac_try='test -s conftest$ac_exeext'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_cv_func_dlopen=yes
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 ac_cv_func_dlopen=no
8812 rm -f conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8815 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8816 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8817 if test $ac_cv_func_dlopen = yes; then
8818 lt_cv_dlopen="dlopen"
8820 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8821 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8822 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 ac_check_lib_save_LIBS=$LIBS
8827 cat >conftest.$ac_ext <<_ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8834 /* Override any gcc2 internal prototype to avoid an error. */
8838 /* We use char because int might match the return type of a gcc2
8839 builtin and then its argument prototype would still apply. */
8849 rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851 (eval $ac_link) 2>conftest.er1
8853 grep -v '^ *+' conftest.er1 >conftest.err
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -z "$ac_c_werror_flag"
8859 || test ! -s conftest.err'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; } &&
8865 { ac_try='test -s conftest$ac_exeext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 ac_cv_lib_dl_dlopen=yes
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8876 ac_cv_lib_dl_dlopen=no
8878 rm -f conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880 LIBS=$ac_check_lib_save_LIBS
8882 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8883 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8884 if test $ac_cv_lib_dl_dlopen = yes; then
8885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8887 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8888 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8889 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 ac_check_lib_save_LIBS=$LIBS
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8901 /* Override any gcc2 internal prototype to avoid an error. */
8905 /* We use char because int might match the return type of a gcc2
8906 builtin and then its argument prototype would still apply. */
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918 (eval $ac_link) 2>conftest.er1
8920 grep -v '^ *+' conftest.er1 >conftest.err
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_lib_svld_dlopen=yes
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_cv_lib_svld_dlopen=no
8945 rm -f conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 LIBS=$ac_check_lib_save_LIBS
8949 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8950 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8951 if test $ac_cv_lib_svld_dlopen = yes; then
8952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8954 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8955 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8956 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 ac_check_lib_save_LIBS=$LIBS
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8968 /* Override any gcc2 internal prototype to avoid an error. */
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985 (eval $ac_link) 2>conftest.er1
8987 grep -v '^ *+' conftest.er1 >conftest.err
8989 cat conftest.err >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -z "$ac_c_werror_flag"
8993 || test ! -s conftest.err'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; } &&
8999 { ac_try='test -s conftest$ac_exeext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_lib_dld_dld_link=yes
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9010 ac_cv_lib_dld_dld_link=no
9012 rm -f conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9016 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9017 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9018 if test $ac_cv_lib_dld_dld_link = yes; then
9019 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9040 if test "x$lt_cv_dlopen" != xno; then
9046 case $lt_cv_dlopen in
9048 save_CPPFLAGS="$CPPFLAGS"
9049 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9051 save_LDFLAGS="$LDFLAGS"
9052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9055 LIBS="$lt_cv_dlopen_libs $LIBS"
9057 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9058 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9059 if test "${lt_cv_dlopen_self+set}" = set; then
9060 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 if test "$cross_compiling" = yes; then :
9063 lt_cv_dlopen_self=cross
9065 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9066 lt_status=$lt_dlunknown
9067 cat > conftest.$ac_ext <<EOF
9068 #line 9068 "configure"
9069 #include "confdefs.h"
9078 # define LT_DLGLOBAL RTLD_GLOBAL
9081 # define LT_DLGLOBAL DL_GLOBAL
9083 # define LT_DLGLOBAL 0
9087 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9088 find out it does not work in some platform. */
9089 #ifndef LT_DLLAZY_OR_NOW
9091 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9094 # define LT_DLLAZY_OR_NOW DL_LAZY
9097 # define LT_DLLAZY_OR_NOW RTLD_NOW
9100 # define LT_DLLAZY_OR_NOW DL_NOW
9102 # define LT_DLLAZY_OR_NOW 0
9110 extern "C" void exit (int);
9113 void fnord() { int i=42;}
9116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9117 int status = $lt_dlunknown;
9121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9122 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9123 /* dlclose (self); */
9131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132 (eval $ac_link) 2>&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9136 (./conftest; exit; ) >&5 2>/dev/null
9139 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9140 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9141 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9144 # compilation failed
9145 lt_cv_dlopen_self=no
9152 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9153 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9155 if test "x$lt_cv_dlopen_self" = xyes; then
9156 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9157 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9158 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9159 if test "${lt_cv_dlopen_self_static+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 if test "$cross_compiling" = yes; then :
9163 lt_cv_dlopen_self_static=cross
9165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9166 lt_status=$lt_dlunknown
9167 cat > conftest.$ac_ext <<EOF
9168 #line 9168 "configure"
9169 #include "confdefs.h"
9178 # define LT_DLGLOBAL RTLD_GLOBAL
9181 # define LT_DLGLOBAL DL_GLOBAL
9183 # define LT_DLGLOBAL 0
9187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9188 find out it does not work in some platform. */
9189 #ifndef LT_DLLAZY_OR_NOW
9191 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9194 # define LT_DLLAZY_OR_NOW DL_LAZY
9197 # define LT_DLLAZY_OR_NOW RTLD_NOW
9200 # define LT_DLLAZY_OR_NOW DL_NOW
9202 # define LT_DLLAZY_OR_NOW 0
9210 extern "C" void exit (int);
9213 void fnord() { int i=42;}
9216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9217 int status = $lt_dlunknown;
9221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9222 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9223 /* dlclose (self); */
9231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9232 (eval $ac_link) 2>&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9236 (./conftest; exit; ) >&5 2>/dev/null
9239 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9240 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9241 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9244 # compilation failed
9245 lt_cv_dlopen_self_static=no
9252 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9253 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9256 CPPFLAGS="$save_CPPFLAGS"
9257 LDFLAGS="$save_LDFLAGS"
9262 case $lt_cv_dlopen_self in
9263 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9264 *) enable_dlopen_self=unknown ;;
9267 case $lt_cv_dlopen_self_static in
9268 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9269 *) enable_dlopen_self_static=unknown ;;
9274 # Report which library types will actually be built
9275 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9276 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9277 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9278 echo "${ECHO_T}$can_build_shared" >&6
9280 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9281 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9282 test "$can_build_shared" = "no" && enable_shared=no
9284 # On AIX, shared libraries and static libraries use the same namespace, and
9285 # are all built from PIC.
9288 test "$enable_shared" = yes && enable_static=no
9289 if test -n "$RANLIB"; then
9290 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9291 postinstall_cmds='$RANLIB $lib'
9296 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9297 test "$enable_shared" = yes && enable_static=no
9301 echo "$as_me:$LINENO: result: $enable_shared" >&5
9302 echo "${ECHO_T}$enable_shared" >&6
9304 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9305 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9306 # Make sure either enable_shared or enable_static is yes.
9307 test "$enable_shared" = yes || enable_static=yes
9308 echo "$as_me:$LINENO: result: $enable_static" >&5
9309 echo "${ECHO_T}$enable_static" >&6
9311 # The else clause should only fire when bootstrapping the
9312 # libtool distribution, otherwise you forgot to ship ltmain.sh
9313 # with your package, and you will get complaints that there are
9314 # no rules to generate ltmain.sh.
9315 if test -f "$ltmain"; then
9316 # See if we are running on zsh, and set the options which allow our commands through
9317 # without removal of \ escapes.
9318 if test -n "${ZSH_VERSION+set}" ; then
9319 setopt NO_GLOB_SUBST
9321 # Now quote all the things that may contain metacharacters while being
9322 # careful not to overquote the AC_SUBSTed values. We take copies of the
9323 # variables and quote the copies for generation of the libtool script.
9324 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9326 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9327 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9328 deplibs_check_method reload_flag reload_cmds need_locks \
9329 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9330 lt_cv_sys_global_symbol_to_c_name_address \
9331 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9332 old_postinstall_cmds old_postuninstall_cmds \
9336 lt_prog_compiler_wl \
9337 lt_prog_compiler_pic \
9338 lt_prog_compiler_static \
9339 lt_prog_compiler_no_builtin_flag \
9340 export_dynamic_flag_spec \
9341 thread_safe_flag_spec \
9342 whole_archive_flag_spec \
9343 enable_shared_with_static_runtimes \
9345 old_archive_from_new_cmds \
9350 compiler_lib_search_path \
9352 archive_expsym_cmds \
9354 postuninstall_cmds \
9355 old_archive_from_expsyms_cmds \
9356 allow_undefined_flag \
9358 export_symbols_cmds \
9359 hardcode_libdir_flag_spec \
9360 hardcode_libdir_flag_spec_ld \
9361 hardcode_libdir_separator \
9362 hardcode_automatic \
9364 module_expsym_cmds \
9365 lt_cv_prog_compiler_c_o \
9370 old_archive_cmds | \
9371 old_archive_from_new_cmds | \
9373 archive_expsym_cmds | \
9375 module_expsym_cmds | \
9376 old_archive_from_expsyms_cmds | \
9377 export_symbols_cmds | \
9378 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9379 postinstall_cmds | postuninstall_cmds | \
9380 old_postinstall_cmds | old_postuninstall_cmds | \
9381 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9382 # Double-quote double-evaled strings.
9383 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9392 *'\$0 --fallback-echo"')
9393 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9398 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9400 { echo "$as_me:$LINENO: creating $ofile" >&5
9401 echo "$as_me: creating $ofile" >&6;}
9403 cat <<__EOF__ >> "$cfgfile"
9406 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9407 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9408 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9410 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9411 # Free Software Foundation, Inc.
9413 # This file is part of GNU Libtool:
9414 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9416 # This program is free software; you can redistribute it and/or modify
9417 # it under the terms of the GNU General Public License as published by
9418 # the Free Software Foundation; either version 2 of the License, or
9419 # (at your option) any later version.
9421 # This program is distributed in the hope that it will be useful, but
9422 # WITHOUT ANY WARRANTY; without even the implied warranty of
9423 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9424 # General Public License for more details.
9426 # You should have received a copy of the GNU General Public License
9427 # along with this program; if not, write to the Free Software
9428 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9430 # As a special exception to the GNU General Public License, if you
9431 # distribute this file as part of a program that contains a
9432 # configuration script generated by Autoconf, you may include it under
9433 # the same distribution terms that you use for the rest of that program.
9435 # A sed program that does not truncate output.
9438 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9439 Xsed="$SED -e 1s/^X//"
9441 # The HP-UX ksh and POSIX shell print the target directory to stdout
9443 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9445 # The names of the tagged configurations supported by this script.
9448 # ### BEGIN LIBTOOL CONFIG
9450 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9452 # Shell to use when invoking shell scripts.
9455 # Whether or not to build shared libraries.
9456 build_libtool_libs=$enable_shared
9458 # Whether or not to build static libraries.
9459 build_old_libs=$enable_static
9461 # Whether or not to add -lc for building shared libraries.
9462 build_libtool_need_lc=$archive_cmds_need_lc
9464 # Whether or not to disallow shared libs when runtime libs are static
9465 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9467 # Whether or not to optimize for fast installation.
9468 fast_install=$enable_fast_install
9471 host_alias=$host_alias
9476 build_alias=$build_alias
9480 # An echo program that does not interpret backslashes.
9485 AR_FLAGS=$lt_AR_FLAGS
9490 # LTCC compiler flags.
9491 LTCFLAGS=$lt_LTCFLAGS
9493 # A language-specific compiler.
9496 # Is the compiler the GNU C compiler?
9499 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9500 gcc_ver=\`gcc -dumpversion\`
9505 # The linker used to build libraries.
9508 # Whether we need hard or soft links.
9511 # A BSD-compatible nm program.
9514 # A symbol stripping program
9517 # Used to examine libraries when file_magic_cmd begins "file"
9518 MAGIC_CMD=$MAGIC_CMD
9520 # Used on cygwin: DLL creation program.
9523 # Used on cygwin: object dumper.
9526 # Used on cygwin: assembler.
9529 # The name of the directory that contains temporary libtool files.
9532 # How to create reloadable object files.
9533 reload_flag=$lt_reload_flag
9534 reload_cmds=$lt_reload_cmds
9536 # How to pass a linker flag through the compiler.
9537 wl=$lt_lt_prog_compiler_wl
9539 # Object file suffix (normally "o").
9542 # Old archive suffix (normally "a").
9545 # Shared library suffix (normally ".so").
9546 shrext_cmds='$shrext_cmds'
9548 # Executable file suffix (normally "").
9551 # Additional compiler flags for building library objects.
9552 pic_flag=$lt_lt_prog_compiler_pic
9555 # What is the maximum length of a command?
9556 max_cmd_len=$lt_cv_sys_max_cmd_len
9558 # Does compiler simultaneously support -c and -o options?
9559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9561 # Must we lock files when doing compilation?
9562 need_locks=$lt_need_locks
9564 # Do we need the lib prefix for modules?
9565 need_lib_prefix=$need_lib_prefix
9567 # Do we need a version for libraries?
9568 need_version=$need_version
9570 # Whether dlopen is supported.
9571 dlopen_support=$enable_dlopen
9573 # Whether dlopen of programs is supported.
9574 dlopen_self=$enable_dlopen_self
9576 # Whether dlopen of statically linked programs is supported.
9577 dlopen_self_static=$enable_dlopen_self_static
9579 # Compiler flag to prevent dynamic linking.
9580 link_static_flag=$lt_lt_prog_compiler_static
9582 # Compiler flag to turn off builtin functions.
9583 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9585 # Compiler flag to allow reflexive dlopens.
9586 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9588 # Compiler flag to generate shared objects directly from archives.
9589 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9591 # Compiler flag to generate thread-safe objects.
9592 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9594 # Library versioning type.
9595 version_type=$version_type
9597 # Format of library name prefix.
9598 libname_spec=$lt_libname_spec
9600 # List of archive names. First name is the real one, the rest are links.
9601 # The last name is the one that the linker finds with -lNAME.
9602 library_names_spec=$lt_library_names_spec
9604 # The coded name of the library, if different from the real name.
9605 soname_spec=$lt_soname_spec
9607 # Commands used to build and install an old-style archive.
9609 old_archive_cmds=$lt_old_archive_cmds
9610 old_postinstall_cmds=$lt_old_postinstall_cmds
9611 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9613 # Create an old-style archive from a shared archive.
9614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9616 # Create a temporary old-style archive to link instead of a shared archive.
9617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9619 # Commands used to build and install a shared archive.
9620 archive_cmds=$lt_archive_cmds
9621 archive_expsym_cmds=$lt_archive_expsym_cmds
9622 postinstall_cmds=$lt_postinstall_cmds
9623 postuninstall_cmds=$lt_postuninstall_cmds
9625 # Commands used to build a loadable module (assumed same as above if empty)
9626 module_cmds=$lt_module_cmds
9627 module_expsym_cmds=$lt_module_expsym_cmds
9629 # Commands to strip libraries.
9630 old_striplib=$lt_old_striplib
9631 striplib=$lt_striplib
9633 # Dependencies to place before the objects being linked to create a
9635 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9637 # Dependencies to place after the objects being linked to create a
9639 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9641 # Dependencies to place before the objects being linked to create a
9645 # Dependencies to place after the objects being linked to create a
9647 postdeps=$lt_postdeps
9649 # The library search path used internally by the compiler when linking
9651 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9653 # Method to check whether dependent libraries are shared objects.
9654 deplibs_check_method=$lt_deplibs_check_method
9656 # Command to use when deplibs_check_method == file_magic.
9657 file_magic_cmd=$lt_file_magic_cmd
9659 # Flag that allows shared libraries with undefined symbols to be built.
9660 allow_undefined_flag=$lt_allow_undefined_flag
9662 # Flag that forces no undefined symbols.
9663 no_undefined_flag=$lt_no_undefined_flag
9665 # Commands used to finish a libtool library installation in a directory.
9666 finish_cmds=$lt_finish_cmds
9668 # Same as above, but a single script fragment to be evaled but not shown.
9669 finish_eval=$lt_finish_eval
9671 # Take the output of nm and produce a listing of raw symbols and C names.
9672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9674 # Transform the output of nm in a proper C declaration
9675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9677 # Transform the output of nm in a C name address pair
9678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9680 # This is the shared library runtime path variable.
9681 runpath_var=$runpath_var
9683 # This is the shared library path variable.
9684 shlibpath_var=$shlibpath_var
9686 # Is shlibpath searched before the hard-coded library search path?
9687 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9689 # How to hardcode a shared library path into an executable.
9690 hardcode_action=$hardcode_action
9692 # Whether we should hardcode library paths into libraries.
9693 hardcode_into_libs=$hardcode_into_libs
9695 # Flag to hardcode \$libdir into a binary during linking.
9696 # This must work even if \$libdir does not exist.
9697 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9699 # If ld is used when linking, flag to hardcode \$libdir into
9700 # a binary during linking. This must work even if \$libdir does
9702 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9704 # Whether we need a single -rpath flag with a separated argument.
9705 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9707 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9709 hardcode_direct=$hardcode_direct
9711 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9713 hardcode_minus_L=$hardcode_minus_L
9715 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9716 # the resulting binary.
9717 hardcode_shlibpath_var=$hardcode_shlibpath_var
9719 # Set to yes if building a shared library automatically hardcodes DIR into the library
9720 # and all subsequent libraries and executables linked against it.
9721 hardcode_automatic=$hardcode_automatic
9723 # Variables whose values should be saved in libtool wrapper scripts and
9724 # restored at relink time.
9725 variables_saved_for_relink="$variables_saved_for_relink"
9727 # Whether libtool must link a program against all its dependency libraries.
9728 link_all_deplibs=$link_all_deplibs
9730 # Compile-time system search path for libraries
9731 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9733 # Run-time system search path for libraries
9734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9736 # Fix the shell variable \$srcfile for the compiler.
9737 fix_srcfile_path="$fix_srcfile_path"
9739 # Set to yes if exported symbols are required.
9740 always_export_symbols=$always_export_symbols
9742 # The commands to list exported symbols.
9743 export_symbols_cmds=$lt_export_symbols_cmds
9745 # The commands to extract the exported symbol list from a shared archive.
9746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9748 # Symbols that should not be listed in the preloaded symbols.
9749 exclude_expsyms=$lt_exclude_expsyms
9751 # Symbols that must always be exported.
9752 include_expsyms=$lt_include_expsyms
9754 # ### END LIBTOOL CONFIG
9761 cat <<\EOF >> "$cfgfile"
9763 # AIX sometimes has problems with the GCC collect2 program. For some
9764 # reason, if we set the COLLECT_NAMES environment variable, the problems
9765 # vanish in a puff of smoke.
9766 if test "X${COLLECT_NAMES+set}" != Xset; then
9768 export COLLECT_NAMES
9774 # We use sed instead of cat because bash on DJGPP gets confused if
9775 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9776 # text mode, it properly converts lines to CR/LF. This bash problem
9777 # is reportedly fixed, but why not run on old versions too?
9778 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9780 mv -f "$cfgfile" "$ofile" || \
9781 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9785 # If there is no Makefile yet, we rely on a make rule to execute
9786 # `config.status --recheck' to rerun these tests and create the
9787 # libtool script then.
9788 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9789 if test -f "$ltmain_in"; then
9790 test -f Makefile && make "$ltmain"
9796 ac_cpp='$CPP $CPPFLAGS'
9797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9804 # Check whether --with-tags or --without-tags was given.
9805 if test "${with_tags+set}" = set; then
9806 withval="$with_tags"
9810 if test -f "$ltmain" && test -n "$tagnames"; then
9811 if test ! -f "${ofile}"; then
9812 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9813 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9816 if test -z "$LTCC"; then
9817 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9818 if test -z "$LTCC"; then
9819 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9820 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9822 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9823 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9826 if test -z "$LTCFLAGS"; then
9827 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9830 # Extract list of available tagged configurations in $ofile.
9831 # Note that this assumes the entire list is on one line.
9832 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9835 for tagname in $tagnames; do
9837 # Check whether tagname contains only valid characters
9838 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9840 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9841 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9842 { (exit 1); exit 1; }; }
9846 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9848 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9849 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9850 { (exit 1); exit 1; }; }
9853 # Update the list of available tags.
9854 if test -n "$tagname"; then
9855 echo appending configuration tag \"$tagname\" to $ofile
9859 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9860 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9861 (test "X$CXX" != "Xg++"))) ; then
9863 ac_cpp='$CXXCPP $CPPFLAGS'
9864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9871 archive_cmds_need_lc_CXX=no
9872 allow_undefined_flag_CXX=
9873 always_export_symbols_CXX=no
9874 archive_expsym_cmds_CXX=
9875 export_dynamic_flag_spec_CXX=
9876 hardcode_direct_CXX=no
9877 hardcode_libdir_flag_spec_CXX=
9878 hardcode_libdir_flag_spec_ld_CXX=
9879 hardcode_libdir_separator_CXX=
9880 hardcode_minus_L_CXX=no
9881 hardcode_shlibpath_var_CXX=unsupported
9882 hardcode_automatic_CXX=no
9884 module_expsym_cmds_CXX=
9885 link_all_deplibs_CXX=unknown
9886 old_archive_cmds_CXX=$old_archive_cmds
9887 no_undefined_flag_CXX=
9888 whole_archive_flag_spec_CXX=
9889 enable_shared_with_static_runtimes_CXX=no
9891 # Dependencies to place before and after the object being linked:
9893 postdep_objects_CXX=
9896 compiler_lib_search_path_CXX=
9898 # Source file extension for C++ test sources.
9901 # Object file extension for compiled C++ test sources.
9905 # Code to be used in simple compile tests
9906 lt_simple_compile_test_code="int some_variable = 0;\n"
9908 # Code to be used in simple link tests
9909 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9911 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9913 # If no C compiler was specified, use CC.
9916 # If no C compiler flags were specified, use CFLAGS.
9917 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9919 # Allow CC to be a program name with arguments.
9923 # save warnings/boilerplate of simple test code
9924 ac_outfile=conftest.$ac_objext
9925 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9926 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9927 _lt_compiler_boilerplate=`cat conftest.err`
9930 ac_outfile=conftest.$ac_objext
9931 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9932 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9933 _lt_linker_boilerplate=`cat conftest.err`
9937 # Allow CC to be a program name with arguments.
9942 lt_save_with_gnu_ld=$with_gnu_ld
9943 lt_save_path_LD=$lt_cv_path_LD
9944 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9945 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9947 $as_unset lt_cv_prog_gnu_ld
9949 if test -n "${lt_cv_path_LDCXX+set}"; then
9950 lt_cv_path_LD=$lt_cv_path_LDCXX
9952 $as_unset lt_cv_path_LD
9954 test -z "${LDCXX+set}" || LD=$LDCXX
9958 for cc_temp in $compiler""; do
9960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9966 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9969 # We don't want -fno-exception wen compiling C++ code, so set the
9970 # no_builtin_flag separately
9971 if test "$GXX" = yes; then
9972 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9974 lt_prog_compiler_no_builtin_flag_CXX=
9977 if test "$GXX" = yes; then
9978 # Set up default GNU C++ configuration
9981 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9982 if test "${with_gnu_ld+set}" = set; then
9983 withval="$with_gnu_ld"
9984 test "$withval" = no || with_gnu_ld=yes
9989 if test "$GCC" = yes; then
9990 # Check if gcc -print-prog-name=ld gives a path.
9991 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9992 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9995 # gcc leaves a trailing carriage return which upsets mingw
9996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10001 # Accept absolute paths.
10003 re_direlt='/[^/][^/]*/\.\./'
10004 # Canonicalize the pathname of ld
10005 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10006 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10007 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10009 test -z "$LD" && LD="$ac_prog"
10012 # If it fails, then pretend we aren't using GCC.
10016 # If it is relative, then search for the first ld in PATH.
10017 with_gnu_ld=unknown
10020 elif test "$with_gnu_ld" = yes; then
10021 echo "$as_me:$LINENO: checking for GNU ld" >&5
10022 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10024 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10025 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10027 if test "${lt_cv_path_LD+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 if test -z "$LD"; then
10031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10032 for ac_dir in $PATH; do
10034 test -z "$ac_dir" && ac_dir=.
10035 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10036 lt_cv_path_LD="$ac_dir/$ac_prog"
10037 # Check to see if the program is GNU ld. I'd rather use --version,
10038 # but apparently some variants of GNU ld only accept -v.
10039 # Break only if it was the GNU/non-GNU ld that we prefer.
10040 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10041 *GNU* | *'with BFD'*)
10042 test "$with_gnu_ld" != no && break
10045 test "$with_gnu_ld" != yes && break
10052 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10056 LD="$lt_cv_path_LD"
10057 if test -n "$LD"; then
10058 echo "$as_me:$LINENO: result: $LD" >&5
10059 echo "${ECHO_T}$LD" >&6
10061 echo "$as_me:$LINENO: result: no" >&5
10062 echo "${ECHO_T}no" >&6
10064 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10065 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10066 { (exit 1); exit 1; }; }
10067 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10068 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10069 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10073 case `$LD -v 2>&1 </dev/null` in
10074 *GNU* | *'with BFD'*)
10075 lt_cv_prog_gnu_ld=yes
10078 lt_cv_prog_gnu_ld=no
10082 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10083 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10084 with_gnu_ld=$lt_cv_prog_gnu_ld
10088 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10089 # archiving commands below assume that GNU ld is being used.
10090 if test "$with_gnu_ld" = yes; then
10091 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10092 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'
10094 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10097 # If archive_cmds runs LD, not CC, wlarc should be empty
10098 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10099 # investigate it a little bit more. (MM)
10102 # ancient GNU ld didn't support --whole-archive et. al.
10103 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10104 grep 'no-whole-archive' > /dev/null; then
10105 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10107 whole_archive_flag_spec_CXX=
10113 # A generic and very simple default shared library creation
10114 # command for GNU C++ for the case where it uses the native
10115 # linker, instead of GNU ld. If possible, this setting should
10116 # overridden to take advantage of the native linker features on
10117 # the platform it is being used on.
10118 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10121 # Commands to make compiler produce verbose output that lists
10122 # what "hidden" libraries, object files and flags are used when
10123 # linking a shared library.
10124 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10132 # PORTME: fill in a description of your system's C++ link characteristics
10133 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10134 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10138 # FIXME: insert proper C++ library support
10142 if test "$host_cpu" = ia64; then
10143 # On IA64, the linker does run time linking by default, so we don't
10144 # have to do anything special.
10145 aix_use_runtimelinking=no
10146 exp_sym_flag='-Bexport'
10149 aix_use_runtimelinking=no
10151 # Test if we are trying to use run time linking or normal
10152 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10153 # need to do runtime linking.
10154 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10155 for ld_flag in $LDFLAGS; do
10158 aix_use_runtimelinking=yes
10166 exp_sym_flag='-bexport'
10167 no_entry_flag='-bnoentry'
10170 # When large executables or shared objects are built, AIX ld can
10171 # have problems creating the table of contents. If linking a library
10172 # or program results in "error TOC overflow" add -mminimal-toc to
10173 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10174 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10176 archive_cmds_CXX=''
10177 hardcode_direct_CXX=yes
10178 hardcode_libdir_separator_CXX=':'
10179 link_all_deplibs_CXX=yes
10181 if test "$GXX" = yes; then
10182 case $host_os in aix4.[012]|aix4.[012].*)
10183 # We only want to do this on AIX 4.2 and lower, the check
10184 # below for broken collect2 doesn't work under 4.3+
10185 collect2name=`${CC} -print-prog-name=collect2`
10186 if test -f "$collect2name" && \
10187 strings "$collect2name" | grep resolve_lib_name >/dev/null
10189 # We have reworked collect2
10190 hardcode_direct_CXX=yes
10192 # We have old collect2
10193 hardcode_direct_CXX=unsupported
10194 # It fails to find uninstalled libraries when the uninstalled
10195 # path is not listed in the libpath. Setting hardcode_minus_L
10196 # to unsupported forces relinking
10197 hardcode_minus_L_CXX=yes
10198 hardcode_libdir_flag_spec_CXX='-L$libdir'
10199 hardcode_libdir_separator_CXX=
10203 shared_flag='-shared'
10204 if test "$aix_use_runtimelinking" = yes; then
10205 shared_flag="$shared_flag "'${wl}-G'
10209 if test "$host_cpu" = ia64; then
10210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10211 # chokes on -Wl,-G. The following line is correct:
10214 if test "$aix_use_runtimelinking" = yes; then
10215 shared_flag='${wl}-G'
10217 shared_flag='${wl}-bM:SRE'
10222 # It seems that -bexpall does not export symbols beginning with
10223 # underscore (_), so it is better to generate a list of symbols to export.
10224 always_export_symbols_CXX=yes
10225 if test "$aix_use_runtimelinking" = yes; then
10226 # Warning - without using the other runtime loading flags (-brtl),
10227 # -berok will link without error, but may produce a broken library.
10228 allow_undefined_flag_CXX='-berok'
10229 # Determine the default libpath from the value encoded in an empty executable.
10230 cat >conftest.$ac_ext <<_ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10247 (eval $ac_link) 2>conftest.er1
10249 grep -v '^ *+' conftest.er1 >conftest.err
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -z "$ac_cxx_werror_flag"
10255 || test ! -s conftest.err'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10270 # Check for a 64-bit object if we didn't find anything.
10271 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; }
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10278 rm -f conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10280 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10282 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10284 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10286 if test "$host_cpu" = ia64; then
10287 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10288 allow_undefined_flag_CXX="-z nodefs"
10289 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10291 # Determine the default libpath from the value encoded in an empty executable.
10292 cat >conftest.$ac_ext <<_ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309 (eval $ac_link) 2>conftest.er1
10311 grep -v '^ *+' conftest.er1 >conftest.err
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_cxx_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest$ac_exeext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10332 # Check for a 64-bit object if we didn't find anything.
10333 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; }
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10340 rm -f conftest.err conftest.$ac_objext \
10341 conftest$ac_exeext conftest.$ac_ext
10342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10344 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10345 # Warning - without using the other run time loading flags,
10346 # -berok will link without error, but may produce a broken library.
10347 no_undefined_flag_CXX=' ${wl}-bernotok'
10348 allow_undefined_flag_CXX=' ${wl}-berok'
10349 # Exported symbols can be pulled into shared objects from archives
10350 whole_archive_flag_spec_CXX='$convenience'
10351 archive_cmds_need_lc_CXX=yes
10352 # This is similar to how AIX traditionally builds its shared libraries.
10353 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10359 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10360 allow_undefined_flag_CXX=unsupported
10361 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10362 # support --undefined. This deserves some investigation. FIXME
10363 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10370 case $cc_basename in
10372 # FIXME: insert proper C++ library support
10378 cygwin* | mingw* | pw32*)
10379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10380 # as there is no search path for DLLs.
10381 hardcode_libdir_flag_spec_CXX='-L$libdir'
10382 allow_undefined_flag_CXX=unsupported
10383 always_export_symbols_CXX=no
10384 enable_shared_with_static_runtimes_CXX=yes
10386 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10387 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10388 # If the export-symbols file already is a .def file (1st line
10389 # is EXPORTS), use it as is; otherwise, prepend...
10390 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10391 cp $export_symbols $output_objdir/$soname.def;
10393 echo EXPORTS > $output_objdir/$soname.def;
10394 cat $export_symbols >> $output_objdir/$soname.def;
10396 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10401 darwin* | rhapsody*)
10403 rhapsody* | darwin1.[012])
10404 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10407 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10408 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10410 case ${MACOSX_DEPLOYMENT_TARGET} in
10412 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10415 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10421 archive_cmds_need_lc_CXX=no
10422 hardcode_direct_CXX=no
10423 hardcode_automatic_CXX=yes
10424 hardcode_shlibpath_var_CXX=unsupported
10425 whole_archive_flag_spec_CXX=''
10426 link_all_deplibs_CXX=yes
10428 if test "$GXX" = yes ; then
10429 lt_int_apple_cc_single_mod=no
10430 output_verbose_link_cmd='echo'
10431 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10432 lt_int_apple_cc_single_mod=yes
10434 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10435 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10437 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10439 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10440 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10441 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10442 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}'
10444 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10446 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}'
10448 case $cc_basename in
10450 output_verbose_link_cmd='echo'
10451 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10452 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10453 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10454 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10455 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}'
10465 case $cc_basename in
10467 # FIXME: insert proper C++ library support
10471 # Green Hills C++ Compiler
10472 # FIXME: insert proper C++ library support
10476 # FIXME: insert proper C++ library support
10482 # C++ shared libraries reported to be fairly broken before switch to ELF
10486 archive_cmds_need_lc_CXX=no
10488 freebsd* | kfreebsd*-gnu | dragonfly*)
10489 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10496 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10497 hardcode_libdir_separator_CXX=:
10498 export_dynamic_flag_spec_CXX='${wl}-E'
10499 hardcode_direct_CXX=yes
10500 hardcode_minus_L_CXX=yes # Not in the search PATH,
10501 # but as the default
10502 # location of the library.
10504 case $cc_basename in
10506 # FIXME: insert proper C++ library support
10510 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'
10511 # Commands to make compiler produce verbose output that lists
10512 # what "hidden" libraries, object files and flags are used when
10513 # linking a shared library.
10515 # There doesn't appear to be a way to prevent this compiler from
10516 # explicitly linking system object files so we need to strip them
10517 # from the output so that they don't get included in the library
10519 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'
10522 if test "$GXX" = yes; then
10523 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'
10525 # FIXME: insert proper C++ library support
10532 if test $with_gnu_ld = no; then
10533 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10534 hardcode_libdir_separator_CXX=:
10538 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10541 export_dynamic_flag_spec_CXX='${wl}-E'
10547 hardcode_direct_CXX=no
10548 hardcode_shlibpath_var_CXX=no
10551 hardcode_direct_CXX=yes
10552 hardcode_minus_L_CXX=yes # Not in the search PATH,
10553 # but as the default
10554 # location of the library.
10558 case $cc_basename in
10560 # FIXME: insert proper C++ library support
10566 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10569 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10572 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10575 # Commands to make compiler produce verbose output that lists
10576 # what "hidden" libraries, object files and flags are used when
10577 # linking a shared library.
10579 # There doesn't appear to be a way to prevent this compiler from
10580 # explicitly linking system object files so we need to strip them
10581 # from the output so that they don't get included in the library
10583 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'
10586 if test "$GXX" = yes; then
10587 if test $with_gnu_ld = no; then
10590 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10593 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10596 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'
10601 # FIXME: insert proper C++ library support
10608 hardcode_direct_CXX=no
10609 hardcode_shlibpath_var_CXX=no
10610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10611 export_dynamic_flag_spec_CXX='${wl}-E'
10612 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10613 # Instead, shared libraries are loaded at an image base (0x10000000 by
10614 # default) and relocated if they conflict, which is a slow very memory
10615 # consuming and fragmenting process. To avoid this, we pick a random,
10616 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10617 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10618 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10619 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10622 case $cc_basename in
10625 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10627 # Archives containing C++ object files must be created using
10628 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10629 # necessary to make sure instantiated templates are included
10631 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10634 if test "$GXX" = yes; then
10635 if test "$with_gnu_ld" = no; then
10636 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10638 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'
10641 link_all_deplibs_CXX=yes
10644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10645 hardcode_libdir_separator_CXX=:
10648 case $cc_basename in
10650 # Kuck and Associates, Inc. (KAI) C++ Compiler
10652 # KCC will only create a shared library if the output file
10653 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10654 # to its proper name (with version) after linking.
10655 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'
10656 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'
10657 # Commands to make compiler produce verbose output that lists
10658 # what "hidden" libraries, object files and flags are used when
10659 # linking a shared library.
10661 # There doesn't appear to be a way to prevent this compiler from
10662 # explicitly linking system object files so we need to strip them
10663 # from the output so that they don't get included in the library
10665 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'
10667 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10670 # Archives containing C++ object files must be created using
10671 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10672 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10677 # version 8.0 and above of icpc choke on multiply defined symbols
10678 # if we add $predep_objects and $postdep_objects, however 7.1 and
10679 # earlier do not add the objects themselves.
10680 case `$CC -V 2>&1` in
10682 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10683 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'
10685 *) # Version 8.0 or newer
10688 ia64*) tmp_idyn=' -i_dynamic';;
10690 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10691 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10694 archive_cmds_need_lc_CXX=no
10695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10696 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10697 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10700 # Portland Group C++ compiler
10701 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10702 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10704 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10706 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10710 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10711 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'
10713 runpath_var=LD_RUN_PATH
10714 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10715 hardcode_libdir_separator_CXX=:
10717 # Commands to make compiler produce verbose output that lists
10718 # what "hidden" libraries, object files and flags are used when
10719 # linking a shared library.
10721 # There doesn't appear to be a way to prevent this compiler from
10722 # explicitly linking system object files so we need to strip them
10723 # from the output so that they don't get included in the library
10725 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'
10730 # FIXME: insert proper C++ library support
10734 # FIXME: insert proper C++ library support
10738 case $cc_basename in
10740 # FIXME: insert proper C++ library support
10744 # FIXME: insert proper C++ library support
10750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10751 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10753 hardcode_libdir_flag_spec_CXX='-R$libdir'
10754 hardcode_direct_CXX=yes
10755 hardcode_shlibpath_var_CXX=no
10757 # Workaround some broken pre-1.5 toolchains
10758 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10761 # C++ shared libraries are fairly broken
10765 hardcode_direct_CXX=yes
10766 hardcode_shlibpath_var_CXX=no
10767 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10768 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10770 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10771 export_dynamic_flag_spec_CXX='${wl}-E'
10772 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10774 output_verbose_link_cmd='echo'
10777 case $cc_basename in
10779 # Kuck and Associates, Inc. (KAI) C++ Compiler
10781 # KCC will only create a shared library if the output file
10782 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10783 # to its proper name (with version) after linking.
10784 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'
10786 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10787 hardcode_libdir_separator_CXX=:
10789 # Archives containing C++ object files must be created using
10790 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10791 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10795 # Rational C++ 2.4.1
10796 # FIXME: insert proper C++ library support
10800 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10801 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10803 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10804 hardcode_libdir_separator_CXX=:
10806 # Commands to make compiler produce verbose output that lists
10807 # what "hidden" libraries, object files and flags are used when
10808 # linking a shared library.
10810 # There doesn't appear to be a way to prevent this compiler from
10811 # explicitly linking system object files so we need to strip them
10812 # from the output so that they don't get included in the library
10814 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'
10817 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10818 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10819 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10821 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10822 hardcode_libdir_separator_CXX=:
10824 # Commands to make compiler produce verbose output that lists
10825 # what "hidden" libraries, object files and flags are used when
10826 # linking a shared library.
10827 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10830 # FIXME: insert proper C++ library support
10837 case $cc_basename in
10839 # Kuck and Associates, Inc. (KAI) C++ Compiler
10841 # KCC will only create a shared library if the output file
10842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10843 # to its proper name (with version) after linking.
10844 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'
10846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10847 hardcode_libdir_separator_CXX=:
10849 # Archives containing C++ object files must be created using
10850 # the KAI C++ compiler.
10851 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10854 # Rational C++ 2.4.1
10855 # FIXME: insert proper C++ library support
10859 allow_undefined_flag_CXX=' -expect_unresolved \*'
10860 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10861 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10862 echo "-hidden">> $lib.exp~
10863 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10866 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10867 hardcode_libdir_separator_CXX=:
10869 # Commands to make compiler produce verbose output that lists
10870 # what "hidden" libraries, object files and flags are used when
10871 # linking a shared library.
10873 # There doesn't appear to be a way to prevent this compiler from
10874 # explicitly linking system object files so we need to strip them
10875 # from the output so that they don't get included in the library
10877 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'
10880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10881 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10882 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10885 hardcode_libdir_separator_CXX=:
10887 # Commands to make compiler produce verbose output that lists
10888 # what "hidden" libraries, object files and flags are used when
10889 # linking a shared library.
10890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10893 # FIXME: insert proper C++ library support
10900 # FIXME: insert proper C++ library support
10904 case $cc_basename in
10907 # FIXME: insert proper C++ library support
10912 # FIXME: insert proper C++ library support
10916 # FIXME: insert proper C++ library support
10922 case $cc_basename in
10924 # Sun C++ 4.2, 5.x and Centerline C++
10925 archive_cmds_need_lc_CXX=yes
10926 no_undefined_flag_CXX=' -zdefs'
10927 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10928 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10929 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10931 hardcode_libdir_flag_spec_CXX='-R$libdir'
10932 hardcode_shlibpath_var_CXX=no
10934 solaris2.[0-5] | solaris2.[0-5].*) ;;
10936 # The C++ compiler is used as linker so we must use $wl
10937 # flag to pass the commands to the underlying system
10938 # linker. We must also pass each convience library through
10939 # to the system linker between allextract/defaultextract.
10940 # The C++ compiler will combine linker options so we
10941 # cannot just pass the convience library names through
10943 # Supported since Solaris 2.6 (maybe 2.5.1?)
10944 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10947 link_all_deplibs_CXX=yes
10949 output_verbose_link_cmd='echo'
10951 # Archives containing C++ object files must be created using
10952 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10953 # necessary to make sure instantiated templates are included
10955 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10958 # Green Hills C++ Compiler
10959 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10961 # The C++ compiler must be used to create the archive.
10962 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10965 # GNU C++ compiler with Solaris linker
10966 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10967 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10968 if $CC --version | grep -v '^2\.7' > /dev/null; then
10969 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10970 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10971 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10973 # Commands to make compiler produce verbose output that lists
10974 # what "hidden" libraries, object files and flags are used when
10975 # linking a shared library.
10976 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10978 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10980 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10981 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10982 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10984 # Commands to make compiler produce verbose output that lists
10985 # what "hidden" libraries, object files and flags are used when
10986 # linking a shared library.
10987 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10990 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10995 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10996 no_undefined_flag_CXX='${wl}-z,text'
10997 archive_cmds_need_lc_CXX=no
10998 hardcode_shlibpath_var_CXX=no
10999 runpath_var='LD_RUN_PATH'
11001 case $cc_basename in
11003 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012 sysv5* | sco3.2v5* | sco5v6*)
11013 # Note: We can NOT use -z defs as we might desire, because we do not
11014 # link with -lc, and that would cause any symbols used from libc to
11015 # always be unresolved, which means just about no library would
11016 # ever link correctly. If we're not using GNU ld we use -z text
11017 # though, which does catch some bad symbols but isn't as heavy-handed
11019 # For security reasons, it is highly recommended that you always
11020 # use absolute paths for naming shared libraries, and exclude the
11021 # DT_RUNPATH tag from executables and libraries. But doing so
11022 # requires that you compile everything twice, which is a pain.
11023 # So that behaviour is only enabled if SCOABSPATH is set to a
11024 # non-empty value in the environment. Most likely only useful for
11025 # creating official distributions of packages.
11026 # This is a hack until libtool officially supports absolute path
11027 # names for shared libraries.
11028 no_undefined_flag_CXX='${wl}-z,text'
11029 allow_undefined_flag_CXX='${wl}-z,nodefs'
11030 archive_cmds_need_lc_CXX=no
11031 hardcode_shlibpath_var_CXX=no
11032 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11033 hardcode_libdir_separator_CXX=':'
11034 link_all_deplibs_CXX=yes
11035 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11036 runpath_var='LD_RUN_PATH'
11038 case $cc_basename in
11040 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11044 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11045 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11050 case $cc_basename in
11052 # NonStop-UX NCC 3.20
11053 # FIXME: insert proper C++ library support
11057 # FIXME: insert proper C++ library support
11063 # FIXME: insert proper C++ library support
11067 # FIXME: insert proper C++ library support
11071 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11072 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11073 test "$ld_shlibs_CXX" = no && can_build_shared=no
11079 cat > conftest.$ac_ext <<EOF
11083 Foo (void) { a = 0; }
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090 (eval $ac_compile) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; then
11094 # Parse the compiler output and extract the necessary
11095 # objects, libraries and library flags.
11097 # Sentinel used to keep track of whether or not we are before
11098 # the conftest object file.
11099 pre_test_object_deps_done=no
11101 # The `*' in the case matches for architectures that use `case' in
11102 # $output_verbose_cmd can trigger glob expansion during the loop
11103 # eval without this substitution.
11104 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11106 for p in `eval $output_verbose_link_cmd`; do
11110 # Some compilers place space between "-{L,R}" and the path.
11111 # Remove the space.
11112 if test $p = "-L" \
11113 || test $p = "-R"; then
11120 if test "$pre_test_object_deps_done" = no; then
11123 # Internal compiler library paths should come after those
11124 # provided the user. The postdeps already come after the
11125 # user supplied libs so there is no need to process them.
11126 if test -z "$compiler_lib_search_path_CXX"; then
11127 compiler_lib_search_path_CXX="${prev}${p}"
11129 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11132 # The "-l" case would never come before the object being
11133 # linked, so don't bother handling this case.
11136 if test -z "$postdeps_CXX"; then
11137 postdeps_CXX="${prev}${p}"
11139 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11145 # This assumes that the test object file only shows up
11146 # once in the compiler output.
11147 if test "$p" = "conftest.$objext"; then
11148 pre_test_object_deps_done=yes
11152 if test "$pre_test_object_deps_done" = no; then
11153 if test -z "$predep_objects_CXX"; then
11154 predep_objects_CXX="$p"
11156 predep_objects_CXX="$predep_objects_CXX $p"
11159 if test -z "$postdep_objects_CXX"; then
11160 postdep_objects_CXX="$p"
11162 postdep_objects_CXX="$postdep_objects_CXX $p"
11167 *) ;; # Ignore the rest.
11175 echo "libtool.m4: error: problem compiling CXX test program"
11178 $rm -f confest.$objext
11180 # PORTME: override above test on systems where it is broken
11183 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11184 # hack all around it, let's just trust "g++" to DTRT.
11185 predep_objects_CXX=
11186 postdep_objects_CXX=
11191 case $cc_basename in
11193 # Adding this requires a known-good setup of shared libraries for
11194 # Sun compiler versions before 5.6, else PIC objects from an old
11195 # archive will be linked into the output, leading to subtle bugs.
11196 postdeps_CXX='-lCstd -lCrun'
11203 case " $postdeps_CXX " in
11204 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11207 lt_prog_compiler_wl_CXX=
11208 lt_prog_compiler_pic_CXX=
11209 lt_prog_compiler_static_CXX=
11211 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11212 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11214 # C++ specific cases for pic, static, wl, etc.
11215 if test "$GXX" = yes; then
11216 lt_prog_compiler_wl_CXX='-Wl,'
11217 lt_prog_compiler_static_CXX='-static'
11221 # All AIX code is PIC.
11222 if test "$host_cpu" = ia64; then
11223 # AIX 5 now supports IA64 processor
11224 lt_prog_compiler_static_CXX='-Bstatic'
11228 # FIXME: we need at least 68020 code to build shared libraries, but
11229 # adding the `-m68020' flag to GCC prevents building anything better,
11231 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11233 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11234 # PIC is the default for these OSes.
11236 mingw* | os2* | pw32*)
11237 # This hack is so that the source file can tell whether it is being
11238 # built for inclusion in a dll (and should export symbols for example).
11239 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11241 darwin* | rhapsody*)
11242 # PIC is the default on this platform
11243 # Common symbols not allowed in MH_DYLIB files
11244 lt_prog_compiler_pic_CXX='-fno-common'
11247 # DJGPP does not support shared libraries at all
11248 lt_prog_compiler_pic_CXX=
11251 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11252 # Instead, we relocate shared libraries at runtime.
11255 if test -d /usr/nec; then
11256 lt_prog_compiler_pic_CXX=-Kconform_pic
11260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11261 # not for PA HP-UX.
11266 lt_prog_compiler_pic_CXX='-fPIC'
11271 lt_prog_compiler_pic_CXX='-fPIC'
11277 # All AIX code is PIC.
11278 if test "$host_cpu" = ia64; then
11279 # AIX 5 now supports IA64 processor
11280 lt_prog_compiler_static_CXX='-Bstatic'
11282 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11286 case $cc_basename in
11288 # Green Hills C++ Compiler
11289 # _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"
11294 # PIC is the default on this platform
11295 # Common symbols not allowed in MH_DYLIB files
11296 case $cc_basename in
11298 lt_prog_compiler_pic_CXX='-qnocommon'
11299 lt_prog_compiler_wl_CXX='-Wl,'
11304 case $cc_basename in
11306 lt_prog_compiler_pic_CXX='-KPIC'
11309 # Green Hills C++ Compiler
11310 lt_prog_compiler_pic_CXX='-pic'
11316 freebsd* | kfreebsd*-gnu | dragonfly*)
11317 # FreeBSD uses GNU C++
11319 hpux9* | hpux10* | hpux11*)
11320 case $cc_basename in
11322 lt_prog_compiler_wl_CXX='-Wl,'
11323 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11324 if test "$host_cpu" != ia64; then
11325 lt_prog_compiler_pic_CXX='+Z'
11329 lt_prog_compiler_wl_CXX='-Wl,'
11330 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11336 lt_prog_compiler_pic_CXX='+Z'
11345 # This is c89, which is MS Visual C++ (no shared libs)
11346 # Anyone wants to do a port?
11348 irix5* | irix6* | nonstopux*)
11349 case $cc_basename in
11351 lt_prog_compiler_wl_CXX='-Wl,'
11352 lt_prog_compiler_static_CXX='-non_shared'
11353 # CC pic flag -KPIC is the default.
11360 case $cc_basename in
11363 lt_prog_compiler_wl_CXX='--backend -Wl,'
11364 lt_prog_compiler_pic_CXX='-fPIC'
11368 lt_prog_compiler_wl_CXX='-Wl,'
11369 lt_prog_compiler_pic_CXX='-KPIC'
11370 lt_prog_compiler_static_CXX='-static'
11373 # Portland Group C++ compiler.
11374 lt_prog_compiler_wl_CXX='-Wl,'
11375 lt_prog_compiler_pic_CXX='-fpic'
11376 lt_prog_compiler_static_CXX='-Bstatic'
11380 # Make sure the PIC flag is empty. It appears that all Alpha
11381 # Linux and Compaq Tru64 Unix objects are PIC.
11382 lt_prog_compiler_pic_CXX=
11383 lt_prog_compiler_static_CXX='-non_shared'
11394 case $cc_basename in
11396 lt_prog_compiler_pic_CXX='-W c,exportall'
11404 osf3* | osf4* | osf5*)
11405 case $cc_basename in
11407 lt_prog_compiler_wl_CXX='--backend -Wl,'
11410 # Rational C++ 2.4.1
11411 lt_prog_compiler_pic_CXX='-pic'
11414 # Digital/Compaq C++
11415 lt_prog_compiler_wl_CXX='-Wl,'
11416 # Make sure the PIC flag is empty. It appears that all Alpha
11417 # Linux and Compaq Tru64 Unix objects are PIC.
11418 lt_prog_compiler_pic_CXX=
11419 lt_prog_compiler_static_CXX='-non_shared'
11428 case $cc_basename in
11430 # Sun C++ 4.2, 5.x and Centerline C++
11431 lt_prog_compiler_pic_CXX='-KPIC'
11432 lt_prog_compiler_static_CXX='-Bstatic'
11433 lt_prog_compiler_wl_CXX='-Qoption ld '
11436 # Green Hills C++ Compiler
11437 lt_prog_compiler_pic_CXX='-PIC'
11444 case $cc_basename in
11447 lt_prog_compiler_pic_CXX='-pic'
11448 lt_prog_compiler_static_CXX='-Bstatic'
11452 lt_prog_compiler_pic_CXX='-pic'
11459 case $cc_basename in
11461 # NonStop-UX NCC 3.20
11462 lt_prog_compiler_pic_CXX='-KPIC'
11468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11469 case $cc_basename in
11471 lt_prog_compiler_wl_CXX='-Wl,'
11472 lt_prog_compiler_pic_CXX='-KPIC'
11473 lt_prog_compiler_static_CXX='-Bstatic'
11480 lt_prog_compiler_can_build_shared_CXX=no
11485 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11486 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11489 # Check to make sure the PIC flag actually works.
11491 if test -n "$lt_prog_compiler_pic_CXX"; then
11493 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11494 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11495 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 lt_prog_compiler_pic_works_CXX=no
11499 ac_outfile=conftest.$ac_objext
11500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11501 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11502 # Insert the option either (1) after the last *FLAGS variable, or
11503 # (2) before a word containing "conftest.", or (3) at the end.
11504 # Note that $ac_compile itself does not contain backslashes and begins
11505 # with a dollar sign (not a hyphen), so the echo should work correctly.
11506 # The option is referenced via a variable to avoid confusing sed.
11507 lt_compile=`echo "$ac_compile" | $SED \
11508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11510 -e 's:$: $lt_compiler_flag:'`
11511 (eval echo "\"\$as_me:11511: $lt_compile\"" >&5)
11512 (eval "$lt_compile" 2>conftest.err)
11514 cat conftest.err >&5
11515 echo "$as_me:11515: \$? = $ac_status" >&5
11516 if (exit $ac_status) && test -s "$ac_outfile"; then
11517 # The compiler can only warn and ignore the option if not recognized
11518 # So say no if there are warnings other than the usual output.
11519 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11522 lt_prog_compiler_pic_works_CXX=yes
11528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11529 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11531 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11532 case $lt_prog_compiler_pic_CXX in
11534 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11537 lt_prog_compiler_pic_CXX=
11538 lt_prog_compiler_can_build_shared_CXX=no
11543 # For platforms which do not support PIC, -DPIC is meaningless:
11545 lt_prog_compiler_pic_CXX=
11548 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11553 # Check to make sure the static flag actually works.
11555 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11556 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11557 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11558 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 lt_prog_compiler_static_works_CXX=no
11562 save_LDFLAGS="$LDFLAGS"
11563 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11564 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11565 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11566 # The linker can only warn and ignore the option if not recognized
11567 # So say no if there are warnings
11568 if test -s conftest.err; then
11569 # Append any errors to the config.log.
11570 cat conftest.err 1>&5
11571 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11573 if diff conftest.exp conftest.er2 >/dev/null; then
11574 lt_prog_compiler_static_works_CXX=yes
11577 lt_prog_compiler_static_works_CXX=yes
11581 LDFLAGS="$save_LDFLAGS"
11584 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11585 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11587 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11590 lt_prog_compiler_static_CXX=
11594 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11595 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11596 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 lt_cv_prog_compiler_c_o_CXX=no
11600 $rm -r conftest 2>/dev/null
11604 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11606 lt_compiler_flag="-o out/conftest2.$ac_objext"
11607 # Insert the option either (1) after the last *FLAGS variable, or
11608 # (2) before a word containing "conftest.", or (3) at the end.
11609 # Note that $ac_compile itself does not contain backslashes and begins
11610 # with a dollar sign (not a hyphen), so the echo should work correctly.
11611 lt_compile=`echo "$ac_compile" | $SED \
11612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11614 -e 's:$: $lt_compiler_flag:'`
11615 (eval echo "\"\$as_me:11615: $lt_compile\"" >&5)
11616 (eval "$lt_compile" 2>out/conftest.err)
11618 cat out/conftest.err >&5
11619 echo "$as_me:11619: \$? = $ac_status" >&5
11620 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11622 # The compiler can only warn and ignore the option if not recognized
11623 # So say no if there are warnings
11624 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11627 lt_cv_prog_compiler_c_o_CXX=yes
11632 # SGI C++ compiler will create directory out/ii_files/ for
11633 # template instantiation
11634 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11635 $rm out/* && rmdir out
11641 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11642 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11645 hard_links="nottested"
11646 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11647 # do not overwrite the value of need_locks provided by the user
11648 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11649 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11654 ln conftest.a conftest.b 2>&5 || hard_links=no
11655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11656 echo "$as_me:$LINENO: result: $hard_links" >&5
11657 echo "${ECHO_T}$hard_links" >&6
11658 if test "$hard_links" = no; then
11659 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11660 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11667 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11668 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11670 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11673 # If we're using GNU nm, then we don't want the "-C" option.
11674 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11675 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11676 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'
11678 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'
11682 export_symbols_cmds_CXX="$ltdll_cmds"
11685 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11688 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11692 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11693 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11694 test "$ld_shlibs_CXX" = no && can_build_shared=no
11697 # Do we need to explicitly link libc?
11699 case "x$archive_cmds_need_lc_CXX" in
11701 # Assume -lc should be added
11702 archive_cmds_need_lc_CXX=yes
11704 if test "$enable_shared" = yes && test "$GCC" = yes; then
11705 case $archive_cmds_CXX in
11707 # FIXME: we may have to deal with multi-command sequences.
11710 # Test whether the compiler implicitly links with -lc since on some
11711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11712 # to ld, don't add -lc before -lgcc.
11713 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11714 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719 (eval $ac_compile) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } 2>conftest.err; then
11725 libobjs=conftest.$ac_objext
11727 wl=$lt_prog_compiler_wl_CXX
11728 pic_flag=$lt_prog_compiler_pic_CXX
11734 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11735 allow_undefined_flag_CXX=
11736 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11737 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }
11742 archive_cmds_need_lc_CXX=no
11744 archive_cmds_need_lc_CXX=yes
11746 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11748 cat conftest.err 1>&5
11751 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11752 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11759 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11760 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11761 library_names_spec=
11762 libname_spec='lib$name'
11766 postuninstall_cmds=
11770 shlibpath_overrides_runpath=unknown
11772 dynamic_linker="$host_os ld.so"
11773 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11774 if test "$GCC" = yes; then
11775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11776 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11777 # if the path contains ";" then we assume it to be the separator
11778 # otherwise default to the standard path separator (i.e. ":") - it is
11779 # assumed that no part of a normal pathname contains ";" but that should
11780 # okay in the real world where ";" in dirpaths is itself problematic.
11781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11786 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11788 need_lib_prefix=unknown
11789 hardcode_into_libs=no
11791 # when you set need_version to no, make sure it does not cause -set_version
11792 # flags to be left without arguments
11793 need_version=unknown
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11799 shlibpath_var=LIBPATH
11801 # AIX 3 has no versioning support, so we append a major version to the name.
11802 soname_spec='${libname}${release}${shared_ext}$major'
11809 hardcode_into_libs=yes
11810 if test "$host_cpu" = ia64; then
11811 # AIX 5 supports IA64
11812 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11813 shlibpath_var=LD_LIBRARY_PATH
11815 # With GCC up to 2.95.x, collect2 would create an import file
11816 # for dependence libraries. The import file would start with
11817 # the line `#! .'. This would cause the generated library to
11818 # depend on `.', always an invalid library. This was fixed in
11819 # development snapshots of GCC prior to 3.0.
11821 aix4 | aix4.[01] | aix4.[01].*)
11822 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11824 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11827 can_build_shared=no
11831 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11832 # soname into executable. Probably we can add versioning support to
11833 # collect2, so additional links can be useful in future.
11834 if test "$aix_use_runtimelinking" = yes; then
11835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11836 # instead of lib<name>.a to let people know that these are not
11837 # typical AIX shared libraries.
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11840 # We preserve .a as extension for shared libraries through AIX4.2
11841 # and later when we are not doing run time linking.
11842 library_names_spec='${libname}${release}.a $libname.a'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11845 shlibpath_var=LIBPATH
11850 library_names_spec='$libname.ixlibrary $libname.a'
11851 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11852 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'
11856 library_names_spec='${libname}${shared_ext}'
11857 dynamic_linker="$host_os ld.so"
11858 shlibpath_var=LIBRARY_PATH
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865 soname_spec='${libname}${release}${shared_ext}$major'
11866 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11867 shlibpath_var=LD_LIBRARY_PATH
11868 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11869 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11870 # the default ld.so.conf also contains /usr/contrib/lib and
11871 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11872 # libtool to hard-code these into programs
11875 cygwin* | mingw* | pw32*)
11876 version_type=windows
11881 case $GCC,$host_os in
11882 yes,cygwin* | yes,mingw* | yes,pw32*)
11883 library_names_spec='$libname.dll.a'
11884 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11885 postinstall_cmds='base_file=`basename \${file}`~
11886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11887 dldir=$destdir/`dirname \$dlpath`~
11888 test -d \$dldir || mkdir -p \$dldir~
11889 $install_prog $dir/$dlname \$dldir/$dlname~
11890 chmod a+x \$dldir/$dlname'
11891 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11892 dlpath=$dir/\$dldll~
11894 shlibpath_overrides_runpath=yes
11898 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11899 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11900 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11903 # MinGW DLLs use traditional 'lib' prefix
11904 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11905 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11906 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11907 # It is most probably a Windows format PATH printed by
11908 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11909 # path with ; separators, and with drive letters. We can handle the
11910 # drive letters (cygwin fileutils understands them), so leave them,
11911 # especially as we might pass files found there to a mingw objdump,
11912 # which wouldn't understand a cygwinified path. Ahh.
11913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11919 # pw32 DLLs use 'pw' prefix rather than 'lib'
11920 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11926 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11929 dynamic_linker='Win32 ld.exe'
11930 # FIXME: first we should search . and the directory the executable is in
11934 darwin* | rhapsody*)
11935 dynamic_linker="$host_os dyld"
11936 version_type=darwin
11939 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11940 soname_spec='${libname}${release}${major}$shared_ext'
11941 shlibpath_overrides_runpath=yes
11942 shlibpath_var=DYLD_LIBRARY_PATH
11943 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11944 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11945 if test "$GCC" = yes; then
11946 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"`
11948 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11950 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11958 soname_spec='${libname}${release}${shared_ext}$major'
11959 shlibpath_var=LD_LIBRARY_PATH
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 shlibpath_overrides_runpath=no
11974 hardcode_into_libs=yes
11975 dynamic_linker='GNU ld.so'
11978 freebsd* | dragonfly*)
11979 # DragonFly does not have aout. When/if they implement a new
11980 # versioning mechanism, adjust this.
11981 if test -x /usr/bin/objformat; then
11982 objformat=`/usr/bin/objformat`
11985 freebsd[123]*) objformat=aout ;;
11986 *) objformat=elf ;;
11989 version_type=freebsd-$objformat
11990 case $version_type in
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12001 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=yes
12006 freebsd3.[01]* | freebsdelf3.[01]*)
12007 shlibpath_overrides_runpath=yes
12008 hardcode_into_libs=yes
12010 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12011 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12012 shlibpath_overrides_runpath=no
12013 hardcode_into_libs=yes
12015 freebsd*) # from 4.6 on
12016 shlibpath_overrides_runpath=yes
12017 hardcode_into_libs=yes
12026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12027 soname_spec='${libname}${release}${shared_ext}$major'
12028 shlibpath_var=LD_LIBRARY_PATH
12029 hardcode_into_libs=yes
12032 hpux9* | hpux10* | hpux11*)
12033 # Give a soname corresponding to the major version so that dld.sl refuses to
12034 # link against other versions.
12041 hardcode_into_libs=yes
12042 dynamic_linker="$host_os dld.so"
12043 shlibpath_var=LD_LIBRARY_PATH
12044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12046 soname_spec='${libname}${release}${shared_ext}$major'
12047 if test "X$HPUX_IA64_MODE" = X32; then
12048 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12050 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12056 hardcode_into_libs=yes
12057 dynamic_linker="$host_os dld.sl"
12058 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12061 soname_spec='${libname}${release}${shared_ext}$major'
12062 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12067 dynamic_linker="$host_os dld.sl"
12068 shlibpath_var=SHLIB_PATH
12069 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071 soname_spec='${libname}${release}${shared_ext}$major'
12074 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12075 postinstall_cmds='chmod 555 $lib'
12082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12083 soname_spec='${libname}${release}${shared_ext}$major'
12084 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12085 shlibpath_var=LD_LIBRARY_PATH
12086 shlibpath_overrides_runpath=no
12087 hardcode_into_libs=yes
12090 irix5* | irix6* | nonstopux*)
12092 nonstopux*) version_type=nonstopux ;;
12094 if test "$lt_cv_prog_gnu_ld" = yes; then
12102 soname_spec='${libname}${release}${shared_ext}$major'
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12105 irix5* | nonstopux*)
12106 libsuff= shlibsuff=
12109 case $LD in # libtool.m4 will add one of these switches to LD
12110 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12111 libsuff= shlibsuff= libmagic=32-bit;;
12112 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12113 libsuff=32 shlibsuff=N32 libmagic=N32;;
12114 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12115 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12116 *) libsuff= shlibsuff= libmagic=never-match;;
12120 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12121 shlibpath_overrides_runpath=no
12122 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12123 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12124 hardcode_into_libs=yes
12127 # No shared lib support for Linux oldld, aout, or coff.
12128 linux*oldld* | linux*aout* | linux*coff*)
12132 # This must be Linux ELF.
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12138 soname_spec='${libname}${release}${shared_ext}$major'
12139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12140 shlibpath_var=LD_LIBRARY_PATH
12141 shlibpath_overrides_runpath=no
12142 # This implies no fast_install, which is unacceptable.
12143 # Some rework will be needed to allow for fast_install
12144 # before this can be enabled.
12145 hardcode_into_libs=yes
12147 # find out which ABI we are using
12149 case "$host_cpu" in
12150 x86_64*|s390x*|powerpc64*)
12151 echo '#line 12151 "configure"' > conftest.$ac_ext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; then
12157 case `/usr/bin/file conftest.$ac_objext` in
12160 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12168 # Append ld.so.conf contents to the search path
12169 if test -f /etc/ld.so.conf; then
12170 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12171 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12174 # We used to test for /lib/ld.so.1 and disable shared libraries on
12175 # powerpc, because MkLinux only supported shared libraries with the
12176 # GNU dynamic linker. Since this was broken with cross compilers,
12177 # most powerpc-linux boxes support dynamic linking these days and
12178 # people can always --disable-shared, the test was removed, and we
12179 # assume the GNU/Linux dynamic linker is in use.
12180 dynamic_linker='GNU/Linux ld.so'
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12188 soname_spec='${libname}${release}${shared_ext}$major'
12189 shlibpath_var=LD_LIBRARY_PATH
12190 shlibpath_overrides_runpath=no
12191 hardcode_into_libs=yes
12192 dynamic_linker='GNU ld.so'
12199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12202 dynamic_linker='NetBSD (a.out) ld.so'
12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12205 soname_spec='${libname}${release}${shared_ext}$major'
12206 dynamic_linker='NetBSD ld.elf_so'
12208 shlibpath_var=LD_LIBRARY_PATH
12209 shlibpath_overrides_runpath=yes
12210 hardcode_into_libs=yes
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12216 shlibpath_var=LD_LIBRARY_PATH
12217 shlibpath_overrides_runpath=yes
12224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12225 soname_spec='${libname}${release}${shared_ext}$major'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 shlibpath_overrides_runpath=yes
12232 sys_lib_dlsearch_path_spec="/usr/lib"
12234 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12236 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12237 *) need_version=no ;;
12239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12241 shlibpath_var=LD_LIBRARY_PATH
12242 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12244 openbsd2.[89] | openbsd2.[89].*)
12245 shlibpath_overrides_runpath=no
12248 shlibpath_overrides_runpath=yes
12252 shlibpath_overrides_runpath=yes
12257 libname_spec='$name'
12260 library_names_spec='$libname${shared_ext} $libname.a'
12261 dynamic_linker='OS/2 ld.exe'
12262 shlibpath_var=LIBPATH
12265 osf3* | osf4* | osf5*)
12269 soname_spec='${libname}${release}${shared_ext}$major'
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12271 shlibpath_var=LD_LIBRARY_PATH
12272 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12273 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12281 soname_spec='${libname}${release}${shared_ext}$major'
12282 shlibpath_var=LD_LIBRARY_PATH
12283 shlibpath_overrides_runpath=yes
12284 hardcode_into_libs=yes
12285 # ldd complains unless libraries are executable
12286 postinstall_cmds='chmod +x $lib'
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 shlibpath_overrides_runpath=yes
12295 if test "$with_gnu_ld" = yes; then
12303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12304 soname_spec='${libname}${release}${shared_ext}$major'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 case $host_vendor in
12308 shlibpath_overrides_runpath=no
12310 export_dynamic_flag_spec='${wl}-Blargedynsym'
12311 runpath_var=LD_RUN_PATH
12319 shlibpath_overrides_runpath=no
12320 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12326 if test -d /usr/nec ;then
12328 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12329 soname_spec='$libname${shared_ext}.$major'
12330 shlibpath_var=LD_LIBRARY_PATH
12334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12335 version_type=freebsd-elf
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 hardcode_into_libs=yes
12342 if test "$with_gnu_ld" = yes; then
12343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12344 shlibpath_overrides_runpath=no
12346 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12347 shlibpath_overrides_runpath=yes
12350 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12354 sys_lib_dlsearch_path_spec='/usr/lib'
12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360 soname_spec='${libname}${release}${shared_ext}$major'
12361 shlibpath_var=LD_LIBRARY_PATH
12368 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12369 echo "${ECHO_T}$dynamic_linker" >&6
12370 test "$dynamic_linker" = no && can_build_shared=no
12372 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12373 if test "$GCC" = yes; then
12374 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12377 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12378 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12379 hardcode_action_CXX=
12380 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12381 test -n "$runpath_var_CXX" || \
12382 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12384 # We can hardcode non-existant directories.
12385 if test "$hardcode_direct_CXX" != no &&
12386 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12387 # have to relink, otherwise we might link with an installed library
12388 # when we should be linking with a yet-to-be-installed one
12389 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12390 test "$hardcode_minus_L_CXX" != no; then
12391 # Linking always hardcodes the temporary library directory.
12392 hardcode_action_CXX=relink
12394 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12395 hardcode_action_CXX=immediate
12398 # We cannot hardcode anything, or else we can only hardcode existing
12400 hardcode_action_CXX=unsupported
12402 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12403 echo "${ECHO_T}$hardcode_action_CXX" >&6
12405 if test "$hardcode_action_CXX" = relink; then
12406 # Fast installation is not supported
12407 enable_fast_install=no
12408 elif test "$shlibpath_overrides_runpath" = yes ||
12409 test "$enable_shared" = no; then
12410 # Fast installation is not necessary
12411 enable_fast_install=needless
12415 # The else clause should only fire when bootstrapping the
12416 # libtool distribution, otherwise you forgot to ship ltmain.sh
12417 # with your package, and you will get complaints that there are
12418 # no rules to generate ltmain.sh.
12419 if test -f "$ltmain"; then
12420 # See if we are running on zsh, and set the options which allow our commands through
12421 # without removal of \ escapes.
12422 if test -n "${ZSH_VERSION+set}" ; then
12423 setopt NO_GLOB_SUBST
12425 # Now quote all the things that may contain metacharacters while being
12426 # careful not to overquote the AC_SUBSTed values. We take copies of the
12427 # variables and quote the copies for generation of the libtool script.
12428 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12430 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12431 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12432 deplibs_check_method reload_flag reload_cmds need_locks \
12433 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12434 lt_cv_sys_global_symbol_to_c_name_address \
12435 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12436 old_postinstall_cmds old_postuninstall_cmds \
12440 lt_prog_compiler_wl_CXX \
12441 lt_prog_compiler_pic_CXX \
12442 lt_prog_compiler_static_CXX \
12443 lt_prog_compiler_no_builtin_flag_CXX \
12444 export_dynamic_flag_spec_CXX \
12445 thread_safe_flag_spec_CXX \
12446 whole_archive_flag_spec_CXX \
12447 enable_shared_with_static_runtimes_CXX \
12448 old_archive_cmds_CXX \
12449 old_archive_from_new_cmds_CXX \
12450 predep_objects_CXX \
12451 postdep_objects_CXX \
12454 compiler_lib_search_path_CXX \
12456 archive_expsym_cmds_CXX \
12457 postinstall_cmds_CXX \
12458 postuninstall_cmds_CXX \
12459 old_archive_from_expsyms_cmds_CXX \
12460 allow_undefined_flag_CXX \
12461 no_undefined_flag_CXX \
12462 export_symbols_cmds_CXX \
12463 hardcode_libdir_flag_spec_CXX \
12464 hardcode_libdir_flag_spec_ld_CXX \
12465 hardcode_libdir_separator_CXX \
12466 hardcode_automatic_CXX \
12468 module_expsym_cmds_CXX \
12469 lt_cv_prog_compiler_c_o_CXX \
12470 exclude_expsyms_CXX \
12471 include_expsyms_CXX; do
12474 old_archive_cmds_CXX | \
12475 old_archive_from_new_cmds_CXX | \
12476 archive_cmds_CXX | \
12477 archive_expsym_cmds_CXX | \
12478 module_cmds_CXX | \
12479 module_expsym_cmds_CXX | \
12480 old_archive_from_expsyms_cmds_CXX | \
12481 export_symbols_cmds_CXX | \
12482 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12483 postinstall_cmds | postuninstall_cmds | \
12484 old_postinstall_cmds | old_postuninstall_cmds | \
12485 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12486 # Double-quote double-evaled strings.
12487 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12490 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12496 *'\$0 --fallback-echo"')
12497 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12503 cat <<__EOF__ >> "$cfgfile"
12504 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12506 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12508 # Shell to use when invoking shell scripts.
12511 # Whether or not to build shared libraries.
12512 build_libtool_libs=$enable_shared
12514 # Whether or not to build static libraries.
12515 build_old_libs=$enable_static
12517 # Whether or not to add -lc for building shared libraries.
12518 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12520 # Whether or not to disallow shared libs when runtime libs are static
12521 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12523 # Whether or not to optimize for fast installation.
12524 fast_install=$enable_fast_install
12527 host_alias=$host_alias
12531 # The build system.
12532 build_alias=$build_alias
12536 # An echo program that does not interpret backslashes.
12541 AR_FLAGS=$lt_AR_FLAGS
12546 # LTCC compiler flags.
12547 LTCFLAGS=$lt_LTCFLAGS
12549 # A language-specific compiler.
12550 CC=$lt_compiler_CXX
12552 # Is the compiler the GNU C compiler?
12555 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12556 gcc_ver=\`gcc -dumpversion\`
12561 # The linker used to build libraries.
12564 # Whether we need hard or soft links.
12567 # A BSD-compatible nm program.
12570 # A symbol stripping program
12573 # Used to examine libraries when file_magic_cmd begins "file"
12574 MAGIC_CMD=$MAGIC_CMD
12576 # Used on cygwin: DLL creation program.
12579 # Used on cygwin: object dumper.
12582 # Used on cygwin: assembler.
12585 # The name of the directory that contains temporary libtool files.
12588 # How to create reloadable object files.
12589 reload_flag=$lt_reload_flag
12590 reload_cmds=$lt_reload_cmds
12592 # How to pass a linker flag through the compiler.
12593 wl=$lt_lt_prog_compiler_wl_CXX
12595 # Object file suffix (normally "o").
12596 objext="$ac_objext"
12598 # Old archive suffix (normally "a").
12601 # Shared library suffix (normally ".so").
12602 shrext_cmds='$shrext_cmds'
12604 # Executable file suffix (normally "").
12607 # Additional compiler flags for building library objects.
12608 pic_flag=$lt_lt_prog_compiler_pic_CXX
12611 # What is the maximum length of a command?
12612 max_cmd_len=$lt_cv_sys_max_cmd_len
12614 # Does compiler simultaneously support -c and -o options?
12615 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12617 # Must we lock files when doing compilation?
12618 need_locks=$lt_need_locks
12620 # Do we need the lib prefix for modules?
12621 need_lib_prefix=$need_lib_prefix
12623 # Do we need a version for libraries?
12624 need_version=$need_version
12626 # Whether dlopen is supported.
12627 dlopen_support=$enable_dlopen
12629 # Whether dlopen of programs is supported.
12630 dlopen_self=$enable_dlopen_self
12632 # Whether dlopen of statically linked programs is supported.
12633 dlopen_self_static=$enable_dlopen_self_static
12635 # Compiler flag to prevent dynamic linking.
12636 link_static_flag=$lt_lt_prog_compiler_static_CXX
12638 # Compiler flag to turn off builtin functions.
12639 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12641 # Compiler flag to allow reflexive dlopens.
12642 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12644 # Compiler flag to generate shared objects directly from archives.
12645 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12647 # Compiler flag to generate thread-safe objects.
12648 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12650 # Library versioning type.
12651 version_type=$version_type
12653 # Format of library name prefix.
12654 libname_spec=$lt_libname_spec
12656 # List of archive names. First name is the real one, the rest are links.
12657 # The last name is the one that the linker finds with -lNAME.
12658 library_names_spec=$lt_library_names_spec
12660 # The coded name of the library, if different from the real name.
12661 soname_spec=$lt_soname_spec
12663 # Commands used to build and install an old-style archive.
12665 old_archive_cmds=$lt_old_archive_cmds_CXX
12666 old_postinstall_cmds=$lt_old_postinstall_cmds
12667 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12669 # Create an old-style archive from a shared archive.
12670 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12672 # Create a temporary old-style archive to link instead of a shared archive.
12673 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12675 # Commands used to build and install a shared archive.
12676 archive_cmds=$lt_archive_cmds_CXX
12677 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12678 postinstall_cmds=$lt_postinstall_cmds
12679 postuninstall_cmds=$lt_postuninstall_cmds
12681 # Commands used to build a loadable module (assumed same as above if empty)
12682 module_cmds=$lt_module_cmds_CXX
12683 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12685 # Commands to strip libraries.
12686 old_striplib=$lt_old_striplib
12687 striplib=$lt_striplib
12689 # Dependencies to place before the objects being linked to create a
12691 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12693 # Dependencies to place after the objects being linked to create a
12695 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12697 # Dependencies to place before the objects being linked to create a
12699 predeps=$lt_predeps_CXX
12701 # Dependencies to place after the objects being linked to create a
12703 postdeps=$lt_postdeps_CXX
12705 # The library search path used internally by the compiler when linking
12706 # a shared library.
12707 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12709 # Method to check whether dependent libraries are shared objects.
12710 deplibs_check_method=$lt_deplibs_check_method
12712 # Command to use when deplibs_check_method == file_magic.
12713 file_magic_cmd=$lt_file_magic_cmd
12715 # Flag that allows shared libraries with undefined symbols to be built.
12716 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12718 # Flag that forces no undefined symbols.
12719 no_undefined_flag=$lt_no_undefined_flag_CXX
12721 # Commands used to finish a libtool library installation in a directory.
12722 finish_cmds=$lt_finish_cmds
12724 # Same as above, but a single script fragment to be evaled but not shown.
12725 finish_eval=$lt_finish_eval
12727 # Take the output of nm and produce a listing of raw symbols and C names.
12728 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12730 # Transform the output of nm in a proper C declaration
12731 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12733 # Transform the output of nm in a C name address pair
12734 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12736 # This is the shared library runtime path variable.
12737 runpath_var=$runpath_var
12739 # This is the shared library path variable.
12740 shlibpath_var=$shlibpath_var
12742 # Is shlibpath searched before the hard-coded library search path?
12743 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12745 # How to hardcode a shared library path into an executable.
12746 hardcode_action=$hardcode_action_CXX
12748 # Whether we should hardcode library paths into libraries.
12749 hardcode_into_libs=$hardcode_into_libs
12751 # Flag to hardcode \$libdir into a binary during linking.
12752 # This must work even if \$libdir does not exist.
12753 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12755 # If ld is used when linking, flag to hardcode \$libdir into
12756 # a binary during linking. This must work even if \$libdir does
12758 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12760 # Whether we need a single -rpath flag with a separated argument.
12761 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12763 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12764 # resulting binary.
12765 hardcode_direct=$hardcode_direct_CXX
12767 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12768 # resulting binary.
12769 hardcode_minus_L=$hardcode_minus_L_CXX
12771 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12772 # the resulting binary.
12773 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12775 # Set to yes if building a shared library automatically hardcodes DIR into the library
12776 # and all subsequent libraries and executables linked against it.
12777 hardcode_automatic=$hardcode_automatic_CXX
12779 # Variables whose values should be saved in libtool wrapper scripts and
12780 # restored at relink time.
12781 variables_saved_for_relink="$variables_saved_for_relink"
12783 # Whether libtool must link a program against all its dependency libraries.
12784 link_all_deplibs=$link_all_deplibs_CXX
12786 # Compile-time system search path for libraries
12787 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12789 # Run-time system search path for libraries
12790 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12792 # Fix the shell variable \$srcfile for the compiler.
12793 fix_srcfile_path="$fix_srcfile_path_CXX"
12795 # Set to yes if exported symbols are required.
12796 always_export_symbols=$always_export_symbols_CXX
12798 # The commands to list exported symbols.
12799 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12801 # The commands to extract the exported symbol list from a shared archive.
12802 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12804 # Symbols that should not be listed in the preloaded symbols.
12805 exclude_expsyms=$lt_exclude_expsyms_CXX
12807 # Symbols that must always be exported.
12808 include_expsyms=$lt_include_expsyms_CXX
12810 # ### END LIBTOOL TAG CONFIG: $tagname
12816 # If there is no Makefile yet, we rely on a make rule to execute
12817 # `config.status --recheck' to rerun these tests and create the
12818 # libtool script then.
12819 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12820 if test -f "$ltmain_in"; then
12821 test -f Makefile && make "$ltmain"
12827 ac_cpp='$CPP $CPPFLAGS'
12828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12836 with_gnu_ldcxx=$with_gnu_ld
12837 with_gnu_ld=$lt_save_with_gnu_ld
12838 lt_cv_path_LDCXX=$lt_cv_path_LD
12839 lt_cv_path_LD=$lt_save_path_LD
12840 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12841 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12849 if test -n "$F77" && test "X$F77" != "Xno"; then
12852 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12853 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12854 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12857 archive_cmds_need_lc_F77=no
12858 allow_undefined_flag_F77=
12859 always_export_symbols_F77=no
12860 archive_expsym_cmds_F77=
12861 export_dynamic_flag_spec_F77=
12862 hardcode_direct_F77=no
12863 hardcode_libdir_flag_spec_F77=
12864 hardcode_libdir_flag_spec_ld_F77=
12865 hardcode_libdir_separator_F77=
12866 hardcode_minus_L_F77=no
12867 hardcode_automatic_F77=no
12869 module_expsym_cmds_F77=
12870 link_all_deplibs_F77=unknown
12871 old_archive_cmds_F77=$old_archive_cmds
12872 no_undefined_flag_F77=
12873 whole_archive_flag_spec_F77=
12874 enable_shared_with_static_runtimes_F77=no
12876 # Source file extension for f77 test sources.
12879 # Object file extension for compiled f77 test sources.
12883 # Code to be used in simple compile tests
12884 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12886 # Code to be used in simple link tests
12887 lt_simple_link_test_code=" program t\n end\n"
12889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12891 # If no C compiler was specified, use CC.
12894 # If no C compiler flags were specified, use CFLAGS.
12895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12897 # Allow CC to be a program name with arguments.
12901 # save warnings/boilerplate of simple test code
12902 ac_outfile=conftest.$ac_objext
12903 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12905 _lt_compiler_boilerplate=`cat conftest.err`
12908 ac_outfile=conftest.$ac_objext
12909 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12911 _lt_linker_boilerplate=`cat conftest.err`
12915 # Allow CC to be a program name with arguments.
12920 for cc_temp in $compiler""; do
12922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12931 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12932 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12933 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12934 echo "${ECHO_T}$can_build_shared" >&6
12936 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12937 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12938 test "$can_build_shared" = "no" && enable_shared=no
12940 # On AIX, shared libraries and static libraries use the same namespace, and
12941 # are all built from PIC.
12944 test "$enable_shared" = yes && enable_static=no
12945 if test -n "$RANLIB"; then
12946 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12947 postinstall_cmds='$RANLIB $lib'
12951 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12952 test "$enable_shared" = yes && enable_static=no
12956 echo "$as_me:$LINENO: result: $enable_shared" >&5
12957 echo "${ECHO_T}$enable_shared" >&6
12959 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12960 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12961 # Make sure either enable_shared or enable_static is yes.
12962 test "$enable_shared" = yes || enable_static=yes
12963 echo "$as_me:$LINENO: result: $enable_static" >&5
12964 echo "${ECHO_T}$enable_static" >&6
12969 lt_prog_compiler_wl_F77=
12970 lt_prog_compiler_pic_F77=
12971 lt_prog_compiler_static_F77=
12973 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12974 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12976 if test "$GCC" = yes; then
12977 lt_prog_compiler_wl_F77='-Wl,'
12978 lt_prog_compiler_static_F77='-static'
12982 # All AIX code is PIC.
12983 if test "$host_cpu" = ia64; then
12984 # AIX 5 now supports IA64 processor
12985 lt_prog_compiler_static_F77='-Bstatic'
12990 # FIXME: we need at least 68020 code to build shared libraries, but
12991 # adding the `-m68020' flag to GCC prevents building anything better,
12993 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12996 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12997 # PIC is the default for these OSes.
13000 mingw* | pw32* | os2*)
13001 # This hack is so that the source file can tell whether it is being
13002 # built for inclusion in a dll (and should export symbols for example).
13003 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13006 darwin* | rhapsody*)
13007 # PIC is the default on this platform
13008 # Common symbols not allowed in MH_DYLIB files
13009 lt_prog_compiler_pic_F77='-fno-common'
13013 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13014 # Instead, we relocate shared libraries at runtime.
13018 # Just because we use GCC doesn't mean we suddenly get shared libraries
13019 # on systems that don't support them.
13020 lt_prog_compiler_can_build_shared_F77=no
13025 if test -d /usr/nec; then
13026 lt_prog_compiler_pic_F77=-Kconform_pic
13031 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13032 # not for PA HP-UX.
13038 lt_prog_compiler_pic_F77='-fPIC'
13044 lt_prog_compiler_pic_F77='-fPIC'
13048 # PORTME Check for flag to pass linker flags through the system compiler.
13051 lt_prog_compiler_wl_F77='-Wl,'
13052 if test "$host_cpu" = ia64; then
13053 # AIX 5 now supports IA64 processor
13054 lt_prog_compiler_static_F77='-Bstatic'
13056 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13060 # PIC is the default on this platform
13061 # Common symbols not allowed in MH_DYLIB files
13062 case $cc_basename in
13064 lt_prog_compiler_pic_F77='-qnocommon'
13065 lt_prog_compiler_wl_F77='-Wl,'
13070 mingw* | pw32* | os2*)
13071 # This hack is so that the source file can tell whether it is being
13072 # built for inclusion in a dll (and should export symbols for example).
13073 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13076 hpux9* | hpux10* | hpux11*)
13077 lt_prog_compiler_wl_F77='-Wl,'
13078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13079 # not for PA HP-UX.
13085 lt_prog_compiler_pic_F77='+Z'
13088 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13089 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13092 irix5* | irix6* | nonstopux*)
13093 lt_prog_compiler_wl_F77='-Wl,'
13094 # PIC (with -KPIC) is the default.
13095 lt_prog_compiler_static_F77='-non_shared'
13099 lt_prog_compiler_pic_F77='-KPIC'
13100 lt_prog_compiler_static_F77='-Bstatic'
13104 case $cc_basename in
13106 lt_prog_compiler_wl_F77='-Wl,'
13107 lt_prog_compiler_pic_F77='-KPIC'
13108 lt_prog_compiler_static_F77='-static'
13110 pgcc* | pgf77* | pgf90* | pgf95*)
13111 # Portland Group compilers (*not* the Pentium gcc compiler,
13112 # which looks to be a dead project)
13113 lt_prog_compiler_wl_F77='-Wl,'
13114 lt_prog_compiler_pic_F77='-fpic'
13115 lt_prog_compiler_static_F77='-Bstatic'
13118 lt_prog_compiler_wl_F77='-Wl,'
13119 # All Alpha code is PIC.
13120 lt_prog_compiler_static_F77='-non_shared'
13125 osf3* | osf4* | osf5*)
13126 lt_prog_compiler_wl_F77='-Wl,'
13127 # All OSF/1 code is PIC.
13128 lt_prog_compiler_static_F77='-non_shared'
13132 lt_prog_compiler_pic_F77='-KPIC'
13133 lt_prog_compiler_static_F77='-Bstatic'
13134 case $cc_basename in
13135 f77* | f90* | f95*)
13136 lt_prog_compiler_wl_F77='-Qoption ld ';;
13138 lt_prog_compiler_wl_F77='-Wl,';;
13143 lt_prog_compiler_wl_F77='-Qoption ld '
13144 lt_prog_compiler_pic_F77='-PIC'
13145 lt_prog_compiler_static_F77='-Bstatic'
13148 sysv4 | sysv4.2uw2* | sysv4.3*)
13149 lt_prog_compiler_wl_F77='-Wl,'
13150 lt_prog_compiler_pic_F77='-KPIC'
13151 lt_prog_compiler_static_F77='-Bstatic'
13155 if test -d /usr/nec ;then
13156 lt_prog_compiler_pic_F77='-Kconform_pic'
13157 lt_prog_compiler_static_F77='-Bstatic'
13161 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13162 lt_prog_compiler_wl_F77='-Wl,'
13163 lt_prog_compiler_pic_F77='-KPIC'
13164 lt_prog_compiler_static_F77='-Bstatic'
13168 lt_prog_compiler_wl_F77='-Wl,'
13169 lt_prog_compiler_can_build_shared_F77=no
13173 lt_prog_compiler_pic_F77='-pic'
13174 lt_prog_compiler_static_F77='-Bstatic'
13178 lt_prog_compiler_can_build_shared_F77=no
13183 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13184 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13187 # Check to make sure the PIC flag actually works.
13189 if test -n "$lt_prog_compiler_pic_F77"; then
13191 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13192 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13193 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13196 lt_prog_compiler_pic_works_F77=no
13197 ac_outfile=conftest.$ac_objext
13198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13199 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13200 # Insert the option either (1) after the last *FLAGS variable, or
13201 # (2) before a word containing "conftest.", or (3) at the end.
13202 # Note that $ac_compile itself does not contain backslashes and begins
13203 # with a dollar sign (not a hyphen), so the echo should work correctly.
13204 # The option is referenced via a variable to avoid confusing sed.
13205 lt_compile=`echo "$ac_compile" | $SED \
13206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13208 -e 's:$: $lt_compiler_flag:'`
13209 (eval echo "\"\$as_me:13209: $lt_compile\"" >&5)
13210 (eval "$lt_compile" 2>conftest.err)
13212 cat conftest.err >&5
13213 echo "$as_me:13213: \$? = $ac_status" >&5
13214 if (exit $ac_status) && test -s "$ac_outfile"; then
13215 # The compiler can only warn and ignore the option if not recognized
13216 # So say no if there are warnings other than the usual output.
13217 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13220 lt_prog_compiler_pic_works_F77=yes
13226 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13227 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13229 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13230 case $lt_prog_compiler_pic_F77 in
13232 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13235 lt_prog_compiler_pic_F77=
13236 lt_prog_compiler_can_build_shared_F77=no
13241 # For platforms which do not support PIC, -DPIC is meaningless:
13243 lt_prog_compiler_pic_F77=
13246 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13251 # Check to make sure the static flag actually works.
13253 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13254 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13255 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13256 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 lt_prog_compiler_static_works_F77=no
13260 save_LDFLAGS="$LDFLAGS"
13261 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13262 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13264 # The linker can only warn and ignore the option if not recognized
13265 # So say no if there are warnings
13266 if test -s conftest.err; then
13267 # Append any errors to the config.log.
13268 cat conftest.err 1>&5
13269 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13271 if diff conftest.exp conftest.er2 >/dev/null; then
13272 lt_prog_compiler_static_works_F77=yes
13275 lt_prog_compiler_static_works_F77=yes
13279 LDFLAGS="$save_LDFLAGS"
13282 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13283 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13285 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13288 lt_prog_compiler_static_F77=
13292 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13293 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13294 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 lt_cv_prog_compiler_c_o_F77=no
13298 $rm -r conftest 2>/dev/null
13302 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13304 lt_compiler_flag="-o out/conftest2.$ac_objext"
13305 # Insert the option either (1) after the last *FLAGS variable, or
13306 # (2) before a word containing "conftest.", or (3) at the end.
13307 # Note that $ac_compile itself does not contain backslashes and begins
13308 # with a dollar sign (not a hyphen), so the echo should work correctly.
13309 lt_compile=`echo "$ac_compile" | $SED \
13310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13312 -e 's:$: $lt_compiler_flag:'`
13313 (eval echo "\"\$as_me:13313: $lt_compile\"" >&5)
13314 (eval "$lt_compile" 2>out/conftest.err)
13316 cat out/conftest.err >&5
13317 echo "$as_me:13317: \$? = $ac_status" >&5
13318 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13320 # The compiler can only warn and ignore the option if not recognized
13321 # So say no if there are warnings
13322 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13325 lt_cv_prog_compiler_c_o_F77=yes
13330 # SGI C++ compiler will create directory out/ii_files/ for
13331 # template instantiation
13332 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13333 $rm out/* && rmdir out
13339 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13340 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13343 hard_links="nottested"
13344 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13345 # do not overwrite the value of need_locks provided by the user
13346 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13347 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13352 ln conftest.a conftest.b 2>&5 || hard_links=no
13353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13354 echo "$as_me:$LINENO: result: $hard_links" >&5
13355 echo "${ECHO_T}$hard_links" >&6
13356 if test "$hard_links" = no; then
13357 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13358 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13365 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13366 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13369 allow_undefined_flag_F77=
13370 enable_shared_with_static_runtimes_F77=no
13372 archive_expsym_cmds_F77=
13373 old_archive_From_new_cmds_F77=
13374 old_archive_from_expsyms_cmds_F77=
13375 export_dynamic_flag_spec_F77=
13376 whole_archive_flag_spec_F77=
13377 thread_safe_flag_spec_F77=
13378 hardcode_libdir_flag_spec_F77=
13379 hardcode_libdir_flag_spec_ld_F77=
13380 hardcode_libdir_separator_F77=
13381 hardcode_direct_F77=no
13382 hardcode_minus_L_F77=no
13383 hardcode_shlibpath_var_F77=unsupported
13384 link_all_deplibs_F77=unknown
13385 hardcode_automatic_F77=no
13387 module_expsym_cmds_F77=
13388 always_export_symbols_F77=no
13389 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13390 # include_expsyms should be a list of space-separated symbols to be *always*
13391 # included in the symbol list
13392 include_expsyms_F77=
13393 # exclude_expsyms can be an extended regexp of symbols to exclude
13394 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13395 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13396 # as well as any symbol that contains `d'.
13397 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13398 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13399 # platforms (ab)use it in PIC code, but their linkers get confused if
13400 # the symbol is explicitly referenced. Since portable code cannot
13401 # rely on this symbol name, it's probably fine to never include it in
13402 # preloaded symbol tables.
13403 extract_expsyms_cmds=
13404 # Just being paranoid about ensuring that cc_basename is set.
13405 for cc_temp in $compiler""; do
13407 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13408 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13413 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13416 cygwin* | mingw* | pw32*)
13417 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13418 # When not using gcc, we currently assume that we are using
13419 # Microsoft Visual C++.
13420 if test "$GCC" != yes; then
13425 # we just hope/assume this is gcc and not c89 (= MSVC++)
13434 if test "$with_gnu_ld" = yes; then
13435 # If archive_cmds runs LD, not CC, wlarc should be empty
13438 # Set some defaults for GNU ld with shared library support. These
13439 # are reset later if shared libraries are not supported. Putting them
13440 # here allows them to be overridden if necessary.
13441 runpath_var=LD_RUN_PATH
13442 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13443 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13444 # ancient GNU ld didn't support --whole-archive et. al.
13445 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13446 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13448 whole_archive_flag_spec_F77=
13450 supports_anon_versioning=no
13451 case `$LD -v 2>/dev/null` in
13452 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13453 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13454 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13455 *\ 2.11.*) ;; # other 2.11 versions
13456 *) supports_anon_versioning=yes ;;
13459 # See if GNU ld supports shared libraries.
13461 aix3* | aix4* | aix5*)
13462 # On AIX/PPC, the GNU linker is very broken
13463 if test "$host_cpu" != ia64; then
13467 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13468 *** to be unable to reliably create shared libraries on AIX.
13469 *** Therefore, libtool is disabling shared libraries support. If you
13470 *** really care for shared libraries, you may want to modify your PATH
13471 *** so that a non-GNU linker is found, and then restart.
13478 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)'
13479 hardcode_libdir_flag_spec_F77='-L$libdir'
13480 hardcode_minus_L_F77=yes
13482 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13483 # that the semantics of dynamic libraries on AmigaOS, at least up
13484 # to version 4, is to share data among multiple programs linked
13485 # with the same dynamic library. Since this doesn't match the
13486 # behavior of shared libraries on other platforms, we can't use
13492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13493 allow_undefined_flag_F77=unsupported
13494 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13495 # support --undefined. This deserves some investigation. FIXME
13496 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13502 cygwin* | mingw* | pw32*)
13503 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13504 # as there is no search path for DLLs.
13505 hardcode_libdir_flag_spec_F77='-L$libdir'
13506 allow_undefined_flag_F77=unsupported
13507 always_export_symbols_F77=no
13508 enable_shared_with_static_runtimes_F77=yes
13509 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13511 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13512 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13513 # If the export-symbols file already is a .def file (1st line
13514 # is EXPORTS), use it as is; otherwise, prepend...
13515 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13516 cp $export_symbols $output_objdir/$soname.def;
13518 echo EXPORTS > $output_objdir/$soname.def;
13519 cat $export_symbols >> $output_objdir/$soname.def;
13521 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13528 hardcode_direct_F77=no
13529 hardcode_shlibpath_var_F77=no
13530 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13531 export_dynamic_flag_spec_F77='${wl}-E'
13532 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13533 # Instead, shared libraries are loaded at an image base (0x10000000 by
13534 # default) and relocated if they conflict, which is a slow very memory
13535 # consuming and fragmenting process. To avoid this, we pick a random,
13536 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13537 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13538 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13539 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13545 case $cc_basename,$host_cpu in
13546 pgcc*) # Portland Group C compiler
13547 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13548 tmp_addflag=' $pic_flag'
13550 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13551 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13552 tmp_addflag=' $pic_flag -Mnomain' ;;
13553 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13554 tmp_addflag=' -i_dynamic' ;;
13555 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13556 tmp_addflag=' -i_dynamic -nofor_main' ;;
13557 ifc* | ifort*) # Intel Fortran compiler
13558 tmp_addflag=' -nofor_main' ;;
13560 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562 if test $supports_anon_versioning = yes; then
13563 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13564 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13565 $echo "local: *; };" >> $output_objdir/$libname.ver~
13566 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13575 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13578 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13579 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13584 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13588 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13589 *** create shared libraries on Solaris systems. Therefore, libtool
13590 *** is disabling shared libraries support. We urge you to upgrade GNU
13591 *** binutils to release 2.9.1 or newer. Another option is to modify
13592 *** your PATH or compiler configuration so that the native linker is
13593 *** used, and then restart.
13596 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13597 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13598 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13605 case `$LD -v 2>&1` in
13606 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13610 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13611 *** reliably create shared libraries on SCO systems. Therefore, libtool
13612 *** is disabling shared libraries support. We urge you to upgrade GNU
13613 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13614 *** your PATH or compiler configuration so that the native linker is
13615 *** used, and then restart.
13620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13621 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13622 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13623 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13632 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13634 hardcode_direct_F77=yes
13635 hardcode_shlibpath_var_F77=no
13639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13640 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13641 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13648 if test "$ld_shlibs_F77" = no; then
13650 hardcode_libdir_flag_spec_F77=
13651 export_dynamic_flag_spec_F77=
13652 whole_archive_flag_spec_F77=
13655 # PORTME fill in a description of your system's linker (not GNU ld)
13658 allow_undefined_flag_F77=unsupported
13659 always_export_symbols_F77=yes
13660 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'
13661 # Note: this linker hardcodes the directories in LIBPATH if there
13662 # are no directories specified by -L.
13663 hardcode_minus_L_F77=yes
13664 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13665 # Neither direct hardcoding nor static linking is supported with a
13667 hardcode_direct_F77=unsupported
13672 if test "$host_cpu" = ia64; then
13673 # On IA64, the linker does run time linking by default, so we don't
13674 # have to do anything special.
13675 aix_use_runtimelinking=no
13676 exp_sym_flag='-Bexport'
13679 # If we're using GNU nm, then we don't want the "-C" option.
13680 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13681 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13682 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'
13684 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'
13686 aix_use_runtimelinking=no
13688 # Test if we are trying to use run time linking or normal
13689 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13690 # need to do runtime linking.
13691 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13692 for ld_flag in $LDFLAGS; do
13693 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13694 aix_use_runtimelinking=yes
13701 exp_sym_flag='-bexport'
13702 no_entry_flag='-bnoentry'
13705 # When large executables or shared objects are built, AIX ld can
13706 # have problems creating the table of contents. If linking a library
13707 # or program results in "error TOC overflow" add -mminimal-toc to
13708 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13709 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13711 archive_cmds_F77=''
13712 hardcode_direct_F77=yes
13713 hardcode_libdir_separator_F77=':'
13714 link_all_deplibs_F77=yes
13716 if test "$GCC" = yes; then
13717 case $host_os in aix4.[012]|aix4.[012].*)
13718 # We only want to do this on AIX 4.2 and lower, the check
13719 # below for broken collect2 doesn't work under 4.3+
13720 collect2name=`${CC} -print-prog-name=collect2`
13721 if test -f "$collect2name" && \
13722 strings "$collect2name" | grep resolve_lib_name >/dev/null
13724 # We have reworked collect2
13725 hardcode_direct_F77=yes
13727 # We have old collect2
13728 hardcode_direct_F77=unsupported
13729 # It fails to find uninstalled libraries when the uninstalled
13730 # path is not listed in the libpath. Setting hardcode_minus_L
13731 # to unsupported forces relinking
13732 hardcode_minus_L_F77=yes
13733 hardcode_libdir_flag_spec_F77='-L$libdir'
13734 hardcode_libdir_separator_F77=
13738 shared_flag='-shared'
13739 if test "$aix_use_runtimelinking" = yes; then
13740 shared_flag="$shared_flag "'${wl}-G'
13744 if test "$host_cpu" = ia64; then
13745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13746 # chokes on -Wl,-G. The following line is correct:
13749 if test "$aix_use_runtimelinking" = yes; then
13750 shared_flag='${wl}-G'
13752 shared_flag='${wl}-bM:SRE'
13757 # It seems that -bexpall does not export symbols beginning with
13758 # underscore (_), so it is better to generate a list of symbols to export.
13759 always_export_symbols_F77=yes
13760 if test "$aix_use_runtimelinking" = yes; then
13761 # Warning - without using the other runtime loading flags (-brtl),
13762 # -berok will link without error, but may produce a broken library.
13763 allow_undefined_flag_F77='-berok'
13764 # Determine the default libpath from the value encoded in an empty executable.
13765 cat >conftest.$ac_ext <<_ACEOF
13770 rm -f conftest.$ac_objext conftest$ac_exeext
13771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13772 (eval $ac_link) 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -z "$ac_f77_werror_flag"
13780 || test ! -s conftest.err'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; } &&
13786 { ac_try='test -s conftest$ac_exeext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13793 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13795 # Check for a 64-bit object if we didn't find anything.
13796 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; }
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13803 rm -f conftest.err conftest.$ac_objext \
13804 conftest$ac_exeext conftest.$ac_ext
13805 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13807 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13808 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13810 if test "$host_cpu" = ia64; then
13811 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13812 allow_undefined_flag_F77="-z nodefs"
13813 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13815 # Determine the default libpath from the value encoded in an empty executable.
13816 cat >conftest.$ac_ext <<_ACEOF
13821 rm -f conftest.$ac_objext conftest$ac_exeext
13822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13823 (eval $ac_link) 2>conftest.er1
13825 grep -v '^ *+' conftest.er1 >conftest.err
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } &&
13830 { ac_try='test -z "$ac_f77_werror_flag"
13831 || test ! -s conftest.err'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest$ac_exeext'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13844 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13846 # Check for a 64-bit object if we didn't find anything.
13847 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; }
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13854 rm -f conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
13856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13858 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13859 # Warning - without using the other run time loading flags,
13860 # -berok will link without error, but may produce a broken library.
13861 no_undefined_flag_F77=' ${wl}-bernotok'
13862 allow_undefined_flag_F77=' ${wl}-berok'
13863 # Exported symbols can be pulled into shared objects from archives
13864 whole_archive_flag_spec_F77='$convenience'
13865 archive_cmds_need_lc_F77=yes
13866 # This is similar to how AIX traditionally builds its shared libraries.
13867 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13873 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)'
13874 hardcode_libdir_flag_spec_F77='-L$libdir'
13875 hardcode_minus_L_F77=yes
13876 # see comment about different semantics on the GNU ld section
13881 export_dynamic_flag_spec_F77=-rdynamic
13884 cygwin* | mingw* | pw32*)
13885 # When not using gcc, we currently assume that we are using
13886 # Microsoft Visual C++.
13887 # hardcode_libdir_flag_spec is actually meaningless, as there is
13888 # no search path for DLLs.
13889 hardcode_libdir_flag_spec_F77=' '
13890 allow_undefined_flag_F77=unsupported
13891 # Tell ltmain to make .lib files, not .a files.
13893 # Tell ltmain to make .dll files, not .so files.
13895 # FIXME: Setting linknames here is a bad hack.
13896 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13897 # The linker will automatically build a .lib file if we build a DLL.
13898 old_archive_From_new_cmds_F77='true'
13899 # FIXME: Should let the user specify the lib program.
13900 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13901 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13902 enable_shared_with_static_runtimes_F77=yes
13905 darwin* | rhapsody*)
13907 rhapsody* | darwin1.[012])
13908 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13911 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13912 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13914 case ${MACOSX_DEPLOYMENT_TARGET} in
13916 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13919 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13925 archive_cmds_need_lc_F77=no
13926 hardcode_direct_F77=no
13927 hardcode_automatic_F77=yes
13928 hardcode_shlibpath_var_F77=unsupported
13929 whole_archive_flag_spec_F77=''
13930 link_all_deplibs_F77=yes
13931 if test "$GCC" = yes ; then
13932 output_verbose_link_cmd='echo'
13933 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13934 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13935 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13936 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13937 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}'
13939 case $cc_basename in
13941 output_verbose_link_cmd='echo'
13942 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13943 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13944 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13945 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13946 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}'
13956 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13957 hardcode_libdir_flag_spec_F77='-L$libdir'
13958 hardcode_shlibpath_var_F77=no
13965 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13966 # support. Future versions do this automatically, but an explicit c++rt0.o
13967 # does not break anything, and helps significantly (at the cost of a little
13970 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13971 hardcode_libdir_flag_spec_F77='-R$libdir'
13972 hardcode_direct_F77=yes
13973 hardcode_shlibpath_var_F77=no
13976 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13978 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13979 hardcode_direct_F77=yes
13980 hardcode_minus_L_F77=yes
13981 hardcode_shlibpath_var_F77=no
13984 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13985 freebsd* | kfreebsd*-gnu | dragonfly*)
13986 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13987 hardcode_libdir_flag_spec_F77='-R$libdir'
13988 hardcode_direct_F77=yes
13989 hardcode_shlibpath_var_F77=no
13993 if test "$GCC" = yes; then
13994 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'
13996 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'
13998 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13999 hardcode_libdir_separator_F77=:
14000 hardcode_direct_F77=yes
14002 # hardcode_minus_L: Not really in the search PATH,
14003 # but as the default location of the library.
14004 hardcode_minus_L_F77=yes
14005 export_dynamic_flag_spec_F77='${wl}-E'
14009 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14010 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14012 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14014 if test "$with_gnu_ld" = no; then
14015 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14016 hardcode_libdir_separator_F77=:
14018 hardcode_direct_F77=yes
14019 export_dynamic_flag_spec_F77='${wl}-E'
14021 # hardcode_minus_L: Not really in the search PATH,
14022 # but as the default location of the library.
14023 hardcode_minus_L_F77=yes
14028 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14031 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14034 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14037 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14043 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14046 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14049 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14053 if test "$with_gnu_ld" = no; then
14054 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14055 hardcode_libdir_separator_F77=:
14059 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14060 hardcode_direct_F77=no
14061 hardcode_shlibpath_var_F77=no
14064 hardcode_direct_F77=yes
14065 export_dynamic_flag_spec_F77='${wl}-E'
14067 # hardcode_minus_L: Not really in the search PATH,
14068 # but as the default location of the library.
14069 hardcode_minus_L_F77=yes
14075 irix5* | irix6* | nonstopux*)
14076 if test "$GCC" = yes; then
14077 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'
14079 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'
14080 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14082 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14083 hardcode_libdir_separator_F77=:
14084 link_all_deplibs_F77=yes
14088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14089 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14091 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14093 hardcode_libdir_flag_spec_F77='-R$libdir'
14094 hardcode_direct_F77=yes
14095 hardcode_shlibpath_var_F77=no
14099 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14100 hardcode_direct_F77=yes
14101 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14102 hardcode_libdir_separator_F77=:
14103 hardcode_shlibpath_var_F77=no
14107 hardcode_direct_F77=yes
14108 hardcode_shlibpath_var_F77=no
14109 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14110 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14111 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14112 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14113 export_dynamic_flag_spec_F77='${wl}-E'
14116 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14117 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14118 hardcode_libdir_flag_spec_F77='-R$libdir'
14121 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14122 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14129 hardcode_libdir_flag_spec_F77='-L$libdir'
14130 hardcode_minus_L_F77=yes
14131 allow_undefined_flag_F77=unsupported
14132 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'
14133 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14137 if test "$GCC" = yes; then
14138 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14139 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'
14141 allow_undefined_flag_F77=' -expect_unresolved \*'
14142 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'
14144 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14145 hardcode_libdir_separator_F77=:
14148 osf4* | osf5*) # as osf3* with the addition of -msym flag
14149 if test "$GCC" = yes; then
14150 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14151 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'
14152 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14154 allow_undefined_flag_F77=' -expect_unresolved \*'
14155 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'
14156 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~
14157 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14159 # Both c and cxx compiler support -rpath directly
14160 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14162 hardcode_libdir_separator_F77=:
14166 no_undefined_flag_F77=' -z text'
14167 if test "$GCC" = yes; then
14169 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14170 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14171 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14174 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14175 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14176 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14178 hardcode_libdir_flag_spec_F77='-R$libdir'
14179 hardcode_shlibpath_var_F77=no
14181 solaris2.[0-5] | solaris2.[0-5].*) ;;
14183 # The compiler driver will combine linker options so we
14184 # cannot just pass the convience library names through
14185 # without $wl, iff we do not link with $LD.
14186 # Luckily, gcc supports the same syntax we need for Sun Studio.
14187 # Supported since Solaris 2.6 (maybe 2.5.1?)
14190 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14192 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14195 link_all_deplibs_F77=yes
14199 if test "x$host_vendor" = xsequent; then
14200 # Use $CC to link under sequent, because it throws in some extra .o
14201 # files that make .init and .fini sections work.
14202 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14204 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14206 hardcode_libdir_flag_spec_F77='-L$libdir'
14207 hardcode_direct_F77=yes
14208 hardcode_minus_L_F77=yes
14209 hardcode_shlibpath_var_F77=no
14213 case $host_vendor in
14215 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14216 hardcode_direct_F77=yes # is this really true???
14219 ## LD is ld it makes a PLAMLIB
14220 ## CC just makes a GrossModule.
14221 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14222 reload_cmds_F77='$CC -r -o $output$reload_objs'
14223 hardcode_direct_F77=no
14226 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14230 runpath_var='LD_RUN_PATH'
14231 hardcode_shlibpath_var_F77=no
14235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14236 hardcode_shlibpath_var_F77=no
14237 export_dynamic_flag_spec_F77='-Bexport'
14241 if test -d /usr/nec; then
14242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14243 hardcode_shlibpath_var_F77=no
14244 runpath_var=LD_RUN_PATH
14245 hardcode_runpath_var=yes
14250 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14251 no_undefined_flag_F77='${wl}-z,text'
14252 archive_cmds_need_lc_F77=no
14253 hardcode_shlibpath_var_F77=no
14254 runpath_var='LD_RUN_PATH'
14256 if test "$GCC" = yes; then
14257 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14258 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14260 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14261 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14265 sysv5* | sco3.2v5* | sco5v6*)
14266 # Note: We can NOT use -z defs as we might desire, because we do not
14267 # link with -lc, and that would cause any symbols used from libc to
14268 # always be unresolved, which means just about no library would
14269 # ever link correctly. If we're not using GNU ld we use -z text
14270 # though, which does catch some bad symbols but isn't as heavy-handed
14272 no_undefined_flag_F77='${wl}-z,text'
14273 allow_undefined_flag_F77='${wl}-z,nodefs'
14274 archive_cmds_need_lc_F77=no
14275 hardcode_shlibpath_var_F77=no
14276 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14277 hardcode_libdir_separator_F77=':'
14278 link_all_deplibs_F77=yes
14279 export_dynamic_flag_spec_F77='${wl}-Bexport'
14280 runpath_var='LD_RUN_PATH'
14282 if test "$GCC" = yes; then
14283 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14284 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14286 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14287 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14292 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14293 hardcode_libdir_flag_spec_F77='-L$libdir'
14294 hardcode_shlibpath_var_F77=no
14303 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14304 echo "${ECHO_T}$ld_shlibs_F77" >&6
14305 test "$ld_shlibs_F77" = no && can_build_shared=no
14308 # Do we need to explicitly link libc?
14310 case "x$archive_cmds_need_lc_F77" in
14312 # Assume -lc should be added
14313 archive_cmds_need_lc_F77=yes
14315 if test "$enable_shared" = yes && test "$GCC" = yes; then
14316 case $archive_cmds_F77 in
14318 # FIXME: we may have to deal with multi-command sequences.
14321 # Test whether the compiler implicitly links with -lc since on some
14322 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14323 # to ld, don't add -lc before -lgcc.
14324 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14325 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330 (eval $ac_compile) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } 2>conftest.err; then
14336 libobjs=conftest.$ac_objext
14338 wl=$lt_prog_compiler_wl_F77
14339 pic_flag=$lt_prog_compiler_pic_F77
14345 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14346 allow_undefined_flag_F77=
14347 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14348 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }
14353 archive_cmds_need_lc_F77=no
14355 archive_cmds_need_lc_F77=yes
14357 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14359 cat conftest.err 1>&5
14362 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14363 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14370 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14371 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14372 library_names_spec=
14373 libname_spec='lib$name'
14377 postuninstall_cmds=
14381 shlibpath_overrides_runpath=unknown
14383 dynamic_linker="$host_os ld.so"
14384 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14385 if test "$GCC" = yes; then
14386 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14387 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14388 # if the path contains ";" then we assume it to be the separator
14389 # otherwise default to the standard path separator (i.e. ":") - it is
14390 # assumed that no part of a normal pathname contains ";" but that should
14391 # okay in the real world where ";" in dirpaths is itself problematic.
14392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14397 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14399 need_lib_prefix=unknown
14400 hardcode_into_libs=no
14402 # when you set need_version to no, make sure it does not cause -set_version
14403 # flags to be left without arguments
14404 need_version=unknown
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14410 shlibpath_var=LIBPATH
14412 # AIX 3 has no versioning support, so we append a major version to the name.
14413 soname_spec='${libname}${release}${shared_ext}$major'
14420 hardcode_into_libs=yes
14421 if test "$host_cpu" = ia64; then
14422 # AIX 5 supports IA64
14423 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14424 shlibpath_var=LD_LIBRARY_PATH
14426 # With GCC up to 2.95.x, collect2 would create an import file
14427 # for dependence libraries. The import file would start with
14428 # the line `#! .'. This would cause the generated library to
14429 # depend on `.', always an invalid library. This was fixed in
14430 # development snapshots of GCC prior to 3.0.
14432 aix4 | aix4.[01] | aix4.[01].*)
14433 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14435 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14438 can_build_shared=no
14442 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14443 # soname into executable. Probably we can add versioning support to
14444 # collect2, so additional links can be useful in future.
14445 if test "$aix_use_runtimelinking" = yes; then
14446 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14447 # instead of lib<name>.a to let people know that these are not
14448 # typical AIX shared libraries.
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 # We preserve .a as extension for shared libraries through AIX4.2
14452 # and later when we are not doing run time linking.
14453 library_names_spec='${libname}${release}.a $libname.a'
14454 soname_spec='${libname}${release}${shared_ext}$major'
14456 shlibpath_var=LIBPATH
14461 library_names_spec='$libname.ixlibrary $libname.a'
14462 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14463 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'
14467 library_names_spec='${libname}${shared_ext}'
14468 dynamic_linker="$host_os ld.so"
14469 shlibpath_var=LIBRARY_PATH
14475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476 soname_spec='${libname}${release}${shared_ext}$major'
14477 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14478 shlibpath_var=LD_LIBRARY_PATH
14479 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14480 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14481 # the default ld.so.conf also contains /usr/contrib/lib and
14482 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14483 # libtool to hard-code these into programs
14486 cygwin* | mingw* | pw32*)
14487 version_type=windows
14492 case $GCC,$host_os in
14493 yes,cygwin* | yes,mingw* | yes,pw32*)
14494 library_names_spec='$libname.dll.a'
14495 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14496 postinstall_cmds='base_file=`basename \${file}`~
14497 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14498 dldir=$destdir/`dirname \$dlpath`~
14499 test -d \$dldir || mkdir -p \$dldir~
14500 $install_prog $dir/$dlname \$dldir/$dlname~
14501 chmod a+x \$dldir/$dlname'
14502 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14503 dlpath=$dir/\$dldll~
14505 shlibpath_overrides_runpath=yes
14509 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14510 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14511 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14514 # MinGW DLLs use traditional 'lib' prefix
14515 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14517 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14518 # It is most probably a Windows format PATH printed by
14519 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14520 # path with ; separators, and with drive letters. We can handle the
14521 # drive letters (cygwin fileutils understands them), so leave them,
14522 # especially as we might pass files found there to a mingw objdump,
14523 # which wouldn't understand a cygwinified path. Ahh.
14524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14530 # pw32 DLLs use 'pw' prefix rather than 'lib'
14531 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14537 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14540 dynamic_linker='Win32 ld.exe'
14541 # FIXME: first we should search . and the directory the executable is in
14545 darwin* | rhapsody*)
14546 dynamic_linker="$host_os dyld"
14547 version_type=darwin
14550 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14551 soname_spec='${libname}${release}${major}$shared_ext'
14552 shlibpath_overrides_runpath=yes
14553 shlibpath_var=DYLD_LIBRARY_PATH
14554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14555 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14556 if test "$GCC" = yes; then
14557 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"`
14559 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14569 soname_spec='${libname}${release}${shared_ext}$major'
14570 shlibpath_var=LD_LIBRARY_PATH
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14582 soname_spec='${libname}${release}${shared_ext}$major'
14583 shlibpath_var=LD_LIBRARY_PATH
14584 shlibpath_overrides_runpath=no
14585 hardcode_into_libs=yes
14586 dynamic_linker='GNU ld.so'
14589 freebsd* | dragonfly*)
14590 # DragonFly does not have aout. When/if they implement a new
14591 # versioning mechanism, adjust this.
14592 if test -x /usr/bin/objformat; then
14593 objformat=`/usr/bin/objformat`
14596 freebsd[123]*) objformat=aout ;;
14597 *) objformat=elf ;;
14600 version_type=freebsd-$objformat
14601 case $version_type in
14603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14612 shlibpath_var=LD_LIBRARY_PATH
14615 shlibpath_overrides_runpath=yes
14617 freebsd3.[01]* | freebsdelf3.[01]*)
14618 shlibpath_overrides_runpath=yes
14619 hardcode_into_libs=yes
14621 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14622 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14623 shlibpath_overrides_runpath=no
14624 hardcode_into_libs=yes
14626 freebsd*) # from 4.6 on
14627 shlibpath_overrides_runpath=yes
14628 hardcode_into_libs=yes
14637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14638 soname_spec='${libname}${release}${shared_ext}$major'
14639 shlibpath_var=LD_LIBRARY_PATH
14640 hardcode_into_libs=yes
14643 hpux9* | hpux10* | hpux11*)
14644 # Give a soname corresponding to the major version so that dld.sl refuses to
14645 # link against other versions.
14652 hardcode_into_libs=yes
14653 dynamic_linker="$host_os dld.so"
14654 shlibpath_var=LD_LIBRARY_PATH
14655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 soname_spec='${libname}${release}${shared_ext}$major'
14658 if test "X$HPUX_IA64_MODE" = X32; then
14659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14667 hardcode_into_libs=yes
14668 dynamic_linker="$host_os dld.sl"
14669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14672 soname_spec='${libname}${release}${shared_ext}$major'
14673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14678 dynamic_linker="$host_os dld.sl"
14679 shlibpath_var=SHLIB_PATH
14680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14685 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14686 postinstall_cmds='chmod 555 $lib'
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=no
14698 hardcode_into_libs=yes
14701 irix5* | irix6* | nonstopux*)
14703 nonstopux*) version_type=nonstopux ;;
14705 if test "$lt_cv_prog_gnu_ld" = yes; then
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14716 irix5* | nonstopux*)
14717 libsuff= shlibsuff=
14720 case $LD in # libtool.m4 will add one of these switches to LD
14721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14722 libsuff= shlibsuff= libmagic=32-bit;;
14723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14724 libsuff=32 shlibsuff=N32 libmagic=N32;;
14725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14727 *) libsuff= shlibsuff= libmagic=never-match;;
14731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14732 shlibpath_overrides_runpath=no
14733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14735 hardcode_into_libs=yes
14738 # No shared lib support for Linux oldld, aout, or coff.
14739 linux*oldld* | linux*aout* | linux*coff*)
14743 # This must be Linux ELF.
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath=no
14753 # This implies no fast_install, which is unacceptable.
14754 # Some rework will be needed to allow for fast_install
14755 # before this can be enabled.
14756 hardcode_into_libs=yes
14758 # find out which ABI we are using
14760 case "$host_cpu" in
14761 x86_64*|s390x*|powerpc64*)
14762 echo '#line 14762 "configure"' > conftest.$ac_ext
14763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14764 (eval $ac_compile) 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; then
14768 case `/usr/bin/file conftest.$ac_objext` in
14771 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14779 # Append ld.so.conf contents to the search path
14780 if test -f /etc/ld.so.conf; then
14781 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14782 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14785 # We used to test for /lib/ld.so.1 and disable shared libraries on
14786 # powerpc, because MkLinux only supported shared libraries with the
14787 # GNU dynamic linker. Since this was broken with cross compilers,
14788 # most powerpc-linux boxes support dynamic linking these days and
14789 # people can always --disable-shared, the test was removed, and we
14790 # assume the GNU/Linux dynamic linker is in use.
14791 dynamic_linker='GNU/Linux ld.so'
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 shlibpath_var=LD_LIBRARY_PATH
14801 shlibpath_overrides_runpath=no
14802 hardcode_into_libs=yes
14803 dynamic_linker='GNU ld.so'
14810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14813 dynamic_linker='NetBSD (a.out) ld.so'
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14816 soname_spec='${libname}${release}${shared_ext}$major'
14817 dynamic_linker='NetBSD ld.elf_so'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=yes
14821 hardcode_into_libs=yes
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14827 shlibpath_var=LD_LIBRARY_PATH
14828 shlibpath_overrides_runpath=yes
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14836 soname_spec='${libname}${release}${shared_ext}$major'
14837 shlibpath_var=LD_LIBRARY_PATH
14838 shlibpath_overrides_runpath=yes
14843 sys_lib_dlsearch_path_spec="/usr/lib"
14845 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14847 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14848 *) need_version=no ;;
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14852 shlibpath_var=LD_LIBRARY_PATH
14853 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14855 openbsd2.[89] | openbsd2.[89].*)
14856 shlibpath_overrides_runpath=no
14859 shlibpath_overrides_runpath=yes
14863 shlibpath_overrides_runpath=yes
14868 libname_spec='$name'
14871 library_names_spec='$libname${shared_ext} $libname.a'
14872 dynamic_linker='OS/2 ld.exe'
14873 shlibpath_var=LIBPATH
14876 osf3* | osf4* | osf5*)
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14884 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 shlibpath_overrides_runpath=yes
14895 hardcode_into_libs=yes
14896 # ldd complains unless libraries are executable
14897 postinstall_cmds='chmod +x $lib'
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14903 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 shlibpath_overrides_runpath=yes
14906 if test "$with_gnu_ld" = yes; then
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 shlibpath_var=LD_LIBRARY_PATH
14917 case $host_vendor in
14919 shlibpath_overrides_runpath=no
14921 export_dynamic_flag_spec='${wl}-Blargedynsym'
14922 runpath_var=LD_RUN_PATH
14930 shlibpath_overrides_runpath=no
14931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14937 if test -d /usr/nec ;then
14939 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14940 soname_spec='$libname${shared_ext}.$major'
14941 shlibpath_var=LD_LIBRARY_PATH
14945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14946 version_type=freebsd-elf
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 hardcode_into_libs=yes
14953 if test "$with_gnu_ld" = yes; then
14954 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14955 shlibpath_overrides_runpath=no
14957 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14958 shlibpath_overrides_runpath=yes
14961 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14965 sys_lib_dlsearch_path_spec='/usr/lib'
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971 soname_spec='${libname}${release}${shared_ext}$major'
14972 shlibpath_var=LD_LIBRARY_PATH
14979 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14980 echo "${ECHO_T}$dynamic_linker" >&6
14981 test "$dynamic_linker" = no && can_build_shared=no
14983 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14984 if test "$GCC" = yes; then
14985 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14988 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14989 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14990 hardcode_action_F77=
14991 if test -n "$hardcode_libdir_flag_spec_F77" || \
14992 test -n "$runpath_var_F77" || \
14993 test "X$hardcode_automatic_F77" = "Xyes" ; then
14995 # We can hardcode non-existant directories.
14996 if test "$hardcode_direct_F77" != no &&
14997 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14998 # have to relink, otherwise we might link with an installed library
14999 # when we should be linking with a yet-to-be-installed one
15000 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15001 test "$hardcode_minus_L_F77" != no; then
15002 # Linking always hardcodes the temporary library directory.
15003 hardcode_action_F77=relink
15005 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15006 hardcode_action_F77=immediate
15009 # We cannot hardcode anything, or else we can only hardcode existing
15011 hardcode_action_F77=unsupported
15013 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15014 echo "${ECHO_T}$hardcode_action_F77" >&6
15016 if test "$hardcode_action_F77" = relink; then
15017 # Fast installation is not supported
15018 enable_fast_install=no
15019 elif test "$shlibpath_overrides_runpath" = yes ||
15020 test "$enable_shared" = no; then
15021 # Fast installation is not necessary
15022 enable_fast_install=needless
15026 # The else clause should only fire when bootstrapping the
15027 # libtool distribution, otherwise you forgot to ship ltmain.sh
15028 # with your package, and you will get complaints that there are
15029 # no rules to generate ltmain.sh.
15030 if test -f "$ltmain"; then
15031 # See if we are running on zsh, and set the options which allow our commands through
15032 # without removal of \ escapes.
15033 if test -n "${ZSH_VERSION+set}" ; then
15034 setopt NO_GLOB_SUBST
15036 # Now quote all the things that may contain metacharacters while being
15037 # careful not to overquote the AC_SUBSTed values. We take copies of the
15038 # variables and quote the copies for generation of the libtool script.
15039 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15041 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15042 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15043 deplibs_check_method reload_flag reload_cmds need_locks \
15044 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15045 lt_cv_sys_global_symbol_to_c_name_address \
15046 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15047 old_postinstall_cmds old_postuninstall_cmds \
15051 lt_prog_compiler_wl_F77 \
15052 lt_prog_compiler_pic_F77 \
15053 lt_prog_compiler_static_F77 \
15054 lt_prog_compiler_no_builtin_flag_F77 \
15055 export_dynamic_flag_spec_F77 \
15056 thread_safe_flag_spec_F77 \
15057 whole_archive_flag_spec_F77 \
15058 enable_shared_with_static_runtimes_F77 \
15059 old_archive_cmds_F77 \
15060 old_archive_from_new_cmds_F77 \
15061 predep_objects_F77 \
15062 postdep_objects_F77 \
15065 compiler_lib_search_path_F77 \
15067 archive_expsym_cmds_F77 \
15068 postinstall_cmds_F77 \
15069 postuninstall_cmds_F77 \
15070 old_archive_from_expsyms_cmds_F77 \
15071 allow_undefined_flag_F77 \
15072 no_undefined_flag_F77 \
15073 export_symbols_cmds_F77 \
15074 hardcode_libdir_flag_spec_F77 \
15075 hardcode_libdir_flag_spec_ld_F77 \
15076 hardcode_libdir_separator_F77 \
15077 hardcode_automatic_F77 \
15079 module_expsym_cmds_F77 \
15080 lt_cv_prog_compiler_c_o_F77 \
15081 exclude_expsyms_F77 \
15082 include_expsyms_F77; do
15085 old_archive_cmds_F77 | \
15086 old_archive_from_new_cmds_F77 | \
15087 archive_cmds_F77 | \
15088 archive_expsym_cmds_F77 | \
15089 module_cmds_F77 | \
15090 module_expsym_cmds_F77 | \
15091 old_archive_from_expsyms_cmds_F77 | \
15092 export_symbols_cmds_F77 | \
15093 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15094 postinstall_cmds | postuninstall_cmds | \
15095 old_postinstall_cmds | old_postuninstall_cmds | \
15096 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15097 # Double-quote double-evaled strings.
15098 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15107 *'\$0 --fallback-echo"')
15108 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15114 cat <<__EOF__ >> "$cfgfile"
15115 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15117 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15119 # Shell to use when invoking shell scripts.
15122 # Whether or not to build shared libraries.
15123 build_libtool_libs=$enable_shared
15125 # Whether or not to build static libraries.
15126 build_old_libs=$enable_static
15128 # Whether or not to add -lc for building shared libraries.
15129 build_libtool_need_lc=$archive_cmds_need_lc_F77
15131 # Whether or not to disallow shared libs when runtime libs are static
15132 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15134 # Whether or not to optimize for fast installation.
15135 fast_install=$enable_fast_install
15138 host_alias=$host_alias
15142 # The build system.
15143 build_alias=$build_alias
15147 # An echo program that does not interpret backslashes.
15152 AR_FLAGS=$lt_AR_FLAGS
15157 # LTCC compiler flags.
15158 LTCFLAGS=$lt_LTCFLAGS
15160 # A language-specific compiler.
15161 CC=$lt_compiler_F77
15163 # Is the compiler the GNU C compiler?
15166 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15167 gcc_ver=\`gcc -dumpversion\`
15172 # The linker used to build libraries.
15175 # Whether we need hard or soft links.
15178 # A BSD-compatible nm program.
15181 # A symbol stripping program
15184 # Used to examine libraries when file_magic_cmd begins "file"
15185 MAGIC_CMD=$MAGIC_CMD
15187 # Used on cygwin: DLL creation program.
15190 # Used on cygwin: object dumper.
15193 # Used on cygwin: assembler.
15196 # The name of the directory that contains temporary libtool files.
15199 # How to create reloadable object files.
15200 reload_flag=$lt_reload_flag
15201 reload_cmds=$lt_reload_cmds
15203 # How to pass a linker flag through the compiler.
15204 wl=$lt_lt_prog_compiler_wl_F77
15206 # Object file suffix (normally "o").
15207 objext="$ac_objext"
15209 # Old archive suffix (normally "a").
15212 # Shared library suffix (normally ".so").
15213 shrext_cmds='$shrext_cmds'
15215 # Executable file suffix (normally "").
15218 # Additional compiler flags for building library objects.
15219 pic_flag=$lt_lt_prog_compiler_pic_F77
15222 # What is the maximum length of a command?
15223 max_cmd_len=$lt_cv_sys_max_cmd_len
15225 # Does compiler simultaneously support -c and -o options?
15226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15228 # Must we lock files when doing compilation?
15229 need_locks=$lt_need_locks
15231 # Do we need the lib prefix for modules?
15232 need_lib_prefix=$need_lib_prefix
15234 # Do we need a version for libraries?
15235 need_version=$need_version
15237 # Whether dlopen is supported.
15238 dlopen_support=$enable_dlopen
15240 # Whether dlopen of programs is supported.
15241 dlopen_self=$enable_dlopen_self
15243 # Whether dlopen of statically linked programs is supported.
15244 dlopen_self_static=$enable_dlopen_self_static
15246 # Compiler flag to prevent dynamic linking.
15247 link_static_flag=$lt_lt_prog_compiler_static_F77
15249 # Compiler flag to turn off builtin functions.
15250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15252 # Compiler flag to allow reflexive dlopens.
15253 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15255 # Compiler flag to generate shared objects directly from archives.
15256 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15258 # Compiler flag to generate thread-safe objects.
15259 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15261 # Library versioning type.
15262 version_type=$version_type
15264 # Format of library name prefix.
15265 libname_spec=$lt_libname_spec
15267 # List of archive names. First name is the real one, the rest are links.
15268 # The last name is the one that the linker finds with -lNAME.
15269 library_names_spec=$lt_library_names_spec
15271 # The coded name of the library, if different from the real name.
15272 soname_spec=$lt_soname_spec
15274 # Commands used to build and install an old-style archive.
15276 old_archive_cmds=$lt_old_archive_cmds_F77
15277 old_postinstall_cmds=$lt_old_postinstall_cmds
15278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15280 # Create an old-style archive from a shared archive.
15281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15283 # Create a temporary old-style archive to link instead of a shared archive.
15284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15286 # Commands used to build and install a shared archive.
15287 archive_cmds=$lt_archive_cmds_F77
15288 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15289 postinstall_cmds=$lt_postinstall_cmds
15290 postuninstall_cmds=$lt_postuninstall_cmds
15292 # Commands used to build a loadable module (assumed same as above if empty)
15293 module_cmds=$lt_module_cmds_F77
15294 module_expsym_cmds=$lt_module_expsym_cmds_F77
15296 # Commands to strip libraries.
15297 old_striplib=$lt_old_striplib
15298 striplib=$lt_striplib
15300 # Dependencies to place before the objects being linked to create a
15302 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15304 # Dependencies to place after the objects being linked to create a
15306 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15308 # Dependencies to place before the objects being linked to create a
15310 predeps=$lt_predeps_F77
15312 # Dependencies to place after the objects being linked to create a
15314 postdeps=$lt_postdeps_F77
15316 # The library search path used internally by the compiler when linking
15317 # a shared library.
15318 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15320 # Method to check whether dependent libraries are shared objects.
15321 deplibs_check_method=$lt_deplibs_check_method
15323 # Command to use when deplibs_check_method == file_magic.
15324 file_magic_cmd=$lt_file_magic_cmd
15326 # Flag that allows shared libraries with undefined symbols to be built.
15327 allow_undefined_flag=$lt_allow_undefined_flag_F77
15329 # Flag that forces no undefined symbols.
15330 no_undefined_flag=$lt_no_undefined_flag_F77
15332 # Commands used to finish a libtool library installation in a directory.
15333 finish_cmds=$lt_finish_cmds
15335 # Same as above, but a single script fragment to be evaled but not shown.
15336 finish_eval=$lt_finish_eval
15338 # Take the output of nm and produce a listing of raw symbols and C names.
15339 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15341 # Transform the output of nm in a proper C declaration
15342 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15344 # Transform the output of nm in a C name address pair
15345 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15347 # This is the shared library runtime path variable.
15348 runpath_var=$runpath_var
15350 # This is the shared library path variable.
15351 shlibpath_var=$shlibpath_var
15353 # Is shlibpath searched before the hard-coded library search path?
15354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15356 # How to hardcode a shared library path into an executable.
15357 hardcode_action=$hardcode_action_F77
15359 # Whether we should hardcode library paths into libraries.
15360 hardcode_into_libs=$hardcode_into_libs
15362 # Flag to hardcode \$libdir into a binary during linking.
15363 # This must work even if \$libdir does not exist.
15364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15366 # If ld is used when linking, flag to hardcode \$libdir into
15367 # a binary during linking. This must work even if \$libdir does
15369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15371 # Whether we need a single -rpath flag with a separated argument.
15372 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15374 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15375 # resulting binary.
15376 hardcode_direct=$hardcode_direct_F77
15378 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15379 # resulting binary.
15380 hardcode_minus_L=$hardcode_minus_L_F77
15382 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15383 # the resulting binary.
15384 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15386 # Set to yes if building a shared library automatically hardcodes DIR into the library
15387 # and all subsequent libraries and executables linked against it.
15388 hardcode_automatic=$hardcode_automatic_F77
15390 # Variables whose values should be saved in libtool wrapper scripts and
15391 # restored at relink time.
15392 variables_saved_for_relink="$variables_saved_for_relink"
15394 # Whether libtool must link a program against all its dependency libraries.
15395 link_all_deplibs=$link_all_deplibs_F77
15397 # Compile-time system search path for libraries
15398 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15400 # Run-time system search path for libraries
15401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15403 # Fix the shell variable \$srcfile for the compiler.
15404 fix_srcfile_path="$fix_srcfile_path_F77"
15406 # Set to yes if exported symbols are required.
15407 always_export_symbols=$always_export_symbols_F77
15409 # The commands to list exported symbols.
15410 export_symbols_cmds=$lt_export_symbols_cmds_F77
15412 # The commands to extract the exported symbol list from a shared archive.
15413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15415 # Symbols that should not be listed in the preloaded symbols.
15416 exclude_expsyms=$lt_exclude_expsyms_F77
15418 # Symbols that must always be exported.
15419 include_expsyms=$lt_include_expsyms_F77
15421 # ### END LIBTOOL TAG CONFIG: $tagname
15427 # If there is no Makefile yet, we rely on a make rule to execute
15428 # `config.status --recheck' to rerun these tests and create the
15429 # libtool script then.
15430 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15431 if test -f "$ltmain_in"; then
15432 test -f Makefile && make "$ltmain"
15438 ac_cpp='$CPP $CPPFLAGS'
15439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15451 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15455 # Source file extension for Java test sources.
15458 # Object file extension for compiled Java test sources.
15462 # Code to be used in simple compile tests
15463 lt_simple_compile_test_code="class foo {}\n"
15465 # Code to be used in simple link tests
15466 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15468 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15470 # If no C compiler was specified, use CC.
15473 # If no C compiler flags were specified, use CFLAGS.
15474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15476 # Allow CC to be a program name with arguments.
15480 # save warnings/boilerplate of simple test code
15481 ac_outfile=conftest.$ac_objext
15482 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15483 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15484 _lt_compiler_boilerplate=`cat conftest.err`
15487 ac_outfile=conftest.$ac_objext
15488 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15489 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15490 _lt_linker_boilerplate=`cat conftest.err`
15494 # Allow CC to be a program name with arguments.
15499 for cc_temp in $compiler""; do
15501 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15502 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15507 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15510 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15511 archive_cmds_need_lc_GCJ=no
15513 old_archive_cmds_GCJ=$old_archive_cmds
15516 lt_prog_compiler_no_builtin_flag_GCJ=
15518 if test "$GCC" = yes; then
15519 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15522 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15523 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15524 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 lt_cv_prog_compiler_rtti_exceptions=no
15528 ac_outfile=conftest.$ac_objext
15529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15530 lt_compiler_flag="-fno-rtti -fno-exceptions"
15531 # Insert the option either (1) after the last *FLAGS variable, or
15532 # (2) before a word containing "conftest.", or (3) at the end.
15533 # Note that $ac_compile itself does not contain backslashes and begins
15534 # with a dollar sign (not a hyphen), so the echo should work correctly.
15535 # The option is referenced via a variable to avoid confusing sed.
15536 lt_compile=`echo "$ac_compile" | $SED \
15537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15539 -e 's:$: $lt_compiler_flag:'`
15540 (eval echo "\"\$as_me:15540: $lt_compile\"" >&5)
15541 (eval "$lt_compile" 2>conftest.err)
15543 cat conftest.err >&5
15544 echo "$as_me:15544: \$? = $ac_status" >&5
15545 if (exit $ac_status) && test -s "$ac_outfile"; then
15546 # The compiler can only warn and ignore the option if not recognized
15547 # So say no if there are warnings other than the usual output.
15548 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15550 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15551 lt_cv_prog_compiler_rtti_exceptions=yes
15557 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15558 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15560 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15561 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15568 lt_prog_compiler_wl_GCJ=
15569 lt_prog_compiler_pic_GCJ=
15570 lt_prog_compiler_static_GCJ=
15572 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15573 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15575 if test "$GCC" = yes; then
15576 lt_prog_compiler_wl_GCJ='-Wl,'
15577 lt_prog_compiler_static_GCJ='-static'
15581 # All AIX code is PIC.
15582 if test "$host_cpu" = ia64; then
15583 # AIX 5 now supports IA64 processor
15584 lt_prog_compiler_static_GCJ='-Bstatic'
15589 # FIXME: we need at least 68020 code to build shared libraries, but
15590 # adding the `-m68020' flag to GCC prevents building anything better,
15592 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15595 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15596 # PIC is the default for these OSes.
15599 mingw* | pw32* | os2*)
15600 # This hack is so that the source file can tell whether it is being
15601 # built for inclusion in a dll (and should export symbols for example).
15602 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15605 darwin* | rhapsody*)
15606 # PIC is the default on this platform
15607 # Common symbols not allowed in MH_DYLIB files
15608 lt_prog_compiler_pic_GCJ='-fno-common'
15612 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15613 # Instead, we relocate shared libraries at runtime.
15617 # Just because we use GCC doesn't mean we suddenly get shared libraries
15618 # on systems that don't support them.
15619 lt_prog_compiler_can_build_shared_GCJ=no
15624 if test -d /usr/nec; then
15625 lt_prog_compiler_pic_GCJ=-Kconform_pic
15630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15631 # not for PA HP-UX.
15637 lt_prog_compiler_pic_GCJ='-fPIC'
15643 lt_prog_compiler_pic_GCJ='-fPIC'
15647 # PORTME Check for flag to pass linker flags through the system compiler.
15650 lt_prog_compiler_wl_GCJ='-Wl,'
15651 if test "$host_cpu" = ia64; then
15652 # AIX 5 now supports IA64 processor
15653 lt_prog_compiler_static_GCJ='-Bstatic'
15655 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15659 # PIC is the default on this platform
15660 # Common symbols not allowed in MH_DYLIB files
15661 case $cc_basename in
15663 lt_prog_compiler_pic_GCJ='-qnocommon'
15664 lt_prog_compiler_wl_GCJ='-Wl,'
15669 mingw* | pw32* | os2*)
15670 # This hack is so that the source file can tell whether it is being
15671 # built for inclusion in a dll (and should export symbols for example).
15672 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15675 hpux9* | hpux10* | hpux11*)
15676 lt_prog_compiler_wl_GCJ='-Wl,'
15677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15678 # not for PA HP-UX.
15684 lt_prog_compiler_pic_GCJ='+Z'
15687 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15688 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15691 irix5* | irix6* | nonstopux*)
15692 lt_prog_compiler_wl_GCJ='-Wl,'
15693 # PIC (with -KPIC) is the default.
15694 lt_prog_compiler_static_GCJ='-non_shared'
15698 lt_prog_compiler_pic_GCJ='-KPIC'
15699 lt_prog_compiler_static_GCJ='-Bstatic'
15703 case $cc_basename in
15705 lt_prog_compiler_wl_GCJ='-Wl,'
15706 lt_prog_compiler_pic_GCJ='-KPIC'
15707 lt_prog_compiler_static_GCJ='-static'
15709 pgcc* | pgf77* | pgf90* | pgf95*)
15710 # Portland Group compilers (*not* the Pentium gcc compiler,
15711 # which looks to be a dead project)
15712 lt_prog_compiler_wl_GCJ='-Wl,'
15713 lt_prog_compiler_pic_GCJ='-fpic'
15714 lt_prog_compiler_static_GCJ='-Bstatic'
15717 lt_prog_compiler_wl_GCJ='-Wl,'
15718 # All Alpha code is PIC.
15719 lt_prog_compiler_static_GCJ='-non_shared'
15724 osf3* | osf4* | osf5*)
15725 lt_prog_compiler_wl_GCJ='-Wl,'
15726 # All OSF/1 code is PIC.
15727 lt_prog_compiler_static_GCJ='-non_shared'
15731 lt_prog_compiler_pic_GCJ='-KPIC'
15732 lt_prog_compiler_static_GCJ='-Bstatic'
15733 case $cc_basename in
15734 f77* | f90* | f95*)
15735 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15737 lt_prog_compiler_wl_GCJ='-Wl,';;
15742 lt_prog_compiler_wl_GCJ='-Qoption ld '
15743 lt_prog_compiler_pic_GCJ='-PIC'
15744 lt_prog_compiler_static_GCJ='-Bstatic'
15747 sysv4 | sysv4.2uw2* | sysv4.3*)
15748 lt_prog_compiler_wl_GCJ='-Wl,'
15749 lt_prog_compiler_pic_GCJ='-KPIC'
15750 lt_prog_compiler_static_GCJ='-Bstatic'
15754 if test -d /usr/nec ;then
15755 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15756 lt_prog_compiler_static_GCJ='-Bstatic'
15760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15761 lt_prog_compiler_wl_GCJ='-Wl,'
15762 lt_prog_compiler_pic_GCJ='-KPIC'
15763 lt_prog_compiler_static_GCJ='-Bstatic'
15767 lt_prog_compiler_wl_GCJ='-Wl,'
15768 lt_prog_compiler_can_build_shared_GCJ=no
15772 lt_prog_compiler_pic_GCJ='-pic'
15773 lt_prog_compiler_static_GCJ='-Bstatic'
15777 lt_prog_compiler_can_build_shared_GCJ=no
15782 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15783 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15786 # Check to make sure the PIC flag actually works.
15788 if test -n "$lt_prog_compiler_pic_GCJ"; then
15790 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15791 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15792 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 lt_prog_compiler_pic_works_GCJ=no
15796 ac_outfile=conftest.$ac_objext
15797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15798 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15799 # Insert the option either (1) after the last *FLAGS variable, or
15800 # (2) before a word containing "conftest.", or (3) at the end.
15801 # Note that $ac_compile itself does not contain backslashes and begins
15802 # with a dollar sign (not a hyphen), so the echo should work correctly.
15803 # The option is referenced via a variable to avoid confusing sed.
15804 lt_compile=`echo "$ac_compile" | $SED \
15805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15807 -e 's:$: $lt_compiler_flag:'`
15808 (eval echo "\"\$as_me:15808: $lt_compile\"" >&5)
15809 (eval "$lt_compile" 2>conftest.err)
15811 cat conftest.err >&5
15812 echo "$as_me:15812: \$? = $ac_status" >&5
15813 if (exit $ac_status) && test -s "$ac_outfile"; then
15814 # The compiler can only warn and ignore the option if not recognized
15815 # So say no if there are warnings other than the usual output.
15816 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15819 lt_prog_compiler_pic_works_GCJ=yes
15825 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15826 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15828 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15829 case $lt_prog_compiler_pic_GCJ in
15831 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15834 lt_prog_compiler_pic_GCJ=
15835 lt_prog_compiler_can_build_shared_GCJ=no
15840 # For platforms which do not support PIC, -DPIC is meaningless:
15842 lt_prog_compiler_pic_GCJ=
15845 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15850 # Check to make sure the static flag actually works.
15852 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15853 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15854 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15855 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 lt_prog_compiler_static_works_GCJ=no
15859 save_LDFLAGS="$LDFLAGS"
15860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15861 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15863 # The linker can only warn and ignore the option if not recognized
15864 # So say no if there are warnings
15865 if test -s conftest.err; then
15866 # Append any errors to the config.log.
15867 cat conftest.err 1>&5
15868 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15870 if diff conftest.exp conftest.er2 >/dev/null; then
15871 lt_prog_compiler_static_works_GCJ=yes
15874 lt_prog_compiler_static_works_GCJ=yes
15878 LDFLAGS="$save_LDFLAGS"
15881 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15882 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15884 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15887 lt_prog_compiler_static_GCJ=
15891 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15892 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15893 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15896 lt_cv_prog_compiler_c_o_GCJ=no
15897 $rm -r conftest 2>/dev/null
15901 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15903 lt_compiler_flag="-o out/conftest2.$ac_objext"
15904 # Insert the option either (1) after the last *FLAGS variable, or
15905 # (2) before a word containing "conftest.", or (3) at the end.
15906 # Note that $ac_compile itself does not contain backslashes and begins
15907 # with a dollar sign (not a hyphen), so the echo should work correctly.
15908 lt_compile=`echo "$ac_compile" | $SED \
15909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15911 -e 's:$: $lt_compiler_flag:'`
15912 (eval echo "\"\$as_me:15912: $lt_compile\"" >&5)
15913 (eval "$lt_compile" 2>out/conftest.err)
15915 cat out/conftest.err >&5
15916 echo "$as_me:15916: \$? = $ac_status" >&5
15917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15919 # The compiler can only warn and ignore the option if not recognized
15920 # So say no if there are warnings
15921 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15924 lt_cv_prog_compiler_c_o_GCJ=yes
15929 # SGI C++ compiler will create directory out/ii_files/ for
15930 # template instantiation
15931 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15932 $rm out/* && rmdir out
15938 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15939 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15942 hard_links="nottested"
15943 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15944 # do not overwrite the value of need_locks provided by the user
15945 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15946 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15951 ln conftest.a conftest.b 2>&5 || hard_links=no
15952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15953 echo "$as_me:$LINENO: result: $hard_links" >&5
15954 echo "${ECHO_T}$hard_links" >&6
15955 if test "$hard_links" = no; then
15956 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15957 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15964 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15965 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15968 allow_undefined_flag_GCJ=
15969 enable_shared_with_static_runtimes_GCJ=no
15971 archive_expsym_cmds_GCJ=
15972 old_archive_From_new_cmds_GCJ=
15973 old_archive_from_expsyms_cmds_GCJ=
15974 export_dynamic_flag_spec_GCJ=
15975 whole_archive_flag_spec_GCJ=
15976 thread_safe_flag_spec_GCJ=
15977 hardcode_libdir_flag_spec_GCJ=
15978 hardcode_libdir_flag_spec_ld_GCJ=
15979 hardcode_libdir_separator_GCJ=
15980 hardcode_direct_GCJ=no
15981 hardcode_minus_L_GCJ=no
15982 hardcode_shlibpath_var_GCJ=unsupported
15983 link_all_deplibs_GCJ=unknown
15984 hardcode_automatic_GCJ=no
15986 module_expsym_cmds_GCJ=
15987 always_export_symbols_GCJ=no
15988 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15989 # include_expsyms should be a list of space-separated symbols to be *always*
15990 # included in the symbol list
15991 include_expsyms_GCJ=
15992 # exclude_expsyms can be an extended regexp of symbols to exclude
15993 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15994 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15995 # as well as any symbol that contains `d'.
15996 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15997 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15998 # platforms (ab)use it in PIC code, but their linkers get confused if
15999 # the symbol is explicitly referenced. Since portable code cannot
16000 # rely on this symbol name, it's probably fine to never include it in
16001 # preloaded symbol tables.
16002 extract_expsyms_cmds=
16003 # Just being paranoid about ensuring that cc_basename is set.
16004 for cc_temp in $compiler""; do
16006 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16007 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16012 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16015 cygwin* | mingw* | pw32*)
16016 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16017 # When not using gcc, we currently assume that we are using
16018 # Microsoft Visual C++.
16019 if test "$GCC" != yes; then
16024 # we just hope/assume this is gcc and not c89 (= MSVC++)
16033 if test "$with_gnu_ld" = yes; then
16034 # If archive_cmds runs LD, not CC, wlarc should be empty
16037 # Set some defaults for GNU ld with shared library support. These
16038 # are reset later if shared libraries are not supported. Putting them
16039 # here allows them to be overridden if necessary.
16040 runpath_var=LD_RUN_PATH
16041 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16042 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16043 # ancient GNU ld didn't support --whole-archive et. al.
16044 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16045 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16047 whole_archive_flag_spec_GCJ=
16049 supports_anon_versioning=no
16050 case `$LD -v 2>/dev/null` in
16051 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16052 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16053 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16054 *\ 2.11.*) ;; # other 2.11 versions
16055 *) supports_anon_versioning=yes ;;
16058 # See if GNU ld supports shared libraries.
16060 aix3* | aix4* | aix5*)
16061 # On AIX/PPC, the GNU linker is very broken
16062 if test "$host_cpu" != ia64; then
16066 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16067 *** to be unable to reliably create shared libraries on AIX.
16068 *** Therefore, libtool is disabling shared libraries support. If you
16069 *** really care for shared libraries, you may want to modify your PATH
16070 *** so that a non-GNU linker is found, and then restart.
16077 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)'
16078 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16079 hardcode_minus_L_GCJ=yes
16081 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16082 # that the semantics of dynamic libraries on AmigaOS, at least up
16083 # to version 4, is to share data among multiple programs linked
16084 # with the same dynamic library. Since this doesn't match the
16085 # behavior of shared libraries on other platforms, we can't use
16091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16092 allow_undefined_flag_GCJ=unsupported
16093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16094 # support --undefined. This deserves some investigation. FIXME
16095 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16101 cygwin* | mingw* | pw32*)
16102 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16103 # as there is no search path for DLLs.
16104 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16105 allow_undefined_flag_GCJ=unsupported
16106 always_export_symbols_GCJ=no
16107 enable_shared_with_static_runtimes_GCJ=yes
16108 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16110 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16111 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16112 # If the export-symbols file already is a .def file (1st line
16113 # is EXPORTS), use it as is; otherwise, prepend...
16114 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16115 cp $export_symbols $output_objdir/$soname.def;
16117 echo EXPORTS > $output_objdir/$soname.def;
16118 cat $export_symbols >> $output_objdir/$soname.def;
16120 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16127 hardcode_direct_GCJ=no
16128 hardcode_shlibpath_var_GCJ=no
16129 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16130 export_dynamic_flag_spec_GCJ='${wl}-E'
16131 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16132 # Instead, shared libraries are loaded at an image base (0x10000000 by
16133 # default) and relocated if they conflict, which is a slow very memory
16134 # consuming and fragmenting process. To avoid this, we pick a random,
16135 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16136 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16137 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16138 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16144 case $cc_basename,$host_cpu in
16145 pgcc*) # Portland Group C compiler
16146 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16147 tmp_addflag=' $pic_flag'
16149 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16150 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16151 tmp_addflag=' $pic_flag -Mnomain' ;;
16152 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16153 tmp_addflag=' -i_dynamic' ;;
16154 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16155 tmp_addflag=' -i_dynamic -nofor_main' ;;
16156 ifc* | ifort*) # Intel Fortran compiler
16157 tmp_addflag=' -nofor_main' ;;
16159 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16161 if test $supports_anon_versioning = yes; then
16162 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16163 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16164 $echo "local: *; };" >> $output_objdir/$libname.ver~
16165 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16174 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16177 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16178 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16183 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16188 *** create shared libraries on Solaris systems. Therefore, libtool
16189 *** is disabling shared libraries support. We urge you to upgrade GNU
16190 *** binutils to release 2.9.1 or newer. Another option is to modify
16191 *** your PATH or compiler configuration so that the native linker is
16192 *** used, and then restart.
16195 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16196 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16197 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16204 case `$LD -v 2>&1` in
16205 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16210 *** reliably create shared libraries on SCO systems. Therefore, libtool
16211 *** is disabling shared libraries support. We urge you to upgrade GNU
16212 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16213 *** your PATH or compiler configuration so that the native linker is
16214 *** used, and then restart.
16219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16220 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16221 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16222 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16231 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16233 hardcode_direct_GCJ=yes
16234 hardcode_shlibpath_var_GCJ=no
16238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16239 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16240 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16247 if test "$ld_shlibs_GCJ" = no; then
16249 hardcode_libdir_flag_spec_GCJ=
16250 export_dynamic_flag_spec_GCJ=
16251 whole_archive_flag_spec_GCJ=
16254 # PORTME fill in a description of your system's linker (not GNU ld)
16257 allow_undefined_flag_GCJ=unsupported
16258 always_export_symbols_GCJ=yes
16259 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'
16260 # Note: this linker hardcodes the directories in LIBPATH if there
16261 # are no directories specified by -L.
16262 hardcode_minus_L_GCJ=yes
16263 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16264 # Neither direct hardcoding nor static linking is supported with a
16266 hardcode_direct_GCJ=unsupported
16271 if test "$host_cpu" = ia64; then
16272 # On IA64, the linker does run time linking by default, so we don't
16273 # have to do anything special.
16274 aix_use_runtimelinking=no
16275 exp_sym_flag='-Bexport'
16278 # If we're using GNU nm, then we don't want the "-C" option.
16279 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16280 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16281 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'
16283 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'
16285 aix_use_runtimelinking=no
16287 # Test if we are trying to use run time linking or normal
16288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16289 # need to do runtime linking.
16290 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16291 for ld_flag in $LDFLAGS; do
16292 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16293 aix_use_runtimelinking=yes
16300 exp_sym_flag='-bexport'
16301 no_entry_flag='-bnoentry'
16304 # When large executables or shared objects are built, AIX ld can
16305 # have problems creating the table of contents. If linking a library
16306 # or program results in "error TOC overflow" add -mminimal-toc to
16307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16310 archive_cmds_GCJ=''
16311 hardcode_direct_GCJ=yes
16312 hardcode_libdir_separator_GCJ=':'
16313 link_all_deplibs_GCJ=yes
16315 if test "$GCC" = yes; then
16316 case $host_os in aix4.[012]|aix4.[012].*)
16317 # We only want to do this on AIX 4.2 and lower, the check
16318 # below for broken collect2 doesn't work under 4.3+
16319 collect2name=`${CC} -print-prog-name=collect2`
16320 if test -f "$collect2name" && \
16321 strings "$collect2name" | grep resolve_lib_name >/dev/null
16323 # We have reworked collect2
16324 hardcode_direct_GCJ=yes
16326 # We have old collect2
16327 hardcode_direct_GCJ=unsupported
16328 # It fails to find uninstalled libraries when the uninstalled
16329 # path is not listed in the libpath. Setting hardcode_minus_L
16330 # to unsupported forces relinking
16331 hardcode_minus_L_GCJ=yes
16332 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16333 hardcode_libdir_separator_GCJ=
16337 shared_flag='-shared'
16338 if test "$aix_use_runtimelinking" = yes; then
16339 shared_flag="$shared_flag "'${wl}-G'
16343 if test "$host_cpu" = ia64; then
16344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16345 # chokes on -Wl,-G. The following line is correct:
16348 if test "$aix_use_runtimelinking" = yes; then
16349 shared_flag='${wl}-G'
16351 shared_flag='${wl}-bM:SRE'
16356 # It seems that -bexpall does not export symbols beginning with
16357 # underscore (_), so it is better to generate a list of symbols to export.
16358 always_export_symbols_GCJ=yes
16359 if test "$aix_use_runtimelinking" = yes; then
16360 # Warning - without using the other runtime loading flags (-brtl),
16361 # -berok will link without error, but may produce a broken library.
16362 allow_undefined_flag_GCJ='-berok'
16363 # Determine the default libpath from the value encoded in an empty executable.
16364 cat >conftest.$ac_ext <<_ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16379 rm -f conftest.$ac_objext conftest$ac_exeext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16381 (eval $ac_link) 2>conftest.er1
16383 grep -v '^ *+' conftest.er1 >conftest.err
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } &&
16388 { ac_try='test -z "$ac_c_werror_flag"
16389 || test ! -s conftest.err'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; } &&
16395 { ac_try='test -s conftest$ac_exeext'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16404 # Check for a 64-bit object if we didn't find anything.
16405 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; }
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16412 rm -f conftest.err conftest.$ac_objext \
16413 conftest$ac_exeext conftest.$ac_ext
16414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16416 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16417 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16419 if test "$host_cpu" = ia64; then
16420 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16421 allow_undefined_flag_GCJ="-z nodefs"
16422 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16424 # Determine the default libpath from the value encoded in an empty executable.
16425 cat >conftest.$ac_ext <<_ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16442 (eval $ac_link) 2>conftest.er1
16444 grep -v '^ *+' conftest.er1 >conftest.err
16446 cat conftest.err >&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } &&
16449 { ac_try='test -z "$ac_c_werror_flag"
16450 || test ! -s conftest.err'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; } &&
16456 { ac_try='test -s conftest$ac_exeext'
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }; then
16463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16465 # Check for a 64-bit object if we didn't find anything.
16466 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; }
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16473 rm -f conftest.err conftest.$ac_objext \
16474 conftest$ac_exeext conftest.$ac_ext
16475 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16477 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16478 # Warning - without using the other run time loading flags,
16479 # -berok will link without error, but may produce a broken library.
16480 no_undefined_flag_GCJ=' ${wl}-bernotok'
16481 allow_undefined_flag_GCJ=' ${wl}-berok'
16482 # Exported symbols can be pulled into shared objects from archives
16483 whole_archive_flag_spec_GCJ='$convenience'
16484 archive_cmds_need_lc_GCJ=yes
16485 # This is similar to how AIX traditionally builds its shared libraries.
16486 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16492 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)'
16493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16494 hardcode_minus_L_GCJ=yes
16495 # see comment about different semantics on the GNU ld section
16500 export_dynamic_flag_spec_GCJ=-rdynamic
16503 cygwin* | mingw* | pw32*)
16504 # When not using gcc, we currently assume that we are using
16505 # Microsoft Visual C++.
16506 # hardcode_libdir_flag_spec is actually meaningless, as there is
16507 # no search path for DLLs.
16508 hardcode_libdir_flag_spec_GCJ=' '
16509 allow_undefined_flag_GCJ=unsupported
16510 # Tell ltmain to make .lib files, not .a files.
16512 # Tell ltmain to make .dll files, not .so files.
16514 # FIXME: Setting linknames here is a bad hack.
16515 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16516 # The linker will automatically build a .lib file if we build a DLL.
16517 old_archive_From_new_cmds_GCJ='true'
16518 # FIXME: Should let the user specify the lib program.
16519 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16520 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16521 enable_shared_with_static_runtimes_GCJ=yes
16524 darwin* | rhapsody*)
16526 rhapsody* | darwin1.[012])
16527 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16530 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16531 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16533 case ${MACOSX_DEPLOYMENT_TARGET} in
16535 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16538 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16544 archive_cmds_need_lc_GCJ=no
16545 hardcode_direct_GCJ=no
16546 hardcode_automatic_GCJ=yes
16547 hardcode_shlibpath_var_GCJ=unsupported
16548 whole_archive_flag_spec_GCJ=''
16549 link_all_deplibs_GCJ=yes
16550 if test "$GCC" = yes ; then
16551 output_verbose_link_cmd='echo'
16552 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16553 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16554 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16555 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16556 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}'
16558 case $cc_basename in
16560 output_verbose_link_cmd='echo'
16561 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16562 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16563 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16564 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16565 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}'
16575 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16576 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16577 hardcode_shlibpath_var_GCJ=no
16584 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16585 # support. Future versions do this automatically, but an explicit c++rt0.o
16586 # does not break anything, and helps significantly (at the cost of a little
16589 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16590 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16591 hardcode_direct_GCJ=yes
16592 hardcode_shlibpath_var_GCJ=no
16595 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16597 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16598 hardcode_direct_GCJ=yes
16599 hardcode_minus_L_GCJ=yes
16600 hardcode_shlibpath_var_GCJ=no
16603 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16604 freebsd* | kfreebsd*-gnu | dragonfly*)
16605 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16606 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16607 hardcode_direct_GCJ=yes
16608 hardcode_shlibpath_var_GCJ=no
16612 if test "$GCC" = yes; then
16613 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'
16615 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'
16617 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16618 hardcode_libdir_separator_GCJ=:
16619 hardcode_direct_GCJ=yes
16621 # hardcode_minus_L: Not really in the search PATH,
16622 # but as the default location of the library.
16623 hardcode_minus_L_GCJ=yes
16624 export_dynamic_flag_spec_GCJ='${wl}-E'
16628 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16629 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16631 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16633 if test "$with_gnu_ld" = no; then
16634 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16635 hardcode_libdir_separator_GCJ=:
16637 hardcode_direct_GCJ=yes
16638 export_dynamic_flag_spec_GCJ='${wl}-E'
16640 # hardcode_minus_L: Not really in the search PATH,
16641 # but as the default location of the library.
16642 hardcode_minus_L_GCJ=yes
16647 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16650 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16653 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16656 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16662 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16668 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16672 if test "$with_gnu_ld" = no; then
16673 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16674 hardcode_libdir_separator_GCJ=:
16678 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16679 hardcode_direct_GCJ=no
16680 hardcode_shlibpath_var_GCJ=no
16683 hardcode_direct_GCJ=yes
16684 export_dynamic_flag_spec_GCJ='${wl}-E'
16686 # hardcode_minus_L: Not really in the search PATH,
16687 # but as the default location of the library.
16688 hardcode_minus_L_GCJ=yes
16694 irix5* | irix6* | nonstopux*)
16695 if test "$GCC" = yes; then
16696 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'
16698 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'
16699 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16702 hardcode_libdir_separator_GCJ=:
16703 link_all_deplibs_GCJ=yes
16707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16708 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16710 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16712 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16713 hardcode_direct_GCJ=yes
16714 hardcode_shlibpath_var_GCJ=no
16718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_direct_GCJ=yes
16720 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16721 hardcode_libdir_separator_GCJ=:
16722 hardcode_shlibpath_var_GCJ=no
16726 hardcode_direct_GCJ=yes
16727 hardcode_shlibpath_var_GCJ=no
16728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16729 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16730 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16732 export_dynamic_flag_spec_GCJ='${wl}-E'
16735 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16736 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16737 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16740 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16741 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16748 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16749 hardcode_minus_L_GCJ=yes
16750 allow_undefined_flag_GCJ=unsupported
16751 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'
16752 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16756 if test "$GCC" = yes; then
16757 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16758 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'
16760 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16761 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'
16763 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16764 hardcode_libdir_separator_GCJ=:
16767 osf4* | osf5*) # as osf3* with the addition of -msym flag
16768 if test "$GCC" = yes; then
16769 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16770 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'
16771 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16773 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16774 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'
16775 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~
16776 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16778 # Both c and cxx compiler support -rpath directly
16779 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16781 hardcode_libdir_separator_GCJ=:
16785 no_undefined_flag_GCJ=' -z text'
16786 if test "$GCC" = yes; then
16788 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16789 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16790 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16793 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16795 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16797 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16798 hardcode_shlibpath_var_GCJ=no
16800 solaris2.[0-5] | solaris2.[0-5].*) ;;
16802 # The compiler driver will combine linker options so we
16803 # cannot just pass the convience library names through
16804 # without $wl, iff we do not link with $LD.
16805 # Luckily, gcc supports the same syntax we need for Sun Studio.
16806 # Supported since Solaris 2.6 (maybe 2.5.1?)
16809 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16811 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16814 link_all_deplibs_GCJ=yes
16818 if test "x$host_vendor" = xsequent; then
16819 # Use $CC to link under sequent, because it throws in some extra .o
16820 # files that make .init and .fini sections work.
16821 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16823 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16825 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16826 hardcode_direct_GCJ=yes
16827 hardcode_minus_L_GCJ=yes
16828 hardcode_shlibpath_var_GCJ=no
16832 case $host_vendor in
16834 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16835 hardcode_direct_GCJ=yes # is this really true???
16838 ## LD is ld it makes a PLAMLIB
16839 ## CC just makes a GrossModule.
16840 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16841 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16842 hardcode_direct_GCJ=no
16845 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16846 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16849 runpath_var='LD_RUN_PATH'
16850 hardcode_shlibpath_var_GCJ=no
16854 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16855 hardcode_shlibpath_var_GCJ=no
16856 export_dynamic_flag_spec_GCJ='-Bexport'
16860 if test -d /usr/nec; then
16861 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16862 hardcode_shlibpath_var_GCJ=no
16863 runpath_var=LD_RUN_PATH
16864 hardcode_runpath_var=yes
16869 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16870 no_undefined_flag_GCJ='${wl}-z,text'
16871 archive_cmds_need_lc_GCJ=no
16872 hardcode_shlibpath_var_GCJ=no
16873 runpath_var='LD_RUN_PATH'
16875 if test "$GCC" = yes; then
16876 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16877 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16879 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16880 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16884 sysv5* | sco3.2v5* | sco5v6*)
16885 # Note: We can NOT use -z defs as we might desire, because we do not
16886 # link with -lc, and that would cause any symbols used from libc to
16887 # always be unresolved, which means just about no library would
16888 # ever link correctly. If we're not using GNU ld we use -z text
16889 # though, which does catch some bad symbols but isn't as heavy-handed
16891 no_undefined_flag_GCJ='${wl}-z,text'
16892 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16893 archive_cmds_need_lc_GCJ=no
16894 hardcode_shlibpath_var_GCJ=no
16895 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16896 hardcode_libdir_separator_GCJ=':'
16897 link_all_deplibs_GCJ=yes
16898 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16899 runpath_var='LD_RUN_PATH'
16901 if test "$GCC" = yes; then
16902 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16903 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16905 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16906 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16911 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16912 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16913 hardcode_shlibpath_var_GCJ=no
16922 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16923 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16924 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16927 # Do we need to explicitly link libc?
16929 case "x$archive_cmds_need_lc_GCJ" in
16931 # Assume -lc should be added
16932 archive_cmds_need_lc_GCJ=yes
16934 if test "$enable_shared" = yes && test "$GCC" = yes; then
16935 case $archive_cmds_GCJ in
16937 # FIXME: we may have to deal with multi-command sequences.
16940 # Test whether the compiler implicitly links with -lc since on some
16941 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16942 # to ld, don't add -lc before -lgcc.
16943 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16944 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16949 (eval $ac_compile) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } 2>conftest.err; then
16955 libobjs=conftest.$ac_objext
16957 wl=$lt_prog_compiler_wl_GCJ
16958 pic_flag=$lt_prog_compiler_pic_GCJ
16964 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16965 allow_undefined_flag_GCJ=
16966 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16967 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }
16972 archive_cmds_need_lc_GCJ=no
16974 archive_cmds_need_lc_GCJ=yes
16976 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16978 cat conftest.err 1>&5
16981 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16982 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16989 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16990 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16991 library_names_spec=
16992 libname_spec='lib$name'
16996 postuninstall_cmds=
17000 shlibpath_overrides_runpath=unknown
17002 dynamic_linker="$host_os ld.so"
17003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17004 if test "$GCC" = yes; then
17005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17007 # if the path contains ";" then we assume it to be the separator
17008 # otherwise default to the standard path separator (i.e. ":") - it is
17009 # assumed that no part of a normal pathname contains ";" but that should
17010 # okay in the real world where ";" in dirpaths is itself problematic.
17011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17018 need_lib_prefix=unknown
17019 hardcode_into_libs=no
17021 # when you set need_version to no, make sure it does not cause -set_version
17022 # flags to be left without arguments
17023 need_version=unknown
17028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17029 shlibpath_var=LIBPATH
17031 # AIX 3 has no versioning support, so we append a major version to the name.
17032 soname_spec='${libname}${release}${shared_ext}$major'
17039 hardcode_into_libs=yes
17040 if test "$host_cpu" = ia64; then
17041 # AIX 5 supports IA64
17042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17043 shlibpath_var=LD_LIBRARY_PATH
17045 # With GCC up to 2.95.x, collect2 would create an import file
17046 # for dependence libraries. The import file would start with
17047 # the line `#! .'. This would cause the generated library to
17048 # depend on `.', always an invalid library. This was fixed in
17049 # development snapshots of GCC prior to 3.0.
17051 aix4 | aix4.[01] | aix4.[01].*)
17052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17057 can_build_shared=no
17061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17062 # soname into executable. Probably we can add versioning support to
17063 # collect2, so additional links can be useful in future.
17064 if test "$aix_use_runtimelinking" = yes; then
17065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17066 # instead of lib<name>.a to let people know that these are not
17067 # typical AIX shared libraries.
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17070 # We preserve .a as extension for shared libraries through AIX4.2
17071 # and later when we are not doing run time linking.
17072 library_names_spec='${libname}${release}.a $libname.a'
17073 soname_spec='${libname}${release}${shared_ext}$major'
17075 shlibpath_var=LIBPATH
17080 library_names_spec='$libname.ixlibrary $libname.a'
17081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17082 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'
17086 library_names_spec='${libname}${shared_ext}'
17087 dynamic_linker="$host_os ld.so"
17088 shlibpath_var=LIBRARY_PATH
17094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17095 soname_spec='${libname}${release}${shared_ext}$major'
17096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17097 shlibpath_var=LD_LIBRARY_PATH
17098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17100 # the default ld.so.conf also contains /usr/contrib/lib and
17101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17102 # libtool to hard-code these into programs
17105 cygwin* | mingw* | pw32*)
17106 version_type=windows
17111 case $GCC,$host_os in
17112 yes,cygwin* | yes,mingw* | yes,pw32*)
17113 library_names_spec='$libname.dll.a'
17114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17115 postinstall_cmds='base_file=`basename \${file}`~
17116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17117 dldir=$destdir/`dirname \$dlpath`~
17118 test -d \$dldir || mkdir -p \$dldir~
17119 $install_prog $dir/$dlname \$dldir/$dlname~
17120 chmod a+x \$dldir/$dlname'
17121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17122 dlpath=$dir/\$dldll~
17124 shlibpath_overrides_runpath=yes
17128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17133 # MinGW DLLs use traditional 'lib' prefix
17134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17137 # It is most probably a Windows format PATH printed by
17138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17139 # path with ; separators, and with drive letters. We can handle the
17140 # drive letters (cygwin fileutils understands them), so leave them,
17141 # especially as we might pass files found there to a mingw objdump,
17142 # which wouldn't understand a cygwinified path. Ahh.
17143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17149 # pw32 DLLs use 'pw' prefix rather than 'lib'
17150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17159 dynamic_linker='Win32 ld.exe'
17160 # FIXME: first we should search . and the directory the executable is in
17164 darwin* | rhapsody*)
17165 dynamic_linker="$host_os dyld"
17166 version_type=darwin
17169 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17170 soname_spec='${libname}${release}${major}$shared_ext'
17171 shlibpath_overrides_runpath=yes
17172 shlibpath_var=DYLD_LIBRARY_PATH
17173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17174 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17175 if test "$GCC" = yes; then
17176 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"`
17178 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17188 soname_spec='${libname}${release}${shared_ext}$major'
17189 shlibpath_var=LD_LIBRARY_PATH
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17201 soname_spec='${libname}${release}${shared_ext}$major'
17202 shlibpath_var=LD_LIBRARY_PATH
17203 shlibpath_overrides_runpath=no
17204 hardcode_into_libs=yes
17205 dynamic_linker='GNU ld.so'
17208 freebsd* | dragonfly*)
17209 # DragonFly does not have aout. When/if they implement a new
17210 # versioning mechanism, adjust this.
17211 if test -x /usr/bin/objformat; then
17212 objformat=`/usr/bin/objformat`
17215 freebsd[123]*) objformat=aout ;;
17216 *) objformat=elf ;;
17219 version_type=freebsd-$objformat
17220 case $version_type in
17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17231 shlibpath_var=LD_LIBRARY_PATH
17234 shlibpath_overrides_runpath=yes
17236 freebsd3.[01]* | freebsdelf3.[01]*)
17237 shlibpath_overrides_runpath=yes
17238 hardcode_into_libs=yes
17240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17242 shlibpath_overrides_runpath=no
17243 hardcode_into_libs=yes
17245 freebsd*) # from 4.6 on
17246 shlibpath_overrides_runpath=yes
17247 hardcode_into_libs=yes
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17257 soname_spec='${libname}${release}${shared_ext}$major'
17258 shlibpath_var=LD_LIBRARY_PATH
17259 hardcode_into_libs=yes
17262 hpux9* | hpux10* | hpux11*)
17263 # Give a soname corresponding to the major version so that dld.sl refuses to
17264 # link against other versions.
17271 hardcode_into_libs=yes
17272 dynamic_linker="$host_os dld.so"
17273 shlibpath_var=LD_LIBRARY_PATH
17274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276 soname_spec='${libname}${release}${shared_ext}$major'
17277 if test "X$HPUX_IA64_MODE" = X32; then
17278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17286 hardcode_into_libs=yes
17287 dynamic_linker="$host_os dld.sl"
17288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291 soname_spec='${libname}${release}${shared_ext}$major'
17292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17297 dynamic_linker="$host_os dld.sl"
17298 shlibpath_var=SHLIB_PATH
17299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17304 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17305 postinstall_cmds='chmod 555 $lib'
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17313 soname_spec='${libname}${release}${shared_ext}$major'
17314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17315 shlibpath_var=LD_LIBRARY_PATH
17316 shlibpath_overrides_runpath=no
17317 hardcode_into_libs=yes
17320 irix5* | irix6* | nonstopux*)
17322 nonstopux*) version_type=nonstopux ;;
17324 if test "$lt_cv_prog_gnu_ld" = yes; then
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17335 irix5* | nonstopux*)
17336 libsuff= shlibsuff=
17339 case $LD in # libtool.m4 will add one of these switches to LD
17340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17341 libsuff= shlibsuff= libmagic=32-bit;;
17342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17343 libsuff=32 shlibsuff=N32 libmagic=N32;;
17344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17346 *) libsuff= shlibsuff= libmagic=never-match;;
17350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17351 shlibpath_overrides_runpath=no
17352 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17353 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17354 hardcode_into_libs=yes
17357 # No shared lib support for Linux oldld, aout, or coff.
17358 linux*oldld* | linux*aout* | linux*coff*)
17362 # This must be Linux ELF.
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 soname_spec='${libname}${release}${shared_ext}$major'
17369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=no
17372 # This implies no fast_install, which is unacceptable.
17373 # Some rework will be needed to allow for fast_install
17374 # before this can be enabled.
17375 hardcode_into_libs=yes
17377 # find out which ABI we are using
17379 case "$host_cpu" in
17380 x86_64*|s390x*|powerpc64*)
17381 echo '#line 17381 "configure"' > conftest.$ac_ext
17382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17383 (eval $ac_compile) 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; then
17387 case `/usr/bin/file conftest.$ac_objext` in
17390 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17398 # Append ld.so.conf contents to the search path
17399 if test -f /etc/ld.so.conf; then
17400 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17401 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17404 # We used to test for /lib/ld.so.1 and disable shared libraries on
17405 # powerpc, because MkLinux only supported shared libraries with the
17406 # GNU dynamic linker. Since this was broken with cross compilers,
17407 # most powerpc-linux boxes support dynamic linking these days and
17408 # people can always --disable-shared, the test was removed, and we
17409 # assume the GNU/Linux dynamic linker is in use.
17410 dynamic_linker='GNU/Linux ld.so'
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 shlibpath_var=LD_LIBRARY_PATH
17420 shlibpath_overrides_runpath=no
17421 hardcode_into_libs=yes
17422 dynamic_linker='GNU ld.so'
17429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17432 dynamic_linker='NetBSD (a.out) ld.so'
17434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17435 soname_spec='${libname}${release}${shared_ext}$major'
17436 dynamic_linker='NetBSD ld.elf_so'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 shlibpath_overrides_runpath=yes
17440 hardcode_into_libs=yes
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446 shlibpath_var=LD_LIBRARY_PATH
17447 shlibpath_overrides_runpath=yes
17454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455 soname_spec='${libname}${release}${shared_ext}$major'
17456 shlibpath_var=LD_LIBRARY_PATH
17457 shlibpath_overrides_runpath=yes
17462 sys_lib_dlsearch_path_spec="/usr/lib"
17464 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17466 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17467 *) need_version=no ;;
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17474 openbsd2.[89] | openbsd2.[89].*)
17475 shlibpath_overrides_runpath=no
17478 shlibpath_overrides_runpath=yes
17482 shlibpath_overrides_runpath=yes
17487 libname_spec='$name'
17490 library_names_spec='$libname${shared_ext} $libname.a'
17491 dynamic_linker='OS/2 ld.exe'
17492 shlibpath_var=LIBPATH
17495 osf3* | osf4* | osf5*)
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17511 soname_spec='${libname}${release}${shared_ext}$major'
17512 shlibpath_var=LD_LIBRARY_PATH
17513 shlibpath_overrides_runpath=yes
17514 hardcode_into_libs=yes
17515 # ldd complains unless libraries are executable
17516 postinstall_cmds='chmod +x $lib'
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17522 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17523 shlibpath_var=LD_LIBRARY_PATH
17524 shlibpath_overrides_runpath=yes
17525 if test "$with_gnu_ld" = yes; then
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17535 shlibpath_var=LD_LIBRARY_PATH
17536 case $host_vendor in
17538 shlibpath_overrides_runpath=no
17540 export_dynamic_flag_spec='${wl}-Blargedynsym'
17541 runpath_var=LD_RUN_PATH
17549 shlibpath_overrides_runpath=no
17550 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17556 if test -d /usr/nec ;then
17558 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17559 soname_spec='$libname${shared_ext}.$major'
17560 shlibpath_var=LD_LIBRARY_PATH
17564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17565 version_type=freebsd-elf
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 shlibpath_var=LD_LIBRARY_PATH
17571 hardcode_into_libs=yes
17572 if test "$with_gnu_ld" = yes; then
17573 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17574 shlibpath_overrides_runpath=no
17576 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17577 shlibpath_overrides_runpath=yes
17580 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17584 sys_lib_dlsearch_path_spec='/usr/lib'
17589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590 soname_spec='${libname}${release}${shared_ext}$major'
17591 shlibpath_var=LD_LIBRARY_PATH
17598 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17599 echo "${ECHO_T}$dynamic_linker" >&6
17600 test "$dynamic_linker" = no && can_build_shared=no
17602 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17603 if test "$GCC" = yes; then
17604 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17607 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17608 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17609 hardcode_action_GCJ=
17610 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17611 test -n "$runpath_var_GCJ" || \
17612 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17614 # We can hardcode non-existant directories.
17615 if test "$hardcode_direct_GCJ" != no &&
17616 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17617 # have to relink, otherwise we might link with an installed library
17618 # when we should be linking with a yet-to-be-installed one
17619 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17620 test "$hardcode_minus_L_GCJ" != no; then
17621 # Linking always hardcodes the temporary library directory.
17622 hardcode_action_GCJ=relink
17624 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17625 hardcode_action_GCJ=immediate
17628 # We cannot hardcode anything, or else we can only hardcode existing
17630 hardcode_action_GCJ=unsupported
17632 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17633 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17635 if test "$hardcode_action_GCJ" = relink; then
17636 # Fast installation is not supported
17637 enable_fast_install=no
17638 elif test "$shlibpath_overrides_runpath" = yes ||
17639 test "$enable_shared" = no; then
17640 # Fast installation is not necessary
17641 enable_fast_install=needless
17645 # The else clause should only fire when bootstrapping the
17646 # libtool distribution, otherwise you forgot to ship ltmain.sh
17647 # with your package, and you will get complaints that there are
17648 # no rules to generate ltmain.sh.
17649 if test -f "$ltmain"; then
17650 # See if we are running on zsh, and set the options which allow our commands through
17651 # without removal of \ escapes.
17652 if test -n "${ZSH_VERSION+set}" ; then
17653 setopt NO_GLOB_SUBST
17655 # Now quote all the things that may contain metacharacters while being
17656 # careful not to overquote the AC_SUBSTed values. We take copies of the
17657 # variables and quote the copies for generation of the libtool script.
17658 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17660 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17661 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17662 deplibs_check_method reload_flag reload_cmds need_locks \
17663 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17664 lt_cv_sys_global_symbol_to_c_name_address \
17665 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17666 old_postinstall_cmds old_postuninstall_cmds \
17670 lt_prog_compiler_wl_GCJ \
17671 lt_prog_compiler_pic_GCJ \
17672 lt_prog_compiler_static_GCJ \
17673 lt_prog_compiler_no_builtin_flag_GCJ \
17674 export_dynamic_flag_spec_GCJ \
17675 thread_safe_flag_spec_GCJ \
17676 whole_archive_flag_spec_GCJ \
17677 enable_shared_with_static_runtimes_GCJ \
17678 old_archive_cmds_GCJ \
17679 old_archive_from_new_cmds_GCJ \
17680 predep_objects_GCJ \
17681 postdep_objects_GCJ \
17684 compiler_lib_search_path_GCJ \
17686 archive_expsym_cmds_GCJ \
17687 postinstall_cmds_GCJ \
17688 postuninstall_cmds_GCJ \
17689 old_archive_from_expsyms_cmds_GCJ \
17690 allow_undefined_flag_GCJ \
17691 no_undefined_flag_GCJ \
17692 export_symbols_cmds_GCJ \
17693 hardcode_libdir_flag_spec_GCJ \
17694 hardcode_libdir_flag_spec_ld_GCJ \
17695 hardcode_libdir_separator_GCJ \
17696 hardcode_automatic_GCJ \
17698 module_expsym_cmds_GCJ \
17699 lt_cv_prog_compiler_c_o_GCJ \
17700 exclude_expsyms_GCJ \
17701 include_expsyms_GCJ; do
17704 old_archive_cmds_GCJ | \
17705 old_archive_from_new_cmds_GCJ | \
17706 archive_cmds_GCJ | \
17707 archive_expsym_cmds_GCJ | \
17708 module_cmds_GCJ | \
17709 module_expsym_cmds_GCJ | \
17710 old_archive_from_expsyms_cmds_GCJ | \
17711 export_symbols_cmds_GCJ | \
17712 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17713 postinstall_cmds | postuninstall_cmds | \
17714 old_postinstall_cmds | old_postuninstall_cmds | \
17715 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17716 # Double-quote double-evaled strings.
17717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17720 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17726 *'\$0 --fallback-echo"')
17727 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17733 cat <<__EOF__ >> "$cfgfile"
17734 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17736 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17738 # Shell to use when invoking shell scripts.
17741 # Whether or not to build shared libraries.
17742 build_libtool_libs=$enable_shared
17744 # Whether or not to build static libraries.
17745 build_old_libs=$enable_static
17747 # Whether or not to add -lc for building shared libraries.
17748 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17750 # Whether or not to disallow shared libs when runtime libs are static
17751 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17753 # Whether or not to optimize for fast installation.
17754 fast_install=$enable_fast_install
17757 host_alias=$host_alias
17761 # The build system.
17762 build_alias=$build_alias
17766 # An echo program that does not interpret backslashes.
17771 AR_FLAGS=$lt_AR_FLAGS
17776 # LTCC compiler flags.
17777 LTCFLAGS=$lt_LTCFLAGS
17779 # A language-specific compiler.
17780 CC=$lt_compiler_GCJ
17782 # Is the compiler the GNU C compiler?
17785 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17786 gcc_ver=\`gcc -dumpversion\`
17791 # The linker used to build libraries.
17794 # Whether we need hard or soft links.
17797 # A BSD-compatible nm program.
17800 # A symbol stripping program
17803 # Used to examine libraries when file_magic_cmd begins "file"
17804 MAGIC_CMD=$MAGIC_CMD
17806 # Used on cygwin: DLL creation program.
17809 # Used on cygwin: object dumper.
17812 # Used on cygwin: assembler.
17815 # The name of the directory that contains temporary libtool files.
17818 # How to create reloadable object files.
17819 reload_flag=$lt_reload_flag
17820 reload_cmds=$lt_reload_cmds
17822 # How to pass a linker flag through the compiler.
17823 wl=$lt_lt_prog_compiler_wl_GCJ
17825 # Object file suffix (normally "o").
17826 objext="$ac_objext"
17828 # Old archive suffix (normally "a").
17831 # Shared library suffix (normally ".so").
17832 shrext_cmds='$shrext_cmds'
17834 # Executable file suffix (normally "").
17837 # Additional compiler flags for building library objects.
17838 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17841 # What is the maximum length of a command?
17842 max_cmd_len=$lt_cv_sys_max_cmd_len
17844 # Does compiler simultaneously support -c and -o options?
17845 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17847 # Must we lock files when doing compilation?
17848 need_locks=$lt_need_locks
17850 # Do we need the lib prefix for modules?
17851 need_lib_prefix=$need_lib_prefix
17853 # Do we need a version for libraries?
17854 need_version=$need_version
17856 # Whether dlopen is supported.
17857 dlopen_support=$enable_dlopen
17859 # Whether dlopen of programs is supported.
17860 dlopen_self=$enable_dlopen_self
17862 # Whether dlopen of statically linked programs is supported.
17863 dlopen_self_static=$enable_dlopen_self_static
17865 # Compiler flag to prevent dynamic linking.
17866 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17868 # Compiler flag to turn off builtin functions.
17869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17871 # Compiler flag to allow reflexive dlopens.
17872 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17874 # Compiler flag to generate shared objects directly from archives.
17875 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17877 # Compiler flag to generate thread-safe objects.
17878 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17880 # Library versioning type.
17881 version_type=$version_type
17883 # Format of library name prefix.
17884 libname_spec=$lt_libname_spec
17886 # List of archive names. First name is the real one, the rest are links.
17887 # The last name is the one that the linker finds with -lNAME.
17888 library_names_spec=$lt_library_names_spec
17890 # The coded name of the library, if different from the real name.
17891 soname_spec=$lt_soname_spec
17893 # Commands used to build and install an old-style archive.
17895 old_archive_cmds=$lt_old_archive_cmds_GCJ
17896 old_postinstall_cmds=$lt_old_postinstall_cmds
17897 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17899 # Create an old-style archive from a shared archive.
17900 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17902 # Create a temporary old-style archive to link instead of a shared archive.
17903 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17905 # Commands used to build and install a shared archive.
17906 archive_cmds=$lt_archive_cmds_GCJ
17907 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17908 postinstall_cmds=$lt_postinstall_cmds
17909 postuninstall_cmds=$lt_postuninstall_cmds
17911 # Commands used to build a loadable module (assumed same as above if empty)
17912 module_cmds=$lt_module_cmds_GCJ
17913 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17915 # Commands to strip libraries.
17916 old_striplib=$lt_old_striplib
17917 striplib=$lt_striplib
17919 # Dependencies to place before the objects being linked to create a
17921 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17923 # Dependencies to place after the objects being linked to create a
17925 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17927 # Dependencies to place before the objects being linked to create a
17929 predeps=$lt_predeps_GCJ
17931 # Dependencies to place after the objects being linked to create a
17933 postdeps=$lt_postdeps_GCJ
17935 # The library search path used internally by the compiler when linking
17936 # a shared library.
17937 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17939 # Method to check whether dependent libraries are shared objects.
17940 deplibs_check_method=$lt_deplibs_check_method
17942 # Command to use when deplibs_check_method == file_magic.
17943 file_magic_cmd=$lt_file_magic_cmd
17945 # Flag that allows shared libraries with undefined symbols to be built.
17946 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17948 # Flag that forces no undefined symbols.
17949 no_undefined_flag=$lt_no_undefined_flag_GCJ
17951 # Commands used to finish a libtool library installation in a directory.
17952 finish_cmds=$lt_finish_cmds
17954 # Same as above, but a single script fragment to be evaled but not shown.
17955 finish_eval=$lt_finish_eval
17957 # Take the output of nm and produce a listing of raw symbols and C names.
17958 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17960 # Transform the output of nm in a proper C declaration
17961 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17963 # Transform the output of nm in a C name address pair
17964 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17966 # This is the shared library runtime path variable.
17967 runpath_var=$runpath_var
17969 # This is the shared library path variable.
17970 shlibpath_var=$shlibpath_var
17972 # Is shlibpath searched before the hard-coded library search path?
17973 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17975 # How to hardcode a shared library path into an executable.
17976 hardcode_action=$hardcode_action_GCJ
17978 # Whether we should hardcode library paths into libraries.
17979 hardcode_into_libs=$hardcode_into_libs
17981 # Flag to hardcode \$libdir into a binary during linking.
17982 # This must work even if \$libdir does not exist.
17983 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17985 # If ld is used when linking, flag to hardcode \$libdir into
17986 # a binary during linking. This must work even if \$libdir does
17988 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17990 # Whether we need a single -rpath flag with a separated argument.
17991 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17993 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17994 # resulting binary.
17995 hardcode_direct=$hardcode_direct_GCJ
17997 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17998 # resulting binary.
17999 hardcode_minus_L=$hardcode_minus_L_GCJ
18001 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18002 # the resulting binary.
18003 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18005 # Set to yes if building a shared library automatically hardcodes DIR into the library
18006 # and all subsequent libraries and executables linked against it.
18007 hardcode_automatic=$hardcode_automatic_GCJ
18009 # Variables whose values should be saved in libtool wrapper scripts and
18010 # restored at relink time.
18011 variables_saved_for_relink="$variables_saved_for_relink"
18013 # Whether libtool must link a program against all its dependency libraries.
18014 link_all_deplibs=$link_all_deplibs_GCJ
18016 # Compile-time system search path for libraries
18017 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18019 # Run-time system search path for libraries
18020 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18022 # Fix the shell variable \$srcfile for the compiler.
18023 fix_srcfile_path="$fix_srcfile_path_GCJ"
18025 # Set to yes if exported symbols are required.
18026 always_export_symbols=$always_export_symbols_GCJ
18028 # The commands to list exported symbols.
18029 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18031 # The commands to extract the exported symbol list from a shared archive.
18032 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18034 # Symbols that should not be listed in the preloaded symbols.
18035 exclude_expsyms=$lt_exclude_expsyms_GCJ
18037 # Symbols that must always be exported.
18038 include_expsyms=$lt_include_expsyms_GCJ
18040 # ### END LIBTOOL TAG CONFIG: $tagname
18046 # If there is no Makefile yet, we rely on a make rule to execute
18047 # `config.status --recheck' to rerun these tests and create the
18048 # libtool script then.
18049 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18050 if test -f "$ltmain_in"; then
18051 test -f Makefile && make "$ltmain"
18057 ac_cpp='$CPP $CPPFLAGS'
18058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18073 # Source file extension for RC test sources.
18076 # Object file extension for compiled RC test sources.
18080 # Code to be used in simple compile tests
18081 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18083 # Code to be used in simple link tests
18084 lt_simple_link_test_code="$lt_simple_compile_test_code"
18086 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18088 # If no C compiler was specified, use CC.
18091 # If no C compiler flags were specified, use CFLAGS.
18092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18094 # Allow CC to be a program name with arguments.
18098 # save warnings/boilerplate of simple test code
18099 ac_outfile=conftest.$ac_objext
18100 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18101 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18102 _lt_compiler_boilerplate=`cat conftest.err`
18105 ac_outfile=conftest.$ac_objext
18106 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18107 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18108 _lt_linker_boilerplate=`cat conftest.err`
18112 # Allow CC to be a program name with arguments.
18117 for cc_temp in $compiler""; do
18119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18125 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18127 lt_cv_prog_compiler_c_o_RC=yes
18129 # The else clause should only fire when bootstrapping the
18130 # libtool distribution, otherwise you forgot to ship ltmain.sh
18131 # with your package, and you will get complaints that there are
18132 # no rules to generate ltmain.sh.
18133 if test -f "$ltmain"; then
18134 # See if we are running on zsh, and set the options which allow our commands through
18135 # without removal of \ escapes.
18136 if test -n "${ZSH_VERSION+set}" ; then
18137 setopt NO_GLOB_SUBST
18139 # Now quote all the things that may contain metacharacters while being
18140 # careful not to overquote the AC_SUBSTed values. We take copies of the
18141 # variables and quote the copies for generation of the libtool script.
18142 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18144 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18145 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18146 deplibs_check_method reload_flag reload_cmds need_locks \
18147 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18148 lt_cv_sys_global_symbol_to_c_name_address \
18149 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18150 old_postinstall_cmds old_postuninstall_cmds \
18154 lt_prog_compiler_wl_RC \
18155 lt_prog_compiler_pic_RC \
18156 lt_prog_compiler_static_RC \
18157 lt_prog_compiler_no_builtin_flag_RC \
18158 export_dynamic_flag_spec_RC \
18159 thread_safe_flag_spec_RC \
18160 whole_archive_flag_spec_RC \
18161 enable_shared_with_static_runtimes_RC \
18162 old_archive_cmds_RC \
18163 old_archive_from_new_cmds_RC \
18164 predep_objects_RC \
18165 postdep_objects_RC \
18168 compiler_lib_search_path_RC \
18170 archive_expsym_cmds_RC \
18171 postinstall_cmds_RC \
18172 postuninstall_cmds_RC \
18173 old_archive_from_expsyms_cmds_RC \
18174 allow_undefined_flag_RC \
18175 no_undefined_flag_RC \
18176 export_symbols_cmds_RC \
18177 hardcode_libdir_flag_spec_RC \
18178 hardcode_libdir_flag_spec_ld_RC \
18179 hardcode_libdir_separator_RC \
18180 hardcode_automatic_RC \
18182 module_expsym_cmds_RC \
18183 lt_cv_prog_compiler_c_o_RC \
18184 exclude_expsyms_RC \
18185 include_expsyms_RC; do
18188 old_archive_cmds_RC | \
18189 old_archive_from_new_cmds_RC | \
18190 archive_cmds_RC | \
18191 archive_expsym_cmds_RC | \
18193 module_expsym_cmds_RC | \
18194 old_archive_from_expsyms_cmds_RC | \
18195 export_symbols_cmds_RC | \
18196 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18197 postinstall_cmds | postuninstall_cmds | \
18198 old_postinstall_cmds | old_postuninstall_cmds | \
18199 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18200 # Double-quote double-evaled strings.
18201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18204 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18210 *'\$0 --fallback-echo"')
18211 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18217 cat <<__EOF__ >> "$cfgfile"
18218 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18222 # Shell to use when invoking shell scripts.
18225 # Whether or not to build shared libraries.
18226 build_libtool_libs=$enable_shared
18228 # Whether or not to build static libraries.
18229 build_old_libs=$enable_static
18231 # Whether or not to add -lc for building shared libraries.
18232 build_libtool_need_lc=$archive_cmds_need_lc_RC
18234 # Whether or not to disallow shared libs when runtime libs are static
18235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18237 # Whether or not to optimize for fast installation.
18238 fast_install=$enable_fast_install
18241 host_alias=$host_alias
18245 # The build system.
18246 build_alias=$build_alias
18250 # An echo program that does not interpret backslashes.
18255 AR_FLAGS=$lt_AR_FLAGS
18260 # LTCC compiler flags.
18261 LTCFLAGS=$lt_LTCFLAGS
18263 # A language-specific compiler.
18266 # Is the compiler the GNU C compiler?
18269 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18270 gcc_ver=\`gcc -dumpversion\`
18275 # The linker used to build libraries.
18278 # Whether we need hard or soft links.
18281 # A BSD-compatible nm program.
18284 # A symbol stripping program
18287 # Used to examine libraries when file_magic_cmd begins "file"
18288 MAGIC_CMD=$MAGIC_CMD
18290 # Used on cygwin: DLL creation program.
18293 # Used on cygwin: object dumper.
18296 # Used on cygwin: assembler.
18299 # The name of the directory that contains temporary libtool files.
18302 # How to create reloadable object files.
18303 reload_flag=$lt_reload_flag
18304 reload_cmds=$lt_reload_cmds
18306 # How to pass a linker flag through the compiler.
18307 wl=$lt_lt_prog_compiler_wl_RC
18309 # Object file suffix (normally "o").
18310 objext="$ac_objext"
18312 # Old archive suffix (normally "a").
18315 # Shared library suffix (normally ".so").
18316 shrext_cmds='$shrext_cmds'
18318 # Executable file suffix (normally "").
18321 # Additional compiler flags for building library objects.
18322 pic_flag=$lt_lt_prog_compiler_pic_RC
18325 # What is the maximum length of a command?
18326 max_cmd_len=$lt_cv_sys_max_cmd_len
18328 # Does compiler simultaneously support -c and -o options?
18329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18331 # Must we lock files when doing compilation?
18332 need_locks=$lt_need_locks
18334 # Do we need the lib prefix for modules?
18335 need_lib_prefix=$need_lib_prefix
18337 # Do we need a version for libraries?
18338 need_version=$need_version
18340 # Whether dlopen is supported.
18341 dlopen_support=$enable_dlopen
18343 # Whether dlopen of programs is supported.
18344 dlopen_self=$enable_dlopen_self
18346 # Whether dlopen of statically linked programs is supported.
18347 dlopen_self_static=$enable_dlopen_self_static
18349 # Compiler flag to prevent dynamic linking.
18350 link_static_flag=$lt_lt_prog_compiler_static_RC
18352 # Compiler flag to turn off builtin functions.
18353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18355 # Compiler flag to allow reflexive dlopens.
18356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18358 # Compiler flag to generate shared objects directly from archives.
18359 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18361 # Compiler flag to generate thread-safe objects.
18362 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18364 # Library versioning type.
18365 version_type=$version_type
18367 # Format of library name prefix.
18368 libname_spec=$lt_libname_spec
18370 # List of archive names. First name is the real one, the rest are links.
18371 # The last name is the one that the linker finds with -lNAME.
18372 library_names_spec=$lt_library_names_spec
18374 # The coded name of the library, if different from the real name.
18375 soname_spec=$lt_soname_spec
18377 # Commands used to build and install an old-style archive.
18379 old_archive_cmds=$lt_old_archive_cmds_RC
18380 old_postinstall_cmds=$lt_old_postinstall_cmds
18381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18383 # Create an old-style archive from a shared archive.
18384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18386 # Create a temporary old-style archive to link instead of a shared archive.
18387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18389 # Commands used to build and install a shared archive.
18390 archive_cmds=$lt_archive_cmds_RC
18391 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18392 postinstall_cmds=$lt_postinstall_cmds
18393 postuninstall_cmds=$lt_postuninstall_cmds
18395 # Commands used to build a loadable module (assumed same as above if empty)
18396 module_cmds=$lt_module_cmds_RC
18397 module_expsym_cmds=$lt_module_expsym_cmds_RC
18399 # Commands to strip libraries.
18400 old_striplib=$lt_old_striplib
18401 striplib=$lt_striplib
18403 # Dependencies to place before the objects being linked to create a
18405 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18407 # Dependencies to place after the objects being linked to create a
18409 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18411 # Dependencies to place before the objects being linked to create a
18413 predeps=$lt_predeps_RC
18415 # Dependencies to place after the objects being linked to create a
18417 postdeps=$lt_postdeps_RC
18419 # The library search path used internally by the compiler when linking
18420 # a shared library.
18421 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18423 # Method to check whether dependent libraries are shared objects.
18424 deplibs_check_method=$lt_deplibs_check_method
18426 # Command to use when deplibs_check_method == file_magic.
18427 file_magic_cmd=$lt_file_magic_cmd
18429 # Flag that allows shared libraries with undefined symbols to be built.
18430 allow_undefined_flag=$lt_allow_undefined_flag_RC
18432 # Flag that forces no undefined symbols.
18433 no_undefined_flag=$lt_no_undefined_flag_RC
18435 # Commands used to finish a libtool library installation in a directory.
18436 finish_cmds=$lt_finish_cmds
18438 # Same as above, but a single script fragment to be evaled but not shown.
18439 finish_eval=$lt_finish_eval
18441 # Take the output of nm and produce a listing of raw symbols and C names.
18442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18444 # Transform the output of nm in a proper C declaration
18445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18447 # Transform the output of nm in a C name address pair
18448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18450 # This is the shared library runtime path variable.
18451 runpath_var=$runpath_var
18453 # This is the shared library path variable.
18454 shlibpath_var=$shlibpath_var
18456 # Is shlibpath searched before the hard-coded library search path?
18457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18459 # How to hardcode a shared library path into an executable.
18460 hardcode_action=$hardcode_action_RC
18462 # Whether we should hardcode library paths into libraries.
18463 hardcode_into_libs=$hardcode_into_libs
18465 # Flag to hardcode \$libdir into a binary during linking.
18466 # This must work even if \$libdir does not exist.
18467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18469 # If ld is used when linking, flag to hardcode \$libdir into
18470 # a binary during linking. This must work even if \$libdir does
18472 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18474 # Whether we need a single -rpath flag with a separated argument.
18475 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18477 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18478 # resulting binary.
18479 hardcode_direct=$hardcode_direct_RC
18481 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18482 # resulting binary.
18483 hardcode_minus_L=$hardcode_minus_L_RC
18485 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18486 # the resulting binary.
18487 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18489 # Set to yes if building a shared library automatically hardcodes DIR into the library
18490 # and all subsequent libraries and executables linked against it.
18491 hardcode_automatic=$hardcode_automatic_RC
18493 # Variables whose values should be saved in libtool wrapper scripts and
18494 # restored at relink time.
18495 variables_saved_for_relink="$variables_saved_for_relink"
18497 # Whether libtool must link a program against all its dependency libraries.
18498 link_all_deplibs=$link_all_deplibs_RC
18500 # Compile-time system search path for libraries
18501 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18503 # Run-time system search path for libraries
18504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18506 # Fix the shell variable \$srcfile for the compiler.
18507 fix_srcfile_path="$fix_srcfile_path_RC"
18509 # Set to yes if exported symbols are required.
18510 always_export_symbols=$always_export_symbols_RC
18512 # The commands to list exported symbols.
18513 export_symbols_cmds=$lt_export_symbols_cmds_RC
18515 # The commands to extract the exported symbol list from a shared archive.
18516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18518 # Symbols that should not be listed in the preloaded symbols.
18519 exclude_expsyms=$lt_exclude_expsyms_RC
18521 # Symbols that must always be exported.
18522 include_expsyms=$lt_include_expsyms_RC
18524 # ### END LIBTOOL TAG CONFIG: $tagname
18530 # If there is no Makefile yet, we rely on a make rule to execute
18531 # `config.status --recheck' to rerun these tests and create the
18532 # libtool script then.
18533 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18534 if test -f "$ltmain_in"; then
18535 test -f Makefile && make "$ltmain"
18541 ac_cpp='$CPP $CPPFLAGS'
18542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18551 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18552 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18553 { (exit 1); exit 1; }; }
18557 # Append the new tag name to the list of available tags.
18558 if test -n "$tagname" ; then
18559 available_tags="$available_tags $tagname"
18565 # Now substitute the updated list of available tags.
18566 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18567 mv "${ofile}T" "$ofile"
18571 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18572 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18573 { (exit 1); exit 1; }; }
18579 # This can be used to rebuild libtool when needed
18580 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18582 # Always use our own libtool.
18583 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18585 # Prevent multiple expansion
18607 # Checks for libraries.
18608 # Check whether --enable-glibtest or --disable-glibtest was given.
18609 if test "${enable_glibtest+set}" = set; then
18610 enableval="$enable_glibtest"
18613 enable_glibtest=yes
18616 pkg_config_args=glib-2.0
18617 for module in . gobject
18621 pkg_config_args="$pkg_config_args gmodule-2.0"
18624 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
18627 pkg_config_args="$pkg_config_args gobject-2.0"
18630 pkg_config_args="$pkg_config_args gthread-2.0"
18635 # Extract the first word of "pkg-config", so it can be a program name with args.
18636 set dummy pkg-config; ac_word=$2
18637 echo "$as_me:$LINENO: checking for $ac_word" >&5
18638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18639 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 case $PKG_CONFIG in
18644 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18648 for as_dir in $PATH
18651 test -z "$as_dir" && as_dir=.
18652 for ac_exec_ext in '' $ac_executable_extensions; do
18653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18654 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18661 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18665 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18667 if test -n "$PKG_CONFIG"; then
18668 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18669 echo "${ECHO_T}$PKG_CONFIG" >&6
18671 echo "$as_me:$LINENO: result: no" >&5
18672 echo "${ECHO_T}no" >&6
18678 if test x$PKG_CONFIG != xno ; then
18679 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
18682 echo *** pkg-config too old; version 0.7 or better required.
18690 min_glib_version=$GLIB_REQUIRED_VERSION
18691 echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
18692 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
18694 if test x$PKG_CONFIG != xno ; then
18695 ## don't try to run the test against uninstalled libtool libs
18696 if $PKG_CONFIG --uninstalled $pkg_config_args; then
18697 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
18701 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
18708 if test x"$no_glib" = x ; then
18709 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
18710 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
18711 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
18713 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
18714 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
18715 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
18716 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18717 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
18718 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18719 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
18720 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18721 if test "x$enable_glibtest" = "xyes" ; then
18722 ac_save_CFLAGS="$CFLAGS"
18723 ac_save_LIBS="$LIBS"
18724 CFLAGS="$CFLAGS $GLIB_CFLAGS"
18725 LIBS="$GLIB_LIBS $LIBS"
18726 rm -f conf.glibtest
18727 if test "$cross_compiling" = yes; then
18728 echo $ac_n "cross compiling; assumed OK... $ac_c"
18730 cat >conftest.$ac_ext <<_ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18739 #include <stdlib.h>
18744 int major, minor, micro;
18747 system ("touch conf.glibtest");
18749 /* HP/UX 9 (%@#!) writes to sscanf strings */
18750 tmp_version = g_strdup("$min_glib_version");
18751 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
18752 printf("%s, bad version string\n", "$min_glib_version");
18756 if ((glib_major_version != $glib_config_major_version) ||
18757 (glib_minor_version != $glib_config_minor_version) ||
18758 (glib_micro_version != $glib_config_micro_version))
18760 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
18761 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
18762 glib_major_version, glib_minor_version, glib_micro_version);
18763 printf ("*** was found! If pkg-config was correct, then it is best\n");
18764 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
18765 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
18766 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
18767 printf("*** required on your system.\n");
18768 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
18769 printf("*** to point to the correct configuration files\n");
18771 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
18772 (glib_minor_version != GLIB_MINOR_VERSION) ||
18773 (glib_micro_version != GLIB_MICRO_VERSION))
18775 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
18776 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
18777 printf("*** library (version %d.%d.%d)\n",
18778 glib_major_version, glib_minor_version, glib_micro_version);
18782 if ((glib_major_version > major) ||
18783 ((glib_major_version == major) && (glib_minor_version > minor)) ||
18784 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
18790 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
18791 glib_major_version, glib_minor_version, glib_micro_version);
18792 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
18793 major, minor, micro);
18794 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
18796 printf("*** If you have already installed a sufficiently new version, this error\n");
18797 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
18798 printf("*** being found. The easiest way to fix this is to remove the old version\n");
18799 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
18800 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
18801 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
18802 printf("*** so that the correct libraries are found at run-time))\n");
18809 rm -f conftest$ac_exeext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811 (eval $ac_link) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18822 echo "$as_me: program exited with status $ac_status" >&5
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18826 ( exit $ac_status )
18829 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18831 CFLAGS="$ac_save_CFLAGS"
18832 LIBS="$ac_save_LIBS"
18835 if test "x$no_glib" = x ; then
18836 echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
18837 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
18840 echo "$as_me:$LINENO: result: no" >&5
18841 echo "${ECHO_T}no" >&6
18842 if test "$PKG_CONFIG" = "no" ; then
18843 echo "*** A new enough version of pkg-config was not found."
18844 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
18846 if test -f conf.glibtest ; then
18849 echo "*** Could not run GLIB test program, checking why..."
18850 ac_save_CFLAGS="$CFLAGS"
18851 ac_save_LIBS="$LIBS"
18852 CFLAGS="$CFLAGS $GLIB_CFLAGS"
18853 LIBS="$LIBS $GLIB_LIBS"
18854 cat >conftest.$ac_ext <<_ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18867 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874 (eval $ac_link) 2>conftest.er1
18876 grep -v '^ *+' conftest.er1 >conftest.err
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try='test -z "$ac_c_werror_flag"
18882 || test ! -s conftest.err'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest$ac_exeext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 echo "*** The test program compiled, but did not run. This usually means"
18895 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
18896 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
18897 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18898 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18899 echo "*** is required on your system"
18901 echo "*** If you have an old version installed, it is best to remove it, although"
18902 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18907 echo "*** The test program failed to compile or link. See the file config.log for the"
18908 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
18910 rm -f conftest.err conftest.$ac_objext \
18911 conftest$ac_exeext conftest.$ac_ext
18912 CFLAGS="$ac_save_CFLAGS"
18913 LIBS="$ac_save_LIBS"
18921 { { echo "$as_me:$LINENO: error: Test for GLib failed." >&5
18922 echo "$as_me: error: Test for GLib failed." >&2;}
18923 { (exit 1); exit 1; }; }
18930 rm -f conf.glibtest
18932 echo "$as_me:$LINENO: checking for g_list_append in -lglib-2.0" >&5
18933 echo $ECHO_N "checking for g_list_append in -lglib-2.0... $ECHO_C" >&6
18934 if test "${ac_cv_lib_glib_2_0_g_list_append+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 ac_check_lib_save_LIBS=$LIBS
18938 LIBS="-lglib-2.0 $LIBS"
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18946 /* Override any gcc2 internal prototype to avoid an error. */
18950 /* We use char because int might match the return type of a gcc2
18951 builtin and then its argument prototype would still apply. */
18952 char g_list_append ();
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18963 (eval $ac_link) 2>conftest.er1
18965 grep -v '^ *+' conftest.er1 >conftest.err
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_c_werror_flag"
18971 || test ! -s conftest.err'
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest$ac_exeext'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_cv_lib_glib_2_0_g_list_append=yes
18985 echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18988 ac_cv_lib_glib_2_0_g_list_append=no
18990 rm -f conftest.err conftest.$ac_objext \
18991 conftest$ac_exeext conftest.$ac_ext
18992 LIBS=$ac_check_lib_save_LIBS
18994 echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_g_list_append" >&5
18995 echo "${ECHO_T}$ac_cv_lib_glib_2_0_g_list_append" >&6
18996 if test $ac_cv_lib_glib_2_0_g_list_append = yes; then
18999 { { echo "$as_me:$LINENO: error: l7vsd require GLib2.0 or later " >&5
19000 echo "$as_me: error: l7vsd require GLib2.0 or later " >&2;}
19001 { (exit 1); exit 1; }; }
19005 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19006 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19007 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 ac_check_lib_save_LIBS=$LIBS
19012 cat >conftest.$ac_ext <<_ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h. */
19019 /* Override any gcc2 internal prototype to avoid an error. */
19023 /* We use char because int might match the return type of a gcc2
19024 builtin and then its argument prototype would still apply. */
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036 (eval $ac_link) 2>conftest.er1
19038 grep -v '^ *+' conftest.er1 >conftest.err
19040 cat conftest.err >&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); } &&
19043 { ac_try='test -z "$ac_c_werror_flag"
19044 || test ! -s conftest.err'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; } &&
19050 { ac_try='test -s conftest$ac_exeext'
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19056 ac_cv_lib_dl_dlopen=yes
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 ac_cv_lib_dl_dlopen=no
19063 rm -f conftest.err conftest.$ac_objext \
19064 conftest$ac_exeext conftest.$ac_ext
19065 LIBS=$ac_check_lib_save_LIBS
19067 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19068 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19069 if test $ac_cv_lib_dl_dlopen = yes; then
19070 cat >>confdefs.h <<_ACEOF
19071 #define HAVE_LIBDL 1
19078 echo "$as_me:$LINENO: checking for main in -llog4cxx" >&5
19079 echo $ECHO_N "checking for main in -llog4cxx... $ECHO_C" >&6
19080 if test "${ac_cv_lib_log4cxx_main+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 ac_check_lib_save_LIBS=$LIBS
19084 LIBS="-llog4cxx $LIBS"
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19103 (eval $ac_link) 2>conftest.er1
19105 grep -v '^ *+' conftest.er1 >conftest.err
19107 cat conftest.err >&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
19110 { ac_try='test -z "$ac_c_werror_flag"
19111 || test ! -s conftest.err'
19112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113 (eval $ac_try) 2>&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; } &&
19117 { ac_try='test -s conftest$ac_exeext'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_cv_lib_log4cxx_main=yes
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19128 ac_cv_lib_log4cxx_main=no
19130 rm -f conftest.err conftest.$ac_objext \
19131 conftest$ac_exeext conftest.$ac_ext
19132 LIBS=$ac_check_lib_save_LIBS
19134 echo "$as_me:$LINENO: result: $ac_cv_lib_log4cxx_main" >&5
19135 echo "${ECHO_T}$ac_cv_lib_log4cxx_main" >&6
19136 if test $ac_cv_lib_log4cxx_main = yes; then
19139 { { echo "$as_me:$LINENO: error: l7vsd require log4cxx library. " >&5
19140 echo "$as_me: error: l7vsd require log4cxx library. " >&2;}
19141 { (exit 1); exit 1; }; }
19144 #AC_CHECK_LIB(netsnmp, snmp_pdu_create, :,
19145 # [AC_MSG_ERROR( l7vsd require net-snmp library. )] )
19147 # Checks for header files.
19148 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19149 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19150 if test "${ac_cv_header_stdc+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19153 cat >conftest.$ac_ext <<_ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h. */
19159 #include <stdlib.h>
19160 #include <stdarg.h>
19161 #include <string.h>
19172 rm -f conftest.$ac_objext
19173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19174 (eval $ac_compile) 2>conftest.er1
19176 grep -v '^ *+' conftest.er1 >conftest.err
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -z "$ac_c_werror_flag"
19182 || test ! -s conftest.err'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest.$ac_objext'
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 ac_cv_header_stdc=yes
19196 echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19199 ac_cv_header_stdc=no
19201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19203 if test $ac_cv_header_stdc = yes; then
19204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19205 cat >conftest.$ac_ext <<_ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 #include <string.h>
19214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19215 $EGREP "memchr" >/dev/null 2>&1; then
19218 ac_cv_header_stdc=no
19224 if test $ac_cv_header_stdc = yes; then
19225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19226 cat >conftest.$ac_ext <<_ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 #include <stdlib.h>
19235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19236 $EGREP "free" >/dev/null 2>&1; then
19239 ac_cv_header_stdc=no
19245 if test $ac_cv_header_stdc = yes; then
19246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19247 if test "$cross_compiling" = yes; then
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19257 #if ((' ' & 0x0FF) == 0x020)
19258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19261 # define ISLOWER(c) \
19262 (('a' <= (c) && (c) <= 'i') \
19263 || ('j' <= (c) && (c) <= 'r') \
19264 || ('s' <= (c) && (c) <= 'z'))
19265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19273 for (i = 0; i < 256; i++)
19274 if (XOR (islower (i), ISLOWER (i))
19275 || toupper (i) != TOUPPER (i))
19280 rm -f conftest$ac_exeext
19281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19282 (eval $ac_link) 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19293 echo "$as_me: program exited with status $ac_status" >&5
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19297 ( exit $ac_status )
19298 ac_cv_header_stdc=no
19300 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19304 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19305 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19306 if test $ac_cv_header_stdc = yes; then
19308 cat >>confdefs.h <<\_ACEOF
19309 #define STDC_HEADERS 1
19316 for ac_header in stdlib.h unistd.h
19318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19320 echo "$as_me:$LINENO: checking for $ac_header" >&5
19321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19328 # Is the header compilable?
19329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19331 cat >conftest.$ac_ext <<_ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19337 $ac_includes_default
19338 #include <$ac_header>
19340 rm -f conftest.$ac_objext
19341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19342 (eval $ac_compile) 2>conftest.er1
19344 grep -v '^ *+' conftest.er1 >conftest.err
19346 cat conftest.err >&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } &&
19349 { ac_try='test -z "$ac_c_werror_flag"
19350 || test ! -s conftest.err'
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); }; } &&
19356 { ac_try='test -s conftest.$ac_objext'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19362 ac_header_compiler=yes
19364 echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19367 ac_header_compiler=no
19369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19371 echo "${ECHO_T}$ac_header_compiler" >&6
19373 # Is the header present?
19374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19376 cat >conftest.$ac_ext <<_ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 #include <$ac_header>
19384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19387 grep -v '^ *+' conftest.er1 >conftest.err
19389 cat conftest.err >&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); } >/dev/null; then
19392 if test -s conftest.err; then
19393 ac_cpp_err=$ac_c_preproc_warn_flag
19394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19401 if test -z "$ac_cpp_err"; then
19402 ac_header_preproc=yes
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 ac_header_preproc=no
19409 rm -f conftest.err conftest.$ac_ext
19410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19411 echo "${ECHO_T}$ac_header_preproc" >&6
19413 # So? What about this header?
19414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19420 ac_header_preproc=yes
19423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19437 ## ------------------------------------------ ##
19438 ## Report this to the AC_PACKAGE_NAME lists. ##
19439 ## ------------------------------------------ ##
19442 sed "s/^/$as_me: WARNING: /" >&2
19445 echo "$as_me:$LINENO: checking for $ac_header" >&5
19446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19448 echo $ECHO_N "(cached) $ECHO_C" >&6
19450 eval "$as_ac_Header=\$ac_header_preproc"
19452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19457 cat >>confdefs.h <<_ACEOF
19458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19465 # Checks for library functions.
19467 for ac_header in stdlib.h
19469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19471 echo "$as_me:$LINENO: checking for $ac_header" >&5
19472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19479 # Is the header compilable?
19480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19482 cat >conftest.$ac_ext <<_ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h. */
19488 $ac_includes_default
19489 #include <$ac_header>
19491 rm -f conftest.$ac_objext
19492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19493 (eval $ac_compile) 2>conftest.er1
19495 grep -v '^ *+' conftest.er1 >conftest.err
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try='test -z "$ac_c_werror_flag"
19501 || test ! -s conftest.err'
19502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; } &&
19507 { ac_try='test -s conftest.$ac_objext'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; }; then
19513 ac_header_compiler=yes
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19518 ac_header_compiler=no
19520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19522 echo "${ECHO_T}$ac_header_compiler" >&6
19524 # Is the header present?
19525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 #include <$ac_header>
19535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19538 grep -v '^ *+' conftest.er1 >conftest.err
19540 cat conftest.err >&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } >/dev/null; then
19543 if test -s conftest.err; then
19544 ac_cpp_err=$ac_c_preproc_warn_flag
19545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19552 if test -z "$ac_cpp_err"; then
19553 ac_header_preproc=yes
19555 echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19558 ac_header_preproc=no
19560 rm -f conftest.err conftest.$ac_ext
19561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19562 echo "${ECHO_T}$ac_header_preproc" >&6
19564 # So? What about this header?
19565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19571 ac_header_preproc=yes
19574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19588 ## ------------------------------------------ ##
19589 ## Report this to the AC_PACKAGE_NAME lists. ##
19590 ## ------------------------------------------ ##
19593 sed "s/^/$as_me: WARNING: /" >&2
19596 echo "$as_me:$LINENO: checking for $ac_header" >&5
19597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19601 eval "$as_ac_Header=\$ac_header_preproc"
19603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19608 cat >>confdefs.h <<_ACEOF
19609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19616 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19617 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
19618 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 if test "$cross_compiling" = yes; then
19622 ac_cv_func_malloc_0_nonnull=no
19624 cat >conftest.$ac_ext <<_ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 #if STDC_HEADERS || HAVE_STDLIB_H
19631 # include <stdlib.h>
19639 exit (malloc (0) ? 0 : 1);
19644 rm -f conftest$ac_exeext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19646 (eval $ac_link) 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; }; then
19655 ac_cv_func_malloc_0_nonnull=yes
19657 echo "$as_me: program exited with status $ac_status" >&5
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19661 ( exit $ac_status )
19662 ac_cv_func_malloc_0_nonnull=no
19664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19667 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19668 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
19669 if test $ac_cv_func_malloc_0_nonnull = yes; then
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_MALLOC 1
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_MALLOC 0
19681 "malloc.$ac_objext" | \
19682 *" malloc.$ac_objext" | \
19683 "malloc.$ac_objext "* | \
19684 *" malloc.$ac_objext "* ) ;;
19685 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
19689 cat >>confdefs.h <<\_ACEOF
19690 #define malloc rpl_malloc
19701 for ac_func in select socket strdup strerror
19703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19704 echo "$as_me:$LINENO: checking for $ac_func" >&5
19705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19706 if eval "test \"\${$as_ac_var+set}\" = set"; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19717 #define $ac_func innocuous_$ac_func
19719 /* System header to define __stub macros and hopefully few prototypes,
19720 which can conflict with char $ac_func (); below.
19721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19722 <limits.h> exists even on freestanding compilers. */
19725 # include <limits.h>
19727 # include <assert.h>
19732 /* Override any gcc2 internal prototype to avoid an error. */
19737 /* We use char because int might match the return type of a gcc2
19738 builtin and then its argument prototype would still apply. */
19740 /* The GNU C library defines this for functions which it implements
19741 to always fail with ENOSYS. Some functions are actually named
19742 something starting with __ and the normal name is an alias. */
19743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19746 char (*f) () = $ac_func;
19755 return f != $ac_func;
19760 rm -f conftest.$ac_objext conftest$ac_exeext
19761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19762 (eval $ac_link) 2>conftest.er1
19764 grep -v '^ *+' conftest.er1 >conftest.err
19766 cat conftest.err >&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } &&
19769 { ac_try='test -z "$ac_c_werror_flag"
19770 || test ! -s conftest.err'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; } &&
19776 { ac_try='test -s conftest$ac_exeext'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; }; then
19782 eval "$as_ac_var=yes"
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 eval "$as_ac_var=no"
19789 rm -f conftest.err conftest.$ac_objext \
19790 conftest$ac_exeext conftest.$ac_ext
19792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19794 if test `eval echo '${'$as_ac_var'}'` = yes; then
19795 cat >>confdefs.h <<_ACEOF
19796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19803 # application-specific option
19804 if test `uname -m` == "x86_64"; then
19807 # SNMP_CONFIG_COMMAND="net-snmp-config-x86_64"
19811 # SNMP_CONFIG_COMMAND="net-snmp-config"
19814 mandir=/usr/share/man
19818 # Check whether --with-l7vs-moddir or --without-l7vs-moddir was given.
19819 if test "${with_l7vs_moddir+set}" = set; then
19820 withval="$with_l7vs_moddir"
19821 l7vs_moddir="$withval"
19823 l7vs_moddir="${libdir}/l7vs"
19828 # Check whether --with-l7vsadm-sockdir or --without-l7vsadm-sockdir was given.
19829 if test "${with_l7vsadm_sockdir+set}" = set; then
19830 withval="$with_l7vsadm_sockdir"
19831 l7vsadm_sockdir="$withval"
19833 l7vsadm_sockdir="/var/run/l7vs"
19838 # Check whether --with-l7vs-maxvs or --without-l7vs-maxvs was given.
19839 if test "${with_l7vs_maxvs+set}" = set; then
19840 withval="$with_l7vs_maxvs"
19841 l7vs_maxvs="$withval"
19847 #AC_CHECK_PROG( snmpagent_libs, $SNMP_CONFIG_COMMAND, `$SNMP_CONFIG_COMMAND --agent-libs` )
19848 #if test "x$snmpagent_libs" = x; then
19849 # AC_MSG_ERROR([ cannot found $SNMP_CONFIG_COMMAND command. ])
19856 mandir=/usr/share/man
19863 ac_config_files="$ac_config_files parameter/Makefile logger/Makefile Makefile debian/Makefile module/Makefile module/protocol/Makefile module/schedule/Makefile src/Makefile conf/Makefile init.d/Makefile l7directord/Makefile man/Makefile"
19865 ac_config_files="$ac_config_files ultramonkeyl7.spec"
19866 cat >confcache <<\_ACEOF
19867 # This file is a shell script that caches the results of configure
19868 # tests run on this system so they can be shared between configure
19869 # scripts and configure runs, see configure's option --config-cache.
19870 # It is not useful on other systems. If it contains results you don't
19871 # want to keep, you may remove or edit it.
19873 # config.status only pays attention to the cache file if you give it
19874 # the --recheck option to rerun configure.
19876 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19877 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19878 # following values.
19882 # The following way of writing the cache mishandles newlines in values,
19883 # but we know of no workaround that is simple, portable, and efficient.
19884 # So, don't put newlines in cache variables' values.
19885 # Ultrix sh set writes to stderr and can't be redirected directly,
19886 # and sets the high bit in the cache file unless we assign to the vars.
19889 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19891 # `set' does not quote correctly, so add quotes (double-quote
19892 # substitution turns \\\\ into \\, and sed turns \\ into \).
19895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19898 # `set' quotes correctly as required by POSIX, so do not add quotes.
19900 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19907 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19909 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19911 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19912 if test -w $cache_file; then
19913 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19914 cat confcache >$cache_file
19916 echo "not updating unwritable cache $cache_file"
19921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19922 # Let make expand exec_prefix.
19923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19925 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19926 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19927 # trailing colons and then remove the whole line if VPATH becomes empty
19928 # (actually we leave an empty line to preserve line numbers).
19929 if test "x$srcdir" = x.; then
19930 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19931 s/:*\$(srcdir):*/:/;
19932 s/:*\${srcdir}:*/:/;
19934 s/^\([^=]*=[ ]*\):*/\1/;
19940 DEFS=-DHAVE_CONFIG_H
19944 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19945 # 1. Remove the extension, and $U if already installed.
19946 ac_i=`echo "$ac_i" |
19947 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19949 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19950 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19952 LIBOBJS=$ac_libobjs
19954 LTLIBOBJS=$ac_ltlibobjs
19957 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19958 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19959 Usually this means the macro was only invoked conditionally." >&5
19960 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19961 Usually this means the macro was only invoked conditionally." >&2;}
19962 { (exit 1); exit 1; }; }
19964 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19965 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19966 Usually this means the macro was only invoked conditionally." >&5
19967 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19968 Usually this means the macro was only invoked conditionally." >&2;}
19969 { (exit 1); exit 1; }; }
19971 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19972 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19973 Usually this means the macro was only invoked conditionally." >&5
19974 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19975 Usually this means the macro was only invoked conditionally." >&2;}
19976 { (exit 1); exit 1; }; }
19979 : ${CONFIG_STATUS=./config.status}
19980 ac_clean_files_save=$ac_clean_files
19981 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19982 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19983 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19984 cat >$CONFIG_STATUS <<_ACEOF
19986 # Generated by $as_me.
19987 # Run this file to recreate the current configuration.
19988 # Compiler output produced by configure, useful for debugging
19989 # configure, is in config.log if it exists.
19992 ac_cs_recheck=false
19994 SHELL=\${CONFIG_SHELL-$SHELL}
19997 cat >>$CONFIG_STATUS <<\_ACEOF
19998 ## --------------------- ##
19999 ## M4sh Initialization. ##
20000 ## --------------------- ##
20002 # Be Bourne compatible
20003 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20006 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20007 # is contrary to our usage. Disable this feature.
20008 alias -g '${1+"$@"}'='"$@"'
20009 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20012 DUALCASE=1; export DUALCASE # for MKS sh
20014 # Support unset when possible.
20015 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20022 # Work around bugs in pre-3.0 UWIN ksh.
20023 $as_unset ENV MAIL MAILPATH
20030 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20031 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20032 LC_TELEPHONE LC_TIME
20034 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20035 eval $as_var=C; export $as_var
20041 # Required to use basename.
20042 if expr a : '\(a\)' >/dev/null 2>&1; then
20048 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20049 as_basename=basename
20055 # Name of the executable.
20056 as_me=`$as_basename "$0" ||
20057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20058 X"$0" : 'X\(//\)$' \| \
20059 X"$0" : 'X\(/\)$' \| \
20060 . : '\(.\)' 2>/dev/null ||
20062 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20063 /^X\/\(\/\/\)$/{ s//\1/; q; }
20064 /^X\/\(\/\).*/{ s//\1/; q; }
20068 # PATH needs CR, and LINENO needs CR and PATH.
20069 # Avoid depending upon Character Ranges.
20070 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20071 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20072 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20073 as_cr_digits='0123456789'
20074 as_cr_alnum=$as_cr_Letters$as_cr_digits
20076 # The user is always right.
20077 if test "${PATH_SEPARATOR+set}" != set; then
20078 echo "#! /bin/sh" >conf$$.sh
20079 echo "exit 0" >>conf$$.sh
20081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20090 as_lineno_1=$LINENO
20091 as_lineno_2=$LINENO
20092 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20093 test "x$as_lineno_1" != "x$as_lineno_2" &&
20094 test "x$as_lineno_3" = "x$as_lineno_2" || {
20095 # Find who we are. Look in the path if we contain no path at all
20098 *[\\/]* ) as_myself=$0 ;;
20099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20100 for as_dir in $PATH
20103 test -z "$as_dir" && as_dir=.
20104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20109 # We did not find ourselves, most probably we were run as `sh COMMAND'
20110 # in which case we are not to be found in the path.
20111 if test "x$as_myself" = x; then
20114 if test ! -f "$as_myself"; then
20115 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20116 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20117 { (exit 1); exit 1; }; }
20119 case $CONFIG_SHELL in
20121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20122 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20125 test -z "$as_dir" && as_dir=.
20126 for as_base in sh bash ksh sh5; do
20129 if ("$as_dir/$as_base" -c '
20130 as_lineno_1=$LINENO
20131 as_lineno_2=$LINENO
20132 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20133 test "x$as_lineno_1" != "x$as_lineno_2" &&
20134 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20135 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20136 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20137 CONFIG_SHELL=$as_dir/$as_base
20138 export CONFIG_SHELL
20139 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20147 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20148 # uniformly replaced by the line number. The first 'sed' inserts a
20149 # line-number line before each line; the second 'sed' does the real
20150 # work. The second script uses 'N' to pair each line-number line
20151 # with the numbered line, and appends trailing '-' during
20152 # substitution so that $LINENO is not a special case at line end.
20153 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20154 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20155 sed '=' <$as_myself |
20160 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20163 s,^['$as_cr_digits']*\n,,
20164 ' >$as_me.lineno &&
20165 chmod +x $as_me.lineno ||
20166 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20167 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20168 { (exit 1); exit 1; }; }
20170 # Don't try to exec as it changes $[0], causing all sort of problems
20171 # (the dirname of $[0] is not the place where we might find the
20172 # original and so on. Autoconf is especially sensible to this).
20174 # Exit status is that of the last command.
20179 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20180 *c*,-n*) ECHO_N= ECHO_C='
20182 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20183 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20186 if expr a : '\(a\)' >/dev/null 2>&1; then
20192 rm -f conf$$ conf$$.exe conf$$.file
20194 if ln -s conf$$.file conf$$ 2>/dev/null; then
20195 # We could just check for DJGPP; but this test a) works b) is more generic
20196 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20197 if test -f conf$$.exe; then
20198 # Don't use ln at all; we don't have any links
20203 elif ln conf$$.file conf$$ 2>/dev/null; then
20208 rm -f conf$$ conf$$.exe conf$$.file
20210 if mkdir -p . 2>/dev/null; then
20213 test -d ./-p && rmdir ./-p
20217 as_executable_p="test -f"
20219 # Sed expression to map a string onto a valid CPP name.
20220 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20222 # Sed expression to map a string onto a valid variable name.
20223 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20227 # We need space, tab and new line, in precisely that order.
20237 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20238 # report actual input values of CONFIG_FILES etc. instead of their
20239 # values after options handling. Logging --version etc. is OK.
20243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20244 ## Running $as_me. ##
20249 This file was extended by $as_me, which was
20250 generated by GNU Autoconf 2.59. Invocation command line was
20252 CONFIG_FILES = $CONFIG_FILES
20253 CONFIG_HEADERS = $CONFIG_HEADERS
20254 CONFIG_LINKS = $CONFIG_LINKS
20255 CONFIG_COMMANDS = $CONFIG_COMMANDS
20259 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20263 # Files that config.status was made for.
20264 if test -n "$ac_config_files"; then
20265 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20268 if test -n "$ac_config_headers"; then
20269 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20272 if test -n "$ac_config_links"; then
20273 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20276 if test -n "$ac_config_commands"; then
20277 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20280 cat >>$CONFIG_STATUS <<\_ACEOF
20283 \`$as_me' instantiates files from templates according to the
20284 current configuration.
20286 Usage: $0 [OPTIONS] [FILE]...
20288 -h, --help print this help, then exit
20289 -V, --version print version number, then exit
20290 -q, --quiet do not print progress messages
20291 -d, --debug don't remove temporary files
20292 --recheck update $as_me by reconfiguring in the same conditions
20293 --file=FILE[:TEMPLATE]
20294 instantiate the configuration file FILE
20295 --header=FILE[:TEMPLATE]
20296 instantiate the configuration header FILE
20298 Configuration files:
20301 Configuration headers:
20304 Configuration commands:
20307 Report bugs to <bug-autoconf@gnu.org>."
20310 cat >>$CONFIG_STATUS <<_ACEOF
20313 configured by $0, generated by GNU Autoconf 2.59,
20314 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20316 Copyright (C) 2003 Free Software Foundation, Inc.
20317 This config.status script is free software; the Free Software Foundation
20318 gives unlimited permission to copy, distribute and modify it."
20323 cat >>$CONFIG_STATUS <<\_ACEOF
20324 # If no file are specified by the user, then we need to provide default
20325 # value. By we need to know if files were specified by the user.
20331 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20332 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20340 *) # This is not an option, so the user has probably given explicit
20343 ac_need_defaults=false;;
20347 # Handling of the options.
20349 cat >>$CONFIG_STATUS <<\_ACEOF
20350 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20352 --version | --vers* | -V )
20353 echo "$ac_cs_version"; exit 0 ;;
20355 # Conflict between --help and --header
20356 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20357 Try \`$0 --help' for more information." >&5
20358 echo "$as_me: error: ambiguous option: $1
20359 Try \`$0 --help' for more information." >&2;}
20360 { (exit 1); exit 1; }; };;
20361 --help | --hel | -h )
20362 echo "$ac_cs_usage"; exit 0 ;;
20363 --debug | --d* | -d )
20365 --file | --fil | --fi | --f )
20367 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20368 ac_need_defaults=false;;
20369 --header | --heade | --head | --hea )
20371 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20372 ac_need_defaults=false;;
20373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20374 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20377 # This is an error.
20378 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20379 Try \`$0 --help' for more information." >&5
20380 echo "$as_me: error: unrecognized option: $1
20381 Try \`$0 --help' for more information." >&2;}
20382 { (exit 1); exit 1; }; } ;;
20384 *) ac_config_targets="$ac_config_targets $1" ;;
20390 ac_configure_extra_args=
20392 if $ac_cs_silent; then
20394 ac_configure_extra_args="$ac_configure_extra_args --silent"
20398 cat >>$CONFIG_STATUS <<_ACEOF
20399 if \$ac_cs_recheck; then
20400 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20401 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20406 cat >>$CONFIG_STATUS <<_ACEOF
20408 # INIT-COMMANDS section.
20411 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20417 cat >>$CONFIG_STATUS <<\_ACEOF
20418 for ac_config_target in $ac_config_targets
20420 case "$ac_config_target" in
20421 # Handling of arguments.
20422 "parameter/Makefile" ) CONFIG_FILES="$CONFIG_FILES parameter/Makefile" ;;
20423 "logger/Makefile" ) CONFIG_FILES="$CONFIG_FILES logger/Makefile" ;;
20424 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20425 "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
20426 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
20427 "module/protocol/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/protocol/Makefile" ;;
20428 "module/schedule/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/schedule/Makefile" ;;
20429 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20430 "conf/Makefile" ) CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
20431 "init.d/Makefile" ) CONFIG_FILES="$CONFIG_FILES init.d/Makefile" ;;
20432 "l7directord/Makefile" ) CONFIG_FILES="$CONFIG_FILES l7directord/Makefile" ;;
20433 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20434 "ultramonkeyl7.spec" ) CONFIG_FILES="$CONFIG_FILES ultramonkeyl7.spec" ;;
20435 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20436 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20437 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20438 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20439 { (exit 1); exit 1; }; };;
20443 # If the user did not use the arguments to specify the items to instantiate,
20444 # then the envvar interface is used. Set only those that are not.
20445 # We use the long form for the default assignment because of an extremely
20446 # bizarre bug on SunOS 4.1.3.
20447 if $ac_need_defaults; then
20448 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20449 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20450 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20453 # Have a temporary directory for convenience. Make it in the build tree
20454 # simply because there is no reason to put it here, and in addition,
20455 # creating and moving files from /tmp can sometimes cause problems.
20456 # Create a temporary directory, and hook for its removal unless debugging.
20459 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20460 trap '{ (exit 1); exit 1; }' 1 2 13 15
20463 # Create a (secure) tmp directory for tmp files.
20466 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20467 test -n "$tmp" && test -d "$tmp"
20470 tmp=./confstat$$-$RANDOM
20471 (umask 077 && mkdir $tmp)
20474 echo "$me: cannot create a temporary directory in ." >&2
20475 { (exit 1); exit 1; }
20480 cat >>$CONFIG_STATUS <<_ACEOF
20483 # CONFIG_FILES section.
20486 # No need to generate the scripts if there are no CONFIG_FILES.
20487 # This happens for instance when ./config.status config.h
20488 if test -n "\$CONFIG_FILES"; then
20489 # Protect against being on the right side of a sed subst in config.status.
20490 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20491 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20492 s,@SHELL@,$SHELL,;t t
20493 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20494 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20495 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20496 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20497 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20498 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20499 s,@exec_prefix@,$exec_prefix,;t t
20500 s,@prefix@,$prefix,;t t
20501 s,@program_transform_name@,$program_transform_name,;t t
20502 s,@bindir@,$bindir,;t t
20503 s,@sbindir@,$sbindir,;t t
20504 s,@libexecdir@,$libexecdir,;t t
20505 s,@datadir@,$datadir,;t t
20506 s,@sysconfdir@,$sysconfdir,;t t
20507 s,@sharedstatedir@,$sharedstatedir,;t t
20508 s,@localstatedir@,$localstatedir,;t t
20509 s,@libdir@,$libdir,;t t
20510 s,@includedir@,$includedir,;t t
20511 s,@oldincludedir@,$oldincludedir,;t t
20512 s,@infodir@,$infodir,;t t
20513 s,@mandir@,$mandir,;t t
20514 s,@build_alias@,$build_alias,;t t
20515 s,@host_alias@,$host_alias,;t t
20516 s,@target_alias@,$target_alias,;t t
20517 s,@DEFS@,$DEFS,;t t
20518 s,@ECHO_C@,$ECHO_C,;t t
20519 s,@ECHO_N@,$ECHO_N,;t t
20520 s,@ECHO_T@,$ECHO_T,;t t
20521 s,@LIBS@,$LIBS,;t t
20522 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20523 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20524 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20525 s,@CYGPATH_W@,$CYGPATH_W,;t t
20526 s,@PACKAGE@,$PACKAGE,;t t
20527 s,@VERSION@,$VERSION,;t t
20528 s,@ACLOCAL@,$ACLOCAL,;t t
20529 s,@AUTOCONF@,$AUTOCONF,;t t
20530 s,@AUTOMAKE@,$AUTOMAKE,;t t
20531 s,@AUTOHEADER@,$AUTOHEADER,;t t
20532 s,@MAKEINFO@,$MAKEINFO,;t t
20533 s,@install_sh@,$install_sh,;t t
20534 s,@STRIP@,$STRIP,;t t
20535 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20536 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20537 s,@mkdir_p@,$mkdir_p,;t t
20539 s,@SET_MAKE@,$SET_MAKE,;t t
20540 s,@am__leading_dot@,$am__leading_dot,;t t
20541 s,@AMTAR@,$AMTAR,;t t
20542 s,@am__tar@,$am__tar,;t t
20543 s,@am__untar@,$am__untar,;t t
20545 s,@CXXFLAGS@,$CXXFLAGS,;t t
20546 s,@LDFLAGS@,$LDFLAGS,;t t
20547 s,@CPPFLAGS@,$CPPFLAGS,;t t
20548 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20549 s,@EXEEXT@,$EXEEXT,;t t
20550 s,@OBJEXT@,$OBJEXT,;t t
20551 s,@DEPDIR@,$DEPDIR,;t t
20552 s,@am__include@,$am__include,;t t
20553 s,@am__quote@,$am__quote,;t t
20554 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20555 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20556 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20557 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20558 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20559 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20560 s,@build@,$build,;t t
20561 s,@build_cpu@,$build_cpu,;t t
20562 s,@build_vendor@,$build_vendor,;t t
20563 s,@build_os@,$build_os,;t t
20564 s,@host@,$host,;t t
20565 s,@host_cpu@,$host_cpu,;t t
20566 s,@host_vendor@,$host_vendor,;t t
20567 s,@host_os@,$host_os,;t t
20569 s,@CFLAGS@,$CFLAGS,;t t
20570 s,@ac_ct_CC@,$ac_ct_CC,;t t
20571 s,@CCDEPMODE@,$CCDEPMODE,;t t
20572 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20573 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20575 s,@EGREP@,$EGREP,;t t
20576 s,@LN_S@,$LN_S,;t t
20577 s,@ECHO@,$ECHO,;t t
20579 s,@ac_ct_AR@,$ac_ct_AR,;t t
20580 s,@RANLIB@,$RANLIB,;t t
20581 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20583 s,@CXXCPP@,$CXXCPP,;t t
20585 s,@FFLAGS@,$FFLAGS,;t t
20586 s,@ac_ct_F77@,$ac_ct_F77,;t t
20587 s,@LIBTOOL@,$LIBTOOL,;t t
20588 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20589 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
20590 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
20591 s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
20592 s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
20593 s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
20594 s,@LIBOBJS@,$LIBOBJS,;t t
20595 s,@l7vsadm_sockdir@,$l7vsadm_sockdir,;t t
20596 s,@l7vs_moddir@,$l7vs_moddir,;t t
20597 s,@l7vs_maxvs@,$l7vs_maxvs,;t t
20598 s,@MANDIR@,$MANDIR,;t t
20599 s,@snmpagent_libs@,$snmpagent_libs,;t t
20600 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20605 cat >>$CONFIG_STATUS <<\_ACEOF
20606 # Split the substitutions into bite-sized pieces for seds with
20607 # small command number limits, like on Digital OSF/1 and HP-UX.
20608 ac_max_sed_lines=48
20609 ac_sed_frag=1 # Number of current file.
20610 ac_beg=1 # First line for current file.
20611 ac_end=$ac_max_sed_lines # Line after last line for current file.
20614 while $ac_more_lines; do
20615 if test $ac_beg -gt 1; then
20616 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20618 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20620 if test ! -s $tmp/subs.frag; then
20621 ac_more_lines=false
20623 # The purpose of the label and of the branching condition is to
20624 # speed up the sed processing (if there are no `@' at all, there
20625 # is no need to browse any of the substitutions).
20626 # These are the two extra sed commands mentioned above.
20628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20629 if test -z "$ac_sed_cmds"; then
20630 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20632 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20634 ac_sed_frag=`expr $ac_sed_frag + 1`
20636 ac_end=`expr $ac_end + $ac_max_sed_lines`
20639 if test -z "$ac_sed_cmds"; then
20642 fi # test -n "$CONFIG_FILES"
20645 cat >>$CONFIG_STATUS <<\_ACEOF
20646 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20647 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20649 - | *:- | *:-:* ) # input from stdin
20651 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20652 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20653 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20654 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20655 * ) ac_file_in=$ac_file.in ;;
20658 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20659 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20661 X"$ac_file" : 'X\(//\)[^/]' \| \
20662 X"$ac_file" : 'X\(//\)$' \| \
20663 X"$ac_file" : 'X\(/\)' \| \
20664 . : '\(.\)' 2>/dev/null ||
20666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20668 /^X\(\/\/\)$/{ s//\1/; q; }
20669 /^X\(\/\).*/{ s//\1/; q; }
20671 { if $as_mkdir_p; then
20676 while test ! -d "$as_dir"; do
20677 as_dirs="$as_dir $as_dirs"
20678 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20680 X"$as_dir" : 'X\(//\)[^/]' \| \
20681 X"$as_dir" : 'X\(//\)$' \| \
20682 X"$as_dir" : 'X\(/\)' \| \
20683 . : '\(.\)' 2>/dev/null ||
20685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20687 /^X\(\/\/\)$/{ s//\1/; q; }
20688 /^X\(\/\).*/{ s//\1/; q; }
20691 test ! -n "$as_dirs" || mkdir $as_dirs
20692 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20693 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20694 { (exit 1); exit 1; }; }; }
20698 if test "$ac_dir" != .; then
20699 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20700 # A "../" for each directory in $ac_dir_suffix.
20701 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20703 ac_dir_suffix= ac_top_builddir=
20707 .) # No --srcdir option. We are building in place.
20709 if test -z "$ac_top_builddir"; then
20712 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20714 [\\/]* | ?:[\\/]* ) # Absolute path.
20715 ac_srcdir=$srcdir$ac_dir_suffix;
20716 ac_top_srcdir=$srcdir ;;
20717 *) # Relative path.
20718 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20719 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20722 # Do not use `cd foo && pwd` to compute absolute paths, because
20723 # the directories may not exist.
20725 .) ac_abs_builddir="$ac_dir";;
20728 .) ac_abs_builddir=`pwd`;;
20729 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20730 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20733 case $ac_abs_builddir in
20734 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20736 case ${ac_top_builddir}. in
20737 .) ac_abs_top_builddir=$ac_abs_builddir;;
20738 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20739 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20742 case $ac_abs_builddir in
20743 .) ac_abs_srcdir=$ac_srcdir;;
20746 .) ac_abs_srcdir=$ac_abs_builddir;;
20747 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20748 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20751 case $ac_abs_builddir in
20752 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20754 case $ac_top_srcdir in
20755 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20756 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20757 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20763 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20764 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20767 if test x"$ac_file" != x-; then
20768 { echo "$as_me:$LINENO: creating $ac_file" >&5
20769 echo "$as_me: creating $ac_file" >&6;}
20772 # Let's still pretend it is `configure' which instantiates (i.e., don't
20773 # use $as_me), people would be surprised to read:
20774 # /* config.h. Generated by config.status. */
20775 if test x"$ac_file" = x-; then
20778 configure_input="$ac_file. "
20780 configure_input=$configure_input"Generated from `echo $ac_file_in |
20781 sed 's,.*/,,'` by configure."
20783 # First look for the input files in the build tree, otherwise in the
20785 ac_file_inputs=`IFS=:
20786 for f in $ac_file_in; do
20788 -) echo $tmp/stdin ;;
20790 # Absolute (can't be DOS-style, as IFS=:)
20791 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20792 echo "$as_me: error: cannot find input file: $f" >&2;}
20793 { (exit 1); exit 1; }; }
20796 if test -f "$f"; then
20799 elif test -f "$srcdir/$f"; then
20804 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20805 echo "$as_me: error: cannot find input file: $f" >&2;}
20806 { (exit 1); exit 1; }; }
20809 done` || { (exit 1); exit 1; }
20811 cat >>$CONFIG_STATUS <<_ACEOF
20815 cat >>$CONFIG_STATUS <<\_ACEOF
20817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20818 s,@configure_input@,$configure_input,;t t
20819 s,@srcdir@,$ac_srcdir,;t t
20820 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20821 s,@top_srcdir@,$ac_top_srcdir,;t t
20822 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20823 s,@builddir@,$ac_builddir,;t t
20824 s,@abs_builddir@,$ac_abs_builddir,;t t
20825 s,@top_builddir@,$ac_top_builddir,;t t
20826 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20827 s,@INSTALL@,$ac_INSTALL,;t t
20828 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20830 if test x"$ac_file" != x-; then
20831 mv $tmp/out $ac_file
20839 cat >>$CONFIG_STATUS <<\_ACEOF
20842 # CONFIG_HEADER section.
20845 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20846 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20848 # ac_d sets the value in "#define NAME VALUE" lines.
20849 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20850 ac_dB='[ ].*$,\1#\2'
20853 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20854 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20855 ac_uB='$,\1#\2define\3'
20859 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20860 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20862 - | *:- | *:-:* ) # input from stdin
20864 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20865 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20866 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20867 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20868 * ) ac_file_in=$ac_file.in ;;
20871 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20872 echo "$as_me: creating $ac_file" >&6;}
20874 # First look for the input files in the build tree, otherwise in the
20876 ac_file_inputs=`IFS=:
20877 for f in $ac_file_in; do
20879 -) echo $tmp/stdin ;;
20881 # Absolute (can't be DOS-style, as IFS=:)
20882 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20883 echo "$as_me: error: cannot find input file: $f" >&2;}
20884 { (exit 1); exit 1; }; }
20885 # Do quote $f, to prevent DOS paths from being IFS'd.
20888 if test -f "$f"; then
20891 elif test -f "$srcdir/$f"; then
20896 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20897 echo "$as_me: error: cannot find input file: $f" >&2;}
20898 { (exit 1); exit 1; }; }
20901 done` || { (exit 1); exit 1; }
20902 # Remove the trailing spaces.
20903 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20907 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20908 # `conftest.undefs', that substitutes the proper values into
20909 # config.h.in to produce config.h. The first handles `#define'
20910 # templates, and the second `#undef' templates.
20911 # And first: Protect against being on the right side of a sed subst in
20912 # config.status. Protect against being in an unquoted here document
20913 # in config.status.
20914 rm -f conftest.defines conftest.undefs
20915 # Using a here document instead of a string reduces the quoting nightmare.
20916 # Putting comments in sed scripts is not portable.
20918 # `end' is used to avoid that the second main sed command (meant for
20919 # 0-ary CPP macros) applies to n-ary macro definitions.
20920 # See the Autoconf documentation for `clear'.
20921 cat >confdef2sed.sed <<\_ACEOF
20926 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20928 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20931 # If some macros were called several times there might be several times
20932 # the same #defines, which is useless. Nevertheless, we may not want to
20933 # sort them, since we want the *last* AC-DEFINE to be honored.
20934 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20935 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20936 rm -f confdef2sed.sed
20938 # This sed command replaces #undef with comments. This is necessary, for
20939 # example, in the case of _POSIX_SOURCE, which is predefined and required
20940 # on some systems where configure will not decide to define it.
20941 cat >>conftest.undefs <<\_ACEOF
20942 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20945 # Break up conftest.defines because some shells have a limit on the size
20946 # of here documents, and old seds have small limits too (100 cmds).
20947 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20948 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20949 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20950 echo ' :' >>$CONFIG_STATUS
20951 rm -f conftest.tail
20952 while grep . conftest.defines >/dev/null
20954 # Write a limited-size here document to $tmp/defines.sed.
20955 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20956 # Speed up: don't consider the non `#define' lines.
20957 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20958 # Work around the forget-to-reset-the-flag bug.
20959 echo 't clr' >>$CONFIG_STATUS
20960 echo ': clr' >>$CONFIG_STATUS
20961 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20963 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20965 mv $tmp/out $tmp/in
20967 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20968 rm -f conftest.defines
20969 mv conftest.tail conftest.defines
20971 rm -f conftest.defines
20972 echo ' fi # grep' >>$CONFIG_STATUS
20973 echo >>$CONFIG_STATUS
20975 # Break up conftest.undefs because some shells have a limit on the size
20976 # of here documents, and old seds have small limits too (100 cmds).
20977 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20978 rm -f conftest.tail
20979 while grep . conftest.undefs >/dev/null
20981 # Write a limited-size here document to $tmp/undefs.sed.
20982 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20983 # Speed up: don't consider the non `#undef'
20984 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20985 # Work around the forget-to-reset-the-flag bug.
20986 echo 't clr' >>$CONFIG_STATUS
20987 echo ': clr' >>$CONFIG_STATUS
20988 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20990 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20992 mv $tmp/out $tmp/in
20994 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20995 rm -f conftest.undefs
20996 mv conftest.tail conftest.undefs
20998 rm -f conftest.undefs
21000 cat >>$CONFIG_STATUS <<\_ACEOF
21001 # Let's still pretend it is `configure' which instantiates (i.e., don't
21002 # use $as_me), people would be surprised to read:
21003 # /* config.h. Generated by config.status. */
21004 if test x"$ac_file" = x-; then
21005 echo "/* Generated by configure. */" >$tmp/config.h
21007 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21009 cat $tmp/in >>$tmp/config.h
21011 if test x"$ac_file" != x-; then
21012 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21013 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21014 echo "$as_me: $ac_file is unchanged" >&6;}
21016 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21018 X"$ac_file" : 'X\(//\)[^/]' \| \
21019 X"$ac_file" : 'X\(//\)$' \| \
21020 X"$ac_file" : 'X\(/\)' \| \
21021 . : '\(.\)' 2>/dev/null ||
21023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21025 /^X\(\/\/\)$/{ s//\1/; q; }
21026 /^X\(\/\).*/{ s//\1/; q; }
21028 { if $as_mkdir_p; then
21033 while test ! -d "$as_dir"; do
21034 as_dirs="$as_dir $as_dirs"
21035 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21037 X"$as_dir" : 'X\(//\)[^/]' \| \
21038 X"$as_dir" : 'X\(//\)$' \| \
21039 X"$as_dir" : 'X\(/\)' \| \
21040 . : '\(.\)' 2>/dev/null ||
21042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21044 /^X\(\/\/\)$/{ s//\1/; q; }
21045 /^X\(\/\).*/{ s//\1/; q; }
21048 test ! -n "$as_dirs" || mkdir $as_dirs
21049 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21050 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21051 { (exit 1); exit 1; }; }; }
21054 mv $tmp/config.h $ac_file
21058 rm -f $tmp/config.h
21060 # Compute $ac_file's index in $config_headers.
21062 for _am_header in $config_headers :; do
21063 case $_am_header in
21064 $ac_file | $ac_file:* )
21067 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21070 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21071 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21072 X$ac_file : 'X\(//\)[^/]' \| \
21073 X$ac_file : 'X\(//\)$' \| \
21074 X$ac_file : 'X\(/\)' \| \
21075 . : '\(.\)' 2>/dev/null ||
21077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21079 /^X\(\/\/\)$/{ s//\1/; q; }
21080 /^X\(\/\).*/{ s//\1/; q; }
21081 s/.*/./; q'`/stamp-h$_am_stamp_count
21084 cat >>$CONFIG_STATUS <<\_ACEOF
21087 # CONFIG_COMMANDS section.
21089 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21090 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21091 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21092 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21093 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21094 X"$ac_dest" : 'X\(//\)[^/]' \| \
21095 X"$ac_dest" : 'X\(//\)$' \| \
21096 X"$ac_dest" : 'X\(/\)' \| \
21097 . : '\(.\)' 2>/dev/null ||
21099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21101 /^X\(\/\/\)$/{ s//\1/; q; }
21102 /^X\(\/\).*/{ s//\1/; q; }
21104 { if $as_mkdir_p; then
21109 while test ! -d "$as_dir"; do
21110 as_dirs="$as_dir $as_dirs"
21111 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21113 X"$as_dir" : 'X\(//\)[^/]' \| \
21114 X"$as_dir" : 'X\(//\)$' \| \
21115 X"$as_dir" : 'X\(/\)' \| \
21116 . : '\(.\)' 2>/dev/null ||
21118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21120 /^X\(\/\/\)$/{ s//\1/; q; }
21121 /^X\(\/\).*/{ s//\1/; q; }
21124 test ! -n "$as_dirs" || mkdir $as_dirs
21125 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21126 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21127 { (exit 1); exit 1; }; }; }
21131 if test "$ac_dir" != .; then
21132 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21133 # A "../" for each directory in $ac_dir_suffix.
21134 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21136 ac_dir_suffix= ac_top_builddir=
21140 .) # No --srcdir option. We are building in place.
21142 if test -z "$ac_top_builddir"; then
21145 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21147 [\\/]* | ?:[\\/]* ) # Absolute path.
21148 ac_srcdir=$srcdir$ac_dir_suffix;
21149 ac_top_srcdir=$srcdir ;;
21150 *) # Relative path.
21151 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21152 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21155 # Do not use `cd foo && pwd` to compute absolute paths, because
21156 # the directories may not exist.
21158 .) ac_abs_builddir="$ac_dir";;
21161 .) ac_abs_builddir=`pwd`;;
21162 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21163 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21166 case $ac_abs_builddir in
21167 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21169 case ${ac_top_builddir}. in
21170 .) ac_abs_top_builddir=$ac_abs_builddir;;
21171 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21172 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21175 case $ac_abs_builddir in
21176 .) ac_abs_srcdir=$ac_srcdir;;
21179 .) ac_abs_srcdir=$ac_abs_builddir;;
21180 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21181 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21184 case $ac_abs_builddir in
21185 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21187 case $ac_top_srcdir in
21188 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21189 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21190 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21195 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21196 echo "$as_me: executing $ac_dest commands" >&6;}
21198 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21199 # Strip MF so we end up with the name of the file.
21200 mf=`echo "$mf" | sed -e 's/:.*$//'`
21201 # Check whether this is an Automake generated Makefile or not.
21202 # We used to match only the files named `Makefile.in', but
21203 # some people rename them; so instead we look at the file content.
21204 # Grep'ing the first line is not enough: some people post-process
21205 # each Makefile.in and add a new line on top of each file to say so.
21206 # So let's grep whole file.
21207 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21208 dirpart=`(dirname "$mf") 2>/dev/null ||
21209 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21210 X"$mf" : 'X\(//\)[^/]' \| \
21211 X"$mf" : 'X\(//\)$' \| \
21212 X"$mf" : 'X\(/\)' \| \
21213 . : '\(.\)' 2>/dev/null ||
21215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21217 /^X\(\/\/\)$/{ s//\1/; q; }
21218 /^X\(\/\).*/{ s//\1/; q; }
21223 # Extract the definition of DEPDIR, am__include, and am__quote
21224 # from the Makefile without running `make'.
21225 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21226 test -z "$DEPDIR" && continue
21227 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21228 test -z "am__include" && continue
21229 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21230 # When using ansi2knr, U may be empty or an underscore; expand it
21231 U=`sed -n 's/^U = //p' < "$mf"`
21232 # Find all dependency output files, they are included files with
21233 # $(DEPDIR) in their names. We invoke sed twice because it is the
21234 # simplest approach to changing $(DEPDIR) to its actual value in the
21236 for file in `sed -n "
21237 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21238 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21239 # Make sure the directory exists.
21240 test -f "$dirpart/$file" && continue
21241 fdir=`(dirname "$file") 2>/dev/null ||
21242 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21243 X"$file" : 'X\(//\)[^/]' \| \
21244 X"$file" : 'X\(//\)$' \| \
21245 X"$file" : 'X\(/\)' \| \
21246 . : '\(.\)' 2>/dev/null ||
21248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21250 /^X\(\/\/\)$/{ s//\1/; q; }
21251 /^X\(\/\).*/{ s//\1/; q; }
21253 { if $as_mkdir_p; then
21254 mkdir -p $dirpart/$fdir
21256 as_dir=$dirpart/$fdir
21258 while test ! -d "$as_dir"; do
21259 as_dirs="$as_dir $as_dirs"
21260 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21262 X"$as_dir" : 'X\(//\)[^/]' \| \
21263 X"$as_dir" : 'X\(//\)$' \| \
21264 X"$as_dir" : 'X\(/\)' \| \
21265 . : '\(.\)' 2>/dev/null ||
21267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21269 /^X\(\/\/\)$/{ s//\1/; q; }
21270 /^X\(\/\).*/{ s//\1/; q; }
21273 test ! -n "$as_dirs" || mkdir $as_dirs
21274 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21275 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21276 { (exit 1); exit 1; }; }; }
21278 # echo "creating $dirpart/$file"
21279 echo '# dummy' > "$dirpart/$file"
21287 cat >>$CONFIG_STATUS <<\_ACEOF
21289 { (exit 0); exit 0; }
21291 chmod +x $CONFIG_STATUS
21292 ac_clean_files=$ac_clean_files_save
21295 # configure is writing to config.log, and then calls config.status.
21296 # config.status does its own redirection, appending to config.log.
21297 # Unfortunately, on DOS this fails, as config.log is still kept open
21298 # by configure, so config.status won't be able to write to it; its
21299 # output is simply discarded. So we exec the FD to /dev/null,
21300 # effectively closing config.log, so it can be properly (re)opened and
21301 # appended to by config.status. When coming back to configure, we
21302 # need to make the FD available again.
21303 if test "$no_create" != yes; then
21305 ac_config_status_args=
21306 test "$silent" = yes &&
21307 ac_config_status_args="$ac_config_status_args --quiet"
21309 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21311 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21312 # would make configure fail if this is the last instruction.
21313 $ac_cs_success || { (exit 1); exit 1; }