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="sqlfs.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG DEPS_CFLAGS DEPS_LIBS LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
948 ac_env_PKG_CONFIG_value=$PKG_CONFIG
949 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
951 ac_env_DEPS_CFLAGS_set=${DEPS_CFLAGS+set}
952 ac_env_DEPS_CFLAGS_value=$DEPS_CFLAGS
953 ac_cv_env_DEPS_CFLAGS_set=${DEPS_CFLAGS+set}
954 ac_cv_env_DEPS_CFLAGS_value=$DEPS_CFLAGS
955 ac_env_DEPS_LIBS_set=${DEPS_LIBS+set}
956 ac_env_DEPS_LIBS_value=$DEPS_LIBS
957 ac_cv_env_DEPS_LIBS_set=${DEPS_LIBS+set}
958 ac_cv_env_DEPS_LIBS_value=$DEPS_LIBS
961 # Report the --help message.
963 if test "$ac_init_help" = "long"; then
964 # Omit some internal or obsolete options to make the list less imposing.
965 # This message is too long to be a string in the A/UX 3.1 sh.
967 \`configure' configures this package to adapt to many kinds of systems.
969 Usage: $0 [OPTION]... [VAR=VALUE]...
971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
972 VAR=VALUE. See below for descriptions of some of the useful variables.
974 Defaults for the options are specified in brackets.
977 -h, --help display this help and exit
978 --help=short display options specific to this package
979 --help=recursive display the short help of all the included packages
980 -V, --version display version information and exit
981 -q, --quiet, --silent do not print \`checking...' messages
982 --cache-file=FILE cache test results in FILE [disabled]
983 -C, --config-cache alias for \`--cache-file=config.cache'
984 -n, --no-create do not create output files
985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
990 Installation directories:
991 --prefix=PREFIX install architecture-independent files in PREFIX
993 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
996 By default, \`make install' will install all the files in
997 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
998 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999 for instance \`--prefix=\$HOME'.
1001 For better control, use the options below.
1003 Fine tuning of the installation directories:
1004 --bindir=DIR user executables [EPREFIX/bin]
1005 --sbindir=DIR system admin executables [EPREFIX/sbin]
1006 --libexecdir=DIR program executables [EPREFIX/libexec]
1007 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1011 --libdir=DIR object code libraries [EPREFIX/lib]
1012 --includedir=DIR C header files [PREFIX/include]
1013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1014 --infodir=DIR info documentation [PREFIX/info]
1015 --mandir=DIR man documentation [PREFIX/man]
1021 --program-prefix=PREFIX prepend PREFIX to installed program names
1022 --program-suffix=SUFFIX append SUFFIX to installed program names
1023 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1026 --build=BUILD configure for building on BUILD [guessed]
1027 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1028 --target=TARGET configure for building compilers for TARGET [HOST]
1032 if test -n "$ac_init_help"; then
1037 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1038 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1039 --disable-dependency-tracking speeds up one-time build
1040 --enable-dependency-tracking do not reject slow dependency extractors
1041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
1047 --disable-libtool-lock avoid locking (might break parallel builds)
1048 --disable-largefile omit support for large files
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1053 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 --with-pic try to use only PIC/non-PIC objects [default=use
1057 include additional configurations [automatic]
1059 Some influential environment variables:
1060 CC C compiler command
1061 CFLAGS C compiler flags
1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
1067 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags
1069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
1072 PKG_CONFIG path to pkg-config utility
1073 DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config
1074 DEPS_LIBS linker flags for DEPS, overriding pkg-config
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1082 if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1089 if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 ac_dir_suffix= ac_top_builddir=
1098 .) # No --srcdir option. We are building in place.
1100 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1116 .) ac_abs_builddir="$ac_dir";;
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
1161 test -f $ac_srcdir/configure.in; then
1163 $ac_configure --help
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1175 Copyright (C) 2003 Free Software Foundation, Inc.
1176 This configure script is free software; the Free Software Foundation
1177 gives unlimited permission to copy, distribute and modify it.
1183 This file contains any messages produced by compilers while
1184 running configure, to aid debugging if configure makes a mistake.
1186 It was created by $as_me, which was
1187 generated by GNU Autoconf 2.59. Invocation command line was
1198 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1199 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1200 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1201 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1202 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1205 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1207 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1208 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1209 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1210 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1211 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1212 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1213 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221 test -z "$as_dir" && as_dir=.
1222 echo "PATH: $as_dir"
1237 # Keep a trace of the command line.
1238 # Strip out --no-create and --no-recursion so they do not pile up.
1239 # Strip out --silent because we don't want to record it for future runs.
1240 # Also quote any args containing shell meta-characters.
1241 # Make two passes to allow for proper duplicate-argument suppression.
1246 ac_must_keep_next=false
1252 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254 | -silent | --silent | --silen | --sile | --sil)
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1263 if test $ac_must_keep_next = true; then
1264 ac_must_keep_next=false # Got value, back to normal.
1267 *=* | --config-cache | -C | -disable-* | --disable-* \
1268 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1269 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1270 | -with-* | --with-* | -without-* | --without-* | --x)
1271 case "$ac_configure_args0 " in
1272 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275 -* ) ac_must_keep_next=true ;;
1278 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1279 # Get rid of the leading space.
1285 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1286 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1288 # When interrupted or exit'd, cleanup temporary files, and complete
1289 # config.log. We remove comments because anyway the quotes in there
1290 # would cause problems or look ugly.
1291 # WARNING: Be sure not to use single quotes in there, as some shells,
1292 # such as our DU 5.0 friend, will then `close' the trap.
1293 trap 'exit_status=$?
1294 # Save into config.log some information that might help in debugging.
1299 ## ---------------- ##
1300 ## Cache variables. ##
1301 ## ---------------- ##
1304 # The following way of writing the cache mishandles newlines in values,
1307 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1315 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1322 ## ----------------- ##
1323 ## Output variables. ##
1324 ## ----------------- ##
1327 for ac_var in $ac_subst_vars
1329 eval ac_val=$`echo $ac_var`
1330 echo "$ac_var='"'"'$ac_val'"'"'"
1334 if test -n "$ac_subst_files"; then
1341 for ac_var in $ac_subst_files
1343 eval ac_val=$`echo $ac_var`
1344 echo "$ac_var='"'"'$ac_val'"'"'"
1349 if test -s confdefs.h; then
1356 sed "/^$/d" confdefs.h | sort
1359 test "$ac_signal" != 0 &&
1360 echo "$as_me: caught signal $ac_signal"
1361 echo "$as_me: exit $exit_status"
1363 rm -f core *.core &&
1364 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367 for ac_signal in 1 2 13 15; do
1368 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1373 rm -rf conftest* confdefs.h
1374 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 # Predefined preprocessor variables.
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_NAME "$PACKAGE_NAME"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_STRING "$PACKAGE_STRING"
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404 # Let the site file select an alternate cache file if it wants to.
1405 # Prefer explicitly selected file to automatically selected ones.
1406 if test -z "$CONFIG_SITE"; then
1407 if test "x$prefix" != xNONE; then
1408 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413 for ac_site_file in $CONFIG_SITE; do
1414 if test -r "$ac_site_file"; then
1415 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1416 echo "$as_me: loading site script $ac_site_file" >&6;}
1417 sed 's/^/| /' "$ac_site_file" >&5
1422 if test -r "$cache_file"; then
1423 # Some versions of bash will fail to source /dev/null (special
1424 # files actually), so we avoid doing that.
1425 if test -f "$cache_file"; then
1426 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1427 echo "$as_me: loading cache $cache_file" >&6;}
1429 [\\/]* | ?:[\\/]* ) . $cache_file;;
1430 *) . ./$cache_file;;
1434 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1435 echo "$as_me: creating cache $cache_file" >&6;}
1439 # Check that the precious variables saved in the cache have kept the same
1441 ac_cache_corrupted=false
1442 for ac_var in `(set) 2>&1 |
1443 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1445 eval ac_new_set=\$ac_env_${ac_var}_set
1446 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1447 eval ac_new_val="\$ac_env_${ac_var}_value"
1448 case $ac_old_set,$ac_new_set in
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1459 if test "x$ac_old_val" != "x$ac_new_val"; then
1460 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1461 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1462 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1463 echo "$as_me: former value: $ac_old_val" >&2;}
1464 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1465 echo "$as_me: current value: $ac_new_val" >&2;}
1466 ac_cache_corrupted=:
1469 # Pass precious variables to config.status.
1470 if test "$ac_new_set" = set; then
1472 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1473 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1474 *) ac_arg=$ac_var=$ac_new_val ;;
1476 case " $ac_configure_args " in
1477 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1478 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482 if $ac_cache_corrupted; then
1483 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1484 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1485 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1486 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1487 { (exit 1); exit 1; }; }
1491 ac_cpp='$CPP $CPPFLAGS'
1492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1518 if test -f $ac_dir/install-sh; then
1520 ac_install_sh="$ac_aux_dir/install-sh -c"
1522 elif test -f $ac_dir/install.sh; then
1524 ac_install_sh="$ac_aux_dir/install.sh -c"
1526 elif test -f $ac_dir/shtool; then
1528 ac_install_sh="$ac_aux_dir/shtool install -c"
1532 if test -z "$ac_aux_dir"; then
1533 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1534 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1535 { (exit 1); exit 1; }; }
1537 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1538 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1539 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541 # Make sure we can run config.sub.
1542 $ac_config_sub sun4 >/dev/null 2>&1 ||
1543 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1544 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1545 { (exit 1); exit 1; }; }
1547 echo "$as_me:$LINENO: checking build system type" >&5
1548 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1549 if test "${ac_cv_build+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 ac_cv_build_alias=$build_alias
1553 test -z "$ac_cv_build_alias" &&
1554 ac_cv_build_alias=`$ac_config_guess`
1555 test -z "$ac_cv_build_alias" &&
1556 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1557 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1558 { (exit 1); exit 1; }; }
1559 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1565 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1566 echo "${ECHO_T}$ac_cv_build" >&6
1568 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573 echo "$as_me:$LINENO: checking host system type" >&5
1574 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1575 if test "${ac_cv_host+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 ac_cv_host_alias=$host_alias
1579 test -z "$ac_cv_host_alias" &&
1580 ac_cv_host_alias=$ac_cv_build_alias
1581 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1587 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1588 echo "${ECHO_T}$ac_cv_host" >&6
1590 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595 echo "$as_me:$LINENO: checking target system type" >&5
1596 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1597 if test "${ac_cv_target+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 ac_cv_target_alias=$target_alias
1601 test "x$ac_cv_target_alias" = "x" &&
1602 ac_cv_target_alias=$ac_cv_host_alias
1603 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1604 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1605 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1606 { (exit 1); exit 1; }; }
1609 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1610 echo "${ECHO_T}$ac_cv_target" >&6
1611 target=$ac_cv_target
1612 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1613 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1614 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1617 # The aliases save the names the user supplied, while $host etc.
1618 # will get canonicalized.
1619 test -n "$target_alias" &&
1620 test "$program_prefix$program_suffix$program_transform_name" = \
1622 program_prefix=${target_alias}-
1624 for ac_dir in . $srcdir/.; do
1625 if test -f $ac_dir/install-sh; then
1627 ac_install_sh="$ac_aux_dir/install-sh -c"
1629 elif test -f $ac_dir/install.sh; then
1631 ac_install_sh="$ac_aux_dir/install.sh -c"
1633 elif test -f $ac_dir/shtool; then
1635 ac_install_sh="$ac_aux_dir/shtool install -c"
1639 if test -z "$ac_aux_dir"; then
1640 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1641 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1642 { (exit 1); exit 1; }; }
1644 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1645 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1646 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1649 am__api_version="1.9"
1650 # Find a good install program. We prefer a C program (faster),
1651 # so one script is as good as another. But avoid the broken or
1652 # incompatible versions:
1653 # SysV /etc/install, /usr/sbin/install
1654 # SunOS /usr/etc/install
1655 # IRIX /sbin/install
1657 # AmigaOS /C/install, which installs bootblocks on floppy discs
1658 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1661 # OS/2's system install, which has a completely different semantic
1662 # ./install, which can be erroneously created by make from ./install.sh.
1663 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1664 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1665 if test -z "$INSTALL"; then
1666 if test "${ac_cv_path_install+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir=.
1674 # Account for people who put trailing slashes in PATH elements.
1676 ./ | .// | /cC/* | \
1677 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1678 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1681 # OSF1 and SCO ODT 3.0 have their own names for install.
1682 # Don't use installbsd from OSF since it installs stuff as root
1684 for ac_prog in ginstall scoinst install; do
1685 for ac_exec_ext in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1687 if test $ac_prog = install &&
1688 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1689 # AIX install. It has an incompatible calling convention.
1691 elif test $ac_prog = install &&
1692 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1693 # program-specific install script used by HP pwplus--don't use.
1696 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1708 if test "${ac_cv_path_install+set}" = set; then
1709 INSTALL=$ac_cv_path_install
1711 # As a last resort, use the slow shell script. We don't cache a
1712 # path for INSTALL within a source directory, because that will
1713 # break other packages using the cache if that directory is
1714 # removed, or if the path is relative.
1715 INSTALL=$ac_install_sh
1718 echo "$as_me:$LINENO: result: $INSTALL" >&5
1719 echo "${ECHO_T}$INSTALL" >&6
1721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1722 # It thinks the first close brace ends the variable substitution.
1723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1729 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1730 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1733 echo timestamp > conftest.file
1734 # Do `set' in a subshell so we don't clobber the current shell's
1735 # arguments. Must try -L first in case configure is actually a
1736 # symlink; some systems play weird games with the mod time of symlinks
1737 # (eg FreeBSD returns the mod time of the symlink's containing
1740 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1741 if test "$*" = "X"; then
1743 set X `ls -t $srcdir/configure conftest.file`
1746 if test "$*" != "X $srcdir/configure conftest.file" \
1747 && test "$*" != "X conftest.file $srcdir/configure"; then
1749 # If neither matched, then we have a broken ls. This can happen
1750 # if, for instance, CONFIG_SHELL is bash and it inherits a
1751 # broken ls alias from the environment. This has actually
1752 # happened. Such a system could not be considered "sane".
1753 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1754 alias in your environment" >&5
1755 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1756 alias in your environment" >&2;}
1757 { (exit 1); exit 1; }; }
1760 test "$2" = conftest.file
1766 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1767 Check your system clock" >&5
1768 echo "$as_me: error: newly created file is older than distributed files!
1769 Check your system clock" >&2;}
1770 { (exit 1); exit 1; }; }
1772 echo "$as_me:$LINENO: result: yes" >&5
1773 echo "${ECHO_T}yes" >&6
1774 test "$program_prefix" != NONE &&
1775 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1776 # Use a double $ so make ignores it.
1777 test "$program_suffix" != NONE &&
1778 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1779 # Double any \ or $. echo might interpret backslashes.
1780 # By default was `s,x,x', remove it if useless.
1781 cat <<\_ACEOF >conftest.sed
1782 s/[\\$]/&&/g;s/;s,x,x,$//
1784 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1787 # expand $ac_aux_dir to an absolute path
1788 am_aux_dir=`cd $ac_aux_dir && pwd`
1790 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1791 # Use eval to expand $SHELL
1792 if eval "$MISSING --run true"; then
1793 am_missing_run="$MISSING --run "
1796 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1797 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1800 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1801 # We used to keeping the `.' as first argument, in order to
1802 # allow $(mkdir_p) to be used without argument. As in
1803 # $(mkdir_p) $(somedir)
1804 # where $(somedir) is conditionally defined. However this is wrong
1806 # 1. if the package is installed by a user who cannot write `.'
1807 # make install will fail,
1808 # 2. the above comment should most certainly read
1809 # $(mkdir_p) $(DESTDIR)$(somedir)
1810 # so it does not work when $(somedir) is undefined and
1811 # $(DESTDIR) is not.
1812 # To support the latter case, we have to write
1813 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1814 # so the `.' trick is pointless.
1815 mkdir_p='mkdir -p --'
1817 # On NextStep and OpenStep, the `mkdir' command does not
1818 # recognize any option. It will interpret all options as
1819 # directories to create, and then abort because `.' already
1821 for d in ./-p ./--version;
1823 test -d $d && rmdir $d
1825 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1826 if test -f "$ac_aux_dir/mkinstalldirs"; then
1827 mkdir_p='$(mkinstalldirs)'
1829 mkdir_p='$(install_sh) -d'
1833 for ac_prog in gawk mawk nawk awk
1835 # Extract the first word of "$ac_prog", so it can be a program name with args.
1836 set dummy $ac_prog; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_AWK+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 if test -n "$AWK"; then
1843 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852 ac_cv_prog_AWK="$ac_prog"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 if test -n "$AWK"; then
1863 echo "$as_me:$LINENO: result: $AWK" >&5
1864 echo "${ECHO_T}$AWK" >&6
1866 echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1870 test -n "$AWK" && break
1873 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1874 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1875 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1876 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 cat >conftest.make <<\_ACEOF
1881 @echo 'ac_maketemp="$(MAKE)"'
1883 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1884 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1885 if test -n "$ac_maketemp"; then
1886 eval ac_cv_prog_make_${ac_make}_set=yes
1888 eval ac_cv_prog_make_${ac_make}_set=no
1892 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1893 echo "$as_me:$LINENO: result: yes" >&5
1894 echo "${ECHO_T}yes" >&6
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1899 SET_MAKE="MAKE=${MAKE-make}"
1902 rm -rf .tst 2>/dev/null
1903 mkdir .tst 2>/dev/null
1904 if test -d .tst; then
1909 rmdir .tst 2>/dev/null
1911 # test to see if srcdir already configured
1912 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1913 test -f $srcdir/config.status; then
1914 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1915 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1916 { (exit 1); exit 1; }; }
1919 # test whether we have cygpath
1920 if test -z "$CYGPATH_W"; then
1921 if (cygpath --version) >/dev/null 2>/dev/null; then
1922 CYGPATH_W='cygpath -w'
1929 # Define the identity of the package.
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE "$PACKAGE"
1939 cat >>confdefs.h <<_ACEOF
1940 #define VERSION "$VERSION"
1943 # Some tools Automake needs.
1945 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1948 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1951 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1954 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1957 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1959 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1961 # Installed binaries are usually stripped using `strip' when the user
1962 # run `make install-strip'. However `strip' might not be the right
1963 # tool to use in cross-compilation environments, therefore Automake
1964 # will honor the `STRIP' environment variable to overrule this program.
1965 if test "$cross_compiling" != no; then
1966 if test -n "$ac_tool_prefix"; then
1967 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}strip; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_STRIP+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test -n "$STRIP"; then
1975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 STRIP=$ac_cv_prog_STRIP
1994 if test -n "$STRIP"; then
1995 echo "$as_me:$LINENO: result: $STRIP" >&5
1996 echo "${ECHO_T}$STRIP" >&6
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2003 if test -z "$ac_cv_prog_STRIP"; then
2005 # Extract the first word of "strip", so it can be a program name with args.
2006 set dummy strip; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$ac_ct_STRIP"; then
2013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_ac_ct_STRIP="strip"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2033 if test -n "$ac_ct_STRIP"; then
2034 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2035 echo "${ECHO_T}$ac_ct_STRIP" >&6
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2043 STRIP="$ac_cv_prog_STRIP"
2047 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2049 # We need awk for the "check" target. The system "awk" is bad on
2051 # Always define AMTAR for backward compatibility.
2053 AMTAR=${AMTAR-"${am_missing_run}tar"}
2055 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2063 ac_cpp='$CPP $CPPFLAGS'
2064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067 if test -n "$ac_tool_prefix"; then
2068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 if test -n "$CC"; then
2096 echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2104 if test -z "$ac_cv_prog_CC"; then
2106 # Extract the first word of "gcc", so it can be a program name with args.
2107 set dummy gcc; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_ac_ct_CC="gcc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2133 if test -n "$ac_ct_CC"; then
2134 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135 echo "${ECHO_T}$ac_ct_CC" >&6
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2146 if test -z "$CC"; then
2147 if test -n "$ac_tool_prefix"; then
2148 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2149 set dummy ${ac_tool_prefix}cc; ac_word=$2
2150 echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165 ac_cv_prog_CC="${ac_tool_prefix}cc"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 if test -n "$CC"; then
2176 echo "$as_me:$LINENO: result: $CC" >&5
2177 echo "${ECHO_T}$CC" >&6
2179 echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2184 if test -z "$ac_cv_prog_CC"; then
2186 # Extract the first word of "cc", so it can be a program name with args.
2187 set dummy cc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203 ac_cv_prog_ac_ct_CC="cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213 if test -n "$ac_ct_CC"; then
2214 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2215 echo "${ECHO_T}$ac_ct_CC" >&6
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2227 if test -z "$CC"; then
2228 # Extract the first word of "cc", so it can be a program name with args.
2229 set dummy cc; ac_word=$2
2230 echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2247 ac_prog_rejected=yes
2251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 if test $ac_prog_rejected = yes; then
2258 # We found a bogon in the path, so make sure we never use it.
2259 set dummy $ac_cv_prog_CC
2261 if test $# != 0; then
2262 # We chose a different compiler from the bogus one.
2263 # However, it has the same basename, so the bogon will be chosen
2264 # first if we set CC to just the basename; use the full file name.
2266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2272 if test -n "$CC"; then
2273 echo "$as_me:$LINENO: result: $CC" >&5
2274 echo "${ECHO_T}$CC" >&6
2276 echo "$as_me:$LINENO: result: no" >&5
2277 echo "${ECHO_T}no" >&6
2281 if test -z "$CC"; then
2282 if test -n "$ac_tool_prefix"; then
2285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2287 echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2289 if test "${ac_cv_prog_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 if test -n "$CC"; then
2293 ac_cv_prog_CC="$CC" # Let the user override the test.
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 if test -n "$CC"; then
2313 echo "$as_me:$LINENO: result: $CC" >&5
2314 echo "${ECHO_T}$CC" >&6
2316 echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6
2320 test -n "$CC" && break
2323 if test -z "$CC"; then
2327 # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2331 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 if test -n "$ac_ct_CC"; then
2335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344 ac_cv_prog_ac_ct_CC="$ac_prog"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2354 if test -n "$ac_ct_CC"; then
2355 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2356 echo "${ECHO_T}$ac_ct_CC" >&6
2358 echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6
2362 test -n "$ac_ct_CC" && break
2371 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: no acceptable C compiler found in \$PATH
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2377 # Provide some information about the compiler.
2378 echo "$as_me:$LINENO:" \
2379 "checking for C compiler version" >&5
2380 ac_compiler=`set X $ac_compile; echo $2`
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2382 (eval $ac_compiler --version </dev/null >&5) 2>&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2386 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2387 (eval $ac_compiler -v </dev/null >&5) 2>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }
2391 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2392 (eval $ac_compiler -V </dev/null >&5) 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2412 ac_clean_files_save=$ac_clean_files
2413 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2414 # Try to create an executable without -o first, disregard a.out.
2415 # It will help us diagnose broken compilers, and finding out an intuition
2417 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2418 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2419 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2420 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2421 (eval $ac_link_default) 2>&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; then
2425 # Find the output, starting from the most likely. This scheme is
2426 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2429 # Be careful to initialize this variable, since it used to be cached.
2430 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2432 # b.out is created by i960 compilers.
2433 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2435 test -f "$ac_file" || continue
2437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2440 # This is the source file.
2443 # We found the default executable, but exeext='' is most
2447 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2448 # FIXME: I believe we export ac_cv_exeext for Libtool,
2449 # but it would be cool to find out if it's true. Does anybody
2450 # maintain Libtool? --akim.
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2461 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2462 See \`config.log' for more details." >&5
2463 echo "$as_me: error: C compiler cannot create executables
2464 See \`config.log' for more details." >&2;}
2465 { (exit 77); exit 77; }; }
2468 ac_exeext=$ac_cv_exeext
2469 echo "$as_me:$LINENO: result: $ac_file" >&5
2470 echo "${ECHO_T}$ac_file" >&6
2472 # Check the compiler produces executables we can run. If not, either
2473 # the compiler is broken, or we cross compile.
2474 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2475 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2476 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2477 # If not cross compiling, check that we can run a simple program.
2478 if test "$cross_compiling" != yes; then
2479 if { ac_try='./$ac_file'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2487 if test "$cross_compiling" = maybe; then
2490 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2491 If you meant to cross compile, use \`--host'.
2492 See \`config.log' for more details." >&5
2493 echo "$as_me: error: cannot run C compiled programs.
2494 If you meant to cross compile, use \`--host'.
2495 See \`config.log' for more details." >&2;}
2496 { (exit 1); exit 1; }; }
2500 echo "$as_me:$LINENO: result: yes" >&5
2501 echo "${ECHO_T}yes" >&6
2503 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2504 ac_clean_files=$ac_clean_files_save
2505 # Check the compiler produces executables we can run. If not, either
2506 # the compiler is broken, or we cross compile.
2507 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2508 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2509 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2510 echo "${ECHO_T}$cross_compiling" >&6
2512 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2513 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2515 (eval $ac_link) 2>&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; then
2519 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2520 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2521 # work properly (i.e., refer to `conftest.exe'), while it won't with
2523 for ac_file in conftest.exe conftest conftest.*; do
2524 test -f "$ac_file" || continue
2526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2527 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2534 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2535 See \`config.log' for more details." >&5
2536 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2537 See \`config.log' for more details." >&2;}
2538 { (exit 1); exit 1; }; }
2541 rm -f conftest$ac_cv_exeext
2542 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2543 echo "${ECHO_T}$ac_cv_exeext" >&6
2545 rm -f conftest.$ac_ext
2546 EXEEXT=$ac_cv_exeext
2548 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2549 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2550 if test "${ac_cv_objext+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2568 rm -f conftest.o conftest.obj
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 (eval $ac_compile) 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; then
2574 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2577 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2588 See \`config.log' for more details." >&2;}
2589 { (exit 1); exit 1; }; }
2592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2594 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2595 echo "${ECHO_T}$ac_cv_objext" >&6
2596 OBJEXT=$ac_cv_objext
2598 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2599 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2600 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 cat >conftest.$ac_ext <<_ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2621 rm -f conftest.$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623 (eval $ac_compile) 2>conftest.er1
2625 grep -v '^ *+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2654 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2655 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2656 GCC=`test $ac_compiler_gnu = yes && echo yes`
2657 ac_test_CFLAGS=${CFLAGS+set}
2658 ac_save_CFLAGS=$CFLAGS
2660 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2661 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_g+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 cat >conftest.$ac_ext <<_ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>conftest.er1
2684 grep -v '^ *+' conftest.er1 >conftest.err
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2711 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2712 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2713 if test "$ac_test_CFLAGS" = set; then
2714 CFLAGS=$ac_save_CFLAGS
2715 elif test $ac_cv_prog_cc_g = yes; then
2716 if test "$GCC" = yes; then
2722 if test "$GCC" = yes; then
2728 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2729 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2730 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 ac_cv_prog_cc_stdc=no
2735 cat >conftest.$ac_ext <<_ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2743 #include <sys/types.h>
2744 #include <sys/stat.h>
2745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2746 struct buf { int x; };
2747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2748 static char *e (p, i)
2754 static char *f (char * (*g) (char **, int), char **p, ...)
2759 s = g (p, va_arg (v,int));
2764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2765 function prototypes and stuff, but not '\xHH' hex character constants.
2766 These don't provoke an error unfortunately, instead are silently treated
2767 as 'x'. The following induces an error, until -std1 is added to get
2768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2769 array size at least. It's necessary to write '\x00'==0 to get something
2770 that's true only with -std1. */
2771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2773 int test (int i, double x);
2774 struct s1 {int (*f) (int a);};
2775 struct s2 {int (*f) (double a);};
2776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2787 # Don't try gcc -ansi; that turns off useful extensions and
2788 # breaks some systems' header files.
2789 # AIX -qlanglvl=ansi
2790 # Ultrix and OSF/1 -std1
2791 # HP-UX 10.20 and later -Ae
2792 # HP-UX older versions -Aa -D_HPUX_SOURCE
2793 # SVR4 -Xc -D__EXTENSIONS__
2794 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2796 CC="$ac_save_CC $ac_arg"
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>conftest.er1
2801 grep -v '^ *+' conftest.er1 >conftest.err
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 { ac_try='test -z "$ac_c_werror_flag"
2807 || test ! -s conftest.err'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 ac_cv_prog_cc_stdc=$ac_arg
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2826 rm -f conftest.err conftest.$ac_objext
2828 rm -f conftest.$ac_ext conftest.$ac_objext
2833 case "x$ac_cv_prog_cc_stdc" in
2835 echo "$as_me:$LINENO: result: none needed" >&5
2836 echo "${ECHO_T}none needed" >&6 ;;
2838 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2839 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2840 CC="$CC $ac_cv_prog_cc_stdc" ;;
2843 # Some people use a C++ compiler to compile C. Since we use `exit',
2844 # in C++ we need to declare it. In case someone uses the same compiler
2845 # for both compiling C and C++ we need to have the C++ compiler decide
2846 # the declaration of exit, since it's the most demanding environment.
2847 cat >conftest.$ac_ext <<_ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2856 grep -v '^ *+' conftest.er1 >conftest.err
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 for ac_declaration in \
2876 'extern "C" void std::exit (int) throw (); using std::exit;' \
2877 'extern "C" void std::exit (int); using std::exit;' \
2878 'extern "C" void exit (int) throw ();' \
2879 'extern "C" void exit (int);' \
2882 cat >conftest.$ac_ext <<_ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -z "$ac_c_werror_flag"
2908 || test ! -s conftest.err'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_c_werror_flag"
2953 || test ! -s conftest.err'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2974 if test -n "$ac_declaration"; then
2975 echo '#ifdef __cplusplus' >>confdefs.h
2976 echo $ac_declaration >>confdefs.h
2977 echo '#endif' >>confdefs.h
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991 DEPDIR="${am__leading_dot}deps"
2993 ac_config_commands="$ac_config_commands depfiles"
2996 am_make=${MAKE-make}
2997 cat > confinc << 'END'
3002 # If we don't find an include directive, just comment out the code.
3003 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3004 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3008 # First try GNU make style include.
3009 echo "include confinc" > confmf
3010 # We grep out `Entering directory' and `Leaving directory'
3011 # messages which can occur if `w' ends up in MAKEFLAGS.
3012 # In particular we don't look at `^make:' because GNU make might
3013 # be invoked under some other name (usually "gmake"), in which
3014 # case it prints its new name instead of `make'.
3015 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3020 # Now try BSD make style include.
3021 if test "$am__include" = "#"; then
3022 echo '.include "confinc"' > confmf
3023 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3024 am__include=.include
3031 echo "$as_me:$LINENO: result: $_am_result" >&5
3032 echo "${ECHO_T}$_am_result" >&6
3033 rm -f confinc confmf
3035 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3036 if test "${enable_dependency_tracking+set}" = set; then
3037 enableval="$enable_dependency_tracking"
3040 if test "x$enable_dependency_tracking" != xno; then
3041 am_depcomp="$ac_aux_dir/depcomp"
3046 if test "x$enable_dependency_tracking" != xno; then
3057 depcc="$CC" am_compiler_list=
3059 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3060 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3061 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3065 # We make a subdir and do the tests there. Otherwise we can end up
3066 # making bogus files that we don't know about and never remove. For
3067 # instance it was reported that on HP-UX the gcc test will end up
3068 # making a dummy file named `D' -- because `-MD' means `put the output
3071 # Copy depcomp to subdir because otherwise we won't find it if we're
3072 # using a relative directory.
3073 cp "$am_depcomp" conftest.dir
3075 # We will build objects and dependencies in a subdirectory because
3076 # it helps to detect inapplicable dependency modes. For instance
3077 # both Tru64's cc and ICC support -MD to output dependencies as a
3078 # side effect of compilation, but ICC will put the dependencies in
3079 # the current directory while Tru64 will put them in the object
3083 am_cv_CC_dependencies_compiler_type=none
3084 if test "$am_compiler_list" = ""; then
3085 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3087 for depmode in $am_compiler_list; do
3088 # Setup a source with many dependencies, because some compilers
3089 # like to wrap large dependency lists on column 80 (with \), and
3090 # we should not choose a depcomp mode which is confused by this.
3092 # We need to recreate these files for each test, as the compiler may
3093 # overwrite some of them when testing with obscure command lines.
3094 # This happens at least with the AIX C compiler.
3096 for i in 1 2 3 4 5 6; do
3097 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3098 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3099 # Solaris 8's {/usr,}/bin/sh.
3100 touch sub/conftst$i.h
3102 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3106 # after this tag, mechanisms are not by side-effect, so they'll
3107 # only be used when explicitly requested
3108 if test "x$enable_dependency_tracking" = xyes; then
3116 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3117 # mode. It turns out that the SunPro C++ compiler does not properly
3118 # handle `-M -o', and we need to detect this.
3119 if depmode=$depmode \
3120 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3121 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3122 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3123 >/dev/null 2>conftest.err &&
3124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3125 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3127 # icc doesn't choke on unknown options, it will just issue warnings
3128 # or remarks (even with -Werror). So we grep stderr for any message
3129 # that says an option was ignored or not supported.
3130 # When given -MP, icc 7.0 and 7.1 complain thusly:
3131 # icc: Command line warning: ignoring option '-M'; no argument required
3132 # The diagnosis changed in icc 8.0:
3133 # icc: Command line remark: option '-MP' not supported
3134 if (grep 'ignoring option' conftest.err ||
3135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3136 am_cv_CC_dependencies_compiler_type=$depmode
3145 am_cv_CC_dependencies_compiler_type=none
3149 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3150 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3156 test "x$enable_dependency_tracking" != xno \
3157 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3159 am__fastdepCC_FALSE='#'
3161 am__fastdepCC_TRUE='#'
3162 am__fastdepCC_FALSE=
3167 # Check whether --enable-shared or --disable-shared was given.
3168 if test "${enable_shared+set}" = set; then
3169 enableval="$enable_shared"
3170 p=${PACKAGE-default}
3172 yes) enable_shared=yes ;;
3173 no) enable_shared=no ;;
3176 # Look at the argument we got. We use all the common list separators.
3177 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3178 for pkg in $enableval; do
3180 if test "X$pkg" = "X$p"; then
3191 # Check whether --enable-static or --disable-static was given.
3192 if test "${enable_static+set}" = set; then
3193 enableval="$enable_static"
3194 p=${PACKAGE-default}
3196 yes) enable_static=yes ;;
3197 no) enable_static=no ;;
3200 # Look at the argument we got. We use all the common list separators.
3201 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3202 for pkg in $enableval; do
3204 if test "X$pkg" = "X$p"; then
3215 # Check whether --enable-fast-install or --disable-fast-install was given.
3216 if test "${enable_fast_install+set}" = set; then
3217 enableval="$enable_fast_install"
3218 p=${PACKAGE-default}
3220 yes) enable_fast_install=yes ;;
3221 no) enable_fast_install=no ;;
3223 enable_fast_install=no
3224 # Look at the argument we got. We use all the common list separators.
3225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3226 for pkg in $enableval; do
3228 if test "X$pkg" = "X$p"; then
3229 enable_fast_install=yes
3236 enable_fast_install=yes
3239 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3240 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3241 if test "${lt_cv_path_SED+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 # Loop through the user's path and test for sed and gsed.
3245 # Then use that list of sed's as ones to test for truncation.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir=.
3251 for lt_ac_prog in sed gsed; do
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3254 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3261 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3262 # along with /bin/sed that truncates output.
3263 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3264 test ! -f $lt_ac_sed && continue
3265 cat /dev/null > conftest.in
3267 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3268 # Check for GNU sed and select it if it is found.
3269 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3270 lt_cv_path_SED=$lt_ac_sed
3274 cat conftest.in conftest.in >conftest.tmp
3275 mv conftest.tmp conftest.in
3276 cp conftest.in conftest.nl
3278 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3279 cmp -s conftest.out conftest.nl || break
3280 # 10000 chars as input seems more than enough
3281 test $lt_ac_count -gt 10 && break
3282 lt_ac_count=`expr $lt_ac_count + 1`
3283 if test $lt_ac_count -gt $lt_ac_max; then
3284 lt_ac_max=$lt_ac_count
3285 lt_cv_path_SED=$lt_ac_sed
3293 echo "$as_me:$LINENO: result: $SED" >&5
3294 echo "${ECHO_T}$SED" >&6
3296 echo "$as_me:$LINENO: checking for egrep" >&5
3297 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3298 if test "${ac_cv_prog_egrep+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3302 then ac_cv_prog_egrep='grep -E'
3303 else ac_cv_prog_egrep='egrep'
3306 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3307 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3308 EGREP=$ac_cv_prog_egrep
3312 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3313 if test "${with_gnu_ld+set}" = set; then
3314 withval="$with_gnu_ld"
3315 test "$withval" = no || with_gnu_ld=yes
3320 if test "$GCC" = yes; then
3321 # Check if gcc -print-prog-name=ld gives a path.
3322 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3323 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3326 # gcc leaves a trailing carriage return which upsets mingw
3327 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3329 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3332 # Accept absolute paths.
3334 re_direlt='/[^/][^/]*/\.\./'
3335 # Canonicalize the pathname of ld
3336 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3337 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3338 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3340 test -z "$LD" && LD="$ac_prog"
3343 # If it fails, then pretend we aren't using GCC.
3347 # If it is relative, then search for the first ld in PATH.
3351 elif test "$with_gnu_ld" = yes; then
3352 echo "$as_me:$LINENO: checking for GNU ld" >&5
3353 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3355 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3356 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3358 if test "${lt_cv_path_LD+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 if test -z "$LD"; then
3362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3363 for ac_dir in $PATH; do
3365 test -z "$ac_dir" && ac_dir=.
3366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3367 lt_cv_path_LD="$ac_dir/$ac_prog"
3368 # Check to see if the program is GNU ld. I'd rather use --version,
3369 # but apparently some variants of GNU ld only accept -v.
3370 # Break only if it was the GNU/non-GNU ld that we prefer.
3371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3372 *GNU* | *'with BFD'*)
3373 test "$with_gnu_ld" != no && break
3376 test "$with_gnu_ld" != yes && break
3383 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3388 if test -n "$LD"; then
3389 echo "$as_me:$LINENO: result: $LD" >&5
3390 echo "${ECHO_T}$LD" >&6
3392 echo "$as_me:$LINENO: result: no" >&5
3393 echo "${ECHO_T}no" >&6
3395 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3396 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3397 { (exit 1); exit 1; }; }
3398 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3399 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3400 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3404 case `$LD -v 2>&1 </dev/null` in
3405 *GNU* | *'with BFD'*)
3406 lt_cv_prog_gnu_ld=yes
3409 lt_cv_prog_gnu_ld=no
3413 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3414 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3415 with_gnu_ld=$lt_cv_prog_gnu_ld
3418 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3419 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3420 if test "${lt_cv_ld_reload_flag+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 lt_cv_ld_reload_flag='-r'
3425 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3426 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3427 reload_flag=$lt_cv_ld_reload_flag
3428 case $reload_flag in
3430 *) reload_flag=" $reload_flag" ;;
3432 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3435 if test "$GCC" = yes; then
3436 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3443 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3444 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3445 if test "${lt_cv_path_NM+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 if test -n "$NM"; then
3449 # Let the user override the test.
3452 lt_nm_to_check="${ac_tool_prefix}nm"
3453 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3454 lt_nm_to_check="$lt_nm_to_check nm"
3456 for lt_tmp_nm in $lt_nm_to_check; do
3457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3458 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3460 test -z "$ac_dir" && ac_dir=.
3461 tmp_nm="$ac_dir/$lt_tmp_nm"
3462 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3463 # Check to see if the nm accepts a BSD-compat flag.
3464 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3465 # nm: unknown option "B" ignored
3466 # Tru64's nm complains that /dev/null is an invalid object file
3467 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3468 */dev/null* | *'Invalid file or object type'*)
3469 lt_cv_path_NM="$tmp_nm -B"
3473 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3475 lt_cv_path_NM="$tmp_nm -p"
3479 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3480 continue # so that we can try to find one that supports BSD flags
3489 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3492 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3493 echo "${ECHO_T}$lt_cv_path_NM" >&6
3496 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3497 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3499 if test "$LN_S" = "ln -s"; then
3500 echo "$as_me:$LINENO: result: yes" >&5
3501 echo "${ECHO_T}yes" >&6
3503 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3504 echo "${ECHO_T}no, using $LN_S" >&6
3507 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3508 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3509 if test "${lt_cv_deplibs_check_method+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 lt_cv_file_magic_cmd='$MAGIC_CMD'
3513 lt_cv_file_magic_test_file=
3514 lt_cv_deplibs_check_method='unknown'
3515 # Need to set the preceding variable on all platforms that support
3516 # interlibrary dependencies.
3517 # 'none' -- dependencies not supported.
3518 # `unknown' -- same as none, but documents that we really don't know.
3519 # 'pass_all' -- all dependencies passed with no checks.
3520 # 'test_compile' -- check by making test program.
3521 # 'file_magic [[regex]]' -- check by looking for files in library path
3522 # which responds to the $file_magic_cmd with a given extended regex.
3523 # If you have `file' or equivalent on your system and you're not sure
3524 # whether `pass_all' will *always* work, you probably want this one.
3528 lt_cv_deplibs_check_method=pass_all
3532 lt_cv_deplibs_check_method=pass_all
3536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3537 lt_cv_file_magic_cmd='/usr/bin/file -L'
3538 lt_cv_file_magic_test_file=/shlib/libc.so
3542 # func_win32_libid is a shell function defined in ltmain.sh
3543 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3544 lt_cv_file_magic_cmd='func_win32_libid'
3548 # Base MSYS/MinGW do not provide the 'file' command needed by
3549 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3550 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3551 lt_cv_file_magic_cmd='$OBJDUMP -f'
3554 darwin* | rhapsody*)
3555 lt_cv_deplibs_check_method=pass_all
3558 freebsd* | kfreebsd*-gnu | dragonfly*)
3559 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3562 # Not sure whether the presence of OpenBSD here was a mistake.
3563 # Let's accept both of them until this is cleared up.
3564 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3565 lt_cv_file_magic_cmd=/usr/bin/file
3566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3570 lt_cv_deplibs_check_method=pass_all
3575 lt_cv_deplibs_check_method=pass_all
3578 hpux10.20* | hpux11*)
3579 lt_cv_file_magic_cmd=/usr/bin/file
3582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3583 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3586 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]'
3587 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3591 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3597 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3601 irix5* | irix6* | nonstopux*)
3603 *-32|*"-32 ") libmagic=32-bit;;
3604 *-n32|*"-n32 ") libmagic=N32;;
3605 *-64|*"-64 ") libmagic=64-bit;;
3606 *) libmagic=never-match;;
3608 lt_cv_deplibs_check_method=pass_all
3611 # This must be Linux ELF.
3613 lt_cv_deplibs_check_method=pass_all
3617 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3626 lt_cv_file_magic_cmd=/usr/bin/file
3627 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3631 lt_cv_deplibs_check_method=unknown
3635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3642 osf3* | osf4* | osf5*)
3643 lt_cv_deplibs_check_method=pass_all
3647 lt_cv_deplibs_check_method=pass_all
3651 case $host_vendor in
3653 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]'
3654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3657 lt_cv_deplibs_check_method=pass_all
3660 lt_cv_file_magic_cmd='/bin/file'
3661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3664 lt_cv_file_magic_cmd='/bin/file'
3665 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3666 lt_cv_file_magic_test_file=/lib/libc.so
3669 lt_cv_deplibs_check_method=pass_all
3672 lt_cv_deplibs_check_method=pass_all
3677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3678 lt_cv_deplibs_check_method=pass_all
3683 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3684 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3685 file_magic_cmd=$lt_cv_file_magic_cmd
3686 deplibs_check_method=$lt_cv_deplibs_check_method
3687 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3692 # If no C compiler was specified, use CC.
3695 # If no C compiler flags were specified, use CFLAGS.
3696 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3698 # Allow CC to be a program name with arguments.
3702 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3703 if test "${enable_libtool_lock+set}" = set; then
3704 enableval="$enable_libtool_lock"
3707 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3709 # Some flags need to be propagated to the compiler or linker for good
3713 # Find out which ABI we are using.
3714 echo 'int i;' > conftest.$ac_ext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; then
3720 case `/usr/bin/file conftest.$ac_objext` in
3732 # Find out which ABI we are using.
3733 echo '#line 3733 "configure"' > conftest.$ac_ext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; then
3739 if test "$lt_cv_prog_gnu_ld" = yes; then
3740 case `/usr/bin/file conftest.$ac_objext` in
3742 LD="${LD-ld} -melf32bsmip"
3745 LD="${LD-ld} -melf32bmipn32"
3748 LD="${LD-ld} -melf64bmip"
3752 case `/usr/bin/file conftest.$ac_objext` in
3768 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3769 # Find out which ABI we are using.
3770 echo 'int i;' > conftest.$ac_ext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; then
3776 case `/usr/bin/file conftest.o` in
3780 LD="${LD-ld} -m elf_i386"
3782 ppc64-*linux*|powerpc64-*linux*)
3783 LD="${LD-ld} -m elf32ppclinux"
3786 LD="${LD-ld} -m elf_s390"
3789 LD="${LD-ld} -m elf32_sparc"
3796 LD="${LD-ld} -m elf_x86_64"
3798 ppc*-*linux*|powerpc*-*linux*)
3799 LD="${LD-ld} -m elf64ppc"
3802 LD="${LD-ld} -m elf64_s390"
3805 LD="${LD-ld} -m elf64_sparc"
3815 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3816 SAVE_CFLAGS="$CFLAGS"
3817 CFLAGS="$CFLAGS -belf"
3818 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3819 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3820 if test "${lt_cv_cc_needs_belf+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829 cat >conftest.$ac_ext <<_ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3844 rm -f conftest.$ac_objext conftest$ac_exeext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 lt_cv_cc_needs_belf=yes
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 lt_cv_cc_needs_belf=no
3873 rm -f conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3883 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3884 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3885 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3886 CFLAGS="$SAVE_CFLAGS"
3890 # Find out which ABI we are using.
3891 echo 'int i;' > conftest.$ac_ext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; then
3897 case `/usr/bin/file conftest.o` in
3899 case $lt_cv_prog_gnu_ld in
3900 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3901 *) LD="${LD-ld} -64" ;;
3912 need_locks="$enable_libtool_lock"
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3921 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3922 # On Suns, sometimes $CPP names a directory.
3923 if test -n "$CPP" && test -d "$CPP"; then
3926 if test -z "$CPP"; then
3927 if test "${ac_cv_prog_CPP+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 # Double quotes because CPP needs to be expanded
3931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3934 for ac_c_preproc_warn_flag in '' yes
3936 # Use a header file that comes with gcc, so configuring glibc
3937 # with a fresh cross-compiler works.
3938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3939 # <limits.h> exists even on freestanding compilers.
3940 # On the NeXT, cc -E runs the code through the compiler's parser,
3941 # not just through cpp. "Syntax error" is here to catch this case.
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3949 # include <limits.h>
3951 # include <assert.h>
3955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3958 grep -v '^ *+' conftest.er1 >conftest.err
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } >/dev/null; then
3963 if test -s conftest.err; then
3964 ac_cpp_err=$ac_c_preproc_warn_flag
3965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3972 if test -z "$ac_cpp_err"; then
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 # Broken: fails on valid input.
3981 rm -f conftest.err conftest.$ac_ext
3983 # OK, works on sane cases. Now check whether non-existent headers
3984 # can be detected and how.
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 #include <ac_nonexistent.h>
3993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3996 grep -v '^ *+' conftest.er1 >conftest.err
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } >/dev/null; then
4001 if test -s conftest.err; then
4002 ac_cpp_err=$ac_c_preproc_warn_flag
4003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4010 if test -z "$ac_cpp_err"; then
4011 # Broken: success on invalid input.
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 # Passes both tests.
4021 rm -f conftest.err conftest.$ac_ext
4024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4025 rm -f conftest.err conftest.$ac_ext
4026 if $ac_preproc_ok; then
4038 echo "$as_me:$LINENO: result: $CPP" >&5
4039 echo "${ECHO_T}$CPP" >&6
4041 for ac_c_preproc_warn_flag in '' yes
4043 # Use a header file that comes with gcc, so configuring glibc
4044 # with a fresh cross-compiler works.
4045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4046 # <limits.h> exists even on freestanding compilers.
4047 # On the NeXT, cc -E runs the code through the compiler's parser,
4048 # not just through cpp. "Syntax error" is here to catch this case.
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4056 # include <limits.h>
4058 # include <assert.h>
4062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } >/dev/null; then
4070 if test -s conftest.err; then
4071 ac_cpp_err=$ac_c_preproc_warn_flag
4072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4079 if test -z "$ac_cpp_err"; then
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 # Broken: fails on valid input.
4088 rm -f conftest.err conftest.$ac_ext
4090 # OK, works on sane cases. Now check whether non-existent headers
4091 # can be detected and how.
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <ac_nonexistent.h>
4100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } >/dev/null; then
4108 if test -s conftest.err; then
4109 ac_cpp_err=$ac_c_preproc_warn_flag
4110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4117 if test -z "$ac_cpp_err"; then
4118 # Broken: success on invalid input.
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 # Passes both tests.
4128 rm -f conftest.err conftest.$ac_ext
4131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4132 rm -f conftest.err conftest.$ac_ext
4133 if $ac_preproc_ok; then
4136 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4137 See \`config.log' for more details." >&5
4138 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4139 See \`config.log' for more details." >&2;}
4140 { (exit 1); exit 1; }; }
4144 ac_cpp='$CPP $CPPFLAGS'
4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4151 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4152 if test "${ac_cv_header_stdc+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_header_stdc=yes
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 ac_cv_header_stdc=no
4203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4205 if test $ac_cv_header_stdc = yes; then
4206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4207 cat >conftest.$ac_ext <<_ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217 $EGREP "memchr" >/dev/null 2>&1; then
4220 ac_cv_header_stdc=no
4226 if test $ac_cv_header_stdc = yes; then
4227 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238 $EGREP "free" >/dev/null 2>&1; then
4241 ac_cv_header_stdc=no
4247 if test $ac_cv_header_stdc = yes; then
4248 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4249 if test "$cross_compiling" = yes; then
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4259 #if ((' ' & 0x0FF) == 0x020)
4260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4263 # define ISLOWER(c) \
4264 (('a' <= (c) && (c) <= 'i') \
4265 || ('j' <= (c) && (c) <= 'r') \
4266 || ('s' <= (c) && (c) <= 'z'))
4267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4275 for (i = 0; i < 256; i++)
4276 if (XOR (islower (i), ISLOWER (i))
4277 || toupper (i) != TOUPPER (i))
4282 rm -f conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4295 echo "$as_me: program exited with status $ac_status" >&5
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4300 ac_cv_header_stdc=no
4302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4306 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4307 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4308 if test $ac_cv_header_stdc = yes; then
4310 cat >>confdefs.h <<\_ACEOF
4311 #define STDC_HEADERS 1
4316 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4326 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4327 inttypes.h stdint.h unistd.h
4329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4330 echo "$as_me:$LINENO: checking for $ac_header" >&5
4331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 $ac_includes_default
4343 #include <$ac_header>
4345 rm -f conftest.$ac_objext
4346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4347 (eval $ac_compile) 2>conftest.er1
4349 grep -v '^ *+' conftest.er1 >conftest.err
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -z "$ac_c_werror_flag"
4355 || test ! -s conftest.err'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 eval "$as_ac_Header=yes"
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 eval "$as_ac_Header=no"
4374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4379 cat >>confdefs.h <<_ACEOF
4380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4389 for ac_header in dlfcn.h
4391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4393 echo "$as_me:$LINENO: checking for $ac_header" >&5
4394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4401 # Is the header compilable?
4402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4404 cat >conftest.$ac_ext <<_ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4411 #include <$ac_header>
4413 rm -f conftest.$ac_objext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415 (eval $ac_compile) 2>conftest.er1
4417 grep -v '^ *+' conftest.er1 >conftest.err
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try='test -z "$ac_c_werror_flag"
4423 || test ! -s conftest.err'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; } &&
4429 { ac_try='test -s conftest.$ac_objext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_header_compiler=yes
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 ac_header_compiler=no
4442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4444 echo "${ECHO_T}$ac_header_compiler" >&6
4446 # Is the header present?
4447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 #include <$ac_header>
4457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4460 grep -v '^ *+' conftest.er1 >conftest.err
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } >/dev/null; then
4465 if test -s conftest.err; then
4466 ac_cpp_err=$ac_c_preproc_warn_flag
4467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4474 if test -z "$ac_cpp_err"; then
4475 ac_header_preproc=yes
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 ac_header_preproc=no
4482 rm -f conftest.err conftest.$ac_ext
4483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4484 echo "${ECHO_T}$ac_header_preproc" >&6
4486 # So? What about this header?
4487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4493 ac_header_preproc=yes
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4510 ## ------------------------------------------ ##
4511 ## Report this to the AC_PACKAGE_NAME lists. ##
4512 ## ------------------------------------------ ##
4515 sed "s/^/$as_me: WARNING: /" >&2
4518 echo "$as_me:$LINENO: checking for $ac_header" >&5
4519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 eval "$as_ac_Header=\$ac_header_preproc"
4525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4530 cat >>confdefs.h <<_ACEOF
4531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4539 ac_cpp='$CXXCPP $CPPFLAGS'
4540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4543 if test -n "$ac_tool_prefix"; then
4544 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_CXX+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 if test -n "$CXX"; then
4554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 if test -n "$CXX"; then
4574 echo "$as_me:$LINENO: result: $CXX" >&5
4575 echo "${ECHO_T}$CXX" >&6
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4581 test -n "$CXX" && break
4584 if test -z "$CXX"; then
4586 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4588 # Extract the first word of "$ac_prog", so it can be a program name with args.
4589 set dummy $ac_prog; ac_word=$2
4590 echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4592 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test -n "$ac_ct_CXX"; then
4596 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_ac_ct_CXX="$ac_prog"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4615 if test -n "$ac_ct_CXX"; then
4616 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4617 echo "${ECHO_T}$ac_ct_CXX" >&6
4619 echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6
4623 test -n "$ac_ct_CXX" && break
4625 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4631 # Provide some information about the compiler.
4632 echo "$as_me:$LINENO:" \
4633 "checking for C++ compiler version" >&5
4634 ac_compiler=`set X $ac_compile; echo $2`
4635 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4636 (eval $ac_compiler --version </dev/null >&5) 2>&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }
4640 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4641 (eval $ac_compiler -v </dev/null >&5) 2>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }
4645 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4646 (eval $ac_compiler -V </dev/null >&5) 2>&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }
4651 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4652 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4653 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 cat >conftest.$ac_ext <<_ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>conftest.er1
4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -z "$ac_cxx_werror_flag"
4684 || test ! -s conftest.err'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4704 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4707 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4708 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4709 GXX=`test $ac_compiler_gnu = yes && echo yes`
4710 ac_test_CXXFLAGS=${CXXFLAGS+set}
4711 ac_save_CXXFLAGS=$CXXFLAGS
4713 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4714 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4715 if test "${ac_cv_prog_cxx_g+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 cat >conftest.$ac_ext <<_ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4737 grep -v '^ *+' conftest.er1 >conftest.err
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag"
4743 || test ! -s conftest.err'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest.$ac_objext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_cv_prog_cxx_g=yes
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4764 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4765 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4766 if test "$ac_test_CXXFLAGS" = set; then
4767 CXXFLAGS=$ac_save_CXXFLAGS
4768 elif test $ac_cv_prog_cxx_g = yes; then
4769 if test "$GXX" = yes; then
4775 if test "$GXX" = yes; then
4781 for ac_declaration in \
4783 'extern "C" void std::exit (int) throw (); using std::exit;' \
4784 'extern "C" void std::exit (int); using std::exit;' \
4785 'extern "C" void exit (int) throw ();' \
4786 'extern "C" void exit (int);' \
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4805 rm -f conftest.$ac_objext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807 (eval $ac_compile) 2>conftest.er1
4809 grep -v '^ *+' conftest.er1 >conftest.err
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -z "$ac_cxx_werror_flag"
4815 || test ! -s conftest.err'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; } &&
4821 { ac_try='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4835 cat >conftest.$ac_ext <<_ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4850 rm -f conftest.$ac_objext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>conftest.er1
4854 grep -v '^ *+' conftest.er1 >conftest.err
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -z "$ac_cxx_werror_flag"
4860 || test ! -s conftest.err'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; } &&
4866 { ac_try='test -s conftest.$ac_objext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4881 if test -n "$ac_declaration"; then
4882 echo '#ifdef __cplusplus' >>confdefs.h
4883 echo $ac_declaration >>confdefs.h
4884 echo '#endif' >>confdefs.h
4888 ac_cpp='$CXXCPP $CPPFLAGS'
4889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4893 depcc="$CXX" am_compiler_list=
4895 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4896 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4897 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4901 # We make a subdir and do the tests there. Otherwise we can end up
4902 # making bogus files that we don't know about and never remove. For
4903 # instance it was reported that on HP-UX the gcc test will end up
4904 # making a dummy file named `D' -- because `-MD' means `put the output
4907 # Copy depcomp to subdir because otherwise we won't find it if we're
4908 # using a relative directory.
4909 cp "$am_depcomp" conftest.dir
4911 # We will build objects and dependencies in a subdirectory because
4912 # it helps to detect inapplicable dependency modes. For instance
4913 # both Tru64's cc and ICC support -MD to output dependencies as a
4914 # side effect of compilation, but ICC will put the dependencies in
4915 # the current directory while Tru64 will put them in the object
4919 am_cv_CXX_dependencies_compiler_type=none
4920 if test "$am_compiler_list" = ""; then
4921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4923 for depmode in $am_compiler_list; do
4924 # Setup a source with many dependencies, because some compilers
4925 # like to wrap large dependency lists on column 80 (with \), and
4926 # we should not choose a depcomp mode which is confused by this.
4928 # We need to recreate these files for each test, as the compiler may
4929 # overwrite some of them when testing with obscure command lines.
4930 # This happens at least with the AIX C compiler.
4932 for i in 1 2 3 4 5 6; do
4933 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4934 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4935 # Solaris 8's {/usr,}/bin/sh.
4936 touch sub/conftst$i.h
4938 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4942 # after this tag, mechanisms are not by side-effect, so they'll
4943 # only be used when explicitly requested
4944 if test "x$enable_dependency_tracking" = xyes; then
4952 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4953 # mode. It turns out that the SunPro C++ compiler does not properly
4954 # handle `-M -o', and we need to detect this.
4955 if depmode=$depmode \
4956 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4957 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4958 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4959 >/dev/null 2>conftest.err &&
4960 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4961 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4962 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4963 # icc doesn't choke on unknown options, it will just issue warnings
4964 # or remarks (even with -Werror). So we grep stderr for any message
4965 # that says an option was ignored or not supported.
4966 # When given -MP, icc 7.0 and 7.1 complain thusly:
4967 # icc: Command line warning: ignoring option '-M'; no argument required
4968 # The diagnosis changed in icc 8.0:
4969 # icc: Command line remark: option '-MP' not supported
4970 if (grep 'ignoring option' conftest.err ||
4971 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4972 am_cv_CXX_dependencies_compiler_type=$depmode
4981 am_cv_CXX_dependencies_compiler_type=none
4985 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4986 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4987 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4992 test "x$enable_dependency_tracking" != xno \
4993 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4994 am__fastdepCXX_TRUE=
4995 am__fastdepCXX_FALSE='#'
4997 am__fastdepCXX_TRUE='#'
4998 am__fastdepCXX_FALSE=
5004 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5005 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5006 (test "X$CXX" != "Xg++"))) ; then
5008 ac_cpp='$CXXCPP $CPPFLAGS'
5009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5012 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5013 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5014 if test -z "$CXXCPP"; then
5015 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 # Double quotes because CXXCPP needs to be expanded
5019 for CXXCPP in "$CXX -E" "/lib/cpp"
5022 for ac_cxx_preproc_warn_flag in '' yes
5024 # Use a header file that comes with gcc, so configuring glibc
5025 # with a fresh cross-compiler works.
5026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027 # <limits.h> exists even on freestanding compilers.
5028 # On the NeXT, cc -E runs the code through the compiler's parser,
5029 # not just through cpp. "Syntax error" is here to catch this case.
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5037 # include <limits.h>
5039 # include <assert.h>
5043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5046 grep -v '^ *+' conftest.er1 >conftest.err
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } >/dev/null; then
5051 if test -s conftest.err; then
5052 ac_cpp_err=$ac_cxx_preproc_warn_flag
5053 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5060 if test -z "$ac_cpp_err"; then
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5066 # Broken: fails on valid input.
5069 rm -f conftest.err conftest.$ac_ext
5071 # OK, works on sane cases. Now check whether non-existent headers
5072 # can be detected and how.
5073 cat >conftest.$ac_ext <<_ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <ac_nonexistent.h>
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5084 grep -v '^ *+' conftest.er1 >conftest.err
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_cxx_preproc_warn_flag
5091 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5098 if test -z "$ac_cpp_err"; then
5099 # Broken: success on invalid input.
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5105 # Passes both tests.
5109 rm -f conftest.err conftest.$ac_ext
5112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113 rm -f conftest.err conftest.$ac_ext
5114 if $ac_preproc_ok; then
5119 ac_cv_prog_CXXCPP=$CXXCPP
5122 CXXCPP=$ac_cv_prog_CXXCPP
5124 ac_cv_prog_CXXCPP=$CXXCPP
5126 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5127 echo "${ECHO_T}$CXXCPP" >&6
5129 for ac_cxx_preproc_warn_flag in '' yes
5131 # Use a header file that comes with gcc, so configuring glibc
5132 # with a fresh cross-compiler works.
5133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134 # <limits.h> exists even on freestanding compilers.
5135 # On the NeXT, cc -E runs the code through the compiler's parser,
5136 # not just through cpp. "Syntax error" is here to catch this case.
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5144 # include <limits.h>
5146 # include <assert.h>
5150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5153 grep -v '^ *+' conftest.er1 >conftest.err
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } >/dev/null; then
5158 if test -s conftest.err; then
5159 ac_cpp_err=$ac_cxx_preproc_warn_flag
5160 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5167 if test -z "$ac_cpp_err"; then
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5173 # Broken: fails on valid input.
5176 rm -f conftest.err conftest.$ac_ext
5178 # OK, works on sane cases. Now check whether non-existent headers
5179 # can be detected and how.
5180 cat >conftest.$ac_ext <<_ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 #include <ac_nonexistent.h>
5188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5191 grep -v '^ *+' conftest.er1 >conftest.err
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } >/dev/null; then
5196 if test -s conftest.err; then
5197 ac_cpp_err=$ac_cxx_preproc_warn_flag
5198 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5205 if test -z "$ac_cpp_err"; then
5206 # Broken: success on invalid input.
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5212 # Passes both tests.
5216 rm -f conftest.err conftest.$ac_ext
5219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5220 rm -f conftest.err conftest.$ac_ext
5221 if $ac_preproc_ok; then
5224 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5227 See \`config.log' for more details." >&2;}
5228 { (exit 1); exit 1; }; }
5232 ac_cpp='$CXXCPP $CPPFLAGS'
5233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5241 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5242 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5244 if test -n "$ac_tool_prefix"; then
5245 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5249 echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5251 if test "${ac_cv_prog_F77+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 if test -n "$F77"; then
5255 ac_cv_prog_F77="$F77" # Let the user override the test.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 if test -n "$F77"; then
5275 echo "$as_me:$LINENO: result: $F77" >&5
5276 echo "${ECHO_T}$F77" >&6
5278 echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5282 test -n "$F77" && break
5285 if test -z "$F77"; then
5287 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5289 # Extract the first word of "$ac_prog", so it can be a program name with args.
5290 set dummy $ac_prog; ac_word=$2
5291 echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 if test -n "$ac_ct_F77"; then
5297 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_ac_ct_F77="$ac_prog"
5307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5316 if test -n "$ac_ct_F77"; then
5317 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5318 echo "${ECHO_T}$ac_ct_F77" >&6
5320 echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6
5324 test -n "$ac_ct_F77" && break
5331 # Provide some information about the compiler.
5332 echo "$as_me:5332:" \
5333 "checking for Fortran 77 compiler version" >&5
5334 ac_compiler=`set X $ac_compile; echo $2`
5335 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5336 (eval $ac_compiler --version </dev/null >&5) 2>&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }
5340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5341 (eval $ac_compiler -v </dev/null >&5) 2>&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }
5345 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5346 (eval $ac_compiler -V </dev/null >&5) 2>&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }
5352 # If we don't use `.F' as extension, the preprocessor is not run on the
5353 # input file. (Note that this only needs to work for GNU compilers.)
5356 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5357 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5358 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 cat >conftest.$ac_ext <<_ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5373 grep -v '^ *+' conftest.er1 >conftest.err
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try='test -z "$ac_f77_werror_flag"
5379 || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5402 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5403 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5405 ac_test_FFLAGS=${FFLAGS+set}
5406 ac_save_FFLAGS=$FFLAGS
5408 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5409 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5410 if test "${ac_cv_prog_f77_g+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 cat >conftest.$ac_ext <<_ACEOF
5419 rm -f conftest.$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5423 grep -v '^ *+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_f77_werror_flag"
5429 || test ! -s conftest.err'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_cv_prog_f77_g=yes
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5451 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5452 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5453 if test "$ac_test_FFLAGS" = set; then
5454 FFLAGS=$ac_save_FFLAGS
5455 elif test $ac_cv_prog_f77_g = yes; then
5456 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5462 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5469 G77=`test $ac_compiler_gnu = yes && echo yes`
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5480 # find the maximum length of command line arguments
5481 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5482 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5483 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 # On DJGPP, this test can blow up pretty badly due to problems in libc
5492 # (any single argument exceeding 2000 bytes causes a buffer overrun
5493 # during glob expansion). Even if it were fixed, the result of this
5494 # check would be larger than it should be.
5495 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5499 # Under GNU Hurd, this test is not required because there is
5500 # no limit to the length of command line arguments.
5501 # Libtool will interpret -1 as no limit whatsoever
5502 lt_cv_sys_max_cmd_len=-1;
5506 # On Win9x/ME, this test blows up -- it succeeds, but takes
5507 # about 5 minutes as the teststring grows exponentially.
5508 # Worse, since 9x/ME are not pre-emptively multitasking,
5509 # you end up with a "frozen" computer, even though with patience
5510 # the test eventually succeeds (with a max line length of 256k).
5511 # Instead, let's just punt: use the minimum linelength reported by
5512 # all of the supported platforms: 8192 (on NT/2K/XP).
5513 lt_cv_sys_max_cmd_len=8192;
5517 # On AmigaOS with pdksh, this test takes hours, literally.
5518 # So we just punt and use a minimum line length of 8192.
5519 lt_cv_sys_max_cmd_len=8192;
5522 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5523 # This has been around since 386BSD, at least. Likely further.
5524 if test -x /sbin/sysctl; then
5525 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5526 elif test -x /usr/sbin/sysctl; then
5527 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5529 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5531 # And add a safety zone
5532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5537 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5538 lt_cv_sys_max_cmd_len=196608
5542 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5543 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5544 # nice to cause kernel panics so lets avoid the loop below.
5545 # First set a reasonable default.
5546 lt_cv_sys_max_cmd_len=16384
5548 if test -x /sbin/sysconfig; then
5549 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5550 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5555 lt_cv_sys_max_cmd_len=102400
5557 sysv5* | sco5v6* | sysv4.2uw2*)
5558 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5559 if test -n "$kargmax"; then
5560 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5562 lt_cv_sys_max_cmd_len=32768
5566 # If test is not a shell built-in, we'll probably end up computing a
5567 # maximum length that is only half of the actual maximum length, but
5569 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5570 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5571 = "XX$teststring") >/dev/null 2>&1 &&
5572 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5573 lt_cv_sys_max_cmd_len=$new_result &&
5574 test $i != 17 # 1/2 MB should be enough
5577 teststring=$teststring$teststring
5580 # Add a significant safety factor because C++ compilers can tack on massive
5581 # amounts of additional arguments before passing them to the linker.
5582 # It appears as though 1/2 is a usable value.
5583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5589 if test -n $lt_cv_sys_max_cmd_len ; then
5590 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5591 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5593 echo "$as_me:$LINENO: result: none" >&5
5594 echo "${ECHO_T}none" >&6
5600 # Check for command to grab the raw symbol name followed by C symbol from nm.
5601 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5602 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5603 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 # These are sane defaults that work on at least a few old systems.
5608 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5610 # Character class describing NM global symbol codes.
5611 symcode='[BCDEGRST]'
5613 # Regexp to match symbols that can be accessed directly from C.
5614 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5616 # Transform an extracted symbol line into a proper C declaration
5617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5619 # Transform an extracted symbol line into symbol name and symbol address
5620 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'"
5622 # Define system-specific variables.
5627 cygwin* | mingw* | pw32*)
5628 symcode='[ABCDGISTW]'
5630 hpux*) # Its linker distinguishes data from code symbols
5631 if test "$host_cpu" = ia64; then
5632 symcode='[ABCDEGRST]'
5634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5635 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'"
5638 if test "$host_cpu" = ia64; then
5639 symcode='[ABCDGIRSTW]'
5640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5641 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'"
5645 symcode='[BCDEGRST]'
5648 symcode='[BCDEGQRST]'
5659 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5667 # Handle CRLF in mingw tool chain
5671 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5675 # If we're using GNU nm, then use its standard symbol codes.
5676 case `$NM -V 2>&1` in
5677 *GNU* | *'with BFD'*)
5678 symcode='[ABCDGIRSTW]' ;;
5681 # Try without a prefix undercore, then with it.
5682 for ac_symprfx in "" "_"; do
5684 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5685 symxfrm="\\1 $ac_symprfx\\2 \\2"
5687 # Write the raw and C identifiers.
5688 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5690 # Check to see that the pipe works correctly.
5694 cat > conftest.$ac_ext <<EOF
5699 void nm_test_func(){}
5703 int main(){nm_test_var='a';nm_test_func();return(0);}
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; then
5711 # Now try to grab the symbols.
5713 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5714 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } && test -s "$nlist"; then
5718 # Try sorting and uniquifying the output.
5719 if sort "$nlist" | uniq > "$nlist"T; then
5720 mv -f "$nlist"T "$nlist"
5725 # Make sure that we snagged all the symbols we need.
5726 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5727 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5728 cat <<EOF > conftest.$ac_ext
5734 # Now generate the symbol file.
5735 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5737 cat <<EOF >> conftest.$ac_ext
5738 #if defined (__STDC__) && __STDC__
5739 # define lt_ptr_t void *
5741 # define lt_ptr_t char *
5745 /* The mapping between symbol names and symbols. */
5750 lt_preloaded_symbols[] =
5753 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5754 cat <<\EOF >> conftest.$ac_ext
5762 # Now try linking the two files.
5763 mv conftest.$ac_objext conftstm.$ac_objext
5764 lt_save_LIBS="$LIBS"
5765 lt_save_CFLAGS="$CFLAGS"
5766 LIBS="conftstm.$ac_objext"
5767 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5775 LIBS="$lt_save_LIBS"
5776 CFLAGS="$lt_save_CFLAGS"
5778 echo "cannot find nm_test_func in $nlist" >&5
5781 echo "cannot find nm_test_var in $nlist" >&5
5784 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5787 echo "$progname: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5790 rm -f conftest* conftst*
5792 # Do not use the global_symbol_pipe unless it works.
5793 if test "$pipe_works" = yes; then
5796 lt_cv_sys_global_symbol_pipe=
5802 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5803 lt_cv_sys_global_symbol_to_cdecl=
5805 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5806 echo "$as_me:$LINENO: result: failed" >&5
5807 echo "${ECHO_T}failed" >&6
5809 echo "$as_me:$LINENO: result: ok" >&5
5810 echo "${ECHO_T}ok" >&6
5813 echo "$as_me:$LINENO: checking for objdir" >&5
5814 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5815 if test "${lt_cv_objdir+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 rm -f .libs 2>/dev/null
5819 mkdir .libs 2>/dev/null
5820 if test -d .libs; then
5823 # MS-DOS does not allow filenames that begin with a dot.
5826 rmdir .libs 2>/dev/null
5828 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5829 echo "${ECHO_T}$lt_cv_objdir" >&6
5830 objdir=$lt_cv_objdir
5838 # AIX sometimes has problems with the GCC collect2 program. For some
5839 # reason, if we set the COLLECT_NAMES environment variable, the problems
5840 # vanish in a puff of smoke.
5841 if test "X${COLLECT_NAMES+set}" != Xset; then
5843 export COLLECT_NAMES
5848 # Sed substitution that helps us do robust quoting. It backslashifies
5849 # metacharacters that are still active within double-quoted strings.
5850 Xsed='sed -e 1s/^X//'
5851 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5853 # Same as above, but do not quote variable references.
5854 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5856 # Sed substitution to delay expansion of an escaped shell variable in a
5857 # double_quote_subst'ed string.
5858 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5860 # Sed substitution to avoid accidental globbing in evaled expressions
5861 no_glob_subst='s/\*/\\\*/g'
5867 default_ofile=libtool
5868 can_build_shared=yes
5870 # All known linkers require a `.a' archive for static linking (except MSVC,
5871 # which needs '.lib').
5873 ltmain="$ac_aux_dir/ltmain.sh"
5874 ofile="$default_ofile"
5875 with_gnu_ld="$lt_cv_prog_gnu_ld"
5877 if test -n "$ac_tool_prefix"; then
5878 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5879 set dummy ${ac_tool_prefix}ar; ac_word=$2
5880 echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5882 if test "${ac_cv_prog_AR+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 if test -n "$AR"; then
5886 ac_cv_prog_AR="$AR" # Let the user override the test.
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_AR="${ac_tool_prefix}ar"
5896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 if test -n "$AR"; then
5906 echo "$as_me:$LINENO: result: $AR" >&5
5907 echo "${ECHO_T}$AR" >&6
5909 echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6
5914 if test -z "$ac_cv_prog_AR"; then
5916 # Extract the first word of "ar", so it can be a program name with args.
5917 set dummy ar; ac_word=$2
5918 echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5920 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 if test -n "$ac_ct_AR"; then
5924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_ac_ct_AR="ar"
5934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5944 if test -n "$ac_ct_AR"; then
5945 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5946 echo "${ECHO_T}$ac_ct_AR" >&6
5948 echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6
5957 if test -n "$ac_tool_prefix"; then
5958 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5959 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5960 echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5962 if test "${ac_cv_prog_RANLIB+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 if test -n "$RANLIB"; then
5966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 RANLIB=$ac_cv_prog_RANLIB
5985 if test -n "$RANLIB"; then
5986 echo "$as_me:$LINENO: result: $RANLIB" >&5
5987 echo "${ECHO_T}$RANLIB" >&6
5989 echo "$as_me:$LINENO: result: no" >&5
5990 echo "${ECHO_T}no" >&6
5994 if test -z "$ac_cv_prog_RANLIB"; then
5995 ac_ct_RANLIB=$RANLIB
5996 # Extract the first word of "ranlib", so it can be a program name with args.
5997 set dummy ranlib; ac_word=$2
5998 echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 if test -n "$ac_ct_RANLIB"; then
6004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013 ac_cv_prog_ac_ct_RANLIB="ranlib"
6014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6024 if test -n "$ac_ct_RANLIB"; then
6025 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6026 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6028 echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6
6032 RANLIB=$ac_ct_RANLIB
6034 RANLIB="$ac_cv_prog_RANLIB"
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}strip; ac_word=$2
6040 echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6042 if test "${ac_cv_prog_STRIP+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 if test -n "$STRIP"; then
6046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 STRIP=$ac_cv_prog_STRIP
6065 if test -n "$STRIP"; then
6066 echo "$as_me:$LINENO: result: $STRIP" >&5
6067 echo "${ECHO_T}$STRIP" >&6
6069 echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6
6074 if test -z "$ac_cv_prog_STRIP"; then
6076 # Extract the first word of "strip", so it can be a program name with args.
6077 set dummy strip; ac_word=$2
6078 echo "$as_me:$LINENO: checking for $ac_word" >&5
6079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6080 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 if test -n "$ac_ct_STRIP"; then
6084 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093 ac_cv_prog_ac_ct_STRIP="strip"
6094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6103 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6104 if test -n "$ac_ct_STRIP"; then
6105 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6106 echo "${ECHO_T}$ac_ct_STRIP" >&6
6108 echo "$as_me:$LINENO: result: no" >&5
6109 echo "${ECHO_T}no" >&6
6114 STRIP="$ac_cv_prog_STRIP"
6119 old_CFLAGS="$CFLAGS"
6121 # Set sane defaults for various variables
6122 test -z "$AR" && AR=ar
6123 test -z "$AR_FLAGS" && AR_FLAGS=cru
6124 test -z "$AS" && AS=as
6125 test -z "$CC" && CC=cc
6126 test -z "$LTCC" && LTCC=$CC
6127 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6128 test -z "$DLLTOOL" && DLLTOOL=dlltool
6129 test -z "$LD" && LD=ld
6130 test -z "$LN_S" && LN_S="ln -s"
6131 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6132 test -z "$NM" && NM=nm
6133 test -z "$SED" && SED=sed
6134 test -z "$OBJDUMP" && OBJDUMP=objdump
6135 test -z "$RANLIB" && RANLIB=:
6136 test -z "$STRIP" && STRIP=:
6137 test -z "$ac_objext" && ac_objext=o
6139 # Determine commands to create old-style static archives.
6140 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6141 old_postinstall_cmds='chmod 644 $oldlib'
6142 old_postuninstall_cmds=
6144 if test -n "$RANLIB"; then
6147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6150 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6153 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6156 for cc_temp in $compiler""; do
6158 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6159 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6164 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6167 # Only perform the check for file, if the check method requires it
6168 case $deplibs_check_method in
6170 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6171 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6172 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6173 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6181 lt_save_MAGIC_CMD="$MAGIC_CMD"
6182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6183 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6184 for ac_dir in $ac_dummy; do
6186 test -z "$ac_dir" && ac_dir=.
6187 if test -f $ac_dir/${ac_tool_prefix}file; then
6188 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6189 if test -n "$file_magic_test_file"; then
6190 case $deplibs_check_method in
6192 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6194 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6195 $EGREP "$file_magic_regex" > /dev/null; then
6200 *** Warning: the command libtool uses to detect shared libraries,
6201 *** $file_magic_cmd, produces output that libtool cannot recognize.
6202 *** The result is that libtool may fail to recognize shared libraries
6203 *** as such. This will affect the creation of libtool libraries that
6204 *** depend on shared libraries, but programs linked with such libtool
6205 *** libraries will work regardless of this problem. Nevertheless, you
6206 *** may want to report the problem to your system manager and/or to
6207 *** bug-libtool@gnu.org
6217 MAGIC_CMD="$lt_save_MAGIC_CMD"
6222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6223 if test -n "$MAGIC_CMD"; then
6224 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6225 echo "${ECHO_T}$MAGIC_CMD" >&6
6227 echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6
6231 if test -z "$lt_cv_path_MAGIC_CMD"; then
6232 if test -n "$ac_tool_prefix"; then
6233 echo "$as_me:$LINENO: checking for file" >&5
6234 echo $ECHO_N "checking for file... $ECHO_C" >&6
6235 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6243 lt_save_MAGIC_CMD="$MAGIC_CMD"
6244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6245 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6246 for ac_dir in $ac_dummy; do
6248 test -z "$ac_dir" && ac_dir=.
6249 if test -f $ac_dir/file; then
6250 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6251 if test -n "$file_magic_test_file"; then
6252 case $deplibs_check_method in
6254 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6257 $EGREP "$file_magic_regex" > /dev/null; then
6262 *** Warning: the command libtool uses to detect shared libraries,
6263 *** $file_magic_cmd, produces output that libtool cannot recognize.
6264 *** The result is that libtool may fail to recognize shared libraries
6265 *** as such. This will affect the creation of libtool libraries that
6266 *** depend on shared libraries, but programs linked with such libtool
6267 *** libraries will work regardless of this problem. Nevertheless, you
6268 *** may want to report the problem to your system manager and/or to
6269 *** bug-libtool@gnu.org
6279 MAGIC_CMD="$lt_save_MAGIC_CMD"
6284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6285 if test -n "$MAGIC_CMD"; then
6286 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6287 echo "${ECHO_T}$MAGIC_CMD" >&6
6289 echo "$as_me:$LINENO: result: no" >&5
6290 echo "${ECHO_T}no" >&6
6305 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6306 if test "${enable_libtool_lock+set}" = set; then
6307 enableval="$enable_libtool_lock"
6310 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6313 # Check whether --with-pic or --without-pic was given.
6314 if test "${with_pic+set}" = set; then
6320 test -z "$pic_mode" && pic_mode=default
6322 # Use C for the default configuration in the libtool script
6326 ac_cpp='$CPP $CPPFLAGS'
6327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6332 # Source file extension for C test sources.
6335 # Object file extension for compiled C test sources.
6339 # Code to be used in simple compile tests
6340 lt_simple_compile_test_code="int some_variable = 0;\n"
6342 # Code to be used in simple link tests
6343 lt_simple_link_test_code='int main(){return(0);}\n'
6346 # If no C compiler was specified, use CC.
6349 # If no C compiler flags were specified, use CFLAGS.
6350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6352 # Allow CC to be a program name with arguments.
6356 # save warnings/boilerplate of simple test code
6357 ac_outfile=conftest.$ac_objext
6358 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6359 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6360 _lt_compiler_boilerplate=`cat conftest.err`
6363 ac_outfile=conftest.$ac_objext
6364 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6365 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6366 _lt_linker_boilerplate=`cat conftest.err`
6371 lt_prog_compiler_no_builtin_flag=
6373 if test "$GCC" = yes; then
6374 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6377 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6378 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6379 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 lt_cv_prog_compiler_rtti_exceptions=no
6383 ac_outfile=conftest.$ac_objext
6384 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6385 lt_compiler_flag="-fno-rtti -fno-exceptions"
6386 # Insert the option either (1) after the last *FLAGS variable, or
6387 # (2) before a word containing "conftest.", or (3) at the end.
6388 # Note that $ac_compile itself does not contain backslashes and begins
6389 # with a dollar sign (not a hyphen), so the echo should work correctly.
6390 # The option is referenced via a variable to avoid confusing sed.
6391 lt_compile=`echo "$ac_compile" | $SED \
6392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6394 -e 's:$: $lt_compiler_flag:'`
6395 (eval echo "\"\$as_me:6395: $lt_compile\"" >&5)
6396 (eval "$lt_compile" 2>conftest.err)
6398 cat conftest.err >&5
6399 echo "$as_me:6399: \$? = $ac_status" >&5
6400 if (exit $ac_status) && test -s "$ac_outfile"; then
6401 # The compiler can only warn and ignore the option if not recognized
6402 # So say no if there are warnings other than the usual output.
6403 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6406 lt_cv_prog_compiler_rtti_exceptions=yes
6412 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6413 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6415 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6416 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6423 lt_prog_compiler_wl=
6424 lt_prog_compiler_pic=
6425 lt_prog_compiler_static=
6427 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6428 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6430 if test "$GCC" = yes; then
6431 lt_prog_compiler_wl='-Wl,'
6432 lt_prog_compiler_static='-static'
6436 # All AIX code is PIC.
6437 if test "$host_cpu" = ia64; then
6438 # AIX 5 now supports IA64 processor
6439 lt_prog_compiler_static='-Bstatic'
6444 # FIXME: we need at least 68020 code to build shared libraries, but
6445 # adding the `-m68020' flag to GCC prevents building anything better,
6447 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6450 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6451 # PIC is the default for these OSes.
6454 mingw* | pw32* | os2*)
6455 # This hack is so that the source file can tell whether it is being
6456 # built for inclusion in a dll (and should export symbols for example).
6457 lt_prog_compiler_pic='-DDLL_EXPORT'
6460 darwin* | rhapsody*)
6461 # PIC is the default on this platform
6462 # Common symbols not allowed in MH_DYLIB files
6463 lt_prog_compiler_pic='-fno-common'
6467 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6468 # Instead, we relocate shared libraries at runtime.
6472 # Just because we use GCC doesn't mean we suddenly get shared libraries
6473 # on systems that don't support them.
6474 lt_prog_compiler_can_build_shared=no
6479 if test -d /usr/nec; then
6480 lt_prog_compiler_pic=-Kconform_pic
6485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6492 lt_prog_compiler_pic='-fPIC'
6498 lt_prog_compiler_pic='-fPIC'
6502 # PORTME Check for flag to pass linker flags through the system compiler.
6505 lt_prog_compiler_wl='-Wl,'
6506 if test "$host_cpu" = ia64; then
6507 # AIX 5 now supports IA64 processor
6508 lt_prog_compiler_static='-Bstatic'
6510 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6514 # PIC is the default on this platform
6515 # Common symbols not allowed in MH_DYLIB files
6516 case $cc_basename in
6518 lt_prog_compiler_pic='-qnocommon'
6519 lt_prog_compiler_wl='-Wl,'
6524 mingw* | pw32* | os2*)
6525 # This hack is so that the source file can tell whether it is being
6526 # built for inclusion in a dll (and should export symbols for example).
6527 lt_prog_compiler_pic='-DDLL_EXPORT'
6530 hpux9* | hpux10* | hpux11*)
6531 lt_prog_compiler_wl='-Wl,'
6532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6539 lt_prog_compiler_pic='+Z'
6542 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6543 lt_prog_compiler_static='${wl}-a ${wl}archive'
6546 irix5* | irix6* | nonstopux*)
6547 lt_prog_compiler_wl='-Wl,'
6548 # PIC (with -KPIC) is the default.
6549 lt_prog_compiler_static='-non_shared'
6553 lt_prog_compiler_pic='-KPIC'
6554 lt_prog_compiler_static='-Bstatic'
6558 case $cc_basename in
6560 lt_prog_compiler_wl='-Wl,'
6561 lt_prog_compiler_pic='-KPIC'
6562 lt_prog_compiler_static='-static'
6564 pgcc* | pgf77* | pgf90* | pgf95*)
6565 # Portland Group compilers (*not* the Pentium gcc compiler,
6566 # which looks to be a dead project)
6567 lt_prog_compiler_wl='-Wl,'
6568 lt_prog_compiler_pic='-fpic'
6569 lt_prog_compiler_static='-Bstatic'
6572 lt_prog_compiler_wl='-Wl,'
6573 # All Alpha code is PIC.
6574 lt_prog_compiler_static='-non_shared'
6579 osf3* | osf4* | osf5*)
6580 lt_prog_compiler_wl='-Wl,'
6581 # All OSF/1 code is PIC.
6582 lt_prog_compiler_static='-non_shared'
6586 lt_prog_compiler_pic='-KPIC'
6587 lt_prog_compiler_static='-Bstatic'
6588 case $cc_basename in
6590 lt_prog_compiler_wl='-Qoption ld ';;
6592 lt_prog_compiler_wl='-Wl,';;
6597 lt_prog_compiler_wl='-Qoption ld '
6598 lt_prog_compiler_pic='-PIC'
6599 lt_prog_compiler_static='-Bstatic'
6602 sysv4 | sysv4.2uw2* | sysv4.3*)
6603 lt_prog_compiler_wl='-Wl,'
6604 lt_prog_compiler_pic='-KPIC'
6605 lt_prog_compiler_static='-Bstatic'
6609 if test -d /usr/nec ;then
6610 lt_prog_compiler_pic='-Kconform_pic'
6611 lt_prog_compiler_static='-Bstatic'
6615 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6616 lt_prog_compiler_wl='-Wl,'
6617 lt_prog_compiler_pic='-KPIC'
6618 lt_prog_compiler_static='-Bstatic'
6622 lt_prog_compiler_wl='-Wl,'
6623 lt_prog_compiler_can_build_shared=no
6627 lt_prog_compiler_pic='-pic'
6628 lt_prog_compiler_static='-Bstatic'
6632 lt_prog_compiler_can_build_shared=no
6637 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6638 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6641 # Check to make sure the PIC flag actually works.
6643 if test -n "$lt_prog_compiler_pic"; then
6645 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6646 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6647 if test "${lt_prog_compiler_pic_works+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 lt_prog_compiler_pic_works=no
6651 ac_outfile=conftest.$ac_objext
6652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6653 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6654 # Insert the option either (1) after the last *FLAGS variable, or
6655 # (2) before a word containing "conftest.", or (3) at the end.
6656 # Note that $ac_compile itself does not contain backslashes and begins
6657 # with a dollar sign (not a hyphen), so the echo should work correctly.
6658 # The option is referenced via a variable to avoid confusing sed.
6659 lt_compile=`echo "$ac_compile" | $SED \
6660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6662 -e 's:$: $lt_compiler_flag:'`
6663 (eval echo "\"\$as_me:6663: $lt_compile\"" >&5)
6664 (eval "$lt_compile" 2>conftest.err)
6666 cat conftest.err >&5
6667 echo "$as_me:6667: \$? = $ac_status" >&5
6668 if (exit $ac_status) && test -s "$ac_outfile"; then
6669 # The compiler can only warn and ignore the option if not recognized
6670 # So say no if there are warnings other than the usual output.
6671 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6674 lt_prog_compiler_pic_works=yes
6680 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6681 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6683 if test x"$lt_prog_compiler_pic_works" = xyes; then
6684 case $lt_prog_compiler_pic in
6686 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6689 lt_prog_compiler_pic=
6690 lt_prog_compiler_can_build_shared=no
6695 # For platforms which do not support PIC, -DPIC is meaningless:
6697 lt_prog_compiler_pic=
6700 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6705 # Check to make sure the static flag actually works.
6707 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6708 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6709 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6710 if test "${lt_prog_compiler_static_works+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 lt_prog_compiler_static_works=no
6714 save_LDFLAGS="$LDFLAGS"
6715 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6716 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6717 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6718 # The linker can only warn and ignore the option if not recognized
6719 # So say no if there are warnings
6720 if test -s conftest.err; then
6721 # Append any errors to the config.log.
6722 cat conftest.err 1>&5
6723 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6725 if diff conftest.exp conftest.er2 >/dev/null; then
6726 lt_prog_compiler_static_works=yes
6729 lt_prog_compiler_static_works=yes
6733 LDFLAGS="$save_LDFLAGS"
6736 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6737 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6739 if test x"$lt_prog_compiler_static_works" = xyes; then
6742 lt_prog_compiler_static=
6746 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6747 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6748 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 lt_cv_prog_compiler_c_o=no
6752 $rm -r conftest 2>/dev/null
6756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6758 lt_compiler_flag="-o out/conftest2.$ac_objext"
6759 # Insert the option either (1) after the last *FLAGS variable, or
6760 # (2) before a word containing "conftest.", or (3) at the end.
6761 # Note that $ac_compile itself does not contain backslashes and begins
6762 # with a dollar sign (not a hyphen), so the echo should work correctly.
6763 lt_compile=`echo "$ac_compile" | $SED \
6764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6766 -e 's:$: $lt_compiler_flag:'`
6767 (eval echo "\"\$as_me:6767: $lt_compile\"" >&5)
6768 (eval "$lt_compile" 2>out/conftest.err)
6770 cat out/conftest.err >&5
6771 echo "$as_me:6771: \$? = $ac_status" >&5
6772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6774 # The compiler can only warn and ignore the option if not recognized
6775 # So say no if there are warnings
6776 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6779 lt_cv_prog_compiler_c_o=yes
6784 # SGI C++ compiler will create directory out/ii_files/ for
6785 # template instantiation
6786 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6787 $rm out/* && rmdir out
6793 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6794 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6797 hard_links="nottested"
6798 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6799 # do not overwrite the value of need_locks provided by the user
6800 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6801 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6806 ln conftest.a conftest.b 2>&5 || hard_links=no
6807 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6808 echo "$as_me:$LINENO: result: $hard_links" >&5
6809 echo "${ECHO_T}$hard_links" >&6
6810 if test "$hard_links" = no; then
6811 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6812 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6819 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6820 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6823 allow_undefined_flag=
6824 enable_shared_with_static_runtimes=no
6826 archive_expsym_cmds=
6827 old_archive_From_new_cmds=
6828 old_archive_from_expsyms_cmds=
6829 export_dynamic_flag_spec=
6830 whole_archive_flag_spec=
6831 thread_safe_flag_spec=
6832 hardcode_libdir_flag_spec=
6833 hardcode_libdir_flag_spec_ld=
6834 hardcode_libdir_separator=
6837 hardcode_shlibpath_var=unsupported
6838 link_all_deplibs=unknown
6839 hardcode_automatic=no
6842 always_export_symbols=no
6843 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6844 # include_expsyms should be a list of space-separated symbols to be *always*
6845 # included in the symbol list
6847 # exclude_expsyms can be an extended regexp of symbols to exclude
6848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6850 # as well as any symbol that contains `d'.
6851 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6853 # platforms (ab)use it in PIC code, but their linkers get confused if
6854 # the symbol is explicitly referenced. Since portable code cannot
6855 # rely on this symbol name, it's probably fine to never include it in
6856 # preloaded symbol tables.
6857 extract_expsyms_cmds=
6858 # Just being paranoid about ensuring that cc_basename is set.
6859 for cc_temp in $compiler""; do
6861 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6862 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6867 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6870 cygwin* | mingw* | pw32*)
6871 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6872 # When not using gcc, we currently assume that we are using
6873 # Microsoft Visual C++.
6874 if test "$GCC" != yes; then
6879 # we just hope/assume this is gcc and not c89 (= MSVC++)
6888 if test "$with_gnu_ld" = yes; then
6889 # If archive_cmds runs LD, not CC, wlarc should be empty
6892 # Set some defaults for GNU ld with shared library support. These
6893 # are reset later if shared libraries are not supported. Putting them
6894 # here allows them to be overridden if necessary.
6895 runpath_var=LD_RUN_PATH
6896 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6897 export_dynamic_flag_spec='${wl}--export-dynamic'
6898 # ancient GNU ld didn't support --whole-archive et. al.
6899 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6900 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6902 whole_archive_flag_spec=
6904 supports_anon_versioning=no
6905 case `$LD -v 2>/dev/null` in
6906 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6907 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6908 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6909 *\ 2.11.*) ;; # other 2.11 versions
6910 *) supports_anon_versioning=yes ;;
6913 # See if GNU ld supports shared libraries.
6915 aix3* | aix4* | aix5*)
6916 # On AIX/PPC, the GNU linker is very broken
6917 if test "$host_cpu" != ia64; then
6921 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6922 *** to be unable to reliably create shared libraries on AIX.
6923 *** Therefore, libtool is disabling shared libraries support. If you
6924 *** really care for shared libraries, you may want to modify your PATH
6925 *** so that a non-GNU linker is found, and then restart.
6932 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)'
6933 hardcode_libdir_flag_spec='-L$libdir'
6934 hardcode_minus_L=yes
6936 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6937 # that the semantics of dynamic libraries on AmigaOS, at least up
6938 # to version 4, is to share data among multiple programs linked
6939 # with the same dynamic library. Since this doesn't match the
6940 # behavior of shared libraries on other platforms, we can't use
6946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6947 allow_undefined_flag=unsupported
6948 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6949 # support --undefined. This deserves some investigation. FIXME
6950 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6956 cygwin* | mingw* | pw32*)
6957 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6958 # as there is no search path for DLLs.
6959 hardcode_libdir_flag_spec='-L$libdir'
6960 allow_undefined_flag=unsupported
6961 always_export_symbols=no
6962 enable_shared_with_static_runtimes=yes
6963 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6965 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6967 # If the export-symbols file already is a .def file (1st line
6968 # is EXPORTS), use it as is; otherwise, prepend...
6969 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6970 cp $export_symbols $output_objdir/$soname.def;
6972 echo EXPORTS > $output_objdir/$soname.def;
6973 cat $export_symbols >> $output_objdir/$soname.def;
6975 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6983 hardcode_shlibpath_var=no
6984 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6985 export_dynamic_flag_spec='${wl}-E'
6986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6987 # Instead, shared libraries are loaded at an image base (0x10000000 by
6988 # default) and relocated if they conflict, which is a slow very memory
6989 # consuming and fragmenting process. To avoid this, we pick a random,
6990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6991 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6992 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6993 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'
6997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6999 case $cc_basename,$host_cpu in
7000 pgcc*) # Portland Group C compiler
7001 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'
7002 tmp_addflag=' $pic_flag'
7004 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7005 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'
7006 tmp_addflag=' $pic_flag -Mnomain' ;;
7007 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7008 tmp_addflag=' -i_dynamic' ;;
7009 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7010 tmp_addflag=' -i_dynamic -nofor_main' ;;
7011 ifc* | ifort*) # Intel Fortran compiler
7012 tmp_addflag=' -nofor_main' ;;
7014 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7016 if test $supports_anon_versioning = yes; then
7017 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7018 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7019 $echo "local: *; };" >> $output_objdir/$libname.ver~
7020 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7029 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7038 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7042 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7043 *** create shared libraries on Solaris systems. Therefore, libtool
7044 *** is disabling shared libraries support. We urge you to upgrade GNU
7045 *** binutils to release 2.9.1 or newer. Another option is to modify
7046 *** your PATH or compiler configuration so that the native linker is
7047 *** used, and then restart.
7050 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7059 case `$LD -v 2>&1` in
7060 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7064 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7065 *** reliably create shared libraries on SCO systems. Therefore, libtool
7066 *** is disabling shared libraries support. We urge you to upgrade GNU
7067 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7068 *** your PATH or compiler configuration so that the native linker is
7069 *** used, and then restart.
7074 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7075 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7086 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7089 hardcode_shlibpath_var=no
7093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7095 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7102 if test "$ld_shlibs" = no; then
7104 hardcode_libdir_flag_spec=
7105 export_dynamic_flag_spec=
7106 whole_archive_flag_spec=
7109 # PORTME fill in a description of your system's linker (not GNU ld)
7112 allow_undefined_flag=unsupported
7113 always_export_symbols=yes
7114 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'
7115 # Note: this linker hardcodes the directories in LIBPATH if there
7116 # are no directories specified by -L.
7117 hardcode_minus_L=yes
7118 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7119 # Neither direct hardcoding nor static linking is supported with a
7121 hardcode_direct=unsupported
7126 if test "$host_cpu" = ia64; then
7127 # On IA64, the linker does run time linking by default, so we don't
7128 # have to do anything special.
7129 aix_use_runtimelinking=no
7130 exp_sym_flag='-Bexport'
7133 # If we're using GNU nm, then we don't want the "-C" option.
7134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7135 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7136 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'
7138 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'
7140 aix_use_runtimelinking=no
7142 # Test if we are trying to use run time linking or normal
7143 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7144 # need to do runtime linking.
7145 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7146 for ld_flag in $LDFLAGS; do
7147 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7148 aix_use_runtimelinking=yes
7155 exp_sym_flag='-bexport'
7156 no_entry_flag='-bnoentry'
7159 # When large executables or shared objects are built, AIX ld can
7160 # have problems creating the table of contents. If linking a library
7161 # or program results in "error TOC overflow" add -mminimal-toc to
7162 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7163 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7167 hardcode_libdir_separator=':'
7168 link_all_deplibs=yes
7170 if test "$GCC" = yes; then
7171 case $host_os in aix4.[012]|aix4.[012].*)
7172 # We only want to do this on AIX 4.2 and lower, the check
7173 # below for broken collect2 doesn't work under 4.3+
7174 collect2name=`${CC} -print-prog-name=collect2`
7175 if test -f "$collect2name" && \
7176 strings "$collect2name" | grep resolve_lib_name >/dev/null
7178 # We have reworked collect2
7181 # We have old collect2
7182 hardcode_direct=unsupported
7183 # It fails to find uninstalled libraries when the uninstalled
7184 # path is not listed in the libpath. Setting hardcode_minus_L
7185 # to unsupported forces relinking
7186 hardcode_minus_L=yes
7187 hardcode_libdir_flag_spec='-L$libdir'
7188 hardcode_libdir_separator=
7192 shared_flag='-shared'
7193 if test "$aix_use_runtimelinking" = yes; then
7194 shared_flag="$shared_flag "'${wl}-G'
7198 if test "$host_cpu" = ia64; then
7199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7200 # chokes on -Wl,-G. The following line is correct:
7203 if test "$aix_use_runtimelinking" = yes; then
7204 shared_flag='${wl}-G'
7206 shared_flag='${wl}-bM:SRE'
7211 # It seems that -bexpall does not export symbols beginning with
7212 # underscore (_), so it is better to generate a list of symbols to export.
7213 always_export_symbols=yes
7214 if test "$aix_use_runtimelinking" = yes; then
7215 # Warning - without using the other runtime loading flags (-brtl),
7216 # -berok will link without error, but may produce a broken library.
7217 allow_undefined_flag='-berok'
7218 # Determine the default libpath from the value encoded in an empty executable.
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7234 rm -f conftest.$ac_objext conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236 (eval $ac_link) 2>conftest.er1
7238 grep -v '^ *+' conftest.er1 >conftest.err
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -z "$ac_c_werror_flag"
7244 || test ! -s conftest.err'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; } &&
7250 { ac_try='test -s conftest$ac_exeext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7259 # Check for a 64-bit object if we didn't find anything.
7260 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; }
7263 echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7267 rm -f conftest.err conftest.$ac_objext \
7268 conftest$ac_exeext conftest.$ac_ext
7269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7272 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"
7274 if test "$host_cpu" = ia64; then
7275 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7276 allow_undefined_flag="-z nodefs"
7277 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"
7279 # Determine the default libpath from the value encoded in an empty executable.
7280 cat >conftest.$ac_ext <<_ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297 (eval $ac_link) 2>conftest.er1
7299 grep -v '^ *+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest$ac_exeext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7320 # Check for a 64-bit object if we didn't find anything.
7321 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; }
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7328 rm -f conftest.err conftest.$ac_objext \
7329 conftest$ac_exeext conftest.$ac_ext
7330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7333 # Warning - without using the other run time loading flags,
7334 # -berok will link without error, but may produce a broken library.
7335 no_undefined_flag=' ${wl}-bernotok'
7336 allow_undefined_flag=' ${wl}-berok'
7337 # Exported symbols can be pulled into shared objects from archives
7338 whole_archive_flag_spec='$convenience'
7339 archive_cmds_need_lc=yes
7340 # This is similar to how AIX traditionally builds its shared libraries.
7341 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'
7347 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)'
7348 hardcode_libdir_flag_spec='-L$libdir'
7349 hardcode_minus_L=yes
7350 # see comment about different semantics on the GNU ld section
7355 export_dynamic_flag_spec=-rdynamic
7358 cygwin* | mingw* | pw32*)
7359 # When not using gcc, we currently assume that we are using
7360 # Microsoft Visual C++.
7361 # hardcode_libdir_flag_spec is actually meaningless, as there is
7362 # no search path for DLLs.
7363 hardcode_libdir_flag_spec=' '
7364 allow_undefined_flag=unsupported
7365 # Tell ltmain to make .lib files, not .a files.
7367 # Tell ltmain to make .dll files, not .so files.
7369 # FIXME: Setting linknames here is a bad hack.
7370 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7371 # The linker will automatically build a .lib file if we build a DLL.
7372 old_archive_From_new_cmds='true'
7373 # FIXME: Should let the user specify the lib program.
7374 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7375 fix_srcfile_path='`cygpath -w "$srcfile"`'
7376 enable_shared_with_static_runtimes=yes
7379 darwin* | rhapsody*)
7381 rhapsody* | darwin1.[012])
7382 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7385 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7386 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7388 case ${MACOSX_DEPLOYMENT_TARGET} in
7390 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7393 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7399 archive_cmds_need_lc=no
7401 hardcode_automatic=yes
7402 hardcode_shlibpath_var=unsupported
7403 whole_archive_flag_spec=''
7404 link_all_deplibs=yes
7405 if test "$GCC" = yes ; then
7406 output_verbose_link_cmd='echo'
7407 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7408 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7409 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7410 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}'
7411 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}'
7413 case $cc_basename in
7415 output_verbose_link_cmd='echo'
7416 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7417 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7418 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7419 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}'
7420 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}'
7430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7431 hardcode_libdir_flag_spec='-L$libdir'
7432 hardcode_shlibpath_var=no
7439 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7440 # support. Future versions do this automatically, but an explicit c++rt0.o
7441 # does not break anything, and helps significantly (at the cost of a little
7444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7445 hardcode_libdir_flag_spec='-R$libdir'
7447 hardcode_shlibpath_var=no
7450 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7454 hardcode_minus_L=yes
7455 hardcode_shlibpath_var=no
7458 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7459 freebsd* | kfreebsd*-gnu | dragonfly*)
7460 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7461 hardcode_libdir_flag_spec='-R$libdir'
7463 hardcode_shlibpath_var=no
7467 if test "$GCC" = yes; then
7468 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'
7470 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'
7472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7473 hardcode_libdir_separator=:
7476 # hardcode_minus_L: Not really in the search PATH,
7477 # but as the default location of the library.
7478 hardcode_minus_L=yes
7479 export_dynamic_flag_spec='${wl}-E'
7483 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7484 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7486 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7488 if test "$with_gnu_ld" = no; then
7489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7490 hardcode_libdir_separator=:
7493 export_dynamic_flag_spec='${wl}-E'
7495 # hardcode_minus_L: Not really in the search PATH,
7496 # but as the default location of the library.
7497 hardcode_minus_L=yes
7502 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7505 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7508 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7511 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7517 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7520 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7523 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7527 if test "$with_gnu_ld" = no; then
7528 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7529 hardcode_libdir_separator=:
7533 hardcode_libdir_flag_spec_ld='+b $libdir'
7535 hardcode_shlibpath_var=no
7539 export_dynamic_flag_spec='${wl}-E'
7541 # hardcode_minus_L: Not really in the search PATH,
7542 # but as the default location of the library.
7543 hardcode_minus_L=yes
7549 irix5* | irix6* | nonstopux*)
7550 if test "$GCC" = yes; then
7551 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'
7553 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'
7554 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7557 hardcode_libdir_separator=:
7558 link_all_deplibs=yes
7562 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7565 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7567 hardcode_libdir_flag_spec='-R$libdir'
7569 hardcode_shlibpath_var=no
7573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7576 hardcode_libdir_separator=:
7577 hardcode_shlibpath_var=no
7582 hardcode_shlibpath_var=no
7583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7585 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7586 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7587 export_dynamic_flag_spec='${wl}-E'
7590 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7592 hardcode_libdir_flag_spec='-R$libdir'
7595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7596 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7603 hardcode_libdir_flag_spec='-L$libdir'
7604 hardcode_minus_L=yes
7605 allow_undefined_flag=unsupported
7606 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'
7607 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7611 if test "$GCC" = yes; then
7612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7613 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'
7615 allow_undefined_flag=' -expect_unresolved \*'
7616 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'
7618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7619 hardcode_libdir_separator=:
7622 osf4* | osf5*) # as osf3* with the addition of -msym flag
7623 if test "$GCC" = yes; then
7624 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7625 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'
7626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7628 allow_undefined_flag=' -expect_unresolved \*'
7629 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'
7630 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7631 $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'
7633 # Both c and cxx compiler support -rpath directly
7634 hardcode_libdir_flag_spec='-rpath $libdir'
7636 hardcode_libdir_separator=:
7640 no_undefined_flag=' -z text'
7641 if test "$GCC" = yes; then
7643 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7644 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7645 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7648 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7649 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7650 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7652 hardcode_libdir_flag_spec='-R$libdir'
7653 hardcode_shlibpath_var=no
7655 solaris2.[0-5] | solaris2.[0-5].*) ;;
7657 # The compiler driver will combine linker options so we
7658 # cannot just pass the convience library names through
7659 # without $wl, iff we do not link with $LD.
7660 # Luckily, gcc supports the same syntax we need for Sun Studio.
7661 # Supported since Solaris 2.6 (maybe 2.5.1?)
7664 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7666 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' ;;
7669 link_all_deplibs=yes
7673 if test "x$host_vendor" = xsequent; then
7674 # Use $CC to link under sequent, because it throws in some extra .o
7675 # files that make .init and .fini sections work.
7676 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7678 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7680 hardcode_libdir_flag_spec='-L$libdir'
7682 hardcode_minus_L=yes
7683 hardcode_shlibpath_var=no
7687 case $host_vendor in
7689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7690 hardcode_direct=yes # is this really true???
7693 ## LD is ld it makes a PLAMLIB
7694 ## CC just makes a GrossModule.
7695 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7696 reload_cmds='$CC -r -o $output$reload_objs'
7700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7701 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7704 runpath_var='LD_RUN_PATH'
7705 hardcode_shlibpath_var=no
7709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7710 hardcode_shlibpath_var=no
7711 export_dynamic_flag_spec='-Bexport'
7715 if test -d /usr/nec; then
7716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7717 hardcode_shlibpath_var=no
7718 runpath_var=LD_RUN_PATH
7719 hardcode_runpath_var=yes
7724 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7725 no_undefined_flag='${wl}-z,text'
7726 archive_cmds_need_lc=no
7727 hardcode_shlibpath_var=no
7728 runpath_var='LD_RUN_PATH'
7730 if test "$GCC" = yes; then
7731 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7732 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7734 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7735 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7739 sysv5* | sco3.2v5* | sco5v6*)
7740 # Note: We can NOT use -z defs as we might desire, because we do not
7741 # link with -lc, and that would cause any symbols used from libc to
7742 # always be unresolved, which means just about no library would
7743 # ever link correctly. If we're not using GNU ld we use -z text
7744 # though, which does catch some bad symbols but isn't as heavy-handed
7746 no_undefined_flag='${wl}-z,text'
7747 allow_undefined_flag='${wl}-z,nodefs'
7748 archive_cmds_need_lc=no
7749 hardcode_shlibpath_var=no
7750 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7751 hardcode_libdir_separator=':'
7752 link_all_deplibs=yes
7753 export_dynamic_flag_spec='${wl}-Bexport'
7754 runpath_var='LD_RUN_PATH'
7756 if test "$GCC" = yes; then
7757 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7758 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7760 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7761 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7767 hardcode_libdir_flag_spec='-L$libdir'
7768 hardcode_shlibpath_var=no
7777 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7778 echo "${ECHO_T}$ld_shlibs" >&6
7779 test "$ld_shlibs" = no && can_build_shared=no
7782 # Do we need to explicitly link libc?
7784 case "x$archive_cmds_need_lc" in
7786 # Assume -lc should be added
7787 archive_cmds_need_lc=yes
7789 if test "$enable_shared" = yes && test "$GCC" = yes; then
7790 case $archive_cmds in
7792 # FIXME: we may have to deal with multi-command sequences.
7795 # Test whether the compiler implicitly links with -lc since on some
7796 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7797 # to ld, don't add -lc before -lgcc.
7798 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7799 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7804 (eval $ac_compile) 2>&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } 2>conftest.err; then
7810 libobjs=conftest.$ac_objext
7812 wl=$lt_prog_compiler_wl
7813 pic_flag=$lt_prog_compiler_pic
7819 lt_save_allow_undefined_flag=$allow_undefined_flag
7820 allow_undefined_flag=
7821 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7822 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }
7827 archive_cmds_need_lc=no
7829 archive_cmds_need_lc=yes
7831 allow_undefined_flag=$lt_save_allow_undefined_flag
7833 cat conftest.err 1>&5
7836 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7837 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7844 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7845 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7847 libname_spec='lib$name'
7855 shlibpath_overrides_runpath=unknown
7857 dynamic_linker="$host_os ld.so"
7858 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7859 if test "$GCC" = yes; then
7860 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7861 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7862 # if the path contains ";" then we assume it to be the separator
7863 # otherwise default to the standard path separator (i.e. ":") - it is
7864 # assumed that no part of a normal pathname contains ";" but that should
7865 # okay in the real world where ";" in dirpaths is itself problematic.
7866 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7868 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7871 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7873 need_lib_prefix=unknown
7874 hardcode_into_libs=no
7876 # when you set need_version to no, make sure it does not cause -set_version
7877 # flags to be left without arguments
7878 need_version=unknown
7883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7884 shlibpath_var=LIBPATH
7886 # AIX 3 has no versioning support, so we append a major version to the name.
7887 soname_spec='${libname}${release}${shared_ext}$major'
7894 hardcode_into_libs=yes
7895 if test "$host_cpu" = ia64; then
7896 # AIX 5 supports IA64
7897 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7898 shlibpath_var=LD_LIBRARY_PATH
7900 # With GCC up to 2.95.x, collect2 would create an import file
7901 # for dependence libraries. The import file would start with
7902 # the line `#! .'. This would cause the generated library to
7903 # depend on `.', always an invalid library. This was fixed in
7904 # development snapshots of GCC prior to 3.0.
7906 aix4 | aix4.[01] | aix4.[01].*)
7907 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7909 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7916 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7917 # soname into executable. Probably we can add versioning support to
7918 # collect2, so additional links can be useful in future.
7919 if test "$aix_use_runtimelinking" = yes; then
7920 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7921 # instead of lib<name>.a to let people know that these are not
7922 # typical AIX shared libraries.
7923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925 # We preserve .a as extension for shared libraries through AIX4.2
7926 # and later when we are not doing run time linking.
7927 library_names_spec='${libname}${release}.a $libname.a'
7928 soname_spec='${libname}${release}${shared_ext}$major'
7930 shlibpath_var=LIBPATH
7935 library_names_spec='$libname.ixlibrary $libname.a'
7936 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7937 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'
7941 library_names_spec='${libname}${shared_ext}'
7942 dynamic_linker="$host_os ld.so"
7943 shlibpath_var=LIBRARY_PATH
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950 soname_spec='${libname}${release}${shared_ext}$major'
7951 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7952 shlibpath_var=LD_LIBRARY_PATH
7953 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7954 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7955 # the default ld.so.conf also contains /usr/contrib/lib and
7956 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7957 # libtool to hard-code these into programs
7960 cygwin* | mingw* | pw32*)
7961 version_type=windows
7966 case $GCC,$host_os in
7967 yes,cygwin* | yes,mingw* | yes,pw32*)
7968 library_names_spec='$libname.dll.a'
7969 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7970 postinstall_cmds='base_file=`basename \${file}`~
7971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7972 dldir=$destdir/`dirname \$dlpath`~
7973 test -d \$dldir || mkdir -p \$dldir~
7974 $install_prog $dir/$dlname \$dldir/$dlname~
7975 chmod a+x \$dldir/$dlname'
7976 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7977 dlpath=$dir/\$dldll~
7979 shlibpath_overrides_runpath=yes
7983 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7984 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7985 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7988 # MinGW DLLs use traditional 'lib' prefix
7989 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7990 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7991 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7992 # It is most probably a Windows format PATH printed by
7993 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7994 # path with ; separators, and with drive letters. We can handle the
7995 # drive letters (cygwin fileutils understands them), so leave them,
7996 # especially as we might pass files found there to a mingw objdump,
7997 # which wouldn't understand a cygwinified path. Ahh.
7998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8004 # pw32 DLLs use 'pw' prefix rather than 'lib'
8005 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8011 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8014 dynamic_linker='Win32 ld.exe'
8015 # FIXME: first we should search . and the directory the executable is in
8019 darwin* | rhapsody*)
8020 dynamic_linker="$host_os dyld"
8024 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8025 soname_spec='${libname}${release}${major}$shared_ext'
8026 shlibpath_overrides_runpath=yes
8027 shlibpath_var=DYLD_LIBRARY_PATH
8028 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8029 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8030 if test "$GCC" = yes; then
8031 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"`
8033 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8043 soname_spec='${libname}${release}${shared_ext}$major'
8044 shlibpath_var=LD_LIBRARY_PATH
8055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8056 soname_spec='${libname}${release}${shared_ext}$major'
8057 shlibpath_var=LD_LIBRARY_PATH
8058 shlibpath_overrides_runpath=no
8059 hardcode_into_libs=yes
8060 dynamic_linker='GNU ld.so'
8063 freebsd* | dragonfly*)
8064 # DragonFly does not have aout. When/if they implement a new
8065 # versioning mechanism, adjust this.
8066 if test -x /usr/bin/objformat; then
8067 objformat=`/usr/bin/objformat`
8070 freebsd[123]*) objformat=aout ;;
8074 version_type=freebsd-$objformat
8075 case $version_type in
8077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8086 shlibpath_var=LD_LIBRARY_PATH
8089 shlibpath_overrides_runpath=yes
8091 freebsd3.[01]* | freebsdelf3.[01]*)
8092 shlibpath_overrides_runpath=yes
8093 hardcode_into_libs=yes
8095 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8096 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8097 shlibpath_overrides_runpath=no
8098 hardcode_into_libs=yes
8100 freebsd*) # from 4.6 on
8101 shlibpath_overrides_runpath=yes
8102 hardcode_into_libs=yes
8111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8112 soname_spec='${libname}${release}${shared_ext}$major'
8113 shlibpath_var=LD_LIBRARY_PATH
8114 hardcode_into_libs=yes
8117 hpux9* | hpux10* | hpux11*)
8118 # Give a soname corresponding to the major version so that dld.sl refuses to
8119 # link against other versions.
8126 hardcode_into_libs=yes
8127 dynamic_linker="$host_os dld.so"
8128 shlibpath_var=LD_LIBRARY_PATH
8129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8131 soname_spec='${libname}${release}${shared_ext}$major'
8132 if test "X$HPUX_IA64_MODE" = X32; then
8133 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8135 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8141 hardcode_into_libs=yes
8142 dynamic_linker="$host_os dld.sl"
8143 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8146 soname_spec='${libname}${release}${shared_ext}$major'
8147 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8152 dynamic_linker="$host_os dld.sl"
8153 shlibpath_var=SHLIB_PATH
8154 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8156 soname_spec='${libname}${release}${shared_ext}$major'
8159 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8160 postinstall_cmds='chmod 555 $lib'
8167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8168 soname_spec='${libname}${release}${shared_ext}$major'
8169 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8170 shlibpath_var=LD_LIBRARY_PATH
8171 shlibpath_overrides_runpath=no
8172 hardcode_into_libs=yes
8175 irix5* | irix6* | nonstopux*)
8177 nonstopux*) version_type=nonstopux ;;
8179 if test "$lt_cv_prog_gnu_ld" = yes; then
8187 soname_spec='${libname}${release}${shared_ext}$major'
8188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8190 irix5* | nonstopux*)
8194 case $LD in # libtool.m4 will add one of these switches to LD
8195 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8196 libsuff= shlibsuff= libmagic=32-bit;;
8197 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8198 libsuff=32 shlibsuff=N32 libmagic=N32;;
8199 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8200 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8201 *) libsuff= shlibsuff= libmagic=never-match;;
8205 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8206 shlibpath_overrides_runpath=no
8207 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8208 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8209 hardcode_into_libs=yes
8212 # No shared lib support for Linux oldld, aout, or coff.
8213 linux*oldld* | linux*aout* | linux*coff*)
8217 # This must be Linux ELF.
8222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8223 soname_spec='${libname}${release}${shared_ext}$major'
8224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8225 shlibpath_var=LD_LIBRARY_PATH
8226 shlibpath_overrides_runpath=no
8227 # This implies no fast_install, which is unacceptable.
8228 # Some rework will be needed to allow for fast_install
8229 # before this can be enabled.
8230 hardcode_into_libs=yes
8232 # find out which ABI we are using
8235 x86_64*|s390x*|powerpc64*)
8236 echo '#line 8236 "configure"' > conftest.$ac_ext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238 (eval $ac_compile) 2>&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; then
8242 case `/usr/bin/file conftest.$ac_objext` in
8245 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8253 # Append ld.so.conf contents to the search path
8254 if test -f /etc/ld.so.conf; then
8255 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8256 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8259 # We used to test for /lib/ld.so.1 and disable shared libraries on
8260 # powerpc, because MkLinux only supported shared libraries with the
8261 # GNU dynamic linker. Since this was broken with cross compilers,
8262 # most powerpc-linux boxes support dynamic linking these days and
8263 # people can always --disable-shared, the test was removed, and we
8264 # assume the GNU/Linux dynamic linker is in use.
8265 dynamic_linker='GNU/Linux ld.so'
8272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8273 soname_spec='${libname}${release}${shared_ext}$major'
8274 shlibpath_var=LD_LIBRARY_PATH
8275 shlibpath_overrides_runpath=no
8276 hardcode_into_libs=yes
8277 dynamic_linker='GNU ld.so'
8284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8287 dynamic_linker='NetBSD (a.out) ld.so'
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8290 soname_spec='${libname}${release}${shared_ext}$major'
8291 dynamic_linker='NetBSD ld.elf_so'
8293 shlibpath_var=LD_LIBRARY_PATH
8294 shlibpath_overrides_runpath=yes
8295 hardcode_into_libs=yes
8300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301 shlibpath_var=LD_LIBRARY_PATH
8302 shlibpath_overrides_runpath=yes
8309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8310 soname_spec='${libname}${release}${shared_ext}$major'
8311 shlibpath_var=LD_LIBRARY_PATH
8312 shlibpath_overrides_runpath=yes
8317 sys_lib_dlsearch_path_spec="/usr/lib"
8319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8321 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8322 *) need_version=no ;;
8324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8326 shlibpath_var=LD_LIBRARY_PATH
8327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8329 openbsd2.[89] | openbsd2.[89].*)
8330 shlibpath_overrides_runpath=no
8333 shlibpath_overrides_runpath=yes
8337 shlibpath_overrides_runpath=yes
8342 libname_spec='$name'
8345 library_names_spec='$libname${shared_ext} $libname.a'
8346 dynamic_linker='OS/2 ld.exe'
8347 shlibpath_var=LIBPATH
8350 osf3* | osf4* | osf5*)
8354 soname_spec='${libname}${release}${shared_ext}$major'
8355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8356 shlibpath_var=LD_LIBRARY_PATH
8357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8366 soname_spec='${libname}${release}${shared_ext}$major'
8367 shlibpath_var=LD_LIBRARY_PATH
8368 shlibpath_overrides_runpath=yes
8369 hardcode_into_libs=yes
8370 # ldd complains unless libraries are executable
8371 postinstall_cmds='chmod +x $lib'
8376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8377 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8378 shlibpath_var=LD_LIBRARY_PATH
8379 shlibpath_overrides_runpath=yes
8380 if test "$with_gnu_ld" = yes; then
8388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8389 soname_spec='${libname}${release}${shared_ext}$major'
8390 shlibpath_var=LD_LIBRARY_PATH
8391 case $host_vendor in
8393 shlibpath_overrides_runpath=no
8395 export_dynamic_flag_spec='${wl}-Blargedynsym'
8396 runpath_var=LD_RUN_PATH
8404 shlibpath_overrides_runpath=no
8405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8411 if test -d /usr/nec ;then
8413 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8414 soname_spec='$libname${shared_ext}.$major'
8415 shlibpath_var=LD_LIBRARY_PATH
8419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8420 version_type=freebsd-elf
8423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8424 soname_spec='${libname}${release}${shared_ext}$major'
8425 shlibpath_var=LD_LIBRARY_PATH
8426 hardcode_into_libs=yes
8427 if test "$with_gnu_ld" = yes; then
8428 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8429 shlibpath_overrides_runpath=no
8431 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8432 shlibpath_overrides_runpath=yes
8435 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8439 sys_lib_dlsearch_path_spec='/usr/lib'
8444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8445 soname_spec='${libname}${release}${shared_ext}$major'
8446 shlibpath_var=LD_LIBRARY_PATH
8453 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8454 echo "${ECHO_T}$dynamic_linker" >&6
8455 test "$dynamic_linker" = no && can_build_shared=no
8457 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8458 if test "$GCC" = yes; then
8459 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8462 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8463 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8465 if test -n "$hardcode_libdir_flag_spec" || \
8466 test -n "$runpath_var" || \
8467 test "X$hardcode_automatic" = "Xyes" ; then
8469 # We can hardcode non-existant directories.
8470 if test "$hardcode_direct" != no &&
8471 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8472 # have to relink, otherwise we might link with an installed library
8473 # when we should be linking with a yet-to-be-installed one
8474 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8475 test "$hardcode_minus_L" != no; then
8476 # Linking always hardcodes the temporary library directory.
8477 hardcode_action=relink
8479 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8480 hardcode_action=immediate
8483 # We cannot hardcode anything, or else we can only hardcode existing
8485 hardcode_action=unsupported
8487 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8488 echo "${ECHO_T}$hardcode_action" >&6
8490 if test "$hardcode_action" = relink; then
8491 # Fast installation is not supported
8492 enable_fast_install=no
8493 elif test "$shlibpath_overrides_runpath" = yes ||
8494 test "$enable_shared" = no; then
8495 # Fast installation is not necessary
8496 enable_fast_install=needless
8501 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8502 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8503 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8504 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8505 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8506 echo "$as_me:$LINENO: result: yes" >&5
8507 echo "${ECHO_T}yes" >&6
8509 # FIXME - insert some real tests, host_os isn't really good enough
8512 if test -n "$STRIP" ; then
8513 striplib="$STRIP -x"
8514 echo "$as_me:$LINENO: result: yes" >&5
8515 echo "${ECHO_T}yes" >&6
8517 echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6
8522 echo "$as_me:$LINENO: result: no" >&5
8523 echo "${ECHO_T}no" >&6
8528 if test "x$enable_dlopen" != xyes; then
8529 enable_dlopen=unknown
8530 enable_dlopen_self=unknown
8531 enable_dlopen_self_static=unknown
8538 lt_cv_dlopen="load_add_on"
8540 lt_cv_dlopen_self=yes
8544 lt_cv_dlopen="LoadLibrary"
8549 lt_cv_dlopen="dlopen"
8554 # if libdl is installed we need to link against it
8555 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8556 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 ac_check_lib_save_LIBS=$LIBS
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8569 /* Override any gcc2 internal prototype to avoid an error. */
8573 /* We use char because int might match the return type of a gcc2
8574 builtin and then its argument prototype would still apply. */
8584 rm -f conftest.$ac_objext conftest$ac_exeext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586 (eval $ac_link) 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag"
8594 || test ! -s conftest.err'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; } &&
8600 { ac_try='test -s conftest$ac_exeext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_cv_lib_dl_dlopen=yes
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ac_cv_lib_dl_dlopen=no
8613 rm -f conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8615 LIBS=$ac_check_lib_save_LIBS
8617 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8618 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8619 if test $ac_cv_lib_dl_dlopen = yes; then
8620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8625 lt_cv_dlopen_self=yes
8632 echo "$as_me:$LINENO: checking for shl_load" >&5
8633 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8634 if test "${ac_cv_func_shl_load+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 cat >conftest.$ac_ext <<_ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8645 #define shl_load innocuous_shl_load
8647 /* System header to define __stub macros and hopefully few prototypes,
8648 which can conflict with char shl_load (); below.
8649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8650 <limits.h> exists even on freestanding compilers. */
8653 # include <limits.h>
8655 # include <assert.h>
8660 /* Override any gcc2 internal prototype to avoid an error. */
8665 /* We use char because int might match the return type of a gcc2
8666 builtin and then its argument prototype would still apply. */
8668 /* The GNU C library defines this for functions which it implements
8669 to always fail with ENOSYS. Some functions are actually named
8670 something starting with __ and the normal name is an alias. */
8671 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8674 char (*f) () = shl_load;
8683 return f != shl_load;
8688 rm -f conftest.$ac_objext conftest$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690 (eval $ac_link) 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest$ac_exeext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_cv_func_shl_load=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_func_shl_load=no
8717 rm -f conftest.err conftest.$ac_objext \
8718 conftest$ac_exeext conftest.$ac_ext
8720 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8721 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8722 if test $ac_cv_func_shl_load = yes; then
8723 lt_cv_dlopen="shl_load"
8725 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8726 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8727 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 ac_check_lib_save_LIBS=$LIBS
8732 cat >conftest.$ac_ext <<_ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8739 /* Override any gcc2 internal prototype to avoid an error. */
8743 /* We use char because int might match the return type of a gcc2
8744 builtin and then its argument prototype would still apply. */
8754 rm -f conftest.$ac_objext conftest$ac_exeext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756 (eval $ac_link) 2>conftest.er1
8758 grep -v '^ *+' conftest.er1 >conftest.err
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -z "$ac_c_werror_flag"
8764 || test ! -s conftest.err'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; } &&
8770 { ac_try='test -s conftest$ac_exeext'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 ac_cv_lib_dld_shl_load=yes
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8781 ac_cv_lib_dld_shl_load=no
8783 rm -f conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8785 LIBS=$ac_check_lib_save_LIBS
8787 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8788 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8789 if test $ac_cv_lib_dld_shl_load = yes; then
8790 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8792 echo "$as_me:$LINENO: checking for dlopen" >&5
8793 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8794 if test "${ac_cv_func_dlopen+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8805 #define dlopen innocuous_dlopen
8807 /* System header to define __stub macros and hopefully few prototypes,
8808 which can conflict with char dlopen (); below.
8809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8810 <limits.h> exists even on freestanding compilers. */
8813 # include <limits.h>
8815 # include <assert.h>
8820 /* Override any gcc2 internal prototype to avoid an error. */
8825 /* We use char because int might match the return type of a gcc2
8826 builtin and then its argument prototype would still apply. */
8828 /* The GNU C library defines this for functions which it implements
8829 to always fail with ENOSYS. Some functions are actually named
8830 something starting with __ and the normal name is an alias. */
8831 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8834 char (*f) () = dlopen;
8848 rm -f conftest.$ac_objext conftest$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850 (eval $ac_link) 2>conftest.er1
8852 grep -v '^ *+' conftest.er1 >conftest.err
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try='test -z "$ac_c_werror_flag"
8858 || test ! -s conftest.err'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; } &&
8864 { ac_try='test -s conftest$ac_exeext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8870 ac_cv_func_dlopen=yes
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8875 ac_cv_func_dlopen=no
8877 rm -f conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8880 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8881 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8882 if test $ac_cv_func_dlopen = yes; then
8883 lt_cv_dlopen="dlopen"
8885 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8886 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 ac_check_lib_save_LIBS=$LIBS
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8899 /* Override any gcc2 internal prototype to avoid an error. */
8903 /* We use char because int might match the return type of a gcc2
8904 builtin and then its argument prototype would still apply. */
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8918 grep -v '^ *+' conftest.er1 >conftest.err
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_lib_dl_dlopen=yes
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_cv_lib_dl_dlopen=no
8943 rm -f conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 LIBS=$ac_check_lib_save_LIBS
8947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8949 if test $ac_cv_lib_dl_dlopen = yes; then
8950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8952 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8953 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8954 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 ac_check_lib_save_LIBS=$LIBS
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8966 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983 (eval $ac_link) 2>conftest.er1
8985 grep -v '^ *+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try='test -z "$ac_c_werror_flag"
8991 || test ! -s conftest.err'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; } &&
8997 { ac_try='test -s conftest$ac_exeext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 ac_cv_lib_svld_dlopen=yes
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9008 ac_cv_lib_svld_dlopen=no
9010 rm -f conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
9012 LIBS=$ac_check_lib_save_LIBS
9014 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9015 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9016 if test $ac_cv_lib_svld_dlopen = yes; then
9017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9019 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9020 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9021 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 ac_check_lib_save_LIBS=$LIBS
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9033 /* Override any gcc2 internal prototype to avoid an error. */
9037 /* We use char because int might match the return type of a gcc2
9038 builtin and then its argument prototype would still apply. */
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9050 (eval $ac_link) 2>conftest.er1
9052 grep -v '^ *+' conftest.er1 >conftest.err
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } &&
9057 { ac_try='test -z "$ac_c_werror_flag"
9058 || test ! -s conftest.err'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; } &&
9064 { ac_try='test -s conftest$ac_exeext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_cv_lib_dld_dld_link=yes
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9075 ac_cv_lib_dld_dld_link=no
9077 rm -f conftest.err conftest.$ac_objext \
9078 conftest$ac_exeext conftest.$ac_ext
9079 LIBS=$ac_check_lib_save_LIBS
9081 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9082 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9083 if test $ac_cv_lib_dld_dld_link = yes; then
9084 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9105 if test "x$lt_cv_dlopen" != xno; then
9111 case $lt_cv_dlopen in
9113 save_CPPFLAGS="$CPPFLAGS"
9114 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9116 save_LDFLAGS="$LDFLAGS"
9117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9120 LIBS="$lt_cv_dlopen_libs $LIBS"
9122 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9123 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9124 if test "${lt_cv_dlopen_self+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 if test "$cross_compiling" = yes; then :
9128 lt_cv_dlopen_self=cross
9130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9131 lt_status=$lt_dlunknown
9132 cat > conftest.$ac_ext <<EOF
9133 #line 9133 "configure"
9134 #include "confdefs.h"
9143 # define LT_DLGLOBAL RTLD_GLOBAL
9146 # define LT_DLGLOBAL DL_GLOBAL
9148 # define LT_DLGLOBAL 0
9152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9153 find out it does not work in some platform. */
9154 #ifndef LT_DLLAZY_OR_NOW
9156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9159 # define LT_DLLAZY_OR_NOW DL_LAZY
9162 # define LT_DLLAZY_OR_NOW RTLD_NOW
9165 # define LT_DLLAZY_OR_NOW DL_NOW
9167 # define LT_DLLAZY_OR_NOW 0
9175 extern "C" void exit (int);
9178 void fnord() { int i=42;}
9181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9182 int status = $lt_dlunknown;
9186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9187 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9188 /* dlclose (self); */
9196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197 (eval $ac_link) 2>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9201 (./conftest; exit; ) >&5 2>/dev/null
9204 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9205 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9206 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9209 # compilation failed
9210 lt_cv_dlopen_self=no
9217 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9218 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9220 if test "x$lt_cv_dlopen_self" = xyes; then
9221 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9222 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9223 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9224 if test "${lt_cv_dlopen_self_static+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 if test "$cross_compiling" = yes; then :
9228 lt_cv_dlopen_self_static=cross
9230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9231 lt_status=$lt_dlunknown
9232 cat > conftest.$ac_ext <<EOF
9233 #line 9233 "configure"
9234 #include "confdefs.h"
9243 # define LT_DLGLOBAL RTLD_GLOBAL
9246 # define LT_DLGLOBAL DL_GLOBAL
9248 # define LT_DLGLOBAL 0
9252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9253 find out it does not work in some platform. */
9254 #ifndef LT_DLLAZY_OR_NOW
9256 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9259 # define LT_DLLAZY_OR_NOW DL_LAZY
9262 # define LT_DLLAZY_OR_NOW RTLD_NOW
9265 # define LT_DLLAZY_OR_NOW DL_NOW
9267 # define LT_DLLAZY_OR_NOW 0
9275 extern "C" void exit (int);
9278 void fnord() { int i=42;}
9281 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9282 int status = $lt_dlunknown;
9286 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9287 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9288 /* dlclose (self); */
9296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297 (eval $ac_link) 2>&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9301 (./conftest; exit; ) >&5 2>/dev/null
9304 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9305 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9306 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9309 # compilation failed
9310 lt_cv_dlopen_self_static=no
9317 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9318 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9321 CPPFLAGS="$save_CPPFLAGS"
9322 LDFLAGS="$save_LDFLAGS"
9327 case $lt_cv_dlopen_self in
9328 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9329 *) enable_dlopen_self=unknown ;;
9332 case $lt_cv_dlopen_self_static in
9333 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9334 *) enable_dlopen_self_static=unknown ;;
9339 # Report which library types will actually be built
9340 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9341 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9342 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9343 echo "${ECHO_T}$can_build_shared" >&6
9345 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9346 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9347 test "$can_build_shared" = "no" && enable_shared=no
9349 # On AIX, shared libraries and static libraries use the same namespace, and
9350 # are all built from PIC.
9353 test "$enable_shared" = yes && enable_static=no
9354 if test -n "$RANLIB"; then
9355 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9356 postinstall_cmds='$RANLIB $lib'
9361 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9362 test "$enable_shared" = yes && enable_static=no
9366 echo "$as_me:$LINENO: result: $enable_shared" >&5
9367 echo "${ECHO_T}$enable_shared" >&6
9369 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9370 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9371 # Make sure either enable_shared or enable_static is yes.
9372 test "$enable_shared" = yes || enable_static=yes
9373 echo "$as_me:$LINENO: result: $enable_static" >&5
9374 echo "${ECHO_T}$enable_static" >&6
9376 # The else clause should only fire when bootstrapping the
9377 # libtool distribution, otherwise you forgot to ship ltmain.sh
9378 # with your package, and you will get complaints that there are
9379 # no rules to generate ltmain.sh.
9380 if test -f "$ltmain"; then
9381 # See if we are running on zsh, and set the options which allow our commands through
9382 # without removal of \ escapes.
9383 if test -n "${ZSH_VERSION+set}" ; then
9384 setopt NO_GLOB_SUBST
9386 # Now quote all the things that may contain metacharacters while being
9387 # careful not to overquote the AC_SUBSTed values. We take copies of the
9388 # variables and quote the copies for generation of the libtool script.
9389 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9391 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9392 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9393 deplibs_check_method reload_flag reload_cmds need_locks \
9394 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9395 lt_cv_sys_global_symbol_to_c_name_address \
9396 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9397 old_postinstall_cmds old_postuninstall_cmds \
9401 lt_prog_compiler_wl \
9402 lt_prog_compiler_pic \
9403 lt_prog_compiler_static \
9404 lt_prog_compiler_no_builtin_flag \
9405 export_dynamic_flag_spec \
9406 thread_safe_flag_spec \
9407 whole_archive_flag_spec \
9408 enable_shared_with_static_runtimes \
9410 old_archive_from_new_cmds \
9415 compiler_lib_search_path \
9417 archive_expsym_cmds \
9419 postuninstall_cmds \
9420 old_archive_from_expsyms_cmds \
9421 allow_undefined_flag \
9423 export_symbols_cmds \
9424 hardcode_libdir_flag_spec \
9425 hardcode_libdir_flag_spec_ld \
9426 hardcode_libdir_separator \
9427 hardcode_automatic \
9429 module_expsym_cmds \
9430 lt_cv_prog_compiler_c_o \
9435 old_archive_cmds | \
9436 old_archive_from_new_cmds | \
9438 archive_expsym_cmds | \
9440 module_expsym_cmds | \
9441 old_archive_from_expsyms_cmds | \
9442 export_symbols_cmds | \
9443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9444 postinstall_cmds | postuninstall_cmds | \
9445 old_postinstall_cmds | old_postuninstall_cmds | \
9446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9447 # Double-quote double-evaled strings.
9448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9457 *'\$0 --fallback-echo"')
9458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9463 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9465 { echo "$as_me:$LINENO: creating $ofile" >&5
9466 echo "$as_me: creating $ofile" >&6;}
9468 cat <<__EOF__ >> "$cfgfile"
9471 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9472 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9473 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9475 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9476 # Free Software Foundation, Inc.
9478 # This file is part of GNU Libtool:
9479 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9481 # This program is free software; you can redistribute it and/or modify
9482 # it under the terms of the GNU General Public License as published by
9483 # the Free Software Foundation; either version 2 of the License, or
9484 # (at your option) any later version.
9486 # This program is distributed in the hope that it will be useful, but
9487 # WITHOUT ANY WARRANTY; without even the implied warranty of
9488 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9489 # General Public License for more details.
9491 # You should have received a copy of the GNU General Public License
9492 # along with this program; if not, write to the Free Software
9493 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9495 # As a special exception to the GNU General Public License, if you
9496 # distribute this file as part of a program that contains a
9497 # configuration script generated by Autoconf, you may include it under
9498 # the same distribution terms that you use for the rest of that program.
9500 # A sed program that does not truncate output.
9503 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9504 Xsed="$SED -e 1s/^X//"
9506 # The HP-UX ksh and POSIX shell print the target directory to stdout
9508 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9510 # The names of the tagged configurations supported by this script.
9513 # ### BEGIN LIBTOOL CONFIG
9515 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9517 # Shell to use when invoking shell scripts.
9520 # Whether or not to build shared libraries.
9521 build_libtool_libs=$enable_shared
9523 # Whether or not to build static libraries.
9524 build_old_libs=$enable_static
9526 # Whether or not to add -lc for building shared libraries.
9527 build_libtool_need_lc=$archive_cmds_need_lc
9529 # Whether or not to disallow shared libs when runtime libs are static
9530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9532 # Whether or not to optimize for fast installation.
9533 fast_install=$enable_fast_install
9536 host_alias=$host_alias
9541 build_alias=$build_alias
9545 # An echo program that does not interpret backslashes.
9550 AR_FLAGS=$lt_AR_FLAGS
9555 # LTCC compiler flags.
9556 LTCFLAGS=$lt_LTCFLAGS
9558 # A language-specific compiler.
9561 # Is the compiler the GNU C compiler?
9567 # The linker used to build libraries.
9570 # Whether we need hard or soft links.
9573 # A BSD-compatible nm program.
9576 # A symbol stripping program
9579 # Used to examine libraries when file_magic_cmd begins "file"
9580 MAGIC_CMD=$MAGIC_CMD
9582 # Used on cygwin: DLL creation program.
9585 # Used on cygwin: object dumper.
9588 # Used on cygwin: assembler.
9591 # The name of the directory that contains temporary libtool files.
9594 # How to create reloadable object files.
9595 reload_flag=$lt_reload_flag
9596 reload_cmds=$lt_reload_cmds
9598 # How to pass a linker flag through the compiler.
9599 wl=$lt_lt_prog_compiler_wl
9601 # Object file suffix (normally "o").
9604 # Old archive suffix (normally "a").
9607 # Shared library suffix (normally ".so").
9608 shrext_cmds='$shrext_cmds'
9610 # Executable file suffix (normally "").
9613 # Additional compiler flags for building library objects.
9614 pic_flag=$lt_lt_prog_compiler_pic
9617 # What is the maximum length of a command?
9618 max_cmd_len=$lt_cv_sys_max_cmd_len
9620 # Does compiler simultaneously support -c and -o options?
9621 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9623 # Must we lock files when doing compilation?
9624 need_locks=$lt_need_locks
9626 # Do we need the lib prefix for modules?
9627 need_lib_prefix=$need_lib_prefix
9629 # Do we need a version for libraries?
9630 need_version=$need_version
9632 # Whether dlopen is supported.
9633 dlopen_support=$enable_dlopen
9635 # Whether dlopen of programs is supported.
9636 dlopen_self=$enable_dlopen_self
9638 # Whether dlopen of statically linked programs is supported.
9639 dlopen_self_static=$enable_dlopen_self_static
9641 # Compiler flag to prevent dynamic linking.
9642 link_static_flag=$lt_lt_prog_compiler_static
9644 # Compiler flag to turn off builtin functions.
9645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9647 # Compiler flag to allow reflexive dlopens.
9648 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9650 # Compiler flag to generate shared objects directly from archives.
9651 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9653 # Compiler flag to generate thread-safe objects.
9654 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9656 # Library versioning type.
9657 version_type=$version_type
9659 # Format of library name prefix.
9660 libname_spec=$lt_libname_spec
9662 # List of archive names. First name is the real one, the rest are links.
9663 # The last name is the one that the linker finds with -lNAME.
9664 library_names_spec=$lt_library_names_spec
9666 # The coded name of the library, if different from the real name.
9667 soname_spec=$lt_soname_spec
9669 # Commands used to build and install an old-style archive.
9671 old_archive_cmds=$lt_old_archive_cmds
9672 old_postinstall_cmds=$lt_old_postinstall_cmds
9673 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9675 # Create an old-style archive from a shared archive.
9676 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9678 # Create a temporary old-style archive to link instead of a shared archive.
9679 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9681 # Commands used to build and install a shared archive.
9682 archive_cmds=$lt_archive_cmds
9683 archive_expsym_cmds=$lt_archive_expsym_cmds
9684 postinstall_cmds=$lt_postinstall_cmds
9685 postuninstall_cmds=$lt_postuninstall_cmds
9687 # Commands used to build a loadable module (assumed same as above if empty)
9688 module_cmds=$lt_module_cmds
9689 module_expsym_cmds=$lt_module_expsym_cmds
9691 # Commands to strip libraries.
9692 old_striplib=$lt_old_striplib
9693 striplib=$lt_striplib
9695 # Dependencies to place before the objects being linked to create a
9697 predep_objects=$lt_predep_objects
9699 # Dependencies to place after the objects being linked to create a
9701 postdep_objects=$lt_postdep_objects
9703 # Dependencies to place before the objects being linked to create a
9707 # Dependencies to place after the objects being linked to create a
9709 postdeps=$lt_postdeps
9711 # The library search path used internally by the compiler when linking
9713 compiler_lib_search_path=$lt_compiler_lib_search_path
9715 # Method to check whether dependent libraries are shared objects.
9716 deplibs_check_method=$lt_deplibs_check_method
9718 # Command to use when deplibs_check_method == file_magic.
9719 file_magic_cmd=$lt_file_magic_cmd
9721 # Flag that allows shared libraries with undefined symbols to be built.
9722 allow_undefined_flag=$lt_allow_undefined_flag
9724 # Flag that forces no undefined symbols.
9725 no_undefined_flag=$lt_no_undefined_flag
9727 # Commands used to finish a libtool library installation in a directory.
9728 finish_cmds=$lt_finish_cmds
9730 # Same as above, but a single script fragment to be evaled but not shown.
9731 finish_eval=$lt_finish_eval
9733 # Take the output of nm and produce a listing of raw symbols and C names.
9734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9736 # Transform the output of nm in a proper C declaration
9737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9739 # Transform the output of nm in a C name address pair
9740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9742 # This is the shared library runtime path variable.
9743 runpath_var=$runpath_var
9745 # This is the shared library path variable.
9746 shlibpath_var=$shlibpath_var
9748 # Is shlibpath searched before the hard-coded library search path?
9749 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9751 # How to hardcode a shared library path into an executable.
9752 hardcode_action=$hardcode_action
9754 # Whether we should hardcode library paths into libraries.
9755 hardcode_into_libs=$hardcode_into_libs
9757 # Flag to hardcode \$libdir into a binary during linking.
9758 # This must work even if \$libdir does not exist.
9759 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9761 # If ld is used when linking, flag to hardcode \$libdir into
9762 # a binary during linking. This must work even if \$libdir does
9764 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9766 # Whether we need a single -rpath flag with a separated argument.
9767 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9769 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9771 hardcode_direct=$hardcode_direct
9773 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9775 hardcode_minus_L=$hardcode_minus_L
9777 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9778 # the resulting binary.
9779 hardcode_shlibpath_var=$hardcode_shlibpath_var
9781 # Set to yes if building a shared library automatically hardcodes DIR into the library
9782 # and all subsequent libraries and executables linked against it.
9783 hardcode_automatic=$hardcode_automatic
9785 # Variables whose values should be saved in libtool wrapper scripts and
9786 # restored at relink time.
9787 variables_saved_for_relink="$variables_saved_for_relink"
9789 # Whether libtool must link a program against all its dependency libraries.
9790 link_all_deplibs=$link_all_deplibs
9792 # Compile-time system search path for libraries
9793 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9795 # Run-time system search path for libraries
9796 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9798 # Fix the shell variable \$srcfile for the compiler.
9799 fix_srcfile_path="$fix_srcfile_path"
9801 # Set to yes if exported symbols are required.
9802 always_export_symbols=$always_export_symbols
9804 # The commands to list exported symbols.
9805 export_symbols_cmds=$lt_export_symbols_cmds
9807 # The commands to extract the exported symbol list from a shared archive.
9808 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9810 # Symbols that should not be listed in the preloaded symbols.
9811 exclude_expsyms=$lt_exclude_expsyms
9813 # Symbols that must always be exported.
9814 include_expsyms=$lt_include_expsyms
9816 # ### END LIBTOOL CONFIG
9823 cat <<\EOF >> "$cfgfile"
9825 # AIX sometimes has problems with the GCC collect2 program. For some
9826 # reason, if we set the COLLECT_NAMES environment variable, the problems
9827 # vanish in a puff of smoke.
9828 if test "X${COLLECT_NAMES+set}" != Xset; then
9830 export COLLECT_NAMES
9836 # We use sed instead of cat because bash on DJGPP gets confused if
9837 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9838 # text mode, it properly converts lines to CR/LF. This bash problem
9839 # is reportedly fixed, but why not run on old versions too?
9840 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9842 mv -f "$cfgfile" "$ofile" || \
9843 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9847 # If there is no Makefile yet, we rely on a make rule to execute
9848 # `config.status --recheck' to rerun these tests and create the
9849 # libtool script then.
9850 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9851 if test -f "$ltmain_in"; then
9852 test -f Makefile && make "$ltmain"
9858 ac_cpp='$CPP $CPPFLAGS'
9859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9866 # Check whether --with-tags or --without-tags was given.
9867 if test "${with_tags+set}" = set; then
9868 withval="$with_tags"
9872 if test -f "$ltmain" && test -n "$tagnames"; then
9873 if test ! -f "${ofile}"; then
9874 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9875 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9878 if test -z "$LTCC"; then
9879 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9880 if test -z "$LTCC"; then
9881 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9882 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9885 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9888 if test -z "$LTCFLAGS"; then
9889 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9892 # Extract list of available tagged configurations in $ofile.
9893 # Note that this assumes the entire list is on one line.
9894 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9897 for tagname in $tagnames; do
9899 # Check whether tagname contains only valid characters
9900 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9902 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9903 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9904 { (exit 1); exit 1; }; }
9908 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9910 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9911 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9912 { (exit 1); exit 1; }; }
9915 # Update the list of available tags.
9916 if test -n "$tagname"; then
9917 echo appending configuration tag \"$tagname\" to $ofile
9921 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9922 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9923 (test "X$CXX" != "Xg++"))) ; then
9925 ac_cpp='$CXXCPP $CPPFLAGS'
9926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9933 archive_cmds_need_lc_CXX=no
9934 allow_undefined_flag_CXX=
9935 always_export_symbols_CXX=no
9936 archive_expsym_cmds_CXX=
9937 export_dynamic_flag_spec_CXX=
9938 hardcode_direct_CXX=no
9939 hardcode_libdir_flag_spec_CXX=
9940 hardcode_libdir_flag_spec_ld_CXX=
9941 hardcode_libdir_separator_CXX=
9942 hardcode_minus_L_CXX=no
9943 hardcode_shlibpath_var_CXX=unsupported
9944 hardcode_automatic_CXX=no
9946 module_expsym_cmds_CXX=
9947 link_all_deplibs_CXX=unknown
9948 old_archive_cmds_CXX=$old_archive_cmds
9949 no_undefined_flag_CXX=
9950 whole_archive_flag_spec_CXX=
9951 enable_shared_with_static_runtimes_CXX=no
9953 # Dependencies to place before and after the object being linked:
9955 postdep_objects_CXX=
9958 compiler_lib_search_path_CXX=
9960 # Source file extension for C++ test sources.
9963 # Object file extension for compiled C++ test sources.
9967 # Code to be used in simple compile tests
9968 lt_simple_compile_test_code="int some_variable = 0;\n"
9970 # Code to be used in simple link tests
9971 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9973 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9975 # If no C compiler was specified, use CC.
9978 # If no C compiler flags were specified, use CFLAGS.
9979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9981 # Allow CC to be a program name with arguments.
9985 # save warnings/boilerplate of simple test code
9986 ac_outfile=conftest.$ac_objext
9987 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9988 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9989 _lt_compiler_boilerplate=`cat conftest.err`
9992 ac_outfile=conftest.$ac_objext
9993 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9994 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9995 _lt_linker_boilerplate=`cat conftest.err`
9999 # Allow CC to be a program name with arguments.
10004 lt_save_with_gnu_ld=$with_gnu_ld
10005 lt_save_path_LD=$lt_cv_path_LD
10006 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10007 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10009 $as_unset lt_cv_prog_gnu_ld
10011 if test -n "${lt_cv_path_LDCXX+set}"; then
10012 lt_cv_path_LD=$lt_cv_path_LDCXX
10014 $as_unset lt_cv_path_LD
10016 test -z "${LDCXX+set}" || LD=$LDCXX
10020 for cc_temp in $compiler""; do
10022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10028 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10031 # We don't want -fno-exception wen compiling C++ code, so set the
10032 # no_builtin_flag separately
10033 if test "$GXX" = yes; then
10034 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10036 lt_prog_compiler_no_builtin_flag_CXX=
10039 if test "$GXX" = yes; then
10040 # Set up default GNU C++ configuration
10043 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10044 if test "${with_gnu_ld+set}" = set; then
10045 withval="$with_gnu_ld"
10046 test "$withval" = no || with_gnu_ld=yes
10051 if test "$GCC" = yes; then
10052 # Check if gcc -print-prog-name=ld gives a path.
10053 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10054 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10057 # gcc leaves a trailing carriage return which upsets mingw
10058 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10060 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10063 # Accept absolute paths.
10065 re_direlt='/[^/][^/]*/\.\./'
10066 # Canonicalize the pathname of ld
10067 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10068 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10069 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10071 test -z "$LD" && LD="$ac_prog"
10074 # If it fails, then pretend we aren't using GCC.
10078 # If it is relative, then search for the first ld in PATH.
10079 with_gnu_ld=unknown
10082 elif test "$with_gnu_ld" = yes; then
10083 echo "$as_me:$LINENO: checking for GNU ld" >&5
10084 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10086 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10087 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10089 if test "${lt_cv_path_LD+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 if test -z "$LD"; then
10093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10094 for ac_dir in $PATH; do
10096 test -z "$ac_dir" && ac_dir=.
10097 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10098 lt_cv_path_LD="$ac_dir/$ac_prog"
10099 # Check to see if the program is GNU ld. I'd rather use --version,
10100 # but apparently some variants of GNU ld only accept -v.
10101 # Break only if it was the GNU/non-GNU ld that we prefer.
10102 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10103 *GNU* | *'with BFD'*)
10104 test "$with_gnu_ld" != no && break
10107 test "$with_gnu_ld" != yes && break
10114 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10118 LD="$lt_cv_path_LD"
10119 if test -n "$LD"; then
10120 echo "$as_me:$LINENO: result: $LD" >&5
10121 echo "${ECHO_T}$LD" >&6
10123 echo "$as_me:$LINENO: result: no" >&5
10124 echo "${ECHO_T}no" >&6
10126 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10127 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10128 { (exit 1); exit 1; }; }
10129 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10130 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10131 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10135 case `$LD -v 2>&1 </dev/null` in
10136 *GNU* | *'with BFD'*)
10137 lt_cv_prog_gnu_ld=yes
10140 lt_cv_prog_gnu_ld=no
10144 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10145 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10146 with_gnu_ld=$lt_cv_prog_gnu_ld
10150 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10151 # archiving commands below assume that GNU ld is being used.
10152 if test "$with_gnu_ld" = yes; then
10153 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10154 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'
10156 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10159 # If archive_cmds runs LD, not CC, wlarc should be empty
10160 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10161 # investigate it a little bit more. (MM)
10164 # ancient GNU ld didn't support --whole-archive et. al.
10165 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10166 grep 'no-whole-archive' > /dev/null; then
10167 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10169 whole_archive_flag_spec_CXX=
10175 # A generic and very simple default shared library creation
10176 # command for GNU C++ for the case where it uses the native
10177 # linker, instead of GNU ld. If possible, this setting should
10178 # overridden to take advantage of the native linker features on
10179 # the platform it is being used on.
10180 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10183 # Commands to make compiler produce verbose output that lists
10184 # what "hidden" libraries, object files and flags are used when
10185 # linking a shared library.
10186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10194 # PORTME: fill in a description of your system's C++ link characteristics
10195 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10196 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10200 # FIXME: insert proper C++ library support
10204 if test "$host_cpu" = ia64; then
10205 # On IA64, the linker does run time linking by default, so we don't
10206 # have to do anything special.
10207 aix_use_runtimelinking=no
10208 exp_sym_flag='-Bexport'
10211 aix_use_runtimelinking=no
10213 # Test if we are trying to use run time linking or normal
10214 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10215 # need to do runtime linking.
10216 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10217 for ld_flag in $LDFLAGS; do
10220 aix_use_runtimelinking=yes
10228 exp_sym_flag='-bexport'
10229 no_entry_flag='-bnoentry'
10232 # When large executables or shared objects are built, AIX ld can
10233 # have problems creating the table of contents. If linking a library
10234 # or program results in "error TOC overflow" add -mminimal-toc to
10235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10238 archive_cmds_CXX=''
10239 hardcode_direct_CXX=yes
10240 hardcode_libdir_separator_CXX=':'
10241 link_all_deplibs_CXX=yes
10243 if test "$GXX" = yes; then
10244 case $host_os in aix4.[012]|aix4.[012].*)
10245 # We only want to do this on AIX 4.2 and lower, the check
10246 # below for broken collect2 doesn't work under 4.3+
10247 collect2name=`${CC} -print-prog-name=collect2`
10248 if test -f "$collect2name" && \
10249 strings "$collect2name" | grep resolve_lib_name >/dev/null
10251 # We have reworked collect2
10252 hardcode_direct_CXX=yes
10254 # We have old collect2
10255 hardcode_direct_CXX=unsupported
10256 # It fails to find uninstalled libraries when the uninstalled
10257 # path is not listed in the libpath. Setting hardcode_minus_L
10258 # to unsupported forces relinking
10259 hardcode_minus_L_CXX=yes
10260 hardcode_libdir_flag_spec_CXX='-L$libdir'
10261 hardcode_libdir_separator_CXX=
10265 shared_flag='-shared'
10266 if test "$aix_use_runtimelinking" = yes; then
10267 shared_flag="$shared_flag "'${wl}-G'
10271 if test "$host_cpu" = ia64; then
10272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10273 # chokes on -Wl,-G. The following line is correct:
10276 if test "$aix_use_runtimelinking" = yes; then
10277 shared_flag='${wl}-G'
10279 shared_flag='${wl}-bM:SRE'
10284 # It seems that -bexpall does not export symbols beginning with
10285 # underscore (_), so it is better to generate a list of symbols to export.
10286 always_export_symbols_CXX=yes
10287 if test "$aix_use_runtimelinking" = yes; then
10288 # Warning - without using the other runtime loading flags (-brtl),
10289 # -berok will link without error, but may produce a broken library.
10290 allow_undefined_flag_CXX='-berok'
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"
10346 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"
10348 if test "$host_cpu" = ia64; then
10349 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10350 allow_undefined_flag_CXX="-z nodefs"
10351 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"
10353 # Determine the default libpath from the value encoded in an empty executable.
10354 cat >conftest.$ac_ext <<_ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371 (eval $ac_link) 2>conftest.er1
10373 grep -v '^ *+' conftest.er1 >conftest.err
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -z "$ac_cxx_werror_flag"
10379 || test ! -s conftest.err'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; } &&
10385 { ac_try='test -s conftest$ac_exeext'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }; then
10392 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10394 # Check for a 64-bit object if we didn't find anything.
10395 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; }
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10402 rm -f conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10406 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10407 # Warning - without using the other run time loading flags,
10408 # -berok will link without error, but may produce a broken library.
10409 no_undefined_flag_CXX=' ${wl}-bernotok'
10410 allow_undefined_flag_CXX=' ${wl}-berok'
10411 # Exported symbols can be pulled into shared objects from archives
10412 whole_archive_flag_spec_CXX='$convenience'
10413 archive_cmds_need_lc_CXX=yes
10414 # This is similar to how AIX traditionally builds its shared libraries.
10415 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'
10421 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10422 allow_undefined_flag_CXX=unsupported
10423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10424 # support --undefined. This deserves some investigation. FIXME
10425 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10432 case $cc_basename in
10434 # FIXME: insert proper C++ library support
10440 cygwin* | mingw* | pw32*)
10441 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10442 # as there is no search path for DLLs.
10443 hardcode_libdir_flag_spec_CXX='-L$libdir'
10444 allow_undefined_flag_CXX=unsupported
10445 always_export_symbols_CXX=no
10446 enable_shared_with_static_runtimes_CXX=yes
10448 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10449 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'
10450 # If the export-symbols file already is a .def file (1st line
10451 # is EXPORTS), use it as is; otherwise, prepend...
10452 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10453 cp $export_symbols $output_objdir/$soname.def;
10455 echo EXPORTS > $output_objdir/$soname.def;
10456 cat $export_symbols >> $output_objdir/$soname.def;
10458 $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'
10463 darwin* | rhapsody*)
10465 rhapsody* | darwin1.[012])
10466 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10469 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10470 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10472 case ${MACOSX_DEPLOYMENT_TARGET} in
10474 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10477 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10483 archive_cmds_need_lc_CXX=no
10484 hardcode_direct_CXX=no
10485 hardcode_automatic_CXX=yes
10486 hardcode_shlibpath_var_CXX=unsupported
10487 whole_archive_flag_spec_CXX=''
10488 link_all_deplibs_CXX=yes
10490 if test "$GXX" = yes ; then
10491 lt_int_apple_cc_single_mod=no
10492 output_verbose_link_cmd='echo'
10493 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10494 lt_int_apple_cc_single_mod=yes
10496 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10497 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10499 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'
10501 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10504 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}'
10506 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}'
10508 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}'
10510 case $cc_basename in
10512 output_verbose_link_cmd='echo'
10513 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'
10514 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10516 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}'
10517 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}'
10527 case $cc_basename in
10529 # FIXME: insert proper C++ library support
10533 # Green Hills C++ Compiler
10534 # FIXME: insert proper C++ library support
10538 # FIXME: insert proper C++ library support
10544 # C++ shared libraries reported to be fairly broken before switch to ELF
10548 archive_cmds_need_lc_CXX=no
10550 freebsd* | kfreebsd*-gnu | dragonfly*)
10551 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10559 hardcode_libdir_separator_CXX=:
10560 export_dynamic_flag_spec_CXX='${wl}-E'
10561 hardcode_direct_CXX=yes
10562 hardcode_minus_L_CXX=yes # Not in the search PATH,
10563 # but as the default
10564 # location of the library.
10566 case $cc_basename in
10568 # FIXME: insert proper C++ library support
10572 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'
10573 # Commands to make compiler produce verbose output that lists
10574 # what "hidden" libraries, object files and flags are used when
10575 # linking a shared library.
10577 # There doesn't appear to be a way to prevent this compiler from
10578 # explicitly linking system object files so we need to strip them
10579 # from the output so that they don't get included in the library
10581 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'
10584 if test "$GXX" = yes; then
10585 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'
10587 # FIXME: insert proper C++ library support
10594 if test $with_gnu_ld = no; then
10595 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10596 hardcode_libdir_separator_CXX=:
10600 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10603 export_dynamic_flag_spec_CXX='${wl}-E'
10609 hardcode_direct_CXX=no
10610 hardcode_shlibpath_var_CXX=no
10613 hardcode_direct_CXX=yes
10614 hardcode_minus_L_CXX=yes # Not in the search PATH,
10615 # but as the default
10616 # location of the library.
10620 case $cc_basename in
10622 # FIXME: insert proper C++ library support
10628 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10631 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10634 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10637 # Commands to make compiler produce verbose output that lists
10638 # what "hidden" libraries, object files and flags are used when
10639 # linking a shared library.
10641 # There doesn't appear to be a way to prevent this compiler from
10642 # explicitly linking system object files so we need to strip them
10643 # from the output so that they don't get included in the library
10645 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'
10648 if test "$GXX" = yes; then
10649 if test $with_gnu_ld = no; then
10652 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10655 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10658 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'
10663 # FIXME: insert proper C++ library support
10670 hardcode_direct_CXX=no
10671 hardcode_shlibpath_var_CXX=no
10672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10673 export_dynamic_flag_spec_CXX='${wl}-E'
10674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10675 # Instead, shared libraries are loaded at an image base (0x10000000 by
10676 # default) and relocated if they conflict, which is a slow very memory
10677 # consuming and fragmenting process. To avoid this, we pick a random,
10678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10679 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10680 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'
10681 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'
10684 case $cc_basename in
10687 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'
10689 # Archives containing C++ object files must be created using
10690 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10691 # necessary to make sure instantiated templates are included
10693 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10696 if test "$GXX" = yes; then
10697 if test "$with_gnu_ld" = no; then
10698 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'
10700 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'
10703 link_all_deplibs_CXX=yes
10706 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10707 hardcode_libdir_separator_CXX=:
10710 case $cc_basename in
10712 # Kuck and Associates, Inc. (KAI) C++ Compiler
10714 # KCC will only create a shared library if the output file
10715 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10716 # to its proper name (with version) after linking.
10717 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'
10718 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'
10719 # Commands to make compiler produce verbose output that lists
10720 # what "hidden" libraries, object files and flags are used when
10721 # linking a shared library.
10723 # There doesn't appear to be a way to prevent this compiler from
10724 # explicitly linking system object files so we need to strip them
10725 # from the output so that they don't get included in the library
10727 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'
10729 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10732 # Archives containing C++ object files must be created using
10733 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10734 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10739 # version 8.0 and above of icpc choke on multiply defined symbols
10740 # if we add $predep_objects and $postdep_objects, however 7.1 and
10741 # earlier do not add the objects themselves.
10742 case `$CC -V 2>&1` in
10744 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10745 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'
10747 *) # Version 8.0 or newer
10750 ia64*) tmp_idyn=' -i_dynamic';;
10752 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10753 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'
10756 archive_cmds_need_lc_CXX=no
10757 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10759 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10762 # Portland Group C++ compiler
10763 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10764 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'
10766 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10767 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10768 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'
10772 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10773 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'
10775 runpath_var=LD_RUN_PATH
10776 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10777 hardcode_libdir_separator_CXX=:
10779 # Commands to make compiler produce verbose output that lists
10780 # what "hidden" libraries, object files and flags are used when
10781 # linking a shared library.
10783 # There doesn't appear to be a way to prevent this compiler from
10784 # explicitly linking system object files so we need to strip them
10785 # from the output so that they don't get included in the library
10787 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'
10792 # FIXME: insert proper C++ library support
10796 # FIXME: insert proper C++ library support
10800 case $cc_basename in
10802 # FIXME: insert proper C++ library support
10806 # FIXME: insert proper C++ library support
10812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10813 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10815 hardcode_libdir_flag_spec_CXX='-R$libdir'
10816 hardcode_direct_CXX=yes
10817 hardcode_shlibpath_var_CXX=no
10819 # Workaround some broken pre-1.5 toolchains
10820 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10823 # C++ shared libraries are fairly broken
10827 hardcode_direct_CXX=yes
10828 hardcode_shlibpath_var_CXX=no
10829 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10832 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10833 export_dynamic_flag_spec_CXX='${wl}-E'
10834 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10836 output_verbose_link_cmd='echo'
10839 case $cc_basename in
10841 # Kuck and Associates, Inc. (KAI) C++ Compiler
10843 # KCC will only create a shared library if the output file
10844 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10845 # to its proper name (with version) after linking.
10846 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'
10848 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10849 hardcode_libdir_separator_CXX=:
10851 # Archives containing C++ object files must be created using
10852 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10853 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10857 # Rational C++ 2.4.1
10858 # FIXME: insert proper C++ library support
10862 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10863 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'
10865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10866 hardcode_libdir_separator_CXX=:
10868 # Commands to make compiler produce verbose output that lists
10869 # what "hidden" libraries, object files and flags are used when
10870 # linking a shared library.
10872 # There doesn't appear to be a way to prevent this compiler from
10873 # explicitly linking system object files so we need to strip them
10874 # from the output so that they don't get included in the library
10876 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'
10879 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10880 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10881 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'
10883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10884 hardcode_libdir_separator_CXX=:
10886 # Commands to make compiler produce verbose output that lists
10887 # what "hidden" libraries, object files and flags are used when
10888 # linking a shared library.
10889 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10892 # FIXME: insert proper C++ library support
10899 case $cc_basename in
10901 # Kuck and Associates, Inc. (KAI) C++ Compiler
10903 # KCC will only create a shared library if the output file
10904 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10905 # to its proper name (with version) after linking.
10906 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'
10908 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10909 hardcode_libdir_separator_CXX=:
10911 # Archives containing C++ object files must be created using
10912 # the KAI C++ compiler.
10913 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10916 # Rational C++ 2.4.1
10917 # FIXME: insert proper C++ library support
10921 allow_undefined_flag_CXX=' -expect_unresolved \*'
10922 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'
10923 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10924 echo "-hidden">> $lib.exp~
10925 $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~
10928 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10929 hardcode_libdir_separator_CXX=:
10931 # Commands to make compiler produce verbose output that lists
10932 # what "hidden" libraries, object files and flags are used when
10933 # linking a shared library.
10935 # There doesn't appear to be a way to prevent this compiler from
10936 # explicitly linking system object files so we need to strip them
10937 # from the output so that they don't get included in the library
10939 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'
10942 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10943 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10944 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'
10946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10947 hardcode_libdir_separator_CXX=:
10949 # Commands to make compiler produce verbose output that lists
10950 # what "hidden" libraries, object files and flags are used when
10951 # linking a shared library.
10952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10955 # FIXME: insert proper C++ library support
10962 # FIXME: insert proper C++ library support
10966 case $cc_basename in
10969 # FIXME: insert proper C++ library support
10974 # FIXME: insert proper C++ library support
10978 # FIXME: insert proper C++ library support
10984 case $cc_basename in
10986 # Sun C++ 4.2, 5.x and Centerline C++
10987 archive_cmds_need_lc_CXX=yes
10988 no_undefined_flag_CXX=' -zdefs'
10989 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10990 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10991 $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'
10993 hardcode_libdir_flag_spec_CXX='-R$libdir'
10994 hardcode_shlibpath_var_CXX=no
10996 solaris2.[0-5] | solaris2.[0-5].*) ;;
10998 # The C++ compiler is used as linker so we must use $wl
10999 # flag to pass the commands to the underlying system
11000 # linker. We must also pass each convience library through
11001 # to the system linker between allextract/defaultextract.
11002 # The C++ compiler will combine linker options so we
11003 # cannot just pass the convience library names through
11005 # Supported since Solaris 2.6 (maybe 2.5.1?)
11006 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'
11009 link_all_deplibs_CXX=yes
11011 output_verbose_link_cmd='echo'
11013 # Archives containing C++ object files must be created using
11014 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11015 # necessary to make sure instantiated templates are included
11017 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11020 # Green Hills C++ Compiler
11021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11023 # The C++ compiler must be used to create the archive.
11024 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11027 # GNU C++ compiler with Solaris linker
11028 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11029 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11030 if $CC --version | grep -v '^2\.7' > /dev/null; then
11031 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11032 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11033 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11035 # Commands to make compiler produce verbose output that lists
11036 # what "hidden" libraries, object files and flags are used when
11037 # linking a shared library.
11038 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11040 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11042 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11043 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11044 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11046 # Commands to make compiler produce verbose output that lists
11047 # what "hidden" libraries, object files and flags are used when
11048 # linking a shared library.
11049 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11052 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11057 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11058 no_undefined_flag_CXX='${wl}-z,text'
11059 archive_cmds_need_lc_CXX=no
11060 hardcode_shlibpath_var_CXX=no
11061 runpath_var='LD_RUN_PATH'
11063 case $cc_basename in
11065 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11066 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11069 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11074 sysv5* | sco3.2v5* | sco5v6*)
11075 # Note: We can NOT use -z defs as we might desire, because we do not
11076 # link with -lc, and that would cause any symbols used from libc to
11077 # always be unresolved, which means just about no library would
11078 # ever link correctly. If we're not using GNU ld we use -z text
11079 # though, which does catch some bad symbols but isn't as heavy-handed
11081 # For security reasons, it is highly recommended that you always
11082 # use absolute paths for naming shared libraries, and exclude the
11083 # DT_RUNPATH tag from executables and libraries. But doing so
11084 # requires that you compile everything twice, which is a pain.
11085 # So that behaviour is only enabled if SCOABSPATH is set to a
11086 # non-empty value in the environment. Most likely only useful for
11087 # creating official distributions of packages.
11088 # This is a hack until libtool officially supports absolute path
11089 # names for shared libraries.
11090 no_undefined_flag_CXX='${wl}-z,text'
11091 allow_undefined_flag_CXX='${wl}-z,nodefs'
11092 archive_cmds_need_lc_CXX=no
11093 hardcode_shlibpath_var_CXX=no
11094 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11095 hardcode_libdir_separator_CXX=':'
11096 link_all_deplibs_CXX=yes
11097 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11098 runpath_var='LD_RUN_PATH'
11100 case $cc_basename in
11102 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11103 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11106 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11107 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11112 case $cc_basename in
11114 # NonStop-UX NCC 3.20
11115 # FIXME: insert proper C++ library support
11119 # FIXME: insert proper C++ library support
11125 # FIXME: insert proper C++ library support
11129 # FIXME: insert proper C++ library support
11133 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11134 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11135 test "$ld_shlibs_CXX" = no && can_build_shared=no
11141 cat > conftest.$ac_ext <<EOF
11145 Foo (void) { a = 0; }
11151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11152 (eval $ac_compile) 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; then
11156 # Parse the compiler output and extract the necessary
11157 # objects, libraries and library flags.
11159 # Sentinel used to keep track of whether or not we are before
11160 # the conftest object file.
11161 pre_test_object_deps_done=no
11163 # The `*' in the case matches for architectures that use `case' in
11164 # $output_verbose_cmd can trigger glob expansion during the loop
11165 # eval without this substitution.
11166 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11168 for p in `eval $output_verbose_link_cmd`; do
11172 # Some compilers place space between "-{L,R}" and the path.
11173 # Remove the space.
11174 if test $p = "-L" \
11175 || test $p = "-R"; then
11182 if test "$pre_test_object_deps_done" = no; then
11185 # Internal compiler library paths should come after those
11186 # provided the user. The postdeps already come after the
11187 # user supplied libs so there is no need to process them.
11188 if test -z "$compiler_lib_search_path_CXX"; then
11189 compiler_lib_search_path_CXX="${prev}${p}"
11191 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11194 # The "-l" case would never come before the object being
11195 # linked, so don't bother handling this case.
11198 if test -z "$postdeps_CXX"; then
11199 postdeps_CXX="${prev}${p}"
11201 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11207 # This assumes that the test object file only shows up
11208 # once in the compiler output.
11209 if test "$p" = "conftest.$objext"; then
11210 pre_test_object_deps_done=yes
11214 if test "$pre_test_object_deps_done" = no; then
11215 if test -z "$predep_objects_CXX"; then
11216 predep_objects_CXX="$p"
11218 predep_objects_CXX="$predep_objects_CXX $p"
11221 if test -z "$postdep_objects_CXX"; then
11222 postdep_objects_CXX="$p"
11224 postdep_objects_CXX="$postdep_objects_CXX $p"
11229 *) ;; # Ignore the rest.
11237 echo "libtool.m4: error: problem compiling CXX test program"
11240 $rm -f confest.$objext
11242 # PORTME: override above test on systems where it is broken
11245 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11246 # hack all around it, let's just trust "g++" to DTRT.
11247 predep_objects_CXX=
11248 postdep_objects_CXX=
11253 case $cc_basename in
11255 # Adding this requires a known-good setup of shared libraries for
11256 # Sun compiler versions before 5.6, else PIC objects from an old
11257 # archive will be linked into the output, leading to subtle bugs.
11258 postdeps_CXX='-lCstd -lCrun'
11265 case " $postdeps_CXX " in
11266 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11269 lt_prog_compiler_wl_CXX=
11270 lt_prog_compiler_pic_CXX=
11271 lt_prog_compiler_static_CXX=
11273 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11274 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11276 # C++ specific cases for pic, static, wl, etc.
11277 if test "$GXX" = yes; then
11278 lt_prog_compiler_wl_CXX='-Wl,'
11279 lt_prog_compiler_static_CXX='-static'
11283 # All AIX code is PIC.
11284 if test "$host_cpu" = ia64; then
11285 # AIX 5 now supports IA64 processor
11286 lt_prog_compiler_static_CXX='-Bstatic'
11290 # FIXME: we need at least 68020 code to build shared libraries, but
11291 # adding the `-m68020' flag to GCC prevents building anything better,
11293 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11295 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11296 # PIC is the default for these OSes.
11298 mingw* | os2* | pw32*)
11299 # This hack is so that the source file can tell whether it is being
11300 # built for inclusion in a dll (and should export symbols for example).
11301 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11303 darwin* | rhapsody*)
11304 # PIC is the default on this platform
11305 # Common symbols not allowed in MH_DYLIB files
11306 lt_prog_compiler_pic_CXX='-fno-common'
11309 # DJGPP does not support shared libraries at all
11310 lt_prog_compiler_pic_CXX=
11313 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11314 # Instead, we relocate shared libraries at runtime.
11317 if test -d /usr/nec; then
11318 lt_prog_compiler_pic_CXX=-Kconform_pic
11322 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11323 # not for PA HP-UX.
11328 lt_prog_compiler_pic_CXX='-fPIC'
11333 lt_prog_compiler_pic_CXX='-fPIC'
11339 # All AIX code is PIC.
11340 if test "$host_cpu" = ia64; then
11341 # AIX 5 now supports IA64 processor
11342 lt_prog_compiler_static_CXX='-Bstatic'
11344 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11348 case $cc_basename in
11350 # Green Hills C++ Compiler
11351 # _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"
11356 # PIC is the default on this platform
11357 # Common symbols not allowed in MH_DYLIB files
11358 case $cc_basename in
11360 lt_prog_compiler_pic_CXX='-qnocommon'
11361 lt_prog_compiler_wl_CXX='-Wl,'
11366 case $cc_basename in
11368 lt_prog_compiler_pic_CXX='-KPIC'
11371 # Green Hills C++ Compiler
11372 lt_prog_compiler_pic_CXX='-pic'
11378 freebsd* | kfreebsd*-gnu | dragonfly*)
11379 # FreeBSD uses GNU C++
11381 hpux9* | hpux10* | hpux11*)
11382 case $cc_basename in
11384 lt_prog_compiler_wl_CXX='-Wl,'
11385 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11386 if test "$host_cpu" != ia64; then
11387 lt_prog_compiler_pic_CXX='+Z'
11391 lt_prog_compiler_wl_CXX='-Wl,'
11392 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11398 lt_prog_compiler_pic_CXX='+Z'
11407 # This is c89, which is MS Visual C++ (no shared libs)
11408 # Anyone wants to do a port?
11410 irix5* | irix6* | nonstopux*)
11411 case $cc_basename in
11413 lt_prog_compiler_wl_CXX='-Wl,'
11414 lt_prog_compiler_static_CXX='-non_shared'
11415 # CC pic flag -KPIC is the default.
11422 case $cc_basename in
11425 lt_prog_compiler_wl_CXX='--backend -Wl,'
11426 lt_prog_compiler_pic_CXX='-fPIC'
11430 lt_prog_compiler_wl_CXX='-Wl,'
11431 lt_prog_compiler_pic_CXX='-KPIC'
11432 lt_prog_compiler_static_CXX='-static'
11435 # Portland Group C++ compiler.
11436 lt_prog_compiler_wl_CXX='-Wl,'
11437 lt_prog_compiler_pic_CXX='-fpic'
11438 lt_prog_compiler_static_CXX='-Bstatic'
11442 # Make sure the PIC flag is empty. It appears that all Alpha
11443 # Linux and Compaq Tru64 Unix objects are PIC.
11444 lt_prog_compiler_pic_CXX=
11445 lt_prog_compiler_static_CXX='-non_shared'
11456 case $cc_basename in
11458 lt_prog_compiler_pic_CXX='-W c,exportall'
11466 osf3* | osf4* | osf5*)
11467 case $cc_basename in
11469 lt_prog_compiler_wl_CXX='--backend -Wl,'
11472 # Rational C++ 2.4.1
11473 lt_prog_compiler_pic_CXX='-pic'
11476 # Digital/Compaq C++
11477 lt_prog_compiler_wl_CXX='-Wl,'
11478 # Make sure the PIC flag is empty. It appears that all Alpha
11479 # Linux and Compaq Tru64 Unix objects are PIC.
11480 lt_prog_compiler_pic_CXX=
11481 lt_prog_compiler_static_CXX='-non_shared'
11490 case $cc_basename in
11492 # Sun C++ 4.2, 5.x and Centerline C++
11493 lt_prog_compiler_pic_CXX='-KPIC'
11494 lt_prog_compiler_static_CXX='-Bstatic'
11495 lt_prog_compiler_wl_CXX='-Qoption ld '
11498 # Green Hills C++ Compiler
11499 lt_prog_compiler_pic_CXX='-PIC'
11506 case $cc_basename in
11509 lt_prog_compiler_pic_CXX='-pic'
11510 lt_prog_compiler_static_CXX='-Bstatic'
11514 lt_prog_compiler_pic_CXX='-pic'
11521 case $cc_basename in
11523 # NonStop-UX NCC 3.20
11524 lt_prog_compiler_pic_CXX='-KPIC'
11530 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11531 case $cc_basename in
11533 lt_prog_compiler_wl_CXX='-Wl,'
11534 lt_prog_compiler_pic_CXX='-KPIC'
11535 lt_prog_compiler_static_CXX='-Bstatic'
11542 lt_prog_compiler_can_build_shared_CXX=no
11547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11548 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11551 # Check to make sure the PIC flag actually works.
11553 if test -n "$lt_prog_compiler_pic_CXX"; then
11555 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11556 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11557 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 lt_prog_compiler_pic_works_CXX=no
11561 ac_outfile=conftest.$ac_objext
11562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11563 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11564 # Insert the option either (1) after the last *FLAGS variable, or
11565 # (2) before a word containing "conftest.", or (3) at the end.
11566 # Note that $ac_compile itself does not contain backslashes and begins
11567 # with a dollar sign (not a hyphen), so the echo should work correctly.
11568 # The option is referenced via a variable to avoid confusing sed.
11569 lt_compile=`echo "$ac_compile" | $SED \
11570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11572 -e 's:$: $lt_compiler_flag:'`
11573 (eval echo "\"\$as_me:11573: $lt_compile\"" >&5)
11574 (eval "$lt_compile" 2>conftest.err)
11576 cat conftest.err >&5
11577 echo "$as_me:11577: \$? = $ac_status" >&5
11578 if (exit $ac_status) && test -s "$ac_outfile"; then
11579 # The compiler can only warn and ignore the option if not recognized
11580 # So say no if there are warnings other than the usual output.
11581 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11584 lt_prog_compiler_pic_works_CXX=yes
11590 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11591 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11593 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11594 case $lt_prog_compiler_pic_CXX in
11596 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11599 lt_prog_compiler_pic_CXX=
11600 lt_prog_compiler_can_build_shared_CXX=no
11605 # For platforms which do not support PIC, -DPIC is meaningless:
11607 lt_prog_compiler_pic_CXX=
11610 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11615 # Check to make sure the static flag actually works.
11617 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11618 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11619 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11620 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 lt_prog_compiler_static_works_CXX=no
11624 save_LDFLAGS="$LDFLAGS"
11625 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11626 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11627 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11628 # The linker can only warn and ignore the option if not recognized
11629 # So say no if there are warnings
11630 if test -s conftest.err; then
11631 # Append any errors to the config.log.
11632 cat conftest.err 1>&5
11633 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11635 if diff conftest.exp conftest.er2 >/dev/null; then
11636 lt_prog_compiler_static_works_CXX=yes
11639 lt_prog_compiler_static_works_CXX=yes
11643 LDFLAGS="$save_LDFLAGS"
11646 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11647 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11649 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11652 lt_prog_compiler_static_CXX=
11656 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11657 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11658 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 lt_cv_prog_compiler_c_o_CXX=no
11662 $rm -r conftest 2>/dev/null
11666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11668 lt_compiler_flag="-o out/conftest2.$ac_objext"
11669 # Insert the option either (1) after the last *FLAGS variable, or
11670 # (2) before a word containing "conftest.", or (3) at the end.
11671 # Note that $ac_compile itself does not contain backslashes and begins
11672 # with a dollar sign (not a hyphen), so the echo should work correctly.
11673 lt_compile=`echo "$ac_compile" | $SED \
11674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11676 -e 's:$: $lt_compiler_flag:'`
11677 (eval echo "\"\$as_me:11677: $lt_compile\"" >&5)
11678 (eval "$lt_compile" 2>out/conftest.err)
11680 cat out/conftest.err >&5
11681 echo "$as_me:11681: \$? = $ac_status" >&5
11682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11684 # The compiler can only warn and ignore the option if not recognized
11685 # So say no if there are warnings
11686 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11689 lt_cv_prog_compiler_c_o_CXX=yes
11694 # SGI C++ compiler will create directory out/ii_files/ for
11695 # template instantiation
11696 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11697 $rm out/* && rmdir out
11703 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11704 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11707 hard_links="nottested"
11708 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11709 # do not overwrite the value of need_locks provided by the user
11710 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11711 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11714 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11716 ln conftest.a conftest.b 2>&5 || hard_links=no
11717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11718 echo "$as_me:$LINENO: result: $hard_links" >&5
11719 echo "${ECHO_T}$hard_links" >&6
11720 if test "$hard_links" = no; then
11721 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11722 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11729 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11730 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11732 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11735 # If we're using GNU nm, then we don't want the "-C" option.
11736 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11737 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11738 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'
11740 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'
11744 export_symbols_cmds_CXX="$ltdll_cmds"
11747 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'
11750 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11754 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11755 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11756 test "$ld_shlibs_CXX" = no && can_build_shared=no
11759 # Do we need to explicitly link libc?
11761 case "x$archive_cmds_need_lc_CXX" in
11763 # Assume -lc should be added
11764 archive_cmds_need_lc_CXX=yes
11766 if test "$enable_shared" = yes && test "$GCC" = yes; then
11767 case $archive_cmds_CXX in
11769 # FIXME: we may have to deal with multi-command sequences.
11772 # Test whether the compiler implicitly links with -lc since on some
11773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11774 # to ld, don't add -lc before -lgcc.
11775 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11776 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781 (eval $ac_compile) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } 2>conftest.err; then
11787 libobjs=conftest.$ac_objext
11789 wl=$lt_prog_compiler_wl_CXX
11790 pic_flag=$lt_prog_compiler_pic_CXX
11796 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11797 allow_undefined_flag_CXX=
11798 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11799 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }
11804 archive_cmds_need_lc_CXX=no
11806 archive_cmds_need_lc_CXX=yes
11808 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11810 cat conftest.err 1>&5
11813 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11814 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11821 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11822 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11823 library_names_spec=
11824 libname_spec='lib$name'
11828 postuninstall_cmds=
11832 shlibpath_overrides_runpath=unknown
11834 dynamic_linker="$host_os ld.so"
11835 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11836 if test "$GCC" = yes; then
11837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11838 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11839 # if the path contains ";" then we assume it to be the separator
11840 # otherwise default to the standard path separator (i.e. ":") - it is
11841 # assumed that no part of a normal pathname contains ";" but that should
11842 # okay in the real world where ";" in dirpaths is itself problematic.
11843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11850 need_lib_prefix=unknown
11851 hardcode_into_libs=no
11853 # when you set need_version to no, make sure it does not cause -set_version
11854 # flags to be left without arguments
11855 need_version=unknown
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11861 shlibpath_var=LIBPATH
11863 # AIX 3 has no versioning support, so we append a major version to the name.
11864 soname_spec='${libname}${release}${shared_ext}$major'
11871 hardcode_into_libs=yes
11872 if test "$host_cpu" = ia64; then
11873 # AIX 5 supports IA64
11874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11875 shlibpath_var=LD_LIBRARY_PATH
11877 # With GCC up to 2.95.x, collect2 would create an import file
11878 # for dependence libraries. The import file would start with
11879 # the line `#! .'. This would cause the generated library to
11880 # depend on `.', always an invalid library. This was fixed in
11881 # development snapshots of GCC prior to 3.0.
11883 aix4 | aix4.[01] | aix4.[01].*)
11884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11886 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11889 can_build_shared=no
11893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11894 # soname into executable. Probably we can add versioning support to
11895 # collect2, so additional links can be useful in future.
11896 if test "$aix_use_runtimelinking" = yes; then
11897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11898 # instead of lib<name>.a to let people know that these are not
11899 # typical AIX shared libraries.
11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902 # We preserve .a as extension for shared libraries through AIX4.2
11903 # and later when we are not doing run time linking.
11904 library_names_spec='${libname}${release}.a $libname.a'
11905 soname_spec='${libname}${release}${shared_ext}$major'
11907 shlibpath_var=LIBPATH
11912 library_names_spec='$libname.ixlibrary $libname.a'
11913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11914 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'
11918 library_names_spec='${libname}${shared_ext}'
11919 dynamic_linker="$host_os ld.so"
11920 shlibpath_var=LIBRARY_PATH
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927 soname_spec='${libname}${release}${shared_ext}$major'
11928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11929 shlibpath_var=LD_LIBRARY_PATH
11930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11932 # the default ld.so.conf also contains /usr/contrib/lib and
11933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11934 # libtool to hard-code these into programs
11937 cygwin* | mingw* | pw32*)
11938 version_type=windows
11943 case $GCC,$host_os in
11944 yes,cygwin* | yes,mingw* | yes,pw32*)
11945 library_names_spec='$libname.dll.a'
11946 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11947 postinstall_cmds='base_file=`basename \${file}`~
11948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11949 dldir=$destdir/`dirname \$dlpath`~
11950 test -d \$dldir || mkdir -p \$dldir~
11951 $install_prog $dir/$dlname \$dldir/$dlname~
11952 chmod a+x \$dldir/$dlname'
11953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11954 dlpath=$dir/\$dldll~
11956 shlibpath_overrides_runpath=yes
11960 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11961 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11962 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11965 # MinGW DLLs use traditional 'lib' prefix
11966 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11967 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11968 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11969 # It is most probably a Windows format PATH printed by
11970 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11971 # path with ; separators, and with drive letters. We can handle the
11972 # drive letters (cygwin fileutils understands them), so leave them,
11973 # especially as we might pass files found there to a mingw objdump,
11974 # which wouldn't understand a cygwinified path. Ahh.
11975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11981 # pw32 DLLs use 'pw' prefix rather than 'lib'
11982 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11988 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11991 dynamic_linker='Win32 ld.exe'
11992 # FIXME: first we should search . and the directory the executable is in
11996 darwin* | rhapsody*)
11997 dynamic_linker="$host_os dyld"
11998 version_type=darwin
12001 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12002 soname_spec='${libname}${release}${major}$shared_ext'
12003 shlibpath_overrides_runpath=yes
12004 shlibpath_var=DYLD_LIBRARY_PATH
12005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12006 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12007 if test "$GCC" = yes; then
12008 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"`
12010 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12020 soname_spec='${libname}${release}${shared_ext}$major'
12021 shlibpath_var=LD_LIBRARY_PATH
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12033 soname_spec='${libname}${release}${shared_ext}$major'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 shlibpath_overrides_runpath=no
12036 hardcode_into_libs=yes
12037 dynamic_linker='GNU ld.so'
12040 freebsd* | dragonfly*)
12041 # DragonFly does not have aout. When/if they implement a new
12042 # versioning mechanism, adjust this.
12043 if test -x /usr/bin/objformat; then
12044 objformat=`/usr/bin/objformat`
12047 freebsd[123]*) objformat=aout ;;
12048 *) objformat=elf ;;
12051 version_type=freebsd-$objformat
12052 case $version_type in
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12063 shlibpath_var=LD_LIBRARY_PATH
12066 shlibpath_overrides_runpath=yes
12068 freebsd3.[01]* | freebsdelf3.[01]*)
12069 shlibpath_overrides_runpath=yes
12070 hardcode_into_libs=yes
12072 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12073 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12074 shlibpath_overrides_runpath=no
12075 hardcode_into_libs=yes
12077 freebsd*) # from 4.6 on
12078 shlibpath_overrides_runpath=yes
12079 hardcode_into_libs=yes
12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12089 soname_spec='${libname}${release}${shared_ext}$major'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 hardcode_into_libs=yes
12094 hpux9* | hpux10* | hpux11*)
12095 # Give a soname corresponding to the major version so that dld.sl refuses to
12096 # link against other versions.
12103 hardcode_into_libs=yes
12104 dynamic_linker="$host_os dld.so"
12105 shlibpath_var=LD_LIBRARY_PATH
12106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108 soname_spec='${libname}${release}${shared_ext}$major'
12109 if test "X$HPUX_IA64_MODE" = X32; then
12110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12118 hardcode_into_libs=yes
12119 dynamic_linker="$host_os dld.sl"
12120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12129 dynamic_linker="$host_os dld.sl"
12130 shlibpath_var=SHLIB_PATH
12131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12133 soname_spec='${libname}${release}${shared_ext}$major'
12136 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12137 postinstall_cmds='chmod 555 $lib'
12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12145 soname_spec='${libname}${release}${shared_ext}$major'
12146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12147 shlibpath_var=LD_LIBRARY_PATH
12148 shlibpath_overrides_runpath=no
12149 hardcode_into_libs=yes
12152 irix5* | irix6* | nonstopux*)
12154 nonstopux*) version_type=nonstopux ;;
12156 if test "$lt_cv_prog_gnu_ld" = yes; then
12164 soname_spec='${libname}${release}${shared_ext}$major'
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12167 irix5* | nonstopux*)
12168 libsuff= shlibsuff=
12171 case $LD in # libtool.m4 will add one of these switches to LD
12172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12173 libsuff= shlibsuff= libmagic=32-bit;;
12174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12175 libsuff=32 shlibsuff=N32 libmagic=N32;;
12176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12177 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12178 *) libsuff= shlibsuff= libmagic=never-match;;
12182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12183 shlibpath_overrides_runpath=no
12184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12186 hardcode_into_libs=yes
12189 # No shared lib support for Linux oldld, aout, or coff.
12190 linux*oldld* | linux*aout* | linux*coff*)
12194 # This must be Linux ELF.
12199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12200 soname_spec='${libname}${release}${shared_ext}$major'
12201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12202 shlibpath_var=LD_LIBRARY_PATH
12203 shlibpath_overrides_runpath=no
12204 # This implies no fast_install, which is unacceptable.
12205 # Some rework will be needed to allow for fast_install
12206 # before this can be enabled.
12207 hardcode_into_libs=yes
12209 # find out which ABI we are using
12211 case "$host_cpu" in
12212 x86_64*|s390x*|powerpc64*)
12213 echo '#line 12213 "configure"' > conftest.$ac_ext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12215 (eval $ac_compile) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; then
12219 case `/usr/bin/file conftest.$ac_objext` in
12222 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12230 # Append ld.so.conf contents to the search path
12231 if test -f /etc/ld.so.conf; then
12232 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12233 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12236 # We used to test for /lib/ld.so.1 and disable shared libraries on
12237 # powerpc, because MkLinux only supported shared libraries with the
12238 # GNU dynamic linker. Since this was broken with cross compilers,
12239 # most powerpc-linux boxes support dynamic linking these days and
12240 # people can always --disable-shared, the test was removed, and we
12241 # assume the GNU/Linux dynamic linker is in use.
12242 dynamic_linker='GNU/Linux ld.so'
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12250 soname_spec='${libname}${release}${shared_ext}$major'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 shlibpath_overrides_runpath=no
12253 hardcode_into_libs=yes
12254 dynamic_linker='GNU ld.so'
12261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12264 dynamic_linker='NetBSD (a.out) ld.so'
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12267 soname_spec='${libname}${release}${shared_ext}$major'
12268 dynamic_linker='NetBSD ld.elf_so'
12270 shlibpath_var=LD_LIBRARY_PATH
12271 shlibpath_overrides_runpath=yes
12272 hardcode_into_libs=yes
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278 shlibpath_var=LD_LIBRARY_PATH
12279 shlibpath_overrides_runpath=yes
12286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12287 soname_spec='${libname}${release}${shared_ext}$major'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 shlibpath_overrides_runpath=yes
12294 sys_lib_dlsearch_path_spec="/usr/lib"
12296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12298 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12299 *) need_version=no ;;
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12303 shlibpath_var=LD_LIBRARY_PATH
12304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12306 openbsd2.[89] | openbsd2.[89].*)
12307 shlibpath_overrides_runpath=no
12310 shlibpath_overrides_runpath=yes
12314 shlibpath_overrides_runpath=yes
12319 libname_spec='$name'
12322 library_names_spec='$libname${shared_ext} $libname.a'
12323 dynamic_linker='OS/2 ld.exe'
12324 shlibpath_var=LIBPATH
12327 osf3* | osf4* | osf5*)
12331 soname_spec='${libname}${release}${shared_ext}$major'
12332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343 soname_spec='${libname}${release}${shared_ext}$major'
12344 shlibpath_var=LD_LIBRARY_PATH
12345 shlibpath_overrides_runpath=yes
12346 hardcode_into_libs=yes
12347 # ldd complains unless libraries are executable
12348 postinstall_cmds='chmod +x $lib'
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12355 shlibpath_var=LD_LIBRARY_PATH
12356 shlibpath_overrides_runpath=yes
12357 if test "$with_gnu_ld" = yes; then
12365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366 soname_spec='${libname}${release}${shared_ext}$major'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 case $host_vendor in
12370 shlibpath_overrides_runpath=no
12372 export_dynamic_flag_spec='${wl}-Blargedynsym'
12373 runpath_var=LD_RUN_PATH
12381 shlibpath_overrides_runpath=no
12382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12388 if test -d /usr/nec ;then
12390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12391 soname_spec='$libname${shared_ext}.$major'
12392 shlibpath_var=LD_LIBRARY_PATH
12396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12397 version_type=freebsd-elf
12400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12401 soname_spec='${libname}${release}${shared_ext}$major'
12402 shlibpath_var=LD_LIBRARY_PATH
12403 hardcode_into_libs=yes
12404 if test "$with_gnu_ld" = yes; then
12405 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12406 shlibpath_overrides_runpath=no
12408 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12409 shlibpath_overrides_runpath=yes
12412 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12416 sys_lib_dlsearch_path_spec='/usr/lib'
12421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12422 soname_spec='${libname}${release}${shared_ext}$major'
12423 shlibpath_var=LD_LIBRARY_PATH
12430 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12431 echo "${ECHO_T}$dynamic_linker" >&6
12432 test "$dynamic_linker" = no && can_build_shared=no
12434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12435 if test "$GCC" = yes; then
12436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12439 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12440 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12441 hardcode_action_CXX=
12442 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12443 test -n "$runpath_var_CXX" || \
12444 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12446 # We can hardcode non-existant directories.
12447 if test "$hardcode_direct_CXX" != no &&
12448 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12449 # have to relink, otherwise we might link with an installed library
12450 # when we should be linking with a yet-to-be-installed one
12451 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12452 test "$hardcode_minus_L_CXX" != no; then
12453 # Linking always hardcodes the temporary library directory.
12454 hardcode_action_CXX=relink
12456 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12457 hardcode_action_CXX=immediate
12460 # We cannot hardcode anything, or else we can only hardcode existing
12462 hardcode_action_CXX=unsupported
12464 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12465 echo "${ECHO_T}$hardcode_action_CXX" >&6
12467 if test "$hardcode_action_CXX" = relink; then
12468 # Fast installation is not supported
12469 enable_fast_install=no
12470 elif test "$shlibpath_overrides_runpath" = yes ||
12471 test "$enable_shared" = no; then
12472 # Fast installation is not necessary
12473 enable_fast_install=needless
12477 # The else clause should only fire when bootstrapping the
12478 # libtool distribution, otherwise you forgot to ship ltmain.sh
12479 # with your package, and you will get complaints that there are
12480 # no rules to generate ltmain.sh.
12481 if test -f "$ltmain"; then
12482 # See if we are running on zsh, and set the options which allow our commands through
12483 # without removal of \ escapes.
12484 if test -n "${ZSH_VERSION+set}" ; then
12485 setopt NO_GLOB_SUBST
12487 # Now quote all the things that may contain metacharacters while being
12488 # careful not to overquote the AC_SUBSTed values. We take copies of the
12489 # variables and quote the copies for generation of the libtool script.
12490 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12494 deplibs_check_method reload_flag reload_cmds need_locks \
12495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12496 lt_cv_sys_global_symbol_to_c_name_address \
12497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12498 old_postinstall_cmds old_postuninstall_cmds \
12502 lt_prog_compiler_wl_CXX \
12503 lt_prog_compiler_pic_CXX \
12504 lt_prog_compiler_static_CXX \
12505 lt_prog_compiler_no_builtin_flag_CXX \
12506 export_dynamic_flag_spec_CXX \
12507 thread_safe_flag_spec_CXX \
12508 whole_archive_flag_spec_CXX \
12509 enable_shared_with_static_runtimes_CXX \
12510 old_archive_cmds_CXX \
12511 old_archive_from_new_cmds_CXX \
12512 predep_objects_CXX \
12513 postdep_objects_CXX \
12516 compiler_lib_search_path_CXX \
12518 archive_expsym_cmds_CXX \
12519 postinstall_cmds_CXX \
12520 postuninstall_cmds_CXX \
12521 old_archive_from_expsyms_cmds_CXX \
12522 allow_undefined_flag_CXX \
12523 no_undefined_flag_CXX \
12524 export_symbols_cmds_CXX \
12525 hardcode_libdir_flag_spec_CXX \
12526 hardcode_libdir_flag_spec_ld_CXX \
12527 hardcode_libdir_separator_CXX \
12528 hardcode_automatic_CXX \
12530 module_expsym_cmds_CXX \
12531 lt_cv_prog_compiler_c_o_CXX \
12532 exclude_expsyms_CXX \
12533 include_expsyms_CXX; do
12536 old_archive_cmds_CXX | \
12537 old_archive_from_new_cmds_CXX | \
12538 archive_cmds_CXX | \
12539 archive_expsym_cmds_CXX | \
12540 module_cmds_CXX | \
12541 module_expsym_cmds_CXX | \
12542 old_archive_from_expsyms_cmds_CXX | \
12543 export_symbols_cmds_CXX | \
12544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12545 postinstall_cmds | postuninstall_cmds | \
12546 old_postinstall_cmds | old_postuninstall_cmds | \
12547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12548 # Double-quote double-evaled strings.
12549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12558 *'\$0 --fallback-echo"')
12559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12565 cat <<__EOF__ >> "$cfgfile"
12566 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12570 # Shell to use when invoking shell scripts.
12573 # Whether or not to build shared libraries.
12574 build_libtool_libs=$enable_shared
12576 # Whether or not to build static libraries.
12577 build_old_libs=$enable_static
12579 # Whether or not to add -lc for building shared libraries.
12580 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12582 # Whether or not to disallow shared libs when runtime libs are static
12583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12585 # Whether or not to optimize for fast installation.
12586 fast_install=$enable_fast_install
12589 host_alias=$host_alias
12593 # The build system.
12594 build_alias=$build_alias
12598 # An echo program that does not interpret backslashes.
12603 AR_FLAGS=$lt_AR_FLAGS
12608 # LTCC compiler flags.
12609 LTCFLAGS=$lt_LTCFLAGS
12611 # A language-specific compiler.
12612 CC=$lt_compiler_CXX
12614 # Is the compiler the GNU C compiler?
12620 # The linker used to build libraries.
12623 # Whether we need hard or soft links.
12626 # A BSD-compatible nm program.
12629 # A symbol stripping program
12632 # Used to examine libraries when file_magic_cmd begins "file"
12633 MAGIC_CMD=$MAGIC_CMD
12635 # Used on cygwin: DLL creation program.
12638 # Used on cygwin: object dumper.
12641 # Used on cygwin: assembler.
12644 # The name of the directory that contains temporary libtool files.
12647 # How to create reloadable object files.
12648 reload_flag=$lt_reload_flag
12649 reload_cmds=$lt_reload_cmds
12651 # How to pass a linker flag through the compiler.
12652 wl=$lt_lt_prog_compiler_wl_CXX
12654 # Object file suffix (normally "o").
12655 objext="$ac_objext"
12657 # Old archive suffix (normally "a").
12660 # Shared library suffix (normally ".so").
12661 shrext_cmds='$shrext_cmds'
12663 # Executable file suffix (normally "").
12666 # Additional compiler flags for building library objects.
12667 pic_flag=$lt_lt_prog_compiler_pic_CXX
12670 # What is the maximum length of a command?
12671 max_cmd_len=$lt_cv_sys_max_cmd_len
12673 # Does compiler simultaneously support -c and -o options?
12674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12676 # Must we lock files when doing compilation?
12677 need_locks=$lt_need_locks
12679 # Do we need the lib prefix for modules?
12680 need_lib_prefix=$need_lib_prefix
12682 # Do we need a version for libraries?
12683 need_version=$need_version
12685 # Whether dlopen is supported.
12686 dlopen_support=$enable_dlopen
12688 # Whether dlopen of programs is supported.
12689 dlopen_self=$enable_dlopen_self
12691 # Whether dlopen of statically linked programs is supported.
12692 dlopen_self_static=$enable_dlopen_self_static
12694 # Compiler flag to prevent dynamic linking.
12695 link_static_flag=$lt_lt_prog_compiler_static_CXX
12697 # Compiler flag to turn off builtin functions.
12698 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12700 # Compiler flag to allow reflexive dlopens.
12701 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12703 # Compiler flag to generate shared objects directly from archives.
12704 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12706 # Compiler flag to generate thread-safe objects.
12707 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12709 # Library versioning type.
12710 version_type=$version_type
12712 # Format of library name prefix.
12713 libname_spec=$lt_libname_spec
12715 # List of archive names. First name is the real one, the rest are links.
12716 # The last name is the one that the linker finds with -lNAME.
12717 library_names_spec=$lt_library_names_spec
12719 # The coded name of the library, if different from the real name.
12720 soname_spec=$lt_soname_spec
12722 # Commands used to build and install an old-style archive.
12724 old_archive_cmds=$lt_old_archive_cmds_CXX
12725 old_postinstall_cmds=$lt_old_postinstall_cmds
12726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12728 # Create an old-style archive from a shared archive.
12729 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12731 # Create a temporary old-style archive to link instead of a shared archive.
12732 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12734 # Commands used to build and install a shared archive.
12735 archive_cmds=$lt_archive_cmds_CXX
12736 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12737 postinstall_cmds=$lt_postinstall_cmds
12738 postuninstall_cmds=$lt_postuninstall_cmds
12740 # Commands used to build a loadable module (assumed same as above if empty)
12741 module_cmds=$lt_module_cmds_CXX
12742 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12744 # Commands to strip libraries.
12745 old_striplib=$lt_old_striplib
12746 striplib=$lt_striplib
12748 # Dependencies to place before the objects being linked to create a
12750 predep_objects=$lt_predep_objects_CXX
12752 # Dependencies to place after the objects being linked to create a
12754 postdep_objects=$lt_postdep_objects_CXX
12756 # Dependencies to place before the objects being linked to create a
12758 predeps=$lt_predeps_CXX
12760 # Dependencies to place after the objects being linked to create a
12762 postdeps=$lt_postdeps_CXX
12764 # The library search path used internally by the compiler when linking
12765 # a shared library.
12766 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12768 # Method to check whether dependent libraries are shared objects.
12769 deplibs_check_method=$lt_deplibs_check_method
12771 # Command to use when deplibs_check_method == file_magic.
12772 file_magic_cmd=$lt_file_magic_cmd
12774 # Flag that allows shared libraries with undefined symbols to be built.
12775 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12777 # Flag that forces no undefined symbols.
12778 no_undefined_flag=$lt_no_undefined_flag_CXX
12780 # Commands used to finish a libtool library installation in a directory.
12781 finish_cmds=$lt_finish_cmds
12783 # Same as above, but a single script fragment to be evaled but not shown.
12784 finish_eval=$lt_finish_eval
12786 # Take the output of nm and produce a listing of raw symbols and C names.
12787 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12789 # Transform the output of nm in a proper C declaration
12790 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12792 # Transform the output of nm in a C name address pair
12793 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12795 # This is the shared library runtime path variable.
12796 runpath_var=$runpath_var
12798 # This is the shared library path variable.
12799 shlibpath_var=$shlibpath_var
12801 # Is shlibpath searched before the hard-coded library search path?
12802 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12804 # How to hardcode a shared library path into an executable.
12805 hardcode_action=$hardcode_action_CXX
12807 # Whether we should hardcode library paths into libraries.
12808 hardcode_into_libs=$hardcode_into_libs
12810 # Flag to hardcode \$libdir into a binary during linking.
12811 # This must work even if \$libdir does not exist.
12812 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12814 # If ld is used when linking, flag to hardcode \$libdir into
12815 # a binary during linking. This must work even if \$libdir does
12817 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12819 # Whether we need a single -rpath flag with a separated argument.
12820 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12822 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12823 # resulting binary.
12824 hardcode_direct=$hardcode_direct_CXX
12826 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12827 # resulting binary.
12828 hardcode_minus_L=$hardcode_minus_L_CXX
12830 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12831 # the resulting binary.
12832 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12834 # Set to yes if building a shared library automatically hardcodes DIR into the library
12835 # and all subsequent libraries and executables linked against it.
12836 hardcode_automatic=$hardcode_automatic_CXX
12838 # Variables whose values should be saved in libtool wrapper scripts and
12839 # restored at relink time.
12840 variables_saved_for_relink="$variables_saved_for_relink"
12842 # Whether libtool must link a program against all its dependency libraries.
12843 link_all_deplibs=$link_all_deplibs_CXX
12845 # Compile-time system search path for libraries
12846 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12848 # Run-time system search path for libraries
12849 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12851 # Fix the shell variable \$srcfile for the compiler.
12852 fix_srcfile_path="$fix_srcfile_path_CXX"
12854 # Set to yes if exported symbols are required.
12855 always_export_symbols=$always_export_symbols_CXX
12857 # The commands to list exported symbols.
12858 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12860 # The commands to extract the exported symbol list from a shared archive.
12861 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12863 # Symbols that should not be listed in the preloaded symbols.
12864 exclude_expsyms=$lt_exclude_expsyms_CXX
12866 # Symbols that must always be exported.
12867 include_expsyms=$lt_include_expsyms_CXX
12869 # ### END LIBTOOL TAG CONFIG: $tagname
12875 # If there is no Makefile yet, we rely on a make rule to execute
12876 # `config.status --recheck' to rerun these tests and create the
12877 # libtool script then.
12878 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12879 if test -f "$ltmain_in"; then
12880 test -f Makefile && make "$ltmain"
12886 ac_cpp='$CPP $CPPFLAGS'
12887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12895 with_gnu_ldcxx=$with_gnu_ld
12896 with_gnu_ld=$lt_save_with_gnu_ld
12897 lt_cv_path_LDCXX=$lt_cv_path_LD
12898 lt_cv_path_LD=$lt_save_path_LD
12899 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12900 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12908 if test -n "$F77" && test "X$F77" != "Xno"; then
12911 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12912 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12916 archive_cmds_need_lc_F77=no
12917 allow_undefined_flag_F77=
12918 always_export_symbols_F77=no
12919 archive_expsym_cmds_F77=
12920 export_dynamic_flag_spec_F77=
12921 hardcode_direct_F77=no
12922 hardcode_libdir_flag_spec_F77=
12923 hardcode_libdir_flag_spec_ld_F77=
12924 hardcode_libdir_separator_F77=
12925 hardcode_minus_L_F77=no
12926 hardcode_automatic_F77=no
12928 module_expsym_cmds_F77=
12929 link_all_deplibs_F77=unknown
12930 old_archive_cmds_F77=$old_archive_cmds
12931 no_undefined_flag_F77=
12932 whole_archive_flag_spec_F77=
12933 enable_shared_with_static_runtimes_F77=no
12935 # Source file extension for f77 test sources.
12938 # Object file extension for compiled f77 test sources.
12942 # Code to be used in simple compile tests
12943 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12945 # Code to be used in simple link tests
12946 lt_simple_link_test_code=" program t\n end\n"
12948 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12950 # If no C compiler was specified, use CC.
12953 # If no C compiler flags were specified, use CFLAGS.
12954 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12956 # Allow CC to be a program name with arguments.
12960 # save warnings/boilerplate of simple test code
12961 ac_outfile=conftest.$ac_objext
12962 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12963 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12964 _lt_compiler_boilerplate=`cat conftest.err`
12967 ac_outfile=conftest.$ac_objext
12968 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12969 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12970 _lt_linker_boilerplate=`cat conftest.err`
12974 # Allow CC to be a program name with arguments.
12979 for cc_temp in $compiler""; do
12981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12987 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12990 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12991 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12992 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12993 echo "${ECHO_T}$can_build_shared" >&6
12995 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12996 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12997 test "$can_build_shared" = "no" && enable_shared=no
12999 # On AIX, shared libraries and static libraries use the same namespace, and
13000 # are all built from PIC.
13003 test "$enable_shared" = yes && enable_static=no
13004 if test -n "$RANLIB"; then
13005 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13006 postinstall_cmds='$RANLIB $lib'
13010 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13011 test "$enable_shared" = yes && enable_static=no
13015 echo "$as_me:$LINENO: result: $enable_shared" >&5
13016 echo "${ECHO_T}$enable_shared" >&6
13018 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13019 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13020 # Make sure either enable_shared or enable_static is yes.
13021 test "$enable_shared" = yes || enable_static=yes
13022 echo "$as_me:$LINENO: result: $enable_static" >&5
13023 echo "${ECHO_T}$enable_static" >&6
13028 lt_prog_compiler_wl_F77=
13029 lt_prog_compiler_pic_F77=
13030 lt_prog_compiler_static_F77=
13032 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13033 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13035 if test "$GCC" = yes; then
13036 lt_prog_compiler_wl_F77='-Wl,'
13037 lt_prog_compiler_static_F77='-static'
13041 # All AIX code is PIC.
13042 if test "$host_cpu" = ia64; then
13043 # AIX 5 now supports IA64 processor
13044 lt_prog_compiler_static_F77='-Bstatic'
13049 # FIXME: we need at least 68020 code to build shared libraries, but
13050 # adding the `-m68020' flag to GCC prevents building anything better,
13052 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13055 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13056 # PIC is the default for these OSes.
13059 mingw* | pw32* | os2*)
13060 # This hack is so that the source file can tell whether it is being
13061 # built for inclusion in a dll (and should export symbols for example).
13062 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13065 darwin* | rhapsody*)
13066 # PIC is the default on this platform
13067 # Common symbols not allowed in MH_DYLIB files
13068 lt_prog_compiler_pic_F77='-fno-common'
13072 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13073 # Instead, we relocate shared libraries at runtime.
13077 # Just because we use GCC doesn't mean we suddenly get shared libraries
13078 # on systems that don't support them.
13079 lt_prog_compiler_can_build_shared_F77=no
13084 if test -d /usr/nec; then
13085 lt_prog_compiler_pic_F77=-Kconform_pic
13090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13091 # not for PA HP-UX.
13097 lt_prog_compiler_pic_F77='-fPIC'
13103 lt_prog_compiler_pic_F77='-fPIC'
13107 # PORTME Check for flag to pass linker flags through the system compiler.
13110 lt_prog_compiler_wl_F77='-Wl,'
13111 if test "$host_cpu" = ia64; then
13112 # AIX 5 now supports IA64 processor
13113 lt_prog_compiler_static_F77='-Bstatic'
13115 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13119 # PIC is the default on this platform
13120 # Common symbols not allowed in MH_DYLIB files
13121 case $cc_basename in
13123 lt_prog_compiler_pic_F77='-qnocommon'
13124 lt_prog_compiler_wl_F77='-Wl,'
13129 mingw* | pw32* | os2*)
13130 # This hack is so that the source file can tell whether it is being
13131 # built for inclusion in a dll (and should export symbols for example).
13132 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13135 hpux9* | hpux10* | hpux11*)
13136 lt_prog_compiler_wl_F77='-Wl,'
13137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13138 # not for PA HP-UX.
13144 lt_prog_compiler_pic_F77='+Z'
13147 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13148 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13151 irix5* | irix6* | nonstopux*)
13152 lt_prog_compiler_wl_F77='-Wl,'
13153 # PIC (with -KPIC) is the default.
13154 lt_prog_compiler_static_F77='-non_shared'
13158 lt_prog_compiler_pic_F77='-KPIC'
13159 lt_prog_compiler_static_F77='-Bstatic'
13163 case $cc_basename in
13165 lt_prog_compiler_wl_F77='-Wl,'
13166 lt_prog_compiler_pic_F77='-KPIC'
13167 lt_prog_compiler_static_F77='-static'
13169 pgcc* | pgf77* | pgf90* | pgf95*)
13170 # Portland Group compilers (*not* the Pentium gcc compiler,
13171 # which looks to be a dead project)
13172 lt_prog_compiler_wl_F77='-Wl,'
13173 lt_prog_compiler_pic_F77='-fpic'
13174 lt_prog_compiler_static_F77='-Bstatic'
13177 lt_prog_compiler_wl_F77='-Wl,'
13178 # All Alpha code is PIC.
13179 lt_prog_compiler_static_F77='-non_shared'
13184 osf3* | osf4* | osf5*)
13185 lt_prog_compiler_wl_F77='-Wl,'
13186 # All OSF/1 code is PIC.
13187 lt_prog_compiler_static_F77='-non_shared'
13191 lt_prog_compiler_pic_F77='-KPIC'
13192 lt_prog_compiler_static_F77='-Bstatic'
13193 case $cc_basename in
13194 f77* | f90* | f95*)
13195 lt_prog_compiler_wl_F77='-Qoption ld ';;
13197 lt_prog_compiler_wl_F77='-Wl,';;
13202 lt_prog_compiler_wl_F77='-Qoption ld '
13203 lt_prog_compiler_pic_F77='-PIC'
13204 lt_prog_compiler_static_F77='-Bstatic'
13207 sysv4 | sysv4.2uw2* | sysv4.3*)
13208 lt_prog_compiler_wl_F77='-Wl,'
13209 lt_prog_compiler_pic_F77='-KPIC'
13210 lt_prog_compiler_static_F77='-Bstatic'
13214 if test -d /usr/nec ;then
13215 lt_prog_compiler_pic_F77='-Kconform_pic'
13216 lt_prog_compiler_static_F77='-Bstatic'
13220 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13221 lt_prog_compiler_wl_F77='-Wl,'
13222 lt_prog_compiler_pic_F77='-KPIC'
13223 lt_prog_compiler_static_F77='-Bstatic'
13227 lt_prog_compiler_wl_F77='-Wl,'
13228 lt_prog_compiler_can_build_shared_F77=no
13232 lt_prog_compiler_pic_F77='-pic'
13233 lt_prog_compiler_static_F77='-Bstatic'
13237 lt_prog_compiler_can_build_shared_F77=no
13242 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13243 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13246 # Check to make sure the PIC flag actually works.
13248 if test -n "$lt_prog_compiler_pic_F77"; then
13250 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13251 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13252 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 lt_prog_compiler_pic_works_F77=no
13256 ac_outfile=conftest.$ac_objext
13257 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13258 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13259 # Insert the option either (1) after the last *FLAGS variable, or
13260 # (2) before a word containing "conftest.", or (3) at the end.
13261 # Note that $ac_compile itself does not contain backslashes and begins
13262 # with a dollar sign (not a hyphen), so the echo should work correctly.
13263 # The option is referenced via a variable to avoid confusing sed.
13264 lt_compile=`echo "$ac_compile" | $SED \
13265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13267 -e 's:$: $lt_compiler_flag:'`
13268 (eval echo "\"\$as_me:13268: $lt_compile\"" >&5)
13269 (eval "$lt_compile" 2>conftest.err)
13271 cat conftest.err >&5
13272 echo "$as_me:13272: \$? = $ac_status" >&5
13273 if (exit $ac_status) && test -s "$ac_outfile"; then
13274 # The compiler can only warn and ignore the option if not recognized
13275 # So say no if there are warnings other than the usual output.
13276 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13279 lt_prog_compiler_pic_works_F77=yes
13285 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13286 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13288 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13289 case $lt_prog_compiler_pic_F77 in
13291 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13294 lt_prog_compiler_pic_F77=
13295 lt_prog_compiler_can_build_shared_F77=no
13300 # For platforms which do not support PIC, -DPIC is meaningless:
13302 lt_prog_compiler_pic_F77=
13305 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13310 # Check to make sure the static flag actually works.
13312 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13313 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13314 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13315 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 lt_prog_compiler_static_works_F77=no
13319 save_LDFLAGS="$LDFLAGS"
13320 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13321 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13323 # The linker can only warn and ignore the option if not recognized
13324 # So say no if there are warnings
13325 if test -s conftest.err; then
13326 # Append any errors to the config.log.
13327 cat conftest.err 1>&5
13328 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13330 if diff conftest.exp conftest.er2 >/dev/null; then
13331 lt_prog_compiler_static_works_F77=yes
13334 lt_prog_compiler_static_works_F77=yes
13338 LDFLAGS="$save_LDFLAGS"
13341 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13342 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13344 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13347 lt_prog_compiler_static_F77=
13351 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13352 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13353 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 lt_cv_prog_compiler_c_o_F77=no
13357 $rm -r conftest 2>/dev/null
13361 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13363 lt_compiler_flag="-o out/conftest2.$ac_objext"
13364 # Insert the option either (1) after the last *FLAGS variable, or
13365 # (2) before a word containing "conftest.", or (3) at the end.
13366 # Note that $ac_compile itself does not contain backslashes and begins
13367 # with a dollar sign (not a hyphen), so the echo should work correctly.
13368 lt_compile=`echo "$ac_compile" | $SED \
13369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13371 -e 's:$: $lt_compiler_flag:'`
13372 (eval echo "\"\$as_me:13372: $lt_compile\"" >&5)
13373 (eval "$lt_compile" 2>out/conftest.err)
13375 cat out/conftest.err >&5
13376 echo "$as_me:13376: \$? = $ac_status" >&5
13377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13379 # The compiler can only warn and ignore the option if not recognized
13380 # So say no if there are warnings
13381 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13384 lt_cv_prog_compiler_c_o_F77=yes
13389 # SGI C++ compiler will create directory out/ii_files/ for
13390 # template instantiation
13391 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13392 $rm out/* && rmdir out
13398 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13399 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13402 hard_links="nottested"
13403 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13404 # do not overwrite the value of need_locks provided by the user
13405 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13406 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13411 ln conftest.a conftest.b 2>&5 || hard_links=no
13412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13413 echo "$as_me:$LINENO: result: $hard_links" >&5
13414 echo "${ECHO_T}$hard_links" >&6
13415 if test "$hard_links" = no; then
13416 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13417 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13424 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13425 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13428 allow_undefined_flag_F77=
13429 enable_shared_with_static_runtimes_F77=no
13431 archive_expsym_cmds_F77=
13432 old_archive_From_new_cmds_F77=
13433 old_archive_from_expsyms_cmds_F77=
13434 export_dynamic_flag_spec_F77=
13435 whole_archive_flag_spec_F77=
13436 thread_safe_flag_spec_F77=
13437 hardcode_libdir_flag_spec_F77=
13438 hardcode_libdir_flag_spec_ld_F77=
13439 hardcode_libdir_separator_F77=
13440 hardcode_direct_F77=no
13441 hardcode_minus_L_F77=no
13442 hardcode_shlibpath_var_F77=unsupported
13443 link_all_deplibs_F77=unknown
13444 hardcode_automatic_F77=no
13446 module_expsym_cmds_F77=
13447 always_export_symbols_F77=no
13448 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13449 # include_expsyms should be a list of space-separated symbols to be *always*
13450 # included in the symbol list
13451 include_expsyms_F77=
13452 # exclude_expsyms can be an extended regexp of symbols to exclude
13453 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13454 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13455 # as well as any symbol that contains `d'.
13456 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13457 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13458 # platforms (ab)use it in PIC code, but their linkers get confused if
13459 # the symbol is explicitly referenced. Since portable code cannot
13460 # rely on this symbol name, it's probably fine to never include it in
13461 # preloaded symbol tables.
13462 extract_expsyms_cmds=
13463 # Just being paranoid about ensuring that cc_basename is set.
13464 for cc_temp in $compiler""; do
13466 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13467 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13472 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13475 cygwin* | mingw* | pw32*)
13476 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13477 # When not using gcc, we currently assume that we are using
13478 # Microsoft Visual C++.
13479 if test "$GCC" != yes; then
13484 # we just hope/assume this is gcc and not c89 (= MSVC++)
13493 if test "$with_gnu_ld" = yes; then
13494 # If archive_cmds runs LD, not CC, wlarc should be empty
13497 # Set some defaults for GNU ld with shared library support. These
13498 # are reset later if shared libraries are not supported. Putting them
13499 # here allows them to be overridden if necessary.
13500 runpath_var=LD_RUN_PATH
13501 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13502 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13503 # ancient GNU ld didn't support --whole-archive et. al.
13504 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13505 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13507 whole_archive_flag_spec_F77=
13509 supports_anon_versioning=no
13510 case `$LD -v 2>/dev/null` in
13511 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13512 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13513 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13514 *\ 2.11.*) ;; # other 2.11 versions
13515 *) supports_anon_versioning=yes ;;
13518 # See if GNU ld supports shared libraries.
13520 aix3* | aix4* | aix5*)
13521 # On AIX/PPC, the GNU linker is very broken
13522 if test "$host_cpu" != ia64; then
13526 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13527 *** to be unable to reliably create shared libraries on AIX.
13528 *** Therefore, libtool is disabling shared libraries support. If you
13529 *** really care for shared libraries, you may want to modify your PATH
13530 *** so that a non-GNU linker is found, and then restart.
13537 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)'
13538 hardcode_libdir_flag_spec_F77='-L$libdir'
13539 hardcode_minus_L_F77=yes
13541 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13542 # that the semantics of dynamic libraries on AmigaOS, at least up
13543 # to version 4, is to share data among multiple programs linked
13544 # with the same dynamic library. Since this doesn't match the
13545 # behavior of shared libraries on other platforms, we can't use
13551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13552 allow_undefined_flag_F77=unsupported
13553 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13554 # support --undefined. This deserves some investigation. FIXME
13555 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561 cygwin* | mingw* | pw32*)
13562 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13563 # as there is no search path for DLLs.
13564 hardcode_libdir_flag_spec_F77='-L$libdir'
13565 allow_undefined_flag_F77=unsupported
13566 always_export_symbols_F77=no
13567 enable_shared_with_static_runtimes_F77=yes
13568 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13570 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13571 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13572 # If the export-symbols file already is a .def file (1st line
13573 # is EXPORTS), use it as is; otherwise, prepend...
13574 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13575 cp $export_symbols $output_objdir/$soname.def;
13577 echo EXPORTS > $output_objdir/$soname.def;
13578 cat $export_symbols >> $output_objdir/$soname.def;
13580 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13587 hardcode_direct_F77=no
13588 hardcode_shlibpath_var_F77=no
13589 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13590 export_dynamic_flag_spec_F77='${wl}-E'
13591 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13592 # Instead, shared libraries are loaded at an image base (0x10000000 by
13593 # default) and relocated if they conflict, which is a slow very memory
13594 # consuming and fragmenting process. To avoid this, we pick a random,
13595 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13596 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13597 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'
13598 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'
13602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13604 case $cc_basename,$host_cpu in
13605 pgcc*) # Portland Group C compiler
13606 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'
13607 tmp_addflag=' $pic_flag'
13609 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13610 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'
13611 tmp_addflag=' $pic_flag -Mnomain' ;;
13612 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13613 tmp_addflag=' -i_dynamic' ;;
13614 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13615 tmp_addflag=' -i_dynamic -nofor_main' ;;
13616 ifc* | ifort*) # Intel Fortran compiler
13617 tmp_addflag=' -nofor_main' ;;
13619 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13621 if test $supports_anon_versioning = yes; then
13622 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13624 $echo "local: *; };" >> $output_objdir/$libname.ver~
13625 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13634 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13637 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13638 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13643 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13647 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13648 *** create shared libraries on Solaris systems. Therefore, libtool
13649 *** is disabling shared libraries support. We urge you to upgrade GNU
13650 *** binutils to release 2.9.1 or newer. Another option is to modify
13651 *** your PATH or compiler configuration so that the native linker is
13652 *** used, and then restart.
13655 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13656 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13657 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13664 case `$LD -v 2>&1` in
13665 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13669 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13670 *** reliably create shared libraries on SCO systems. Therefore, libtool
13671 *** is disabling shared libraries support. We urge you to upgrade GNU
13672 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13673 *** your PATH or compiler configuration so that the native linker is
13674 *** used, and then restart.
13679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13680 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13681 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13682 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13691 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13693 hardcode_direct_F77=yes
13694 hardcode_shlibpath_var_F77=no
13698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13699 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13700 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13707 if test "$ld_shlibs_F77" = no; then
13709 hardcode_libdir_flag_spec_F77=
13710 export_dynamic_flag_spec_F77=
13711 whole_archive_flag_spec_F77=
13714 # PORTME fill in a description of your system's linker (not GNU ld)
13717 allow_undefined_flag_F77=unsupported
13718 always_export_symbols_F77=yes
13719 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'
13720 # Note: this linker hardcodes the directories in LIBPATH if there
13721 # are no directories specified by -L.
13722 hardcode_minus_L_F77=yes
13723 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13724 # Neither direct hardcoding nor static linking is supported with a
13726 hardcode_direct_F77=unsupported
13731 if test "$host_cpu" = ia64; then
13732 # On IA64, the linker does run time linking by default, so we don't
13733 # have to do anything special.
13734 aix_use_runtimelinking=no
13735 exp_sym_flag='-Bexport'
13738 # If we're using GNU nm, then we don't want the "-C" option.
13739 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13740 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13741 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'
13743 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'
13745 aix_use_runtimelinking=no
13747 # Test if we are trying to use run time linking or normal
13748 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13749 # need to do runtime linking.
13750 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13751 for ld_flag in $LDFLAGS; do
13752 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13753 aix_use_runtimelinking=yes
13760 exp_sym_flag='-bexport'
13761 no_entry_flag='-bnoentry'
13764 # When large executables or shared objects are built, AIX ld can
13765 # have problems creating the table of contents. If linking a library
13766 # or program results in "error TOC overflow" add -mminimal-toc to
13767 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13768 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13770 archive_cmds_F77=''
13771 hardcode_direct_F77=yes
13772 hardcode_libdir_separator_F77=':'
13773 link_all_deplibs_F77=yes
13775 if test "$GCC" = yes; then
13776 case $host_os in aix4.[012]|aix4.[012].*)
13777 # We only want to do this on AIX 4.2 and lower, the check
13778 # below for broken collect2 doesn't work under 4.3+
13779 collect2name=`${CC} -print-prog-name=collect2`
13780 if test -f "$collect2name" && \
13781 strings "$collect2name" | grep resolve_lib_name >/dev/null
13783 # We have reworked collect2
13784 hardcode_direct_F77=yes
13786 # We have old collect2
13787 hardcode_direct_F77=unsupported
13788 # It fails to find uninstalled libraries when the uninstalled
13789 # path is not listed in the libpath. Setting hardcode_minus_L
13790 # to unsupported forces relinking
13791 hardcode_minus_L_F77=yes
13792 hardcode_libdir_flag_spec_F77='-L$libdir'
13793 hardcode_libdir_separator_F77=
13797 shared_flag='-shared'
13798 if test "$aix_use_runtimelinking" = yes; then
13799 shared_flag="$shared_flag "'${wl}-G'
13803 if test "$host_cpu" = ia64; then
13804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13805 # chokes on -Wl,-G. The following line is correct:
13808 if test "$aix_use_runtimelinking" = yes; then
13809 shared_flag='${wl}-G'
13811 shared_flag='${wl}-bM:SRE'
13816 # It seems that -bexpall does not export symbols beginning with
13817 # underscore (_), so it is better to generate a list of symbols to export.
13818 always_export_symbols_F77=yes
13819 if test "$aix_use_runtimelinking" = yes; then
13820 # Warning - without using the other runtime loading flags (-brtl),
13821 # -berok will link without error, but may produce a broken library.
13822 allow_undefined_flag_F77='-berok'
13823 # Determine the default libpath from the value encoded in an empty executable.
13824 cat >conftest.$ac_ext <<_ACEOF
13829 rm -f conftest.$ac_objext conftest$ac_exeext
13830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13831 (eval $ac_link) 2>conftest.er1
13833 grep -v '^ *+' conftest.er1 >conftest.err
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } &&
13838 { ac_try='test -z "$ac_f77_werror_flag"
13839 || test ! -s conftest.err'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; } &&
13845 { ac_try='test -s conftest$ac_exeext'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13854 # Check for a 64-bit object if we didn't find anything.
13855 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; }
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13862 rm -f conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13866 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13867 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"
13869 if test "$host_cpu" = ia64; then
13870 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13871 allow_undefined_flag_F77="-z nodefs"
13872 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"
13874 # Determine the default libpath from the value encoded in an empty executable.
13875 cat >conftest.$ac_ext <<_ACEOF
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13882 (eval $ac_link) 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_f77_werror_flag"
13890 || test ! -s conftest.err'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest$ac_exeext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13905 # Check for a 64-bit object if we didn't find anything.
13906 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; }
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13913 rm -f conftest.err conftest.$ac_objext \
13914 conftest$ac_exeext conftest.$ac_ext
13915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13917 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13918 # Warning - without using the other run time loading flags,
13919 # -berok will link without error, but may produce a broken library.
13920 no_undefined_flag_F77=' ${wl}-bernotok'
13921 allow_undefined_flag_F77=' ${wl}-berok'
13922 # Exported symbols can be pulled into shared objects from archives
13923 whole_archive_flag_spec_F77='$convenience'
13924 archive_cmds_need_lc_F77=yes
13925 # This is similar to how AIX traditionally builds its shared libraries.
13926 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'
13932 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)'
13933 hardcode_libdir_flag_spec_F77='-L$libdir'
13934 hardcode_minus_L_F77=yes
13935 # see comment about different semantics on the GNU ld section
13940 export_dynamic_flag_spec_F77=-rdynamic
13943 cygwin* | mingw* | pw32*)
13944 # When not using gcc, we currently assume that we are using
13945 # Microsoft Visual C++.
13946 # hardcode_libdir_flag_spec is actually meaningless, as there is
13947 # no search path for DLLs.
13948 hardcode_libdir_flag_spec_F77=' '
13949 allow_undefined_flag_F77=unsupported
13950 # Tell ltmain to make .lib files, not .a files.
13952 # Tell ltmain to make .dll files, not .so files.
13954 # FIXME: Setting linknames here is a bad hack.
13955 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13956 # The linker will automatically build a .lib file if we build a DLL.
13957 old_archive_From_new_cmds_F77='true'
13958 # FIXME: Should let the user specify the lib program.
13959 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13960 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13961 enable_shared_with_static_runtimes_F77=yes
13964 darwin* | rhapsody*)
13966 rhapsody* | darwin1.[012])
13967 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13970 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13971 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13973 case ${MACOSX_DEPLOYMENT_TARGET} in
13975 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13978 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13984 archive_cmds_need_lc_F77=no
13985 hardcode_direct_F77=no
13986 hardcode_automatic_F77=yes
13987 hardcode_shlibpath_var_F77=unsupported
13988 whole_archive_flag_spec_F77=''
13989 link_all_deplibs_F77=yes
13990 if test "$GCC" = yes ; then
13991 output_verbose_link_cmd='echo'
13992 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13993 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13994 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13995 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}'
13996 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}'
13998 case $cc_basename in
14000 output_verbose_link_cmd='echo'
14001 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14002 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14003 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14004 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}'
14005 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}'
14015 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14016 hardcode_libdir_flag_spec_F77='-L$libdir'
14017 hardcode_shlibpath_var_F77=no
14024 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14025 # support. Future versions do this automatically, but an explicit c++rt0.o
14026 # does not break anything, and helps significantly (at the cost of a little
14029 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14030 hardcode_libdir_flag_spec_F77='-R$libdir'
14031 hardcode_direct_F77=yes
14032 hardcode_shlibpath_var_F77=no
14035 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14037 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14038 hardcode_direct_F77=yes
14039 hardcode_minus_L_F77=yes
14040 hardcode_shlibpath_var_F77=no
14043 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14044 freebsd* | kfreebsd*-gnu | dragonfly*)
14045 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14046 hardcode_libdir_flag_spec_F77='-R$libdir'
14047 hardcode_direct_F77=yes
14048 hardcode_shlibpath_var_F77=no
14052 if test "$GCC" = yes; then
14053 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'
14055 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'
14057 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14058 hardcode_libdir_separator_F77=:
14059 hardcode_direct_F77=yes
14061 # hardcode_minus_L: Not really in the search PATH,
14062 # but as the default location of the library.
14063 hardcode_minus_L_F77=yes
14064 export_dynamic_flag_spec_F77='${wl}-E'
14068 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14069 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14071 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14073 if test "$with_gnu_ld" = no; then
14074 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14075 hardcode_libdir_separator_F77=:
14077 hardcode_direct_F77=yes
14078 export_dynamic_flag_spec_F77='${wl}-E'
14080 # hardcode_minus_L: Not really in the search PATH,
14081 # but as the default location of the library.
14082 hardcode_minus_L_F77=yes
14087 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14090 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14093 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14096 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14102 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14105 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14108 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14112 if test "$with_gnu_ld" = no; then
14113 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14114 hardcode_libdir_separator_F77=:
14118 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14119 hardcode_direct_F77=no
14120 hardcode_shlibpath_var_F77=no
14123 hardcode_direct_F77=yes
14124 export_dynamic_flag_spec_F77='${wl}-E'
14126 # hardcode_minus_L: Not really in the search PATH,
14127 # but as the default location of the library.
14128 hardcode_minus_L_F77=yes
14134 irix5* | irix6* | nonstopux*)
14135 if test "$GCC" = yes; then
14136 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'
14138 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'
14139 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14141 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14142 hardcode_libdir_separator_F77=:
14143 link_all_deplibs_F77=yes
14147 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14148 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14150 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14152 hardcode_libdir_flag_spec_F77='-R$libdir'
14153 hardcode_direct_F77=yes
14154 hardcode_shlibpath_var_F77=no
14158 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159 hardcode_direct_F77=yes
14160 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14161 hardcode_libdir_separator_F77=:
14162 hardcode_shlibpath_var_F77=no
14166 hardcode_direct_F77=yes
14167 hardcode_shlibpath_var_F77=no
14168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14169 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14170 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14171 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14172 export_dynamic_flag_spec_F77='${wl}-E'
14175 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14176 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14177 hardcode_libdir_flag_spec_F77='-R$libdir'
14180 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14181 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14188 hardcode_libdir_flag_spec_F77='-L$libdir'
14189 hardcode_minus_L_F77=yes
14190 allow_undefined_flag_F77=unsupported
14191 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'
14192 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14196 if test "$GCC" = yes; then
14197 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14198 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'
14200 allow_undefined_flag_F77=' -expect_unresolved \*'
14201 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'
14203 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14204 hardcode_libdir_separator_F77=:
14207 osf4* | osf5*) # as osf3* with the addition of -msym flag
14208 if test "$GCC" = yes; then
14209 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14210 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'
14211 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14213 allow_undefined_flag_F77=' -expect_unresolved \*'
14214 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'
14215 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~
14216 $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'
14218 # Both c and cxx compiler support -rpath directly
14219 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14221 hardcode_libdir_separator_F77=:
14225 no_undefined_flag_F77=' -z text'
14226 if test "$GCC" = yes; then
14228 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14229 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14230 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14233 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14234 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14235 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14237 hardcode_libdir_flag_spec_F77='-R$libdir'
14238 hardcode_shlibpath_var_F77=no
14240 solaris2.[0-5] | solaris2.[0-5].*) ;;
14242 # The compiler driver will combine linker options so we
14243 # cannot just pass the convience library names through
14244 # without $wl, iff we do not link with $LD.
14245 # Luckily, gcc supports the same syntax we need for Sun Studio.
14246 # Supported since Solaris 2.6 (maybe 2.5.1?)
14249 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14251 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' ;;
14254 link_all_deplibs_F77=yes
14258 if test "x$host_vendor" = xsequent; then
14259 # Use $CC to link under sequent, because it throws in some extra .o
14260 # files that make .init and .fini sections work.
14261 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14263 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14265 hardcode_libdir_flag_spec_F77='-L$libdir'
14266 hardcode_direct_F77=yes
14267 hardcode_minus_L_F77=yes
14268 hardcode_shlibpath_var_F77=no
14272 case $host_vendor in
14274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275 hardcode_direct_F77=yes # is this really true???
14278 ## LD is ld it makes a PLAMLIB
14279 ## CC just makes a GrossModule.
14280 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14281 reload_cmds_F77='$CC -r -o $output$reload_objs'
14282 hardcode_direct_F77=no
14285 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14286 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14289 runpath_var='LD_RUN_PATH'
14290 hardcode_shlibpath_var_F77=no
14294 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295 hardcode_shlibpath_var_F77=no
14296 export_dynamic_flag_spec_F77='-Bexport'
14300 if test -d /usr/nec; then
14301 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14302 hardcode_shlibpath_var_F77=no
14303 runpath_var=LD_RUN_PATH
14304 hardcode_runpath_var=yes
14309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14310 no_undefined_flag_F77='${wl}-z,text'
14311 archive_cmds_need_lc_F77=no
14312 hardcode_shlibpath_var_F77=no
14313 runpath_var='LD_RUN_PATH'
14315 if test "$GCC" = yes; then
14316 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14317 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14319 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14320 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14324 sysv5* | sco3.2v5* | sco5v6*)
14325 # Note: We can NOT use -z defs as we might desire, because we do not
14326 # link with -lc, and that would cause any symbols used from libc to
14327 # always be unresolved, which means just about no library would
14328 # ever link correctly. If we're not using GNU ld we use -z text
14329 # though, which does catch some bad symbols but isn't as heavy-handed
14331 no_undefined_flag_F77='${wl}-z,text'
14332 allow_undefined_flag_F77='${wl}-z,nodefs'
14333 archive_cmds_need_lc_F77=no
14334 hardcode_shlibpath_var_F77=no
14335 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14336 hardcode_libdir_separator_F77=':'
14337 link_all_deplibs_F77=yes
14338 export_dynamic_flag_spec_F77='${wl}-Bexport'
14339 runpath_var='LD_RUN_PATH'
14341 if test "$GCC" = yes; then
14342 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14343 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14345 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14346 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14351 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14352 hardcode_libdir_flag_spec_F77='-L$libdir'
14353 hardcode_shlibpath_var_F77=no
14362 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14363 echo "${ECHO_T}$ld_shlibs_F77" >&6
14364 test "$ld_shlibs_F77" = no && can_build_shared=no
14367 # Do we need to explicitly link libc?
14369 case "x$archive_cmds_need_lc_F77" in
14371 # Assume -lc should be added
14372 archive_cmds_need_lc_F77=yes
14374 if test "$enable_shared" = yes && test "$GCC" = yes; then
14375 case $archive_cmds_F77 in
14377 # FIXME: we may have to deal with multi-command sequences.
14380 # Test whether the compiler implicitly links with -lc since on some
14381 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14382 # to ld, don't add -lc before -lgcc.
14383 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14384 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14386 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389 (eval $ac_compile) 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } 2>conftest.err; then
14395 libobjs=conftest.$ac_objext
14397 wl=$lt_prog_compiler_wl_F77
14398 pic_flag=$lt_prog_compiler_pic_F77
14404 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14405 allow_undefined_flag_F77=
14406 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14407 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }
14412 archive_cmds_need_lc_F77=no
14414 archive_cmds_need_lc_F77=yes
14416 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14418 cat conftest.err 1>&5
14421 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14422 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14429 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14430 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14431 library_names_spec=
14432 libname_spec='lib$name'
14436 postuninstall_cmds=
14440 shlibpath_overrides_runpath=unknown
14442 dynamic_linker="$host_os ld.so"
14443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14444 if test "$GCC" = yes; then
14445 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14446 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14447 # if the path contains ";" then we assume it to be the separator
14448 # otherwise default to the standard path separator (i.e. ":") - it is
14449 # assumed that no part of a normal pathname contains ";" but that should
14450 # okay in the real world where ";" in dirpaths is itself problematic.
14451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14456 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14458 need_lib_prefix=unknown
14459 hardcode_into_libs=no
14461 # when you set need_version to no, make sure it does not cause -set_version
14462 # flags to be left without arguments
14463 need_version=unknown
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14469 shlibpath_var=LIBPATH
14471 # AIX 3 has no versioning support, so we append a major version to the name.
14472 soname_spec='${libname}${release}${shared_ext}$major'
14479 hardcode_into_libs=yes
14480 if test "$host_cpu" = ia64; then
14481 # AIX 5 supports IA64
14482 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14483 shlibpath_var=LD_LIBRARY_PATH
14485 # With GCC up to 2.95.x, collect2 would create an import file
14486 # for dependence libraries. The import file would start with
14487 # the line `#! .'. This would cause the generated library to
14488 # depend on `.', always an invalid library. This was fixed in
14489 # development snapshots of GCC prior to 3.0.
14491 aix4 | aix4.[01] | aix4.[01].*)
14492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14494 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14497 can_build_shared=no
14501 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14502 # soname into executable. Probably we can add versioning support to
14503 # collect2, so additional links can be useful in future.
14504 if test "$aix_use_runtimelinking" = yes; then
14505 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14506 # instead of lib<name>.a to let people know that these are not
14507 # typical AIX shared libraries.
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510 # We preserve .a as extension for shared libraries through AIX4.2
14511 # and later when we are not doing run time linking.
14512 library_names_spec='${libname}${release}.a $libname.a'
14513 soname_spec='${libname}${release}${shared_ext}$major'
14515 shlibpath_var=LIBPATH
14520 library_names_spec='$libname.ixlibrary $libname.a'
14521 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14522 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'
14526 library_names_spec='${libname}${shared_ext}'
14527 dynamic_linker="$host_os ld.so"
14528 shlibpath_var=LIBRARY_PATH
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535 soname_spec='${libname}${release}${shared_ext}$major'
14536 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14537 shlibpath_var=LD_LIBRARY_PATH
14538 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14539 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14540 # the default ld.so.conf also contains /usr/contrib/lib and
14541 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14542 # libtool to hard-code these into programs
14545 cygwin* | mingw* | pw32*)
14546 version_type=windows
14551 case $GCC,$host_os in
14552 yes,cygwin* | yes,mingw* | yes,pw32*)
14553 library_names_spec='$libname.dll.a'
14554 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14555 postinstall_cmds='base_file=`basename \${file}`~
14556 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14557 dldir=$destdir/`dirname \$dlpath`~
14558 test -d \$dldir || mkdir -p \$dldir~
14559 $install_prog $dir/$dlname \$dldir/$dlname~
14560 chmod a+x \$dldir/$dlname'
14561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14562 dlpath=$dir/\$dldll~
14564 shlibpath_overrides_runpath=yes
14568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14569 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14570 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14573 # MinGW DLLs use traditional 'lib' prefix
14574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14576 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14577 # It is most probably a Windows format PATH printed by
14578 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14579 # path with ; separators, and with drive letters. We can handle the
14580 # drive letters (cygwin fileutils understands them), so leave them,
14581 # especially as we might pass files found there to a mingw objdump,
14582 # which wouldn't understand a cygwinified path. Ahh.
14583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14589 # pw32 DLLs use 'pw' prefix rather than 'lib'
14590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14596 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14599 dynamic_linker='Win32 ld.exe'
14600 # FIXME: first we should search . and the directory the executable is in
14604 darwin* | rhapsody*)
14605 dynamic_linker="$host_os dyld"
14606 version_type=darwin
14609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14610 soname_spec='${libname}${release}${major}$shared_ext'
14611 shlibpath_overrides_runpath=yes
14612 shlibpath_var=DYLD_LIBRARY_PATH
14613 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14614 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14615 if test "$GCC" = yes; then
14616 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"`
14618 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14620 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14628 soname_spec='${libname}${release}${shared_ext}$major'
14629 shlibpath_var=LD_LIBRARY_PATH
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 shlibpath_overrides_runpath=no
14644 hardcode_into_libs=yes
14645 dynamic_linker='GNU ld.so'
14648 freebsd* | dragonfly*)
14649 # DragonFly does not have aout. When/if they implement a new
14650 # versioning mechanism, adjust this.
14651 if test -x /usr/bin/objformat; then
14652 objformat=`/usr/bin/objformat`
14655 freebsd[123]*) objformat=aout ;;
14656 *) objformat=elf ;;
14659 version_type=freebsd-$objformat
14660 case $version_type in
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14671 shlibpath_var=LD_LIBRARY_PATH
14674 shlibpath_overrides_runpath=yes
14676 freebsd3.[01]* | freebsdelf3.[01]*)
14677 shlibpath_overrides_runpath=yes
14678 hardcode_into_libs=yes
14680 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14681 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14682 shlibpath_overrides_runpath=no
14683 hardcode_into_libs=yes
14685 freebsd*) # from 4.6 on
14686 shlibpath_overrides_runpath=yes
14687 hardcode_into_libs=yes
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 hardcode_into_libs=yes
14702 hpux9* | hpux10* | hpux11*)
14703 # Give a soname corresponding to the major version so that dld.sl refuses to
14704 # link against other versions.
14711 hardcode_into_libs=yes
14712 dynamic_linker="$host_os dld.so"
14713 shlibpath_var=LD_LIBRARY_PATH
14714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 if test "X$HPUX_IA64_MODE" = X32; then
14718 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14720 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14726 hardcode_into_libs=yes
14727 dynamic_linker="$host_os dld.sl"
14728 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731 soname_spec='${libname}${release}${shared_ext}$major'
14732 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14737 dynamic_linker="$host_os dld.sl"
14738 shlibpath_var=SHLIB_PATH
14739 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14744 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14745 postinstall_cmds='chmod 555 $lib'
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=no
14757 hardcode_into_libs=yes
14760 irix5* | irix6* | nonstopux*)
14762 nonstopux*) version_type=nonstopux ;;
14764 if test "$lt_cv_prog_gnu_ld" = yes; then
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14775 irix5* | nonstopux*)
14776 libsuff= shlibsuff=
14779 case $LD in # libtool.m4 will add one of these switches to LD
14780 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14781 libsuff= shlibsuff= libmagic=32-bit;;
14782 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14783 libsuff=32 shlibsuff=N32 libmagic=N32;;
14784 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14785 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14786 *) libsuff= shlibsuff= libmagic=never-match;;
14790 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14791 shlibpath_overrides_runpath=no
14792 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14793 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14794 hardcode_into_libs=yes
14797 # No shared lib support for Linux oldld, aout, or coff.
14798 linux*oldld* | linux*aout* | linux*coff*)
14802 # This must be Linux ELF.
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14808 soname_spec='${libname}${release}${shared_ext}$major'
14809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath=no
14812 # This implies no fast_install, which is unacceptable.
14813 # Some rework will be needed to allow for fast_install
14814 # before this can be enabled.
14815 hardcode_into_libs=yes
14817 # find out which ABI we are using
14819 case "$host_cpu" in
14820 x86_64*|s390x*|powerpc64*)
14821 echo '#line 14821 "configure"' > conftest.$ac_ext
14822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14823 (eval $ac_compile) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; then
14827 case `/usr/bin/file conftest.$ac_objext` in
14830 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14838 # Append ld.so.conf contents to the search path
14839 if test -f /etc/ld.so.conf; then
14840 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14841 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14844 # We used to test for /lib/ld.so.1 and disable shared libraries on
14845 # powerpc, because MkLinux only supported shared libraries with the
14846 # GNU dynamic linker. Since this was broken with cross compilers,
14847 # most powerpc-linux boxes support dynamic linking these days and
14848 # people can always --disable-shared, the test was removed, and we
14849 # assume the GNU/Linux dynamic linker is in use.
14850 dynamic_linker='GNU/Linux ld.so'
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=no
14861 hardcode_into_libs=yes
14862 dynamic_linker='GNU ld.so'
14869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14872 dynamic_linker='NetBSD (a.out) ld.so'
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 dynamic_linker='NetBSD ld.elf_so'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 shlibpath_overrides_runpath=yes
14880 hardcode_into_libs=yes
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=yes
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=yes
14902 sys_lib_dlsearch_path_spec="/usr/lib"
14904 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14906 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14907 *) need_version=no ;;
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14911 shlibpath_var=LD_LIBRARY_PATH
14912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14914 openbsd2.[89] | openbsd2.[89].*)
14915 shlibpath_overrides_runpath=no
14918 shlibpath_overrides_runpath=yes
14922 shlibpath_overrides_runpath=yes
14927 libname_spec='$name'
14930 library_names_spec='$libname${shared_ext} $libname.a'
14931 dynamic_linker='OS/2 ld.exe'
14932 shlibpath_var=LIBPATH
14935 osf3* | osf4* | osf5*)
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14943 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951 soname_spec='${libname}${release}${shared_ext}$major'
14952 shlibpath_var=LD_LIBRARY_PATH
14953 shlibpath_overrides_runpath=yes
14954 hardcode_into_libs=yes
14955 # ldd complains unless libraries are executable
14956 postinstall_cmds='chmod +x $lib'
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14962 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14963 shlibpath_var=LD_LIBRARY_PATH
14964 shlibpath_overrides_runpath=yes
14965 if test "$with_gnu_ld" = yes; then
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 shlibpath_var=LD_LIBRARY_PATH
14976 case $host_vendor in
14978 shlibpath_overrides_runpath=no
14980 export_dynamic_flag_spec='${wl}-Blargedynsym'
14981 runpath_var=LD_RUN_PATH
14989 shlibpath_overrides_runpath=no
14990 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14996 if test -d /usr/nec ;then
14998 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14999 soname_spec='$libname${shared_ext}.$major'
15000 shlibpath_var=LD_LIBRARY_PATH
15004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15005 version_type=freebsd-elf
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15009 soname_spec='${libname}${release}${shared_ext}$major'
15010 shlibpath_var=LD_LIBRARY_PATH
15011 hardcode_into_libs=yes
15012 if test "$with_gnu_ld" = yes; then
15013 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15014 shlibpath_overrides_runpath=no
15016 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15017 shlibpath_overrides_runpath=yes
15020 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15024 sys_lib_dlsearch_path_spec='/usr/lib'
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030 soname_spec='${libname}${release}${shared_ext}$major'
15031 shlibpath_var=LD_LIBRARY_PATH
15038 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15039 echo "${ECHO_T}$dynamic_linker" >&6
15040 test "$dynamic_linker" = no && can_build_shared=no
15042 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15043 if test "$GCC" = yes; then
15044 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15047 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15048 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15049 hardcode_action_F77=
15050 if test -n "$hardcode_libdir_flag_spec_F77" || \
15051 test -n "$runpath_var_F77" || \
15052 test "X$hardcode_automatic_F77" = "Xyes" ; then
15054 # We can hardcode non-existant directories.
15055 if test "$hardcode_direct_F77" != no &&
15056 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15057 # have to relink, otherwise we might link with an installed library
15058 # when we should be linking with a yet-to-be-installed one
15059 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15060 test "$hardcode_minus_L_F77" != no; then
15061 # Linking always hardcodes the temporary library directory.
15062 hardcode_action_F77=relink
15064 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15065 hardcode_action_F77=immediate
15068 # We cannot hardcode anything, or else we can only hardcode existing
15070 hardcode_action_F77=unsupported
15072 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15073 echo "${ECHO_T}$hardcode_action_F77" >&6
15075 if test "$hardcode_action_F77" = relink; then
15076 # Fast installation is not supported
15077 enable_fast_install=no
15078 elif test "$shlibpath_overrides_runpath" = yes ||
15079 test "$enable_shared" = no; then
15080 # Fast installation is not necessary
15081 enable_fast_install=needless
15085 # The else clause should only fire when bootstrapping the
15086 # libtool distribution, otherwise you forgot to ship ltmain.sh
15087 # with your package, and you will get complaints that there are
15088 # no rules to generate ltmain.sh.
15089 if test -f "$ltmain"; then
15090 # See if we are running on zsh, and set the options which allow our commands through
15091 # without removal of \ escapes.
15092 if test -n "${ZSH_VERSION+set}" ; then
15093 setopt NO_GLOB_SUBST
15095 # Now quote all the things that may contain metacharacters while being
15096 # careful not to overquote the AC_SUBSTed values. We take copies of the
15097 # variables and quote the copies for generation of the libtool script.
15098 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15100 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15101 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15102 deplibs_check_method reload_flag reload_cmds need_locks \
15103 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15104 lt_cv_sys_global_symbol_to_c_name_address \
15105 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15106 old_postinstall_cmds old_postuninstall_cmds \
15110 lt_prog_compiler_wl_F77 \
15111 lt_prog_compiler_pic_F77 \
15112 lt_prog_compiler_static_F77 \
15113 lt_prog_compiler_no_builtin_flag_F77 \
15114 export_dynamic_flag_spec_F77 \
15115 thread_safe_flag_spec_F77 \
15116 whole_archive_flag_spec_F77 \
15117 enable_shared_with_static_runtimes_F77 \
15118 old_archive_cmds_F77 \
15119 old_archive_from_new_cmds_F77 \
15120 predep_objects_F77 \
15121 postdep_objects_F77 \
15124 compiler_lib_search_path_F77 \
15126 archive_expsym_cmds_F77 \
15127 postinstall_cmds_F77 \
15128 postuninstall_cmds_F77 \
15129 old_archive_from_expsyms_cmds_F77 \
15130 allow_undefined_flag_F77 \
15131 no_undefined_flag_F77 \
15132 export_symbols_cmds_F77 \
15133 hardcode_libdir_flag_spec_F77 \
15134 hardcode_libdir_flag_spec_ld_F77 \
15135 hardcode_libdir_separator_F77 \
15136 hardcode_automatic_F77 \
15138 module_expsym_cmds_F77 \
15139 lt_cv_prog_compiler_c_o_F77 \
15140 exclude_expsyms_F77 \
15141 include_expsyms_F77; do
15144 old_archive_cmds_F77 | \
15145 old_archive_from_new_cmds_F77 | \
15146 archive_cmds_F77 | \
15147 archive_expsym_cmds_F77 | \
15148 module_cmds_F77 | \
15149 module_expsym_cmds_F77 | \
15150 old_archive_from_expsyms_cmds_F77 | \
15151 export_symbols_cmds_F77 | \
15152 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15153 postinstall_cmds | postuninstall_cmds | \
15154 old_postinstall_cmds | old_postuninstall_cmds | \
15155 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15156 # Double-quote double-evaled strings.
15157 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15160 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15166 *'\$0 --fallback-echo"')
15167 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15173 cat <<__EOF__ >> "$cfgfile"
15174 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15176 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15178 # Shell to use when invoking shell scripts.
15181 # Whether or not to build shared libraries.
15182 build_libtool_libs=$enable_shared
15184 # Whether or not to build static libraries.
15185 build_old_libs=$enable_static
15187 # Whether or not to add -lc for building shared libraries.
15188 build_libtool_need_lc=$archive_cmds_need_lc_F77
15190 # Whether or not to disallow shared libs when runtime libs are static
15191 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15193 # Whether or not to optimize for fast installation.
15194 fast_install=$enable_fast_install
15197 host_alias=$host_alias
15201 # The build system.
15202 build_alias=$build_alias
15206 # An echo program that does not interpret backslashes.
15211 AR_FLAGS=$lt_AR_FLAGS
15216 # LTCC compiler flags.
15217 LTCFLAGS=$lt_LTCFLAGS
15219 # A language-specific compiler.
15220 CC=$lt_compiler_F77
15222 # Is the compiler the GNU C compiler?
15228 # The linker used to build libraries.
15231 # Whether we need hard or soft links.
15234 # A BSD-compatible nm program.
15237 # A symbol stripping program
15240 # Used to examine libraries when file_magic_cmd begins "file"
15241 MAGIC_CMD=$MAGIC_CMD
15243 # Used on cygwin: DLL creation program.
15246 # Used on cygwin: object dumper.
15249 # Used on cygwin: assembler.
15252 # The name of the directory that contains temporary libtool files.
15255 # How to create reloadable object files.
15256 reload_flag=$lt_reload_flag
15257 reload_cmds=$lt_reload_cmds
15259 # How to pass a linker flag through the compiler.
15260 wl=$lt_lt_prog_compiler_wl_F77
15262 # Object file suffix (normally "o").
15263 objext="$ac_objext"
15265 # Old archive suffix (normally "a").
15268 # Shared library suffix (normally ".so").
15269 shrext_cmds='$shrext_cmds'
15271 # Executable file suffix (normally "").
15274 # Additional compiler flags for building library objects.
15275 pic_flag=$lt_lt_prog_compiler_pic_F77
15278 # What is the maximum length of a command?
15279 max_cmd_len=$lt_cv_sys_max_cmd_len
15281 # Does compiler simultaneously support -c and -o options?
15282 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15284 # Must we lock files when doing compilation?
15285 need_locks=$lt_need_locks
15287 # Do we need the lib prefix for modules?
15288 need_lib_prefix=$need_lib_prefix
15290 # Do we need a version for libraries?
15291 need_version=$need_version
15293 # Whether dlopen is supported.
15294 dlopen_support=$enable_dlopen
15296 # Whether dlopen of programs is supported.
15297 dlopen_self=$enable_dlopen_self
15299 # Whether dlopen of statically linked programs is supported.
15300 dlopen_self_static=$enable_dlopen_self_static
15302 # Compiler flag to prevent dynamic linking.
15303 link_static_flag=$lt_lt_prog_compiler_static_F77
15305 # Compiler flag to turn off builtin functions.
15306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15308 # Compiler flag to allow reflexive dlopens.
15309 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15311 # Compiler flag to generate shared objects directly from archives.
15312 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15314 # Compiler flag to generate thread-safe objects.
15315 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15317 # Library versioning type.
15318 version_type=$version_type
15320 # Format of library name prefix.
15321 libname_spec=$lt_libname_spec
15323 # List of archive names. First name is the real one, the rest are links.
15324 # The last name is the one that the linker finds with -lNAME.
15325 library_names_spec=$lt_library_names_spec
15327 # The coded name of the library, if different from the real name.
15328 soname_spec=$lt_soname_spec
15330 # Commands used to build and install an old-style archive.
15332 old_archive_cmds=$lt_old_archive_cmds_F77
15333 old_postinstall_cmds=$lt_old_postinstall_cmds
15334 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15336 # Create an old-style archive from a shared archive.
15337 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15339 # Create a temporary old-style archive to link instead of a shared archive.
15340 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15342 # Commands used to build and install a shared archive.
15343 archive_cmds=$lt_archive_cmds_F77
15344 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15345 postinstall_cmds=$lt_postinstall_cmds
15346 postuninstall_cmds=$lt_postuninstall_cmds
15348 # Commands used to build a loadable module (assumed same as above if empty)
15349 module_cmds=$lt_module_cmds_F77
15350 module_expsym_cmds=$lt_module_expsym_cmds_F77
15352 # Commands to strip libraries.
15353 old_striplib=$lt_old_striplib
15354 striplib=$lt_striplib
15356 # Dependencies to place before the objects being linked to create a
15358 predep_objects=$lt_predep_objects_F77
15360 # Dependencies to place after the objects being linked to create a
15362 postdep_objects=$lt_postdep_objects_F77
15364 # Dependencies to place before the objects being linked to create a
15366 predeps=$lt_predeps_F77
15368 # Dependencies to place after the objects being linked to create a
15370 postdeps=$lt_postdeps_F77
15372 # The library search path used internally by the compiler when linking
15373 # a shared library.
15374 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15376 # Method to check whether dependent libraries are shared objects.
15377 deplibs_check_method=$lt_deplibs_check_method
15379 # Command to use when deplibs_check_method == file_magic.
15380 file_magic_cmd=$lt_file_magic_cmd
15382 # Flag that allows shared libraries with undefined symbols to be built.
15383 allow_undefined_flag=$lt_allow_undefined_flag_F77
15385 # Flag that forces no undefined symbols.
15386 no_undefined_flag=$lt_no_undefined_flag_F77
15388 # Commands used to finish a libtool library installation in a directory.
15389 finish_cmds=$lt_finish_cmds
15391 # Same as above, but a single script fragment to be evaled but not shown.
15392 finish_eval=$lt_finish_eval
15394 # Take the output of nm and produce a listing of raw symbols and C names.
15395 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15397 # Transform the output of nm in a proper C declaration
15398 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15400 # Transform the output of nm in a C name address pair
15401 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15403 # This is the shared library runtime path variable.
15404 runpath_var=$runpath_var
15406 # This is the shared library path variable.
15407 shlibpath_var=$shlibpath_var
15409 # Is shlibpath searched before the hard-coded library search path?
15410 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15412 # How to hardcode a shared library path into an executable.
15413 hardcode_action=$hardcode_action_F77
15415 # Whether we should hardcode library paths into libraries.
15416 hardcode_into_libs=$hardcode_into_libs
15418 # Flag to hardcode \$libdir into a binary during linking.
15419 # This must work even if \$libdir does not exist.
15420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15422 # If ld is used when linking, flag to hardcode \$libdir into
15423 # a binary during linking. This must work even if \$libdir does
15425 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15427 # Whether we need a single -rpath flag with a separated argument.
15428 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15430 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15431 # resulting binary.
15432 hardcode_direct=$hardcode_direct_F77
15434 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15435 # resulting binary.
15436 hardcode_minus_L=$hardcode_minus_L_F77
15438 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15439 # the resulting binary.
15440 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15442 # Set to yes if building a shared library automatically hardcodes DIR into the library
15443 # and all subsequent libraries and executables linked against it.
15444 hardcode_automatic=$hardcode_automatic_F77
15446 # Variables whose values should be saved in libtool wrapper scripts and
15447 # restored at relink time.
15448 variables_saved_for_relink="$variables_saved_for_relink"
15450 # Whether libtool must link a program against all its dependency libraries.
15451 link_all_deplibs=$link_all_deplibs_F77
15453 # Compile-time system search path for libraries
15454 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15456 # Run-time system search path for libraries
15457 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15459 # Fix the shell variable \$srcfile for the compiler.
15460 fix_srcfile_path="$fix_srcfile_path_F77"
15462 # Set to yes if exported symbols are required.
15463 always_export_symbols=$always_export_symbols_F77
15465 # The commands to list exported symbols.
15466 export_symbols_cmds=$lt_export_symbols_cmds_F77
15468 # The commands to extract the exported symbol list from a shared archive.
15469 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15471 # Symbols that should not be listed in the preloaded symbols.
15472 exclude_expsyms=$lt_exclude_expsyms_F77
15474 # Symbols that must always be exported.
15475 include_expsyms=$lt_include_expsyms_F77
15477 # ### END LIBTOOL TAG CONFIG: $tagname
15483 # If there is no Makefile yet, we rely on a make rule to execute
15484 # `config.status --recheck' to rerun these tests and create the
15485 # libtool script then.
15486 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15487 if test -f "$ltmain_in"; then
15488 test -f Makefile && make "$ltmain"
15494 ac_cpp='$CPP $CPPFLAGS'
15495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15507 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15511 # Source file extension for Java test sources.
15514 # Object file extension for compiled Java test sources.
15518 # Code to be used in simple compile tests
15519 lt_simple_compile_test_code="class foo {}\n"
15521 # Code to be used in simple link tests
15522 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15524 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15526 # If no C compiler was specified, use CC.
15529 # If no C compiler flags were specified, use CFLAGS.
15530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15532 # Allow CC to be a program name with arguments.
15536 # save warnings/boilerplate of simple test code
15537 ac_outfile=conftest.$ac_objext
15538 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15539 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15540 _lt_compiler_boilerplate=`cat conftest.err`
15543 ac_outfile=conftest.$ac_objext
15544 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15545 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15546 _lt_linker_boilerplate=`cat conftest.err`
15550 # Allow CC to be a program name with arguments.
15555 for cc_temp in $compiler""; do
15557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15563 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15566 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15567 archive_cmds_need_lc_GCJ=no
15569 old_archive_cmds_GCJ=$old_archive_cmds
15572 lt_prog_compiler_no_builtin_flag_GCJ=
15574 if test "$GCC" = yes; then
15575 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15578 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15579 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15580 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 lt_cv_prog_compiler_rtti_exceptions=no
15584 ac_outfile=conftest.$ac_objext
15585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15586 lt_compiler_flag="-fno-rtti -fno-exceptions"
15587 # Insert the option either (1) after the last *FLAGS variable, or
15588 # (2) before a word containing "conftest.", or (3) at the end.
15589 # Note that $ac_compile itself does not contain backslashes and begins
15590 # with a dollar sign (not a hyphen), so the echo should work correctly.
15591 # The option is referenced via a variable to avoid confusing sed.
15592 lt_compile=`echo "$ac_compile" | $SED \
15593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15595 -e 's:$: $lt_compiler_flag:'`
15596 (eval echo "\"\$as_me:15596: $lt_compile\"" >&5)
15597 (eval "$lt_compile" 2>conftest.err)
15599 cat conftest.err >&5
15600 echo "$as_me:15600: \$? = $ac_status" >&5
15601 if (exit $ac_status) && test -s "$ac_outfile"; then
15602 # The compiler can only warn and ignore the option if not recognized
15603 # So say no if there are warnings other than the usual output.
15604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15607 lt_cv_prog_compiler_rtti_exceptions=yes
15613 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15614 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15616 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15617 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15624 lt_prog_compiler_wl_GCJ=
15625 lt_prog_compiler_pic_GCJ=
15626 lt_prog_compiler_static_GCJ=
15628 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15629 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15631 if test "$GCC" = yes; then
15632 lt_prog_compiler_wl_GCJ='-Wl,'
15633 lt_prog_compiler_static_GCJ='-static'
15637 # All AIX code is PIC.
15638 if test "$host_cpu" = ia64; then
15639 # AIX 5 now supports IA64 processor
15640 lt_prog_compiler_static_GCJ='-Bstatic'
15645 # FIXME: we need at least 68020 code to build shared libraries, but
15646 # adding the `-m68020' flag to GCC prevents building anything better,
15648 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15651 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15652 # PIC is the default for these OSes.
15655 mingw* | pw32* | os2*)
15656 # This hack is so that the source file can tell whether it is being
15657 # built for inclusion in a dll (and should export symbols for example).
15658 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15661 darwin* | rhapsody*)
15662 # PIC is the default on this platform
15663 # Common symbols not allowed in MH_DYLIB files
15664 lt_prog_compiler_pic_GCJ='-fno-common'
15668 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15669 # Instead, we relocate shared libraries at runtime.
15673 # Just because we use GCC doesn't mean we suddenly get shared libraries
15674 # on systems that don't support them.
15675 lt_prog_compiler_can_build_shared_GCJ=no
15680 if test -d /usr/nec; then
15681 lt_prog_compiler_pic_GCJ=-Kconform_pic
15686 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15687 # not for PA HP-UX.
15693 lt_prog_compiler_pic_GCJ='-fPIC'
15699 lt_prog_compiler_pic_GCJ='-fPIC'
15703 # PORTME Check for flag to pass linker flags through the system compiler.
15706 lt_prog_compiler_wl_GCJ='-Wl,'
15707 if test "$host_cpu" = ia64; then
15708 # AIX 5 now supports IA64 processor
15709 lt_prog_compiler_static_GCJ='-Bstatic'
15711 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15715 # PIC is the default on this platform
15716 # Common symbols not allowed in MH_DYLIB files
15717 case $cc_basename in
15719 lt_prog_compiler_pic_GCJ='-qnocommon'
15720 lt_prog_compiler_wl_GCJ='-Wl,'
15725 mingw* | pw32* | os2*)
15726 # This hack is so that the source file can tell whether it is being
15727 # built for inclusion in a dll (and should export symbols for example).
15728 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15731 hpux9* | hpux10* | hpux11*)
15732 lt_prog_compiler_wl_GCJ='-Wl,'
15733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15734 # not for PA HP-UX.
15740 lt_prog_compiler_pic_GCJ='+Z'
15743 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15744 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15747 irix5* | irix6* | nonstopux*)
15748 lt_prog_compiler_wl_GCJ='-Wl,'
15749 # PIC (with -KPIC) is the default.
15750 lt_prog_compiler_static_GCJ='-non_shared'
15754 lt_prog_compiler_pic_GCJ='-KPIC'
15755 lt_prog_compiler_static_GCJ='-Bstatic'
15759 case $cc_basename in
15761 lt_prog_compiler_wl_GCJ='-Wl,'
15762 lt_prog_compiler_pic_GCJ='-KPIC'
15763 lt_prog_compiler_static_GCJ='-static'
15765 pgcc* | pgf77* | pgf90* | pgf95*)
15766 # Portland Group compilers (*not* the Pentium gcc compiler,
15767 # which looks to be a dead project)
15768 lt_prog_compiler_wl_GCJ='-Wl,'
15769 lt_prog_compiler_pic_GCJ='-fpic'
15770 lt_prog_compiler_static_GCJ='-Bstatic'
15773 lt_prog_compiler_wl_GCJ='-Wl,'
15774 # All Alpha code is PIC.
15775 lt_prog_compiler_static_GCJ='-non_shared'
15780 osf3* | osf4* | osf5*)
15781 lt_prog_compiler_wl_GCJ='-Wl,'
15782 # All OSF/1 code is PIC.
15783 lt_prog_compiler_static_GCJ='-non_shared'
15787 lt_prog_compiler_pic_GCJ='-KPIC'
15788 lt_prog_compiler_static_GCJ='-Bstatic'
15789 case $cc_basename in
15790 f77* | f90* | f95*)
15791 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15793 lt_prog_compiler_wl_GCJ='-Wl,';;
15798 lt_prog_compiler_wl_GCJ='-Qoption ld '
15799 lt_prog_compiler_pic_GCJ='-PIC'
15800 lt_prog_compiler_static_GCJ='-Bstatic'
15803 sysv4 | sysv4.2uw2* | sysv4.3*)
15804 lt_prog_compiler_wl_GCJ='-Wl,'
15805 lt_prog_compiler_pic_GCJ='-KPIC'
15806 lt_prog_compiler_static_GCJ='-Bstatic'
15810 if test -d /usr/nec ;then
15811 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15812 lt_prog_compiler_static_GCJ='-Bstatic'
15816 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15817 lt_prog_compiler_wl_GCJ='-Wl,'
15818 lt_prog_compiler_pic_GCJ='-KPIC'
15819 lt_prog_compiler_static_GCJ='-Bstatic'
15823 lt_prog_compiler_wl_GCJ='-Wl,'
15824 lt_prog_compiler_can_build_shared_GCJ=no
15828 lt_prog_compiler_pic_GCJ='-pic'
15829 lt_prog_compiler_static_GCJ='-Bstatic'
15833 lt_prog_compiler_can_build_shared_GCJ=no
15838 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15839 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15842 # Check to make sure the PIC flag actually works.
15844 if test -n "$lt_prog_compiler_pic_GCJ"; then
15846 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15847 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15848 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 lt_prog_compiler_pic_works_GCJ=no
15852 ac_outfile=conftest.$ac_objext
15853 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15854 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15855 # Insert the option either (1) after the last *FLAGS variable, or
15856 # (2) before a word containing "conftest.", or (3) at the end.
15857 # Note that $ac_compile itself does not contain backslashes and begins
15858 # with a dollar sign (not a hyphen), so the echo should work correctly.
15859 # The option is referenced via a variable to avoid confusing sed.
15860 lt_compile=`echo "$ac_compile" | $SED \
15861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15863 -e 's:$: $lt_compiler_flag:'`
15864 (eval echo "\"\$as_me:15864: $lt_compile\"" >&5)
15865 (eval "$lt_compile" 2>conftest.err)
15867 cat conftest.err >&5
15868 echo "$as_me:15868: \$? = $ac_status" >&5
15869 if (exit $ac_status) && test -s "$ac_outfile"; then
15870 # The compiler can only warn and ignore the option if not recognized
15871 # So say no if there are warnings other than the usual output.
15872 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15875 lt_prog_compiler_pic_works_GCJ=yes
15881 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15882 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15884 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15885 case $lt_prog_compiler_pic_GCJ in
15887 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15890 lt_prog_compiler_pic_GCJ=
15891 lt_prog_compiler_can_build_shared_GCJ=no
15896 # For platforms which do not support PIC, -DPIC is meaningless:
15898 lt_prog_compiler_pic_GCJ=
15901 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15906 # Check to make sure the static flag actually works.
15908 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15909 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15910 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15911 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15914 lt_prog_compiler_static_works_GCJ=no
15915 save_LDFLAGS="$LDFLAGS"
15916 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15917 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15918 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15919 # The linker can only warn and ignore the option if not recognized
15920 # So say no if there are warnings
15921 if test -s conftest.err; then
15922 # Append any errors to the config.log.
15923 cat conftest.err 1>&5
15924 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15926 if diff conftest.exp conftest.er2 >/dev/null; then
15927 lt_prog_compiler_static_works_GCJ=yes
15930 lt_prog_compiler_static_works_GCJ=yes
15934 LDFLAGS="$save_LDFLAGS"
15937 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15938 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15940 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15943 lt_prog_compiler_static_GCJ=
15947 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15948 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15949 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 lt_cv_prog_compiler_c_o_GCJ=no
15953 $rm -r conftest 2>/dev/null
15957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15959 lt_compiler_flag="-o out/conftest2.$ac_objext"
15960 # Insert the option either (1) after the last *FLAGS variable, or
15961 # (2) before a word containing "conftest.", or (3) at the end.
15962 # Note that $ac_compile itself does not contain backslashes and begins
15963 # with a dollar sign (not a hyphen), so the echo should work correctly.
15964 lt_compile=`echo "$ac_compile" | $SED \
15965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15967 -e 's:$: $lt_compiler_flag:'`
15968 (eval echo "\"\$as_me:15968: $lt_compile\"" >&5)
15969 (eval "$lt_compile" 2>out/conftest.err)
15971 cat out/conftest.err >&5
15972 echo "$as_me:15972: \$? = $ac_status" >&5
15973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15975 # The compiler can only warn and ignore the option if not recognized
15976 # So say no if there are warnings
15977 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15980 lt_cv_prog_compiler_c_o_GCJ=yes
15985 # SGI C++ compiler will create directory out/ii_files/ for
15986 # template instantiation
15987 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15988 $rm out/* && rmdir out
15994 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15995 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15998 hard_links="nottested"
15999 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16000 # do not overwrite the value of need_locks provided by the user
16001 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16002 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16007 ln conftest.a conftest.b 2>&5 || hard_links=no
16008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16009 echo "$as_me:$LINENO: result: $hard_links" >&5
16010 echo "${ECHO_T}$hard_links" >&6
16011 if test "$hard_links" = no; then
16012 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16013 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16020 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16021 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16024 allow_undefined_flag_GCJ=
16025 enable_shared_with_static_runtimes_GCJ=no
16027 archive_expsym_cmds_GCJ=
16028 old_archive_From_new_cmds_GCJ=
16029 old_archive_from_expsyms_cmds_GCJ=
16030 export_dynamic_flag_spec_GCJ=
16031 whole_archive_flag_spec_GCJ=
16032 thread_safe_flag_spec_GCJ=
16033 hardcode_libdir_flag_spec_GCJ=
16034 hardcode_libdir_flag_spec_ld_GCJ=
16035 hardcode_libdir_separator_GCJ=
16036 hardcode_direct_GCJ=no
16037 hardcode_minus_L_GCJ=no
16038 hardcode_shlibpath_var_GCJ=unsupported
16039 link_all_deplibs_GCJ=unknown
16040 hardcode_automatic_GCJ=no
16042 module_expsym_cmds_GCJ=
16043 always_export_symbols_GCJ=no
16044 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16045 # include_expsyms should be a list of space-separated symbols to be *always*
16046 # included in the symbol list
16047 include_expsyms_GCJ=
16048 # exclude_expsyms can be an extended regexp of symbols to exclude
16049 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16050 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16051 # as well as any symbol that contains `d'.
16052 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16053 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16054 # platforms (ab)use it in PIC code, but their linkers get confused if
16055 # the symbol is explicitly referenced. Since portable code cannot
16056 # rely on this symbol name, it's probably fine to never include it in
16057 # preloaded symbol tables.
16058 extract_expsyms_cmds=
16059 # Just being paranoid about ensuring that cc_basename is set.
16060 for cc_temp in $compiler""; do
16062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16068 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16071 cygwin* | mingw* | pw32*)
16072 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16073 # When not using gcc, we currently assume that we are using
16074 # Microsoft Visual C++.
16075 if test "$GCC" != yes; then
16080 # we just hope/assume this is gcc and not c89 (= MSVC++)
16089 if test "$with_gnu_ld" = yes; then
16090 # If archive_cmds runs LD, not CC, wlarc should be empty
16093 # Set some defaults for GNU ld with shared library support. These
16094 # are reset later if shared libraries are not supported. Putting them
16095 # here allows them to be overridden if necessary.
16096 runpath_var=LD_RUN_PATH
16097 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16098 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16099 # ancient GNU ld didn't support --whole-archive et. al.
16100 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16101 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16103 whole_archive_flag_spec_GCJ=
16105 supports_anon_versioning=no
16106 case `$LD -v 2>/dev/null` in
16107 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16108 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16109 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16110 *\ 2.11.*) ;; # other 2.11 versions
16111 *) supports_anon_versioning=yes ;;
16114 # See if GNU ld supports shared libraries.
16116 aix3* | aix4* | aix5*)
16117 # On AIX/PPC, the GNU linker is very broken
16118 if test "$host_cpu" != ia64; then
16122 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16123 *** to be unable to reliably create shared libraries on AIX.
16124 *** Therefore, libtool is disabling shared libraries support. If you
16125 *** really care for shared libraries, you may want to modify your PATH
16126 *** so that a non-GNU linker is found, and then restart.
16133 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)'
16134 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16135 hardcode_minus_L_GCJ=yes
16137 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16138 # that the semantics of dynamic libraries on AmigaOS, at least up
16139 # to version 4, is to share data among multiple programs linked
16140 # with the same dynamic library. Since this doesn't match the
16141 # behavior of shared libraries on other platforms, we can't use
16147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16148 allow_undefined_flag_GCJ=unsupported
16149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16150 # support --undefined. This deserves some investigation. FIXME
16151 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16157 cygwin* | mingw* | pw32*)
16158 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16159 # as there is no search path for DLLs.
16160 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16161 allow_undefined_flag_GCJ=unsupported
16162 always_export_symbols_GCJ=no
16163 enable_shared_with_static_runtimes_GCJ=yes
16164 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16166 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16167 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16168 # If the export-symbols file already is a .def file (1st line
16169 # is EXPORTS), use it as is; otherwise, prepend...
16170 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16171 cp $export_symbols $output_objdir/$soname.def;
16173 echo EXPORTS > $output_objdir/$soname.def;
16174 cat $export_symbols >> $output_objdir/$soname.def;
16176 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16183 hardcode_direct_GCJ=no
16184 hardcode_shlibpath_var_GCJ=no
16185 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16186 export_dynamic_flag_spec_GCJ='${wl}-E'
16187 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16188 # Instead, shared libraries are loaded at an image base (0x10000000 by
16189 # default) and relocated if they conflict, which is a slow very memory
16190 # consuming and fragmenting process. To avoid this, we pick a random,
16191 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16192 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16193 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'
16194 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'
16198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16200 case $cc_basename,$host_cpu in
16201 pgcc*) # Portland Group C compiler
16202 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'
16203 tmp_addflag=' $pic_flag'
16205 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16206 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'
16207 tmp_addflag=' $pic_flag -Mnomain' ;;
16208 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16209 tmp_addflag=' -i_dynamic' ;;
16210 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16211 tmp_addflag=' -i_dynamic -nofor_main' ;;
16212 ifc* | ifort*) # Intel Fortran compiler
16213 tmp_addflag=' -nofor_main' ;;
16215 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16217 if test $supports_anon_versioning = yes; then
16218 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16220 $echo "local: *; };" >> $output_objdir/$libname.ver~
16221 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16229 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16230 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16233 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16234 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16239 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16243 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16244 *** create shared libraries on Solaris systems. Therefore, libtool
16245 *** is disabling shared libraries support. We urge you to upgrade GNU
16246 *** binutils to release 2.9.1 or newer. Another option is to modify
16247 *** your PATH or compiler configuration so that the native linker is
16248 *** used, and then restart.
16251 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16252 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16253 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16260 case `$LD -v 2>&1` in
16261 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16265 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16266 *** reliably create shared libraries on SCO systems. Therefore, libtool
16267 *** is disabling shared libraries support. We urge you to upgrade GNU
16268 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16269 *** your PATH or compiler configuration so that the native linker is
16270 *** used, and then restart.
16275 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16276 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16277 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16278 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16287 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16289 hardcode_direct_GCJ=yes
16290 hardcode_shlibpath_var_GCJ=no
16294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16295 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16296 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16303 if test "$ld_shlibs_GCJ" = no; then
16305 hardcode_libdir_flag_spec_GCJ=
16306 export_dynamic_flag_spec_GCJ=
16307 whole_archive_flag_spec_GCJ=
16310 # PORTME fill in a description of your system's linker (not GNU ld)
16313 allow_undefined_flag_GCJ=unsupported
16314 always_export_symbols_GCJ=yes
16315 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'
16316 # Note: this linker hardcodes the directories in LIBPATH if there
16317 # are no directories specified by -L.
16318 hardcode_minus_L_GCJ=yes
16319 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16320 # Neither direct hardcoding nor static linking is supported with a
16322 hardcode_direct_GCJ=unsupported
16327 if test "$host_cpu" = ia64; then
16328 # On IA64, the linker does run time linking by default, so we don't
16329 # have to do anything special.
16330 aix_use_runtimelinking=no
16331 exp_sym_flag='-Bexport'
16334 # If we're using GNU nm, then we don't want the "-C" option.
16335 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16336 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16337 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'
16339 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'
16341 aix_use_runtimelinking=no
16343 # Test if we are trying to use run time linking or normal
16344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16345 # need to do runtime linking.
16346 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16347 for ld_flag in $LDFLAGS; do
16348 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16349 aix_use_runtimelinking=yes
16356 exp_sym_flag='-bexport'
16357 no_entry_flag='-bnoentry'
16360 # When large executables or shared objects are built, AIX ld can
16361 # have problems creating the table of contents. If linking a library
16362 # or program results in "error TOC overflow" add -mminimal-toc to
16363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16366 archive_cmds_GCJ=''
16367 hardcode_direct_GCJ=yes
16368 hardcode_libdir_separator_GCJ=':'
16369 link_all_deplibs_GCJ=yes
16371 if test "$GCC" = yes; then
16372 case $host_os in aix4.[012]|aix4.[012].*)
16373 # We only want to do this on AIX 4.2 and lower, the check
16374 # below for broken collect2 doesn't work under 4.3+
16375 collect2name=`${CC} -print-prog-name=collect2`
16376 if test -f "$collect2name" && \
16377 strings "$collect2name" | grep resolve_lib_name >/dev/null
16379 # We have reworked collect2
16380 hardcode_direct_GCJ=yes
16382 # We have old collect2
16383 hardcode_direct_GCJ=unsupported
16384 # It fails to find uninstalled libraries when the uninstalled
16385 # path is not listed in the libpath. Setting hardcode_minus_L
16386 # to unsupported forces relinking
16387 hardcode_minus_L_GCJ=yes
16388 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16389 hardcode_libdir_separator_GCJ=
16393 shared_flag='-shared'
16394 if test "$aix_use_runtimelinking" = yes; then
16395 shared_flag="$shared_flag "'${wl}-G'
16399 if test "$host_cpu" = ia64; then
16400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16401 # chokes on -Wl,-G. The following line is correct:
16404 if test "$aix_use_runtimelinking" = yes; then
16405 shared_flag='${wl}-G'
16407 shared_flag='${wl}-bM:SRE'
16412 # It seems that -bexpall does not export symbols beginning with
16413 # underscore (_), so it is better to generate a list of symbols to export.
16414 always_export_symbols_GCJ=yes
16415 if test "$aix_use_runtimelinking" = yes; then
16416 # Warning - without using the other runtime loading flags (-brtl),
16417 # -berok will link without error, but may produce a broken library.
16418 allow_undefined_flag_GCJ='-berok'
16419 # Determine the default libpath from the value encoded in an empty executable.
16420 cat >conftest.$ac_ext <<_ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16437 (eval $ac_link) 2>conftest.er1
16439 grep -v '^ *+' conftest.er1 >conftest.err
16441 cat conftest.err >&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
16444 { ac_try='test -z "$ac_c_werror_flag"
16445 || test ! -s conftest.err'
16446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; } &&
16451 { ac_try='test -s conftest$ac_exeext'
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16460 # Check for a 64-bit object if we didn't find anything.
16461 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; }
16464 echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16468 rm -f conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16470 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16472 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16473 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"
16475 if test "$host_cpu" = ia64; then
16476 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16477 allow_undefined_flag_GCJ="-z nodefs"
16478 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"
16480 # Determine the default libpath from the value encoded in an empty executable.
16481 cat >conftest.$ac_ext <<_ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16498 (eval $ac_link) 2>conftest.er1
16500 grep -v '^ *+' conftest.er1 >conftest.err
16502 cat conftest.err >&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -z "$ac_c_werror_flag"
16506 || test ! -s conftest.err'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; } &&
16512 { ac_try='test -s conftest$ac_exeext'
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16521 # Check for a 64-bit object if we didn't find anything.
16522 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; }
16525 echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16529 rm -f conftest.err conftest.$ac_objext \
16530 conftest$ac_exeext conftest.$ac_ext
16531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16533 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16534 # Warning - without using the other run time loading flags,
16535 # -berok will link without error, but may produce a broken library.
16536 no_undefined_flag_GCJ=' ${wl}-bernotok'
16537 allow_undefined_flag_GCJ=' ${wl}-berok'
16538 # Exported symbols can be pulled into shared objects from archives
16539 whole_archive_flag_spec_GCJ='$convenience'
16540 archive_cmds_need_lc_GCJ=yes
16541 # This is similar to how AIX traditionally builds its shared libraries.
16542 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'
16548 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)'
16549 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16550 hardcode_minus_L_GCJ=yes
16551 # see comment about different semantics on the GNU ld section
16556 export_dynamic_flag_spec_GCJ=-rdynamic
16559 cygwin* | mingw* | pw32*)
16560 # When not using gcc, we currently assume that we are using
16561 # Microsoft Visual C++.
16562 # hardcode_libdir_flag_spec is actually meaningless, as there is
16563 # no search path for DLLs.
16564 hardcode_libdir_flag_spec_GCJ=' '
16565 allow_undefined_flag_GCJ=unsupported
16566 # Tell ltmain to make .lib files, not .a files.
16568 # Tell ltmain to make .dll files, not .so files.
16570 # FIXME: Setting linknames here is a bad hack.
16571 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16572 # The linker will automatically build a .lib file if we build a DLL.
16573 old_archive_From_new_cmds_GCJ='true'
16574 # FIXME: Should let the user specify the lib program.
16575 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16576 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16577 enable_shared_with_static_runtimes_GCJ=yes
16580 darwin* | rhapsody*)
16582 rhapsody* | darwin1.[012])
16583 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16586 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16587 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16589 case ${MACOSX_DEPLOYMENT_TARGET} in
16591 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16594 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16600 archive_cmds_need_lc_GCJ=no
16601 hardcode_direct_GCJ=no
16602 hardcode_automatic_GCJ=yes
16603 hardcode_shlibpath_var_GCJ=unsupported
16604 whole_archive_flag_spec_GCJ=''
16605 link_all_deplibs_GCJ=yes
16606 if test "$GCC" = yes ; then
16607 output_verbose_link_cmd='echo'
16608 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16609 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16610 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16611 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}'
16612 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}'
16614 case $cc_basename in
16616 output_verbose_link_cmd='echo'
16617 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16618 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16619 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16620 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}'
16621 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}'
16631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16632 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16633 hardcode_shlibpath_var_GCJ=no
16640 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16641 # support. Future versions do this automatically, but an explicit c++rt0.o
16642 # does not break anything, and helps significantly (at the cost of a little
16645 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16646 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16647 hardcode_direct_GCJ=yes
16648 hardcode_shlibpath_var_GCJ=no
16651 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16653 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_direct_GCJ=yes
16655 hardcode_minus_L_GCJ=yes
16656 hardcode_shlibpath_var_GCJ=no
16659 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16660 freebsd* | kfreebsd*-gnu | dragonfly*)
16661 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16662 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16663 hardcode_direct_GCJ=yes
16664 hardcode_shlibpath_var_GCJ=no
16668 if test "$GCC" = yes; then
16669 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'
16671 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'
16673 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16674 hardcode_libdir_separator_GCJ=:
16675 hardcode_direct_GCJ=yes
16677 # hardcode_minus_L: Not really in the search PATH,
16678 # but as the default location of the library.
16679 hardcode_minus_L_GCJ=yes
16680 export_dynamic_flag_spec_GCJ='${wl}-E'
16684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16685 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16687 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16689 if test "$with_gnu_ld" = no; then
16690 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16691 hardcode_libdir_separator_GCJ=:
16693 hardcode_direct_GCJ=yes
16694 export_dynamic_flag_spec_GCJ='${wl}-E'
16696 # hardcode_minus_L: Not really in the search PATH,
16697 # but as the default location of the library.
16698 hardcode_minus_L_GCJ=yes
16703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16706 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16709 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16712 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16718 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16724 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16728 if test "$with_gnu_ld" = no; then
16729 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16730 hardcode_libdir_separator_GCJ=:
16734 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16735 hardcode_direct_GCJ=no
16736 hardcode_shlibpath_var_GCJ=no
16739 hardcode_direct_GCJ=yes
16740 export_dynamic_flag_spec_GCJ='${wl}-E'
16742 # hardcode_minus_L: Not really in the search PATH,
16743 # but as the default location of the library.
16744 hardcode_minus_L_GCJ=yes
16750 irix5* | irix6* | nonstopux*)
16751 if test "$GCC" = yes; then
16752 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'
16754 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'
16755 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16757 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16758 hardcode_libdir_separator_GCJ=:
16759 link_all_deplibs_GCJ=yes
16763 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16764 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16766 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16768 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16769 hardcode_direct_GCJ=yes
16770 hardcode_shlibpath_var_GCJ=no
16774 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16775 hardcode_direct_GCJ=yes
16776 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16777 hardcode_libdir_separator_GCJ=:
16778 hardcode_shlibpath_var_GCJ=no
16782 hardcode_direct_GCJ=yes
16783 hardcode_shlibpath_var_GCJ=no
16784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16785 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16786 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16787 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16788 export_dynamic_flag_spec_GCJ='${wl}-E'
16791 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16792 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16793 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16796 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16797 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16804 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16805 hardcode_minus_L_GCJ=yes
16806 allow_undefined_flag_GCJ=unsupported
16807 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'
16808 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16812 if test "$GCC" = yes; then
16813 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16814 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'
16816 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16817 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'
16819 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16820 hardcode_libdir_separator_GCJ=:
16823 osf4* | osf5*) # as osf3* with the addition of -msym flag
16824 if test "$GCC" = yes; then
16825 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16826 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'
16827 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16829 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16830 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'
16831 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~
16832 $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'
16834 # Both c and cxx compiler support -rpath directly
16835 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16837 hardcode_libdir_separator_GCJ=:
16841 no_undefined_flag_GCJ=' -z text'
16842 if test "$GCC" = yes; then
16844 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16845 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16846 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16849 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16850 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16853 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16854 hardcode_shlibpath_var_GCJ=no
16856 solaris2.[0-5] | solaris2.[0-5].*) ;;
16858 # The compiler driver will combine linker options so we
16859 # cannot just pass the convience library names through
16860 # without $wl, iff we do not link with $LD.
16861 # Luckily, gcc supports the same syntax we need for Sun Studio.
16862 # Supported since Solaris 2.6 (maybe 2.5.1?)
16865 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16867 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' ;;
16870 link_all_deplibs_GCJ=yes
16874 if test "x$host_vendor" = xsequent; then
16875 # Use $CC to link under sequent, because it throws in some extra .o
16876 # files that make .init and .fini sections work.
16877 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16879 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16881 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882 hardcode_direct_GCJ=yes
16883 hardcode_minus_L_GCJ=yes
16884 hardcode_shlibpath_var_GCJ=no
16888 case $host_vendor in
16890 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891 hardcode_direct_GCJ=yes # is this really true???
16894 ## LD is ld it makes a PLAMLIB
16895 ## CC just makes a GrossModule.
16896 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16897 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16898 hardcode_direct_GCJ=no
16901 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16902 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16905 runpath_var='LD_RUN_PATH'
16906 hardcode_shlibpath_var_GCJ=no
16910 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911 hardcode_shlibpath_var_GCJ=no
16912 export_dynamic_flag_spec_GCJ='-Bexport'
16916 if test -d /usr/nec; then
16917 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16918 hardcode_shlibpath_var_GCJ=no
16919 runpath_var=LD_RUN_PATH
16920 hardcode_runpath_var=yes
16925 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16926 no_undefined_flag_GCJ='${wl}-z,text'
16927 archive_cmds_need_lc_GCJ=no
16928 hardcode_shlibpath_var_GCJ=no
16929 runpath_var='LD_RUN_PATH'
16931 if test "$GCC" = yes; then
16932 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16933 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16935 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16936 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16940 sysv5* | sco3.2v5* | sco5v6*)
16941 # Note: We can NOT use -z defs as we might desire, because we do not
16942 # link with -lc, and that would cause any symbols used from libc to
16943 # always be unresolved, which means just about no library would
16944 # ever link correctly. If we're not using GNU ld we use -z text
16945 # though, which does catch some bad symbols but isn't as heavy-handed
16947 no_undefined_flag_GCJ='${wl}-z,text'
16948 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16949 archive_cmds_need_lc_GCJ=no
16950 hardcode_shlibpath_var_GCJ=no
16951 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16952 hardcode_libdir_separator_GCJ=':'
16953 link_all_deplibs_GCJ=yes
16954 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16955 runpath_var='LD_RUN_PATH'
16957 if test "$GCC" = yes; then
16958 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16959 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16961 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16962 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16967 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16968 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16969 hardcode_shlibpath_var_GCJ=no
16978 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16979 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16980 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16983 # Do we need to explicitly link libc?
16985 case "x$archive_cmds_need_lc_GCJ" in
16987 # Assume -lc should be added
16988 archive_cmds_need_lc_GCJ=yes
16990 if test "$enable_shared" = yes && test "$GCC" = yes; then
16991 case $archive_cmds_GCJ in
16993 # FIXME: we may have to deal with multi-command sequences.
16996 # Test whether the compiler implicitly links with -lc since on some
16997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16998 # to ld, don't add -lc before -lgcc.
16999 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17000 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17005 (eval $ac_compile) 2>&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); } 2>conftest.err; then
17011 libobjs=conftest.$ac_objext
17013 wl=$lt_prog_compiler_wl_GCJ
17014 pic_flag=$lt_prog_compiler_pic_GCJ
17020 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17021 allow_undefined_flag_GCJ=
17022 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17023 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }
17028 archive_cmds_need_lc_GCJ=no
17030 archive_cmds_need_lc_GCJ=yes
17032 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17034 cat conftest.err 1>&5
17037 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17038 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17045 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17046 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17047 library_names_spec=
17048 libname_spec='lib$name'
17052 postuninstall_cmds=
17056 shlibpath_overrides_runpath=unknown
17058 dynamic_linker="$host_os ld.so"
17059 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17060 if test "$GCC" = yes; then
17061 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17062 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17063 # if the path contains ";" then we assume it to be the separator
17064 # otherwise default to the standard path separator (i.e. ":") - it is
17065 # assumed that no part of a normal pathname contains ";" but that should
17066 # okay in the real world where ";" in dirpaths is itself problematic.
17067 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17074 need_lib_prefix=unknown
17075 hardcode_into_libs=no
17077 # when you set need_version to no, make sure it does not cause -set_version
17078 # flags to be left without arguments
17079 need_version=unknown
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17085 shlibpath_var=LIBPATH
17087 # AIX 3 has no versioning support, so we append a major version to the name.
17088 soname_spec='${libname}${release}${shared_ext}$major'
17095 hardcode_into_libs=yes
17096 if test "$host_cpu" = ia64; then
17097 # AIX 5 supports IA64
17098 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17099 shlibpath_var=LD_LIBRARY_PATH
17101 # With GCC up to 2.95.x, collect2 would create an import file
17102 # for dependence libraries. The import file would start with
17103 # the line `#! .'. This would cause the generated library to
17104 # depend on `.', always an invalid library. This was fixed in
17105 # development snapshots of GCC prior to 3.0.
17107 aix4 | aix4.[01] | aix4.[01].*)
17108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17110 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17113 can_build_shared=no
17117 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17118 # soname into executable. Probably we can add versioning support to
17119 # collect2, so additional links can be useful in future.
17120 if test "$aix_use_runtimelinking" = yes; then
17121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17122 # instead of lib<name>.a to let people know that these are not
17123 # typical AIX shared libraries.
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126 # We preserve .a as extension for shared libraries through AIX4.2
17127 # and later when we are not doing run time linking.
17128 library_names_spec='${libname}${release}.a $libname.a'
17129 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LIBPATH
17136 library_names_spec='$libname.ixlibrary $libname.a'
17137 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17138 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'
17142 library_names_spec='${libname}${shared_ext}'
17143 dynamic_linker="$host_os ld.so"
17144 shlibpath_var=LIBRARY_PATH
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17153 shlibpath_var=LD_LIBRARY_PATH
17154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17156 # the default ld.so.conf also contains /usr/contrib/lib and
17157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17158 # libtool to hard-code these into programs
17161 cygwin* | mingw* | pw32*)
17162 version_type=windows
17167 case $GCC,$host_os in
17168 yes,cygwin* | yes,mingw* | yes,pw32*)
17169 library_names_spec='$libname.dll.a'
17170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17171 postinstall_cmds='base_file=`basename \${file}`~
17172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17173 dldir=$destdir/`dirname \$dlpath`~
17174 test -d \$dldir || mkdir -p \$dldir~
17175 $install_prog $dir/$dlname \$dldir/$dlname~
17176 chmod a+x \$dldir/$dlname'
17177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17178 dlpath=$dir/\$dldll~
17180 shlibpath_overrides_runpath=yes
17184 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17185 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17186 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17189 # MinGW DLLs use traditional 'lib' prefix
17190 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17191 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17192 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17193 # It is most probably a Windows format PATH printed by
17194 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17195 # path with ; separators, and with drive letters. We can handle the
17196 # drive letters (cygwin fileutils understands them), so leave them,
17197 # especially as we might pass files found there to a mingw objdump,
17198 # which wouldn't understand a cygwinified path. Ahh.
17199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17205 # pw32 DLLs use 'pw' prefix rather than 'lib'
17206 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17215 dynamic_linker='Win32 ld.exe'
17216 # FIXME: first we should search . and the directory the executable is in
17220 darwin* | rhapsody*)
17221 dynamic_linker="$host_os dyld"
17222 version_type=darwin
17225 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17226 soname_spec='${libname}${release}${major}$shared_ext'
17227 shlibpath_overrides_runpath=yes
17228 shlibpath_var=DYLD_LIBRARY_PATH
17229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17230 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17231 if test "$GCC" = yes; then
17232 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"`
17234 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17244 soname_spec='${libname}${release}${shared_ext}$major'
17245 shlibpath_var=LD_LIBRARY_PATH
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 shlibpath_overrides_runpath=no
17260 hardcode_into_libs=yes
17261 dynamic_linker='GNU ld.so'
17264 freebsd* | dragonfly*)
17265 # DragonFly does not have aout. When/if they implement a new
17266 # versioning mechanism, adjust this.
17267 if test -x /usr/bin/objformat; then
17268 objformat=`/usr/bin/objformat`
17271 freebsd[123]*) objformat=aout ;;
17272 *) objformat=elf ;;
17275 version_type=freebsd-$objformat
17276 case $version_type in
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17287 shlibpath_var=LD_LIBRARY_PATH
17290 shlibpath_overrides_runpath=yes
17292 freebsd3.[01]* | freebsdelf3.[01]*)
17293 shlibpath_overrides_runpath=yes
17294 hardcode_into_libs=yes
17296 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17297 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17298 shlibpath_overrides_runpath=no
17299 hardcode_into_libs=yes
17301 freebsd*) # from 4.6 on
17302 shlibpath_overrides_runpath=yes
17303 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
17315 hardcode_into_libs=yes
17318 hpux9* | hpux10* | hpux11*)
17319 # Give a soname corresponding to the major version so that dld.sl refuses to
17320 # link against other versions.
17327 hardcode_into_libs=yes
17328 dynamic_linker="$host_os dld.so"
17329 shlibpath_var=LD_LIBRARY_PATH
17330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 if test "X$HPUX_IA64_MODE" = X32; then
17334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17342 hardcode_into_libs=yes
17343 dynamic_linker="$host_os dld.sl"
17344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17347 soname_spec='${libname}${release}${shared_ext}$major'
17348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17353 dynamic_linker="$host_os dld.sl"
17354 shlibpath_var=SHLIB_PATH
17355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17360 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17361 postinstall_cmds='chmod 555 $lib'
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17369 soname_spec='${libname}${release}${shared_ext}$major'
17370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17371 shlibpath_var=LD_LIBRARY_PATH
17372 shlibpath_overrides_runpath=no
17373 hardcode_into_libs=yes
17376 irix5* | irix6* | nonstopux*)
17378 nonstopux*) version_type=nonstopux ;;
17380 if test "$lt_cv_prog_gnu_ld" = yes; then
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17391 irix5* | nonstopux*)
17392 libsuff= shlibsuff=
17395 case $LD in # libtool.m4 will add one of these switches to LD
17396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17397 libsuff= shlibsuff= libmagic=32-bit;;
17398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17399 libsuff=32 shlibsuff=N32 libmagic=N32;;
17400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17401 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17402 *) libsuff= shlibsuff= libmagic=never-match;;
17406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17407 shlibpath_overrides_runpath=no
17408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17410 hardcode_into_libs=yes
17413 # No shared lib support for Linux oldld, aout, or coff.
17414 linux*oldld* | linux*aout* | linux*coff*)
17418 # This must be Linux ELF.
17423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17424 soname_spec='${libname}${release}${shared_ext}$major'
17425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17426 shlibpath_var=LD_LIBRARY_PATH
17427 shlibpath_overrides_runpath=no
17428 # This implies no fast_install, which is unacceptable.
17429 # Some rework will be needed to allow for fast_install
17430 # before this can be enabled.
17431 hardcode_into_libs=yes
17433 # find out which ABI we are using
17435 case "$host_cpu" in
17436 x86_64*|s390x*|powerpc64*)
17437 echo '#line 17437 "configure"' > conftest.$ac_ext
17438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17439 (eval $ac_compile) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; then
17443 case `/usr/bin/file conftest.$ac_objext` in
17446 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17454 # Append ld.so.conf contents to the search path
17455 if test -f /etc/ld.so.conf; then
17456 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17457 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17460 # We used to test for /lib/ld.so.1 and disable shared libraries on
17461 # powerpc, because MkLinux only supported shared libraries with the
17462 # GNU dynamic linker. Since this was broken with cross compilers,
17463 # most powerpc-linux boxes support dynamic linking these days and
17464 # people can always --disable-shared, the test was removed, and we
17465 # assume the GNU/Linux dynamic linker is in use.
17466 dynamic_linker='GNU/Linux ld.so'
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17474 soname_spec='${libname}${release}${shared_ext}$major'
17475 shlibpath_var=LD_LIBRARY_PATH
17476 shlibpath_overrides_runpath=no
17477 hardcode_into_libs=yes
17478 dynamic_linker='GNU ld.so'
17485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17488 dynamic_linker='NetBSD (a.out) ld.so'
17490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17491 soname_spec='${libname}${release}${shared_ext}$major'
17492 dynamic_linker='NetBSD ld.elf_so'
17494 shlibpath_var=LD_LIBRARY_PATH
17495 shlibpath_overrides_runpath=yes
17496 hardcode_into_libs=yes
17501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502 shlibpath_var=LD_LIBRARY_PATH
17503 shlibpath_overrides_runpath=yes
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
17518 sys_lib_dlsearch_path_spec="/usr/lib"
17520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17523 *) need_version=no ;;
17525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17527 shlibpath_var=LD_LIBRARY_PATH
17528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17530 openbsd2.[89] | openbsd2.[89].*)
17531 shlibpath_overrides_runpath=no
17534 shlibpath_overrides_runpath=yes
17538 shlibpath_overrides_runpath=yes
17543 libname_spec='$name'
17546 library_names_spec='$libname${shared_ext} $libname.a'
17547 dynamic_linker='OS/2 ld.exe'
17548 shlibpath_var=LIBPATH
17551 osf3* | osf4* | osf5*)
17555 soname_spec='${libname}${release}${shared_ext}$major'
17556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557 shlibpath_var=LD_LIBRARY_PATH
17558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567 soname_spec='${libname}${release}${shared_ext}$major'
17568 shlibpath_var=LD_LIBRARY_PATH
17569 shlibpath_overrides_runpath=yes
17570 hardcode_into_libs=yes
17571 # ldd complains unless libraries are executable
17572 postinstall_cmds='chmod +x $lib'
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17579 shlibpath_var=LD_LIBRARY_PATH
17580 shlibpath_overrides_runpath=yes
17581 if test "$with_gnu_ld" = yes; then
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
17592 case $host_vendor in
17594 shlibpath_overrides_runpath=no
17596 export_dynamic_flag_spec='${wl}-Blargedynsym'
17597 runpath_var=LD_RUN_PATH
17605 shlibpath_overrides_runpath=no
17606 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17612 if test -d /usr/nec ;then
17614 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17615 soname_spec='$libname${shared_ext}.$major'
17616 shlibpath_var=LD_LIBRARY_PATH
17620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17621 version_type=freebsd-elf
17624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17625 soname_spec='${libname}${release}${shared_ext}$major'
17626 shlibpath_var=LD_LIBRARY_PATH
17627 hardcode_into_libs=yes
17628 if test "$with_gnu_ld" = yes; then
17629 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17630 shlibpath_overrides_runpath=no
17632 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17633 shlibpath_overrides_runpath=yes
17636 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17640 sys_lib_dlsearch_path_spec='/usr/lib'
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17646 soname_spec='${libname}${release}${shared_ext}$major'
17647 shlibpath_var=LD_LIBRARY_PATH
17654 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17655 echo "${ECHO_T}$dynamic_linker" >&6
17656 test "$dynamic_linker" = no && can_build_shared=no
17658 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17659 if test "$GCC" = yes; then
17660 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17663 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17664 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17665 hardcode_action_GCJ=
17666 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17667 test -n "$runpath_var_GCJ" || \
17668 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17670 # We can hardcode non-existant directories.
17671 if test "$hardcode_direct_GCJ" != no &&
17672 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17673 # have to relink, otherwise we might link with an installed library
17674 # when we should be linking with a yet-to-be-installed one
17675 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17676 test "$hardcode_minus_L_GCJ" != no; then
17677 # Linking always hardcodes the temporary library directory.
17678 hardcode_action_GCJ=relink
17680 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17681 hardcode_action_GCJ=immediate
17684 # We cannot hardcode anything, or else we can only hardcode existing
17686 hardcode_action_GCJ=unsupported
17688 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17689 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17691 if test "$hardcode_action_GCJ" = relink; then
17692 # Fast installation is not supported
17693 enable_fast_install=no
17694 elif test "$shlibpath_overrides_runpath" = yes ||
17695 test "$enable_shared" = no; then
17696 # Fast installation is not necessary
17697 enable_fast_install=needless
17701 # The else clause should only fire when bootstrapping the
17702 # libtool distribution, otherwise you forgot to ship ltmain.sh
17703 # with your package, and you will get complaints that there are
17704 # no rules to generate ltmain.sh.
17705 if test -f "$ltmain"; then
17706 # See if we are running on zsh, and set the options which allow our commands through
17707 # without removal of \ escapes.
17708 if test -n "${ZSH_VERSION+set}" ; then
17709 setopt NO_GLOB_SUBST
17711 # Now quote all the things that may contain metacharacters while being
17712 # careful not to overquote the AC_SUBSTed values. We take copies of the
17713 # variables and quote the copies for generation of the libtool script.
17714 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17716 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17717 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17718 deplibs_check_method reload_flag reload_cmds need_locks \
17719 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17720 lt_cv_sys_global_symbol_to_c_name_address \
17721 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17722 old_postinstall_cmds old_postuninstall_cmds \
17726 lt_prog_compiler_wl_GCJ \
17727 lt_prog_compiler_pic_GCJ \
17728 lt_prog_compiler_static_GCJ \
17729 lt_prog_compiler_no_builtin_flag_GCJ \
17730 export_dynamic_flag_spec_GCJ \
17731 thread_safe_flag_spec_GCJ \
17732 whole_archive_flag_spec_GCJ \
17733 enable_shared_with_static_runtimes_GCJ \
17734 old_archive_cmds_GCJ \
17735 old_archive_from_new_cmds_GCJ \
17736 predep_objects_GCJ \
17737 postdep_objects_GCJ \
17740 compiler_lib_search_path_GCJ \
17742 archive_expsym_cmds_GCJ \
17743 postinstall_cmds_GCJ \
17744 postuninstall_cmds_GCJ \
17745 old_archive_from_expsyms_cmds_GCJ \
17746 allow_undefined_flag_GCJ \
17747 no_undefined_flag_GCJ \
17748 export_symbols_cmds_GCJ \
17749 hardcode_libdir_flag_spec_GCJ \
17750 hardcode_libdir_flag_spec_ld_GCJ \
17751 hardcode_libdir_separator_GCJ \
17752 hardcode_automatic_GCJ \
17754 module_expsym_cmds_GCJ \
17755 lt_cv_prog_compiler_c_o_GCJ \
17756 exclude_expsyms_GCJ \
17757 include_expsyms_GCJ; do
17760 old_archive_cmds_GCJ | \
17761 old_archive_from_new_cmds_GCJ | \
17762 archive_cmds_GCJ | \
17763 archive_expsym_cmds_GCJ | \
17764 module_cmds_GCJ | \
17765 module_expsym_cmds_GCJ | \
17766 old_archive_from_expsyms_cmds_GCJ | \
17767 export_symbols_cmds_GCJ | \
17768 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17769 postinstall_cmds | postuninstall_cmds | \
17770 old_postinstall_cmds | old_postuninstall_cmds | \
17771 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17772 # Double-quote double-evaled strings.
17773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17782 *'\$0 --fallback-echo"')
17783 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17789 cat <<__EOF__ >> "$cfgfile"
17790 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17794 # Shell to use when invoking shell scripts.
17797 # Whether or not to build shared libraries.
17798 build_libtool_libs=$enable_shared
17800 # Whether or not to build static libraries.
17801 build_old_libs=$enable_static
17803 # Whether or not to add -lc for building shared libraries.
17804 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17806 # Whether or not to disallow shared libs when runtime libs are static
17807 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17809 # Whether or not to optimize for fast installation.
17810 fast_install=$enable_fast_install
17813 host_alias=$host_alias
17817 # The build system.
17818 build_alias=$build_alias
17822 # An echo program that does not interpret backslashes.
17827 AR_FLAGS=$lt_AR_FLAGS
17832 # LTCC compiler flags.
17833 LTCFLAGS=$lt_LTCFLAGS
17835 # A language-specific compiler.
17836 CC=$lt_compiler_GCJ
17838 # Is the compiler the GNU C compiler?
17844 # The linker used to build libraries.
17847 # Whether we need hard or soft links.
17850 # A BSD-compatible nm program.
17853 # A symbol stripping program
17856 # Used to examine libraries when file_magic_cmd begins "file"
17857 MAGIC_CMD=$MAGIC_CMD
17859 # Used on cygwin: DLL creation program.
17862 # Used on cygwin: object dumper.
17865 # Used on cygwin: assembler.
17868 # The name of the directory that contains temporary libtool files.
17871 # How to create reloadable object files.
17872 reload_flag=$lt_reload_flag
17873 reload_cmds=$lt_reload_cmds
17875 # How to pass a linker flag through the compiler.
17876 wl=$lt_lt_prog_compiler_wl_GCJ
17878 # Object file suffix (normally "o").
17879 objext="$ac_objext"
17881 # Old archive suffix (normally "a").
17884 # Shared library suffix (normally ".so").
17885 shrext_cmds='$shrext_cmds'
17887 # Executable file suffix (normally "").
17890 # Additional compiler flags for building library objects.
17891 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17894 # What is the maximum length of a command?
17895 max_cmd_len=$lt_cv_sys_max_cmd_len
17897 # Does compiler simultaneously support -c and -o options?
17898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17900 # Must we lock files when doing compilation?
17901 need_locks=$lt_need_locks
17903 # Do we need the lib prefix for modules?
17904 need_lib_prefix=$need_lib_prefix
17906 # Do we need a version for libraries?
17907 need_version=$need_version
17909 # Whether dlopen is supported.
17910 dlopen_support=$enable_dlopen
17912 # Whether dlopen of programs is supported.
17913 dlopen_self=$enable_dlopen_self
17915 # Whether dlopen of statically linked programs is supported.
17916 dlopen_self_static=$enable_dlopen_self_static
17918 # Compiler flag to prevent dynamic linking.
17919 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17921 # Compiler flag to turn off builtin functions.
17922 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17924 # Compiler flag to allow reflexive dlopens.
17925 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17927 # Compiler flag to generate shared objects directly from archives.
17928 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17930 # Compiler flag to generate thread-safe objects.
17931 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17933 # Library versioning type.
17934 version_type=$version_type
17936 # Format of library name prefix.
17937 libname_spec=$lt_libname_spec
17939 # List of archive names. First name is the real one, the rest are links.
17940 # The last name is the one that the linker finds with -lNAME.
17941 library_names_spec=$lt_library_names_spec
17943 # The coded name of the library, if different from the real name.
17944 soname_spec=$lt_soname_spec
17946 # Commands used to build and install an old-style archive.
17948 old_archive_cmds=$lt_old_archive_cmds_GCJ
17949 old_postinstall_cmds=$lt_old_postinstall_cmds
17950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17952 # Create an old-style archive from a shared archive.
17953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17955 # Create a temporary old-style archive to link instead of a shared archive.
17956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17958 # Commands used to build and install a shared archive.
17959 archive_cmds=$lt_archive_cmds_GCJ
17960 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17961 postinstall_cmds=$lt_postinstall_cmds
17962 postuninstall_cmds=$lt_postuninstall_cmds
17964 # Commands used to build a loadable module (assumed same as above if empty)
17965 module_cmds=$lt_module_cmds_GCJ
17966 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17968 # Commands to strip libraries.
17969 old_striplib=$lt_old_striplib
17970 striplib=$lt_striplib
17972 # Dependencies to place before the objects being linked to create a
17974 predep_objects=$lt_predep_objects_GCJ
17976 # Dependencies to place after the objects being linked to create a
17978 postdep_objects=$lt_postdep_objects_GCJ
17980 # Dependencies to place before the objects being linked to create a
17982 predeps=$lt_predeps_GCJ
17984 # Dependencies to place after the objects being linked to create a
17986 postdeps=$lt_postdeps_GCJ
17988 # The library search path used internally by the compiler when linking
17989 # a shared library.
17990 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17992 # Method to check whether dependent libraries are shared objects.
17993 deplibs_check_method=$lt_deplibs_check_method
17995 # Command to use when deplibs_check_method == file_magic.
17996 file_magic_cmd=$lt_file_magic_cmd
17998 # Flag that allows shared libraries with undefined symbols to be built.
17999 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18001 # Flag that forces no undefined symbols.
18002 no_undefined_flag=$lt_no_undefined_flag_GCJ
18004 # Commands used to finish a libtool library installation in a directory.
18005 finish_cmds=$lt_finish_cmds
18007 # Same as above, but a single script fragment to be evaled but not shown.
18008 finish_eval=$lt_finish_eval
18010 # Take the output of nm and produce a listing of raw symbols and C names.
18011 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18013 # Transform the output of nm in a proper C declaration
18014 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18016 # Transform the output of nm in a C name address pair
18017 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18019 # This is the shared library runtime path variable.
18020 runpath_var=$runpath_var
18022 # This is the shared library path variable.
18023 shlibpath_var=$shlibpath_var
18025 # Is shlibpath searched before the hard-coded library search path?
18026 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18028 # How to hardcode a shared library path into an executable.
18029 hardcode_action=$hardcode_action_GCJ
18031 # Whether we should hardcode library paths into libraries.
18032 hardcode_into_libs=$hardcode_into_libs
18034 # Flag to hardcode \$libdir into a binary during linking.
18035 # This must work even if \$libdir does not exist.
18036 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18038 # If ld is used when linking, flag to hardcode \$libdir into
18039 # a binary during linking. This must work even if \$libdir does
18041 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18043 # Whether we need a single -rpath flag with a separated argument.
18044 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18046 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18047 # resulting binary.
18048 hardcode_direct=$hardcode_direct_GCJ
18050 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18051 # resulting binary.
18052 hardcode_minus_L=$hardcode_minus_L_GCJ
18054 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18055 # the resulting binary.
18056 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18058 # Set to yes if building a shared library automatically hardcodes DIR into the library
18059 # and all subsequent libraries and executables linked against it.
18060 hardcode_automatic=$hardcode_automatic_GCJ
18062 # Variables whose values should be saved in libtool wrapper scripts and
18063 # restored at relink time.
18064 variables_saved_for_relink="$variables_saved_for_relink"
18066 # Whether libtool must link a program against all its dependency libraries.
18067 link_all_deplibs=$link_all_deplibs_GCJ
18069 # Compile-time system search path for libraries
18070 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18072 # Run-time system search path for libraries
18073 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18075 # Fix the shell variable \$srcfile for the compiler.
18076 fix_srcfile_path="$fix_srcfile_path_GCJ"
18078 # Set to yes if exported symbols are required.
18079 always_export_symbols=$always_export_symbols_GCJ
18081 # The commands to list exported symbols.
18082 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18084 # The commands to extract the exported symbol list from a shared archive.
18085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18087 # Symbols that should not be listed in the preloaded symbols.
18088 exclude_expsyms=$lt_exclude_expsyms_GCJ
18090 # Symbols that must always be exported.
18091 include_expsyms=$lt_include_expsyms_GCJ
18093 # ### END LIBTOOL TAG CONFIG: $tagname
18099 # If there is no Makefile yet, we rely on a make rule to execute
18100 # `config.status --recheck' to rerun these tests and create the
18101 # libtool script then.
18102 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18103 if test -f "$ltmain_in"; then
18104 test -f Makefile && make "$ltmain"
18110 ac_cpp='$CPP $CPPFLAGS'
18111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18126 # Source file extension for RC test sources.
18129 # Object file extension for compiled RC test sources.
18133 # Code to be used in simple compile tests
18134 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18136 # Code to be used in simple link tests
18137 lt_simple_link_test_code="$lt_simple_compile_test_code"
18139 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18141 # If no C compiler was specified, use CC.
18144 # If no C compiler flags were specified, use CFLAGS.
18145 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18147 # Allow CC to be a program name with arguments.
18151 # save warnings/boilerplate of simple test code
18152 ac_outfile=conftest.$ac_objext
18153 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18154 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18155 _lt_compiler_boilerplate=`cat conftest.err`
18158 ac_outfile=conftest.$ac_objext
18159 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18160 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18161 _lt_linker_boilerplate=`cat conftest.err`
18165 # Allow CC to be a program name with arguments.
18170 for cc_temp in $compiler""; do
18172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18178 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18180 lt_cv_prog_compiler_c_o_RC=yes
18182 # The else clause should only fire when bootstrapping the
18183 # libtool distribution, otherwise you forgot to ship ltmain.sh
18184 # with your package, and you will get complaints that there are
18185 # no rules to generate ltmain.sh.
18186 if test -f "$ltmain"; then
18187 # See if we are running on zsh, and set the options which allow our commands through
18188 # without removal of \ escapes.
18189 if test -n "${ZSH_VERSION+set}" ; then
18190 setopt NO_GLOB_SUBST
18192 # Now quote all the things that may contain metacharacters while being
18193 # careful not to overquote the AC_SUBSTed values. We take copies of the
18194 # variables and quote the copies for generation of the libtool script.
18195 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18197 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18198 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18199 deplibs_check_method reload_flag reload_cmds need_locks \
18200 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18201 lt_cv_sys_global_symbol_to_c_name_address \
18202 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18203 old_postinstall_cmds old_postuninstall_cmds \
18207 lt_prog_compiler_wl_RC \
18208 lt_prog_compiler_pic_RC \
18209 lt_prog_compiler_static_RC \
18210 lt_prog_compiler_no_builtin_flag_RC \
18211 export_dynamic_flag_spec_RC \
18212 thread_safe_flag_spec_RC \
18213 whole_archive_flag_spec_RC \
18214 enable_shared_with_static_runtimes_RC \
18215 old_archive_cmds_RC \
18216 old_archive_from_new_cmds_RC \
18217 predep_objects_RC \
18218 postdep_objects_RC \
18221 compiler_lib_search_path_RC \
18223 archive_expsym_cmds_RC \
18224 postinstall_cmds_RC \
18225 postuninstall_cmds_RC \
18226 old_archive_from_expsyms_cmds_RC \
18227 allow_undefined_flag_RC \
18228 no_undefined_flag_RC \
18229 export_symbols_cmds_RC \
18230 hardcode_libdir_flag_spec_RC \
18231 hardcode_libdir_flag_spec_ld_RC \
18232 hardcode_libdir_separator_RC \
18233 hardcode_automatic_RC \
18235 module_expsym_cmds_RC \
18236 lt_cv_prog_compiler_c_o_RC \
18237 exclude_expsyms_RC \
18238 include_expsyms_RC; do
18241 old_archive_cmds_RC | \
18242 old_archive_from_new_cmds_RC | \
18243 archive_cmds_RC | \
18244 archive_expsym_cmds_RC | \
18246 module_expsym_cmds_RC | \
18247 old_archive_from_expsyms_cmds_RC | \
18248 export_symbols_cmds_RC | \
18249 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18250 postinstall_cmds | postuninstall_cmds | \
18251 old_postinstall_cmds | old_postuninstall_cmds | \
18252 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18253 # Double-quote double-evaled strings.
18254 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18263 *'\$0 --fallback-echo"')
18264 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18270 cat <<__EOF__ >> "$cfgfile"
18271 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18275 # Shell to use when invoking shell scripts.
18278 # Whether or not to build shared libraries.
18279 build_libtool_libs=$enable_shared
18281 # Whether or not to build static libraries.
18282 build_old_libs=$enable_static
18284 # Whether or not to add -lc for building shared libraries.
18285 build_libtool_need_lc=$archive_cmds_need_lc_RC
18287 # Whether or not to disallow shared libs when runtime libs are static
18288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18290 # Whether or not to optimize for fast installation.
18291 fast_install=$enable_fast_install
18294 host_alias=$host_alias
18298 # The build system.
18299 build_alias=$build_alias
18303 # An echo program that does not interpret backslashes.
18308 AR_FLAGS=$lt_AR_FLAGS
18313 # LTCC compiler flags.
18314 LTCFLAGS=$lt_LTCFLAGS
18316 # A language-specific compiler.
18319 # Is the compiler the GNU C compiler?
18325 # The linker used to build libraries.
18328 # Whether we need hard or soft links.
18331 # A BSD-compatible nm program.
18334 # A symbol stripping program
18337 # Used to examine libraries when file_magic_cmd begins "file"
18338 MAGIC_CMD=$MAGIC_CMD
18340 # Used on cygwin: DLL creation program.
18343 # Used on cygwin: object dumper.
18346 # Used on cygwin: assembler.
18349 # The name of the directory that contains temporary libtool files.
18352 # How to create reloadable object files.
18353 reload_flag=$lt_reload_flag
18354 reload_cmds=$lt_reload_cmds
18356 # How to pass a linker flag through the compiler.
18357 wl=$lt_lt_prog_compiler_wl_RC
18359 # Object file suffix (normally "o").
18360 objext="$ac_objext"
18362 # Old archive suffix (normally "a").
18365 # Shared library suffix (normally ".so").
18366 shrext_cmds='$shrext_cmds'
18368 # Executable file suffix (normally "").
18371 # Additional compiler flags for building library objects.
18372 pic_flag=$lt_lt_prog_compiler_pic_RC
18375 # What is the maximum length of a command?
18376 max_cmd_len=$lt_cv_sys_max_cmd_len
18378 # Does compiler simultaneously support -c and -o options?
18379 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18381 # Must we lock files when doing compilation?
18382 need_locks=$lt_need_locks
18384 # Do we need the lib prefix for modules?
18385 need_lib_prefix=$need_lib_prefix
18387 # Do we need a version for libraries?
18388 need_version=$need_version
18390 # Whether dlopen is supported.
18391 dlopen_support=$enable_dlopen
18393 # Whether dlopen of programs is supported.
18394 dlopen_self=$enable_dlopen_self
18396 # Whether dlopen of statically linked programs is supported.
18397 dlopen_self_static=$enable_dlopen_self_static
18399 # Compiler flag to prevent dynamic linking.
18400 link_static_flag=$lt_lt_prog_compiler_static_RC
18402 # Compiler flag to turn off builtin functions.
18403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18405 # Compiler flag to allow reflexive dlopens.
18406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18408 # Compiler flag to generate shared objects directly from archives.
18409 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18411 # Compiler flag to generate thread-safe objects.
18412 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18414 # Library versioning type.
18415 version_type=$version_type
18417 # Format of library name prefix.
18418 libname_spec=$lt_libname_spec
18420 # List of archive names. First name is the real one, the rest are links.
18421 # The last name is the one that the linker finds with -lNAME.
18422 library_names_spec=$lt_library_names_spec
18424 # The coded name of the library, if different from the real name.
18425 soname_spec=$lt_soname_spec
18427 # Commands used to build and install an old-style archive.
18429 old_archive_cmds=$lt_old_archive_cmds_RC
18430 old_postinstall_cmds=$lt_old_postinstall_cmds
18431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18433 # Create an old-style archive from a shared archive.
18434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18436 # Create a temporary old-style archive to link instead of a shared archive.
18437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18439 # Commands used to build and install a shared archive.
18440 archive_cmds=$lt_archive_cmds_RC
18441 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18442 postinstall_cmds=$lt_postinstall_cmds
18443 postuninstall_cmds=$lt_postuninstall_cmds
18445 # Commands used to build a loadable module (assumed same as above if empty)
18446 module_cmds=$lt_module_cmds_RC
18447 module_expsym_cmds=$lt_module_expsym_cmds_RC
18449 # Commands to strip libraries.
18450 old_striplib=$lt_old_striplib
18451 striplib=$lt_striplib
18453 # Dependencies to place before the objects being linked to create a
18455 predep_objects=$lt_predep_objects_RC
18457 # Dependencies to place after the objects being linked to create a
18459 postdep_objects=$lt_postdep_objects_RC
18461 # Dependencies to place before the objects being linked to create a
18463 predeps=$lt_predeps_RC
18465 # Dependencies to place after the objects being linked to create a
18467 postdeps=$lt_postdeps_RC
18469 # The library search path used internally by the compiler when linking
18470 # a shared library.
18471 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18473 # Method to check whether dependent libraries are shared objects.
18474 deplibs_check_method=$lt_deplibs_check_method
18476 # Command to use when deplibs_check_method == file_magic.
18477 file_magic_cmd=$lt_file_magic_cmd
18479 # Flag that allows shared libraries with undefined symbols to be built.
18480 allow_undefined_flag=$lt_allow_undefined_flag_RC
18482 # Flag that forces no undefined symbols.
18483 no_undefined_flag=$lt_no_undefined_flag_RC
18485 # Commands used to finish a libtool library installation in a directory.
18486 finish_cmds=$lt_finish_cmds
18488 # Same as above, but a single script fragment to be evaled but not shown.
18489 finish_eval=$lt_finish_eval
18491 # Take the output of nm and produce a listing of raw symbols and C names.
18492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18494 # Transform the output of nm in a proper C declaration
18495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18497 # Transform the output of nm in a C name address pair
18498 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18500 # This is the shared library runtime path variable.
18501 runpath_var=$runpath_var
18503 # This is the shared library path variable.
18504 shlibpath_var=$shlibpath_var
18506 # Is shlibpath searched before the hard-coded library search path?
18507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18509 # How to hardcode a shared library path into an executable.
18510 hardcode_action=$hardcode_action_RC
18512 # Whether we should hardcode library paths into libraries.
18513 hardcode_into_libs=$hardcode_into_libs
18515 # Flag to hardcode \$libdir into a binary during linking.
18516 # This must work even if \$libdir does not exist.
18517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18519 # If ld is used when linking, flag to hardcode \$libdir into
18520 # a binary during linking. This must work even if \$libdir does
18522 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18524 # Whether we need a single -rpath flag with a separated argument.
18525 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18527 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18528 # resulting binary.
18529 hardcode_direct=$hardcode_direct_RC
18531 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18532 # resulting binary.
18533 hardcode_minus_L=$hardcode_minus_L_RC
18535 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18536 # the resulting binary.
18537 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18539 # Set to yes if building a shared library automatically hardcodes DIR into the library
18540 # and all subsequent libraries and executables linked against it.
18541 hardcode_automatic=$hardcode_automatic_RC
18543 # Variables whose values should be saved in libtool wrapper scripts and
18544 # restored at relink time.
18545 variables_saved_for_relink="$variables_saved_for_relink"
18547 # Whether libtool must link a program against all its dependency libraries.
18548 link_all_deplibs=$link_all_deplibs_RC
18550 # Compile-time system search path for libraries
18551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18553 # Run-time system search path for libraries
18554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18556 # Fix the shell variable \$srcfile for the compiler.
18557 fix_srcfile_path="$fix_srcfile_path_RC"
18559 # Set to yes if exported symbols are required.
18560 always_export_symbols=$always_export_symbols_RC
18562 # The commands to list exported symbols.
18563 export_symbols_cmds=$lt_export_symbols_cmds_RC
18565 # The commands to extract the exported symbol list from a shared archive.
18566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18568 # Symbols that should not be listed in the preloaded symbols.
18569 exclude_expsyms=$lt_exclude_expsyms_RC
18571 # Symbols that must always be exported.
18572 include_expsyms=$lt_include_expsyms_RC
18574 # ### END LIBTOOL TAG CONFIG: $tagname
18580 # If there is no Makefile yet, we rely on a make rule to execute
18581 # `config.status --recheck' to rerun these tests and create the
18582 # libtool script then.
18583 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18584 if test -f "$ltmain_in"; then
18585 test -f Makefile && make "$ltmain"
18591 ac_cpp='$CPP $CPPFLAGS'
18592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18601 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18602 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18603 { (exit 1); exit 1; }; }
18607 # Append the new tag name to the list of available tags.
18608 if test -n "$tagname" ; then
18609 available_tags="$available_tags $tagname"
18615 # Now substitute the updated list of available tags.
18616 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18617 mv "${ofile}T" "$ofile"
18621 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18622 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18623 { (exit 1); exit 1; }; }
18629 # This can be used to rebuild libtool when needed
18630 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18632 # Always use our own libtool.
18633 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18635 # Prevent multiple expansion
18657 cat >>confdefs.h <<\_ACEOF
18658 #define _GNU_SOURCE 1
18664 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18665 if test -n "$ac_tool_prefix"; then
18666 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18667 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18668 echo "$as_me:$LINENO: checking for $ac_word" >&5
18669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 case $PKG_CONFIG in
18675 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18679 for as_dir in $PATH
18682 test -z "$as_dir" && as_dir=.
18683 for ac_exec_ext in '' $ac_executable_extensions; do
18684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18685 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18697 if test -n "$PKG_CONFIG"; then
18698 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18699 echo "${ECHO_T}$PKG_CONFIG" >&6
18701 echo "$as_me:$LINENO: result: no" >&5
18702 echo "${ECHO_T}no" >&6
18706 if test -z "$ac_cv_path_PKG_CONFIG"; then
18707 ac_pt_PKG_CONFIG=$PKG_CONFIG
18708 # Extract the first word of "pkg-config", so it can be a program name with args.
18709 set dummy pkg-config; ac_word=$2
18710 echo "$as_me:$LINENO: checking for $ac_word" >&5
18711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18712 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
18713 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 case $ac_pt_PKG_CONFIG in
18717 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18721 for as_dir in $PATH
18724 test -z "$as_dir" && as_dir=.
18725 for ac_exec_ext in '' $ac_executable_extensions; do
18726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18727 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18737 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18739 if test -n "$ac_pt_PKG_CONFIG"; then
18740 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
18741 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
18743 echo "$as_me:$LINENO: result: no" >&5
18744 echo "${ECHO_T}no" >&6
18747 PKG_CONFIG=$ac_pt_PKG_CONFIG
18749 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18753 if test -n "$PKG_CONFIG"; then
18754 _pkg_min_version=0.9.0
18755 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
18756 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
18757 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18758 echo "$as_me:$LINENO: result: yes" >&5
18759 echo "${ECHO_T}yes" >&6
18761 echo "$as_me:$LINENO: result: no" >&5
18762 echo "${ECHO_T}no" >&6
18769 echo "$as_me:$LINENO: checking for DEPS" >&5
18770 echo $ECHO_N "checking for DEPS... $ECHO_C" >&6
18772 if test -n "$PKG_CONFIG"; then
18773 if test -n "$DEPS_CFLAGS"; then
18774 pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
18776 if test -n "$PKG_CONFIG" && \
18777 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
18778 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; then
18782 pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
18790 if test -n "$PKG_CONFIG"; then
18791 if test -n "$DEPS_LIBS"; then
18792 pkg_cv_DEPS_LIBS="$DEPS_LIBS"
18794 if test -n "$PKG_CONFIG" && \
18795 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
18796 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; then
18800 pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
18811 if test $pkg_failed = yes; then
18813 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18814 _pkg_short_errors_supported=yes
18816 _pkg_short_errors_supported=no
18818 if test $_pkg_short_errors_supported = yes; then
18819 DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
18821 DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
18823 # Put the nasty error message in config.log where it belongs
18824 echo "$DEPS_PKG_ERRORS" >&5
18826 { { echo "$as_me:$LINENO: error: Package requirements (sqlite3) were not met:
18830 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18831 installed software in a non-standard prefix.
18833 Alternatively, you may set the environment variables DEPS_CFLAGS
18834 and DEPS_LIBS to avoid the need to call pkg-config.
18835 See the pkg-config man page for more details.
18837 echo "$as_me: error: Package requirements (sqlite3) were not met:
18841 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18842 installed software in a non-standard prefix.
18844 Alternatively, you may set the environment variables DEPS_CFLAGS
18845 and DEPS_LIBS to avoid the need to call pkg-config.
18846 See the pkg-config man page for more details.
18848 { (exit 1); exit 1; }; }
18849 elif test $pkg_failed = untried; then
18850 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
18851 is in your PATH or set the PKG_CONFIG environment variable to the full
18852 path to pkg-config.
18854 Alternatively, you may set the environment variables DEPS_CFLAGS
18855 and DEPS_LIBS to avoid the need to call pkg-config.
18856 See the pkg-config man page for more details.
18858 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18859 See \`config.log' for more details." >&5
18860 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
18861 is in your PATH or set the PKG_CONFIG environment variable to the full
18862 path to pkg-config.
18864 Alternatively, you may set the environment variables DEPS_CFLAGS
18865 and DEPS_LIBS to avoid the need to call pkg-config.
18866 See the pkg-config man page for more details.
18868 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18869 See \`config.log' for more details." >&2;}
18870 { (exit 1); exit 1; }; }
18872 DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
18873 DEPS_LIBS=$pkg_cv_DEPS_LIBS
18874 echo "$as_me:$LINENO: result: yes" >&5
18875 echo "${ECHO_T}yes" >&6
18881 # Check whether --enable-largefile or --disable-largefile was given.
18882 if test "${enable_largefile+set}" = set; then
18883 enableval="$enable_largefile"
18886 if test "$enable_largefile" != no; then
18888 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18889 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
18890 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 ac_cv_sys_largefile_CC=no
18894 if test "$GCC" != yes; then
18897 # IRIX 6.2 and later do not support large files by default,
18898 # so use the C compiler's -n32 option if that helps.
18899 cat >conftest.$ac_ext <<_ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h. */
18905 #include <sys/types.h>
18906 /* Check that off_t can represent 2**63 - 1 correctly.
18907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18908 since some C++ compilers masquerading as C compilers
18909 incorrectly reject 9223372036854775807. */
18910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18912 && LARGE_OFF_T % 2147483647 == 1)
18922 rm -f conftest.$ac_objext
18923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18924 (eval $ac_compile) 2>conftest.er1
18926 grep -v '^ *+' conftest.er1 >conftest.err
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -z "$ac_c_werror_flag"
18932 || test ! -s conftest.err'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest.$ac_objext'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18946 echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18950 rm -f conftest.err conftest.$ac_objext
18952 rm -f conftest.$ac_objext
18953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18954 (eval $ac_compile) 2>conftest.er1
18956 grep -v '^ *+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
18961 { ac_try='test -z "$ac_c_werror_flag"
18962 || test ! -s conftest.err'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; } &&
18968 { ac_try='test -s conftest.$ac_objext'
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
18974 ac_cv_sys_largefile_CC=' -n32'; break
18976 echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18980 rm -f conftest.err conftest.$ac_objext
18984 rm -f conftest.$ac_ext
18987 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18988 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
18989 if test "$ac_cv_sys_largefile_CC" != no; then
18990 CC=$CC$ac_cv_sys_largefile_CC
18993 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18994 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18995 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 ac_cv_sys_file_offset_bits=no
19000 cat >conftest.$ac_ext <<_ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19006 #include <sys/types.h>
19007 /* Check that off_t can represent 2**63 - 1 correctly.
19008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19009 since some C++ compilers masquerading as C compilers
19010 incorrectly reject 9223372036854775807. */
19011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19013 && LARGE_OFF_T % 2147483647 == 1)
19023 rm -f conftest.$ac_objext
19024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19025 (eval $ac_compile) 2>conftest.er1
19027 grep -v '^ *+' conftest.er1 >conftest.err
19029 cat conftest.err >&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } &&
19032 { ac_try='test -z "$ac_c_werror_flag"
19033 || test ! -s conftest.err'
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; } &&
19039 { ac_try='test -s conftest.$ac_objext'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19047 echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19052 cat >conftest.$ac_ext <<_ACEOF
19055 cat confdefs.h >>conftest.$ac_ext
19056 cat >>conftest.$ac_ext <<_ACEOF
19057 /* end confdefs.h. */
19058 #define _FILE_OFFSET_BITS 64
19059 #include <sys/types.h>
19060 /* Check that off_t can represent 2**63 - 1 correctly.
19061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19062 since some C++ compilers masquerading as C compilers
19063 incorrectly reject 9223372036854775807. */
19064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19066 && LARGE_OFF_T % 2147483647 == 1)
19076 rm -f conftest.$ac_objext
19077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19078 (eval $ac_compile) 2>conftest.er1
19080 grep -v '^ *+' conftest.er1 >conftest.err
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
19085 { ac_try='test -z "$ac_c_werror_flag"
19086 || test ! -s conftest.err'
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest.$ac_objext'
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; }; then
19098 ac_cv_sys_file_offset_bits=64; break
19100 echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19108 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19109 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19110 if test "$ac_cv_sys_file_offset_bits" != no; then
19112 cat >>confdefs.h <<_ACEOF
19113 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19118 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19119 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19120 if test "${ac_cv_sys_large_files+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19124 ac_cv_sys_large_files=no
19125 cat >conftest.$ac_ext <<_ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19131 #include <sys/types.h>
19132 /* Check that off_t can represent 2**63 - 1 correctly.
19133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19134 since some C++ compilers masquerading as C compilers
19135 incorrectly reject 9223372036854775807. */
19136 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19138 && LARGE_OFF_T % 2147483647 == 1)
19148 rm -f conftest.$ac_objext
19149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19150 (eval $ac_compile) 2>conftest.er1
19152 grep -v '^ *+' conftest.er1 >conftest.err
19154 cat conftest.err >&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } &&
19157 { ac_try='test -z "$ac_c_werror_flag"
19158 || test ! -s conftest.err'
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest.$ac_objext'
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; }; then
19172 echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19177 cat >conftest.$ac_ext <<_ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 #define _LARGE_FILES 1
19184 #include <sys/types.h>
19185 /* Check that off_t can represent 2**63 - 1 correctly.
19186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19187 since some C++ compilers masquerading as C compilers
19188 incorrectly reject 9223372036854775807. */
19189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19191 && LARGE_OFF_T % 2147483647 == 1)
19201 rm -f conftest.$ac_objext
19202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203 (eval $ac_compile) 2>conftest.er1
19205 grep -v '^ *+' conftest.er1 >conftest.err
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
19210 { ac_try='test -z "$ac_c_werror_flag"
19211 || test ! -s conftest.err'
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest.$ac_objext'
19218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; }; then
19223 ac_cv_sys_large_files=1; break
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19233 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19234 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19235 if test "$ac_cv_sys_large_files" != no; then
19237 cat >>confdefs.h <<_ACEOF
19238 #define _LARGE_FILES $ac_cv_sys_large_files
19246 ac_config_files="$ac_config_files Makefile tests/Makefile libsqlfs.pc"
19249 cat >confcache <<\_ACEOF
19250 # This file is a shell script that caches the results of configure
19251 # tests run on this system so they can be shared between configure
19252 # scripts and configure runs, see configure's option --config-cache.
19253 # It is not useful on other systems. If it contains results you don't
19254 # want to keep, you may remove or edit it.
19256 # config.status only pays attention to the cache file if you give it
19257 # the --recheck option to rerun configure.
19259 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19260 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19261 # following values.
19265 # The following way of writing the cache mishandles newlines in values,
19266 # but we know of no workaround that is simple, portable, and efficient.
19267 # So, don't put newlines in cache variables' values.
19268 # Ultrix sh set writes to stderr and can't be redirected directly,
19269 # and sets the high bit in the cache file unless we assign to the vars.
19272 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19274 # `set' does not quote correctly, so add quotes (double-quote
19275 # substitution turns \\\\ into \\, and sed turns \\ into \).
19278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19281 # `set' quotes correctly as required by POSIX, so do not add quotes.
19283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19292 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19294 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19295 if test -w $cache_file; then
19296 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19297 cat confcache >$cache_file
19299 echo "not updating unwritable cache $cache_file"
19304 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19305 # Let make expand exec_prefix.
19306 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19308 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19309 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19310 # trailing colons and then remove the whole line if VPATH becomes empty
19311 # (actually we leave an empty line to preserve line numbers).
19312 if test "x$srcdir" = x.; then
19313 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19314 s/:*\$(srcdir):*/:/;
19315 s/:*\${srcdir}:*/:/;
19317 s/^\([^=]*=[ ]*\):*/\1/;
19323 # Transform confdefs.h into DEFS.
19324 # Protect against shell expansion while executing Makefile rules.
19325 # Protect against Makefile macro expansion.
19327 # If the first sed substitution is executed (which looks for macros that
19328 # take arguments), then we branch to the quote section. Otherwise,
19329 # look for a macro that doesn't take arguments.
19330 cat >confdef2opt.sed <<\_ACEOF
19333 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
19335 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
19339 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
19345 # We use echo to avoid assuming a particular line-breaking character.
19346 # The extra dot is to prevent the shell from consuming trailing
19347 # line-breaks from the sub-command output. A line-break within
19348 # single-quotes doesn't work because, if this script is created in a
19349 # platform that uses two characters for line-breaks (e.g., DOS), tr
19351 ac_LF_and_DOT=`echo; echo .`
19352 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19353 rm -f confdef2opt.sed
19358 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19359 # 1. Remove the extension, and $U if already installed.
19360 ac_i=`echo "$ac_i" |
19361 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19363 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19364 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19366 LIBOBJS=$ac_libobjs
19368 LTLIBOBJS=$ac_ltlibobjs
19371 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19372 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19373 Usually this means the macro was only invoked conditionally." >&5
19374 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19375 Usually this means the macro was only invoked conditionally." >&2;}
19376 { (exit 1); exit 1; }; }
19378 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19379 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19380 Usually this means the macro was only invoked conditionally." >&5
19381 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19382 Usually this means the macro was only invoked conditionally." >&2;}
19383 { (exit 1); exit 1; }; }
19385 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19386 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19387 Usually this means the macro was only invoked conditionally." >&5
19388 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19389 Usually this means the macro was only invoked conditionally." >&2;}
19390 { (exit 1); exit 1; }; }
19393 : ${CONFIG_STATUS=./config.status}
19394 ac_clean_files_save=$ac_clean_files
19395 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19396 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19397 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19398 cat >$CONFIG_STATUS <<_ACEOF
19400 # Generated by $as_me.
19401 # Run this file to recreate the current configuration.
19402 # Compiler output produced by configure, useful for debugging
19403 # configure, is in config.log if it exists.
19406 ac_cs_recheck=false
19408 SHELL=\${CONFIG_SHELL-$SHELL}
19411 cat >>$CONFIG_STATUS <<\_ACEOF
19412 ## --------------------- ##
19413 ## M4sh Initialization. ##
19414 ## --------------------- ##
19416 # Be Bourne compatible
19417 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19420 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19421 # is contrary to our usage. Disable this feature.
19422 alias -g '${1+"$@"}'='"$@"'
19423 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19426 DUALCASE=1; export DUALCASE # for MKS sh
19428 # Support unset when possible.
19429 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19436 # Work around bugs in pre-3.0 UWIN ksh.
19437 $as_unset ENV MAIL MAILPATH
19444 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19445 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19446 LC_TELEPHONE LC_TIME
19448 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19449 eval $as_var=C; export $as_var
19455 # Required to use basename.
19456 if expr a : '\(a\)' >/dev/null 2>&1; then
19462 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19463 as_basename=basename
19469 # Name of the executable.
19470 as_me=`$as_basename "$0" ||
19471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19472 X"$0" : 'X\(//\)$' \| \
19473 X"$0" : 'X\(/\)$' \| \
19474 . : '\(.\)' 2>/dev/null ||
19476 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19477 /^X\/\(\/\/\)$/{ s//\1/; q; }
19478 /^X\/\(\/\).*/{ s//\1/; q; }
19482 # PATH needs CR, and LINENO needs CR and PATH.
19483 # Avoid depending upon Character Ranges.
19484 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19485 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19486 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19487 as_cr_digits='0123456789'
19488 as_cr_alnum=$as_cr_Letters$as_cr_digits
19490 # The user is always right.
19491 if test "${PATH_SEPARATOR+set}" != set; then
19492 echo "#! /bin/sh" >conf$$.sh
19493 echo "exit 0" >>conf$$.sh
19495 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19504 as_lineno_1=$LINENO
19505 as_lineno_2=$LINENO
19506 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19507 test "x$as_lineno_1" != "x$as_lineno_2" &&
19508 test "x$as_lineno_3" = "x$as_lineno_2" || {
19509 # Find who we are. Look in the path if we contain no path at all
19512 *[\\/]* ) as_myself=$0 ;;
19513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19514 for as_dir in $PATH
19517 test -z "$as_dir" && as_dir=.
19518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19523 # We did not find ourselves, most probably we were run as `sh COMMAND'
19524 # in which case we are not to be found in the path.
19525 if test "x$as_myself" = x; then
19528 if test ! -f "$as_myself"; then
19529 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19530 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19531 { (exit 1); exit 1; }; }
19533 case $CONFIG_SHELL in
19535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19536 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19539 test -z "$as_dir" && as_dir=.
19540 for as_base in sh bash ksh sh5; do
19543 if ("$as_dir/$as_base" -c '
19544 as_lineno_1=$LINENO
19545 as_lineno_2=$LINENO
19546 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19547 test "x$as_lineno_1" != "x$as_lineno_2" &&
19548 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19549 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19550 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19551 CONFIG_SHELL=$as_dir/$as_base
19552 export CONFIG_SHELL
19553 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19561 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19562 # uniformly replaced by the line number. The first 'sed' inserts a
19563 # line-number line before each line; the second 'sed' does the real
19564 # work. The second script uses 'N' to pair each line-number line
19565 # with the numbered line, and appends trailing '-' during
19566 # substitution so that $LINENO is not a special case at line end.
19567 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19568 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19569 sed '=' <$as_myself |
19574 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19577 s,^['$as_cr_digits']*\n,,
19578 ' >$as_me.lineno &&
19579 chmod +x $as_me.lineno ||
19580 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19581 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19582 { (exit 1); exit 1; }; }
19584 # Don't try to exec as it changes $[0], causing all sort of problems
19585 # (the dirname of $[0] is not the place where we might find the
19586 # original and so on. Autoconf is especially sensible to this).
19588 # Exit status is that of the last command.
19593 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19594 *c*,-n*) ECHO_N= ECHO_C='
19596 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19597 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19600 if expr a : '\(a\)' >/dev/null 2>&1; then
19606 rm -f conf$$ conf$$.exe conf$$.file
19608 if ln -s conf$$.file conf$$ 2>/dev/null; then
19609 # We could just check for DJGPP; but this test a) works b) is more generic
19610 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19611 if test -f conf$$.exe; then
19612 # Don't use ln at all; we don't have any links
19617 elif ln conf$$.file conf$$ 2>/dev/null; then
19622 rm -f conf$$ conf$$.exe conf$$.file
19624 if mkdir -p . 2>/dev/null; then
19627 test -d ./-p && rmdir ./-p
19631 as_executable_p="test -f"
19633 # Sed expression to map a string onto a valid CPP name.
19634 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19636 # Sed expression to map a string onto a valid variable name.
19637 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19641 # We need space, tab and new line, in precisely that order.
19651 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19652 # report actual input values of CONFIG_FILES etc. instead of their
19653 # values after options handling. Logging --version etc. is OK.
19657 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19658 ## Running $as_me. ##
19663 This file was extended by $as_me, which was
19664 generated by GNU Autoconf 2.59. Invocation command line was
19666 CONFIG_FILES = $CONFIG_FILES
19667 CONFIG_HEADERS = $CONFIG_HEADERS
19668 CONFIG_LINKS = $CONFIG_LINKS
19669 CONFIG_COMMANDS = $CONFIG_COMMANDS
19673 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19677 # Files that config.status was made for.
19678 if test -n "$ac_config_files"; then
19679 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19682 if test -n "$ac_config_headers"; then
19683 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19686 if test -n "$ac_config_links"; then
19687 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19690 if test -n "$ac_config_commands"; then
19691 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19694 cat >>$CONFIG_STATUS <<\_ACEOF
19697 \`$as_me' instantiates files from templates according to the
19698 current configuration.
19700 Usage: $0 [OPTIONS] [FILE]...
19702 -h, --help print this help, then exit
19703 -V, --version print version number, then exit
19704 -q, --quiet do not print progress messages
19705 -d, --debug don't remove temporary files
19706 --recheck update $as_me by reconfiguring in the same conditions
19707 --file=FILE[:TEMPLATE]
19708 instantiate the configuration file FILE
19710 Configuration files:
19713 Configuration commands:
19716 Report bugs to <bug-autoconf@gnu.org>."
19719 cat >>$CONFIG_STATUS <<_ACEOF
19722 configured by $0, generated by GNU Autoconf 2.59,
19723 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19725 Copyright (C) 2003 Free Software Foundation, Inc.
19726 This config.status script is free software; the Free Software Foundation
19727 gives unlimited permission to copy, distribute and modify it."
19732 cat >>$CONFIG_STATUS <<\_ACEOF
19733 # If no file are specified by the user, then we need to provide default
19734 # value. By we need to know if files were specified by the user.
19740 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19741 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19749 *) # This is not an option, so the user has probably given explicit
19752 ac_need_defaults=false;;
19756 # Handling of the options.
19758 cat >>$CONFIG_STATUS <<\_ACEOF
19759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19761 --version | --vers* | -V )
19762 echo "$ac_cs_version"; exit 0 ;;
19764 # Conflict between --help and --header
19765 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19766 Try \`$0 --help' for more information." >&5
19767 echo "$as_me: error: ambiguous option: $1
19768 Try \`$0 --help' for more information." >&2;}
19769 { (exit 1); exit 1; }; };;
19770 --help | --hel | -h )
19771 echo "$ac_cs_usage"; exit 0 ;;
19772 --debug | --d* | -d )
19774 --file | --fil | --fi | --f )
19776 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19777 ac_need_defaults=false;;
19778 --header | --heade | --head | --hea )
19780 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19781 ac_need_defaults=false;;
19782 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19783 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19786 # This is an error.
19787 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19788 Try \`$0 --help' for more information." >&5
19789 echo "$as_me: error: unrecognized option: $1
19790 Try \`$0 --help' for more information." >&2;}
19791 { (exit 1); exit 1; }; } ;;
19793 *) ac_config_targets="$ac_config_targets $1" ;;
19799 ac_configure_extra_args=
19801 if $ac_cs_silent; then
19803 ac_configure_extra_args="$ac_configure_extra_args --silent"
19807 cat >>$CONFIG_STATUS <<_ACEOF
19808 if \$ac_cs_recheck; then
19809 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19810 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19815 cat >>$CONFIG_STATUS <<_ACEOF
19817 # INIT-COMMANDS section.
19820 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19826 cat >>$CONFIG_STATUS <<\_ACEOF
19827 for ac_config_target in $ac_config_targets
19829 case "$ac_config_target" in
19830 # Handling of arguments.
19831 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19832 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19833 "libsqlfs.pc" ) CONFIG_FILES="$CONFIG_FILES libsqlfs.pc" ;;
19834 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19835 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19836 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19837 { (exit 1); exit 1; }; };;
19841 # If the user did not use the arguments to specify the items to instantiate,
19842 # then the envvar interface is used. Set only those that are not.
19843 # We use the long form for the default assignment because of an extremely
19844 # bizarre bug on SunOS 4.1.3.
19845 if $ac_need_defaults; then
19846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19847 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19850 # Have a temporary directory for convenience. Make it in the build tree
19851 # simply because there is no reason to put it here, and in addition,
19852 # creating and moving files from /tmp can sometimes cause problems.
19853 # Create a temporary directory, and hook for its removal unless debugging.
19856 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19857 trap '{ (exit 1); exit 1; }' 1 2 13 15
19860 # Create a (secure) tmp directory for tmp files.
19863 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19864 test -n "$tmp" && test -d "$tmp"
19867 tmp=./confstat$$-$RANDOM
19868 (umask 077 && mkdir $tmp)
19871 echo "$me: cannot create a temporary directory in ." >&2
19872 { (exit 1); exit 1; }
19877 cat >>$CONFIG_STATUS <<_ACEOF
19880 # CONFIG_FILES section.
19883 # No need to generate the scripts if there are no CONFIG_FILES.
19884 # This happens for instance when ./config.status config.h
19885 if test -n "\$CONFIG_FILES"; then
19886 # Protect against being on the right side of a sed subst in config.status.
19887 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19888 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19889 s,@SHELL@,$SHELL,;t t
19890 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19891 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19892 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19893 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19894 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19895 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19896 s,@exec_prefix@,$exec_prefix,;t t
19897 s,@prefix@,$prefix,;t t
19898 s,@program_transform_name@,$program_transform_name,;t t
19899 s,@bindir@,$bindir,;t t
19900 s,@sbindir@,$sbindir,;t t
19901 s,@libexecdir@,$libexecdir,;t t
19902 s,@datadir@,$datadir,;t t
19903 s,@sysconfdir@,$sysconfdir,;t t
19904 s,@sharedstatedir@,$sharedstatedir,;t t
19905 s,@localstatedir@,$localstatedir,;t t
19906 s,@libdir@,$libdir,;t t
19907 s,@includedir@,$includedir,;t t
19908 s,@oldincludedir@,$oldincludedir,;t t
19909 s,@infodir@,$infodir,;t t
19910 s,@mandir@,$mandir,;t t
19911 s,@build_alias@,$build_alias,;t t
19912 s,@host_alias@,$host_alias,;t t
19913 s,@target_alias@,$target_alias,;t t
19914 s,@DEFS@,$DEFS,;t t
19915 s,@ECHO_C@,$ECHO_C,;t t
19916 s,@ECHO_N@,$ECHO_N,;t t
19917 s,@ECHO_T@,$ECHO_T,;t t
19918 s,@LIBS@,$LIBS,;t t
19919 s,@build@,$build,;t t
19920 s,@build_cpu@,$build_cpu,;t t
19921 s,@build_vendor@,$build_vendor,;t t
19922 s,@build_os@,$build_os,;t t
19923 s,@host@,$host,;t t
19924 s,@host_cpu@,$host_cpu,;t t
19925 s,@host_vendor@,$host_vendor,;t t
19926 s,@host_os@,$host_os,;t t
19927 s,@target@,$target,;t t
19928 s,@target_cpu@,$target_cpu,;t t
19929 s,@target_vendor@,$target_vendor,;t t
19930 s,@target_os@,$target_os,;t t
19931 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19932 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19933 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19934 s,@CYGPATH_W@,$CYGPATH_W,;t t
19935 s,@PACKAGE@,$PACKAGE,;t t
19936 s,@VERSION@,$VERSION,;t t
19937 s,@ACLOCAL@,$ACLOCAL,;t t
19938 s,@AUTOCONF@,$AUTOCONF,;t t
19939 s,@AUTOMAKE@,$AUTOMAKE,;t t
19940 s,@AUTOHEADER@,$AUTOHEADER,;t t
19941 s,@MAKEINFO@,$MAKEINFO,;t t
19942 s,@install_sh@,$install_sh,;t t
19943 s,@STRIP@,$STRIP,;t t
19944 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19945 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19946 s,@mkdir_p@,$mkdir_p,;t t
19948 s,@SET_MAKE@,$SET_MAKE,;t t
19949 s,@am__leading_dot@,$am__leading_dot,;t t
19950 s,@AMTAR@,$AMTAR,;t t
19951 s,@am__tar@,$am__tar,;t t
19952 s,@am__untar@,$am__untar,;t t
19954 s,@CFLAGS@,$CFLAGS,;t t
19955 s,@LDFLAGS@,$LDFLAGS,;t t
19956 s,@CPPFLAGS@,$CPPFLAGS,;t t
19957 s,@ac_ct_CC@,$ac_ct_CC,;t t
19958 s,@EXEEXT@,$EXEEXT,;t t
19959 s,@OBJEXT@,$OBJEXT,;t t
19960 s,@DEPDIR@,$DEPDIR,;t t
19961 s,@am__include@,$am__include,;t t
19962 s,@am__quote@,$am__quote,;t t
19963 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19964 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19965 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19966 s,@CCDEPMODE@,$CCDEPMODE,;t t
19967 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19968 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19969 s,@EGREP@,$EGREP,;t t
19970 s,@LN_S@,$LN_S,;t t
19971 s,@ECHO@,$ECHO,;t t
19973 s,@ac_ct_AR@,$ac_ct_AR,;t t
19974 s,@RANLIB@,$RANLIB,;t t
19975 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19978 s,@CXXFLAGS@,$CXXFLAGS,;t t
19979 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19980 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19981 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19982 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19983 s,@CXXCPP@,$CXXCPP,;t t
19985 s,@FFLAGS@,$FFLAGS,;t t
19986 s,@ac_ct_F77@,$ac_ct_F77,;t t
19987 s,@LIBTOOL@,$LIBTOOL,;t t
19988 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19989 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19990 s,@DEPS_CFLAGS@,$DEPS_CFLAGS,;t t
19991 s,@DEPS_LIBS@,$DEPS_LIBS,;t t
19992 s,@LIBOBJS@,$LIBOBJS,;t t
19993 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19998 cat >>$CONFIG_STATUS <<\_ACEOF
19999 # Split the substitutions into bite-sized pieces for seds with
20000 # small command number limits, like on Digital OSF/1 and HP-UX.
20001 ac_max_sed_lines=48
20002 ac_sed_frag=1 # Number of current file.
20003 ac_beg=1 # First line for current file.
20004 ac_end=$ac_max_sed_lines # Line after last line for current file.
20007 while $ac_more_lines; do
20008 if test $ac_beg -gt 1; then
20009 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20011 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20013 if test ! -s $tmp/subs.frag; then
20014 ac_more_lines=false
20016 # The purpose of the label and of the branching condition is to
20017 # speed up the sed processing (if there are no `@' at all, there
20018 # is no need to browse any of the substitutions).
20019 # These are the two extra sed commands mentioned above.
20021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20022 if test -z "$ac_sed_cmds"; then
20023 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20025 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20027 ac_sed_frag=`expr $ac_sed_frag + 1`
20029 ac_end=`expr $ac_end + $ac_max_sed_lines`
20032 if test -z "$ac_sed_cmds"; then
20035 fi # test -n "$CONFIG_FILES"
20038 cat >>$CONFIG_STATUS <<\_ACEOF
20039 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20042 - | *:- | *:-:* ) # input from stdin
20044 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20046 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20048 * ) ac_file_in=$ac_file.in ;;
20051 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20052 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20053 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20054 X"$ac_file" : 'X\(//\)[^/]' \| \
20055 X"$ac_file" : 'X\(//\)$' \| \
20056 X"$ac_file" : 'X\(/\)' \| \
20057 . : '\(.\)' 2>/dev/null ||
20059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20061 /^X\(\/\/\)$/{ s//\1/; q; }
20062 /^X\(\/\).*/{ s//\1/; q; }
20064 { if $as_mkdir_p; then
20069 while test ! -d "$as_dir"; do
20070 as_dirs="$as_dir $as_dirs"
20071 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20073 X"$as_dir" : 'X\(//\)[^/]' \| \
20074 X"$as_dir" : 'X\(//\)$' \| \
20075 X"$as_dir" : 'X\(/\)' \| \
20076 . : '\(.\)' 2>/dev/null ||
20078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20080 /^X\(\/\/\)$/{ s//\1/; q; }
20081 /^X\(\/\).*/{ s//\1/; q; }
20084 test ! -n "$as_dirs" || mkdir $as_dirs
20085 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20087 { (exit 1); exit 1; }; }; }
20091 if test "$ac_dir" != .; then
20092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20093 # A "../" for each directory in $ac_dir_suffix.
20094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20096 ac_dir_suffix= ac_top_builddir=
20100 .) # No --srcdir option. We are building in place.
20102 if test -z "$ac_top_builddir"; then
20105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20107 [\\/]* | ?:[\\/]* ) # Absolute path.
20108 ac_srcdir=$srcdir$ac_dir_suffix;
20109 ac_top_srcdir=$srcdir ;;
20110 *) # Relative path.
20111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20115 # Do not use `cd foo && pwd` to compute absolute paths, because
20116 # the directories may not exist.
20118 .) ac_abs_builddir="$ac_dir";;
20121 .) ac_abs_builddir=`pwd`;;
20122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20126 case $ac_abs_builddir in
20127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20129 case ${ac_top_builddir}. in
20130 .) ac_abs_top_builddir=$ac_abs_builddir;;
20131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20135 case $ac_abs_builddir in
20136 .) ac_abs_srcdir=$ac_srcdir;;
20139 .) ac_abs_srcdir=$ac_abs_builddir;;
20140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20144 case $ac_abs_builddir in
20145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20147 case $ac_top_srcdir in
20148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20156 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20157 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20160 if test x"$ac_file" != x-; then
20161 { echo "$as_me:$LINENO: creating $ac_file" >&5
20162 echo "$as_me: creating $ac_file" >&6;}
20165 # Let's still pretend it is `configure' which instantiates (i.e., don't
20166 # use $as_me), people would be surprised to read:
20167 # /* config.h. Generated by config.status. */
20168 if test x"$ac_file" = x-; then
20171 configure_input="$ac_file. "
20173 configure_input=$configure_input"Generated from `echo $ac_file_in |
20174 sed 's,.*/,,'` by configure."
20176 # First look for the input files in the build tree, otherwise in the
20178 ac_file_inputs=`IFS=:
20179 for f in $ac_file_in; do
20181 -) echo $tmp/stdin ;;
20183 # Absolute (can't be DOS-style, as IFS=:)
20184 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20185 echo "$as_me: error: cannot find input file: $f" >&2;}
20186 { (exit 1); exit 1; }; }
20189 if test -f "$f"; then
20192 elif test -f "$srcdir/$f"; then
20197 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20198 echo "$as_me: error: cannot find input file: $f" >&2;}
20199 { (exit 1); exit 1; }; }
20202 done` || { (exit 1); exit 1; }
20204 cat >>$CONFIG_STATUS <<_ACEOF
20208 cat >>$CONFIG_STATUS <<\_ACEOF
20210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20211 s,@configure_input@,$configure_input,;t t
20212 s,@srcdir@,$ac_srcdir,;t t
20213 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20214 s,@top_srcdir@,$ac_top_srcdir,;t t
20215 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20216 s,@builddir@,$ac_builddir,;t t
20217 s,@abs_builddir@,$ac_abs_builddir,;t t
20218 s,@top_builddir@,$ac_top_builddir,;t t
20219 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20220 s,@INSTALL@,$ac_INSTALL,;t t
20221 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20223 if test x"$ac_file" != x-; then
20224 mv $tmp/out $ac_file
20232 cat >>$CONFIG_STATUS <<\_ACEOF
20235 # CONFIG_COMMANDS section.
20237 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20238 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20239 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20240 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20241 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20242 X"$ac_dest" : 'X\(//\)[^/]' \| \
20243 X"$ac_dest" : 'X\(//\)$' \| \
20244 X"$ac_dest" : 'X\(/\)' \| \
20245 . : '\(.\)' 2>/dev/null ||
20247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20249 /^X\(\/\/\)$/{ s//\1/; q; }
20250 /^X\(\/\).*/{ s//\1/; q; }
20252 { if $as_mkdir_p; then
20257 while test ! -d "$as_dir"; do
20258 as_dirs="$as_dir $as_dirs"
20259 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20261 X"$as_dir" : 'X\(//\)[^/]' \| \
20262 X"$as_dir" : 'X\(//\)$' \| \
20263 X"$as_dir" : 'X\(/\)' \| \
20264 . : '\(.\)' 2>/dev/null ||
20266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20268 /^X\(\/\/\)$/{ s//\1/; q; }
20269 /^X\(\/\).*/{ s//\1/; q; }
20272 test ! -n "$as_dirs" || mkdir $as_dirs
20273 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20274 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20275 { (exit 1); exit 1; }; }; }
20279 if test "$ac_dir" != .; then
20280 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20281 # A "../" for each directory in $ac_dir_suffix.
20282 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20284 ac_dir_suffix= ac_top_builddir=
20288 .) # No --srcdir option. We are building in place.
20290 if test -z "$ac_top_builddir"; then
20293 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20295 [\\/]* | ?:[\\/]* ) # Absolute path.
20296 ac_srcdir=$srcdir$ac_dir_suffix;
20297 ac_top_srcdir=$srcdir ;;
20298 *) # Relative path.
20299 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20300 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20303 # Do not use `cd foo && pwd` to compute absolute paths, because
20304 # the directories may not exist.
20306 .) ac_abs_builddir="$ac_dir";;
20309 .) ac_abs_builddir=`pwd`;;
20310 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20311 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20314 case $ac_abs_builddir in
20315 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20317 case ${ac_top_builddir}. in
20318 .) ac_abs_top_builddir=$ac_abs_builddir;;
20319 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20320 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20323 case $ac_abs_builddir in
20324 .) ac_abs_srcdir=$ac_srcdir;;
20327 .) ac_abs_srcdir=$ac_abs_builddir;;
20328 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20329 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20332 case $ac_abs_builddir in
20333 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20335 case $ac_top_srcdir in
20336 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20337 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20338 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20343 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20344 echo "$as_me: executing $ac_dest commands" >&6;}
20346 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20347 # Strip MF so we end up with the name of the file.
20348 mf=`echo "$mf" | sed -e 's/:.*$//'`
20349 # Check whether this is an Automake generated Makefile or not.
20350 # We used to match only the files named `Makefile.in', but
20351 # some people rename them; so instead we look at the file content.
20352 # Grep'ing the first line is not enough: some people post-process
20353 # each Makefile.in and add a new line on top of each file to say so.
20354 # So let's grep whole file.
20355 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20356 dirpart=`(dirname "$mf") 2>/dev/null ||
20357 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20358 X"$mf" : 'X\(//\)[^/]' \| \
20359 X"$mf" : 'X\(//\)$' \| \
20360 X"$mf" : 'X\(/\)' \| \
20361 . : '\(.\)' 2>/dev/null ||
20363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20365 /^X\(\/\/\)$/{ s//\1/; q; }
20366 /^X\(\/\).*/{ s//\1/; q; }
20371 # Extract the definition of DEPDIR, am__include, and am__quote
20372 # from the Makefile without running `make'.
20373 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20374 test -z "$DEPDIR" && continue
20375 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20376 test -z "am__include" && continue
20377 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20378 # When using ansi2knr, U may be empty or an underscore; expand it
20379 U=`sed -n 's/^U = //p' < "$mf"`
20380 # Find all dependency output files, they are included files with
20381 # $(DEPDIR) in their names. We invoke sed twice because it is the
20382 # simplest approach to changing $(DEPDIR) to its actual value in the
20384 for file in `sed -n "
20385 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20386 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20387 # Make sure the directory exists.
20388 test -f "$dirpart/$file" && continue
20389 fdir=`(dirname "$file") 2>/dev/null ||
20390 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20391 X"$file" : 'X\(//\)[^/]' \| \
20392 X"$file" : 'X\(//\)$' \| \
20393 X"$file" : 'X\(/\)' \| \
20394 . : '\(.\)' 2>/dev/null ||
20396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20397 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20398 /^X\(\/\/\)$/{ s//\1/; q; }
20399 /^X\(\/\).*/{ s//\1/; q; }
20401 { if $as_mkdir_p; then
20402 mkdir -p $dirpart/$fdir
20404 as_dir=$dirpart/$fdir
20406 while test ! -d "$as_dir"; do
20407 as_dirs="$as_dir $as_dirs"
20408 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20410 X"$as_dir" : 'X\(//\)[^/]' \| \
20411 X"$as_dir" : 'X\(//\)$' \| \
20412 X"$as_dir" : 'X\(/\)' \| \
20413 . : '\(.\)' 2>/dev/null ||
20415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20417 /^X\(\/\/\)$/{ s//\1/; q; }
20418 /^X\(\/\).*/{ s//\1/; q; }
20421 test ! -n "$as_dirs" || mkdir $as_dirs
20422 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20423 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20424 { (exit 1); exit 1; }; }; }
20426 # echo "creating $dirpart/$file"
20427 echo '# dummy' > "$dirpart/$file"
20435 cat >>$CONFIG_STATUS <<\_ACEOF
20437 { (exit 0); exit 0; }
20439 chmod +x $CONFIG_STATUS
20440 ac_clean_files=$ac_clean_files_save
20443 # configure is writing to config.log, and then calls config.status.
20444 # config.status does its own redirection, appending to config.log.
20445 # Unfortunately, on DOS this fails, as config.log is still kept open
20446 # by configure, so config.status won't be able to write to it; its
20447 # output is simply discarded. So we exec the FD to /dev/null,
20448 # effectively closing config.log, so it can be properly (re)opened and
20449 # appended to by config.status. When coming back to configure, we
20450 # need to make the FD available again.
20451 if test "$no_create" != yes; then
20453 ac_config_status_args=
20454 test "$silent" = yes &&
20455 ac_config_status_args="$ac_config_status_args --quiet"
20457 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20460 # would make configure fail if this is the last instruction.
20461 $ac_cs_success || { (exit 1); exit 1; }